plotly.js
Version:
The open source javascript graphing library that powers plotly
1,983 lines • 1.74 MB
JavaScript
/**
* plotly.js (gl3d - 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 CY=Object.create;var n0=Object.defineProperty,EY=Object.defineProperties,LY=Object.getOwnPropertyDescriptor,RY=Object.getOwnPropertyDescriptors,DY=Object.getOwnPropertyNames,x_=Object.getOwnPropertySymbols,PY=Object.getPrototypeOf,w_=Object.prototype.hasOwnProperty,IY=Object.prototype.propertyIsEnumerable;var __=(e,r,t)=>r in e?n0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,xt=(e,r)=>{for(var t in r||(r={}))w_.call(r,t)&&__(e,t,r[t]);if(x_)for(var t of x_(r))IY.call(r,t)&&__(e,t,r[t]);return e},qt=(e,r)=>EY(e,RY(r));var a0=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(n){throw t=[n],n}};var xe=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},i0=(e,r)=>{for(var t in r)n0(e,t,{get:r[t],enumerable:!0})},M_=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of DY(r))!w_.call(e,a)&&a!==t&&n0(e,a,{get:()=>r[a],enumerable:!(n=LY(r,a))||n.enumerable});return e};var Gg=(e,r,t)=>(t=e!=null?CY(PY(e)):{},M_(r||!e||!e.__esModule?n0(t,"default",{value:e,enumerable:!0}):t,e)),Kn=e=>M_(n0({},"__esModule",{value:!0}),e);var o0=xe(T_=>{"use strict";T_.version="4.0.0"});var k_=xe((A_,Fv)=>{(function(r,t,n){t[r]=t[r]||n(),typeof Fv!="undefined"&&Fv.exports&&(Fv.exports=t[r])})("Promise",typeof window!="undefined"?window:A_,function(){"use strict";var r,t,n,a=Object.prototype.toString,o=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,S,b,M){return Object.defineProperty(k,S,{value:b,writable:!0,configurable:M!==!1})}}catch(m){r=function(S,b,M){return S[b]=M,S}}n=(function(){var k,S,b;function M(h,_){this.fn=h,this.self=_,this.next=void 0}return{add:function(_,y){b=new M(_,y),S?S.next=b:k=b,S=b,b=void 0},drain:function(){var _=k;for(k=S=t=void 0;_;)_.fn.call(_.self),_=_.next}}})();function i(m,k){n.add(m,k),t||(t=o(n.drain))}function l(m){var k,S=typeof m;return m!=null&&(S=="object"||S=="function")&&(k=m.then),typeof k=="function"?k:!1}function u(){for(var m=0;m<this.chain.length;m++)s(this,this.state===1?this.chain[m].success:this.chain[m].failure,this.chain[m]);this.chain.length=0}function s(m,k,S){var b,M;try{k===!1?S.reject(m.msg):(k===!0?b=m.msg:b=k.call(void 0,m.msg),b===S.promise?S.reject(TypeError("Promise-chain cycle")):(M=l(b))?M.call(b,S.resolve,S.reject):S.resolve(b))}catch(h){S.reject(h)}}function f(m){var k,S=this;if(!S.triggered){S.triggered=!0,S.def&&(S=S.def);try{(k=l(m))?i(function(){var b=new x(S);try{k.call(m,function(){f.apply(b,arguments)},function(){c.apply(b,arguments)})}catch(M){c.call(b,M)}}):(S.msg=m,S.state=1,S.chain.length>0&&i(u,S))}catch(b){c.call(new x(S),b)}}}function c(m){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=m,k.state=2,k.chain.length>0&&i(u,k))}function d(m,k,S,b){for(var M=0;M<k.length;M++)(function(_){m.resolve(k[_]).then(function(v){S(_,v)},b)})(M)}function x(m){this.def=m,this.triggered=!1}function g(m){this.promise=m,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function w(m){if(typeof m!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var k=new g(this);this.then=function(b,M){var h={success:typeof b=="function"?b:!0,failure:typeof M=="function"?M:!1};return h.promise=new this.constructor(function(y,v){if(typeof y!="function"||typeof v!="function")throw TypeError("Not a function");h.resolve=y,h.reject=v}),k.chain.push(h),k.state!==0&&i(u,k),h.promise},this.catch=function(b){return this.then(void 0,b)};try{m.call(void 0,function(b){f.call(k,b)},function(b){c.call(k,b)})}catch(S){c.call(k,S)}}var T=r({},"constructor",w,!1);return w.prototype=T,r(T,"__NPO__",0,!1),r(w,"resolve",function(k){var S=this;return k&&typeof k=="object"&&k.__NPO__===1?k:new S(function(M,h){if(typeof M!="function"||typeof h!="function")throw TypeError("Not a function");M(k)})}),r(w,"reject",function(k){return new this(function(b,M){if(typeof b!="function"||typeof M!="function")throw TypeError("Not a function");M(k)})}),r(w,"all",function(k){var S=this;return a.call(k)!="[object Array]"?S.reject(TypeError("Not an array")):k.length===0?S.resolve([]):new S(function(M,h){if(typeof M!="function"||typeof h!="function")throw TypeError("Not a function");var _=k.length,y=Array(_),v=0;d(S,k,function(p,R){y[p]=R,++v===_&&M(y)},h)})}),r(w,"race",function(k){var S=this;return a.call(k)!="[object Array]"?S.reject(TypeError("Not an array")):new S(function(M,h){if(typeof M!="function"||typeof h!="function")throw TypeError("Not a function");d(S,k,function(y,v){M(v)},h)})}),w})});var nt=xe((wye,Nv)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(C){return r.call(C)},n=self.document;function a(C){return C&&(C.ownerDocument||C.document||C).documentElement}function o(C){return C&&(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(C){t=function(N){for(var B=N.length,H=new Array(B);B--;)H[B]=N[B];return H}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(C){var i=this.Element.prototype,l=i.setAttribute,u=i.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;i.setAttribute=function(N,B){l.call(this,N,B+"")},i.setAttributeNS=function(N,B,H){u.call(this,N,B,H+"")},s.setProperty=function(N,B,H){f.call(this,N,B+"",H)}}e.ascending=c;function c(C,N){return C<N?-1:C>N?1:C>=N?0:NaN}e.descending=function(C,N){return N<C?-1:N>C?1:N>=C?0:NaN},e.min=function(C,N){var B=-1,H=C.length,X,W;if(arguments.length===1){for(;++B<H;)if((W=C[B])!=null&&W>=W){X=W;break}for(;++B<H;)(W=C[B])!=null&&X>W&&(X=W)}else{for(;++B<H;)if((W=N.call(C,C[B],B))!=null&&W>=W){X=W;break}for(;++B<H;)(W=N.call(C,C[B],B))!=null&&X>W&&(X=W)}return X},e.max=function(C,N){var B=-1,H=C.length,X,W;if(arguments.length===1){for(;++B<H;)if((W=C[B])!=null&&W>=W){X=W;break}for(;++B<H;)(W=C[B])!=null&&W>X&&(X=W)}else{for(;++B<H;)if((W=N.call(C,C[B],B))!=null&&W>=W){X=W;break}for(;++B<H;)(W=N.call(C,C[B],B))!=null&&W>X&&(X=W)}return X},e.extent=function(C,N){var B=-1,H=C.length,X,W,ue;if(arguments.length===1){for(;++B<H;)if((W=C[B])!=null&&W>=W){X=ue=W;break}for(;++B<H;)(W=C[B])!=null&&(X>W&&(X=W),ue<W&&(ue=W))}else{for(;++B<H;)if((W=N.call(C,C[B],B))!=null&&W>=W){X=ue=W;break}for(;++B<H;)(W=N.call(C,C[B],B))!=null&&(X>W&&(X=W),ue<W&&(ue=W))}return[X,ue]};function d(C){return C===null?NaN:+C}function x(C){return!isNaN(C)}e.sum=function(C,N){var B=0,H=C.length,X,W=-1;if(arguments.length===1)for(;++W<H;)x(X=+C[W])&&(B+=X);else for(;++W<H;)x(X=+N.call(C,C[W],W))&&(B+=X);return B},e.mean=function(C,N){var B=0,H=C.length,X,W=-1,ue=H;if(arguments.length===1)for(;++W<H;)x(X=d(C[W]))?B+=X:--ue;else for(;++W<H;)x(X=d(N.call(C,C[W],W)))?B+=X:--ue;if(ue)return B/ue},e.quantile=function(C,N){var B=(C.length-1)*N+1,H=Math.floor(B),X=+C[H-1],W=B-H;return W?X+W*(C[H]-X):X},e.median=function(C,N){var B=[],H=C.length,X,W=-1;if(arguments.length===1)for(;++W<H;)x(X=d(C[W]))&&B.push(X);else for(;++W<H;)x(X=d(N.call(C,C[W],W)))&&B.push(X);if(B.length)return e.quantile(B.sort(c),.5)},e.variance=function(C,N){var B=C.length,H=0,X,W,ue=0,ne=-1,fe=0;if(arguments.length===1)for(;++ne<B;)x(X=d(C[ne]))&&(W=X-H,H+=W/++fe,ue+=W*(X-H));else for(;++ne<B;)x(X=d(N.call(C,C[ne],ne)))&&(W=X-H,H+=W/++fe,ue+=W*(X-H));if(fe>1)return ue/(fe-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function g(C){return{left:function(N,B,H,X){for(arguments.length<3&&(H=0),arguments.length<4&&(X=N.length);H<X;){var W=H+X>>>1;C(N[W],B)<0?H=W+1:X=W}return H},right:function(N,B,H,X){for(arguments.length<3&&(H=0),arguments.length<4&&(X=N.length);H<X;){var W=H+X>>>1;C(N[W],B)>0?X=W:H=W+1}return H}}}var w=g(c);e.bisectLeft=w.left,e.bisect=e.bisectRight=w.right,e.bisector=function(C){return g(C.length===1?function(N,B){return c(C(N),B)}:C)},e.shuffle=function(C,N,B){(H=arguments.length)<3&&(B=C.length,H<2&&(N=0));for(var H=B-N,X,W;H;)W=Math.random()*H--|0,X=C[H+N],C[H+N]=C[W+N],C[W+N]=X;return C},e.permute=function(C,N){for(var B=N.length,H=new Array(B);B--;)H[B]=C[N[B]];return H},e.pairs=function(C){for(var N=0,B=C.length-1,H,X=C[0],W=new Array(B<0?0:B);N<B;)W[N]=[H=X,X=C[++N]];return W},e.transpose=function(C){if(!(W=C.length))return[];for(var N=-1,B=e.min(C,T),H=new Array(B);++N<B;)for(var X=-1,W,ue=H[N]=new Array(W);++X<W;)ue[X]=C[X][N];return H};function T(C){return C.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(C){var N=[];for(var B in C)N.push(B);return N},e.values=function(C){var N=[];for(var B in C)N.push(C[B]);return N},e.entries=function(C){var N=[];for(var B in C)N.push({key:B,value:C[B]});return N},e.merge=function(C){for(var N=C.length,B,H=-1,X=0,W,ue;++H<N;)X+=C[H].length;for(W=new Array(X);--N>=0;)for(ue=C[N],B=ue.length;--B>=0;)W[--X]=ue[B];return W};var m=Math.abs;e.range=function(C,N,B){if(arguments.length<3&&(B=1,arguments.length<2&&(N=C,C=0)),(N-C)/B===1/0)throw new Error("infinite range");var H=[],X=k(m(B)),W=-1,ue;if(C*=X,N*=X,B*=X,B<0)for(;(ue=C+B*++W)>N;)H.push(ue/X);else for(;(ue=C+B*++W)<N;)H.push(ue/X);return H};function k(C){for(var N=1;C*N%1;)N*=10;return N}function S(C,N){for(var B in N)Object.defineProperty(C.prototype,B,{value:N[B],enumerable:!1})}e.map=function(C,N){var B=new b;if(C instanceof b)C.forEach(function(ne,fe){B.set(ne,fe)});else if(Array.isArray(C)){var H=-1,X=C.length,W;if(arguments.length===1)for(;++H<X;)B.set(H,C[H]);else for(;++H<X;)B.set(N.call(C,W=C[H],H),W)}else for(var ue in C)B.set(ue,C[ue]);return B};function b(){this._=Object.create(null)}var M="__proto__",h="\0";S(b,{has:v,get:function(C){return this._[_(C)]},set:function(C,N){return this._[_(C)]=N},remove:A,keys:p,values:function(){var C=[];for(var N in this._)C.push(this._[N]);return C},entries:function(){var C=[];for(var N in this._)C.push({key:y(N),value:this._[N]});return C},size:R,empty:E,forEach:function(C){for(var N in this._)C.call(this,y(N),this._[N])}});function _(C){return(C+="")===M||C[0]===h?h+C:C}function y(C){return(C+="")[0]===h?C.slice(1):C}function v(C){return _(C)in this._}function A(C){return(C=_(C))in this._&&delete this._[C]}function p(){var C=[];for(var N in this._)C.push(y(N));return C}function R(){var C=0;for(var N in this._)++C;return C}function E(){for(var C in this._)return!1;return!0}e.nest=function(){var C={},N=[],B=[],H,X;function W(ne,fe,we){if(we>=N.length)return X?X.call(C,fe):H?fe.sort(H):fe;for(var Te=-1,Re=fe.length,De=N[we++],Ge,Je,ze,Ne=new b,Ue;++Te<Re;)(Ue=Ne.get(Ge=De(Je=fe[Te])))?Ue.push(Je):Ne.set(Ge,[Je]);return ne?(Je=ne(),ze=function(Ze,$e){Je.set(Ze,W(ne,$e,we))}):(Je={},ze=function(Ze,$e){Je[Ze]=W(ne,$e,we)}),Ne.forEach(ze),Je}function ue(ne,fe){if(fe>=N.length)return ne;var we=[],Te=B[fe++];return ne.forEach(function(Re,De){we.push({key:Re,values:ue(De,fe)})}),Te?we.sort(function(Re,De){return Te(Re.key,De.key)}):we}return C.map=function(ne,fe){return W(fe,ne,0)},C.entries=function(ne){return ue(W(e.map,ne,0),0)},C.key=function(ne){return N.push(ne),C},C.sortKeys=function(ne){return B[N.length-1]=ne,C},C.sortValues=function(ne){return H=ne,C},C.rollup=function(ne){return X=ne,C},C},e.set=function(C){var N=new D;if(C)for(var B=0,H=C.length;B<H;++B)N.add(C[B]);return N};function D(){this._=Object.create(null)}S(D,{has:v,add:function(C){return this._[_(C+="")]=!0,C},remove:A,values:p,size:R,empty:E,forEach:function(C){for(var N in this._)C.call(this,y(N))}}),e.behavior={};function F(C){return C}e.rebind=function(C,N){for(var B=1,H=arguments.length,X;++B<H;)C[X=arguments[B]]=z(C,N,N[X]);return C};function z(C,N,B){return function(){var H=B.apply(N,arguments);return H===N?C:H}}function I(C,N){if(N in C)return N;N=N.charAt(0).toUpperCase()+N.slice(1);for(var B=0,H=L.length;B<H;++B){var X=L[B]+N;if(X in C)return X}}var L=["webkit","ms","moz","Moz","o","O"];function P(){}e.dispatch=function(){for(var C=new O,N=-1,B=arguments.length;++N<B;)C[arguments[N]]=U(C);return C};function O(){}O.prototype.on=function(C,N){var B=C.indexOf("."),H="";if(B>=0&&(H=C.slice(B+1),C=C.slice(0,B)),C)return arguments.length<2?this[C].on(H):this[C].on(H,N);if(arguments.length===2){if(N==null)for(C in this)this.hasOwnProperty(C)&&this[C].on(H,null);return this}};function U(C){var N=[],B=new b;function H(){for(var X=N,W=-1,ue=X.length,ne;++W<ue;)(ne=X[W].on)&&ne.apply(this,arguments);return C}return H.on=function(X,W){var ue=B.get(X),ne;return arguments.length<2?ue&&ue.on:(ue&&(ue.on=null,N=N.slice(0,ne=N.indexOf(ue)).concat(N.slice(ne+1)),B.remove(X)),W&&N.push(B.set(X,{on:W})),C)},H}e.event=null;function V(){e.event.preventDefault()}function K(){for(var C=e.event,N;N=C.sourceEvent;)C=N;return C}function j(C){for(var N=new O,B=0,H=arguments.length;++B<H;)N[arguments[B]]=U(N);return N.of=function(X,W){return function(ue){try{var ne=ue.sourceEvent=e.event;ue.target=C,e.event=ue,N[ue.type].apply(X,W)}finally{e.event=ne}}},N}e.requote=function(C){return C.replace(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,q={}.__proto__?function(C,N){C.__proto__=N}:function(C,N){for(var B in N)C[B]=N[B]};function J(C){return q(C,Q),C}var te=function(C,N){return N.querySelector(C)},Z=function(C,N){return N.querySelectorAll(C)},ie=function(C,N){var B=C.matches||C[I(C,"matchesSelector")];return ie=function(H,X){return B.call(H,X)},ie(C,N)};typeof Sizzle=="function"&&(te=function(C,N){return Sizzle(C,N)[0]||null},Z=Sizzle,ie=Sizzle.matchesSelector),e.selection=function(){return e.select(n.documentElement)};var Q=e.selection.prototype=[];Q.select=function(C){var N=[],B,H,X,W;C=re(C);for(var ue=-1,ne=this.length;++ue<ne;){N.push(B=[]),B.parentNode=(X=this[ue]).parentNode;for(var fe=-1,we=X.length;++fe<we;)(W=X[fe])?(B.push(H=C.call(W,W.__data__,fe,ue)),H&&"__data__"in W&&(H.__data__=W.__data__)):B.push(null)}return J(N)};function re(C){return typeof C=="function"?C:function(){return te(C,this)}}Q.selectAll=function(C){var N=[],B,H;C=se(C);for(var X=-1,W=this.length;++X<W;)for(var ue=this[X],ne=-1,fe=ue.length;++ne<fe;)(H=ue[ne])&&(N.push(B=t(C.call(H,H.__data__,ne,X))),B.parentNode=H);return J(N)};function se(C){return typeof C=="function"?C:function(){return Z(C,this)}}var ee="http://www.w3.org/1999/xhtml",ae={svg:"http://www.w3.org/2000/svg",xhtml:ee,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:ae,qualify:function(C){var N=C.indexOf(":"),B=C;return N>=0&&(B=C.slice(0,N))!=="xmlns"&&(C=C.slice(N+1)),ae.hasOwnProperty(B)?{space:ae[B],local:C}:C}},Q.attr=function(C,N){if(arguments.length<2){if(typeof C=="string"){var B=this.node();return C=e.ns.qualify(C),C.local?B.getAttributeNS(C.space,C.local):B.getAttribute(C)}for(N in C)this.each(ce(N,C[N]));return this}return this.each(ce(C,N))};function ce(C,N){C=e.ns.qualify(C);function B(){this.removeAttribute(C)}function H(){this.removeAttributeNS(C.space,C.local)}function X(){this.setAttribute(C,N)}function W(){this.setAttributeNS(C.space,C.local,N)}function ue(){var fe=N.apply(this,arguments);fe==null?this.removeAttribute(C):this.setAttribute(C,fe)}function ne(){var fe=N.apply(this,arguments);fe==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,fe)}return N==null?C.local?H:B:typeof N=="function"?C.local?ne:ue:C.local?W:X}function Me(C){return C.trim().replace(/\s+/g," ")}Q.classed=function(C,N){if(arguments.length<2){if(typeof C=="string"){var B=this.node(),H=(C=Se(C)).length,X=-1;if(N=B.classList){for(;++X<H;)if(!N.contains(C[X]))return!1}else for(N=B.getAttribute("class");++X<H;)if(!ke(C[X]).test(N))return!1;return!0}for(N in C)this.each(ge(N,C[N]));return this}return this.each(ge(C,N))};function ke(C){return new RegExp("(?:^|\\s+)"+e.requote(C)+"(?:\\s+|$)","g")}function Se(C){return(C+"").trim().split(/^|\s+/)}function ge(C,N){C=Se(C).map(Le);var B=C.length;function H(){for(var W=-1;++W<B;)C[W](this,N)}function X(){for(var W=-1,ue=N.apply(this,arguments);++W<B;)C[W](this,ue)}return typeof N=="function"?X:H}function Le(C){var N=ke(C);return function(B,H){if(X=B.classList)return H?X.add(C):X.remove(C);var X=B.getAttribute("class")||"";H?(N.lastIndex=0,N.test(X)||B.setAttribute("class",Me(X+" "+C))):B.setAttribute("class",Me(X.replace(N," ")))}}Q.style=function(C,N,B){var H=arguments.length;if(H<3){if(typeof C!="string"){H<2&&(N="");for(B in C)this.each(Ee(B,C[B],N));return this}if(H<2){var X=this.node();return o(X).getComputedStyle(X,null).getPropertyValue(C)}B=""}return this.each(Ee(C,N,B))};function Ee(C,N,B){function H(){this.style.removeProperty(C)}function X(){this.style.setProperty(C,N,B)}function W(){var ue=N.apply(this,arguments);ue==null?this.style.removeProperty(C):this.style.setProperty(C,ue,B)}return N==null?H:typeof N=="function"?W:X}Q.property=function(C,N){if(arguments.length<2){if(typeof C=="string")return this.node()[C];for(N in C)this.each(le(N,C[N]));return this}return this.each(le(C,N))};function le(C,N){function B(){delete this[C]}function H(){this[C]=N}function X(){var W=N.apply(this,arguments);W==null?delete this[C]:this[C]=W}return N==null?B:typeof N=="function"?X:H}Q.text=function(C){return arguments.length?this.each(typeof C=="function"?function(){var N=C.apply(this,arguments);this.textContent=N==null?"":N}:C==null?function(){this.textContent=""}:function(){this.textContent=C}):this.node().textContent},Q.html=function(C){return arguments.length?this.each(typeof C=="function"?function(){var N=C.apply(this,arguments);this.innerHTML=N==null?"":N}:C==null?function(){this.innerHTML=""}:function(){this.innerHTML=C}):this.node().innerHTML},Q.append=function(C){return C=Y(C),this.select(function(){return this.appendChild(C.apply(this,arguments))})};function Y(C){function N(){var H=this.ownerDocument,X=this.namespaceURI;return X===ee&&H.documentElement.namespaceURI===ee?H.createElement(C):H.createElementNS(X,C)}function B(){return this.ownerDocument.createElementNS(C.space,C.local)}return typeof C=="function"?C:(C=e.ns.qualify(C)).local?B:N}Q.insert=function(C,N){return C=Y(C),N=re(N),this.select(function(){return this.insertBefore(C.apply(this,arguments),N.apply(this,arguments)||null)})},Q.remove=function(){return this.each($)};function $(){var C=this.parentNode;C&&C.removeChild(this)}Q.data=function(C,N){var B=-1,H=this.length,X,W;if(!arguments.length){for(C=new Array(H=(X=this[0]).length);++B<H;)(W=X[B])&&(C[B]=W.__data__);return C}function ue(Te,Re){var De,Ge=Te.length,Je=Re.length,ze=Math.min(Ge,Je),Ne=new Array(Je),Ue=new Array(Je),Ze=new Array(Ge),$e,He;if(N){var ar=new b,vr=new Array(Ge),pr;for(De=-1;++De<Ge;)($e=Te[De])&&(ar.has(pr=N.call($e,$e.__data__,De))?Ze[De]=$e:ar.set(pr,$e),vr[De]=pr);for(De=-1;++De<Je;)($e=ar.get(pr=N.call(Re,He=Re[De],De)))?$e!==!0&&(Ne[De]=$e,$e.__data__=He):Ue[De]=pe(He),ar.set(pr,!0);for(De=-1;++De<Ge;)De in vr&&ar.get(vr[De])!==!0&&(Ze[De]=Te[De])}else{for(De=-1;++De<ze;)$e=Te[De],He=Re[De],$e?($e.__data__=He,Ne[De]=$e):Ue[De]=pe(He);for(;De<Je;++De)Ue[De]=pe(Re[De]);for(;De<Ge;++De)Ze[De]=Te[De]}Ue.update=Ne,Ue.parentNode=Ne.parentNode=Ze.parentNode=Te.parentNode,ne.push(Ue),fe.push(Ne),we.push(Ze)}var ne=me([]),fe=J([]),we=J([]);if(typeof C=="function")for(;++B<H;)ue(X=this[B],C.call(X,X.parentNode.__data__,B));else for(;++B<H;)ue(X=this[B],C);return fe.enter=function(){return ne},fe.exit=function(){return we},fe};function pe(C){return{__data__:C}}Q.datum=function(C){return arguments.length?this.property("__data__",C):this.property("__data__")},Q.filter=function(C){var N=[],B,H,X;typeof C!="function"&&(C=oe(C));for(var W=0,ue=this.length;W<ue;W++){N.push(B=[]),B.parentNode=(H=this[W]).parentNode;for(var ne=0,fe=H.length;ne<fe;ne++)(X=H[ne])&&C.call(X,X.__data__,ne,W)&&B.push(X)}return J(N)};function oe(C){return function(){return ie(this,C)}}Q.order=function(){for(var C=-1,N=this.length;++C<N;)for(var B=this[C],H=B.length-1,X=B[H],W;--H>=0;)(W=B[H])&&(X&&X!==W.nextSibling&&X.parentNode.insertBefore(W,X),X=W);return this},Q.sort=function(C){C=ve.apply(this,arguments);for(var N=-1,B=this.length;++N<B;)this[N].sort(C);return this.order()};function ve(C){return arguments.length||(C=c),function(N,B){return N&&B?C(N.__data__,B.__data__):!N-!B}}Q.each=function(C){return he(this,function(N,B,H){C.call(N,N.__data__,B,H)})};function he(C,N){for(var B=0,H=C.length;B<H;B++)for(var X=C[B],W=0,ue=X.length,ne;W<ue;W++)(ne=X[W])&&N(ne,W,B);return C}Q.call=function(C){var N=t(arguments);return C.apply(N[0]=this,N),this},Q.empty=function(){return!this.node()},Q.node=function(){for(var C=0,N=this.length;C<N;C++)for(var B=this[C],H=0,X=B.length;H<X;H++){var W=B[H];if(W)return W}return null},Q.size=function(){var C=0;return he(this,function(){++C}),C};function me(C){return q(C,be),C}var be=[];e.selection.enter=me,e.selection.enter.prototype=be,be.append=Q.append,be.empty=Q.empty,be.node=Q.node,be.call=Q.call,be.size=Q.size,be.select=function(C){for(var N=[],B,H,X,W,ue,ne=-1,fe=this.length;++ne<fe;){X=(W=this[ne]).update,N.push(B=[]),B.parentNode=W.parentNode;for(var we=-1,Te=W.length;++we<Te;)(ue=W[we])?(B.push(X[we]=H=C.call(W.parentNode,ue.__data__,we,ne)),H.__data__=ue.__data__):B.push(null)}return J(N)},be.insert=function(C,N){return arguments.length<2&&(N=ye(this)),Q.insert.call(this,C,N)};function ye(C){var N,B;return function(H,X,W){var ue=C[W].update,ne=ue.length,fe;for(W!=B&&(B=W,N=0),X>=N&&(N=X+1);!(fe=ue[N])&&++N<ne;);return fe}}e.select=function(C){var N;return typeof C=="string"?(N=[te(C,n)],N.parentNode=n.documentElement):(N=[C],N.parentNode=a(C)),J([N])},e.selectAll=function(C){var N;return typeof C=="string"?(N=t(Z(C,n)),N.parentNode=n.documentElement):(N=t(C),N.parentNode=null),J([N])},Q.on=function(C,N,B){var H=arguments.length;if(H<3){if(typeof C!="string"){H<2&&(N=!1);for(B in C)this.each(de(B,C[B],N));return this}if(H<2)return(H=this.node()["__on"+C])&&H._;B=!1}return this.each(de(C,N,B))};function de(C,N,B){var H="__on"+C,X=C.indexOf("."),W=Ae;X>0&&(C=C.slice(0,X));var ue=_e.get(C);ue&&(C=ue,W=Ie);function ne(){var Te=this[H];Te&&(this.removeEventListener(C,Te,Te.$),delete this[H])}function fe(){var Te=W(N,t(arguments));ne.call(this),this.addEventListener(C,this[H]=Te,Te.$=B),Te._=N}function we(){var Te=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),Re;for(var De in this)if(Re=De.match(Te)){var Ge=this[De];this.removeEventListener(Re[1],Ge,Ge.$),delete this[De]}}return X?N?fe:ne:N?P:we}var _e=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&_e.forEach(function(C){"on"+C in n&&_e.remove(C)});function Ae(C,N){return function(B){var H=e.event;e.event=B,N[0]=this.__data__;try{C.apply(this,N)}finally{e.event=H}}}function Ie(C,N){var B=Ae(C,N);return function(H){var X=this,W=H.relatedTarget;(!W||W!==X&&!(W.compareDocumentPosition(X)&8))&&B.call(X,H)}}var Pe,Ye=0;function qe(C){var N=".dragsuppress-"+ ++Ye,B="click"+N,H=e.select(o(C)).on("touchmove"+N,V).on("dragstart"+N,V).on("selectstart"+N,V);if(Pe==null&&(Pe="onselectstart"in C?!1:I(C.style,"userSelect")),Pe){var X=a(C).style,W=X[Pe];X[Pe]="none"}return function(ue){if(H.on(N,null),Pe&&(X[Pe]=W),ue){var ne=function(){H.on(B,null)};H.on(B,function(){V(),ne()},!0),setTimeout(ne,0)}}}e.mouse=function(C){return Be(C,K())};var Oe=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Be(C,N){N.changedTouches&&(N=N.changedTouches[0]);var B=C.ownerSVGElement||C;if(B.createSVGPoint){var H=B.createSVGPoint();if(Oe<0){var X=o(C);if(X.scrollX||X.scrollY){B=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var W=B[0][0].getScreenCTM();Oe=!(W.f||W.e),B.remove()}}return Oe?(H.x=N.pageX,H.y=N.pageY):(H.x=N.clientX,H.y=N.clientY),H=H.matrixTransform(C.getScreenCTM().inverse()),[H.x,H.y]}var ue=C.getBoundingClientRect();return[N.clientX-ue.left-C.clientLeft,N.clientY-ue.top-C.clientTop]}e.touch=function(C,N,B){if(arguments.length<3&&(B=N,N=K().changedTouches),N){for(var H=0,X=N.length,W;H<X;++H)if((W=N[H]).identifier===B)return Be(C,W)}},e.behavior.drag=function(){var C=j(X,"drag","dragstart","dragend"),N=null,B=W(P,e.mouse,o,"mousemove","mouseup"),H=W(We,e.touch,F,"touchmove","touchend");function X(){this.on("mousedown.drag",B).on("touchstart.drag",H)}function W(ue,ne,fe,we,Te){return function(){var Re=this,De=e.event.target.correspondingElement||e.event.target,Ge=Re.parentNode,Je=C.of(Re,arguments),ze=0,Ne=ue(),Ue=".drag"+(Ne==null?"":"-"+Ne),Ze,$e=e.select(fe(De)).on(we+Ue,vr).on(Te+Ue,pr),He=qe(De),ar=ne(Ge,Ne);N?(Ze=N.apply(Re,arguments),Ze=[Ze.x-ar[0],Ze.y-ar[1]]):Ze=[0,0],Je({type:"dragstart"});function vr(){var dr=ne(Ge,Ne),mr,br;dr&&(mr=dr[0]-ar[0],br=dr[1]-ar[1],ze|=mr|br,ar=dr,Je({type:"drag",x:dr[0]+Ze[0],y:dr[1]+Ze[1],dx:mr,dy:br}))}function pr(){ne(Ge,Ne)&&($e.on(we+Ue,null).on(Te+Ue,null),He(ze),Je({type:"dragend"}))}}}return X.origin=function(ue){return arguments.length?(N=ue,X):N},e.rebind(X,C,"on")};function We(){return e.event.changedTouches[0].identifier}e.touches=function(C,N){return arguments.length<2&&(N=K().touches),N?t(N).map(function(B){var H=Be(C,B);return H.identifier=B.identifier,H}):[]};var Xe=1e-6,tr=Xe*Xe,ir=Math.PI,je=2*ir,Ke=je-Xe,Ce=ir/2,Fe=ir/180,Qe=180/ir;function er(C){return C>0?1:C<0?-1:0}function wr(C,N,B){return(N[0]-C[0])*(B[1]-C[1])-(N[1]-C[1])*(B[0]-C[0])}function Vr(C){return C>1?0:C<-1?ir:Math.acos(C)}function Mr(C){return C>1?Ce:C<-1?-Ce:Math.asin(C)}function Dr(C){return((C=Math.exp(C))-1/C)/2}function Qr(C){return((C=Math.exp(C))+1/C)/2}function Sr(C){return((C=Math.exp(2*C))-1)/(C+1)}function Wr(C){return(C=Math.sin(C/2))*C}var bt=Math.SQRT2,Jr=2,lt=4;e.interpolateZoom=function(C,N){var B=C[0],H=C[1],X=C[2],W=N[0],ue=N[1],ne=N[2],fe=W-B,we=ue-H,Te=fe*fe+we*we,Re,De;if(Te<tr)De=Math.log(ne/X)/bt,Re=function(Ze){return[B+Ze*fe,H+Ze*we,X*Math.exp(bt*Ze*De)]};else{var Ge=Math.sqrt(Te),Je=(ne*ne-X*X+lt*Te)/(2*X*Jr*Ge),ze=(ne*ne-X*X-lt*Te)/(2*ne*Jr*Ge),Ne=Math.log(Math.sqrt(Je*Je+1)-Je),Ue=Math.log(Math.sqrt(ze*ze+1)-ze);De=(Ue-Ne)/bt,Re=function(Ze){var $e=Ze*De,He=Qr(Ne),ar=X/(Jr*Ge)*(He*Sr(bt*$e+Ne)-Dr(Ne));return[B+ar*fe,H+ar*we,X*He/Qr(bt*$e+Ne)]}}return Re.duration=De*1e3,Re},e.behavior.zoom=function(){var C={x:0,y:0,k:1},N,B,H,X=[960,500],W=Cn,ue=250,ne=0,fe="mousedown.zoom",we="mousemove.zoom",Te="mouseup.zoom",Re,De="touchstart.zoom",Ge,Je=j($e,"zoomstart","zoom","zoomend"),ze,Ne,Ue,Ze;Fr||(Fr="onwheel"in n?(lr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(lr=function(){return e.event.wheelDelta},"mousewheel"):(lr=function(){return-e.event.detail},"MozMousePixelScroll"));function $e(fr){fr.on(fe,Rr).on(Fr+".zoom",Jt).on("dblclick.zoom",yt).on(De,ut)}$e.event=function(fr){fr.each(function(){var qr=Je.of(this,arguments),Ur=C;Kl?e.select(this).transition().each("start.zoom",function(){C=this.__chart__||{x:0,y:0,k:1},br(qr)}).tween("zoom:zoom",function(){var ft=X[0],Ht=X[1],sn=B?B[0]:ft/2,Rn=B?B[1]:Ht/2,Jn=e.interpolateZoom([(sn-C.x)/C.k,(Rn-C.y)/C.k,ft/C.k],[(sn-Ur.x)/Ur.k,(Rn-Ur.y)/Ur.k,ft/Ur.k]);return function(la){var $n=Jn(la),pa=ft/$n[2];this.__chart__=C={x:sn-$n[0]*pa,y:Rn-$n[1]*pa,k:pa},Nr(qr)}}).each("interrupt.zoom",function(){_r(qr)}).each("end.zoom",function(){_r(qr)}):(this.__chart__=C,br(qr),Nr(qr),_r(qr))})},$e.translate=function(fr){return arguments.length?(C={x:+fr[0],y:+fr[1],k:C.k},mr(),$e):[C.x,C.y]},$e.scale=function(fr){return arguments.length?(C={x:C.x,y:C.y,k:null},vr(+fr),mr(),$e):C.k},$e.scaleExtent=function(fr){return arguments.length?(W=fr==null?Cn:[+fr[0],+fr[1]],$e):W},$e.center=function(fr){return arguments.length?(H=fr&&[+fr[0],+fr[1]],$e):H},$e.size=function(fr){return arguments.length?(X=fr&&[+fr[0],+fr[1]],$e):X},$e.duration=function(fr){return arguments.length?(ue=+fr,$e):ue},$e.x=function(fr){return arguments.length?(Ne=fr,ze=fr.copy(),C={x:0,y:0,k:1},$e):Ne},$e.y=function(fr){return arguments.length?(Ze=fr,Ue=fr.copy(),C={x:0,y:0,k:1},$e):Ze};function He(fr){return[(fr[0]-C.x)/C.k,(fr[1]-C.y)/C.k]}function ar(fr){return[fr[0]*C.k+C.x,fr[1]*C.k+C.y]}function vr(fr){C.k=Math.max(W[0],Math.min(W[1],fr))}function pr(fr,qr){qr=ar(qr),C.x+=fr[0]-qr[0],C.y+=fr[1]-qr[1]}function dr(fr,qr,Ur,ft){fr.__chart__={x:C.x,y:C.y,k:C.k},vr(Math.pow(2,ft)),pr(B=qr,Ur),fr=e.select(fr),ue>0&&(fr=fr.transition().duration(ue)),fr.call($e.event)}function mr(){Ne&&Ne.domain(ze.range().map(function(fr){return(fr-C.x)/C.k}).map(ze.invert)),Ze&&Ze.domain(Ue.range().map(function(fr){return(fr-C.y)/C.k}).map(Ue.invert))}function br(fr){ne++||fr({type:"zoomstart"})}function Nr(fr){mr(),fr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function _r(fr){--ne||(fr({type:"zoomend"}),B=null)}function Rr(){var fr=this,qr=Je.of(fr,arguments),Ur=0,ft=e.select(o(fr)).on(we,Rn).on(Te,Jn),Ht=He(e.mouse(fr)),sn=qe(fr);Dv.call(fr),br(qr);function Rn(){Ur=1,pr(e.mouse(fr),Ht),Nr(qr)}function Jn(){ft.on(we,null).on(Te,null),sn(Ur),_r(qr)}}function ut(){var fr=this,qr=Je.of(fr,arguments),Ur={},ft=0,Ht,sn=".zoom-"+e.event.changedTouches[0].identifier,Rn="touchmove"+sn,Jn="touchend"+sn,la=[],$n=e.select(fr),pa=qe(fr);ga(),br(qr),$n.on(fe,null).on(De,ga);function Fn(){var di=e.touches(fr);return Ht=C.k,di.forEach(function(Dn){Dn.identifier in Ur&&(Ur[Dn.identifier]=He(Dn))}),di}function ga(){var di=e.event.target;e.select(di).on(Rn,Ql).on(Jn,SY),la.push(di);for(var Dn=e.event.changedTouches,Ga=0,Gi=Dn.length;Ga<Gi;++Ga)Ur[Dn[Ga].identifier]=null;var Ya=Fn(),du=Date.now();if(Ya.length===1){if(du-Ge<500){var jl=Ya[0];dr(fr,jl,Ur[jl.identifier],Math.floor(Math.log(C.k)/Math.LN2)+1),V()}Ge=du}else if(Ya.length>1){var jl=Ya[0],$o=Ya[1],zv=jl[0]-$o[0],b_=jl[1]-$o[1];ft=zv*zv+b_*b_}}function Ql(){var di=e.touches(fr),Dn,Ga,Gi,Ya;Dv.call(fr);for(var du=0,jl=di.length;du<jl;++du,Ya=null)if(Gi=di[du],Ya=Ur[Gi.identifier]){if(Ga)break;Dn=Gi,Ga=Ya}if(Ya){var $o=($o=Gi[0]-Dn[0])*$o+($o=Gi[1]-Dn[1])*$o,zv=ft&&Math.sqrt($o/ft);Dn=[(Dn[0]+Gi[0])/2,(Dn[1]+Gi[1])/2],Ga=[(Ga[0]+Ya[0])/2,(Ga[1]+Ya[1])/2],vr(zv*Ht)}Ge=null,pr(Dn,Ga),Nr(qr)}function SY(){if(e.event.touches.length){for(var di=e.event.changedTouches,Dn=0,Ga=di.length;Dn<Ga;++Dn)delete Ur[di[Dn].identifier];for(var Gi in Ur)return void Fn()}e.selectAll(la).on(sn,null),$n.on(fe,Rr).on(De,ut),pa(),_r(qr)}}function Jt(){var fr=Je.of(this,arguments);Re?clearTimeout(Re):(Dv.call(this),N=He(B=H||e.mouse(this)),br(fr)),Re=setTimeout(function(){Re=null,_r(fr)},50),V(),vr(Math.pow(2,lr()*.002)*C.k),pr(B,N),Nr(fr)}function yt(){var fr=e.mouse(this),qr=Math.log(C.k)/Math.LN2;dr(this,fr,He(fr),e.event.shiftKey?Math.ceil(qr)-1:Math.floor(qr)+1)}return e.rebind($e,Je,"on")};var Cn=[0,1/0],lr,Fr;e.color=et;function et(){}et.prototype.toString=function(){return this.rgb()+""},e.hsl=Br;function Br(C,N,B){return this instanceof Br?(this.h=+C,this.s=+N,void(this.l=+B)):arguments.length<2?C instanceof Br?new Br(C.h,C.s,C.l):dv(""+C,pv,Br):new Br(C,N,B)}var Gr=Br.prototype=new et;Gr.brighter=function(C){return C=Math.pow(.7,arguments.length?C:1),new Br(this.h,this.s,this.l/C)},Gr.darker=function(C){return C=Math.pow(.7,arguments.length?C:1),new Br(this.h,this.s,C*this.l)},Gr.rgb=function(){return pt(this.h,this.s,this.l)};function pt(C,N,B){var H,X;C=isNaN(C)?0:(C%=360)<0?C+360:C,N=isNaN(N)||N<0?0:N>1?1:N,B=B<0?0:B>1?1:B,X=B<=.5?B*(1+N):B+N-B*N,H=2*B-X;function W(ne){return ne>360?ne-=360:ne<0&&(ne+=360),ne<60?H+(X-H)*ne/60:ne<180?X:ne<240?H+(X-H)*(240-ne)/60:H}function ue(ne){return Math.round(W(ne)*255)}return new dn(ue(C+120),ue(C),ue(C-120))}e.hcl=at;function at(C,N,B){return this instanceof at?(this.h=+C,this.c=+N,void(this.l=+B)):arguments.length<2?C instanceof at?new at(C.h,C.c,C.l):C instanceof St?Bi(C.l,C.a,C.b):Bi((C=gv((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new at(C,N,B)}var Ct=at.prototype=new et;Ct.brighter=function(C){return new at(this.h,this.c,Math.min(100,this.l+gt*(arguments.length?C:1)))},Ct.darker=function(C){return new at(this.h,this.c,Math.max(0,this.l-gt*(arguments.length?C:1)))},Ct.rgb=function(){return Zt(this.h,this.c,this.l).rgb()};function Zt(C,N,B){return isNaN(C)&&(C=0),isNaN(N)&&(N=0),new St(B,Math.cos(C*=Fe)*N,Math.sin(C)*N)}e.lab=St;function St(C,N,B){return this instanceof St?(this.l=+C,this.a=+N,void(this.b=+B)):arguments.length<2?C instanceof St?new St(C.l,C.a,C.b):C instanceof at?Zt(C.h,C.c,C.l):gv((C=dn(C)).r,C.g,C.b):new St(C,N,B)}var gt=18,Et=.95047,Lt=1,da=1.08883,Wn=St.prototype=new et;Wn.brighter=function(C){return new St(Math.min(100,this.l+gt*(arguments.length?C:1)),this.a,this.b)},Wn.darker=function(C){return new St(Math.max(0,this.l-gt*(arguments.length?C:1)),this.a,this.b)},Wn.rgb=function(){return Ua(this.l,this.a,this.b)};function Ua(C,N,B){var H=(C+16)/116,X=H+N/500,W=H-B/200;return X=xo(X)*Et,H=xo(H)*Lt,W=xo(W)*da,new dn(wo(3.2404542*X-1.5371385*H-.4985314*W),wo(-.969266*X+1.8760108*H+.041556*W),wo(.0556434*X-.2040259*H+1.0572252*W))}function Bi(C,N,B){return C>0?new at(Math.atan2(B,N)*Qe,Math.sqrt(N*N+B*B),C):new at(NaN,NaN,C)}function xo(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function _o(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function wo(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=dn;function dn(C,N,B){return this instanceof dn?(this.r=~~C,this.g=~~N,void(this.b=~~B)):arguments.length<2?C instanceof dn?new dn(C.r,C.g,C.b):dv(""+C,dn,pt):new dn(C,N,B)}function Wo(C){return new dn(C>>16,C>>8&255,C&255)}function Ui(C){return Wo(C)+""}var Hi=dn.prototype=new et;Hi.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var N=this.r,B=this.g,H=this.b,X=30;return!N&&!B&&!H?new dn(X,X,X):(N&&N<X&&(N=X),B&&B<X&&(B=X),H&&H<X&&(H=X),new dn(Math.min(255,N/C),Math.min(255,B/C),Math.min(255,H/C)))},Hi.darker=function(C){return C=Math.pow(.7,arguments.length?C:1),new dn(C*this.r,C*this.g,C*this.b)},Hi.hsl=function(){return pv(this.r,this.g,this.b)},Hi.toString=function(){return"#"+Zo(this.r)+Zo(this.g)+Zo(this.b)};function Zo(C){return C<16?"0"+Math.max(0,C).toString(16):Math.min(255,C).toString(16)}function dv(C,N,B){var H=0,X=0,W=0,ue,ne,fe;if(ue=/([a-z]+)\((.*)\)/.exec(C=C.toLowerCase()),ue)switch(ne=ue[2].split(","),ue[1]){case"hsl":return B(parseFloat(ne[0]),parseFloat(ne[1])/100,parseFloat(ne[2])/100);case"rgb":return N(Wf(ne[0]),Wf(ne[1]),Wf(ne[2]))}return(fe=Ar.get(C))?N(fe.r,fe.g,fe.b):(C!=null&&C.charAt(0)==="#"&&!isNaN(fe=parseInt(C.slice(1),16))&&(C.length===4?(H=(fe&3840)>>4,H=H>>4|H,X=fe&240,X=X>>4|X,W=fe&15,W=W<<4|W):C.length===7&&(H=(fe&16711680)>>16,X=(fe&65280)>>8,W=fe&255)),N(H,X,W))}function pv(C,N,B){var H=Math.min(C/=255,N/=255,B/=255),X=Math.max(C,N,B),W=X-H,ue,ne,fe=(X+H)/2;return W?(ne=fe<.5?W/(X+H):W/(2-X-H),C==X?ue=(N-B)/W+(N<B?6:0):N==X?ue=(B-C)/W+2:ue=(C-N)/W+4,ue*=60):(ue=NaN,ne=fe>0&&fe<1?0:ue),new Br(ue,ne,fe)}function gv(C,N,B){C=Xf(C),N=Xf(N),B=Xf(B);var H=_o((.4124564*C+.3575761*N+.1804375*B)/Et),X=_o((.2126729*C+.7151522*N+.072175*B)/Lt),W=_o((.0193339*C+.119192*N+.9503041*B)/da);return St(116*X-16,500*(H-X),200*(X-W))}function Xf(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function Wf(C){var N=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(N*2.55):N}var Ar=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});Ar.forEach(function(C,N){Ar.set(C,Wo(N))});function Tr(C){return typeof C=="function"?C:function(){return C}}e.functor=Tr,e.xhr=ht(F);function ht(C){return function(N,B,H){return arguments.length===2&&typeof B=="function"&&(H=B,B=null),hr(N,B,C,H)}}function hr(C,N,B,H){var X={},W=e.dispatch("beforesend","progress","load","error"),ue={},ne=new XMLHttpRequest,fe=null;self.XDomainRequest&&!("withCredentials"in ne)&&/^(http(s)?:)?\/\//.test(C)&&(ne=new XDomainRequest),"onload"in ne?ne.onload=ne.onerror=we:ne.onreadystatechange=function(){ne.readyState>3&&we()};function we(){var Te=ne.status,Re;if(!Te&&Rt(ne)||Te>=200&&Te<300||Te===304){try{Re=B.call(X,ne)}catch(De){W.error.call(X,De);return}W.load.call(X,Re)}else W.error.call(X,ne)}return ne.onprogress=function(Te){var Re=e.event;e.event=Te;try{W.progress.call(X,ne)}finally{e.event=Re}},X.header=function(Te,Re){return Te=(Te+"").toLowerCase(),arguments.length<2?ue[Te]:(Re==null?delete ue[Te]:ue[Te]=Re+"",X)},X.mimeType=function(Te){return arguments.length?(N=Te==null?null:Te+"",X):N},X.responseType=function(Te){return arguments.length?(fe=Te,X):fe},X.response=function(Te){return B=Te,X},["get","post"].forEach(function(Te){X[Te]=function(){return X.send.apply(X,[Te].concat(t(arguments)))}}),X.send=function(Te,Re,De){if(arguments.length===2&&typeof Re=="function"&&(De=Re,Re=null),ne.open(Te,C,!0),N!=null&&!("accept"in ue)&&(ue.accept=N+",*/*"),ne.setRequestHeader)for(var Ge in ue)ne.setRequestHeader(Ge,ue[Ge]);return N!=null&&ne.overrideMimeType&&ne.overrideMimeType(N),fe!=null&&(ne.responseType=fe),De!=null&&X.on("error",De).on("load",function(Je){De(null,Je)}),W.beforesend.call(X,ne),ne.send(Re==null?null:Re),X},X.abort=function(){return ne.abort(),X},e.rebind(X,W,"on"),H==null?X:X.get(Zn(H))}function Zn(C){return C.length===1?function(N,B){C(N==null?B:null)}:C}function Rt(C){var N=C.responseType;return N&&N!=="text"?C.response:C.responseText}e.dsv=function(C,N){var B=new RegExp('["'+C+`
]`),H=C.charCodeAt(0);function X(we,Te,Re){arguments.length<3&&(Re=Te,Te=null);var De=hr(we,N,Te==null?W:ue(Te),Re);return De.row=function(Ge){return arguments.length?De.response((Te=Ge)==null?W:ue(Ge)):Te},De}function W(we){return X.parse(we.responseText)}function ue(we){return function(Te){return X.parse(Te.responseText,we)}}X.parse=function(we,Te){var Re;return X.parseRows(we,function(De,Ge){if(Re)return Re(De,Ge-1);var Je=function(ze){for(var Ne={},Ue=De.length,Ze=0;Ze<Ue;++Ze)Ne[De[Ze]]=ze[Ze];return Ne};Re=Te?function(ze,Ne){return Te(Je(ze),Ne)}:Je})},X.parseRows=function(we,Te){var Re={},De={},Ge=[],Je=we.length,ze=0,Ne=0,Ue,Ze;function $e(){if(ze>=Je)return De;if(Ze)return Ze=!1,Re;var ar=ze;if(we.charCodeAt(ar)===34){for(var vr=ar;vr++<Je;)if(we.charCodeAt(vr)===34){if(we.charCodeAt(vr+1)!==34)break;++vr}ze=vr+2;var pr=we.charCodeAt(vr+1);return pr===13?(Ze=!0,we.charCodeAt(vr+2)===10&&++ze):pr===10&&(Ze=!0),we.slice(ar+1,vr).replace(/""/g,'"')}for(;ze<Je;){var pr=we.charCodeAt(ze++),dr=1;if(pr===10)Ze=!0;else if(pr===13)Ze=!0,we.charCodeAt(ze)===10&&(++ze,++dr);else if(pr!==H)continue;return we.slice(ar,ze-dr)}return we.slice(ar)}for(;(Ue=$e())!==De;){for(var He=[];Ue!==Re&&Ue!==De;)He.push(Ue),Ue=$e();Te&&(He=Te(He,Ne++))==null||Ge.push(He)}return Ge},X.format=function(we){if(Array.isArray(we[0]))return X.formatRows(we);var Te=new D,Re=[];return we.forEach(function(De){for(var Ge in De)Te.has(Ge)||Re.push(Te.add(Ge))}),[Re.map(fe).join(C)].concat(we.map(function(De){return Re.map(function(Ge){return fe(De[Ge])}).join(C)})).join(`
`)},X.formatRows=function(we){return we.map(ne).join(`
`)};function ne(we){return we.map(fe).join(C)}function fe(we){return B.test(we)?'"'+we.replace(/\"/g,'""')+'"':we}return X},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var En,Ln,Ha,Zl,i6=this[I(this,"requestAnimationFrame")]||function(C){setTimeout(C,17)};e.timer=function(){yv.apply(this,arguments)};function yv(C,N,B){var H=arguments.length;H<2&&(N=0),H<3&&(B=Date.now());var X=B+N,W={c:C,t:X,n:null};return Ln?Ln.n=W:En=W,Ln=W,Ha||(Zl=clearTimeout(Zl),Ha=1,i6(gg)),W}function gg(){var C=o6(),N=l6()-C;N>24?(isFinite(N)&&(clearTimeout(Zl),Zl=setTimeout(gg,N)),Ha=0):(Ha=1,i6(gg))}e.timer.flush=function(){o6(),l6()};function o6(){for(var C=Date.now(),N=En;N;)C>=N.t&&N.c(C-N.t)&&(N.c=null),N=N.n;return C}function l6(){for(var C,N=En,B=1/0;N;)N.c?(N.t<B&&(B=N.t),N=(C=N).n):N=C?C.n=N.n:En=N.n;return Ln=C,B}e.round=function(C,N){return N?Math.round(C*(N=Math.pow(10,N)))/N:Math.round(C)},e.geom={};function su(C){return C[0]}function Zf(C){return C[1]}e.geom.hull=function(C){var N=su,B=Zf;if(arguments.length)return H(C);function H(X){if(X.length<3)return[];var W=Tr(N),ue=Tr(B),ne,fe=X.length,we=[],Te=[];for(ne=0;ne<fe;ne++)we.push([+W.call(this,X[ne],ne),+ue.call(this,X[ne],ne),ne]);for(we.sort(LV),ne=0;ne<fe;ne++)Te.push([we[ne][0],-we[ne][1]]);var Re=s6(we),De=s6(Te),Ge=De[0]===Re[0],Je=De[De.length-1]===Re[Re.length-1],ze=[];for(ne=Re.length-1;ne>=0;--ne)ze.push(X[we[Re[ne]][2]]);for(ne=+Ge;ne<De.length-Je;++ne)ze.push(X[we[De[ne]][2]]);return ze}return H.x=function(X){return arguments.length?(N=X,H):N},H.y=function(X){return arguments.length?(B=X,H):B},H};function s6(C){for(var N=C.length,B=[0,1],H=2,X=2;X<N;X++){for(;H>1&&wr(C[B[H-2]],C[B[H-1]],C[X])<=0;)--H;B[H++]=X}return B.slice(0,H)}function LV(C,N){return C[0]-N[0]||C[1]-N[1]}e.geom.polygon=function(C){return q(C,mv),C};var mv=e.geom.polygon.prototype=[];mv.area=function(){for(var C=-1,N=this.length,B,H=this[N-1],X=0;++C<N;)B=H,H=this[C],X+=B[1]*H[0]-B[0]*H[1];return X*.5},mv.centroid=function(C){var N=-1,B=this.length,H=0,X=0,W,ue=this[B-1],ne;for(arguments.length||(C=-1/(6*this.area()));++N<B;)W=ue,ue=this[N],ne=W[0]*ue[1]-ue[0]*W[1],H+=(W[0]+ue[0])*ne,X+=(W[1]+ue[1])*ne;return[H*C,X*C]},mv.clip=function(C){for(var N,B=u6(C),H=-1,X=this.length-u6(this),W,ue,ne=this[X-1],fe,we,Te;++H<X;){for(N=C.slice(),C.length=0,fe=this[H],we=N[(ue=N.length-B)-1],W=-1;++W<ue;)Te=N[W],yg(Te,ne,fe)?(yg(we,ne,fe)||C.push(mg(we,Te,ne,fe)),C.push(Te)):yg(we,ne,fe)&&C.push(mg(we,Te,ne,fe)),we=Te;B&&C.push(C[0]),ne=fe}return C};function yg(C,N,B){return(B[0]-N[0])*(C[1]-N[1])<(B[1]-N[1])*(C[0]-N[0])}function mg(C,N,B,H){var X=C[0],W=B[0],ue=N[0]-X,ne=H[0]-W,fe=C[1],we=B[1],Te=N[1]-fe,Re=H[1]-we,De=(ne*(fe-we)-Re*(X-W))/(Re*ue-ne*Te);return[X+De*ue,fe+De*Te]}function u6(C){var N=C[0],B=C[C.length-1];return!(N[0]-B[0]||N[1]-B[1])}var uu,Jl,fu,f6=[],bg,Jf,c6=[];function RV(){_v(this),this.edge=this.site=this.circle=null}function v6(C){var N=f6.pop()||new RV;return N.site=C,N}function xg(C){vu(C),fu.remove(C),f6.push(C),_v(C)}function DV(C){var N=C.circle,B=N.x,H=N.cy,X={x:B,y:H},W=C.P,ue=C.N,ne=[C];xg(C);for(var fe=W;fe.circle&&m(B-fe.circle.x)<Xe&&m(H-fe.circle.cy)<Xe;)W=fe.P,ne.unshift(fe),xg(fe),fe=W;ne.unshift(fe),vu(fe);for(var we=ue;we.circle&&m(B-we.circle.x)<Xe&&m(H-we.circle.cy)<Xe;)ue=we.N,ne.push(we),xg(we),we=ue;ne.push(we),vu(we);var Te=ne.length,Re;for(Re=1;Re<Te;++Re)we=ne[Re],fe=ne[Re-1],bv(we.edge,fe.site,we.site,X);fe=ne[0],we=ne[Te-1],we.edge=$f(fe.site,we.site,null,X),cu(fe),cu(we)}function PV(C){for(var N=C.x,B=C.y,H,X,W,ue,ne=fu._;ne;)if(W=h6(ne,B)-N,W>Xe)ne=ne.L;else if(ue=N-IV(ne,B),ue>Xe){if(!ne.R){H=ne;break}ne=ne.R}else{W>-Xe?(H=ne.P,X=ne):ue>-Xe?(H=ne,X=ne.N):H=X=ne;break}var fe=v6(C);if(fu.insert(H,fe),!(!H&&!X)){if(H===X){vu(H),X=v6(H.site),fu.insert(fe,X),fe.edge=X.edge=$f(H.site,fe.site),cu(H),cu(X);return}if(!X){fe.edge=$f(H.site,fe.site);return}vu(H),vu(X);var we=H.site,Te=we.x,Re=we.y,De=C.x-Te,Ge=C.y-Re,Je=X.site,ze=Je.x-Te,Ne=Je.y-Re,Ue=2*(De*Ne-Ge*ze),Ze=De*De+Ge*Ge,$e=ze*ze+Ne*Ne,He={x:(Ne*Ze-Ge*$e)/Ue+Te,y:(De*$e-ze*Ze)/Ue+Re};bv(X.edge,we,Je,He),fe.edge=$f(we,C,null,He),X.edge=$f(C,Je,null,He),cu(H),cu(X)}}function h6(C,N){var B=C.site,H=B.x,X=B.y,W=X-N;if(!W)return H;var ue=C.P;if(!ue)return-1/0;B=ue.site;var ne=B.x,fe=B.y,we=fe-N;if(!we)return ne;var Te=ne-H,Re=1/W-1/we,De=Te/we;return Re?(-De+Math.sqrt(De*De-2*Re*(Te*Te/(-2*we)-fe+we/2+X-W/2)))/Re+H:(H+ne)/2}function IV(C,N){var B=C.N;if(B)return h6(B,N);var H=C.site;return H.y===N?H.x:1/0}function d6(C){this.site=C,this.edges=[]}d6.prototype.prepare=function(){for(var C=this.edges,N=C.length,B;N--;)B=C[N].edge,(!B.b||!B.a)&&C.splice(N,1);return C.sort(p6),C.length};function zV(C){for(var N=C[0][0],B=C[1][0],H=C[0][1],X=C[1][1],W,ue,ne,fe,we=Jl,Te=we.length,Re,De,Ge,Je,ze,Ne;Te--;)if(Re=we[Te],!(!Re||!Re.prepare()))for(Ge=Re.edges,Je=Ge.length,De=0;De<Je;)Ne=Ge[De].end(),ne=Ne.x,fe=Ne.y,ze=Ge[++De%Je].start(),W=ze.x,ue=ze.y,(m(ne-W)>Xe||m(fe-ue)>Xe)&&(Ge.splice(De,0,new xv(BV(Re.site,Ne,m(ne-N)<Xe&&X-fe>Xe?{x:N,y:m(W-N)<Xe?ue:X}:m(fe-X)<Xe&&B-ne>Xe?{x:m(ue-X)<Xe?W:B,y:X}:m(ne-B)<Xe&&fe-H>Xe?{x:B,y:m(W-B)<Xe?ue:H}:m(fe-H)<Xe&&ne-N>Xe?{x:m(ue-H)<Xe?W:N,y:H}:null),Re.site,null)),++Je)}function p6(C,N){return N.angle-C.angle}function FV(){_v(this),this.x=this.y=this.arc=this.site=this.cy=null}function cu(C){var N=C.P,B=C.N;if(!(!N||!B)){var H=N.site,X=C.site,W=B.site;if(H!==W){var ue=X.x,ne=X.y,fe=H.x-ue,we=H.y-ne,Te=W.x-ue,Ne=W.y-ne,Re=2*(fe*Ne-we*Te);if(!(Re>=-tr)){var De=fe*fe+we*we,Ge=Te*Te+Ne*Ne,Je=(Ne*De-we*Ge)/Re,ze=(fe*Ge-Te*De)/Re,Ne=ze+ne,Ue=c6.pop()||new FV;Ue.arc=C,Ue.site=X,Ue.x=Je+ue,Ue.y=Ne+Math.sqrt(Je*Je+ze*ze),Ue.cy=Ne,C.circle=Ue;for(var Ze=null,$e=Jf._;$e;)if(Ue.y<$e.y||Ue.y===$e.y&&Ue.x<=$e.x)if($e.L)$e=$e.L;else{Ze=$e.P;break}else if($e.R)$e=$e.R;else{Ze=$e;break}Jf.insert(Ze,Ue),Ze||(bg=Ue)}}}}function vu(C){var N=C.circle;N&&(N.P||(bg=N.N),Jf.remove(N),c6.push(N),_v(N),C.circle=null)}function NV(C,N,B,H){return function(X){var W=X.a,ue=X.b,ne=W.x,fe=W.y,we=ue.x,Te=ue.y,Re=0,De=1,Ge=we-ne,Je=Te-fe,ze;if(ze=C-ne,!(!Ge&&ze>0)){if(ze/=Ge,Ge<0){if(ze<Re)return;ze<De&&(De=ze)}else if(Ge>0){if(ze>De)return;ze>Re&&(Re=ze)}if(ze=B-ne,!(!Ge&&ze<0)){if(ze/=Ge,Ge<0){if(ze>De)return;ze>Re&&(Re=ze)}else if(Ge>0){if(ze<Re)return;ze<De&&(De=ze)}if(ze=N-fe,!(!Je&&ze>0)){if(ze/=Je,Je<0){if(ze<Re)return;ze<De&&(De=ze)}else if(Je>0){if(ze>De)return;ze>Re&&(Re=ze)}if(ze=H-fe,!(!Je&&ze<0)){if(ze/=Je,Je<0){if(ze>De)return;ze>Re&&(Re=ze)}else if(Je>0){if(ze<Re)return;ze<De&&(De=ze)}return Re>0&&(X.a={x:ne+Re*Ge,y:fe+Re*Je}),De<1&&(X.b={x:ne+De*Ge,y:fe+De*Je}),X}}}}}}function qV(C){for(var N=uu,B=NV(C[0][0],C[0][1],C[1][0],C[1][1]),H=N.length,X;H--;)X=N[H],(!OV(X,C)||!B(X)||m(X.a.x-X.b.x)<Xe&&m(X.a.y-X.b.y)<Xe)&&(X.a=X.b=null,N.splice(H,1))}function OV(C,N){var B=C.b;if(B)return!0;var H=C.a,X=N[0][0],W=N[1][0],ue=N[0][1],ne=N[1][1],fe=C.l,we=C.r,Te=fe.x,Re=fe.y,De=we.x,Ge=we.y,Je=(Te+De)/2,ze=(Re+Ge)/2,Ne,Ue;if(Ge===Re){if(Je<X||Je>=W)return;if(Te>De){if(!H)H={x:Je,y:ue};else if(H.y>=ne)return;B={x:Je,y:ne}}else{if(!H)H={x:Je,y:ne};else if(H.y<ue)return;B={x:Je,y:ue}}}else if(Ne=(Te-De)/(Ge-Re),Ue=ze-Ne*Je,Ne<-1||Ne>1)if(Te>De){if(!H)H={x:(ue-Ue)/Ne,y:ue};else if(H.y>=ne)return;B={x:(ne-Ue)/Ne,y:ne}}else{if(!H)H={x:(ne-Ue)/Ne,y:ne};else if(H.y<ue)return;B={x:(ue-Ue)/Ne,y:ue}}else if(Re<Ge){if(!H)H={x:X,y:Ne*X+Ue};else if(H.x>=W)return;B={x:W,y:Ne*W+Ue}}else{if(!H)H={x:W,y:Ne*W+Ue};else if(H.x<X)return;B={x:X,y:Ne*X+Ue}}return C.a=H,C.b=B,!0}function g6(C,N){this.l=C,this.r=N,this.a=this.b=null}function $f(C,N,B,H){var X=new g6(C,N);return uu.push(X),B&&bv(X,C,N,B),H&&bv(X,N,C,H),Jl[C.i].edges.push(new xv(X,C,N)),Jl[N.i].edges.push(new xv(X,N,C)),X}function BV(C,N,B){var H=new g6(C,null);return H.a=N,H.b=B,uu.push(H),H}function bv(C,N,B,H){!C.a&&!C.b?(C.a=H,C.l=N,C.r=B):C.l===B?C.b=H:C.a=H}function xv(C,N,B){var H=C.a,X=C.b;this.edge=C,this.site=N,this.angle=B?Math.atan2(B.y-N.y,B.x-N.x):C.l===N?Math.atan2(X.x-H.x,H.y-X.y):Math.atan2(H.x-X.x,X.y-H.y)}xv.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 _g(){this._=null}function _v(C){C.U=C.C=C.L=C.R=C.P=C.N=null}_g.prototype={insert:function(C,N){var B,H,X;if(C){if(N.P=C,N.N=C.N,C.N&&(C.N.P=N),C.N=N,C.R){for(C=C.R;C.L;)C=C.L;C.L=N}else C.R=N;B=C}else this._?(C=y6(this._),N.P=null,N.N=C,C.P=C.L=N,B=C):(N.P=N.N=null,this._=N,B=null);for(N.L=N.R=null,N.U=B,N.C=!0,C=N;B&&B.C;)H=B.U,B===H.L?(X=H.R,X&&X.C?(B.C=X.C=!1,H.C=!0,C=H):(C===B.R&&(Kf(this,B),C=B,B=C.U),B.C=!1,H.C=!0,Qf(this,H))):(X=H.L,X&&X.C?(B.C=X.C=!1,H.C=!0,C=H):(C===B.L&&(Qf(this,B),C=B,B=C.U),B.C=!1,H.C=!0,Kf(this,H))),B=C.U;this._.C=!1},remove:function(C){C.N&&(C.N.P=C.P),C.P&&(C.P.N=C.N),C.N=C.P=null;var N=C.U,B,H=C.L,X=C.R,W,ue;if(H?X?W=y6(X):W=H:W=X,N?N.L===C?N.L=W:N.R=W:this._=W,H&&X?(ue=W.C,W.C=C.C,W.L=H,H.U=W,W!==X?(N=W.U,W.U=C.U,C=W.R,N.L=C,W.R=X,X.U=W):(W.U=N,N=W,C=W.R)):(ue=C.C,C=W),C&&(C.U=N),!ue){if(C&&C.C){C.C=!1;return}do{if(C===this._)break;if(C===N.L){if(B=N.R,B.C&&(B.C=!1,N.C=!0,Kf(this,N),B=N.R),B.L&&B.L.C||B.R&&B.R.C){(!B.R||!B.R.C)&&(B.L.C=!1,B.C=!0,Qf(this,B),B=N.R),B.C=N.C,N.C=B.R.C=!1,Kf(this,N),C=this._;break}}else if(B=N.L,B.C&&(B.C=!1,N.C=!0,Qf(this,N),B=N.L),B.L&&B.L.C||B.R&&B.R.C){(!B.L||!B.L.C)&&(B.R.C=!1,B.C=!0,Kf(this,B),B=N.L),B.C=N.C,N.C=B.L.C=!1,Qf(this,N),C=this._;break}B.C=!0,C=N,N=N.U}while(!C.C);C&&(C.C=!1)}}};function Kf(C,N){var B=N,H=N.R,X=B.U;X?X.L===B?X.L=H:X.R=H:C._=H,H.U=X,B.U=H,B.R=H.L,B.R&&(B.R.U=B),H.L=B}function Qf(C,N){var B=N,H=N.L,X=B.U;X?X.L===B?X.L=H:X.R=H:C._=H,H.U=X,B.U=H,B.L=H.R,B.L&&(B.L.U=B),H.R=B}function y6(C){for(;C.L;)C=C.L;return C}function wg(C,N){var B=C.sort(UV).pop(),H,X,W;for(uu=[],Jl=new Array(C.length),fu=new _g,Jf=new _g;;)if(W=bg,B&&(!W||B.y<W.y||B.y===W.y&&B.x<W.x))(B.x!==H||B.y!==X)&&(Jl[B.i]=new d6(B),PV(B),H=B.x,X=B.y),B=C.pop();else if(W)DV(W.arc);else break;N&&(qV(N),zV(N));var ue={cells:Jl,edges:uu};return fu=Jf=uu=Jl=null,ue}function UV(C,N){return N.y-C.y||N.x-C.x}e.geom.voronoi=function(C){var N=su,B=Zf,H=N,X=B,W=wv;if(C)return ue(C);function ue(fe){var we=new Array(fe.length),Te=W[0][0],Re=W[0][1],De=W[1][0],Ge=W[1][1];return wg(ne(fe),W).cells.forEach(function(Je,ze){var Ne=Je.edges,Ue=Je.site,Ze=we[ze]=Ne.length?Ne.map(function($e){var He=$e.start();return[He.x,He.y]}):Ue.x>=Te&&Ue.x<=De&&Ue.y>=Re&&Ue.y<=Ge?[[Te,Ge],[De,Ge],[De,Re],[Te,Re]]:[];Ze.point=fe[ze]}),we}function ne(fe){return fe.map(function(we,Te){return{x:Math.round(H(we,Te)/Xe)*Xe,y:Math.round(X(we,Te)/Xe)*Xe,i:Te}})}return ue.links=function(fe){return wg(ne(fe)).edges.filter(function(we){return we.l&&we.r}).map(function(we){return{source:fe[we.l.i],target:fe[we.r.i]}})},ue.triangles=function(fe){var we=[];return wg(ne(fe)).cells.forEach(function(Te,Re){for(var De=Te.site,Ge=Te.edges.sort(p6),Je=-1,ze=Ge.length,Ne,Ue,Ze=Ge[ze-1].edge,$e=Ze.l===De?Ze.r:Ze.l;++Je<ze;)Ne=Ze,Ue=$e,Ze=Ge[Je].edge,$e=Ze.l===De?Ze.r:Ze.l,Re<Ue.i&&Re<$e.i&&HV(De,Ue,$e)<0&&we.push([fe[Re],fe[Ue.i],fe[$e.i]])}),we},ue.x=function(fe){return arguments.length?(H=Tr(N=fe),ue):N},ue.y=function(fe){return arguments.length?(X=Tr(B=fe),ue):B},ue.clipExtent=function(fe){return arguments.length?(W=fe==null?wv:fe,ue):W===wv?null:W},ue.size=function(fe){return arguments.length?ue.clipExtent(fe&&[[0,0],fe]):W===wv?null:W&&W[1]},ue};var wv=[[-1e6,-1e6],[1e6,1e6]];function HV(C,N,B){return(C.x-B.x)*(N.y-C.y)-(C.x-N.x)*(B.y-C.y)}e.geom.delaunay=function(C){return e.geom.voronoi().triangles(C)},e.geom.quadtree=function(C,N,B,H,X){var W=su,ue=Zf,ne;if(ne=arguments.length)return W=VV,ue=GV,ne===3&&(X=B,H=N,B=N=0),fe(C);function fe(we){var Te,Re=Tr(W),De=Tr(ue),Ge,Je,ze,Ne,Ue,Ze,$e,He;if(N!=null)Ue=N,Ze=B,$e=H,He=X;else if($e=He=-(Ue=Ze=1/0),Ge=[],Je=[],Ne=we.length,ne)for(ze=0;ze<Ne;++ze)Te=we[ze],Te.x<Ue&&(Ue=Te.x),Te.y<Ze&&(Ze=Te.y),Te.x>$e&&($e=Te.x),Te.y>He&&(He=Te.y),Ge.push(Te.x),Je.push(Te.y);else for(ze=0;ze<Ne;++ze){var ar=+Re(Te=we[ze],ze),vr=+De(Te,ze);ar<Ue&&(Ue=ar),vr<Ze&&(Ze=vr),ar>$e&&($e=ar),vr>He&&(He=vr),Ge.push(ar),Je.push(vr)}var pr=$e-Ue,dr=He-Ze;pr>dr?He=Ze+pr:$e=Ue+dr;function mr(_r,Rr,ut,Jt,yt,fr,qr,Ur){if(!(isNaN(ut)||isNaN(Jt)))if(_r.leaf){var ft=_r.x,Ht=_r.y;if(ft!=null)if(m(ft-ut)+m(Ht-Jt)<.01)br(_r,Rr,ut,Jt,yt,fr,qr,Ur);else{var sn=_r.point;_r.x=_r.y=_r.point=null,br(_r,sn,ft,Ht,yt,fr,qr,Ur),br(_r,Rr,ut,Jt,yt,fr,qr,Ur)}else _r.x=ut,_r.y=Jt,_r.point=Rr}else br(_r,Rr,ut,Jt,yt,fr,qr,Ur)}function br(_r,Rr,ut,Jt,yt,fr,qr,Ur){var ft=(yt+qr)*.5,Ht=(fr+Ur)*.5,sn=ut>=ft,Rn=Jt>=Ht,Jn=Rn<<1|sn;_r.leaf=!1,_r=_r.nodes[Jn]||(_r.nodes[Jn]=m6()),sn?yt=ft:qr=ft,Rn?fr=Ht:Ur=Ht,mr(_r,Rr,ut,Jt,yt,fr,qr,Ur)}var Nr=m6();if(Nr.add=function(_r){mr(Nr,_r,+Re(_r,++ze),+De(_r,ze),Ue,Ze,$e,He)},Nr.visit=function(_r){jf(_r,Nr,Ue,Ze,$e,He)},Nr.find=function(_r){return YV(Nr,_r[0],_r[1],Ue,Ze,$e,He)},ze=-1,N==null){for(;++ze<Ne;)mr(Nr,we[ze],Ge[ze],Je[ze],Ue,Ze,$e,He);--ze}else we.forEach(Nr.add);return Ge=Je=we=Te=null,Nr}return fe.x=function(we){return arguments.length?(W=we,fe):W},fe.y=function(we){return arguments.length?(ue=we,fe):ue},fe.extent=function(we){return arguments.length?(we==null?N=B=H=X=null:(N=+we[0][0],B=+we[0][1],H=+we[1][0],X=+we[1][1]),fe):N==null?null:[[N,B],[H,X]]},fe.size=function(we){return arguments.length?(we==null?N=B=H=X=null:(N=B=0,H=+we[0],X=+we[1]),fe):N==null?null:[H-N,X-B]},fe};function VV(C){return C.x}function GV(C){return C.y}function m6(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function jf(C,N,B,H,X,W){if(!C(N,B,H,X,W)){var ue=(B+X)*.5,ne=(H+W)*.5,fe=N.nodes;fe[0]&&jf(C,fe[0],B,H,ue,ne),fe[1]&&jf(C,fe[1],ue,H,X,ne),fe[2]&&jf(C,fe[2],B,ne,ue,W),fe[3]&&jf(C,fe[3],ue,ne,X,W)}}function YV(C,N,B,H,X,W,ue){var ne=1/0,fe;return(function we(Te,Re,De,Ge,Je){if(!(Re>W||De>ue||Ge<H||Je<X)){if(ze=Te.point){var ze,Ne=N-Te.x,Ue=B-Te.y,Ze=Ne*Ne+Ue*Ue;if(Ze<ne){var $e=Math.sqrt(ne=Ze);H=N-$e,X=B-$e,W=N+$e,ue=B+$e,fe=ze}}for(var He=Te.nodes,ar=(Re+Ge)*.5,vr=(De+Je)*.5,pr=N>=ar,dr=B>=vr,mr=dr<<1|pr,br=mr+4;mr<br;++mr)if(Te=He[mr&3])switch(mr&3){case 0:we(Te,Re,De,ar,vr);break;case 1:we(Te,ar,De,Ge,vr);break;case 2:we(Te,Re,vr,ar,Je);break;case 3:we(Te,ar,vr,Ge,Je);break}}})(C,H,X,W,ue),fe}e.interpolateRgb=Mg;function Mg(C,N){C=e.rgb(C),N=e.rgb(N);var B=C.r,H=C.g,X=C.b,W=N.r-B,ue=N.g-H,ne=N.b-X;return function(fe){return"#"+Zo(Math.round(B+W*fe))+Zo(Math.round(H+ue*fe))+Zo(Math.round(X+ne*fe))}}e.interpolateObject=b6;function b6(C,N){var B={},H={},X;for(X in C)X in N?B[X]=$l(C[X],N[X]):H[X]=C[X];for(X in N)X in C||(H[X]=N[X]);return function(W){for(X in B)H[X]=B[X](W);return H}}e.interpolateNumber=Mo;function Mo(C,N){return C=+C,N=+N,function(B){return C*(1-B)+N*B}}e.interpolateString=x6;function x6(C,N){var B=Tg.lastIndex=Ag.lastIndex=0,H,X,W,ue=-1,ne=[],fe=[];for(C=C+"",N=N+"";(H=Tg.exec(C))&&(X=Ag.exec(N));)(W=X.index)>B&&(W=N.slice(B,W),ne[ue]?ne[ue]+=W:ne[++ue]=W),(H=H[0])===(X=X[0])?ne[ue]?ne[ue]+=X:ne[++ue]=X:(ne[++ue]=null,fe.push({i:ue,x:Mo(H,X)})),B=Ag.lastIndex;return B<N.length&&(W=N.slice(B),ne[ue]?ne[ue]+=W:ne[++ue]=W),ne.length<2?fe[0]?(N=fe[0].x,function(we){return N(we)+""}):function(){return N}:(N=fe.length,function(we){for(var Te=0,Re;Te<N;++Te)ne[(Re=fe[Te]).i]=Re.x(we);return ne.join("")})}var Tg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ag=new RegExp(Tg.source,"g");e.interpolate=$l;function $l(C,N){for(var B=e.interpolators.length,H;--B>=0&&!(H=e.interpolators[B](C,N)););return H}e.interpolators=[function(C,N){var B=typeof N;return(B==="string"?Ar.has(N.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(N)?Mg:x6:N instanceof et?Mg:Array.isArray(N)?Mv:B==="object"&&isNaN(N)?b6:Mo)(C,N)}],e.interpolateArray=Mv;function Mv(C,N){var B=[],H=[],X=C.length,W=N.length,ue=Math.min(C.length,N.length),ne;for(ne=0;ne<ue;++ne)B.push($l(C[ne],N[ne]));for(;ne<X;++ne)H[ne]=C[ne];for(;ne<W;++ne)H[ne]=N[ne];return function(fe){for(ne=0;ne<ue;++ne)H[ne]=B[ne](fe);return H}}var _6=function(){return F},XV=e.map({linear:_6,poly:QV,quad:function(){return JV},cubic:function(){return $V},sin:function(){return jV},exp:function(){return eG},circle:function(){return rG},elastic:tG,back:nG,bounce:function(){return aG}}),WV=e.map({in:F,out:w6,"in-out":M6,"out-in":function(C){return M6(w6(C))}});e.ease=function(C){var N=C.indexOf("-"),B=N>=0?C.slice(0,N):C,H=N>=0?C.slice(N+1):"in";return B=XV.get(B)||_6,H=WV.get(H)||F,ZV(H(B.apply(null,r.call(arguments,1))))};function ZV(C){return function(N){return N<=0?0:N>=1?1:C(N)}}function w6(C){return function(N){return 1-C(1-N)}}function M6(C){return function(N){return .5*(N<.5?C(2*N):2-C(2-2*N))}}function JV(C){return C*C}function $V(C){return C*C*C}function KV(C){if(C<=0)return 0;if(C>=1)return 1;var N=C*C,B=N*C;return 4*(C<.5?B:3*(C-N)+B-.75)}function QV(C){return function(N){return Math.pow(N,C)}}function jV(C){return 1-Math.cos(C*Ce)}function eG(C){return Math.pow(2,10*(C-1))}function rG(C){return 1-Math.sqrt(1-C*C)}function tG(C,N){var B;return arguments.length<2&&(N=.45),arguments.length?B=N/je*Math.asin(1/C):(C=1,B=N/4),function(H){return 1+C*Math.pow(2,-10*H)*Math.sin((H-B)*je/N)}}function nG(C){return C||(C=1.70158),function(N){return N*N*((C+1)*N-C)}}function aG(C){return C<1/2.75?7.5625*C*C:C<2/2.75?7.5625*(C-=1.5/2.75)*C+.75:C<2.5/2.75?7.5625*(C-=2.25/2.75)*C+.9375:7.5625*(C-=2.625/2.75)*C+.984375}e.interpolateHcl=iG;function iG(C,N){C=e.hcl(C),N=e.hcl(N);var B=C.h,H=C.c,X=C.l,W=N.h-B,ue=N.c-H,ne=N.l-X;return isNaN(ue)&&(ue=0,H=isNaN(H)?N.c:H),isNaN(W)?(W=0,B=isNaN(B)?N.h:B):W>180?W-=360:W<-180&&(W+=360),function(fe){return Zt(B+W*fe,H+ue*fe,X+ne*fe)+""}}e.interpolateHsl=oG;function oG(C,N){C=e.hsl(C),N=e.hsl(N);var B=C.h,H=C.s,X=C.l,W=N.h-B,ue=N.s-H,ne=N.l-X;return isNaN(ue)&&(ue=0,H=isNaN(H)?N.s:H),isNaN(W)?(W=0,B=isNaN(B)?N.h:B):W>180?W-=360:W<-180&&(W+=360),function(fe){return pt(B+W*fe,H+ue*fe,X+ne*fe)+""}}e.interpolateLab=lG;function lG(C,N){C=e.lab(C),N=e.lab(N);var B=C.l,H=C.a,X=C.b,W=N.l-B,ue=N.a-H,ne=N.b-X;return function(fe){return Ua(B+W*fe,H+ue*fe,X+ne*fe)+""}}e.interpolateRound=T6;function T6(C,N){return N-=C,function(B){return Math.round(C+N*B)}}e.transform=function(C){var N=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(B){if(B!=null){N.setAttribute("transform",B);var H=N.transform.baseVal.consolidate()}return new A6(H?H.matrix:uG)})(C)};function A6(C){var N=[C.a,C.b],B=[C.c,C.d],H=S6(N),X=k6(N,B),W=S6(sG(B,N,-X))||0;N[0]*B[1]<B[0]*N[1]&&(N[0]*=-1,N[1]*=-1,H*=-1,X*=-1),this.rotate=(H?Math.atan2(N[1],N[0]):Math.atan2(-B[0],B[1]))*Qe,this.translate=[C.e,C.f],this.scale=[H,W],this.skew=W?Math.atan2(X,W)*Qe:0}A6.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function k6(C,N){return C[0]*N[0]+C[1]*N[1]}function S6(C){var N=Math.sqrt(k6(C,C));return N&&(C[0]/=N,C[1]/=N),N}function sG(C,N,B){return C[0]+=B*N[0],C[1]+=B*N[1],C}var uG={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=C6;function hu(C){return C.length?C.pop()+",":""}function fG(C,N,B,H){if(C[0]!==N[0]||C[1]!==N[1]){var X=B.push("translate(",null,",",null,")");H.push({i:X-4,x:Mo(C[0],N[0])},{i:X-2,x:Mo(C[1],N[1])})}else(N[0]||N[1])&&B.push("translate("+N+")")}function cG(C,N,B,H){C!==N?(C-N>180?N+=360:N-C>180&&(C+=360),H.push({i:B.push(hu(B)+"rotate(",null,")")-2,x:Mo(C,N)})):N&&B.push(hu(B)+"rotate("+N+")")}function vG(C,N,B,H){C!==N?H.push({i:B.push(hu(B)+"skewX(",null,")")-2,x:Mo(C,N)}):N&&B.push(hu(B)+"skewX("+N+")")}function hG(C,N,B,H){if(C[0]!==N[0]||C[1]!==N[1]){var X=B.push(hu(B)+"scale(",null,",",null,")");H.push({i:X-4,x:Mo(C[0],N[0])},{i:X-2,x:Mo(C[1],N[1])})}else(N[0]!==1||N[1]!==1)&&B.push(hu(B)+"scale("+N+")")}function C6(C,N){var B=[],H=[];return C=e.transform(C),N=e.transform(N),fG(C.translate,N.translate,B,H),cG(C.rotate,N.rotate,B,H),vG(C.skew,N.skew,B,H),hG(C.scale,N.scale,B,H),C=N=null,function(X){for(var W=-1,ue=H.length,ne;++W<ue;)B[(ne=H[W]).i]=ne.x(X);return B.join("")}}function dG(C,N){return N=(N-=C=+C)||1/N,function(B){return(B-C)/N}}function pG(C,N){return N=(N-=C=+C)||1/N,function(B){return Math.max(0,Math.min(1,(B-C)/N))}}e.layout={},e.layout.bundle=function(){return function(C){for(var N=[],B=-1,H=C.length;++B<H;)N.push(gG(C[B]));return N}};function gG(C){for(var N=C.source,B=C.target,H=yG(N,B),X=[N];N!==H;)N=N.parent,X.push(N);for(var W=X.length;B!==H;)X.splice(W,0,B),B=B.parent;return X}function E6(C){for(var N=[],B=C.parent;B!=null;)N.push(C),C=B,B=B.parent;return N.push(C),N}function yG(C,N){if(C===N)return C;for(var B=E6(C),H=E6(N),X=B.pop(),W=H.pop(),ue=null;X===W;)ue=X,X=B.pop(),W=H.pop();return ue}e.layout.chord=function(){var C={},N,B,H,X,W=0,ue,ne,fe;function we(){var Re={},De=[],Ge=e.range(X),Je=[],ze,Ne,Ue,Ze,$e;for(N=[],B=[],ze=0,Ze=-1;++Ze<X;){for(Ne=0,$e=-1;++$e<X;)Ne+=H[Ze][$e];De.push(Ne),Je.push(e.range(X)),ze+=Ne}for(ue&&Ge.sort(function(Nr,_r){return ue(De[Nr],De[_r])}),ne&&Je.forEach(function(Nr,_r){Nr.sort(function(Rr,ut){return ne(H[_r][Rr],H[_r][ut])})}),ze=(je-W*X)/ze,Ne=0,Ze=-1;++Ze<X;){for(Ue=Ne,$e=-1;++$e<X;){var He=Ge[Ze],ar=Je[He][$e],vr=H[He][ar],pr=Ne,dr=Ne+=vr*ze;Re[He+"-"+ar]={index:He,subindex:ar,startAngle:pr,endAngle:dr,value:vr}}B[He]={index:He,startAngle:Ue,endAngle:Ne,value:De[He]},Ne+=W}for(Ze=-1;++Ze<X;)for($e=Ze-1;++$e<X;){var mr=Re[Ze+"-"+$e],br=Re[$e+"-"+Ze];(mr.value||br.value)&&N.push(mr.value<br.value?{source:br,target:mr}:{source:mr,target:br})}fe&&Te()}function Te(){N.sort(function(Re,De){return fe((Re.source.value+Re.target.value)/2,(De.source.value+De.target.value)/2)})}return C.matrix=function(Re){return arguments.length?(X=(H=Re)&&H.length,N=B=null,C):H},C.padding=function(Re){return arguments.length?(W=Re,N=B=null,C):W},C.sortGroups=function(Re){return arguments.length?(ue=Re,N=B=null,C):ue},C.sortSubgroups=function(Re){return arguments.length?(ne=Re,N=null,C):ne},C.sortChords=function(Re){return arguments.length?(fe=Re,N&&Te(),C):fe},C.chords=function(){return N||we(),N},C.groups=function(){return B||we(),B},C},e.layout.force=function(){var C={},N=e.dispatch("start","tick","end"),B,H=[1,1],X,W,ue=.9,ne=wG,fe=MG,we=-30,Te=TG,Re=.1,De=.64,Ge=[],Je=[],ze,Ne,Ue;function Ze(He){return function(ar,vr,pr,dr){if(ar.point!==He){var mr=ar.cx-He.x,br=ar.cy-He.y,Nr=dr-vr,_r=mr*mr+br*br;if(Nr*Nr/De<_r){if(_r<Te){var Rr=ar.charge/_r;He.px-=mr*Rr,He.py-=br*Rr}return!0}if(ar.point&&_r&&_r<Te){var Rr=ar.pointCharge/_r;He.px-=mr*Rr,He.py-=br*Rr}}return!ar.charge}}C.tick=function(){if((W*=.99)<.005)return B=null,N.end({type:"end",alpha:W=0}),!0;var He=Ge.length,ar=Je.length,vr,pr,dr,mr,br,Nr,_r,Rr,ut;for(pr=0;pr<ar;++pr)dr=Je[pr],mr=dr.source,br=dr.target,Rr=br.x-mr.x,ut=br.y-mr.y,(Nr=Rr*Rr+ut*ut)&&(Nr=W*Ne[pr]*((Nr=Math.sqrt(Nr))-ze[pr])/Nr,Rr*=Nr,ut*=Nr,br.x-=Rr*(_r=mr.weight+br.weight?mr.weight/(mr.weight+br.weight):.5),br.y-=ut*_r,mr.x+=Rr*(_r=1-_r),mr.y+=ut*_r);if((_r=W*Re)&&(Rr=H[0]/2,ut=H[1]/2,pr=-1,_r))for(;++pr<He;)dr=Ge[pr],dr.x+=(Rr-dr.x)*_r,dr.y+=(ut-dr.y)*_r;if(we)for(L6(vr=e.geom.quadtree(Ge),W,Ue),pr=-1;++pr<He;)(dr=Ge[pr]).fixed||vr.visit(Ze(dr));for(pr=-1;++pr<He;)dr=Ge[pr],dr.fixed?(dr.x=dr.px,dr.y=dr.py):(dr.x-=(dr.px-(dr.px=dr.x))*ue,dr.y-=(dr.py-(dr.py=dr.y))*ue);N.tick({type:"tick",alpha:W})},C.nodes=function(He){return arguments.length?(Ge=He,C):Ge},C.links=function(He){return arguments.length?(Je=He,C):Je},C.size=function(He){return arguments.length?(H=He,C):H},C.linkDistance=function(He){return arguments.length?(ne=typeof He=="function"?He:+He,C):ne},C.distance=C.linkDistance,C.linkStrength=function(He){return arguments.length?(fe=typeof He=="function"?He:+He,C):fe},C.friction=function(He){return arguments.length?(ue=+He,C):ue},C.charge=function(He){return arguments.length?(we=typeof He=="function"?He:+He,C):we},C.chargeDistance=function(He){return arguments.length?(Te=He*He,C):Math.sqrt(Te)},C.gravity=function(He){return arguments.length?(Re=+He,C):Re},C.theta=function(He){return arguments.length?(De=He*He,C):Math.sqrt(De)},C.alpha=function(He){return arguments.length?(He=+He,W?He>0?W=He:(B.c=null,B.t=NaN,B=null,N.end({type:"end",alpha:W=0})):He>0&&(N.start({type:"start",alpha:W=He}),B=yv(C.tick)),C):W},C.start=function(){var He,ar=Ge.length,vr=Je.length,pr=H[0],dr=H[1],mr,br;for(He=0;He<ar;++He)(br=Ge[He]).index=He,br.weight=0;for(He=0;He<vr;++He)br=Je[He],typeof br.source=="number"&&(br.source=Ge[br.source]),typeof br.target=="number"&&(br.target=Ge[br.target]),++br.source.weight,++br.target.weight;for(He=0;He<ar;++He)br=Ge[He],isNaN(br.x)&&(br.x=Nr("x",pr)),isNaN(br.y)&&(br.y=Nr("y",dr)),isNaN(br.px)&&(br.px=br.x),isNaN(br.py)&&(br.py=br.y);if(ze=[],typeof ne=="function")for(He=0;He<vr;++He)ze[He]=+ne.call(this,Je[He],He);else for(He=0;He<vr;++He)ze[He]=ne;if(Ne=[],typeof fe=="function")for(He=0;He<vr;++He)Ne[He]=+fe.call(this,Je[He],He);else for(He=0;He<vr;++He)Ne[He]=fe;if(Ue=[],typeof we=="function")for(He=0;He<ar;++He)Ue[He]=+we.call(this,Ge[He],He);else for(He=0;He<ar;++He)Ue[He]=we;function Nr(_r,Rr){if(!mr){for(mr=new Array(ar),yt=0;yt<ar;++yt)mr[yt]=[];for(yt=0;yt<vr;++yt){var ut=Je[yt];mr[ut.source.index].push(ut.target),mr[ut.target.index].push(ut.source)}}for(var Jt=mr[He],yt=-1,fr=Jt.length,qr;++yt<fr;)if(!isNaN(qr=Jt[yt][_r]))return qr;return Math.random()*Rr}return C.resume()},C.resume=function(){return C.alpha(.1)},C.stop=function(){return C.alpha(0)},C.drag=function(){if(X||(X=e.behavior.drag().origin(F).on("dragstart.force",mG).on("drag.force",$e).on("dragend.force",bG)),!arguments.length)return X;this.on("mouseover.force",xG).on("mouseout.force",_G).call(X)};function $e(He){He.px=e.event.x,He.py=e.event.y,C.resume()}return e.rebind(C,N,"on")};function mG(C){C.fixed|=2}function bG(C){C.fixed&=-7}function xG(C){C.fixed|=4,C.px=C.x,C.py=C.y}function _G(C){C.fixed&=-5}function L6(C,N,B){var H=0,X=0;if(C.charge=0,!C.leaf)for(var W=C.nodes,ue=W.length,ne=-1,fe;++ne<ue;)fe=W[ne],fe!=null&&(L6(fe,N,B),C.charge+=fe.charge,H+=fe.charge*fe.cx,X+=fe.charge*fe.cy);if(C.point){C.leaf||(C.point.x+=Math.random()-.5,C.point.y+=Math.random()-.5);var we=N*B[C.point.index];C.charge+=C.pointCharge=we,H+=we*C.point.x,X+=we*C.point.y}C.cx=H/C.charge,C.cy=X/C.charge}var wG=20,MG=1,TG=1/0;e.layout.hierarchy=function(){var C=SG,N=AG,B=kG;function H(X){var W=[X],ue=[],ne;for(X.depth=0;(ne=W.pop())!=null;)if(ue.push(ne),(we=N.call(H,ne,ne.depth))&&(fe=we.length)){for(var fe,we,Te;--fe>=0;)W.push(Te=we[fe]),Te.parent=ne,Te.depth=ne.depth+1;B&&(ne.value=0),ne.children=we}else B&&(ne.value=+B.call(H,ne,ne.depth)||0),delete ne.children;return Vi(X,function(Re){var De,Ge;C&&(De=Re.children)&&De.sort(C),B&&(Ge=Re.parent)&&(Ge.value+=Re.value)}),ue}return H.sort=function(X){return arguments.length?(C=X,H):C},H.children=function(X){return arguments.length?(N=X,H):N},H.value=function(X){return arguments.length?(B=X,H):B},H.revalue=function(X){return B&&(r0(X,function(W){W.children&&(W.value=0)}),Vi(X,function(W){var ue;W.children||(W.value=+B.call(H,W,W.depth)||0),(ue=W.parent)&&(ue.value+=W.value)})),X},H};function e0(C,N){return e.rebind(C,N,"sort","children","value"),C.nodes=C,C.links=CG,C}function r0(C,N){for(var B=[C];(C=B.pop())!=null;)if(N(C),(X=C.children)&&(H=X.length))for(var H,X;--H>=0;)B.push(X[H])}function Vi(C,N){for(var B=[C],H=[];(C=B.pop())!=null;)if(H.push(C),(ue=C.children)&&(W=ue.length))for(var X=-1,W,ue;++X<W;)B.push(ue[X]);for(;(C=H.pop())!=null;)N(C)}function AG(C){return C.children}function kG(C){return C.value}function SG(C,N){return N.value-C.value}function CG(C){return e.merge(C.map(function(N){return(N.children||[]).map(function(B){return{source:N,target:B}})}))}e.layout.partition=function(){var C=e.layout.hierarchy(),N=[1,1];function B(W,ue,ne,fe){var we=W.children;if(W.x=ue,W.y=W.depth*fe,W.dx=ne,W.dy=fe,we&&(Re=we.length)){var Te=-1,Re,De,Ge;for(ne=W.value?ne/W.value:0;++Te<Re;)B(De=we[Te],ue,Ge=De.value*ne,fe),ue+=Ge}}function H(W){var ue=W.children,ne=0;if(ue&&(we=ue.length))for(var fe=-1,we;++fe<we;)ne=Math.max(ne,H(ue[fe]));return 1+ne}function X(W,ue){var ne=C.call(this,W,ue);return B(ne[0],0,N[0],N[1]/H(ne[0])),ne}return X.size=function(W){return arguments.length?(N=W,X):N},e0(X,C)},e.layout.pie=function(){var C=Number,N=R6,B=0,H=je,X=0;function W(ue){var ne=ue.length,fe=ue.map(function(Ze,$e){return+C.call(W,Ze,$e)}),we=+(typeof B=="function"?B.apply(this,arguments):B),Te=(typeof H=="function"?H.apply(this,arguments):H)-we,Re=Math.min(Math.abs(Te)/ne,+(typeof X=="function"?X.apply(this,arguments):X)),De=Re*(Te<0?-1:1),Ge=e.sum(fe),Je=Ge?(Te-ne*De)/Ge:0,ze=e.range(ne),Ne=[],Ue;return N!=null&&ze.sort(N===R6?function(Ze,$e){return fe[$e]-fe[Ze]}:function(Ze,$e){return N(ue[Ze],ue[$e])}),ze.forEach(function(Ze){Ne[Ze]={data:ue[Ze],value:Ue=fe[Ze],startAngle:we,endAngle:we+=Ue*Je+De,padAngle:Re}}),Ne}return W.value=function(ue){return arguments.length?(C=ue,W):C},W.sort=function(ue){return arguments.length?(N=ue,W):N},W.startAngle=function(ue){return arguments.length?(B=ue,W):B},W.endAngle=function(ue){return arguments.length?(H=ue,W):H},W.padAngle=function(ue){return arguments.length?(X=ue,W):X},W};var R6={};e.layout.stack=function(){var C=F,N=kg,B=Sg,H=RG,X=EG,W=LG;function ue(ne,fe){if(!(Je=ne.length))return ne;var we=ne.map(function(Ze,$e){return C.call(ue,Ze,$e)}),Te=we.map(function(Ze){return Ze.map(function($e,He){return[X.call(ue,$e,He),W.call(ue,$e,He)]})}),Re=N.call(ue,Te,fe);we=e.permute(we,Re),Te=e.permute(Te,Re);var De=B.call(ue,Te,fe),Ge=we[0].length,Je,ze,Ne,Ue;for(Ne=0;Ne<Ge;++Ne)for(H.call(ue,we[0][Ne],Ue=De[Ne],Te[0][Ne][1]),ze=1;ze<Je;++ze)H.call(ue,we[ze][Ne],Ue+=Te[ze-1][Ne][1],Te[ze][Ne][1]);return ne}return ue.values=function(ne){return arguments.length?(C=ne,ue):C},ue.order=function(ne){return arguments.length?(N=typeof ne=="function"?ne:DG.get(ne)||kg,ue):N},ue.offset=function(ne){return arguments.length?(B=typeof ne=="function"?ne:PG.get(ne)||Sg,ue):B},ue.x=function(ne){return arguments.length?(X=ne,ue):X},ue.y=function(ne){return arguments.length?(W=ne,ue):W},ue.out=function(ne){return arguments.length?(H=ne,ue):H},ue};function EG(C){return C.x}function LG(C){return C.y}function RG(C,N,B){C.y0=N,C.y=B}var DG=e.map({"inside-out":function(C){var N=C.length,B,H,X=C.map(IG),W=C.map(zG),ue=e.range(N).sort(function(Re,De){return X[Re]-X[De]}),ne=0,fe=0,we=[],Te=[];for(B=0;B<N;++B)H=ue[B],ne<fe?(ne+=W[H],we.push(H)):(fe+=W[H],Te.push(H));return Te.reverse().concat(we)},reverse:function(C){return e.range(C.length).reverse()},default:kg}),PG=e.map({silhouette:function(C){var N=C.length,B=C[0].length,H=[],X=0,W,ue,ne,fe=[];for(ue=0;ue<B;++ue){for(W=0,ne=0;W<N;W++)ne+=C[W][ue][1];ne>X&&(X=ne),H.push(ne)}for(ue=0;ue<B;++ue)fe[ue]=(X-H[ue])/2;return fe},wiggle:function(C){var N=C.length,B=C[0],H=B.length,X,W,ue,ne,fe,we,Te,Re,De,Ge=[];for(Ge[0]=Re=De=0,W=1;W<H;++W){for(X=0,ne=0;X<N;++X)ne+=C[X][W][1];for(X=0,fe=0,Te=B[W][0]-B[W-1][0];X<N;++X){for(ue=0,we=(C[X][W][1]-C[X][W-1][1])/(2*Te);ue<X;++ue)we+=(C[ue][W][1]-C[ue][W-1][1])/Te;fe+=we*C[X][W][1]}Ge[W]=Re-=ne?fe/ne*Te:0,Re<De&&(De=Re)}for(W=0;W<H;++W)Ge[W]-=De;return Ge},expand:function(C){var N=C.length,B=C[0].length,H=1/N,X,W,ue,ne=[];for(W=0;W<B;++W){for(X=0,ue=0;X<N;X++)ue+=C[X][W][1];if(ue)for(X=0;X<N;X++)C[X][W][1]/=ue;else for(X=0;X<N;X++)C[X][W][1]=H}for(W=0;W<B;++W)ne[W]=0;return ne},zero:Sg});function kg(C){return e.range(C.length)}function Sg(C){for(var N=-1,B=C[0].length,H=[];++N<B;)H[N]=0;return H}function IG(C){for(var N=1,B=0,H=C[0][1],X,W=C.length;N<W;++N)(X=C[N][1])>H&&(B=N,H=X);return B}function zG(C){return C.reduce(FG,0)}function FG(C,N){return C+N[1]}e.layout.histogram=function(){var C=!0,N=Number,B=qG,H=NG;function X(W,De){for(var ne=[],fe=W.map(N,this),we=B.call(this,fe,De),Te=H.call(this,we,fe,De),Re,De=-1,Ge=fe.length,Je=Te.length-1,ze=C?1:1/Ge,Ne;++De<Je;)Re=ne[De]=[],Re.dx=Te[De+1]-(Re.x=Te[De]),Re.y=0;if(Je>0)for(De=-1;++De<Ge;)Ne=fe[De],Ne>=we[0]&&Ne<=we[1]&&(Re=ne[e.bisect(Te,Ne,1,Je)-1],Re.y+=ze,Re.push(W[De]));return ne}return X.value=function(W){return arguments.length?(N=W,X):N},X.range=function(W){return arguments.length?(B=Tr(W),X):B},X.bins=function(W){return arguments.length?(H=typeof W=="number"?function(ue){return D6(ue,W)}:Tr(W),X):H},X.frequency=function(W){return arguments.length?(C=!!W,X):C},X};function NG(C,N){return D6(C,Math.ceil(Math.log(N.length)/Math.LN2+1))}function D6(C,N){for(var B=-1,H=+C[0],X=(C[1]-H)/N,W=[];++B<=N;)W[B]=X*B+H;return W}function qG(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(OG),N=0,B=[1,1],H;function X(W,ue){var ne=C.call(this,W,ue),fe=ne[0],we=B[0],Te=B[1],Re=H==null?Math.sqrt:typeof H=="function"?H:function(){return H};if(fe.x=fe.y=0,Vi(fe,function(Ge){Ge.r=+Re(Ge.value)}),Vi(fe,z6),N){var De=N*(H?1:Math.max(2*fe.r/we,2*fe.r/Te))/2;Vi(fe,function(Ge){Ge.r+=De}),Vi(fe,z6),Vi(fe,function(Ge){Ge.r-=De})}return F6(fe,we/2,Te/2,H?1:1/Math.max(2*fe.r/we,2*fe.r/Te)),ne}return X.size=function(W){return arguments.length?(B=W,X):B},X.radius=function(W){return arguments.length?(H=W==null||typeof W=="function"?W:+W,X):H},X.padding=function(W){return arguments.length?(N=+W,X):N},e0(X,C)};function OG(C,N){return C.value-N.value}function Cg(C,N){var B=C._pack_next;C._pack_next=N,N._pack_prev=C,N._pack_next=B,B._pack_prev=N}function P6(C,N){C._pack_next=N,N._pack_prev=C}function I6(C,N){var B=N.x-C.x,H=N.y-C.y,X=C.r+N.r;return .999*X*X>B*B+H*H}function z6(C){if(!(N=C.children)||!(De=N.length))return;var N,B=1/0,H=-1/0,X=1/0,W=-1/0,ue,ne,fe,we,Te,Re,De;function Ge(He){B=Math.min(He.x-He.r,B),H=Math.max(He.x+He.r,H),X=Math.min(He.y-He.r,X),W=Math.max(He.y+He.r,W)}if(N.forEach(BG),ue=N[0],ue.x=-ue.r,ue.y=0,Ge(ue),De>1&&(ne=N[1],ne.x=ne.r,ne.y=0,Ge(ne),De>2))for(fe=N[2],N6(ue,ne,fe),Ge(fe),Cg(ue,fe),ue._pack_prev=fe,Cg(fe,ne),ne=ue._pack_next,we=3;we<De;we++){N6(ue,ne,fe=N[we]);var Je=0,ze=1,Ne=1;for(Te=ne._pack_next;Te!==ne;Te=Te._pack_next,ze++)if(I6(Te,fe)){Je=1;break}if(Je==1)for(Re=ue._pack_prev;Re!==Te._pack_prev&&!I6(Re,fe);Re=Re._pack_prev,Ne++);Je?(ze<Ne||ze==Ne&&ne.r<ue.r?P6(ue,ne=Te):P6(ue=Re,ne),we--):(Cg(ue,fe),ne=fe,Ge(fe))}var Ue=(B+H)/2,Ze=(X+W)/2,$e=0;for(we=0;we<De;we++)fe=N[we],fe.x-=Ue,fe.y-=Ze,$e=Math.max($e,fe.r+Math.sqrt(fe.x*fe.x+fe.y*fe.y));C.r=$e,N.forEach(UG)}function BG(C){C._pack_next=C._pack_prev=C}function UG(C){delete C._pack_next,delete C._pack_prev}function F6(C,N,B,H){var X=C.children;if(C.x=N+=H*C.x,C.y=B+=H*C.y,C.r*=H,X)for(var W=-1,ue=X.length;++W<ue;)F6(X[W],N,B,H)}function N6(C,N,B){var H=C.r+B.r,X=N.x-C.x,W=N.y-C.y;if(H&&(X||W)){var ue=N.r+B.r,ne=X*X+W*W;ue*=ue,H*=H;var fe=.5+(H-ue)/(2*ne),we=Math.sqrt(Math.max(0,2*ue*(H+ne)-(H-=ne)*H-ue*ue))/(2*ne);B.x=C.x+fe*X+we*W,B.y=C.y+fe*W-we*X}else B.x=C.x+H,B.y=C.y}e.layout.tree=function(){var C=e.layout.hierarchy().sort(null).value(null),N=q6,B=[1,1],H=null;function X(Te,Re){var De=C.call(this,Te,Re),Ge=De[0],Je=W(Ge);if(Vi(Je,ue),Je.parent.m=-Je.z,r0(Je,ne),H)r0(Ge,we);else{var ze=Ge,Ne=Ge,Ue=Ge;r0(Ge,function(ar){ar.x<ze.x&&(ze=ar),ar.x>Ne.x&&(Ne=ar),ar.depth>Ue.depth&&(Ue=ar)});var Ze=N(ze,Ne)/2-ze.x,$e=B[0]/(Ne.x+N(Ne,ze)/2+Ze),He=B[1]/(Ue.depth||1);r0(Ge,function(ar){ar.x=(ar.x+Ze)*$e,ar.y=ar.depth*He})}return De}function W(Te){for(var Re={A:null,children:[Te]},De=[Re],Ge;(Ge=De.pop())!=null;)for(var Je=Ge.children,ze,Ne=0,Ue=Je.length;Ne<Ue;++Ne)De.push((Je[Ne]=ze={_:Je[Ne],parent:Ge,children:(ze=Je[Ne].children)&&ze.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Ne}).a=ze);return Re.children[0]}function ue(Te){var Re=Te.children,De=Te.parent.children,Ge=Te.i?De[Te.i-1]:null;if(Re.length){VG(Te);var Je=(Re[0].z+Re[Re.length-1].z)/2;Ge?(Te.z=Ge.z+N(Te._,Ge._),Te.m=Te.z-Je):Te.z=Je}else Ge&&(Te.z=Ge.z+N(Te._,Ge._));Te.parent.A=fe(Te,Ge,Te.parent.A||De[0])}function ne(Te){Te._.x=Te.z+Te.parent.m,Te.m+=Te.parent.m}function fe(Te,Re,De){if(Re){for(var Ge=Te,Je=Te,ze=Re,Ne=Ge.parent.children[0],Ue=Ge.m,Ze=Je.m,$e=ze.m,He=Ne.m,ar;ze=Lg(ze),Ge=Eg(Ge),ze&&Ge;)Ne=Eg(Ne),Je=Lg(Je),Je.a=Te,ar=ze.z+$e-Ge.z-Ue+N(ze._,Ge._),ar>0&&(HG(GG(ze,Te,De),Te,ar),Ue+=ar,Ze+=ar),$e+=ze.m,Ue+=Ge.m,He+=Ne.m,Ze+=Je.m;ze&&!Lg(Je)&&(Je.t=ze,Je.m+=$e-Ze),Ge&&!Eg(Ne)&&(Ne.t=Ge,Ne.m+=Ue-He,De=Te)}return De}function we(Te){Te.x*=B[0],Te.y=Te.depth*B[1]}return X.separation=function(Te){return arguments.length?(N=Te,X):N},X.size=function(Te){return arguments.length?(H=(B=Te)==null?we:null,X):H?null:B},X.nodeSize=function(Te){return arguments.length?(H=(B=Te)==null?null:we,X):H?B:null},e0(X,C)};function q6(C,N){return C.parent==N.parent?1:2}function Eg(C){var N=C.children;return N.length?N[0]:C.t}function Lg(C){var N=C.children,B;return(B=N.length)?N[B-1]:C.t}function HG(C,N,B){var H=B/(N.i-C.i);N.c-=H,N.s+=B,C.c+=H,N.z+=B,N.m+=B}function VG(C){for(var N=0,B=0,H=C.children,X=H.length,W;--X>=0;)W=H[X],W.z+=N,W.m+=N,N+=W.s+(B+=W.c)}function GG(C,N,B){return C.a.parent===N.parent?C.a:B}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),N=q6,B=[1,1],H=!1;function X(W,ue){var ne=C.call(this,W,ue),fe=ne[0],we,Te=0;Vi(fe,function(ze){var Ne=ze.children;Ne&&Ne.length?(ze.x=XG(Ne),ze.y=YG(Ne)):(ze.x=we?Te+=N(ze,we):0,ze.y=0,we=ze)});var Re=O6(fe),De=B6(fe),Ge=Re.x-N(Re,De)/2,Je=De.x+N(De,Re)/2;return Vi(fe,H?function(ze){ze.x=(ze.x-fe.x)*B[0],ze.y=(fe.y-ze.y)*B[1]}:function(ze){ze.x=(ze.x-Ge)/(Je-Ge)*B[0],ze.y=(1-(fe.y?ze.y/fe.y:1))*B[1]}),ne}return X.separation=function(W){return arguments.length?(N=W,X):N},X.size=function(W){return arguments.length?(H=(B=W)==null,X):H?null:B},X.nodeSize=function(W){return arguments.length?(H=(B=W)!=null,X):H?B:null},e0(X,C)};function YG(C){return 1+e.max(C,function(N){return N.y})}function XG(C){return C.reduce(function(N,B){return N+B.x},0)/C.length}function O6(C){var N=C.children;return N&&N.length?O6(N[0]):C}function B6(C){var N=C.children,B;return N&&(B=N.length)?B6(N[B-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),N=Math.round,B=[1,1],H=null,X=Rg,W=!1,ue,ne="squarify",fe=.5*(1+Math.sqrt(5));function we(ze,Ne){for(var Ue=-1,Ze=ze.length,$e,He;++Ue<Ze;)He=($e=ze[Ue]).value*(Ne<0?0:Ne),$e.area=isNaN(He)||He<=0?0:He}function Te(ze){var Ne=ze.children;if(Ne&&Ne.length){var Ue=X(ze),Ze=[],$e=Ne.slice(),He,ar=1/0,vr,pr=ne==="slice"?Ue.dx:ne==="dice"?Ue.dy:ne==="slice-dice"?ze.depth&1?Ue.dy:Ue.dx:Math.min(Ue.dx,Ue.dy),dr;for(we($e,Ue.dx*Ue.dy/ze.value),Ze.area=0;(dr=$e.length)>0;)Ze.push(He=$e[dr-1]),Ze.area+=He.area,ne!=="squarify"||(vr=De(Ze,pr))<=ar?($e.pop(),ar=vr):(Ze.area-=Ze.pop().area,Ge(Ze,pr,Ue,!1),pr=Math.min(Ue.dx,Ue.dy),Ze.length=Ze.area=0,ar=1/0);Ze.length&&(Ge(Ze,pr,Ue,!0),Ze.length=Ze.area=0),Ne.forEach(Te)}}function Re(ze){var Ne=ze.children;if(Ne&&Ne.length){var Ue=X(ze),Ze=Ne.slice(),$e,He=[];for(we(Ze,Ue.dx*Ue.dy/ze.value),He.area=0;$e=Ze.pop();)He.push($e),He.area+=$e.area,$e.z!=null&&(Ge(He,$e.z?Ue.dx:Ue.dy,Ue,!Ze.length),He.length=He.area=0);Ne.forEach(Re)}}function De(ze,Ne){for(var Ue=ze.area,Ze,$e=0,He=1/0,ar=-1,vr=ze.length;++ar<vr;)(Ze=ze[ar].area)&&(Ze<He&&(He=Ze),Ze>$e&&($e=Ze));return Ue*=Ue,Ne*=Ne,Ue?Math.max(Ne*$e*fe/Ue,Ue/(Ne*He*fe)):1/0}function Ge(ze,Ne,Ue,Ze){var $e=-1,He=ze.length,ar=Ue.x,vr=Ue.y,pr=Ne?N(ze.area/Ne):0,dr;if(Ne==Ue.dx){for((Ze||pr>Ue.dy)&&(pr=Ue.dy);++$e<He;)dr=ze[$e],dr.x=ar,dr.y=vr,dr.dy=pr,ar+=dr.dx=Math.min(Ue.x+Ue.dx-ar,pr?N(dr.area/pr):0);dr.z=!0,dr.dx+=Ue.x+Ue.dx-ar,Ue.y+=pr,Ue.dy-=pr}else{for((Ze||pr>Ue.dx)&&(pr=Ue.dx);++$e<He;)dr=ze[$e],dr.x=ar,dr.y=vr,dr.dx=pr,vr+=dr.dy=Math.min(Ue.y+Ue.dy-vr,pr?N(dr.area/pr):0);dr.z=!1,dr.dy+=Ue.y+Ue.dy-vr,Ue.x+=pr,Ue.dx-=pr}}function Je(ze){var Ne=ue||C(ze),Ue=Ne[0];return Ue.x=Ue.y=0,Ue.value?(Ue.dx=B[0],Ue.dy=B[1]):Ue.dx=Ue.dy=0,ue&&C.revalue(Ue),we([Ue],Ue.dx*Ue.dy/Ue.value),(ue?Re:Te)(Ue),W&&(ue=Ne),Ne}return Je.size=function(ze){return arguments.length?(B=ze,Je):B},Je.padding=function(ze){if(!arguments.length)return H;function Ne($e){var He=ze.call(Je,$e,$e.depth);return He==null?Rg($e):U6($e,typeof He=="number"?[He,He,He,He]:He)}function Ue($e){return U6($e,ze)}var Ze;return X=(H=ze)==null?Rg:(Ze=typeof ze)=="function"?Ne:(Ze==="number"&&(ze=[ze,ze,ze,ze]),Ue),Je},Je.round=function(ze){return arguments.length?(N=ze?Math.round:Number,Je):N!=Number},Je.sticky=function(ze){return arguments.length?(W=ze,ue=null,Je):W},Je.ratio=function(ze){return arguments.length?(fe=ze,Je):fe},Je.mode=function(ze){return arguments.length?(ne=ze+"",Je):ne},e0(Je,C)};function Rg(C){return{x:C.x,y:C.y,dx:C.dx,dy:C.dy}}function U6(C,N){var B=C.x+N[3],H=C.y+N[0],X=C.dx-N[1]-N[3],W=C.dy-N[0]-N[2];return X<0&&(B+=X/2,X=0),W<0&&(H+=W/2,W=0),{x:B,y:H,dx:X,dy:W}}e.random={normal:function(C,N){var B=arguments.length;return B<2&&(N=1),B<1&&(C=0),function(){var H,X,W;do H=Math.random()*2-1,X=Math.random()*2-1,W=H*H+X*X;while(!W||W>1);return C+N*H*Math.sqrt(-2*Math.log(W)/W)}},logNormal:function(){var C=e.random.normal.apply(e,arguments);return function(){return Math.exp(C())}},bates:function(C){var N=e.random.irwinHall(C);return function(){return N()/C}},irwinHall:function(C){return function(){for(var N=0,B=0;B<C;B++)N+=Math.random();return N}}},e.scale={};function Tv(C){var N=C[0],B=C[C.length-1];return N<B?[N,B]:[B,N]}function Av(C){return C.rangeExtent?C.rangeExtent():Tv(C.range())}function WG(C,N,B,H){var X=B(C[0],C[1]),W=H(N[0],N[1]);return function(ue){return W(X(ue))}}function Dg(C,N){var B=0,H=C.length-1,X=C[B],W=C[H],ue;return W<X&&(ue=B,B=H,H=ue,ue=X,X=W,W=ue),C[B]=N.floor(X),C[H]=N.ceil(W),C}function H6(C){return C?{floor:function(N){return Math.floor(N/C)*C},ceil:function(N){return Math.ceil(N/C)*C}}:ZG}var ZG={floor:F,ceil:F};function JG(C,N,B,H){var X=[],W=[],ue=0,ne=Math.min(C.length,N.length)-1;for(C[ne]<C[0]&&(C=C.slice().reverse(),N=N.slice().reverse());++ue<=ne;)X.push(B(C[ue-1],C[ue])),W.push(H(N[ue-1],N[ue]));return function(fe){var we=e.bisect(C,fe,1,ne)-1;return W[we](X[we](fe))}}e.scale.linear=function(){return V6([0,1],[0,1],$l,!1)};function V6(C,N,B,H){var X,W;function ue(){var fe=Math.min(C.length,N.length)>2?JG:WG,we=H?pG:dG;return X=fe(C,N,we,B),W=fe(N,C,we,$l),ne}function ne(fe){return X(fe)}return ne.invert=function(fe){return W(fe)},ne.domain=function(fe){return arguments.length?(C=fe.map(Number),ue()):C},ne.range=function(fe){return arguments.length?(N=fe,ue()):N},ne.rangeRound=function(fe){return ne.range(fe).interpolate(T6)},ne.clamp=function(fe){return arguments.length?(H=fe,ue()):H},ne.interpolate=function(fe){return arguments.length?(B=fe,ue()):B},ne.ticks=function(fe){return Ig(C,fe)},ne.tickFormat=function(fe,we){return d3_scale_linearTickFormat(C,fe,we)},ne.nice=function(fe){return Y6(C,fe),ue()},ne.copy=function(){return V6(C,N,B,H)},ue()}function G6(C,N){return e.rebind(C,N,"range","rangeRound","interpolate","clamp")}function Y6(C,N){return Dg(C,H6(Pg(C,N)[2])),Dg(C,H6(Pg(C,N)[2])),C}function Pg(C,N){N==null&&(N=10);var B=Tv(C),H=B[1]-B[0],X=Math.pow(10,Math.floor(Math.log(H/N)/Math.LN10)),W=N/H*X;return W<=.15?X*=10:W<=.35?X*=5:W<=.75&&(X*=2),B[0]=Math.ceil(B[0]/X)*X,B[1]=Math.floor(B[1]/X)*X+X*.5,B[2]=X,B}function Ig(C,N){return e.range.apply(e,Pg(C,N))}var $G={s:1,g:1,p:1,r:1,e:1};function X6(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function bye(C,N){var B=X6(N[2]);return C in $G?Math.abs(B-X6(Math.max(m(N[0]),m(N[1]))))+ +(C!=="e"):B-(C==="%")*2}e.scale.log=function(){return W6(e.scale.linear().domain([0,1]),10,!0,[1,10])};function W6(C,N,B,H){function X(ne){return(B?Math.log(ne<0?0:ne):-Math.log(ne>0?0:-ne))/Math.log(N)}function W(ne){return B?Math.pow(N,ne):-Math.pow(N,-ne)}function ue(ne){return C(X(ne))}return ue.invert=function(ne){return W(C.invert(ne))},ue.domain=function(ne){return arguments.length?(B=ne[0]>=0,C.domain((H=ne.map(Number)).map(X)),ue):H},ue.base=function(ne){return arguments.length?(N=+ne,C.domain(H.map(X)),ue):N},ue.nice=function(){var ne=Dg(H.map(X),B?Math:KG);return C.domain(ne),H=ne.map(W),ue},ue.ticks=function(){var ne=Tv(H),fe=[],we=ne[0],Te=ne[1],Re=Math.floor(X(we)),De=Math.ceil(X(Te)),Ge=N%1?2:N;if(isFinite(De-Re)){if(B){for(;Re<De;Re++)for(var Je=1;Je<Ge;Je++)fe.push(W(Re)*Je);fe.push(W(Re))}else for(fe.push(W(Re));Re++<De;)for(var Je=Ge-1;Je>0;Je--)fe.push(W(Re)*Je);for(Re=0;fe[Re]<we;Re++);for(De=fe.length;fe[De-1]>Te;De--);fe=fe.slice(Re,De)}return fe},ue.copy=function(){return W6(C.copy(),N,B,H)},G6(ue,C)}var KG={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return Z6(e.scale.linear(),1,[0,1])};function Z6(C,N,B){var H=kv(N),X=kv(1/N);function W(ue){return C(H(ue))}return W.invert=function(ue){return X(C.invert(ue))},W.domain=function(ue){return arguments.length?(C.domain((B=ue.map(Number)).map(H)),W):B},W.ticks=function(ue){return Ig(B,ue)},W.tickFormat=function(ue,ne){return d3_scale_linearTickFormat(B,ue,ne)},W.nice=function(ue){return W.domain(Y6(B,ue))},W.exponent=function(ue){return arguments.length?(H=kv(N=ue),X=kv(1/N),C.domain(B.map(H)),W):N},W.copy=function(){return Z6(C.copy(),N,B)},G6(W,C)}function kv(C){return function(N){return N<0?-Math.pow(-N,C):Math.pow(N,C)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return J6([],{t:"range",a:[[]]})};function J6(C,N){var B,H,X;function W(ne){return H[((B.get(ne)||(N.t==="range"?B.set(ne,C.push(ne)):NaN))-1)%H.length]}function ue(ne,fe){return e.range(C.length).map(function(we){return ne+fe*we})}return W.domain=function(ne){if(!arguments.length)return C;C=[],B=new b;for(var fe=-1,we=ne.length,Te;++fe<we;)B.has(Te=ne[fe])||B.set(Te,C.push(Te));return W[N.t].apply(W,N.a)},W.range=function(ne){return arguments.length?(H=ne,X=0,N={t:"range",a:arguments},W):H},W.rangePoints=function(ne,fe){arguments.length<2&&(fe=0);var we=ne[0],Te=ne[1],Re=C.length<2?(we=(we+Te)/2,0):(Te-we)/(C.length-1+fe);return H=ue(we+Re*fe/2,Re),X=0,N={t:"rangePoints",a:arguments},W},W.rangeRoundPoints=function(ne,fe){arguments.length<2&&(fe=0);var we=ne[0],Te=ne[1],Re=C.length<2?(we=Te=Math.round((we+Te)/2),0):(Te-we)/(C.length-1+fe)|0;return H=ue(we+Math.round(Re*fe/2+(Te-we-(C.length-1+fe)*Re)/2),Re),X=0,N={t:"rangeRoundPoints",a:arguments},W},W.rangeBands=function(ne,fe,we){arguments.length<2&&(fe=0),arguments.length<3&&(we=fe);var Te=ne[1]<ne[0],Re=ne[Te-0],De=ne[1-Te],Ge=(De-Re)/(C.length-fe+2*we);return H=ue(Re+Ge*we,Ge),Te&&H.reverse(),X=Ge*(1-fe),N={t:"rangeBands",a:arguments},W},W.rangeRoundBands=function(ne,fe,we){arguments.length<2&&(fe=0),arguments.length<3&&(we=fe);var Te=ne[1]<ne[0],Re=ne[Te-0],De=ne[1-Te],Ge=Math.floor((De-Re)/(C.length-fe+2*we));return H=ue(Re+Math.round((De-Re-(C.length-fe)*Ge)/2),Ge),Te&&H.reverse(),X=Math.round(Ge*(1-fe)),N={t:"rangeRoundBands",a:arguments},W},W.rangeBand=function(){return X},W.rangeExtent=function(){return Tv(N.a[0])},W.copy=function(){return J6(C,N)},W.domain(C)}e.scale.category10=function(){return e.scale.ordinal().range(QG)},e.scale.category20=function(){return e.scale.ordinal().range(jG)},e.scale.category20b=function(){return e.scale.ordinal().range(eY)},e.scale.category20c=function(){return e.scale.ordinal().range(rY)};var QG=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Ui),jG=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Ui),eY=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Ui),rY=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Ui);e.scale.quantile=function(){return $6([],[])};function $6(C,N){var B;function H(){var W=0,ue=N.length;for(B=[];++W<ue;)B[W-1]=e.quantile(C,W/ue);return X}function X(W){if(!isNaN(W=+W))return N[e.bisect(B,W)]}return X.domain=function(W){return arguments.length?(C=W.map(d).filter(x).sort(c),H()):C},X.range=function(W){return arguments.length?(N=W,H()):N},X.quantiles=function(){return B},X.invertExtent=function(W){return W=N.indexOf(W),W<0?[NaN,NaN]:[W>0?B[W-1]:C[0],W<B.length?B[W]:C[C.length-1]]},X.copy=function(){return $6(C,N)},H()}e.scale.quantize=function(){return K6(0,1,[0,1])};function K6(C,N,B){var H,X;function W(ne){return B[Math.max(0,Math.min(X,Math.floor(H*(ne-C))))]}function ue(){return H=B.length/(N-C),X=B.length-1,W}return W.domain=function(ne){return arguments.length?(C=+ne[0],N=+ne[ne.length-1],ue()):[C,N]},W.range=function(ne){return arguments.length?(B=ne,ue()):B},W.invertExtent=function(ne){return ne=B.indexOf(ne),ne=ne<0?NaN:ne/H+C,[ne,ne+1/H]},W.copy=function(){return K6(C,N,B)},ue()}e.scale.threshold=function(){return Q6([.5],[0,1])};function Q6(C,N){function B(H){if(H<=H)return N[e.bisect(C,H)]}return B.domain=function(H){return arguments.length?(C=H,B):C},B.range=function(H){return arguments.length?(N=H,B):N},B.invertExtent=function(H){return H=N.indexOf(H),[C[H-1],C[H]]},B.copy=function(){return Q6(C,N)},B}e.scale.identity=function(){return j6([0,1])};function j6(C){function N(B){return+B}return N.invert=N,N.domain=N.range=function(B){return arguments.length?(C=B.map(N),N):C},N.ticks=function(B){return Ig(C,B)},N.tickFormat=function(B,H){return d3_scale_linearTickFormat(C,B,H)},N.copy=function(){return j6(C)},N}e.svg={};function tY(){return 0}e.svg.arc=function(){var C=nY,N=aY,B=tY,H=Sv,X=e_,W=r_,ue=iY;function ne(){var we=Math.max(0,+C.apply(this,arguments)),Te=Math.max(0,+N.apply(this,arguments)),Re=X.apply(this,arguments)-Ce,De=W.apply(this,arguments)-Ce,Ge=Math.abs(De-Re),Je=Re>De?0:1;if(Te<we&&(ze=Te,Te=we,we=ze),Ge>=Ke)return fe(Te,Je)+(we?fe(we,1-Je):"")+"Z";var ze,Ne,Ue,Ze,$e=0,He=0,ar,vr,pr,dr,mr,br,Nr,_r,Rr=[];if((Ze=(+ue.apply(this,arguments)||0)/2)&&(Ue=H===Sv?Math.sqrt(we*we+Te*Te):+H.apply(this,arguments),Je||(He*=-1),Te&&(He=Mr(Ue/Te*Math.sin(Ze))),we&&($e=Mr(Ue/we*Math.sin(Ze)))),Te){ar=Te*Math.cos(Re+He),vr=Te*Math.sin(Re+He),pr=Te*Math.cos(De-He),dr=Te*Math.sin(De-He);var ut=Math.abs(De-Re-2*He)<=ir?0:1;if(He&&Cv(ar,vr,pr,dr)===Je^ut){var Jt=(Re+De)/2;ar=Te*Math.cos(Jt),vr=Te*Math.sin(Jt),pr=dr=null}}else ar=vr=0;if(we){mr=we*Math.cos(De-$e),br=we*Math.sin(De-$e),Nr=we*Math.cos(Re+$e),_r=we*Math.sin(Re+$e);var yt=Math.abs(Re-De+2*$e)<=ir?0:1;if($e&&Cv(mr,br,Nr,_r)===1-Je^yt){var fr=(Re+De)/2;mr=we*Math.cos(fr),br=we*Math.sin(fr),Nr=_r=null}}else mr=br=0;if(Ge>Xe&&(ze=Math.min(Math.abs(Te-we)/2,+B.apply(this,arguments)))>.001){Ne=we<Te^Je?0:1;var qr=ze,Ur=ze;if(Ge<ir){var ft=Nr==null?[mr,br]:pr==null?[ar,vr]:mg([ar,vr],[Nr,_r],[pr,dr],[mr,br]),Ht=ar-ft[0],sn=vr-ft[1],Rn=pr-ft[0],Jn=dr-ft[1],la=1/Math.sin(Math.acos((Ht*Rn+sn*Jn)/(Math.sqrt(Ht*Ht+sn*sn)*Math.sqrt(Rn*Rn+Jn*Jn)))/2),$n=Math.sqrt(ft[0]*ft[0]+ft[1]*ft[1]);Ur=Math.min(ze,(we-$n)/(la-1)),qr=Math.min(ze,(Te-$n)/(la+1))}if(pr!=null){var pa=Ev(Nr==null?[mr,br]:[Nr,_r],[ar,vr],Te,qr,Je),Fn=Ev([pr,dr],[mr,br],Te,qr,Je);ze===qr?Rr.push("M",pa[0],"A",qr,",",qr," 0 0,",Ne," ",pa[1],"A",Te,",",Te," 0 ",1-Je^Cv(pa[1][0],pa[1][1],Fn[1][0],Fn[1][1]),",",Je," ",Fn[1],"A",qr,",",qr," 0 0,",Ne," ",Fn[0]):Rr.push("M",pa[0],"A",qr,",",qr," 0 1,",Ne," ",Fn[0])}else Rr.push("M",ar,",",vr);if(Nr!=null){var ga=Ev([ar,vr],[Nr,_r],we,-Ur,Je),Ql=Ev([mr,br],pr==null?[ar,vr]:[pr,dr],we,-Ur,Je);ze===Ur?Rr.push("L",Ql[0],"A",Ur,",",Ur," 0 0,",Ne," ",Ql[1],"A",we,",",we," 0 ",Je^Cv(Ql[1][0],Ql[1][1],ga[1][0],ga[1][1]),",",1-Je," ",ga[1],"A",Ur,",",Ur," 0 0,",Ne," ",ga[0]):Rr.push("L",Ql[0],"A",Ur,",",Ur," 0 0,",Ne," ",ga[0])}else Rr.push("L",mr,",",br)}else Rr.push("M",ar,",",vr),pr!=null&&Rr.push("A",Te,",",Te," 0 ",ut,",",Je," ",pr,",",dr),Rr.push("L",mr,",",br),Nr!=null&&Rr.push("A",we,",",we," 0 ",yt,",",1-Je," ",Nr,",",_r);return Rr.push("Z"),Rr.join("")}function fe(we,Te){return"M0,"+we+"A"+we+","+we+" 0 1,"+Te+" 0,"+-we+"A"+we+","+we+" 0 1,"+Te+" 0,"+we}return ne.innerRadius=function(we){return arguments.length?(C=Tr(we),ne):C},ne.outerRadius=function(we){return arguments.length?(N=Tr(we),ne):N},ne.cornerRadius=function(we){return arguments.length?(B=Tr(we),ne):B},ne.padRadius=function(we){return arguments.length?(H=we==Sv?Sv:Tr(we),ne):H},ne.startAngle=function(we){return arguments.length?(X=Tr(we),ne):X},ne.endAngle=function(we){return arguments.length?(W=Tr(we),ne):W},ne.padAngle=function(we){return arguments.length?(ue=Tr(we),ne):ue},ne.centroid=function(){var we=(+C.apply(this,arguments)+ +N.apply(this,arguments))/2,Te=(+X.apply(this,arguments)+ +W.apply(this,arguments))/2-Ce;return[Math.cos(Te)*we,Math.sin(Te)*we]},ne};var Sv="auto";function nY(C){return C.innerRadius}function aY(C){return C.outerRadius}function e_(C){return C.startAngle}function r_(C){return C.endAngle}function iY(C){return C&&C.padAngle}function Cv(C,N,B,H){return(C-B)*N-(N-H)*C>0?0:1}function Ev(C,N,B,H,X){var W=C[0]-N[0],ue=C[1]-N[1],ne=(X?H:-H)/Math.sqrt(W*W+ue*ue),fe=ne*ue,we=-ne*W,Te=C[0]+fe,Re=C[1]+we,De=N[0]+fe,Ge=N[1]+we,Je=(Te+De)/2,ze=(Re+Ge)/2,Ne=De-Te,Ue=Ge-Re,Ze=Ne*Ne+Ue*Ue,$e=B-H,He=Te*Ge-De*Re,ar=(Ue<0?-1:1)*Math.sqrt(Math.max(0,$e*$e*Ze-He*He)),vr=(He*Ue-Ne*ar)/Ze,pr=(-He*Ne-Ue*ar)/Ze,dr=(He*Ue+Ne*ar)/Ze,mr=(-He*Ne+Ue*ar)/Ze,br=vr-Je,Nr=pr-ze,_r=dr-Je,Rr=mr-ze;return br*br+Nr*Nr>_r*_r+Rr*Rr&&(vr=dr,pr=mr),[[vr-fe,pr-we],[vr*B/$e,pr*B/$e]]}function t_(){return!0}function n_(C){var N=su,B=Zf,H=t_,X=hi,W=X.key,ue=.7;function ne(fe){var we=[],Te=[],Re=-1,De=fe.length,Ge,Je=Tr(N),ze=Tr(B);function Ne(){we.push("M",X(C(Te),ue))}for(;++Re<De;)H.call(this,Ge=fe[Re],Re)?Te.push([+Je.call(this,Ge,Re),+ze.call(this,Ge,Re)]):Te.length&&(Ne(),Te=[]);return Te.length&&Ne(),we.length?we.join(""):null}return ne.x=function(fe){return arguments.length?(N=fe,ne):N},ne.y=function(fe){return arguments.length?(B=fe,ne):B},ne.defined=function(fe){return arguments.length?(H=fe,ne):H},ne.interpolate=function(fe){return arguments.length?(typeof fe=="function"?W=X=fe:W=(X=zg.get(fe)||hi).key,ne):W},ne.tension=function(fe){return arguments.length?(ue=fe,ne):ue},ne}e.svg.line=function(){return n_(F)};var zg=e.map({linear:hi,"linear-closed":a_,step:oY,"step-before":Fg,"step-after":Ng,basis:i_,"basis-open":fY,"basis-closed":cY,bundle:vY,cardinal:uY,"cardinal-open":lY,"cardinal-closed":sY,monotone:pY});zg.forEach(function(C,N){N.key=C,N.closed=/-closed$/.test(C)});function hi(C){return C.length>1?C.join("L"):C+"Z"}function a_(C){return C.join("L")+"Z"}function oY(C){for(var N=0,B=C.length,H=C[0],X=[H[0],",",H[1]];++N<B;)X.push("H",(H[0]+(H=C[N])[0])/2,"V",H[1]);return B>1&&X.push("H",H[0]),X.join("")}function Fg(C){for(var N=0,B=C.length,H=C[0],X=[H[0],",",H[1]];++N<B;)X.push("V",(H=C[N])[1],"H",H[0]);return X.join("")}function Ng(C){for(var N=0,B=C.length,H=C[0],X=[H[0],",",H[1]];++N<B;)X.push("H",(H=C[N])[0],"V",H[1]);return X.join("")}function lY(C,N){return C.length<4?hi(C):C[1]+Lv(C.slice(1,-1),qg(C,N))}function sY(C,N){return C.length<3?a_(C):C[0]+Lv((C.push(C[0]),C),qg([C[C.length-2]].concat(C,[C[1]]),N))}function uY(C,N){return C.length<3?hi(C):C[0]+Lv(C,qg(C,N))}function Lv(C,N){if(N.length<1||C.length!=N.length&&C.length!=N.length+2)return hi(C);var B=C.length!=N.length,H="",X=C[0],W=C[1],ue=N[0],ne=ue,fe=1;if(B&&(H+="Q"+(W[0]-ue[0]*2/3)+","+(W[1]-ue[1]*2/3)+","+W[0]+","+W[1],X=C[1],fe=2),N.length>1){ne=N[1],W=C[fe],fe++,H+="C"+(X[0]+ue[0])+","+(X[1]+ue[1])+","+(W[0]-ne[0])+","+(W[1]-ne[1])+","+W[0]+","+W[1];for(var we=2;we<N.length;we++,fe++)W=C[fe],ne=N[we],H+="S"+(W[0]-ne[0])+","+(W[1]-ne[1])+","+W[0]+","+W[1]}if(B){var Te=C[fe];H+="Q"+(W[0]+ne[0]*2/3)+","+(W[1]+ne[1]*2/3)+","+Te[0]+","+Te[1]}return H}function qg(C,N){for(var B=[],H=(1-N)/2,X,W=C[0],ue=C[1],ne=1,fe=C.length;++ne<fe;)X=W,W=ue,ue=C[ne],B.push([H*(ue[0]-X[0]),H*(ue[1]-X[1])]);return B}function i_(C){if(C.length<3)return hi(C);var N=1,B=C.length,H=C[0],X=H[0],W=H[1],ue=[X,X,X,(H=C[1])[0]],ne=[W,W,W,H[1]],fe=[X,",",W,"L",Va(Jo,ue),",",Va(Jo,ne)];for(C.push(C[B-1]);++N<=B;)H=C[N],ue.shift(),ue.push(H[0]),ne.shift(),ne.push(H[1]),Og(fe,ue,ne);return C.pop(),fe.push("L",H),fe.join("")}function fY(C){if(C.length<4)return hi(C);for(var N=[],B=-1,H=C.length,X,W=[0],ue=[0];++B<3;)X=C[B],W.push(X[0]),ue.push(X[1]);for(N.push(Va(Jo,W)+","+Va(Jo,ue)),--B;++B<H;)X=C[B],W.shift(),W.push(X[0]),ue.shift(),ue.push(X[1]),Og(N,W,ue);return N.join("")}function cY(C){for(var N,B=-1,H=C.length,X=H+4,W,ue=[],ne=[];++B<4;)W=C[B%H],ue.push(W[0]),ne.push(W[1]);for(N=[Va(Jo,ue),",",Va(Jo,ne)],--B;++B<X;)W=C[B%H],ue.shift(),ue.push(W[0]),ne.shift(),ne.push(W[1]),Og(N,ue,ne);return N.join("")}function vY(C,N){var B=C.length-1;if(B)for(var H=C[0][0],X=C[0][1],W=C[B][0]-H,ue=C[B][1]-X,ne=-1,fe,we;++ne<=B;)fe=C[ne],we=ne/B,fe[0]=N*fe[0]+(1-N)*(H+we*W),fe[1]=N*fe[1]+(1-N)*(X+we*ue);return i_(C)}function Va(C,N){return C[0]*N[0]+C[1]*N[1]+C[2]*N[2]+C[3]*N[3]}var o_=[0,2/3,1/3,0],l_=[0,1/3,2/3,0],Jo=[0,1/6,2/3,1/6];function Og(C,N,B){C.push("C",Va(o_,N),",",Va(o_,B),",",Va(l_,N),",",Va(l_,B),",",Va(Jo,N),",",Va(Jo,B))}function Bg(C,N){return(N[1]-C[1])/(N[0]-C[0])}function hY(C){for(var N=0,B=C.length-1,H=[],X=C[0],W=C[1],ue=H[0]=Bg(X,W);++N<B;)H[N]=(ue+(ue=Bg(X=W,W=C[N+1])))/2;return H[N]=ue,H}function dY(C){for(var N=[],B,H,X,W,ue=hY(C),ne=-1,fe=C.length-1;++ne<fe;)B=Bg(C[ne],C[ne+1]),m(B)<Xe?ue[ne]=ue[ne+1]=0:(H=ue[ne]/B,X=ue[ne+1]/B,W=H*H+X*X,W>9&&(W=B*3/Math.sqrt(W),ue[ne]=W*H,ue[ne+1]=W*X));for(ne=-1;++ne<=fe;)W=(C[Math.min(fe,ne+1)][0]-C[Math.max(0,ne-1)][0])/(6*(1+ue[ne]*ue[ne])),N.push([W||0,ue[ne]*W||0]);return N}function pY(C){return C.length<3?hi(C):C[0]+Lv(C,dY(C))}e.svg.line.radial=function(){var C=n_(s_);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function s_(C){for(var N,B=-1,H=C.length,X,W;++B<H;)N=C[B],X=N[0],W=N[1]-Ce,N[0]=X*Math.cos(W),N[1]=X*Math.sin(W);return C}function u_(C){var N=su,B=su,H=0,X=Zf,W=t_,ue=hi,ne=ue.key,fe=ue,we="L",Te=.7;function Re(De){var Ge=[],Je=[],ze=[],Ne=-1,Ue=De.length,Ze,$e=Tr(N),He=Tr(H),ar=N===B?function(){return pr}:Tr(B),vr=H===X?function(){return dr}:Tr(X),pr,dr;function mr(){Ge.push("M",ue(C(ze),Te),we,fe(C(Je.reverse()),Te),"Z")}for(;++Ne<Ue;)W.call(this,Ze=De[Ne],Ne)?(Je.push([pr=+$e.call(this,Ze,Ne),dr=+He.call(this,Ze,Ne)]),ze.push([+ar.call(this,Ze,Ne),+vr.call(this,Ze,Ne)])):Je.length&&(mr(),Je=[],ze=[]);return Je.length&&mr(),Ge.length?Ge.join(""):null}return Re.x=function(De){return arguments.length?(N=B=De,Re):B},Re.x0=function(De){return arguments.length?(N=De,Re):N},Re.x1=function(De){return arguments.length?(B=De,Re):B},Re.y=function(De){return arguments.length?(H=X=De,Re):X},Re.y0=function(De){return arguments.length?(H=De,Re):H},Re.y1=function(De){return arguments.length?(X=De,Re):X},Re.defined=function(De){return arguments.length?(W=De,Re):W},Re.interpolate=function(De){return arguments.length?(typeof De=="function"?ne=ue=De:ne=(ue=zg.get(De)||hi).key,fe=ue.reverse||ue,we=ue.closed?"M":"L",Re):ne},Re.tension=function(De){return arguments.length?(Te=De,Re):Te},Re}Fg.reverse=Ng,Ng.reverse=Fg,e.svg.area=function(){return u_(F)},e.svg.area.radial=function(){var C=u_(s_);return C.radius=C.x,delete C.x,C.innerRadius=C.x0,delete C.x0,C.outerRadius=C.x1,delete C.x1,C.angle=C.y,delete C.y,C.startAngle=C.y0,delete C.y0,C.endAngle=C.y1,delete C.y1,C};function f_(C){return C.source}function c_(C){return C.target}e.svg.chord=function(){var C=f_,N=c_,B=gY,H=e_,X=r_;function W(Te,Re){var De=ue(this,C,Te,Re),Ge=ue(this,N,Te,Re);return"M"+De.p0+fe(De.r,De.p1,De.a1-De.a0)+(ne(De,Ge)?we(De.r,De.p1,De.r,De.p0):we(De.r,De.p1,Ge.r,Ge.p0)+fe(Ge.r,Ge.p1,Ge.a1-Ge.a0)+we(Ge.r,Ge.p1,De.r,De.p0))+"Z"}function ue(Te,Re,De,Ge){var Je=Re.call(Te,De,Ge),ze=B.call(Te,Je,Ge),Ne=H.call(Te,Je,Ge)-Ce,Ue=X.call(Te,Je,Ge)-Ce;return{r:ze,a0:Ne,a1:Ue,p0:[ze*Math.cos(Ne),ze*Math.sin(Ne)],p1:[ze*Math.cos(Ue),ze*Math.sin(Ue)]}}function ne(Te,Re){return Te.a0==Re.a0&&Te.a1==Re.a1}function fe(Te,Re,De){return"A"+Te+","+Te+" 0 "+ +(De>ir)+",1 "+Re}function we(Te,Re,De,Ge){return"Q 0,0 "+Ge}return W.radius=function(Te){return arguments.length?(B=Tr(Te),W):B},W.source=function(Te){return arguments.length?(C=Tr(Te),W):C},W.target=function(Te){return arguments.length?(N=Tr(Te),W):N},W.startAngle=function(Te){return arguments.length?(H=Tr(Te),W):H},W.endAngle=function(Te){return arguments.length?(X=Tr(Te),W):X},W};function gY(C){return C.radius}e.svg.diagonal=function(){var C=f_,N=c_,B=v_;function H(X,W){var ue=C.call(this,X,W),ne=N.call(this,X,W),fe=(ue.y+ne.y)/2,we=[ue,{x:ue.x,y:fe},{x:ne.x,y:fe},ne];return we=we.map(B),"M"+we[0]+"C"+we[1]+" "+we[2]+" "+we[3]}return H.source=function(X){return arguments.length?(C=Tr(X),H):C},H.target=function(X){return arguments.length?(N=Tr(X),H):N},H.projection=function(X){return arguments.length?(B=X,H):B},H};function v_(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),N=v_,B=C.projection;return C.projection=function(H){return arguments.length?B(yY(N=H)):N},C};function yY(C){return function(){var N=C.apply(this,arguments),B=N[0],H=N[1]-Ce;return[B*Math.cos(H),B*Math.sin(H)]}}e.svg.symbol=function(){var C=bY,N=mY;function B(H,X){return(d_.get(C.call(this,H,X))||h_)(N.call(this,H,X))}return B.type=function(H){return arguments.length?(C=Tr(H),B):C},B.size=function(H){return arguments.length?(N=Tr(H),B):N},B};function mY(){return 64}function bY(){return"circle"}function h_(C){var N=Math.sqrt(C/ir);return"M0,"+N+"A"+N+","+N+" 0 1,1 0,"+-N+"A"+N+","+N+" 0 1,1 0,"+N+"Z"}var d_=e.map({circle:h_,cross:function(C){var N=Math.sqrt(C/5)/2;return"M"+-3*N+","+-N+"H"+-N+"V"+-3*N+"H"+N+"V"+-N+"H"+3*N+"V"+N+"H"+N+"V"+3*N+"H"+-N+"V"+N+"H"+-3*N+"Z"},diamond:function(C){var N=Math.sqrt(C/(2*p_)),B=N*p_;return"M0,"+-N+"L"+B+",0 0,"+N+" "+-B+",0Z"},square:function(C){var N=Math.sqrt(C)/2;return"M"+-N+","+-N+"L"+N+","+-N+" "+N+","+N+" "+-N+","+N+"Z"},"triangle-down":function(C){var N=Math.sqrt(C/Rv),B=N*Rv/2;return"M0,"+B+"L"+N+","+-B+" "+-N+","+-B+"Z"},"triangle-up":function(C){var N=Math.sqrt(C/Rv),B=N*Rv/2;return"M0,"+-B+"L"+N+","+B+" "+-N+","+B+"Z"}});e.svg.symbolTypes=d_.keys();var Rv=Math.sqrt(3),p_=Math.tan(30*Fe);Q.transition=function(C){for(var N=Kl||++y_,B=Hg(C),H=[],X,W,ue=Pv||{time:Date.now(),ease:KV,delay:0,duration:250},ne=-1,fe=this.length;++ne<fe;){H.push(X=[]);for(var we=this[ne],Te=-1,Re=we.length;++Te<Re;)(W=we[Te])&&Iv(W,Te,B,N,ue),X.push(W)}return t0(H,B,N)},Q.interrupt=function(C){return this.each(C==null?Dv:g_(Hg(C)))};var Dv=g_(Hg());function g_(C){return function(){var N,B,H;(N=this[C])&&(H=N[B=N.active])&&(H.timer.c=null,H.timer.t=NaN,--N.count?delete N[B]:delete this[C],N.active+=.5,H.event&&H.event.interrupt.call(this,this.__data__,H.index))}}function t0(C,N,B){return q(C,ln),C.namespace=N,C.id=B,C}var ln=[],y_=0,Kl,Pv;ln.call=Q.call,ln.empty=Q.empty,ln.node=Q.node,ln.size=Q.size,e.transition=function(C,N){return C&&C.transition?Kl?C.transition(N):C:e.selection().transition(C)},e.transition.prototype=ln,ln.select=function(C){var N=this.id,B=this.namespace,H=[],X,W,ue;C=re(C);for(var ne=-1,fe=this.length;++ne<fe;){H.push(X=[]);for(var we=this[ne],Te=-1,Re=we.length;++Te<Re;)(ue=we[Te])&&(W=C.call(ue,ue.__data__,Te,ne))?("__data__"in ue&&(W.__data__=ue.__data__),Iv(W,Te,B,N,ue[B][N]),X.push(W)):X.push(null)}return t0(H,B,N)},ln.selectAll=function(C){var N=this.id,B=this.namespace,H=[],X,W,ue,ne,fe;C=se(C);for(var we=-1,Te=this.length;++we<Te;)for(var Re=this[we],De=-1,Ge=Re.length;++De<Ge;)if(ue=Re[De]){fe=ue[B][N],W=C.call(ue,ue.__data__,De,we),H.push(X=[]);for(var Je=-1,ze=W.length;++Je<ze;)(ne=W[Je])&&Iv(ne,Je,B,N,fe),X.push(ne)}return t0(H,B,N)},ln.filter=function(C){var N=[],B,H,X;typeof C!="function"&&(C=oe(C));for(var W=0,ue=this.length;W<ue;W++){N.push(B=[]);for(var H=this[W],ne=0,fe=H.length;ne<fe;ne++)(X=H[ne])&&C.call(X,X.__data__,ne,W)&&B.push(X)}return t0(N,this.namespace,this.id)},ln.tween=function(C,N){var B=this.id,H=this.namespace;return arguments.length<2?this.node()[H][B].tween.get(C):he(this,N==null?function(X){X[H][B].tween.remove(C)}:function(X){X[H][B].tween.set(C,N)})};function Ug(C,N,B,H){var X=C.id,W=C.namespace;return he(C,typeof B=="function"?function(ue,ne,fe){ue[W][X].tween.set(N,H(B.call(ue,ue.__data__,ne,fe)))}:(B=H(B),function(ue){ue[W][X].tween.set(N,B)}))}ln.attr=function(C,N){if(arguments.length<2){for(N in C)this.attr(N,C[N]);return this}var B=C=="transform"?C6:$l,H=e.ns.qualify(C);function X(){this.removeAttribute(H)}function W(){this.removeAttributeNS(H.space,H.local)}function ue(fe){return fe==null?X:(fe+="",function(){var we=this.getAttribute(H),Te;return we!==fe&&(Te=B(we,fe),function(Re){this.setAttribute(H,Te(Re))})})}function ne(fe){return fe==null?W:(fe+="",function(){var we=this.getAttributeNS(H.space,H.local),Te;return we!==fe&&(Te=B(we,fe),function(Re){this.setAttributeNS(H.space,H.local,Te(Re))})})}return Ug(this,"attr."+C,N,H.local?ne:ue)},ln.attrTween=function(C,N){var B=e.ns.qualify(C);function H(W,ue){var ne=N.call(this,W,ue,this.getAttribute(B));return ne&&function(fe){this.setAttribute(B,ne(fe))}}function X(W,ue){var ne=N.call(this,W,ue,this.getAttributeNS(B.space,B.local));return ne&&function(fe){this.setAttributeNS(B.space,B.local,ne(fe))}}return this.tween("attr."+C,B.local?X:H)},ln.style=function(C,N,B){var H=arguments.length;if(H<3){if(typeof C!="string"){H<2&&(N="");for(B in C)this.style(B,C[B],N);return this}B=""}function X(){this.style.removeProperty(C)}function W(ue){return ue==null?X:(ue+="",function(){var ne=o(this).getComputedStyle(this,null).getPropertyValue(C),fe;return ne!==ue&&(fe=$l(ne,ue),function(we){this.style.setProperty(C,fe(we),B)})})}return Ug(this,"style."+C,N,W)},ln.styleTween=function(C,N,B){arguments.length<3&&(B="");function H(X,W){var ue=N.call(this,X,W,o(this).getComputedStyle(this,null).getPropertyValue(C));return ue&&function(ne){this.style.setProperty(C,ue(ne),B)}}return this.tween("style."+C,H)},ln.text=function(C){return Ug(this,"text",C,xY)};function xY(C){return C==null&&(C=""),function(){this.textContent=C}}ln.remove=function(){var C=this.namespace;return this.each("end.transition",function(){var N;this[C].count<2&&(N=this.parentNode)&&N.removeChild(this)})},ln.ease=function(C){var N=this.id,B=this.namespace;return arguments.length<1?this.node()[B][N].ease:(typeof C!="function"&&(C=e.ease.apply(e,arguments)),he(this,function(H){H[B][N].ease=C}))},ln.delay=function(C){var N=this.id,B=this.namespace;return arguments.length<1?this.node()[B][N].delay:he(this,typeof C=="function"?function(H,X,W){H[B][N].delay=+C.call(H,H.__data__,X,W)}:(C=+C,function(H){H[B][N].delay=C}))},ln.duration=function(C){var N=this.id,B=this.namespace;return arguments.length<1?this.node()[B][N].duration:he(this,typeof C=="function"?function(H,X,W){H[B][N].duration=Math.max(1,C.call(H,H.__data__,X,W))}:(C=Math.max(1,C),function(H){H[B][N].duration=C}))},ln.each=function(C,N){var B=this.id,H=this.namespace;if(arguments.length<2){var X=Pv,W=Kl;try{Kl=B,he(this,function(ue,ne,fe){Pv=ue[H][B],C.call(ue,ue.__data__,ne,fe)})}finally{Pv=X,Kl=W}}else he(this,function(ue){var ne=ue[H][B];(ne.event||(ne.event=e.dispatch("start","end","interrupt"))).on(C,N)});return this},ln.transition=function(){for(var C=this.id,N=++y_,B=this.namespace,H=[],X,W,ue,ne,fe=0,we=this.length;fe<we;fe++){H.push(X=[]);for(var W=this[fe],Te=0,Re=W.length;Te<Re;Te++)(ue=W[Te])&&(ne=ue[B][C],Iv(ue,Te,B,N,{time:ne.time,ease:ne.ease,delay:ne.delay+ne.duration,duration:ne.duration})),X.push(ue)}return t0(H,B,N)};function Hg(C){return C==null?"__transition__":"__transition_"+C+"__"}function Iv(C,N,B,H,X){var W=C[B]||(C[B]={active:0,count:0}),ue=W[H],ne,fe,we,Te,Re;function De(ze){var Ne=ue.delay;if(fe.t=Ne+ne,Ne<=ze)return Ge(ze-Ne);fe.c=Ge}function Ge(ze){var Ne=W.active,Ue=W[Ne];Ue&&(Ue.timer.c=null,Ue.timer.t=NaN,--W.count,delete W[Ne],Ue.event&&Ue.event.interrupt.call(C,C.__data__,Ue.index));for(var Ze in W)if(+Ze<H){var $e=W[Ze];$e.timer.c=null,$e.timer.t=NaN,--W.count,delete W[Ze]}fe.c=Je,yv(function(){return fe.c&&Je(ze||1)&&(fe.c=null,fe.t=NaN),1},0,ne),W.active=H,ue.event&&ue.event.start.call(C,C.__data__,N),Re=[],ue.tween.forEach(function(He,ar){(ar=ar.call(C,C.__data__,N))&&Re.push(ar)}),Te=ue.ease,we=ue.duration}function Je(ze){for(var Ne=ze/we,Ue=Te(Ne),Ze=Re.length;Ze>0;)Re[--Ze].call(C,Ue);if(Ne>=1)return ue.event&&ue.event.end.call(C,C.__data__,N),--W.count?delete W[H]:delete C[B],1}ue||(ne=X.time,fe=yv(De,0,ne),ue=W[H]={tween:new b,time:ne,timer:fe,delay:X.delay,duration:X.duration,ease:X.ease,index:N},X=null,++W.count)}e.svg.axis=function(){var C=e.scale.linear(),N=m_,B=6,H=6,X=3,W=[10],ue=null,ne;function fe(we){we.each(function(){var Te=e.select(this),Re=this.__chart__||C,De=this.__chart__=C.copy(),Ge=ue==null?De.ticks?De.ticks.apply(De,W):De.domain():ue,Je=ne==null?De.tickFormat?De.tickFormat.apply(De,W):F:ne,ze=Te.selectAll(".tick").data(Ge,De),Ne=ze.enter().insert("g",".domain").attr("class","tick").style("opacity",Xe),Ue=e.transition(ze.exit()).style("opacity",Xe).remove(),Ze=e.transition(ze.order()).style("opacity",1),$e=Math.max(B,0)+X,He,ar=Av(De),vr=Te.selectAll(".domain").data([0]),pr=(vr.enter().append("path").attr("class","domain"),e.transition(vr));Ne.append("line"),Ne.append("text");var dr=Ne.select("line"),mr=Ze.select("line"),br=ze.select("text").text(Je),Nr=Ne.select("text"),_r=Ze.select("text"),Rr=N==="top"||N==="left"?-1:1,ut,Jt,yt,fr;if(N==="bottom"||N==="top"?(He=wY,ut="x",yt="y",Jt="x2",fr="y2",br.attr("dy",Rr<0?"0em":".71em").style("text-anchor","middle"),pr.attr("d","M"+ar[0]+","+Rr*H+"V0H"+ar[1]+"V"+Rr*H)):(He=MY,ut="y",yt="x",Jt="y2",fr="x2",br.attr("dy",".32em").style("text-anchor",Rr<0?"end":"start"),pr.attr("d","M"+Rr*H+","+ar[0]+"H0V"+ar[1]+"H"+Rr*H)),dr.attr(fr,Rr*B),Nr.attr(yt,Rr*$e),mr.attr(Jt,0).attr(fr,Rr*B),_r.attr(ut,0).attr(yt,Rr*$e),De.rangeBand){var qr=De,Ur=qr.rangeBand()/2;Re=De=function(ft){return qr(ft)+Ur}}else Re.rangeBand?Re=De:Ue.call(He,De,Re);Ne.call(He,Re,De),Ze.call(He,De,De)})}return fe.scale=function(we){return arguments.length?(C=we,fe):C},fe.orient=function(we){return arguments.length?(N=we in _Y?we+"":m_,fe):N},fe.ticks=function(){return arguments.length?(W=t(arguments),fe):W},fe.tickValues=function(we){return arguments.length?(ue=we,fe):ue},fe.tickFormat=function(we){return arguments.length?(ne=we,fe):ne},fe.tickSize=function(we){var Te=arguments.length;return Te?(B=+we,H=+arguments[Te-1],fe):B},fe.innerTickSize=function(we){return arguments.length?(B=+we,fe):B},fe.outerTickSize=function(we){return arguments.length?(H=+we,fe):H},fe.tickPadding=function(we){return arguments.length?(X=+we,fe):X},fe.tickSubdivide=function(){return arguments.length&&fe},fe};var m_="bottom",_Y={top:1,right:1,bottom:1,left:1};function wY(C,N,B){C.attr("transform",function(H){var X=N(H);return"translate("+(isFinite(X)?X:B(H))+",0)"})}function MY(C,N,B){C.attr("transform",function(H){var X=N(H);return"translate(0,"+(isFinite(X)?X:B(H))+")"})}e.svg.brush=function(){var C=j(Te,"brushstart","brush","brushend"),N=null,B=null,H=[0,0],X=[0,0],W,ue,ne=!0,fe=!0,we=Vg[0];function Te(ze){ze.each(function(){var Ne=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Je).on("touchstart.brush",Je),Ue=Ne.selectAll(".background").data([0]);Ue.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 Ze=Ne.selectAll(".resize").data(we,F);Ze.exit().remove(),Ze.enter().append("g").attr("class",function(vr){return"resize "+vr}).style("cursor",function(vr){return TY[vr]}).append("rect").attr("x",function(vr){return/[ew]$/.test(vr)?-3:null}).attr("y",function(vr){return/^[ns]/.test(vr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ze.style("display",Te.empty()?"none":null);var $e=e.transition(Ne),He=e.transition(Ue),ar;N&&(ar=Av(N),He.attr("x",ar[0]).attr("width",ar[1]-ar[0]),De($e)),B&&(ar=Av(B),He.attr("y",ar[0]).attr("height",ar[1]-ar[0]),Ge($e)),Re($e)})}Te.event=function(ze){ze.each(function(){var Ne=C.of(this,arguments),Ue={x:H,y:X,i:W,j:ue},Ze=this.__chart__||Ue;this.__chart__=Ue,Kl?e.select(this).transition().each("start.brush",function(){W=Ze.i,ue=Ze.j,H=Ze.x,X=Ze.y,Ne({type:"brushstart"})}).tween("brush:brush",function(){var $e=Mv(H,Ue.x),He=Mv(X,Ue.y);return W=ue=null,function(ar){H=Ue.x=$e(ar),X=Ue.y=He(ar),Ne({type:"brush",mode:"resize"})}}).each("end.brush",function(){W=Ue.i,ue=Ue.j,Ne({type:"brush",mode:"resize"}),Ne({type:"brushend"})}):(Ne({type:"brushstart"}),Ne({type:"brush",mode:"resize"}),Ne({type:"brushend"}))})};function Re(ze){ze.selectAll(".resize").attr("transform",function(Ne){return"translate("+H[+/e$/.test(Ne)]+","+X[+/^s/.test(Ne)]+")"})}function De(ze){ze.select(".extent").attr("x",H[0]),ze.selectAll(".extent,.n>rect,.s>rect").attr("width",H[1]-H[0])}function Ge(ze){ze.select(".extent").attr("y",X[0]),ze.selectAll(".extent,.e>rect,.w>rect").attr("height",X[1]-X[0])}function Je(){var ze=this,Ne=e.select(e.event.target),Ue=C.of(ze,arguments),Ze=e.select(ze),$e=Ne.datum(),He=!/^(n|s)$/.test($e)&&N,ar=!/^(e|w)$/.test($e)&&B,vr=Ne.classed("extent"),pr=qe(ze),dr,mr=e.mouse(ze),br,Nr=e.select(o(ze)).on("keydown.brush",ut).on("keyup.brush",Jt);if(e.event.changedTouches?Nr.on("touchmove.brush",yt).on("touchend.brush",qr):Nr.on("mousemove.brush",yt).on("mouseup.brush",qr),Ze.interrupt().selectAll("*").interrupt(),vr)mr[0]=H[0]-mr[0],mr[1]=X[0]-mr[1];else if($e){var _r=+/w$/.test($e),Rr=+/^n/.test($e);br=[H[1-_r]-mr[0],X[1-Rr]-mr[1]],mr[0]=H[_r],mr[1]=X[Rr]}else e.event.altKey&&(dr=mr.slice());Ze.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ne.style("cursor")),Ue({type:"brushstart"}),yt();function ut(){e.event.keyCode==32&&(vr||(dr=null,mr[0]-=H[1],mr[1]-=X[1],vr=2),V())}function Jt(){e.event.keyCode==32&&vr==2&&(mr[0]+=H[1],mr[1]+=X[1],vr=0,V())}function yt(){var Ur=e.mouse(ze),ft=!1;br&&(Ur[0]+=br[0],Ur[1]+=br[1]),vr||(e.event.altKey?(dr||(dr=[(H[0]+H[1])/2,(X[0]+X[1])/2]),mr[0]=H[+(Ur[0]<dr[0])],mr[1]=X[+(Ur[1]<dr[1])]):dr=null),He&&fr(Ur,N,0)&&(De(Ze),ft=!0),ar&&fr(Ur,B,1)&&(Ge(Ze),ft=!0),ft&&(Re(Ze),Ue({type:"brush",mode:vr?"move":"resize"}))}function fr(Ur,ft,Ht){var sn=Av(ft),Rn=sn[0],Jn=sn[1],la=mr[Ht],$n=Ht?X:H,pa=$n[1]-$n[0],Fn,ga;if(vr&&(Rn-=la,Jn-=pa+la),Fn=(Ht?fe:ne)?Math.max(Rn,Math.min(Jn,Ur[Ht])):Ur[Ht],vr?ga=(Fn+=la)+pa:(dr&&(la=Math.max(Rn,Math.min(Jn,2*dr[Ht]-Fn))),la<Fn?(ga=Fn,Fn=la):ga=la),$n[0]!=Fn||$n[1]!=ga)return Ht?ue=null:W=null,$n[0]=Fn,$n[1]=ga,!0}function qr(){yt(),Ze.style("pointer-events","all").selectAll(".resize").style("display",Te.empty()?"none":null),e.select("body").style("cursor",null),Nr.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),pr(),Ue({type:"brushend"})}}return Te.x=function(ze){return arguments.length?(N=ze,we=Vg[!N<<1|!B],Te):N},Te.y=function(ze){return arguments.length?(B=ze,we=Vg[!N<<1|!B],Te):B},Te.clamp=function(ze){return arguments.length?(N&&B?(ne=!!ze[0],fe=!!ze[1]):N?ne=!!ze:B&&(fe=!!ze),Te):N&&B?[ne,fe]:N?ne:B?fe:null},Te.extent=function(ze){var Ne,Ue,Ze,$e,He;return arguments.length?(N&&(Ne=ze[0],Ue=ze[1],B&&(Ne=Ne[0],Ue=Ue[0]),W=[Ne,Ue],N.invert&&(Ne=N(Ne),Ue=N(Ue)),Ue<Ne&&(He=Ne,Ne=Ue,Ue=He),(Ne!=H[0]||Ue!=H[1])&&(H=[Ne,Ue])),B&&(Ze=ze[0],$e=ze[1],N&&(Ze=Ze[1],$e=$e[1]),ue=[Ze,$e],B.invert&&(Ze=B(Ze),$e=B($e)),$e<Ze&&(He=Ze,Ze=$e,$e=He),(Ze!=X[0]||$e!=X[1])&&(X=[Ze,$e])),Te):(N&&(W?(Ne=W[0],Ue=W[1]):(Ne=H[0],Ue=H[1],N.invert&&(Ne=N.invert(Ne),Ue=N.invert(Ue)),Ue<Ne&&(He=Ne,Ne=Ue,Ue=He))),B&&(ue?(Ze=ue[0],$e=ue[1]):(Ze=X[0],$e=X[1],B.invert&&(Ze=B.invert(Ze),$e=B.invert($e)),$e<Ze&&(He=Ze,Ze=$e,$e=He))),N&&B?[[Ne,Ze],[Ue,$e]]:N?[Ne,Ue]:B&&[Ze,$e])},Te.clear=function(){return Te.empty()||(H=[0,0],X=[0,0],W=ue=null),Te},Te.empty=function(){return!!N&&H[0]==H[1]||!!B&&X[0]==X[1]},e.rebind(Te,C,"on")};var TY={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Vg=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=ht(function(C){return C.responseText}),e.json=function(C,N){return hr(C,"application/json",AY,N)};function AY(C){return JSON.parse(C.responseText)}e.html=function(C,N){return hr(C,"text/html",kY,N)};function kY(C){var N=n.createRange();return N.selectNode(n.body),N.createContextualFragment(C.responseText)}e.xml=ht(function(C){return C.responseXML}),typeof Nv=="object"&&Nv.exports?Nv.exports=e:this.d3=e}).apply(self)});var Yg=xe((qv,S_)=>{(function(e,r){typeof qv=="object"&&typeof S_!="undefined"?r(qv):(e=e||self,r(e.d3=e.d3||{}))})(qv,function(e){"use strict";var r=new Date,t=new Date;function n(oe,ve,he,me){function be(ye){return oe(ye=arguments.length===0?new Date:new Date(+ye)),ye}return be.floor=function(ye){return oe(ye=new Date(+ye)),ye},be.ceil=function(ye){return oe(ye=new Date(ye-1)),ve(ye,1),oe(ye),ye},be.round=function(ye){var de=be(ye),_e=be.ceil(ye);return ye-de<_e-ye?de:_e},be.offset=function(ye,de){return ve(ye=new Date(+ye),de==null?1:Math.floor(de)),ye},be.range=function(ye,de,_e){var Ae=[],Ie;if(ye=be.ceil(ye),_e=_e==null?1:Math.floor(_e),!(ye<de)||!(_e>0))return Ae;do Ae.push(Ie=new Date(+ye)),ve(ye,_e),oe(ye);while(Ie<ye&&ye<de);return Ae},be.filter=function(ye){return n(function(de){if(de>=de)for(;oe(de),!ye(de);)de.setTime(de-1)},function(de,_e){if(de>=de)if(_e<0)for(;++_e<=0;)for(;ve(de,-1),!ye(de););else for(;--_e>=0;)for(;ve(de,1),!ye(de););})},he&&(be.count=function(ye,de){return r.setTime(+ye),t.setTime(+de),oe(r),oe(t),Math.floor(he(r,t))},be.every=function(ye){return ye=Math.floor(ye),!isFinite(ye)||!(ye>0)?null:ye>1?be.filter(me?function(de){return me(de)%ye===0}:function(de){return be.count(0,de)%ye===0}):be}),be}var a=n(function(){},function(oe,ve){oe.setTime(+oe+ve)},function(oe,ve){return ve-oe});a.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?n(function(ve){ve.setTime(Math.floor(ve/oe)*oe)},function(ve,he){ve.setTime(+ve+he*oe)},function(ve,he){return(he-ve)/oe}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,c=n(function(oe){oe.setTime(oe-oe.getMilliseconds())},function(oe,ve){oe.setTime(+oe+ve*i)},function(oe,ve){return(ve-oe)/i},function(oe){return oe.getUTCSeconds()}),d=c.range,x=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i)},function(oe,ve){oe.setTime(+oe+ve*l)},function(oe,ve){return(ve-oe)/l},function(oe){return oe.getMinutes()}),g=x.range,w=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i-oe.getMinutes()*l)},function(oe,ve){oe.setTime(+oe+ve*u)},function(oe,ve){return(ve-oe)/u},function(oe){return oe.getHours()}),T=w.range,m=n(function(oe){oe.setHours(0,0,0,0)},function(oe,ve){oe.setDate(oe.getDate()+ve)},function(oe,ve){return(ve-oe-(ve.getTimezoneOffset()-oe.getTimezoneOffset())*l)/s},function(oe){return oe.getDate()-1}),k=m.range;function S(oe){return n(function(ve){ve.setDate(ve.getDate()-(ve.getDay()+7-oe)%7),ve.setHours(0,0,0,0)},function(ve,he){ve.setDate(ve.getDate()+he*7)},function(ve,he){return(he-ve-(he.getTimezoneOffset()-ve.getTimezoneOffset())*l)/f})}var b=S(0),M=S(1),h=S(2),_=S(3),y=S(4),v=S(5),A=S(6),p=b.range,R=M.range,E=h.range,D=_.range,F=y.range,z=v.range,I=A.range,L=n(function(oe){oe.setDate(1),oe.setHours(0,0,0,0)},function(oe,ve){oe.setMonth(oe.getMonth()+ve)},function(oe,ve){return ve.getMonth()-oe.getMonth()+(ve.getFullYear()-oe.getFullYear())*12},function(oe){return oe.getMonth()}),P=L.range,O=n(function(oe){oe.setMonth(0,1),oe.setHours(0,0,0,0)},function(oe,ve){oe.setFullYear(oe.getFullYear()+ve)},function(oe,ve){return ve.getFullYear()-oe.getFullYear()},function(oe){return oe.getFullYear()});O.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(ve){ve.setFullYear(Math.floor(ve.getFullYear()/oe)*oe),ve.setMonth(0,1),ve.setHours(0,0,0,0)},function(ve,he){ve.setFullYear(ve.getFullYear()+he*oe)})};var U=O.range,V=n(function(oe){oe.setUTCSeconds(0,0)},function(oe,ve){oe.setTime(+oe+ve*l)},function(oe,ve){return(ve-oe)/l},function(oe){return oe.getUTCMinutes()}),K=V.range,j=n(function(oe){oe.setUTCMinutes(0,0,0)},function(oe,ve){oe.setTime(+oe+ve*u)},function(oe,ve){return(ve-oe)/u},function(oe){return oe.getUTCHours()}),G=j.range,q=n(function(oe){oe.setUTCHours(0,0,0,0)},function(oe,ve){oe.setUTCDate(oe.getUTCDate()+ve)},function(oe,ve){return(ve-oe)/s},function(oe){return oe.getUTCDate()-1}),J=q.range;function te(oe){return n(function(ve){ve.setUTCDate(ve.getUTCDate()-(ve.getUTCDay()+7-oe)%7),ve.setUTCHours(0,0,0,0)},function(ve,he){ve.setUTCDate(ve.getUTCDate()+he*7)},function(ve,he){return(he-ve)/f})}var Z=te(0),ie=te(1),Q=te(2),re=te(3),se=te(4),ee=te(5),ae=te(6),ce=Z.range,Me=ie.range,ke=Q.range,Se=re.range,ge=se.range,Le=ee.range,Ee=ae.range,le=n(function(oe){oe.setUTCDate(1),oe.setUTCHours(0,0,0,0)},function(oe,ve){oe.setUTCMonth(oe.getUTCMonth()+ve)},function(oe,ve){return ve.getUTCMonth()-oe.getUTCMonth()+(ve.getUTCFullYear()-oe.getUTCFullYear())*12},function(oe){return oe.getUTCMonth()}),Y=le.range,$=n(function(oe){oe.setUTCMonth(0,1),oe.setUTCHours(0,0,0,0)},function(oe,ve){oe.setUTCFullYear(oe.getUTCFullYear()+ve)},function(oe,ve){return ve.getUTCFullYear()-oe.getUTCFullYear()},function(oe){return oe.getUTCFullYear()});$.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(ve){ve.setUTCFullYear(Math.floor(ve.getUTCFullYear()/oe)*oe),ve.setUTCMonth(0,1),ve.setUTCHours(0,0,0,0)},function(ve,he){ve.setUTCFullYear(ve.getUTCFullYear()+he*oe)})};var pe=$.range;e.timeDay=m,e.timeDays=k,e.timeFriday=v,e.timeFridays=z,e.timeHour=w,e.timeHours=T,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=x,e.timeMinutes=g,e.timeMonday=M,e.timeMondays=R,e.timeMonth=L,e.timeMonths=P,e.timeSaturday=A,e.timeSaturdays=I,e.timeSecond=c,e.timeSeconds=d,e.timeSunday=b,e.timeSundays=p,e.timeThursday=y,e.timeThursdays=F,e.timeTuesday=h,e.timeTuesdays=E,e.timeWednesday=_,e.timeWednesdays=D,e.timeWeek=b,e.timeWeeks=p,e.timeYear=O,e.timeYears=U,e.utcDay=q,e.utcDays=J,e.utcFriday=ee,e.utcFridays=Le,e.utcHour=j,e.utcHours=G,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=V,e.utcMinutes=K,e.utcMonday=ie,e.utcMondays=Me,e.utcMonth=le,e.utcMonths=Y,e.utcSaturday=ae,e.utcSaturdays=Ee,e.utcSecond=c,e.utcSeconds=d,e.utcSunday=Z,e.utcSundays=ce,e.utcThursday=se,e.utcThursdays=ge,e.utcTuesday=Q,e.utcTuesdays=ke,e.utcWednesday=re,e.utcWednesdays=Se,e.utcWeek=Z,e.utcWeeks=ce,e.utcYear=$,e.utcYears=pe,Object.defineProperty(e,"__esModule",{value:!0})})});var pu=xe((Ov,C_)=>{(function(e,r){typeof Ov=="object"&&typeof C_!="undefined"?r(Ov,Yg()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Ov,function(e,r){"use strict";function t(Ce){if(0<=Ce.y&&Ce.y<100){var Fe=new Date(-1,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L);return Fe.setFullYear(Ce.y),Fe}return new Date(Ce.y,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L)}function n(Ce){if(0<=Ce.y&&Ce.y<100){var Fe=new Date(Date.UTC(-1,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L));return Fe.setUTCFullYear(Ce.y),Fe}return new Date(Date.UTC(Ce.y,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L))}function a(Ce,Fe,Qe){return{y:Ce,m:Fe,d:Qe,H:0,M:0,S:0,L:0}}function o(Ce){var Fe=Ce.dateTime,Qe=Ce.date,er=Ce.time,wr=Ce.periods,Vr=Ce.days,Mr=Ce.shortDays,Dr=Ce.months,Qr=Ce.shortMonths,Sr=d(wr),Wr=x(wr),bt=d(Vr),Jr=x(Vr),lt=d(Mr),Cn=x(Mr),lr=d(Dr),Fr=x(Dr),et=d(Qr),Br=x(Qr),Gr={a:_o,A:wo,b:dn,B:Wo,c:null,d:L,e:L,f:K,g:ee,G:ce,H:P,I:O,j:U,L:V,m:j,M:G,p:Ui,q:Hi,Q:qe,s:Oe,S:q,u:J,U:te,V:ie,w:Q,W:re,x:null,X:null,y:se,Y:ae,Z:Me,"%":Ye},pt={a:Zo,A:dv,b:pv,B:gv,c:null,d:ke,e:ke,f:le,g:_e,G:Ie,H:Se,I:ge,j:Le,L:Ee,m:Y,M:$,p:Xf,q:Wf,Q:qe,s:Oe,S:pe,u:oe,U:ve,V:me,w:be,W:ye,x:null,X:null,y:de,Y:Ae,Z:Pe,"%":Ye},at={a:Et,A:Lt,b:da,B:Wn,c:Ua,d:y,e:y,f:D,g:b,G:S,H:A,I:A,j:v,L:E,m:_,M:p,p:gt,q:h,Q:z,s:I,S:R,u:w,U:T,V:m,w:g,W:k,x:Bi,X:xo,y:b,Y:S,Z:M,"%":F};Gr.x=Ct(Qe,Gr),Gr.X=Ct(er,Gr),Gr.c=Ct(Fe,Gr),pt.x=Ct(Qe,pt),pt.X=Ct(er,pt),pt.c=Ct(Fe,pt);function Ct(Ar,Tr){return function(ht){var hr=[],Zn=-1,Rt=0,En=Ar.length,Ln,Ha,Zl;for(ht instanceof Date||(ht=new Date(+ht));++Zn<En;)Ar.charCodeAt(Zn)===37&&(hr.push(Ar.slice(Rt,Zn)),(Ha=i[Ln=Ar.charAt(++Zn)])!=null?Ln=Ar.charAt(++Zn):Ha=Ln==="e"?" ":"0",(Zl=Tr[Ln])&&(Ln=Zl(ht,Ha)),hr.push(Ln),Rt=Zn+1);return hr.push(Ar.slice(Rt,Zn)),hr.join("")}}function Zt(Ar,Tr){return function(ht){var hr=a(1900,void 0,1),Zn=St(hr,Ar,ht+="",0),Rt,En;if(Zn!=ht.length)return null;if("Q"in hr)return new Date(hr.Q);if("s"in hr)return new Date(hr.s*1e3+("L"in hr?hr.L:0));if(Tr&&!("Z"in hr)&&(hr.Z=0),"p"in hr&&(hr.H=hr.H%12+hr.p*12),hr.m===void 0&&(hr.m="q"in hr?hr.q:0),"V"in hr){if(hr.V<1||hr.V>53)return null;"w"in hr||(hr.w=1),"Z"in hr?(Rt=n(a(hr.y,0,1)),En=Rt.getUTCDay(),Rt=En>4||En===0?r.utcMonday.ceil(Rt):r.utcMonday(Rt),Rt=r.utcDay.offset(Rt,(hr.V-1)*7),hr.y=Rt.getUTCFullYear(),hr.m=Rt.getUTCMonth(),hr.d=Rt.getUTCDate()+(hr.w+6)%7):(Rt=t(a(hr.y,0,1)),En=Rt.getDay(),Rt=En>4||En===0?r.timeMonday.ceil(Rt):r.timeMonday(Rt),Rt=r.timeDay.offset(Rt,(hr.V-1)*7),hr.y=Rt.getFullYear(),hr.m=Rt.getMonth(),hr.d=Rt.getDate()+(hr.w+6)%7)}else("W"in hr||"U"in hr)&&("w"in hr||(hr.w="u"in hr?hr.u%7:"W"in hr?1:0),En="Z"in hr?n(a(hr.y,0,1)).getUTCDay():t(a(hr.y,0,1)).getDay(),hr.m=0,hr.d="W"in hr?(hr.w+6)%7+hr.W*7-(En+5)%7:hr.w+hr.U*7-(En+6)%7);return"Z"in hr?(hr.H+=hr.Z/100|0,hr.M+=hr.Z%100,n(hr)):t(hr)}}function St(Ar,Tr,ht,hr){for(var Zn=0,Rt=Tr.length,En=ht.length,Ln,Ha;Zn<Rt;){if(hr>=En)return-1;if(Ln=Tr.charCodeAt(Zn++),Ln===37){if(Ln=Tr.charAt(Zn++),Ha=at[Ln in i?Tr.charAt(Zn++):Ln],!Ha||(hr=Ha(Ar,ht,hr))<0)return-1}else if(Ln!=ht.charCodeAt(hr++))return-1}return hr}function gt(Ar,Tr,ht){var hr=Sr.exec(Tr.slice(ht));return hr?(Ar.p=Wr[hr[0].toLowerCase()],ht+hr[0].length):-1}function Et(Ar,Tr,ht){var hr=lt.exec(Tr.slice(ht));return hr?(Ar.w=Cn[hr[0].toLowerCase()],ht+hr[0].length):-1}function Lt(Ar,Tr,ht){var hr=bt.exec(Tr.slice(ht));return hr?(Ar.w=Jr[hr[0].toLowerCase()],ht+hr[0].length):-1}function da(Ar,Tr,ht){var hr=et.exec(Tr.slice(ht));return hr?(Ar.m=Br[hr[0].toLowerCase()],ht+hr[0].length):-1}function Wn(Ar,Tr,ht){var hr=lr.exec(Tr.slice(ht));return hr?(Ar.m=Fr[hr[0].toLowerCase()],ht+hr[0].length):-1}function Ua(Ar,Tr,ht){return St(Ar,Fe,Tr,ht)}function Bi(Ar,Tr,ht){return St(Ar,Qe,Tr,ht)}function xo(Ar,Tr,ht){return St(Ar,er,Tr,ht)}function _o(Ar){return Mr[Ar.getDay()]}function wo(Ar){return Vr[Ar.getDay()]}function dn(Ar){return Qr[Ar.getMonth()]}function Wo(Ar){return Dr[Ar.getMonth()]}function Ui(Ar){return wr[+(Ar.getHours()>=12)]}function Hi(Ar){return 1+~~(Ar.getMonth()/3)}function Zo(Ar){return Mr[Ar.getUTCDay()]}function dv(Ar){return Vr[Ar.getUTCDay()]}function pv(Ar){return Qr[Ar.getUTCMonth()]}function gv(Ar){return Dr[Ar.getUTCMonth()]}function Xf(Ar){return wr[+(Ar.getUTCHours()>=12)]}function Wf(Ar){return 1+~~(Ar.getUTCMonth()/3)}return{format:function(Ar){var Tr=Ct(Ar+="",Gr);return Tr.toString=function(){return Ar},Tr},parse:function(Ar){var Tr=Zt(Ar+="",!1);return Tr.toString=function(){return Ar},Tr},utcFormat:function(Ar){var Tr=Ct(Ar+="",pt);return Tr.toString=function(){return Ar},Tr},utcParse:function(Ar){var Tr=Zt(Ar+="",!0);return Tr.toString=function(){return Ar},Tr}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Ce,Fe,Qe){var er=Ce<0?"-":"",wr=(er?-Ce:Ce)+"",Vr=wr.length;return er+(Vr<Qe?new Array(Qe-Vr+1).join(Fe)+wr:wr)}function c(Ce){return Ce.replace(s,"\\$&")}function d(Ce){return new RegExp("^(?:"+Ce.map(c).join("|")+")","i")}function x(Ce){for(var Fe={},Qe=-1,er=Ce.length;++Qe<er;)Fe[Ce[Qe].toLowerCase()]=Qe;return Fe}function g(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+1));return er?(Ce.w=+er[0],Qe+er[0].length):-1}function w(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+1));return er?(Ce.u=+er[0],Qe+er[0].length):-1}function T(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+2));return er?(Ce.U=+er[0],Qe+er[0].length):-1}function m(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+2));return er?(Ce.V=+er[0],Qe+er[0].length):-1}function k(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+2));return er?(Ce.W=+er[0],Qe+er[0].length):-1}function S(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+4));return er?(Ce.y=+er[0],Qe+er[0].length):-1}function b(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+2));return er?(Ce.y=+er[0]+(+er[0]>68?1900:2e3),Qe+er[0].length):-1}function M(Ce,Fe,Qe){var er=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Fe.slice(Qe,Qe+6));return er?(Ce.Z=er[1]?0:-(er[2]+(er[3]||"00")),Qe+er[0].length):-1}function h(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+1));return er?(Ce.q=er[0]*3-3,Qe+er[0].length):-1}function _(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+2));return er?(Ce.m=er[0]-1,Qe+er[0].length):-1}function y(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+2));return er?(Ce.d=+er[0],Qe+er[0].length):-1}function v(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+3));return er?(Ce.m=0,Ce.d=+er[0],Qe+er[0].length):-1}function A(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+2));return er?(Ce.H=+er[0],Qe+er[0].length):-1}function p(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+2));return er?(Ce.M=+er[0],Qe+er[0].length):-1}function R(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+2));return er?(Ce.S=+er[0],Qe+er[0].length):-1}function E(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+3));return er?(Ce.L=+er[0],Qe+er[0].length):-1}function D(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe,Qe+6));return er?(Ce.L=Math.floor(er[0]/1e3),Qe+er[0].length):-1}function F(Ce,Fe,Qe){var er=u.exec(Fe.slice(Qe,Qe+1));return er?Qe+er[0].length:-1}function z(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe));return er?(Ce.Q=+er[0],Qe+er[0].length):-1}function I(Ce,Fe,Qe){var er=l.exec(Fe.slice(Qe));return er?(Ce.s=+er[0],Qe+er[0].length):-1}function L(Ce,Fe){return f(Ce.getDate(),Fe,2)}function P(Ce,Fe){return f(Ce.getHours(),Fe,2)}function O(Ce,Fe){return f(Ce.getHours()%12||12,Fe,2)}function U(Ce,Fe){return f(1+r.timeDay.count(r.timeYear(Ce),Ce),Fe,3)}function V(Ce,Fe){return f(Ce.getMilliseconds(),Fe,3)}function K(Ce,Fe){return V(Ce,Fe)+"000"}function j(Ce,Fe){return f(Ce.getMonth()+1,Fe,2)}function G(Ce,Fe){return f(Ce.getMinutes(),Fe,2)}function q(Ce,Fe){return f(Ce.getSeconds(),Fe,2)}function J(Ce){var Fe=Ce.getDay();return Fe===0?7:Fe}function te(Ce,Fe){return f(r.timeSunday.count(r.timeYear(Ce)-1,Ce),Fe,2)}function Z(Ce){var Fe=Ce.getDay();return Fe>=4||Fe===0?r.timeThursday(Ce):r.timeThursday.ceil(Ce)}function ie(Ce,Fe){return Ce=Z(Ce),f(r.timeThursday.count(r.timeYear(Ce),Ce)+(r.timeYear(Ce).getDay()===4),Fe,2)}function Q(Ce){return Ce.getDay()}function re(Ce,Fe){return f(r.timeMonday.count(r.timeYear(Ce)-1,Ce),Fe,2)}function se(Ce,Fe){return f(Ce.getFullYear()%100,Fe,2)}function ee(Ce,Fe){return Ce=Z(Ce),f(Ce.getFullYear()%100,Fe,2)}function ae(Ce,Fe){return f(Ce.getFullYear()%1e4,Fe,4)}function ce(Ce,Fe){var Qe=Ce.getDay();return Ce=Qe>=4||Qe===0?r.timeThursday(Ce):r.timeThursday.ceil(Ce),f(Ce.getFullYear()%1e4,Fe,4)}function Me(Ce){var Fe=Ce.getTimezoneOffset();return(Fe>0?"-":(Fe*=-1,"+"))+f(Fe/60|0,"0",2)+f(Fe%60,"0",2)}function ke(Ce,Fe){return f(Ce.getUTCDate(),Fe,2)}function Se(Ce,Fe){return f(Ce.getUTCHours(),Fe,2)}function ge(Ce,Fe){return f(Ce.getUTCHours()%12||12,Fe,2)}function Le(Ce,Fe){return f(1+r.utcDay.count(r.utcYear(Ce),Ce),Fe,3)}function Ee(Ce,Fe){return f(Ce.getUTCMilliseconds(),Fe,3)}function le(Ce,Fe){return Ee(Ce,Fe)+"000"}function Y(Ce,Fe){return f(Ce.getUTCMonth()+1,Fe,2)}function $(Ce,Fe){return f(Ce.getUTCMinutes(),Fe,2)}function pe(Ce,Fe){return f(Ce.getUTCSeconds(),Fe,2)}function oe(Ce){var Fe=Ce.getUTCDay();return Fe===0?7:Fe}function ve(Ce,Fe){return f(r.utcSunday.count(r.utcYear(Ce)-1,Ce),Fe,2)}function he(Ce){var Fe=Ce.getUTCDay();return Fe>=4||Fe===0?r.utcThursday(Ce):r.utcThursday.ceil(Ce)}function me(Ce,Fe){return Ce=he(Ce),f(r.utcThursday.count(r.utcYear(Ce),Ce)+(r.utcYear(Ce).getUTCDay()===4),Fe,2)}function be(Ce){return Ce.getUTCDay()}function ye(Ce,Fe){return f(r.utcMonday.count(r.utcYear(Ce)-1,Ce),Fe,2)}function de(Ce,Fe){return f(Ce.getUTCFullYear()%100,Fe,2)}function _e(Ce,Fe){return Ce=he(Ce),f(Ce.getUTCFullYear()%100,Fe,2)}function Ae(Ce,Fe){return f(Ce.getUTCFullYear()%1e4,Fe,4)}function Ie(Ce,Fe){var Qe=Ce.getUTCDay();return Ce=Qe>=4||Qe===0?r.utcThursday(Ce):r.utcThursday.ceil(Ce),f(Ce.getUTCFullYear()%1e4,Fe,4)}function Pe(){return"+0000"}function Ye(){return"%"}function qe(Ce){return+Ce}function Oe(Ce){return Math.floor(+Ce/1e3)}var Be;We({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 We(Ce){return Be=o(Ce),e.timeFormat=Be.format,e.timeParse=Be.parse,e.utcFormat=Be.utcFormat,e.utcParse=Be.utcParse,Be}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function tr(Ce){return Ce.toISOString()}var ir=Date.prototype.toISOString?tr:e.utcFormat(Xe);function je(Ce){var Fe=new Date(Ce);return isNaN(Fe)?null:Fe}var Ke=+new Date("2000-01-01T00:00:00.000Z")?je:e.utcParse(Xe);e.isoFormat=ir,e.isoParse=Ke,e.timeFormatDefaultLocale=We,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var Xg=xe((Bv,E_)=>{(function(e,r){typeof Bv=="object"&&typeof E_!="undefined"?r(Bv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Bv,(function(e){"use strict";function r(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function t(_,y){if((v=(_=y?_.toExponential(y-1):_.toExponential()).indexOf("e"))<0)return null;var v,A=_.slice(0,v);return[A.length>1?A[0]+A.slice(2):A,+_.slice(v+1)]}function n(_){return _=t(Math.abs(_)),_?_[1]:NaN}function a(_,y){return function(v,A){for(var p=v.length,R=[],E=0,D=_[0],F=0;p>0&&D>0&&(F+D+1>A&&(D=Math.max(1,A-F)),R.push(v.substring(p-=D,p+D)),!((F+=D+1)>A));)D=_[E=(E+1)%_.length];return R.reverse().join(y)}}function o(_){return function(y){return y.replace(/[0-9]/g,function(v){return _[+v]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(_){if(!(y=i.exec(_)))throw new Error("invalid format: "+_);var y;return new u({fill:y[1],align:y[2],sign:y[3],symbol:y[4],zero:y[5],width:y[6],comma:y[7],precision:y[8]&&y[8].slice(1),trim:y[9],type:y[10]})}l.prototype=u.prototype;function u(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}u.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 s(_){e:for(var y=_.length,v=1,A=-1,p;v<y;++v)switch(_[v]){case".":A=p=v;break;case"0":A===0&&(A=v),p=v;break;default:if(!+_[v])break e;A>0&&(A=0);break}return A>0?_.slice(0,A)+_.slice(p+1):_}var f;function c(_,y){var v=t(_,y);if(!v)return _+"";var A=v[0],p=v[1],R=p-(f=Math.max(-8,Math.min(8,Math.floor(p/3)))*3)+1,E=A.length;return R===E?A:R>E?A+new Array(R-E+1).join("0"):R>0?A.slice(0,R)+"."+A.slice(R):"0."+new Array(1-R).join("0")+t(_,Math.max(0,y+R-1))[0]}function d(_,y){var v=t(_,y);if(!v)return _+"";var A=v[0],p=v[1];return p<0?"0."+new Array(-p).join("0")+A:A.length>p+1?A.slice(0,p+1)+"."+A.slice(p+1):A+new Array(p-A.length+2).join("0")}var x={"%":function(_,y){return(_*100).toFixed(y)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:r,e:function(_,y){return _.toExponential(y)},f:function(_,y){return _.toFixed(y)},g:function(_,y){return _.toPrecision(y)},o:function(_){return Math.round(_).toString(8)},p:function(_,y){return d(_*100,y)},r:d,s:c,X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function g(_){return _}var w=Array.prototype.map,T=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function m(_){var y=_.grouping===void 0||_.thousands===void 0?g:a(w.call(_.grouping,Number),_.thousands+""),v=_.currency===void 0?"":_.currency[0]+"",A=_.currency===void 0?"":_.currency[1]+"",p=_.decimal===void 0?".":_.decimal+"",R=_.numerals===void 0?g:o(w.call(_.numerals,String)),E=_.percent===void 0?"%":_.percent+"",D=_.minus===void 0?"-":_.minus+"",F=_.nan===void 0?"NaN":_.nan+"";function z(L){L=l(L);var P=L.fill,O=L.align,U=L.sign,V=L.symbol,K=L.zero,j=L.width,G=L.comma,q=L.precision,J=L.trim,te=L.type;te==="n"?(G=!0,te="g"):x[te]||(q===void 0&&(q=12),J=!0,te="g"),(K||P==="0"&&O==="=")&&(K=!0,P="0",O="=");var Z=V==="$"?v:V==="#"&&/[boxX]/.test(te)?"0"+te.toLowerCase():"",ie=V==="$"?A:/[%p]/.test(te)?E:"",Q=x[te],re=/[defgprs%]/.test(te);q=q===void 0?6:/[gprs]/.test(te)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function se(ee){var ae=Z,ce=ie,Me,ke,Se;if(te==="c")ce=Q(ee)+ce,ee="";else{ee=+ee;var ge=ee<0||1/ee<0;if(ee=isNaN(ee)?F:Q(Math.abs(ee),q),J&&(ee=s(ee)),ge&&+ee==0&&U!=="+"&&(ge=!1),ae=(ge?U==="("?U:D:U==="-"||U==="("?"":U)+ae,ce=(te==="s"?T[8+f/3]:"")+ce+(ge&&U==="("?")":""),re){for(Me=-1,ke=ee.length;++Me<ke;)if(Se=ee.charCodeAt(Me),48>Se||Se>57){ce=(Se===46?p+ee.slice(Me+1):ee.slice(Me))+ce,ee=ee.slice(0,Me);break}}}G&&!K&&(ee=y(ee,1/0));var Le=ae.length+ee.length+ce.length,Ee=Le<j?new Array(j-Le+1).join(P):"";switch(G&&K&&(ee=y(Ee+ee,Ee.length?j-ce.length:1/0),Ee=""),O){case"<":ee=ae+ee+ce+Ee;break;case"=":ee=ae+Ee+ee+ce;break;case"^":ee=Ee.slice(0,Le=Ee.length>>1)+ae+ee+ce+Ee.slice(Le);break;default:ee=Ee+ae+ee+ce;break}return R(ee)}return se.toString=function(){return L+""},se}function I(L,P){var O=z((L=l(L),L.type="f",L)),U=Math.max(-8,Math.min(8,Math.floor(n(P)/3)))*3,V=Math.pow(10,-U),K=T[8+U/3];return function(j){return O(V*j)+K}}return{format:z,formatPrefix:I}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(_){return k=m(_),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function b(_){return Math.max(0,-n(Math.abs(_)))}function M(_,y){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(y)/3)))*3-n(Math.abs(_)))}function h(_,y){return _=Math.abs(_),y=Math.abs(y)-_,Math.max(0,n(y)-n(_))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=m,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=h,Object.defineProperty(e,"__esModule",{value:!0})}))});var R_=xe((Mye,L_)=>{"use strict";L_.exports=function(e){for(var r=e.length,t,n=0;n<r;n++)if(t=e.charCodeAt(n),(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 it=xe((Tye,D_)=>{"use strict";var zY=R_();D_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&zY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var pn=xe((Aye,P_)=>{"use strict";P_.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 Wg=xe((Uv,I_)=>{(function(e,r){typeof Uv=="object"&&typeof I_!="undefined"?r(Uv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Uv,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n<r.length;n++)t[r.charCodeAt(n)]=n;var a=function(i){var l=new Uint8Array(i),u,s=l.length,f="";for(u=0;u<s;u+=3)f+=r[l[u]>>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},o=function(i){var l=i.length*.75,u=i.length,s,f=0,c,d,x,g;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var w=new ArrayBuffer(l),T=new Uint8Array(w);for(s=0;s<u;s+=4)c=t[i.charCodeAt(s)],d=t[i.charCodeAt(s+1)],x=t[i.charCodeAt(s+2)],g=t[i.charCodeAt(s+3)],T[f++]=c<<2|d>>4,T[f++]=(d&15)<<4|x>>2,T[f++]=(x&3)<<6|g&63;return w};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var es=xe((kye,z_)=>{"use strict";z_.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 sa=xe(pi=>{"use strict";var FY=Wg().decode,NY=es(),Zg=Array.isArray,qY=ArrayBuffer,OY=DataView;function F_(e){return qY.isView(e)&&!(e instanceof OY)}pi.isTypedArray=F_;function Hv(e){return Zg(e)||F_(e)}pi.isArrayOrTypedArray=Hv;function BY(e){return!Hv(e[0])}pi.isArray1D=BY;pi.ensureArray=function(e,r){return Zg(e)||(e=[]),e.length=r,e};var Tn={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};Tn.uint8c=Tn.u1c;Tn.uint8=Tn.u1;Tn.int8=Tn.i1;Tn.uint16=Tn.u2;Tn.int16=Tn.i2;Tn.uint32=Tn.u4;Tn.int32=Tn.i4;Tn.float32=Tn.f4;Tn.float64=Tn.f8;function Jg(e){return e.constructor===ArrayBuffer}pi.isArrayBuffer=Jg;pi.decodeTypedArraySpec=function(e){var r=[],t=UY(e),n=t.dtype,a=Tn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;Jg(i)||(i=FY(i));var l=t.shape===void 0?[i.byteLength/o]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,c=+l[0],d=o*c,x=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f<s;f++)r[f]=new a(i,x,c),x+=d;else if(u===3){s=+l[1];for(var g=+l[2],w=0;w<g;w++)for(r[w]=[],f=0;f<s;f++)r[w][f]=new a(i,x,c),x+=d}else throw new Error("ndim: "+u+'is not supported with the shape:"'+t.shape+'"');return r.bdata=t.bdata,r.dtype=t.dtype,r.shape=l.reverse().join(","),e._inputArray=r,r};pi.isTypedArraySpec=function(e){return NY(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||Jg(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function UY(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}pi.concat=function(){var e=[],r=!0,t=0,n,a,o,i,l,u,s,f;for(o=0;o<arguments.length;o++)i=arguments[o],u=i.length,u&&(a?e.push(i):(a=i,l=u),Zg(i)?n=!1:(r=!1,t?n!==i.constructor&&(n=!1):n=i.constructor),t+=u);if(!t)return[];if(!e.length)return a;if(r)return a.concat.apply(a,e);if(n){for(s=new n(t),s.set(a),o=0;o<e.length;o++)i=e[o],s.set(i,l),l+=i.length;return s}for(s=new Array(t),f=0;f<a.length;f++)s[f]=a[f];for(o=0;o<e.length;o++){for(i=e[o],f=0;f<i.length;f++)s[l+f]=i[f];l+=f}return s};pi.maxRowLength=function(e){return N_(e,Math.max,0)};pi.minRowLength=function(e){return N_(e,Math.min,1/0)};function N_(e,r,t){if(Hv(e))if(Hv(e[0])){for(var n=t,a=0;a<e.length;a++)n=r(n,e[a].length);return n}else return e.length;return 0}});var Vv=xe((Cye,H_)=>{"use strict";var q_=it(),Kg=sa().isArrayOrTypedArray;H_.exports=function(r,t){if(q_(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var n=t.split("."),a,o,i,l;for(l=0;l<n.length;l++)if(String(n[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<n.length;){if(a=String(n[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),a){if(a[1])n[l]=a[1];else if(l===0)n.splice(0,1);else throw"bad property string";for(o=a[2].slice(1,-1).split("]["),i=0;i<o.length;i++)l++,n.splice(l,0,Number(o[i]))}l++}return typeof r!="object"?YY(r,t,n):{set:B_(r,n,t),get:O_(r,n),astr:t,parts:n,obj:r}};function O_(e,r){return function(t){var n=e,a,o,i,l,u;for(l=0;l<r.length-1;l++){if(a=r[l],a===-1){for(o=!0,i=[],u=0;u<n.length;u++)i[u]=O_(n[u],r.slice(l+1))(t),i[u]!==i[0]&&(o=!1);return o?i[0]:i}if(typeof a=="number"&&!Kg(n)||(n=n[a],typeof n!="object"||n===null))return}if(!(typeof n!="object"||n===null)&&(i=n[r[l]],!(!t&&i===null)))return i}}var HY=/(^|\.)args\[/;function $g(e,r){return e===void 0||e===null&&!r.match(HY)}function B_(e,r,t){return function(n){var a=e,o="",i=[[e,o]],l=$g(n,t),u,s;for(s=0;s<r.length-1;s++){if(u=r[s],typeof u=="number"&&!Kg(a))throw"array index but container is not an array";if(u===-1){if(l=!GY(a,r.slice(s+1),n,t),l)break;return}if(!U_(a,u,r[s+1],l))break;if(a=a[u],typeof a!="object"||a===null)throw"container is not an object";o=VY(o,u),i.push([a,o])}if(l){if(s===r.length-1&&(delete a[r[s]],Array.isArray(a)&&+r[s]===a.length-1))for(;a.length&&a[a.length-1]===void 0;)a.pop()}else a[r[s]]=n}}function VY(e,r){var t=r;return q_(r)?t="["+r+"]":e&&(t="."+r),e+t}function GY(e,r,t,n){var a=Kg(t),o=!0,i=t,l=n.replace("-1",0),u=a?!1:$g(t,l),s=r[0],f;for(f=0;f<e.length;f++)l=n.replace("-1",f),a&&(i=t[f%t.length],u=$g(i,l)),u&&(o=!1),U_(e,f,s,u)&&B_(e[f],r,n.replace("-1",f))(i);return o}function U_(e,r,t,n){if(e[r]===void 0){if(n)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function YY(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var X_=xe((Eye,Y_)=>{"use strict";var gu=Vv(),XY=/^\w*$/,WY=0,V_=1,Gv=2,G_=3,rs=4;Y_.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=gu(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o<i.length;o++)s[i[o][n]]=o;var f=XY.test(a),c={set:function(d,x){var g=x===null?rs:WY;if(!i){if(!l||g===rs)return;i=[],l.set(i)}var w=s[d];if(w===void 0){if(g===rs)return;g=g|G_,w=i.length,s[d]=w}else x!==(f?i[w][a]:gu(i[w],a).get())&&(g=g|Gv);var T=i[w]=i[w]||{};return T[n]=d,f?T[a]=x:gu(T,a).set(x),x!==null&&(g=g&~rs),u[w]=u[w]|g,c},get:function(d){if(i){var x=s[d];if(x!==void 0)return f?i[x][a]:gu(i[x],a).get()}},rename:function(d,x){var g=s[d];return g===void 0||(u[g]=u[g]|V_,s[x]=g,delete s[d],i[g][n]=x),c},remove:function(d){var x=s[d];if(x===void 0)return c;var g=i[x];if(Object.keys(g).length>2)return u[x]=u[x]|Gv,c.set(d,null);if(f){for(o=x;o<i.length;o++)u[o]=u[o]|G_;for(o=x;o<i.length;o++)s[i[o][n]]--;i.splice(x,1),delete s[d]}else gu(g,a).set(null),u[x]=u[x]|Gv|rs;return c},constructUpdate:function(){for(var d,x,g={},w=Object.keys(u),T=0;T<w.length;T++)x=w[T],d=t+"["+x+"]",i[x]?(u[x]&V_&&(g[d+"."+n]=i[x][n]),u[x]&Gv&&(f?g[d+"."+a]=u[x]&rs?null:i[x][a]:g[d+"."+a]=u[x]&rs?null:gu(i[x],a).get())):g[d]=null;return g}};return c}});var Z_=xe((Lye,W_)=>{"use strict";var ZY=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,JY=/^[^\.\[\]]+$/;W_.exports=function(e,r){for(;r;){var t=e.match(ZY);if(t)e=t[1];else if(e.match(JY))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 Yv=xe((Rye,J_)=>{"use strict";var $Y=it();J_.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return $Y(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var Q_=xe((Dye,K_)=>{"use strict";var $_=sa().isArrayOrTypedArray,l0=es();K_.exports=function e(r,t){for(var n in t){var a=t[n],o=r[n];if(o!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if($_(a)&&$_(o)&&l0(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;l<i;l++)o[l]!==a[l]&&l0(a[l])&&l0(o[l])&&e(o[l],a[l])}else l0(a)&&l0(o)&&(e(o,a),Object.keys(o).length||delete r[n])}}});var yu={};i0(yu,{mod:()=>KY,modHalf:()=>QY});function KY(e,r){let t=e%r;return t<0?t+r:t}function QY(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var mu=a0(()=>{"use strict"});var Dt=xe(f0=>{"use strict";var j_=es(),s0=Array.isArray;function jY(e,r){var t,n;for(t=0;t<e.length;t++){if(n=e[t],n!==null&&typeof n=="object")return!1;n!==void 0&&(r[t]=n)}return!0}f0.extendFlat=function(...e){return u0(e,!1,!1,!1)};f0.extendDeep=function(...e){return u0(e,!0,!1,!1)};f0.extendDeepAll=function(...e){return u0(e,!0,!0,!1)};f0.extendDeepNoArrays=function(...e){return u0(e,!0,!1,!0)};function u0(e,r,t,n){var a=e[0],o=e.length,i,l,u,s,f,c,d;if(o===2&&s0(a)&&s0(e[1])&&a.length===0){if(d=jY(e[1],a),d)return a;a.splice(0,a.length)}for(var x=1;x<o;x++){i=e[x];for(l in i)u=a[l],s=i[l],n&&s0(s)?a[l]=s:r&&s&&(j_(s)||(f=s0(s)))?(f?(f=!1,c=u&&s0(u)?u:[]):c=u&&j_(u)?u:{},a[l]=u0([c,s],r,t,n)):(typeof s!="undefined"||t)&&(a[l]=s)}return a}});var Nn=xe((Iye,e7)=>{"use strict";e7.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var o={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,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&&(o.size.dflt="auto"),e.autoColor&&(o.color.dflt="auto"),e.arrayOk&&(o.family.arrayOk=!0,o.weight.arrayOk=!0,o.style.arrayOk=!0,e.noFontVariant||(o.variant.arrayOk=!0),e.noFontTextcase||(o.textcase.arrayOk=!0),e.noFontLineposition||(o.lineposition.arrayOk=!0),e.noFontShadow||(o.shadow.arrayOk=!0),o.size.arrayOk=!0,o.color.arrayOk=!0),o}});var c0=xe((zye,r7)=>{"use strict";r7.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var ts=xe((Fye,a7)=>{"use strict";var t7=c0(),n7=Nn(),Qg=n7({editType:"none"});Qg.family.dflt=t7.HOVERFONT;Qg.size.dflt=t7.HOVERFONTSIZE;a7.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:Qg,grouptitlefont:n7({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 Xv=xe((Nye,i7)=>{"use strict";var eX=Nn(),v0=ts().hoverlabel,h0=Dt().extendFlat;i7.exports={hoverlabel:{bgcolor:h0({},v0.bgcolor,{arrayOk:!0}),bordercolor:h0({},v0.bordercolor,{arrayOk:!0}),font:eX({arrayOk:!0,editType:"none"}),align:h0({},v0.align,{arrayOk:!0}),namelength:h0({},v0.namelength,{arrayOk:!0}),showarrow:h0({},v0.showarrow),editType:"none"}}});var qn=xe((qye,o7)=>{"use strict";var rX=Nn(),tX=Xv();o7.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:rX({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:tX.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var Qw=xe((Yye,Kw)=>{var G2=Object.defineProperty,nX=Object.getOwnPropertyDescriptor,aX=Object.getOwnPropertyNames,iX=Object.prototype.hasOwnProperty,oX=(e,r)=>{for(var t in r)G2(e,t,{get:r[t],enumerable:!0})},lX=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of aX(r))!iX.call(e,a)&&a!==t&&G2(e,a,{get:()=>r[a],enumerable:!(n=nX(r,a))||n.enumerable});return e},sX=e=>lX(G2({},"__esModule",{value:!0}),e),g7={};oX(g7,{a98:()=>jJ,average:()=>aW,averageAngle:()=>Wi,averageNumber:()=>P7,blend:()=>nJ,blerp:()=>T2,clampChroma:()=>MJ,clampGamut:()=>yy,clampRgb:()=>wJ,colorsNamed:()=>m7,convertA98ToXyz65:()=>A2,convertCubehelixToRgb:()=>R7,convertDlchToLab65:()=>rh,convertHsiToRgb:()=>U7,convertHslToRgb:()=>G7,convertHsvToRgb:()=>$2,convertHwbToRgb:()=>Z7,convertItpToXyz65:()=>S2,convertJabToJch:()=>E2,convertJabToRgb:()=>ty,convertJabToXyz65:()=>ey,convertJchToJab:()=>L2,convertLab65ToDlch:()=>th,convertLab65ToRgb:()=>_0,convertLab65ToXyz65:()=>W2,convertLabToLch:()=>To,convertLabToRgb:()=>ay,convertLabToXyz50:()=>vh,convertLchToLab:()=>Ao,convertLchuvToLuv:()=>ly,convertLrgbToOklab:()=>sy,convertLrgbToRgb:()=>us,convertLuvToLchuv:()=>oy,convertLuvToXyz50:()=>ah,convertOkhslToOklab:()=>P2,convertOkhsvToOklab:()=>z2,convertOklabToLrgb:()=>ku,convertOklabToOkhsl:()=>D2,convertOklabToOkhsv:()=>I2,convertOklabToRgb:()=>T0,convertP3ToXyz65:()=>F2,convertProphotoToXyz50:()=>O2,convertRec2020ToXyz65:()=>U2,convertRgbToCubehelix:()=>L7,convertRgbToHsi:()=>H7,convertRgbToHsl:()=>Y7,convertRgbToHsv:()=>K2,convertRgbToHwb:()=>J7,convertRgbToJab:()=>ry,convertRgbToLab:()=>iy,convertRgbToLab65:()=>w0,convertRgbToLrgb:()=>ss,convertRgbToOklab:()=>M0,convertRgbToXyb:()=>Mw,convertRgbToXyz50:()=>Au,convertRgbToXyz65:()=>Ko,convertRgbToYiq:()=>Lw,convertXybToRgb:()=>Tw,convertXyz50ToLab:()=>hh,convertXyz50ToLuv:()=>nh,convertXyz50ToProphoto:()=>q2,convertXyz50ToRgb:()=>Tu,convertXyz50ToXyz65:()=>Cw,convertXyz65ToA98:()=>k2,convertXyz65ToItp:()=>C2,convertXyz65ToJab:()=>j2,convertXyz65ToLab65:()=>Z2,convertXyz65ToP3:()=>N2,convertXyz65ToRec2020:()=>B2,convertXyz65ToRgb:()=>Qo,convertXyz65ToXyz50:()=>Sw,convertYiqToRgb:()=>Rw,converter:()=>Pt,cubehelix:()=>e$,differenceCie76:()=>KX,differenceCie94:()=>QX,differenceCiede2000:()=>jX,differenceCmc:()=>eW,differenceEuclidean:()=>Mu,differenceHueChroma:()=>x0,differenceHueNaive:()=>D7,differenceHueSaturation:()=>b0,differenceHyab:()=>rW,differenceItp:()=>nW,differenceKotsarenkoRamos:()=>tW,displayable:()=>gy,dlab:()=>r$,dlch:()=>t$,easingGamma:()=>Xw,easingInOutSine:()=>KJ,easingMidpoint:()=>Ow,easingSmootherstep:()=>JJ,easingSmoothstep:()=>XJ,easingSmoothstepInverse:()=>WJ,filterBrightness:()=>DJ,filterContrast:()=>PJ,filterDeficiencyDeuter:()=>GJ,filterDeficiencyProt:()=>VJ,filterDeficiencyTrit:()=>YJ,filterGrayscale:()=>FJ,filterHueRotate:()=>qJ,filterInvert:()=>NJ,filterSaturate:()=>zJ,filterSepia:()=>IJ,fixupAlpha:()=>yn,fixupHueDecreasing:()=>XX,fixupHueIncreasing:()=>YX,fixupHueLonger:()=>GX,fixupHueShorter:()=>Xi,formatCss:()=>$Z,formatHex:()=>KZ,formatHex8:()=>QZ,formatHsl:()=>eJ,formatRgb:()=>jZ,getMode:()=>Qn,hsi:()=>n$,hsl:()=>a$,hsv:()=>i$,hwb:()=>o$,inGamut:()=>gh,interpolate:()=>vJ,interpolateWith:()=>Uw,interpolateWithPremultipliedAlpha:()=>hJ,interpolatorLinear:()=>xr,interpolatorPiecewise:()=>C7,interpolatorSplineBasis:()=>Vw,interpolatorSplineBasisClosed:()=>Gw,interpolatorSplineMonotone:()=>gJ,interpolatorSplineMonotone2:()=>yJ,interpolatorSplineMonotoneClosed:()=>mJ,interpolatorSplineNatural:()=>dJ,interpolatorSplineNaturalClosed:()=>pJ,itp:()=>l$,jab:()=>s$,jch:()=>u$,lab:()=>f$,lab65:()=>c$,lch:()=>v$,lch65:()=>h$,lchuv:()=>d$,lerp:()=>as,lrgb:()=>p$,luv:()=>g$,mapAlphaDivide:()=>qw,mapAlphaMultiply:()=>Nw,mapTransferGamma:()=>sJ,mapTransferLinear:()=>hy,mapper:()=>A0,modeA98:()=>E7,modeCubehelix:()=>I7,modeDlab:()=>O7,modeDlch:()=>B7,modeHsi:()=>V7,modeHsl:()=>J2,modeHsv:()=>Q2,modeHwb:()=>K7,modeItp:()=>ew,modeJab:()=>rw,modeJch:()=>tw,modeLab:()=>dh,modeLab65:()=>aw,modeLch:()=>ph,modeLch65:()=>ow,modeLchuv:()=>uw,modeLrgb:()=>fw,modeLuv:()=>cw,modeOkhsl:()=>hw,modeOkhsv:()=>dw,modeOklab:()=>gw,modeOklch:()=>mw,modeP3:()=>bw,modeProphoto:()=>xw,modeRec2020:()=>_w,modeRgb:()=>ls,modeXyb:()=>Aw,modeXyz50:()=>kw,modeXyz65:()=>Ew,modeYiq:()=>Dw,nearest:()=>kJ,okhsl:()=>y$,okhsv:()=>m$,oklab:()=>b$,oklch:()=>x$,p3:()=>_$,parse:()=>A7,parseHex:()=>x7,parseHsl:()=>W7,parseHslLegacy:()=>X7,parseHwb:()=>$7,parseLab:()=>nw,parseLch:()=>iw,parseNamed:()=>b7,parseOklab:()=>pw,parseOklch:()=>yw,parseRgb:()=>k7,parseRgbLegacy:()=>_7,parseTransparent:()=>S7,prophoto:()=>w$,random:()=>lJ,rec2020:()=>M$,removeParser:()=>wX,rgb:()=>T$,round:()=>Pw,samples:()=>_J,serializeHex:()=>vy,serializeHex8:()=>Iw,serializeHsl:()=>Fw,serializeRgb:()=>zw,toGamut:()=>TJ,trilerp:()=>PX,unlerp:()=>DX,useMode:()=>_t,useParser:()=>M7,wcagContrast:()=>QJ,wcagLuminance:()=>V2,xyb:()=>A$,xyz50:()=>k$,xyz65:()=>S$,yiq:()=>C$});Kw.exports=sX(g7);var uX=(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}}},y7=uX,fX={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},m7=fX,cX=e=>y7(m7[e.toLowerCase()],6),b7=cX,vX=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,hX=e=>{let r;return(r=e.match(vX))?y7(parseInt(r[1],16),r[1].length):void 0},x7=hX,ya="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Oye=`(?:${ya}|none)`,g0=`${ya}%`,Bye=`(?:${ya}%|none)`,Y2=`(?:${ya}%|${ya})`,dX=`(?:${ya}%|${ya}|none)`,pX=`(?:${ya}(deg|grad|rad|turn)|${ya})`,Uye=`(?:${ya}(deg|grad|rad|turn)|${ya}|none)`,_u="\\s*,\\s*",Hye=new RegExp("^"+dX+"$"),gX=new RegExp(`^rgba?\\(\\s*${ya}${_u}${ya}${_u}${ya}\\s*(?:,\\s*${Y2}\\s*)?\\)$`),yX=new RegExp(`^rgba?\\(\\s*${g0}${_u}${g0}${_u}${g0}\\s*(?:,\\s*${Y2}\\s*)?\\)$`),mX=e=>{let r={mode:"rgb"},t;if(t=e.match(gX))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(yX))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},_7=mX,bX=(e,r)=>e===void 0?void 0:typeof e!="object"?A7(e):e.mode!==void 0?e:r?qt(xt({},e),{mode:r}):void 0,gi=bX,xX=(e="rgb")=>r=>(r=gi(r,e))!==void 0?r.mode===e?r:Yi[r.mode][e]?Yi[r.mode][e](r):e==="rgb"?Yi[r.mode].rgb(r):Yi.rgb[e](Yi[r.mode].rgb(r)):void 0,Pt=xX,Yi={},w7={},wu=[],X2={},_X=e=>e,_t=e=>(Yi[e.mode]=xt(xt({},Yi[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Yi[r]||(Yi[r]={}),Yi[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=_X)}),w7[e.mode]=e,(e.parse||[]).forEach(r=>{M7(r,e.mode)}),Pt(e.mode)),Qn=e=>w7[e],M7=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");X2[e]=r}else typeof e=="function"&&wu.indexOf(e)<0&&wu.push(e)},wX=e=>{if(typeof e=="string")delete X2[e];else if(typeof e=="function"){let r=wu.indexOf(e);r>0&&wu.splice(r,1)}},w2=/[^\x00-\x7F]|[a-zA-Z_]/,MX=/[^\x00-\x7F]|[-\w]/,gr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Yr=0;function Wv(e){let r=e[Yr],t=e[Yr+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Yr+2]):r==="."?/\d/.test(t):/\d/.test(r)}function M2(e){if(Yr>=e.length)return!1;let r=e[Yr];if(w2.test(r))return!0;if(r==="-"){if(e.length-Yr<2)return!1;let t=e[Yr+1];return!!(t==="-"||w2.test(t))}return!1}var TX={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function d0(e){let r="";if((e[Yr]==="-"||e[Yr]==="+")&&(r+=e[Yr++]),r+=Zv(e),e[Yr]==="."&&/\d/.test(e[Yr+1])&&(r+=e[Yr++]+Zv(e)),(e[Yr]==="e"||e[Yr]==="E")&&((e[Yr+1]==="-"||e[Yr+1]==="+")&&/\d/.test(e[Yr+2])?r+=e[Yr++]+e[Yr++]+Zv(e):/\d/.test(e[Yr+1])&&(r+=e[Yr++]+Zv(e))),M2(e)){let t=Kv(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:gr.Hue,value:r*TX[t]}:void 0}return e[Yr]==="%"?(Yr++,{type:gr.Percentage,value:+r}):{type:gr.Number,value:+r}}function Zv(e){let r="";for(;/\d/.test(e[Yr]);)r+=e[Yr++];return r}function Kv(e){let r="";for(;Yr<e.length&&MX.test(e[Yr]);)r+=e[Yr++];return r}function AX(e){let r=Kv(e);return e[Yr]==="("?(Yr++,{type:gr.Function,value:r}):r==="none"?{type:gr.None,value:void 0}:{type:gr.Ident,value:r}}function kX(e=""){let r=e.trim(),t=[],n;for(Yr=0;Yr<r.length;){if(n=r[Yr++],n===`
`||n===" "||n===" "){for(;Yr<r.length&&(r[Yr]===`
`||r[Yr]===" "||r[Yr]===" ");)Yr++;continue}if(n===",")return;if(n===")"){t.push({type:gr.ParenClose});continue}if(n==="+"){if(Yr--,Wv(r)){t.push(d0(r));continue}return}if(n==="-"){if(Yr--,Wv(r)){t.push(d0(r));continue}if(M2(r)){t.push({type:gr.Ident,value:Kv(r)});continue}return}if(n==="."){if(Yr--,Wv(r)){t.push(d0(r));continue}return}if(n==="/"){for(;Yr<r.length&&(r[Yr]===`
`||r[Yr]===" "||r[Yr]===" ");)Yr++;let a;if(Wv(r)&&(a=d0(r),a.type!==gr.Hue)){t.push({type:gr.Alpha,value:a});continue}if(M2(r)&&Kv(r)==="none"){t.push({type:gr.Alpha,value:{type:gr.None,value:void 0}});continue}return}if(/\d/.test(n)){Yr--,t.push(d0(r));continue}if(w2.test(n)){Yr--,t.push(AX(r));continue}return}return t}function SX(e){e._i=0;let r=e[e._i++];if(!r||r.type!==gr.Function||r.value!=="color"||(r=e[e._i++],r.type!==gr.Ident))return;let t=X2[r.value];if(!t)return;let n={mode:t},a=T7(e,!1);if(!a)return;let o=Qn(t).channels;for(let i=0,l,u;i<o.length;i++)l=a[i],u=o[i],l.type!==gr.None&&(n[u]=l.type===gr.Number?l.value:l.value/100,u==="alpha"&&(n[u]=Math.max(0,Math.min(1,n[u]))));return n}function T7(e,r){let t=[],n;for(;e._i<e.length;){if(n=e[e._i++],n.type===gr.None||n.type===gr.Number||n.type===gr.Alpha||n.type===gr.Percentage||r&&n.type===gr.Hue){t.push(n);continue}if(n.type===gr.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==gr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:gr.None,value:void 0}),t.every(a=>a.type!==gr.Alpha)?t:void 0}}function CX(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==gr.Function)return;let n=T7(e,r);if(n)return n.unshift(t.value),n}var EX=e=>{if(typeof e!="string")return;let r=kX(e),t=r?CX(r,!0):void 0,n,a=0,o=wu.length;for(;a<o;)if((n=wu[a++](e,t))!==void 0)return n;return r?SX(r):void 0},A7=EX;function LX(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,n,a,o,i]=r;if(!(n.type===gr.Hue||a.type===gr.Hue||o.type===gr.Hue))return n.type!==gr.None&&(t.r=n.type===gr.Number?n.value/255:n.value/100),a.type!==gr.None&&(t.g=a.type===gr.Number?a.value/255:a.value/100),o.type!==gr.None&&(t.b=o.type===gr.Number?o.value/255:o.value/100),i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var k7=LX,RX=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,S7=RX,as=(e,r,t)=>e+t*(r-e),DX=(e,r,t)=>(t-e)/(r-e),T2=(e,r,t,n,a,o)=>as(as(e,r,a),as(t,n,a),o),PX=(e,r,t,n,a,o,i,l,u,s,f)=>as(T2(e,r,t,n,u,s),T2(a,o,i,l,u,s),f),IX=e=>{let r=[];for(let t=0;t<e.length-1;t++){let n=e[t],a=e[t+1];n===void 0&&a===void 0?r.push(void 0):n!==void 0&&a!==void 0?r.push([n,a]):r.push(n!==void 0?[n,n]:[a,a])}return r},C7=e=>r=>{let t=IX(r);return n=>{let a=n*t.length,o=n>=1?t.length-1:Math.max(Math.floor(a),0),i=t[o];return i===void 0?void 0:e(i[0],i[1],a-o)}},xr=C7(as),yn=e=>{let r=!1,t=e.map(n=>n!==void 0?(r=!0,n):1);return r?t:e},zX={mode:"rgb",channels:["r","g","b","alpha"],parse:[k7,x7,_7,b7,S7,"srgb"],serialize:"srgb",interpolate:{r:xr,g:xr,b:xr,alpha:{use:xr,fixup:yn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},ls=zX,jg=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),FX=e=>{let r=jg(e.r),t=jg(e.g),n=jg(e.b),a={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*n,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*n,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},A2=FX,e2=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),NX=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"a98",r:e2(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:e2(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:e2(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return n!==void 0&&(a.alpha=n),a},k2=NX,r2=(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)},qX=({r:e,g:r,b:t,alpha:n})=>{let a={mode:"lrgb",r:r2(e),g:r2(r),b:r2(t)};return n!==void 0&&(a.alpha=n),a},ss=qX,OX=e=>{let{r,g:t,b:n,alpha:a}=ss(e),o={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*n,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*n,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*n};return a!==void 0&&(o.alpha=a),o},Ko=OX,t2=(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},BX=({r:e,g:r,b:t,alpha:n},a="rgb")=>{let o={mode:a,r:t2(e),g:t2(r),b:t2(t)};return n!==void 0&&(o.alpha=n),o},us=BX,UX=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=us({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 n!==void 0&&(a.alpha=n),a},Qo=UX,HX=qt(xt({},ls),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>k2(Ko(e)),xyz65:k2},toMode:{rgb:e=>Qo(A2(e)),xyz65:A2}}),E7=HX,VX=e=>(e=e%360)<0?e+360:e,On=VX,oh=(e,r)=>e.map((t,n,a)=>{if(t===void 0)return t;let o=On(t);return n===0||e[n-1]===void 0?o:r(o-On(a[n-1]))}).reduce((t,n)=>!t.length||n===void 0||t[t.length-1]===void 0?(t.push(n),t):(t.push(n+t[t.length-1]),t),[]),Xi=e=>oh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),GX=e=>oh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),YX=e=>oh(e,r=>r>=0?r:r+360),XX=e=>oh(e,r=>r<=0?r:r-360),Pn=[-.14861,1.78277,-.29227,-.90649,1.97294,0],WX=Math.PI/180,ZX=180/Math.PI,l7=Pn[3]*Pn[4],s7=Pn[1]*Pn[4],u7=Pn[1]*Pn[2]-Pn[0]*Pn[3],JX=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(u7*t+e*l7-r*s7)/(u7+l7-s7),o=t-a,i=(Pn[4]*(r-a)-Pn[2]*o)/Pn[3],l={mode:"cubehelix",l:a,s:a===0||a===1?void 0:Math.sqrt(o*o+i*i)/(Pn[4]*a*(1-a))};return l.s&&(l.h=Math.atan2(i,o)*ZX-120),n!==void 0&&(l.alpha=n),l},L7=JX,$X=({h:e,s:r,l:t,alpha:n})=>{let a={mode:"rgb"};e=(e===void 0?0:e+120)*WX,t===void 0&&(t=0);let o=r===void 0?0:r*t*(1-t),i=Math.cos(e),l=Math.sin(e);return a.r=t+o*(Pn[0]*i+Pn[1]*l),a.g=t+o*(Pn[2]*i+Pn[3]*l),a.b=t+o*(Pn[4]*i+Pn[5]*l),n!==void 0&&(a.alpha=n),a},R7=$X,b0=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=On(e.h),n=On(r.h),a=Math.sin((n-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*a},D7=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=On(e.h),n=On(r.h);return Math.abs(n-t)>180?t-(n-360*Math.sign(n-t)):n-t},x0=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=On(e.h),n=On(r.h),a=Math.sin((n-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*a},Mu=(e="rgb",r=[1,1,1,0])=>{let t=Qn(e),n=t.channels,a=t.difference,o=Pt(e);return(i,l)=>{let u=o(i),s=o(l);return Math.sqrt(n.reduce((f,c,d)=>{let x=a[c]?a[c](u,s):u[c]-s[c];return f+(r[d]||0)*Math.pow(isNaN(x)?0:x,2)},0))}},KX=()=>Mu("lab65"),QX=(e=1,r=.045,t=.015)=>{let n=Pt("lab65");return(a,o)=>{let i=n(a),l=n(o),u=i.l,s=i.a,f=i.b,c=Math.sqrt(s*s+f*f),d=l.l,x=l.a,g=l.b,w=Math.sqrt(x*x+g*g),T=Math.pow(u-d,2),m=Math.pow(c-w,2),k=Math.pow(s-x,2)+Math.pow(f-g,2)-m;return Math.sqrt(T/Math.pow(e,2)+m/Math.pow(1+r*c,2)+k/Math.pow(1+t*c,2))}},jX=(e=1,r=1,t=1)=>{let n=Pt("lab65");return(a,o)=>{let i=n(a),l=n(o),u=i.l,s=i.a,f=i.b,c=Math.sqrt(s*s+f*f),d=l.l,x=l.a,g=l.b,w=Math.sqrt(x*x+g*g),T=(c+w)/2,m=.5*(1-Math.sqrt(Math.pow(T,7)/(Math.pow(T,7)+Math.pow(25,7)))),k=s*(1+m),S=x*(1+m),b=Math.sqrt(k*k+f*f),M=Math.sqrt(S*S+g*g),h=Math.abs(k)+Math.abs(f)===0?0:Math.atan2(f,k);h+=(h<0)*2*Math.PI;let _=Math.abs(S)+Math.abs(g)===0?0:Math.atan2(g,S);_+=(_<0)*2*Math.PI;let y=d-u,v=M-b,A=b*M===0?0:_-h;A-=(A>Math.PI)*2*Math.PI,A+=(A<-Math.PI)*2*Math.PI;let p=2*Math.sqrt(b*M)*Math.sin(A/2),R=(u+d)/2,E=(b+M)/2,D;b*M===0?D=h+_:(D=(h+_)/2,D-=(Math.abs(h-_)>Math.PI)*Math.PI,D+=(D<0)*2*Math.PI);let F=Math.pow(R-50,2),z=1-.17*Math.cos(D-Math.PI/6)+.24*Math.cos(2*D)+.32*Math.cos(3*D+Math.PI/30)-.2*Math.cos(4*D-63*Math.PI/180),I=1+.015*F/Math.sqrt(20+F),L=1+.045*E,P=1+.015*E*z,O=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*D-275)/25,2)),U=2*Math.sqrt(Math.pow(E,7)/(Math.pow(E,7)+Math.pow(25,7))),V=-1*Math.sin(2*O)*U;return Math.sqrt(Math.pow(y/(e*I),2)+Math.pow(v/(r*L),2)+Math.pow(p/(t*P),2)+V*v/(r*L)*p/(t*P))}},eW=(e=1,r=1)=>{let t=Pt("lab65");return(n,a)=>{let o=t(n),i=o.l,l=o.a,u=o.b,s=Math.sqrt(l*l+u*u),f=Math.atan2(u,l);f=f+2*Math.PI*(f<0);let c=t(a),d=c.l,x=c.a,g=c.b,w=Math.sqrt(x*x+g*g),T=Math.pow(i-d,2),m=Math.pow(s-w,2),k=Math.pow(l-x,2)+Math.pow(u-g,2)-m,S=Math.sqrt(Math.pow(s,4)/(Math.pow(s,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=i<16?.511:.040975*i/(1+.01765*i),h=.0638*s/(1+.0131*s)+.638,_=h*(S*b+1-S);return Math.sqrt(T/Math.pow(e*M,2)+m/Math.pow(r*h,2)+k/Math.pow(_,2))}},rW=()=>{let e=Pt("lab65");return(r,t)=>{let n=e(r),a=e(t),o=n.l-a.l,i=n.a-a.a,l=n.b-a.b;return Math.abs(o)+Math.sqrt(i*i+l*l)}},tW=()=>Mu("yiq",[.5053,.299,.1957]),nW=()=>Mu("itp",[518400,129600,518400]),Wi=e=>{let r=e.reduce((n,a)=>{if(a!==void 0){let o=a*Math.PI/180;n.sin+=Math.sin(o),n.cos+=Math.cos(o)}return n},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},P7=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,n)=>t+n,0)/r.length:void 0},n2=e=>typeof e=="function";function aW(e,r="rgb",t){let n=Qn(r),a=e.map(Pt(r));return n.channels.reduce((o,i)=>{let l=a.map(u=>u[i]).filter(u=>u!==void 0);if(l.length){let u;n2(t)?u=t:t&&n2(t[i])?u=t[i]:n.average&&n2(n.average[i])?u=n.average[i]:u=P7,o[i]=u(l,i)}return o},{mode:r})}var iW={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:L7},toMode:{rgb:R7},interpolate:{h:{use:xr,fixup:Xi},s:xr,l:xr,alpha:{use:xr,fixup:yn}},difference:{h:b0},average:{h:Wi}},I7=iW,oW=({l:e,a:r,b:t,alpha:n},a="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let o=Math.sqrt(r*r+t*t),i={mode:a,l:e,c:o};return o&&(i.h=On(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(i.alpha=n),i},To=oW,lW=({l:e,c:r,h:t,alpha:n},a="lab")=>{t===void 0&&(t=0);let o={mode:a,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return n!==void 0&&(o.alpha=n),o},Ao=lW,z7=Math.pow(29,3)/Math.pow(3,3),F7=Math.pow(6,3)/Math.pow(29,3),gn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},xu={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Vye=Math.pow(29,3)/Math.pow(3,3),Gye=Math.pow(6,3)/Math.pow(29,3),a2=e=>Math.pow(e,3)>F7?Math.pow(e,3):(116*e-16)/z7,sW=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+16)/116,o=r/500+a,i=a-t/200,l={mode:"xyz65",x:a2(o)*xu.X,y:a2(a)*xu.Y,z:a2(i)*xu.Z};return n!==void 0&&(l.alpha=n),l},W2=sW,uW=e=>Qo(W2(e)),_0=uW,i2=e=>e>F7?Math.cbrt(e):(z7*e+16)/116,fW=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=i2(e/xu.X),o=i2(r/xu.Y),i=i2(t/xu.Z),l={mode:"lab65",l:116*o-16,a:500*(a-o),b:200*(o-i)};return n!==void 0&&(l.alpha=n),l},Z2=fW,cW=e=>{let r=Z2(Ko(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},w0=cW,Qv=1,N7=1,m0=26/180*Math.PI,jv=Math.cos(m0),eh=Math.sin(m0),q7=100/Math.log(139/100),vW=({l:e,c:r,h:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"lab65",l:(Math.exp(e*Qv/q7)-1)/.0039},o=(Math.exp(.0435*r*N7*Qv)-1)/.075,i=o*Math.cos(t/180*Math.PI-m0),l=o*Math.sin(t/180*Math.PI-m0);return a.a=i*jv-l/.83*eh,a.b=i*eh+l/.83*jv,n!==void 0&&(a.alpha=n),a},rh=vW,hW=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=r*jv+t*eh,o=.83*(t*jv-r*eh),i=Math.sqrt(a*a+o*o),l={mode:"dlch",l:q7/Qv*Math.log(1+.0039*e),c:Math.log(1+.075*i)/(.0435*N7*Qv)};return l.c&&(l.h=On((Math.atan2(o,a)+m0)/Math.PI*180)),n!==void 0&&(l.alpha=n),l},th=hW,f7=e=>rh(To(e,"dlch")),c7=e=>Ao(th(e),"dlab"),dW={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:f7,rgb:e=>_0(f7(e))},fromMode:{lab65:c7,rgb:e=>c7(w0(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:yn}}},O7=dW,pW={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:rh,dlab:e=>Ao(e,"dlab"),rgb:e=>_0(rh(e))},fromMode:{lab65:th,dlab:e=>To(e,"dlch"),rgb:e=>th(w0(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:Xi},alpha:{use:xr,fixup:yn}},difference:{h:x0},average:{h:Wi}},B7=pW;function U7({h:e,s:r,i:t,alpha:n}){e=On(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:t*(1+r*(3/(2-a)-1)),g:t*(1+r*(3*(1-a)/(2-a)-1)),b:t*(1-r)};break;case 1:o={r:t*(1+r*(3*(1-a)/(2-a)-1)),g:t*(1+r*(3/(2-a)-1)),b:t*(1-r)};break;case 2:o={r:t*(1-r),g:t*(1+r*(3/(2-a)-1)),b:t*(1+r*(3*(1-a)/(2-a)-1))};break;case 3:o={r:t*(1-r),g:t*(1+r*(3*(1-a)/(2-a)-1)),b:t*(1+r*(3/(2-a)-1))};break;case 4:o={r:t*(1+r*(3*(1-a)/(2-a)-1)),g:t*(1-r),b:t*(1+r*(3/(2-a)-1))};break;case 5:o={r:t*(1+r*(3/(2-a)-1)),g:t*(1-r),b:t*(1+r*(3*(1-a)/(2-a)-1))};break;default:o={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return o.mode="rgb",n!==void 0&&(o.alpha=n),o}function H7({r:e,g:r,b:t,alpha:n}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.max(e,r,t),o=Math.min(e,r,t),i={mode:"hsi",s:e+r+t===0?0:1-3*o/(e+r+t),i:(e+r+t)/3};return a-o!==0&&(i.h=(a===e?(r-t)/(a-o)+(r<t)*6:a===r?(t-e)/(a-o)+2:(e-r)/(a-o)+4)*60),n!==void 0&&(i.alpha=n),i}var gW={mode:"hsi",toMode:{rgb:U7},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:H7},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:xr,fixup:Xi},s:xr,i:xr,alpha:{use:xr,fixup:yn}},difference:{h:b0},average:{h:Wi}},V7=gW;function G7({h:e,s:r,l:t,alpha:n}){e=On(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let a=t+r*(t<.5?t:1-t),o=a-(a-t)*2*Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:a,g:o,b:2*t-a};break;case 1:i={r:o,g:a,b:2*t-a};break;case 2:i={r:2*t-a,g:a,b:o};break;case 3:i={r:2*t-a,g:o,b:a};break;case 4:i={r:o,g:2*t-a,b:a};break;case 5:i={r:a,g:2*t-a,b:o};break;default:i={r:2*t-a,g:2*t-a,b:2*t-a}}return i.mode="rgb",n!==void 0&&(i.alpha=n),i}function Y7({r:e,g:r,b:t,alpha:n}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.max(e,r,t),o=Math.min(e,r,t),i={mode:"hsl",s:a===o?0:(a-o)/(1-Math.abs(a+o-1)),l:.5*(a+o)};return a-o!==0&&(i.h=(a===e?(r-t)/(a-o)+(r<t)*6:a===r?(t-e)/(a-o)+2:(e-r)/(a-o)+4)*60),n!==void 0&&(i.alpha=n),i}var yW=(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}},mW=yW,bW=new RegExp(`^hsla?\\(\\s*${pX}${_u}${g0}${_u}${g0}\\s*(?:,\\s*${Y2}\\s*)?\\)$`),xW=e=>{let r=e.match(bW);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=mW(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},X7=xW;function _W(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,n,a,o,i]=r;if(n.type!==gr.None){if(n.type===gr.Percentage)return;t.h=n.value}if(a.type!==gr.None){if(a.type===gr.Hue)return;t.s=a.value/100}if(o.type!==gr.None){if(o.type===gr.Hue)return;t.l=o.value/100}return i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var W7=_W,wW={mode:"hsl",toMode:{rgb:G7},fromMode:{rgb:Y7},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[W7,X7],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:Xi},s:xr,l:xr,alpha:{use:xr,fixup:yn}},difference:{h:b0},average:{h:Wi}},J2=wW;function $2({h:e,s:r,v:t,alpha:n}){e=On(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:t,g:t*(1-r*a),b:t*(1-r)};break;case 1:o={r:t*(1-r*a),g:t,b:t*(1-r)};break;case 2:o={r:t*(1-r),g:t,b:t*(1-r*a)};break;case 3:o={r:t*(1-r),g:t*(1-r*a),b:t};break;case 4:o={r:t*(1-r*a),g:t*(1-r),b:t};break;case 5:o={r:t,g:t*(1-r),b:t*(1-r*a)};break;default:o={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return o.mode="rgb",n!==void 0&&(o.alpha=n),o}function K2({r:e,g:r,b:t,alpha:n}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.max(e,r,t),o=Math.min(e,r,t),i={mode:"hsv",s:a===0?0:1-o/a,v:a};return a-o!==0&&(i.h=(a===e?(r-t)/(a-o)+(r<t)*6:a===r?(t-e)/(a-o)+2:(e-r)/(a-o)+4)*60),n!==void 0&&(i.alpha=n),i}var MW={mode:"hsv",toMode:{rgb:$2},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:K2},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:xr,fixup:Xi},s:xr,v:xr,alpha:{use:xr,fixup:yn}},difference:{h:b0},average:{h:Wi}},Q2=MW;function Z7({h:e,w:r,b:t,alpha:n}){if(r===void 0&&(r=0),t===void 0&&(t=0),r+t>1){let a=r+t;r/=a,t/=a}return $2({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:n})}function J7(e){let r=K2(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,n=r.v!==void 0?r.v:0,a={mode:"hwb",w:(1-t)*n,b:1-n};return r.h!==void 0&&(a.h=r.h),r.alpha!==void 0&&(a.alpha=r.alpha),a}function TW(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,n,a,o,i]=r;if(n.type!==gr.None){if(n.type===gr.Percentage)return;t.h=n.value}if(a.type!==gr.None){if(a.type===gr.Hue)return;t.w=a.value/100}if(o.type!==gr.None){if(o.type===gr.Hue)return;t.b=o.value/100}return i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var $7=TW,AW={mode:"hwb",toMode:{rgb:Z7},fromMode:{rgb:J7},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[$7],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:Xi},w:xr,b:xr,alpha:{use:xr,fixup:yn}},difference:{h:D7},average:{h:Wi}},K7=AW,Q7=203,lh=.1593017578125,j7=78.84375,sh=.8359375,uh=18.8515625,fh=18.6875;function o2(e){if(e<0)return 0;let r=Math.pow(e,1/j7);return 1e4*Math.pow(Math.max(0,r-sh)/(uh-fh*r),1/lh)}function l2(e){if(e<0)return 0;let r=Math.pow(e/1e4,lh);return Math.pow((sh+uh*r)/(1+fh*r),j7)}var s2=e=>Math.max(e/Q7,0),kW=({i:e,t:r,p:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=o2(e+.008609037037932761*r+.11102962500302593*t),o=o2(e-.00860903703793275*r-.11102962500302599*t),i=o2(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:s2(2.070152218389422*a-1.3263473389671556*o+.2066510476294051*i),y:s2(.3647385209748074*a+.680566024947227*o-.0453045459220346*i),z:s2(-.049747207535812*a-.0492609666966138*o+1.1880659249923042*i)};return n!==void 0&&(l.alpha=n),l},S2=kW,u2=(e=0)=>Math.max(e*Q7,0),SW=({x:e,y:r,z:t,alpha:n})=>{let a=u2(e),o=u2(r),i=u2(t),l=l2(.3592832590121217*a+.6976051147779502*o-.0358915932320289*i),u=l2(-.1920808463704995*a+1.1004767970374323*o+.0753748658519118*i),s=l2(.0070797844607477*a+.0748396662186366*o+.8433265453898765*i),f=.5*l+.5*u,c=1.61376953125*l-3.323486328125*u+1.709716796875*s,d=4.378173828125*l-4.24560546875*u-.132568359375*s,x={mode:"itp",i:f,t:c,p:d};return n!==void 0&&(x.alpha=n),x},C2=SW,CW={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:S2,rgb:e=>Qo(S2(e))},fromMode:{xyz65:C2,rgb:e=>C2(Ko(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:xr,t:xr,p:xr,alpha:{use:xr,fixup:yn}}},ew=CW,EW=134.03437499999998,LW=16295499532821565e-27,f2=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,lh);return Math.pow((sh+uh*r)/(1+fh*r),EW)},c2=(e=0)=>Math.max(e*203,0),RW=({x:e,y:r,z:t,alpha:n})=>{e=c2(e),r=c2(r),t=c2(t);let a=1.15*e-.15*t,o=.66*r+.34*e,i=f2(.41478972*a+.579999*o+.014648*t),l=f2(-.20151*a+1.120649*o+.0531008*t),u=f2(-.0166008*a+.2648*o+.6684799*t),s=(i+l)/2,f={mode:"jab",j:.44*s/(1-.56*s)-LW,a:3.524*i-4.066708*l+.542708*u,b:.199076*i+1.096799*l-1.295875*u};return n!==void 0&&(f.alpha=n),f},j2=RW,DW=134.03437499999998,v7=16295499532821565e-27,v2=e=>{if(e<0)return 0;let r=Math.pow(e,1/DW);return 1e4*Math.pow((sh-r)/(fh*r-uh),1/lh)},h2=e=>e/203,PW=({j:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+v7)/(.44+.56*(e+v7)),o=v2(a+.13860504*r+.058047316*t),i=v2(a-.13860504*r-.058047316*t),l=v2(a-.096019242*r-.8118919*t),u={mode:"xyz65",x:h2(1.661373024652174*o-.914523081304348*i+.23136208173913045*l),y:h2(-.3250758611844533*o+1.571847026732543*i-.21825383453227928*l),z:h2(-.090982811*o-.31272829*i+1.5227666*l)};return n!==void 0&&(u.alpha=n),u},ey=PW,IW=e=>{let r=j2(Ko(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ry=IW,zW=e=>Qo(ey(e)),ty=zW,FW={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:ry,xyz65:j2},toMode:{rgb:ty,xyz65:ey},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:xr,a:xr,b:xr,alpha:{use:xr,fixup:yn}}},rw=FW,NW=({j:e,a:r,b:t,alpha:n})=>{r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.sqrt(r*r+t*t),o={mode:"jch",j:e,c:a};return a&&(o.h=On(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},E2=NW,qW=({j:e,c:r,h:t,alpha:n})=>{t===void 0&&(t=0);let a={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 n!==void 0&&(a.alpha=n),a},L2=qW,OW={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:L2,rgb:e=>ty(L2(e))},fromMode:{rgb:e=>E2(ry(e)),jab:E2},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:xr,fixup:Xi},c:xr,j:xr,alpha:{use:xr,fixup:yn}},difference:{h:x0},average:{h:Wi}},tw=OW,ch=Math.pow(29,3)/Math.pow(3,3),ny=Math.pow(6,3)/Math.pow(29,3),d2=e=>Math.pow(e,3)>ny?Math.pow(e,3):(116*e-16)/ch,BW=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+16)/116,o=r/500+a,i=a-t/200,l={mode:"xyz50",x:d2(o)*gn.X,y:d2(a)*gn.Y,z:d2(i)*gn.Z};return n!==void 0&&(l.alpha=n),l},vh=BW,UW=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=us({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 n!==void 0&&(a.alpha=n),a},Tu=UW,HW=e=>Tu(vh(e)),ay=HW,VW=e=>{let{r,g:t,b:n,alpha:a}=ss(e),o={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*n,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*n,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*n};return a!==void 0&&(o.alpha=a),o},Au=VW,p2=e=>e>ny?Math.cbrt(e):(ch*e+16)/116,GW=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=p2(e/gn.X),o=p2(r/gn.Y),i=p2(t/gn.Z),l={mode:"lab",l:116*o-16,a:500*(a-o),b:200*(o-i)};return n!==void 0&&(l.alpha=n),l},hh=GW,YW=e=>{let r=hh(Au(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},iy=YW;function XW(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,n,a,o,i]=r;if(!(n.type===gr.Hue||a.type===gr.Hue||o.type===gr.Hue))return n.type!==gr.None&&(t.l=Math.min(Math.max(0,n.value),100)),a.type!==gr.None&&(t.a=a.type===gr.Number?a.value:a.value*125/100),o.type!==gr.None&&(t.b=o.type===gr.Number?o.value:o.value*125/100),i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var nw=XW,WW={mode:"lab",toMode:{xyz50:vh,rgb:ay},fromMode:{xyz50:hh,rgb:iy},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[nw],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:yn}}},dh=WW,ZW=qt(xt({},dh),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:W2,rgb:_0},fromMode:{xyz65:Z2,rgb:w0},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),aw=ZW;function JW(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,n,a,o,i]=r;if(n.type!==gr.None){if(n.type===gr.Hue)return;t.l=Math.min(Math.max(0,n.value),100)}if(a.type!==gr.None&&(t.c=Math.max(0,a.type===gr.Number?a.value:a.value*150/100)),o.type!==gr.None){if(o.type===gr.Percentage)return;t.h=o.value}return i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var iw=JW,$W={mode:"lch",toMode:{lab:Ao,rgb:e=>ay(Ao(e))},fromMode:{rgb:e=>To(iy(e)),lab:To},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[iw],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:Xi},c:xr,l:xr,alpha:{use:xr,fixup:yn}},difference:{h:x0},average:{h:Wi}},ph=$W,KW=qt(xt({},ph),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Ao(e,"lab65"),rgb:e=>_0(Ao(e,"lab65"))},fromMode:{rgb:e=>To(w0(e),"lch65"),lab65:e=>To(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),ow=KW,QW=({l:e,u:r,v:t,alpha:n})=>{r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.sqrt(r*r+t*t),o={mode:"lchuv",l:e,c:a};return a&&(o.h=On(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},oy=QW,jW=({l:e,c:r,h:t,alpha:n})=>{t===void 0&&(t=0);let a={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 n!==void 0&&(a.alpha=n),a},ly=jW,lw=(e,r,t)=>4*e/(e+15*r+3*t),sw=(e,r,t)=>9*r/(e+15*r+3*t),eZ=lw(gn.X,gn.Y,gn.Z),rZ=sw(gn.X,gn.Y,gn.Z),tZ=e=>e<=ny?ch*e:116*Math.cbrt(e)-16,nZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=tZ(r/gn.Y),o=lw(e,r,t),i=sw(e,r,t);!isFinite(o)||!isFinite(i)?a=o=i=0:(o=13*a*(o-eZ),i=13*a*(i-rZ));let l={mode:"luv",l:a,u:o,v:i};return n!==void 0&&(l.alpha=n),l},nh=nZ,aZ=(e,r,t)=>4*e/(e+15*r+3*t),iZ=(e,r,t)=>9*r/(e+15*r+3*t),oZ=aZ(gn.X,gn.Y,gn.Z),lZ=iZ(gn.X,gn.Y,gn.Z),sZ=({l:e,u:r,v:t,alpha:n})=>{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 a=r/(13*e)+oZ,o=t/(13*e)+lZ,i=gn.Y*(e<=8?e/ch:Math.pow((e+16)/116,3)),l=i*(9*a)/(4*o),u=i*(12-3*a-20*o)/(4*o),s={mode:"xyz50",x:l,y:i,z:u};return n!==void 0&&(s.alpha=n),s},ah=sZ,uZ=e=>oy(nh(Au(e))),fZ=e=>Tu(ah(ly(e))),cZ={mode:"lchuv",toMode:{luv:ly,rgb:fZ},fromMode:{rgb:uZ,luv:oy},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:Xi},c:xr,l:xr,alpha:{use:xr,fixup:yn}},difference:{h:x0},average:{h:Wi}},uw=cZ,vZ=qt(xt({},ls),{mode:"lrgb",toMode:{rgb:us},fromMode:{rgb:ss},parse:["srgb-linear"],serialize:"srgb-linear"}),fw=vZ,hZ={mode:"luv",toMode:{xyz50:ah,rgb:e=>Tu(ah(e))},fromMode:{xyz50:nh,rgb:e=>nh(Au(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:yn}}},cw=hZ,dZ=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),o=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),i=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*a+.7936177747023054*o-.0040720430116193*i,a:1.9779985324311684*a-2.42859224204858*o+.450593709617411*i,b:.0259040424655478*a+.7827717124575296*o-.8086757549230774*i};return n!==void 0&&(l.alpha=n),l},sy=dZ,pZ=e=>{let r=sy(ss(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},M0=pZ,gZ=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),o=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),i=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*a-3.3077115392580616*o+.2309699031821044*i,g:-1.2684379732850317*a+2.6097573492876887*o-.3413193760026573*i,b:-.0041960761386756*a-.7034186179359362*o+1.7076146940746117*i};return n!==void 0&&(l.alpha=n),l},ku=gZ,yZ=e=>us(ku(e)),T0=yZ;function R2(e){let n=1.170873786407767;return .5*(n*e-.206+Math.sqrt((n*e-.206)*(n*e-.206)+4*.03*n*e))}function ih(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function mZ(e,r){let t,n,a,o,i,l,u,s;-1.88170328*e-.80936493*r>1?(t=1.19086277,n=1.76576728,a=.59662641,o=.75515197,i=.56771245,l=4.0767416621,u=-3.3077115913,s=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,n=-.45954404,a=.08285427,o=.1254107,i=.14503204,l=-1.2684380046,u=2.6097574011,s=-.3413193965):(t=1.35733652,n=-.00915799,a=-1.1513021,o=-.50559606,i=.00692167,l=-.0041960863,u=-.7034186147,s=1.707614701);let f=t+n*e+a*r+o*e*e+i*e*r,c=.3963377774*e+.2158037573*r,d=-.1055613458*e-.0638541728*r,x=-.0894841775*e-1.291485548*r;{let g=1+f*c,w=1+f*d,T=1+f*x,m=g*g*g,k=w*w*w,S=T*T*T,b=3*c*g*g,M=3*d*w*w,h=3*x*T*T,_=6*c*c*g,y=6*d*d*w,v=6*x*x*T,A=l*m+u*k+s*S,p=l*b+u*M+s*h,R=l*_+u*y+s*v;f=f-A*p/(p*p-.5*A*R)}return f}function uy(e,r){let t=mZ(e,r),n=ku({l:1,a:t*e,b:t*r}),a=Math.cbrt(1/Math.max(n.r,n.g,n.b)),o=a*t;return[a,o]}function bZ(e,r,t,n,a,o=null){o||(o=uy(e,r));let i;if((t-a)*o[1]-(o[0]-a)*n<=0)i=o[1]*a/(n*o[0]+o[1]*(a-t));else{i=o[1]*(a-1)/(n*(o[0]-1)+o[1]*(a-t));{let l=t-a,u=n,s=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,d=l+u*s,x=l+u*f,g=l+u*c;{let w=a*(1-i)+i*t,T=i*n,m=w+T*s,k=w+T*f,S=w+T*c,b=m*m*m,M=k*k*k,h=S*S*S,_=3*d*m*m,y=3*x*k*k,v=3*g*S*S,A=6*d*d*m,p=6*x*x*k,R=6*g*g*S,E=4.0767416621*b-3.3077115913*M+.2309699292*h-1,D=4.0767416621*_-3.3077115913*y+.2309699292*v,F=4.0767416621*A-3.3077115913*p+.2309699292*R,z=D/(D*D-.5*E*F),I=-E*z,L=-1.2684380046*b+2.6097574011*M-.3413193965*h-1,P=-1.2684380046*_+2.6097574011*y-.3413193965*v,O=-1.2684380046*A+2.6097574011*p-.3413193965*R,U=P/(P*P-.5*L*O),V=-L*U,K=-.0041960863*b-.7034186147*M+1.707614701*h-1,j=-.0041960863*_-.7034186147*y+1.707614701*v,G=-.0041960863*A-.7034186147*p+1.707614701*R,q=j/(j*j-.5*K*G),J=-K*q;I=z>=0?I:1e6,V=U>=0?V:1e6,J=q>=0?J:1e6,i+=Math.min(I,Math.min(V,J))}}}return i}function fy(e,r,t=null){t||(t=uy(e,r));let n=t[0],a=t[1];return[a/n,a/(1-n)]}function vw(e,r,t){let n=uy(r,t),a=bZ(r,t,e,1,e,n),o=fy(r,t,n),i=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),u=a/Math.min(e*o[0],(1-e)*o[1]),s=e*i,f=(1-e)*l,c=.9*u*Math.sqrt(Math.sqrt(1/(1/(s*s*s*s)+1/(f*f*f*f))));return s=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(s*s)+1/(f*f))),c,a]}function D2(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,a={mode:"okhsl",l:R2(r)};e.alpha!==void 0&&(a.alpha=e.alpha);let o=Math.sqrt(t*t+n*n);if(!o)return a.s=0,a;let[i,l,u]=vw(r,t/o,n/o),s;if(o<l){let f=0,c=.8*i,d=1-c/l;s=(o-f)/(c+d*(o-f))*.8}else{let f=l,c=.2*l*l*1.25*1.25/i,d=1-c/(u-l);s=.8+.2*((o-f)/(c+d*(o-f)))}return s&&(a.s=s,a.h=On(Math.atan2(n,t)*180/Math.PI)),a}function P2(e){let r=e.h!==void 0?e.h:0,t=e.s!==void 0?e.s:0,n=e.l!==void 0?e.l:0,a={mode:"oklab",l:ih(n)};if(e.alpha!==void 0&&(a.alpha=e.alpha),!t||n===1)return a.a=a.b=0,a;let o=Math.cos(r/180*Math.PI),i=Math.sin(r/180*Math.PI),[l,u,s]=vw(a.l,o,i),f,c,d,x;t<.8?(f=1.25*t,c=0,d=.8*l,x=1-d/u):(f=5*(t-.8),c=u,d=.2*u*u*1.25*1.25/l,x=1-d/(s-u));let g=c+f*d/(1-x*f);return a.a=g*o,a.b=g*i,a}var xZ=qt(xt({},J2),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:D2,rgb:e=>D2(M0(e))},toMode:{oklab:P2,rgb:e=>T0(P2(e))}}),hw=xZ;function I2(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,a=Math.sqrt(t*t+n*n),o=a?t/a:1,i=a?n/a:1,[l,u]=fy(o,i),s=.5,f=1-s/l,c=u/(a+r*u),d=c*r,x=c*a,g=ih(d),w=x*g/d,T=ku({l:g,a:o*w,b:i*w}),m=Math.cbrt(1/Math.max(T.r,T.g,T.b,0));r=r/m,a=a/m*R2(r)/r,r=R2(r);let k={mode:"okhsv",s:a?(s+u)*x/(u*s+u*f*x):0,v:r?r/d:0};return k.s&&(k.h=On(Math.atan2(n,t)*180/Math.PI)),e.alpha!==void 0&&(k.alpha=e.alpha),k}function z2(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,a=e.v!==void 0?e.v:0,o=Math.cos(t/180*Math.PI),i=Math.sin(t/180*Math.PI),[l,u]=fy(o,i),s=.5,f=1-s/l,c=1-n*s/(s+u-u*f*n),d=n*u*s/(s+u-u*f*n),x=ih(c),g=d*x/c,w=ku({l:x,a:o*g,b:i*g}),T=Math.cbrt(1/Math.max(w.r,w.g,w.b,0)),m=ih(a*c),k=d*m/c;return r.l=m*T,r.a=k*o*T,r.b=k*i*T,r}var _Z=qt(xt({},Q2),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:I2,rgb:e=>I2(M0(e))},toMode:{oklab:z2,rgb:e=>T0(z2(e))}}),dw=_Z;function wZ(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,n,a,o,i]=r;if(!(n.type===gr.Hue||a.type===gr.Hue||o.type===gr.Hue))return n.type!==gr.None&&(t.l=Math.min(Math.max(0,n.type===gr.Number?n.value:n.value/100),1)),a.type!==gr.None&&(t.a=a.type===gr.Number?a.value:a.value*.4/100),o.type!==gr.None&&(t.b=o.type===gr.Number?o.value:o.value*.4/100),i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var pw=wZ,MZ=qt(xt({},dh),{mode:"oklab",toMode:{lrgb:ku,rgb:T0},fromMode:{lrgb:sy,rgb:M0},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[pw],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}`:""})`}),gw=MZ;function TZ(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,n,a,o,i]=r;if(n.type!==gr.None){if(n.type===gr.Hue)return;t.l=Math.min(Math.max(0,n.type===gr.Number?n.value:n.value/100),1)}if(a.type!==gr.None&&(t.c=Math.max(0,a.type===gr.Number?a.value:a.value*.4/100)),o.type!==gr.None){if(o.type===gr.Percentage)return;t.h=o.value}return i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var yw=TZ,AZ=qt(xt({},ph),{mode:"oklch",toMode:{oklab:e=>Ao(e,"oklab"),rgb:e=>T0(Ao(e,"oklab"))},fromMode:{rgb:e=>To(M0(e),"oklch"),oklab:e=>To(e,"oklch")},parse:[yw],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]}}),mw=AZ,kZ=e=>{let{r,g:t,b:n,alpha:a}=ss(e),o={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*n,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*n,z:0*r+.0451133818589026*t+1.043944368900976*n};return a!==void 0&&(o.alpha=a),o},F2=kZ,SZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=us({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 n!==void 0&&(a.alpha=n),a},N2=SZ,CZ=qt(xt({},ls),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>N2(Ko(e)),xyz65:N2},toMode:{rgb:e=>Qo(F2(e)),xyz65:F2}}),bw=CZ,g2=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},EZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"prophoto",r:g2(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:g2(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:g2(e*0+r*0+1.2119675456389452*t)};return n!==void 0&&(a.alpha=n),a},q2=EZ,y2=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},LZ=e=>{let r=y2(e.r),t=y2(e.g),n=y2(e.b),a={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*n,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*n,z:0*r+0*t+.8251046025104602*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},O2=LZ,RZ=qt(xt({},ls),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:q2,rgb:e=>q2(Au(e))},toMode:{xyz50:O2,rgb:e=>Tu(O2(e))}}),xw=RZ,h7=1.09929682680944,DZ=.018053968510807,m2=e=>{let r=Math.abs(e);return r>DZ?(Math.sign(e)||1)*(h7*Math.pow(r,.45)-(h7-1)):4.5*e},PZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"rec2020",r:m2(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:m2(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:m2(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return n!==void 0&&(a.alpha=n),a},B2=PZ,d7=1.09929682680944,IZ=.018053968510807,b2=(e=0)=>{let r=Math.abs(e);return r<IZ*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+d7-1)/d7,1/.45)},zZ=e=>{let r=b2(e.r),t=b2(e.g),n=b2(e.b),a={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*n,y:.262700212011267*r+.6779980715188708*t+.059301716469862*n,z:0*r+.0280726930490874*t+1.0609850577107909*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},U2=zZ,FZ=qt(xt({},ls),{mode:"rec2020",fromMode:{xyz65:B2,rgb:e=>B2(Ko(e))},toMode:{xyz65:U2,rgb:e=>Qo(U2(e))},parse:["rec2020"],serialize:"rec2020"}),_w=FZ,is=.0037930732552754493,ww=Math.cbrt(is),x2=e=>Math.cbrt(e)-ww,NZ=e=>{let{r,g:t,b:n,alpha:a}=ss(e),o=x2(.3*r+.622*t+.078*n+is),i=x2(.23*r+.692*t+.078*n+is),l=x2(.2434226892454782*r+.2047674442449682*t+.5518098665095535*n+is),u={mode:"xyb",x:(o-i)/2,y:(o+i)/2,b:l-(o+i)/2};return a!==void 0&&(u.alpha=a),u},Mw=NZ,_2=e=>Math.pow(e+ww,3),qZ=({x:e,y:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=_2(e+r)-is,o=_2(r-e)-is,i=_2(t+r)-is,l=us({r:11.031566904639861*a-9.866943908131562*o-.16462299650829934*i,g:-3.2541473810744237*a+4.418770377582723*o-.16462299650829934*i,b:-3.6588512867136815*a+2.7129230459360922*o+1.9459282407775895*i});return n!==void 0&&(l.alpha=n),l},Tw=qZ,OZ={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Tw},fromMode:{rgb:Mw},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:xr,y:xr,b:xr,alpha:{use:xr,fixup:yn}}},Aw=OZ,BZ={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Tu,lab:hh},fromMode:{rgb:Au,lab:vh},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:yn}}},kw=BZ,UZ=e=>{let{x:r,y:t,z:n,alpha:a}=e;r===void 0&&(r=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*n,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*n,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*n};return a!==void 0&&(o.alpha=a),o},Sw=UZ,HZ=e=>{let{x:r,y:t,z:n,alpha:a}=e;r===void 0&&(r=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*n,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*n,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*n};return a!==void 0&&(o.alpha=a),o},Cw=HZ,VZ={mode:"xyz65",toMode:{rgb:Qo,xyz50:Sw},fromMode:{rgb:Ko,xyz50:Cw},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:yn}}},Ew=VZ,GZ=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return n!==void 0&&(a.alpha=n),a},Lw=GZ,YZ=({y:e,i:r,q:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return n!==void 0&&(a.alpha=n),a},Rw=YZ,XZ={mode:"yiq",toMode:{rgb:Rw},fromMode:{rgb:Lw},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:yn}}},Dw=XZ,WZ=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,ZZ=(e=4)=>r=>typeof r=="number"?WZ(r,e):r,Pw=ZZ,p0=Pw(2),y0=e=>Math.max(0,Math.min(1,e||0)),os=e=>Math.round(y0(e)*255),cy=Pt("rgb"),JZ=Pt("hsl"),vy=e=>{if(e===void 0)return;let r=os(e.r),t=os(e.g),n=os(e.b);return"#"+(1<<24|r<<16|t<<8|n).toString(16).slice(1)},Iw=e=>{if(e===void 0)return;let r=os(e.alpha!==void 0?e.alpha:1);return vy(e)+(256|r).toString(16).slice(1)},zw=e=>{if(e===void 0)return;let r=os(e.r),t=os(e.g),n=os(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${n})`:`rgba(${r}, ${t}, ${n}, ${p0(y0(e.alpha))})`},Fw=e=>{if(e===void 0)return;let r=p0(e.h||0),t=p0(y0(e.s)*100)+"%",n=p0(y0(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${n})`:`hsla(${r}, ${t}, ${n}, ${p0(y0(e.alpha))})`},$Z=e=>{let r=gi(e);if(!r)return;let t=Qn(r.mode);if(!t.serialize||typeof t.serialize=="string"){let n=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((a,o)=>{a!=="alpha"&&(n+=(o?" ":"")+(r[a]!==void 0?r[a]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(n+=` / ${r.alpha}`),n+")"}if(typeof t.serialize=="function")return t.serialize(r)},KZ=e=>vy(cy(e)),QZ=e=>Iw(cy(e)),jZ=e=>zw(cy(e)),eJ=e=>Fw(JZ(e)),rJ={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},tJ=(e,r="normal",t="rgb")=>{let n=typeof r=="function"?r:rJ[r],a=Pt(t),o=Qn(t).channels;return e.map(l=>{let u=a(l);return u.alpha===void 0&&(u.alpha=1),u}).reduce((l,u)=>{if(l===void 0)return u;let s=u.alpha+l.alpha*(1-u.alpha);return o.reduce((f,c)=>(c!=="alpha"&&(s===0?f[c]=0:(f[c]=u.alpha*(1-l.alpha)*u[c]+u.alpha*l.alpha*n(l[c],u[c])+(1-u.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/s)))),f),{mode:t,alpha:s})})},nJ=tJ,aJ=([e,r])=>e+Math.random()*(r-e),iJ=e=>Object.keys(e).reduce((r,t)=>{let n=e[t];return r[t]=Array.isArray(n)?n:[n,n],r},{}),oJ=(e="rgb",r={})=>{let t=Qn(e),n=iJ(r);return t.channels.reduce((a,o)=>((n.alpha||o!=="alpha")&&(a[o]=aJ(n[o]||t.ranges[o])),a),{mode:e})},lJ=oJ,A0=(e,r="rgb",t=!1)=>{let n=r?Qn(r).channels:null,a=r?Pt(r):gi;return o=>{let i=a(o);if(!i)return;let l=(n||Qn(i.mode).channels).reduce((s,f)=>{let c=e(i[f],f,i,r);return c!==void 0&&!isNaN(c)&&(s[f]=c),s},{mode:i.mode});if(!t)return l;let u=gi(o);return u&&u.mode!==l.mode?Pt(u.mode)(l):l}},Nw=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,qw=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,hy=(e=1,r=0)=>(t,n)=>n!=="alpha"?t*e+r:t,sJ=(e=1,r=1,t=0)=>(n,a)=>a!=="alpha"?e*Math.pow(n,r)+t:n,uJ=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,n,a,o;for(;r<e.length;){if(e[r]===void 0){for(n=r,a=e[r-1],t=r;e[t]===void 0;)t++;for(o=(e[t]-a)/(t-r+1);r<t;)e[r]=a+(r+1-n)*o,r++}else e[r]<e[r-1]&&(e[r]=e[r-1]);r++}return e},fJ=uJ,cJ=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),Ow=cJ,Jv=e=>typeof e=="function",ns=e=>e&&typeof e=="object",p7=e=>typeof e=="number",Bw=(e,r="rgb",t,n)=>{let a=Qn(r),o=Pt(r),i=[],l=[],u={};e.forEach(d=>{Array.isArray(d)?(i.push(o(d[0])),l.push(d[1])):p7(d)||Jv(d)?u[l.length]=d:(i.push(o(d)),l.push(void 0))}),fJ(l);let s=a.channels.reduce((d,x)=>{let g;return ns(t)&&ns(t[x])&&t[x].fixup?g=t[x].fixup:ns(a.interpolate[x])&&a.interpolate[x].fixup?g=a.interpolate[x].fixup:g=w=>w,d[x]=g(i.map(w=>w[x])),d},{});if(n){let d=i.map((x,g)=>a.channels.reduce((w,T)=>(w[T]=s[T][g],w),{mode:r}));s=a.channels.reduce((x,g)=>(x[g]=d.map(w=>{let T=n(w[g],g,w,r);return isNaN(T)?void 0:T}),x),{})}let f=a.channels.reduce((d,x)=>{let g;return Jv(t)?g=t:ns(t)&&Jv(t[x])?g=t[x]:ns(t)&&ns(t[x])&&t[x].use?g=t[x].use:Jv(a.interpolate[x])?g=a.interpolate[x]:ns(a.interpolate[x])&&(g=a.interpolate[x].use),d[x]=g(s[x]),d},{}),c=i.length-1;return d=>{if(d=Math.min(Math.max(0,d),1),d<=l[0])return i[0];if(d>l[c])return i[c];let x=0;for(;l[x]<d;)x++;let g=l[x-1],w=l[x]-g,T=(d-g)/w,m=u[x]||u[0];m!==void 0&&(p7(m)&&(m=Ow((m-g)/w)),T=m(T));let k=(x-1+T)/c;return a.channels.reduce((S,b)=>{let M=f[b](k);return M!==void 0&&(S[b]=M),S},{mode:r})}},vJ=(e,r="rgb",t)=>Bw(e,r,t),Uw=(e,r)=>(t,n="rgb",a)=>{let o=r?A0(r,n):void 0,i=Bw(t,n,a,e);return o?l=>o(i(l)):i},hJ=Uw(Nw,qw),$v=(e,r)=>(e+r)%r,Hw=(e,r,t,n,a)=>{let o=a*a,i=o*a;return((1-3*a+3*o-i)*e+(4-6*o+3*i)*r+(1+3*a+3*o-3*i)*t+i*n)/6},Vw=e=>r=>{let t=e.length-1,n=r>=1?t-1:Math.max(0,Math.floor(r*t));return Hw(n>0?e[n-1]:2*e[n]-e[n+1],e[n],e[n+1],n<t-1?e[n+2]:2*e[n+1]-e[n],(r-n/t)*t)},Gw=e=>r=>{let t=e.length-1,n=Math.floor(r*t);return Hw(e[$v(n-1,e.length)],e[$v(n,e.length)],e[$v(n+1,e.length)],e[$v(n+2,e.length)],(r-n/t)*t)},Yw=e=>{let r,t=e.length-1,n=new Array(t),a=new Array(t),o=new Array(t);for(n[1]=1/4,a[1]=(6*e[1]-e[0])/4,r=2;r<t;++r)n[r]=1/(4-n[r-1]),a[r]=(6*e[r]-(r==t-1?e[t]:0)-a[r-1])*n[r];for(o[0]=e[0],o[t]=e[t],t-1>0&&(o[t-1]=a[t-1]),r=t-2;r>0;--r)o[r]=a[r]-n[r]*o[r+1];return o},dJ=e=>Vw(Yw(e)),pJ=e=>Gw(Yw(e)),bu=Math.sign,H2=Math.min,Sa=Math.abs,dy=e=>{let r=e.length-1,t=[],n=[],a=[];for(let o=0;o<r;o++)t.push((e[o+1]-e[o])*r),n.push(o>0?.5*(e[o+1]-e[o-1])*r:void 0),a.push(o>0?(bu(t[o-1])+bu(t[o]))*H2(Sa(t[o-1]),Sa(t[o]),.5*Sa(n[o])):void 0);return[t,n,a]},py=(e,r,t)=>{let n=e.length-1,a=n*n;return o=>{let i;o>=1?i=n-1:i=Math.max(0,Math.floor(o*n));let l=o-i/n,u=l*l,s=u*l;return(r[i]+r[i+1]-2*t[i])*a*s+(3*t[i]-2*r[i]-r[i+1])*n*u+r[i]*l+e[i]}},gJ=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,,n]=dy(e);return n[0]=t[0],n[r]=t[r-1],py(e,n,t)},yJ=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,n,a]=dy(e);return n[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,n[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,a[0]=n[0]*t[0]<=0?0:Sa(n[0])>2*Sa(t[0])?2*t[0]:n[0],a[r]=n[r]*t[r-1]<=0?0:Sa(n[r])>2*Sa(t[r-1])?2*t[r-1]:n[r],py(e,a,t)},mJ=e=>{let r=e.length-1,[t,n,a]=dy(e);n[0]=.5*(e[1]-e[r])*r,n[r]=.5*(e[0]-e[r-1])*r;let o=(e[0]-e[r])*r,i=o;return a[0]=(bu(o)+bu(t[0]))*H2(Sa(o),Sa(t[0]),.5*Sa(n[0])),a[r]=(bu(t[r-1])+bu(i))*H2(Sa(t[r-1]),Sa(i),.5*Sa(n[r])),py(e,a,t)},bJ=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),Xw=bJ,xJ=(e=2,r=1)=>{let t=Xw(r);if(e<2)return e<1?[]:[t(.5)];let n=[];for(let a=0;a<e;a++)n.push(t(a/(e-1)));return n},_J=xJ,Ww=Pt("rgb"),Zw=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},Jw=e=>Zw(Ww(e)),$w=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 gy(e){return $w(Ww(e))}function gh(e="rgb"){let{gamut:r}=Qn(e);if(!r)return n=>!0;let t=Pt(typeof r=="string"?r:e);return n=>$w(t(n))}function wJ(e){return e=gi(e),e===void 0||gy(e)?e:Pt(e.mode)(Jw(e))}function yy(e="rgb"){let{gamut:r}=Qn(e);if(!r)return o=>gi(o);let t=typeof r=="string"?r:e,n=Pt(t),a=gh(t);return o=>{let i=gi(o);if(!i)return;let l=n(i);if(a(l))return i;let u=Zw(l);return i.mode===u.mode?u:Pt(i.mode)(u)}}function MJ(e,r="lch",t="rgb"){e=gi(e);let n=t==="rgb"?gy:gh(t),a=t==="rgb"?Jw:yy(t);if(e===void 0||n(e))return e;let o=Pt(e.mode);e=Pt(r)(e);let i=qt(xt({},e),{c:0});if(!n(i))return o(a(i));let l=0,u=e.c!==void 0?e.c:0,s=Qn(r).ranges.c,f=(s[1]-s[0])/Math.pow(2,13),c=i.c;for(;u-l>f;)i.c=l+(u-l)*.5,n(i)?(c=i.c,l=i.c):u=i.c;return o(n(i)?i:qt(xt({},i),{c}))}function TJ(e="rgb",r="oklch",t=Mu("oklch"),n=.02){let a=Pt(e),o=Qn(e);if(!o.gamut)return f=>a(f);let i=gh(e),l=yy(e),u=Pt(r),{ranges:s}=Qn(r);if(!s.l||!s.c)throw new Error("LCH-like space expected");return f=>{if(f=gi(f),f===void 0)return;let c=xt({},u(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=s.l[1]){let T=qt(xt({},o.white),{mode:e});return f.alpha!==void 0&&(T.alpha=f.alpha),T}if(c.l<=s.l[0]){let T=qt(xt({},o.black),{mode:e});return f.alpha!==void 0&&(T.alpha=f.alpha),T}if(i(c))return a(c);let d=0,x=c.c,g=(s.c[1]-s.c[0])/4e3,w=l(c);for(;x-d>g;)c.c=(d+x)*.5,w=l(c),i(c)||t&&n>0&&t(c,w)<=n?d=c.c:x=c.c;return a(i(c)?c:w)}}var AJ=(e,r=Mu(),t=n=>n)=>{let n=e.map((a,o)=>({color:t(a),i:o}));return(a,o=1,i=1/0)=>(isFinite(o)&&(o=Math.max(1,Math.min(o,n.length-1))),n.forEach(l=>{l.d=r(a,l.color)}),n.sort((l,u)=>l.d-u.d).slice(0,o).filter(l=>l.d<i).map(l=>e[l.i]))},kJ=AJ,my=e=>Math.max(e,0),by=e=>Math.max(Math.min(e,1),0),SJ=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),CJ=e=>{let r=1-by(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]},EJ=e=>{let r=my(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]},LJ=e=>{let r=1-by(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]},RJ=e=>{let r=Math.PI*e/180,t=Math.cos(r),n=Math.sin(r);return[.213+t*.787-n*.213,.715-t*.715-n*.715,.072-t*.072+n*.928,0,.213-t*.213+n*.143,.715+t*.285+n*.14,.072-t*.072-n*.283,0,.213-t*.213-n*.787,.715-t*.715+n*.715,.072+t*.928+n*.072,0,0,0,0,1]},yh=(e,r,t=!1)=>{let n=Pt(r),a=Qn(r).channels;return o=>{let i=n(o);if(!i)return;let l={mode:r},u,s=a.length;for(let c=0;c<e.length;c++)u=a[Math.floor(c/s)],i[u]!==void 0&&(l[u]=(l[u]||0)+e[c]*(i[a[c%s]]||0));if(!t)return l;let f=gi(o);return f&&l.mode!==f.mode?Pt(f.mode)(l):l}},DJ=(e=1,r="rgb")=>{let t=my(e);return A0(hy(t),r,!0)},PJ=(e=1,r="rgb")=>{let t=my(e);return A0(hy(t,(1-t)/2),r,!0)},IJ=(e=1,r="rgb")=>yh(CJ(e),r,!0),zJ=(e=1,r="rgb")=>yh(EJ(e),r,!0),FJ=(e=1,r="rgb")=>yh(LJ(e),r,!0),NJ=(e=1,r="rgb")=>{let t=by(e);return A0((n,a)=>a==="alpha"?n:SJ(t,1-t,n),r,!0)},qJ=(e=0,r="rgb")=>yh(RJ(e),r,!0),OJ=Pt("rgb"),BJ=[[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]],UJ=[[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]],HJ=[[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]],xy=(e,r)=>{let t=Math.max(0,Math.min(1,r)),n=Math.round(t/.1),a=Math.round(t%.1),o=e[n];if(a>0&&n<e.length-1){let i=e[n+1];o=o.map((l,u)=>as(o[u],i[u],a))}return i=>{let l=gi(i);if(l===void 0)return;let{r:u,g:s,b:f}=OJ(l),c={mode:"rgb",r:o[0]*u+o[1]*s+o[2]*f,g:o[3]*u+o[4]*s+o[5]*f,b:o[6]*u+o[7]*s+o[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),Pt(l.mode)(c)}},VJ=(e=1)=>xy(BJ,e),GJ=(e=1)=>xy(UJ,e),YJ=(e=1)=>xy(HJ,e),XJ=e=>e*e*(3-2*e),WJ=e=>.5-Math.sin(Math.asin(1-2*e)/3),ZJ=e=>e*e*e*(e*(e*6-15)+10),JJ=ZJ,$J=e=>(1-Math.cos(e*Math.PI))/2,KJ=$J;function V2(e){let r=Pt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function QJ(e,r){let t=V2(e),n=V2(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}var jJ=_t(E7),e$=_t(I7),r$=_t(O7),t$=_t(B7),n$=_t(V7),a$=_t(J2),i$=_t(Q2),o$=_t(K7),l$=_t(ew),s$=_t(rw),u$=_t(tw),f$=_t(dh),c$=_t(aw),v$=_t(ph),h$=_t(ow),d$=_t(uw),p$=_t(fw),g$=_t(cw),y$=_t(hw),m$=_t(dw),b$=_t(gw),x$=_t(mw),_$=_t(bw),w$=_t(xw),M$=_t(_w),T$=_t(ls),A$=_t(Aw),k$=_t(kw),S$=_t(Ew),C$=_t(Dw)});var jo=xe((Wye,t8)=>{"use strict";var jw={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:{}}},e8={};function r8(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),r8(n,r[t]))}}r8(jw,e8);t8.exports={configAttributes:jw,dfltConfig:e8}});var wy=xe((Zye,n8)=>{"use strict";var _y=nt(),E$=it(),k0=[];n8.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||k0.indexOf(e)!==-1)return;k0.push(e);var n=1e3;E$(r)?n=r:r==="long"&&(n=3e3);var a=_y.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var o=a.selectAll(".notifier-note").data(k0);function i(u){u.duration(700).style("opacity",0).each("end",function(s){var f=k0.indexOf(s);f!==-1&&k0.splice(f,1),_y.select(this).remove()})}o.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var s=_y.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(i)});for(var f=s.append("p"),c=u.split(/<br\s*\/?>/g),d=0;d<c.length;d++)d&&f.append("br"),f.append("span").text(c[d]);r==="stick"?s.transition().duration(350).style("opacity",1):s.transition().duration(700).style("opacity",1).transition().delay(n).call(i)})}});var el=xe((Jye,a8)=>{"use strict";var Su=jo().dfltConfig,My=wy(),Ty=a8.exports={};Ty.log=function(){var e;if(Su.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(Su.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);My(t.join("<br>"),"long")}};Ty.warn=function(){var e;if(Su.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(Su.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);My(t.join("<br>"),"stick")}};Ty.error=function(){var e;if(Su.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(Su.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);My(t.join("<br>"),"stick")}}});var Zi=xe(fs=>{"use strict";fs.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];fs.defaultLine="#444";fs.lightLine="#eee";fs.background="#fff";fs.borderLine="#BEC8D9";fs.lightFraction=1e3/11});var Xr=xe((Kye,v8)=>{"use strict";var{converter:i8,formatHex:L$,formatRgb:R$,wcagContrast:D$,wcagLuminance:P$}=Qw(),{isArrayOrTypedArray:I$}=sa(),{warn:z$}=el(),{background:C0,defaultLine:Sy,defaults:F$,lightLine:N$}=Zi(),o8=i8("rgb"),q$=i8("hsl"),l8=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return o8(r)}catch(t){return}},jn=e=>e>0?e>1?1:e:0,O$={mode:"rgb",r:0,g:0,b:0,alpha:1},Ay=e=>Math.round(e*255e6)/255e6,s8=e=>qt(xt({},e),{r:Ay(e.r),g:Ay(e.g),b:Ay(e.b)}),Ca=e=>R$(s8(e)),B$=e=>L$(s8(e)),Vt=(e,r)=>{var n;let t=l8(e);return t?((n=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&z$(`Invalid color specifier: "${e}". Defaulting to "#000"`),O$)},S0=e=>Ca(qt(xt({},Vt(e)),{alpha:1})),U$=e=>e?Vt(e).alpha:0,u8=e=>I$(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),H$=e=>{let[r,t,n,a]=e,o=Math.max(r,t,n)>1?1/255:1,i=a!=null?a:1;return{mode:"rgb",r:r*o,g:t*o,b:n*o,alpha:i>1?i/255:i}},V$=(e,r)=>{let t=u8(e)?H$(e):Vt(e,!0),n=[jn(t.r),jn(t.g),jn(t.b),jn(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(n,a=>Math.round(a*255)):r==="float32"?Float32Array.from(n):r==="float64"?Float64Array.from(n):n},G$=(e,r)=>Ca(qt(xt({},Vt(e)),{alpha:jn(r)})),f8=(e,r)=>{let t=Vt(e),n=t.alpha;if(n===1)return Ca(t);let a=Vt(r||C0),o=a.alpha,i=(l,u)=>(o===1?u:1-o+u*o)*(1-n)+l*n;return Ca({mode:"rgb",r:i(t.r,a.r),g:i(t.g,a.g),b:i(t.b,a.b)})},Y$=(e,r,t)=>{let n=Vt(e),a=Vt(r),o=(i,l)=>t*i+(1-t)*l;return Ca({mode:"rgb",r:o(n.r,a.r),g:o(n.g,a.g),b:o(n.b,a.b)})},ky=(e,r)=>{let t=Vt(e),n=q$(t)||{mode:"hsl",h:0,s:0,l:0};return Ca(o8(qt(xt({},n),{l:jn((n.l*100+r)/100),alpha:t.alpha})))},mh=(e,r)=>D$(Vt(e),Vt(r)),c8=e=>mh(e,C0)>mh(e,Sy),X$=Ca(Vt(C0)),W$=Ca(Vt(Sy)),Z$=(e,r,t)=>(Vt(e).alpha!==1&&(e=f8(e,C0)),c8(e)?r?ky(e,r):X$:t?ky(e,-t):W$),J$=(e,r)=>{e.style({stroke:S0(r),"stroke-opacity":Vt(r).alpha})},$$=(e,r)=>{e.style({fill:S0(r),"fill-opacity":Vt(r).alpha})},K$=(e,r)=>!!(e&&r&&S0(e)===S0(r)),Q$=e=>l8(e)!==void 0,j$=(e,r)=>{r=r===0?0:r||10;let t=Vt(e),n=r/100;return Ca(qt(xt({},t),{r:jn(t.r+n),g:jn(t.g+n),b:jn(t.b+n)}))},eK=(e,r,t)=>{let n=Vt(e),a=Vt(r),o=t/100,i=a.alpha-n.alpha,l=2*o-1,u=((l*i===-1?l:(l+i)/(1+l*i))+1)/2,s=1-u,f=(c,d)=>s*c+u*d;return Ca({mode:"rgb",r:f(n.r,a.r),g:f(n.g,a.g),b:f(n.b,a.b),alpha:n.alpha*(1-o)+a.alpha*o})},rK=(e,r=["#000","#fff"])=>{let t,n=-1/0;for(let a of r){let o=mh(e,a);o>n&&(n=o,t=Ca(Vt(a)))}return t},tK=e=>Ca(Vt(e)),nK=e=>B$(Vt(e)).toUpperCase(),aK=e=>{let r=Vt(e);return[jn(r.r)*255,jn(r.g)*255,jn(r.b)*255,jn(r.alpha)]},iK=([e,r,t,n])=>Ca({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:n}),oK=e=>{let r=Vt(e);return P$({mode:"rgb",r:jn(r.r),g:jn(r.g),b:jn(r.b)})};v8.exports={addOpacity:G$,adjustLightness:ky,background:C0,brighten:j$,combine:f8,contrast:Z$,defaultLine:Sy,defaults:F$,equals:K$,fill:$$,hexString:nK,interpolate:Y$,isChannelArray:u8,isDark:c8,isValid:Q$,lightLine:N$,luminosity:oK,mix:eK,mostReadable:rK,normalize:V$,opacity:U$,parse:Vt,rgb:S0,rgbaArray:aK,rgbaArrayToString:iK,rgbaString:tK,stroke:J$,wcagContrast:mh}});var cs=xe((jye,p8)=>{"use strict";var lK=Xr(),bh={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)"]]},h8=bh.RdBu;function sK(e,r){if(r||(r=h8),!e)return r;function t(){try{e=bh[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),d8(e)?e:r}function d8(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 n=e[t];if(n.length!==2||+n[0]<r||!lK.isValid(n[1]))return!1;r=+n[0]}return!0}function uK(e){return bh[e]!==void 0?!0:d8(e)}p8.exports={scales:bh,defaultScale:h8,get:sK,isValid:uK}});var xh=xe((eme,g8)=>{"use strict";g8.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Cu={};i0(Cu,{counter:()=>fK});function fK(e,r="",t,n){let a=r+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x"+Cy+"y"+Cy+a):new RegExp(o+e+Cy+a)}var Cy,Eu=a0(()=>{"use strict";Cy="([2-9]|[1-9][0-9]+)?"});var b8=xe(ma=>{"use strict";var Ey=it(),y8=Dt().extendFlat,cK=qn(),vK=cs(),Ly=Xr(),hK=xh().DESELECTDIM,Lu=Vv(),m8=(Eu(),Kn(Cu)).counter,dK=(mu(),Kn(yu)).modHalf,yi=sa().isArrayOrTypedArray,rl=sa().isTypedArraySpec,tl=sa().decodeTypedArraySpec;ma.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(yi(e)?e:rl(e)?tl(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;n<t.length;n++){var a=String(t[n]);if(a.charAt(0)==="/"&&a.charAt(a.length-1)==="/"){var o=new RegExp(a.slice(1,-1));if(o.test(e))return!0}else if(e===t[n])return!0}return!1}},boolean:{coerceFunction:function(e,r,t,n){let a=o=>o===!0||o===!1;a(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,n){rl(e)&&(e=tl(e)),!Ey(e)||n.min!==void 0&&e<n.min||n.max!==void 0&&e>n.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}rl(e)&&(e=tl(e)),e%1||!Ey(e)||n.min!==void 0&&e<n.min||n.max!==void 0&&e>n.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){rl(e)&&(e=tl(e)),Ly.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(n=>Ly.isValid(n))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(vK.get(e,t))}},angle:{coerceFunction:function(e,r,t){rl(e)&&(e=tl(e)),e==="auto"?r.set("auto"):Ey(e)?r.set(dK(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||m8(t);let o=i=>typeof i=="string"&&a.test(i);o(e)||n.arrayOk&&yi(e)&&e.length>0&&e.every(o)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!m8(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),o=0;o<a.length;){var i=a[o];n.flags.indexOf(i)===-1||a.indexOf(i)<o?a.splice(o,1):o++}a.length?r.set(a.join("+")):r.set(t)}},any:{coerceFunction:function(e,r,t){e===void 0?r.set(t):r.set(rl(e)?tl(e):e)}},info_array:{coerceFunction:function(e,r,t,n){function a(k,S,b){var M,h={set:function(_){M=_}};return b===void 0&&(b=S.dflt),ma.valObjectMeta[S.valType].coerceFunction(k,h,b,S),M}if(rl(e)&&(e=tl(e)),!yi(e)){r.set(t);return}var o=n.dimensions===2||n.dimensions==="1-2"&&Array.isArray(e)&&yi(e[0]),i=n.items,l=[],u=Array.isArray(i),s=u&&o&&yi(i[0]),f=o&&u&&!s,c=u&&!f?i.length:e.length,d,x,g,w,T,m;if(t=Array.isArray(t)?t:[],o)for(d=0;d<c;d++)for(l[d]=[],g=yi(e[d])?e[d]:[],f?T=i.length:u?T=i[d].length:T=g.length,x=0;x<T;x++)f?w=i[x]:u?w=i[d][x]:w=i,m=a(g[x],w,(t[d]||[])[x]),m!==void 0&&(l[d][x]=m);else for(d=0;d<c;d++)m=a(e[d],u?i[d]:i,t[d]),m!==void 0&&(l[d]=m);r.set(l)},validateFunction:function(e,r){if(!yi(e))return!1;var t=r.items,n=Array.isArray(t),a=r.dimensions===2;if(!r.freeLength&&e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(a){if(!yi(e[o])||!r.freeLength&&e[o].length!==t[o].length)return!1;for(var i=0;i<e[o].length;i++)if(!_h(e[o][i],n?t[o][i]:t))return!1}else if(!_h(e[o],n?t[o]:t))return!1;return!0}}};ma.coerce=function(e,r,t,n,a){var o=Lu(t,n).get(),i=Lu(e,n),l=Lu(r,n),u=i.get(),s=r._template;if(u===void 0&&s&&(u=Lu(s,n).get(),s=0),a===void 0&&(a=o.dflt),o.arrayOk){if(yi(u))return l.set(u),u;if(rl(u))return u=tl(u),l.set(u),u}var f=ma.valObjectMeta[o.valType].coerceFunction;f(u,l,a,o);var c=l.get();return s&&c===a&&!_h(u,o)&&(u=Lu(s,n).get(),f(u,l,a,o),c=l.get()),c};ma.coerce2=function(e,r,t,n,a){var o=Lu(e,n),i=ma.coerce(e,r,t,n,a),l=o.get();return l!=null?i:!1};ma.coerceFont=function(e,r,t,n){n||(n={}),t=y8({},t),t=y8(t,n.overrideDflt||{});var a={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(n.noFontVariant||(a.variant=e(r+".variant",t.variant)),n.noFontLineposition||(a.lineposition=e(r+".lineposition",t.lineposition)),n.noFontTextcase||(a.textcase=e(r+".textcase",t.textcase)),!n.noFontShadow){var o=t.shadow;o==="none"&&n.autoShadowDflt&&(o="auto"),a.shadow=e(r+".shadow",o)}return a};ma.coercePattern=function(e,r,t,n){var a=e(r+".shape"),o;if(a||(o=e(r+".path")),a||o){a&&e(r+".solidity"),e(r+".size");var i=e(r+".fillmode"),l=i==="overlay";if(!n){var u=e(r+".bgcolor",l?t:void 0);e(r+".fgcolor",l?Ly.contrast(u):t)}e(r+".fgopacity",l?.5:1)}};ma.coerceHoverinfo=function(e,r,t){var n=r._module.attributes,a=n.hoverinfo?n:cK,o=a.hoverinfo,i;if(t._dataLength===1){var l=o.dflt==="all"?o.flags.slice():o.dflt.split("+");l.splice(l.indexOf("name"),1),i=l.join("+")}return ma.coerce(e,r,a,"hoverinfo",i)};ma.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var n,a;!yi(t)&&!e.selected&&!e.unselected&&(n=t,a=hK*t),r("selected.marker.opacity",n),r("unselected.marker.opacity",a)}}};function _h(e,r){var t=ma.valObjectMeta[r.valType];if(r.arrayOk&&yi(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var n={},a=n,o={set:function(i){a=i}};return t.coerceFunction(e,o,n,r),a!==n}ma.validate=_h});var wh=xe((tme,x8)=>{"use strict";x8.exports=function(){}});var Ry=xe((nme,_8)=>{"use strict";_8.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a<r.length;a++)if(r[a]instanceof RegExp&&r[a].toString()===n)return r;r.push(t)}else(t||t===0)&&r.indexOf(t)===-1&&r.push(t);return r}});var M8=xe((ame,w8)=>{w8.exports=pK;function pK(){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 A8=xe((ime,T8)=>{T8.exports=gK;function gK(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 S8=xe((ome,k8)=>{k8.exports=yK;function yK(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 Dy=xe((lme,C8)=>{C8.exports=mK;function mK(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 L8=xe((sme,E8)=>{E8.exports=bK;function bK(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],o=r[6],i=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=o,e[11]=r[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var D8=xe((ume,R8)=>{R8.exports=xK;function xK(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],d=r[10],x=r[11],g=r[12],w=r[13],T=r[14],m=r[15],k=t*l-n*i,S=t*u-a*i,b=t*s-o*i,M=n*u-a*l,h=n*s-o*l,_=a*s-o*u,y=f*w-c*g,v=f*T-d*g,A=f*m-x*g,p=c*T-d*w,R=c*m-x*w,E=d*m-x*T,D=k*E-S*R+b*p+M*A-h*v+_*y;return D?(D=1/D,e[0]=(l*E-u*R+s*p)*D,e[1]=(a*R-n*E-o*p)*D,e[2]=(w*_-T*h+m*M)*D,e[3]=(d*h-c*_-x*M)*D,e[4]=(u*A-i*E-s*v)*D,e[5]=(t*E-a*A+o*v)*D,e[6]=(T*b-g*_-m*S)*D,e[7]=(f*_-d*b+x*S)*D,e[8]=(i*R-l*A+s*y)*D,e[9]=(n*A-t*R-o*y)*D,e[10]=(g*h-w*b+m*k)*D,e[11]=(c*b-f*h-x*k)*D,e[12]=(l*v-i*p-u*y)*D,e[13]=(t*p-n*v+a*y)*D,e[14]=(w*S-g*M-T*k)*D,e[15]=(f*M-c*S+d*k)*D,e):null}});var I8=xe((fme,P8)=>{P8.exports=_K;function _K(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],d=r[10],x=r[11],g=r[12],w=r[13],T=r[14],m=r[15];return e[0]=l*(d*m-x*T)-c*(u*m-s*T)+w*(u*x-s*d),e[1]=-(n*(d*m-x*T)-c*(a*m-o*T)+w*(a*x-o*d)),e[2]=n*(u*m-s*T)-l*(a*m-o*T)+w*(a*s-o*u),e[3]=-(n*(u*x-s*d)-l*(a*x-o*d)+c*(a*s-o*u)),e[4]=-(i*(d*m-x*T)-f*(u*m-s*T)+g*(u*x-s*d)),e[5]=t*(d*m-x*T)-f*(a*m-o*T)+g*(a*x-o*d),e[6]=-(t*(u*m-s*T)-i*(a*m-o*T)+g*(a*s-o*u)),e[7]=t*(u*x-s*d)-i*(a*x-o*d)+f*(a*s-o*u),e[8]=i*(c*m-x*w)-f*(l*m-s*w)+g*(l*x-s*c),e[9]=-(t*(c*m-x*w)-f*(n*m-o*w)+g*(n*x-o*c)),e[10]=t*(l*m-s*w)-i*(n*m-o*w)+g*(n*s-o*l),e[11]=-(t*(l*x-s*c)-i*(n*x-o*c)+f*(n*s-o*l)),e[12]=-(i*(c*T-d*w)-f*(l*T-u*w)+g*(l*d-u*c)),e[13]=t*(c*T-d*w)-f*(n*T-a*w)+g*(n*d-a*c),e[14]=-(t*(l*T-u*w)-i*(n*T-a*w)+g*(n*u-a*l)),e[15]=t*(l*d-u*c)-i*(n*d-a*c)+f*(n*u-a*l),e}});var F8=xe((cme,z8)=>{z8.exports=wK;function wK(e){var r=e[0],t=e[1],n=e[2],a=e[3],o=e[4],i=e[5],l=e[6],u=e[7],s=e[8],f=e[9],c=e[10],d=e[11],x=e[12],g=e[13],w=e[14],T=e[15],m=r*i-t*o,k=r*l-n*o,S=r*u-a*o,b=t*l-n*i,M=t*u-a*i,h=n*u-a*l,_=s*g-f*x,y=s*w-c*x,v=s*T-d*x,A=f*w-c*g,p=f*T-d*g,R=c*T-d*w;return m*R-k*p+S*A+b*v-M*y+h*_}});var q8=xe((vme,N8)=>{N8.exports=MK;function MK(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=r[4],u=r[5],s=r[6],f=r[7],c=r[8],d=r[9],x=r[10],g=r[11],w=r[12],T=r[13],m=r[14],k=r[15],S=t[0],b=t[1],M=t[2],h=t[3];return e[0]=S*n+b*l+M*c+h*w,e[1]=S*a+b*u+M*d+h*T,e[2]=S*o+b*s+M*x+h*m,e[3]=S*i+b*f+M*g+h*k,S=t[4],b=t[5],M=t[6],h=t[7],e[4]=S*n+b*l+M*c+h*w,e[5]=S*a+b*u+M*d+h*T,e[6]=S*o+b*s+M*x+h*m,e[7]=S*i+b*f+M*g+h*k,S=t[8],b=t[9],M=t[10],h=t[11],e[8]=S*n+b*l+M*c+h*w,e[9]=S*a+b*u+M*d+h*T,e[10]=S*o+b*s+M*x+h*m,e[11]=S*i+b*f+M*g+h*k,S=t[12],b=t[13],M=t[14],h=t[15],e[12]=S*n+b*l+M*c+h*w,e[13]=S*a+b*u+M*d+h*T,e[14]=S*o+b*s+M*x+h*m,e[15]=S*i+b*f+M*g+h*k,e}});var B8=xe((hme,O8)=>{O8.exports=TK;function TK(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,c,d,x,g,w,T,m;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*o+r[12],e[13]=r[1]*n+r[5]*a+r[9]*o+r[13],e[14]=r[2]*n+r[6]*a+r[10]*o+r[14],e[15]=r[3]*n+r[7]*a+r[11]*o+r[15]):(i=r[0],l=r[1],u=r[2],s=r[3],f=r[4],c=r[5],d=r[6],x=r[7],g=r[8],w=r[9],T=r[10],m=r[11],e[0]=i,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=c,e[6]=d,e[7]=x,e[8]=g,e[9]=w,e[10]=T,e[11]=m,e[12]=i*n+f*a+g*o+r[12],e[13]=l*n+c*a+w*o+r[13],e[14]=u*n+d*a+T*o+r[14],e[15]=s*n+x*a+m*o+r[15]),e}});var H8=xe((dme,U8)=>{U8.exports=AK;function AK(e,r,t){var n=t[0],a=t[1],o=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*o,e[9]=r[9]*o,e[10]=r[10]*o,e[11]=r[11]*o,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var G8=xe((pme,V8)=>{V8.exports=kK;function kK(e,r,t,n){var a=n[0],o=n[1],i=n[2],l=Math.sqrt(a*a+o*o+i*i),u,s,f,c,d,x,g,w,T,m,k,S,b,M,h,_,y,v,A,p,R,E,D,F;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,o*=l,i*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,c=r[0],d=r[1],x=r[2],g=r[3],w=r[4],T=r[5],m=r[6],k=r[7],S=r[8],b=r[9],M=r[10],h=r[11],_=a*a*f+s,y=o*a*f+i*u,v=i*a*f-o*u,A=a*o*f-i*u,p=o*o*f+s,R=i*o*f+a*u,E=a*i*f+o*u,D=o*i*f-a*u,F=i*i*f+s,e[0]=c*_+w*y+S*v,e[1]=d*_+T*y+b*v,e[2]=x*_+m*y+M*v,e[3]=g*_+k*y+h*v,e[4]=c*A+w*p+S*R,e[5]=d*A+T*p+b*R,e[6]=x*A+m*p+M*R,e[7]=g*A+k*p+h*R,e[8]=c*E+w*D+S*F,e[9]=d*E+T*D+b*F,e[10]=x*E+m*D+M*F,e[11]=g*E+k*D+h*F,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var X8=xe((gme,Y8)=>{Y8.exports=SK;function SK(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[4],i=r[5],l=r[6],u=r[7],s=r[8],f=r[9],c=r[10],d=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]=o*a+s*n,e[5]=i*a+f*n,e[6]=l*a+c*n,e[7]=u*a+d*n,e[8]=s*a-o*n,e[9]=f*a-i*n,e[10]=c*a-l*n,e[11]=d*a-u*n,e}});var Z8=xe((yme,W8)=>{W8.exports=CK;function CK(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[8],f=r[9],c=r[10],d=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]=o*a-s*n,e[1]=i*a-f*n,e[2]=l*a-c*n,e[3]=u*a-d*n,e[8]=o*n+s*a,e[9]=i*n+f*a,e[10]=l*n+c*a,e[11]=u*n+d*a,e}});var $8=xe((mme,J8)=>{J8.exports=EK;function EK(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[4],f=r[5],c=r[6],d=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]=o*a+s*n,e[1]=i*a+f*n,e[2]=l*a+c*n,e[3]=u*a+d*n,e[4]=s*a-o*n,e[5]=f*a-i*n,e[6]=c*a-l*n,e[7]=d*a-u*n,e}});var Q8=xe((bme,K8)=>{K8.exports=LK;function LK(e,r,t){var n,a,o,i=t[0],l=t[1],u=t[2],s=Math.sqrt(i*i+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,i*=s,l*=s,u*=s,n=Math.sin(r),a=Math.cos(r),o=1-a,e[0]=i*i*o+a,e[1]=l*i*o+u*n,e[2]=u*i*o-l*n,e[3]=0,e[4]=i*l*o-u*n,e[5]=l*l*o+a,e[6]=u*l*o+i*n,e[7]=0,e[8]=i*u*o+l*n,e[9]=l*u*o-i*n,e[10]=u*u*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var e9=xe((xme,j8)=>{j8.exports=RK;function RK(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=n+n,u=a+a,s=o+o,f=n*l,c=n*u,d=n*s,x=a*u,g=a*s,w=o*s,T=i*l,m=i*u,k=i*s;return e[0]=1-(x+w),e[1]=c+k,e[2]=d-m,e[3]=0,e[4]=c-k,e[5]=1-(f+w),e[6]=g+T,e[7]=0,e[8]=d+m,e[9]=g-T,e[10]=1-(f+x),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var t9=xe((_me,r9)=>{r9.exports=DK;function DK(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 a9=xe((wme,n9)=>{n9.exports=PK;function PK(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 o9=xe((Mme,i9)=>{i9.exports=IK;function IK(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var s9=xe((Tme,l9)=>{l9.exports=zK;function zK(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,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]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var f9=xe((Ame,u9)=>{u9.exports=FK;function FK(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,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 v9=xe((kme,c9)=>{c9.exports=NK;function NK(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=t+t,l=n+n,u=a+a,s=t*i,f=n*i,c=n*l,d=a*i,x=a*l,g=a*u,w=o*i,T=o*l,m=o*u;return e[0]=1-c-g,e[1]=f+m,e[2]=d-T,e[3]=0,e[4]=f-m,e[5]=1-s-g,e[6]=x+w,e[7]=0,e[8]=d+T,e[9]=x-w,e[10]=1-s-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var d9=xe((Sme,h9)=>{h9.exports=qK;function qK(e,r,t,n,a,o,i){var l=1/(t-r),u=1/(a-n),s=1/(o-i);return e[0]=o*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o*2*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*u,e[10]=(i+o)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*o*2*s,e[15]=0,e}});var g9=xe((Cme,p9)=>{p9.exports=OK;function OK(e,r,t,n,a){var o=1/Math.tan(r/2),i=1/(n-a);return e[0]=o/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*i,e[15]=0,e}});var m9=xe((Eme,y9)=>{y9.exports=BK;function BK(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),o=Math.tan(r.downDegrees*Math.PI/180),i=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),u=2/(i+l),s=2/(a+o);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((i-l)*u*.5),e[9]=(a-o)*s*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var x9=xe((Lme,b9)=>{b9.exports=UK;function UK(e,r,t,n,a,o,i){var l=1/(r-t),u=1/(n-a),s=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*u,e[14]=(i+o)*s,e[15]=1,e}});var w9=xe((Rme,_9)=>{var HK=Dy();_9.exports=VK;function VK(e,r,t,n){var a,o,i,l,u,s,f,c,d,x,g=r[0],w=r[1],T=r[2],m=n[0],k=n[1],S=n[2],b=t[0],M=t[1],h=t[2];return Math.abs(g-b)<1e-6&&Math.abs(w-M)<1e-6&&Math.abs(T-h)<1e-6?HK(e):(f=g-b,c=w-M,d=T-h,x=1/Math.sqrt(f*f+c*c+d*d),f*=x,c*=x,d*=x,a=k*d-S*c,o=S*f-m*d,i=m*c-k*f,x=Math.sqrt(a*a+o*o+i*i),x?(x=1/x,a*=x,o*=x,i*=x):(a=0,o=0,i=0),l=c*i-d*o,u=d*a-f*i,s=f*o-c*a,x=Math.sqrt(l*l+u*u+s*s),x?(x=1/x,l*=x,u*=x,s*=x):(l=0,u=0,s=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=c,e[7]=0,e[8]=i,e[9]=s,e[10]=d,e[11]=0,e[12]=-(a*g+o*w+i*T),e[13]=-(l*g+u*w+s*T),e[14]=-(f*g+c*w+d*T),e[15]=1,e)}});var T9=xe((Dme,M9)=>{M9.exports=GK;function GK(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 Py=xe((Pme,A9)=>{A9.exports={create:M8(),clone:A8(),copy:S8(),identity:Dy(),transpose:L8(),invert:D8(),adjoint:I8(),determinant:F8(),multiply:q8(),translate:B8(),scale:H8(),rotate:G8(),rotateX:X8(),rotateY:Z8(),rotateZ:$8(),fromRotation:Q8(),fromRotationTranslation:e9(),fromScaling:t9(),fromTranslation:a9(),fromXRotation:o9(),fromYRotation:s9(),fromZRotation:f9(),fromQuat:v9(),frustum:d9(),perspective:g9(),perspectiveFromFieldOfView:m9(),ortho:x9(),lookAt:w9(),str:T9()}});var Mh=xe($t=>{"use strict";var YK=Py();$t.init2dArray=function(e,r){for(var t=new Array(e),n=0;n<e;n++)t[n]=new Array(r);return t};$t.transposeRagged=function(e){var r=0,t=e.length,n,a;for(n=0;n<t;n++)r=Math.max(r,e[n].length);var o=new Array(r);for(n=0;n<r;n++)for(o[n]=new Array(t),a=0;a<t;a++)o[n][a]=e[a][n];return o};$t.dot=function(e,r){if(!(e.length&&r.length)||e.length!==r.length)return null;var t=e.length,n,a;if(e[0].length)for(n=new Array(t),a=0;a<t;a++)n[a]=$t.dot(e[a],r);else if(r[0].length){var o=$t.transposeRagged(r);for(n=new Array(o.length),a=0;a<o.length;a++)n[a]=$t.dot(e,o[a])}else for(n=0,a=0;a<t;a++)n+=e[a]*r[a];return n};$t.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};$t.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]]};$t.rotationXYMatrix=function(e,r,t){return $t.dot($t.dot($t.translationMatrix(r,t),$t.rotationMatrix(e)),$t.translationMatrix(-r,-t))};$t.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return $t.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};$t.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 $t.dot(e,[t[0],t[1],1]).slice(0,2)}};$t.apply2DTransform2=function(e){var r=$t.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};$t.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]};$t.inverseTransformMatrix=function(e){var r=[];return YK.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 E0=xe((zme,R9)=>{"use strict";var XK=nt(),k9=el(),WK=Mh(),ZK=Py();function JK(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 $K(e){var r=XK.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function S9(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function KK(e,r){C9("global",e,r)}function C9(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o?o.insertRule?o.insertRule(r+"{"+t+"}",0):o.addRule?o.addRule(r,t,0):k9.warn("addStyleRule failed"):k9.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function QK(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&S9(t)}function jK(e,r,t,n,a,o){var i=n.split(":"),l=a.split(":"),u="data-btn-style-event-added";o||(o=document),o.querySelectorAll(e).forEach(function(s){s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[i[0]]=i[1])}),s.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[i[0]]=i[1]:f.style[l[0]]=l[1])}),s.setAttribute(u,!0))})}function eQ(e){var r=L9(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=E9(n);if(a){var o=WK.convertCssMatrix(a);t=ZK.multiply(t,t,o)}}),t}function E9(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(n){return+n})}function L9(e){for(var r=[];rQ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function rQ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function tQ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}R9.exports={getGraphDiv:JK,isPlotDiv:$K,removeElement:S9,addStyleRule:KK,addRelatedStyleRule:C9,deleteRelatedStyleRule:QK,setStyleOnHover:jK,getFullTransformMatrix:eQ,getElementTransformMatrix:E9,getElementAndAncestors:L9,equalDomRects:tQ}});var L0=xe((Fme,D9)=>{"use strict";D9.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 ea=xe((Nme,O9)=>{"use strict";var I9=Dt().extendFlat,nQ=es(),z9={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},F9={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},aQ=z9.flags.slice().concat(["fullReplot"]),iQ=F9.flags.slice().concat("layoutReplot");O9.exports={traces:z9,layout:F9,traceFlags:function(){return P9(aQ)},layoutFlags:function(){return P9(iQ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a<n.length;a++)e[n[a]]=!0},overrideAll:N9};function P9(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function N9(e,r,t){var n=I9({},e);for(var a in n){var o=n[a];nQ(o)&&(n[a]=q9(o,r,t,a))}return t==="from-root"&&(n.editType=r),n}function q9(e,r,t,n){if(e.valType){var a=I9({},e);if(a.editType=r,Array.isArray(e.items)){a.items=new Array(e.items.length);for(var o=0;o<e.items.length;o++)a.items[o]=q9(e.items[o],r,"from-root")}return a}else return N9(e,r,n.charAt(0)==="_"?"nested":"from-root")}});var nl=xe(Iy=>{"use strict";Iy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Iy.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 zy=xe((Ome,B9)=>{"use strict";B9.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 mi=xe(Ru=>{"use strict";var{DATE_FORMAT_LINK:oQ,FORMAT_LINK:lQ}=zy(),sQ=["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 uQ({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}".`,lQ,"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}".`,oQ,"for details on the date formatting syntax.",sQ].join(" ")}Ru.templateFormatStringDescription=uQ;Ru.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>xt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Ru.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>xt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Ru.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Ru.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var kh=xe((Hme,X9)=>{"use strict";function al(e,r){return r?r.d2l(e):e}function U9(e,r){return r?r.l2d(e):e}function fQ(e){return e.x0}function cQ(e){return e.x1}function vQ(e){return e.y0}function hQ(e){return e.y1}function H9(e){return e.x0shift||0}function V9(e){return e.x1shift||0}function G9(e){return e.y0shift||0}function Y9(e){return e.y1shift||0}function Th(e,r){return al(e.x1,r)+V9(e)-al(e.x0,r)-H9(e)}function Ah(e,r,t){return al(e.y1,t)+Y9(e)-al(e.y0,t)-G9(e)}function dQ(e,r){return Math.abs(Th(e,r))}function pQ(e,r,t){return Math.abs(Ah(e,r,t))}function gQ(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Th(e,r),2)+Math.pow(Ah(e,r,t),2))}function yQ(e,r){return U9((al(e.x1,r)+V9(e)+al(e.x0,r)+H9(e))/2,r)}function mQ(e,r,t){return U9((al(e.y1,t)+Y9(e)+al(e.y0,t)+G9(e))/2,t)}function bQ(e,r,t){return e.type!=="line"?void 0:Ah(e,r,t)/Th(e,r)}var xQ=["x0","x1","y0","y1","dy","height","ycenter"],_Q=["x0","x1","y0","y1","dx","width","xcenter"];X9.exports={x0:fQ,x1:cQ,y0:vQ,y1:hQ,slope:bQ,dx:Th,dy:Ah,width:dQ,height:pQ,length:gQ,xcenter:yQ,ycenter:mQ,simpleXVariables:xQ,simpleYVariables:_Q}});var J9=xe((Vme,Z9)=>{"use strict";var wQ=ea().overrideAll,vs=qn(),W9=Nn(),MQ=nl().dash,il=Dt().extendFlat,{shapeTexttemplateAttrs:TQ,templatefallbackAttrs:AQ}=mi(),kQ=kh();Z9.exports=wQ({newshape:{visible:il({},vs.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:il({},vs.legend,{}),legendgroup:il({},vs.legendgroup,{}),legendgrouptitle:{text:il({},vs.legendgrouptitle.text,{}),font:W9({})},legendrank:il({},vs.legendrank,{}),legendwidth:il({},vs.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:il({},MQ,{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:il({},vs.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:TQ({newshape:!0},{keys:Object.keys(kQ)}),texttemplatefallback:AQ({editType:"arraydraw"}),font:W9({}),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 K9=xe((Gme,$9)=>{"use strict";var SQ=nl().dash,CQ=Dt().extendFlat;$9.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:CQ({},SQ,{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 Sh=xe((Yme,Q9)=>{"use strict";Q9.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 Du=xe((Xme,tM)=>{"use strict";var Fy=Nn(),EQ=L0(),Ch=Zi(),j9=J9(),eM=K9(),LQ=Sh(),rM=Dt().extendFlat,Eh=Fy({editType:"calc"});Eh.family.dflt='"Open Sans", verdana, arial, sans-serif';Eh.size.dflt=12;Eh.color.dflt=Ch.defaultLine;tM.exports={font:Eh,title:{text:{valType:"string",editType:"layoutstyle"},font:Fy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Fy({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:rM(LQ({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:Ch.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Ch.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:Ch.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:j9.newshape,activeshape:j9.activeshape,newselection:eM.newselection,activeselection:eM.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:rM({},EQ.transition,{editType:"none"})}});var nM=xe(()=>{(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 Cr=xe($r=>{"use strict";var Ny=el(),aM=wh(),iM=Ry(),Jme=E0().addStyleRule,oM=Dt(),RQ=qn(),DQ=Du(),PQ=oM.extendFlat,qy=oM.extendDeepAll;$r.modules={};$r.allCategories={};$r.allTypes=[];$r.subplotsRegistry={};$r.componentsRegistry={};$r.layoutArrayContainers=[];$r.layoutArrayRegexes=[];$r.traceLayoutAttributes={};$r.localeRegistry={};$r.apiMethodRegistry={};$r.collectableSubplotTypes=null;$r.register=function(r){if($r.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 n=r[t];if(!n)throw new Error("Invalid module was attempted to be registered!");switch(n.moduleType){case"trace":IQ(n);break;case"component":FQ(n);break;case"locale":NQ(n);break;case"apiMethod":var a=n.name;$r.apiMethodRegistry[a]=n.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};$r.getModule=function(e){var r=$r.modules[fM(e)];return r?r._module:!1};$r.traceIs=function(e,r){if(e=fM(e),e==="various")return!1;var t=$r.modules[e];return t||(e&&Ny.log("Unrecognized trace type "+e+"."),t=$r.modules[RQ.type.dflt]),!!t.categories[r]};$r.getComponentMethod=function(e,r){var t=$r.componentsRegistry[e];return t&&t[r]||aM};$r.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return $r.apiMethodRegistry[e].apply(null,r)};function IQ(e){var r=e.name,t=e.categories,n=e.meta;if($r.modules[r]){Ny.log("Type "+r+" already registered");return}$r.subplotsRegistry[e.basePlotModule.name]||zQ(e.basePlotModule);for(var a={},o=0;o<t.length;o++)a[t[o]]=!0,$r.allCategories[t[o]]=!0;$r.modules[r]={_module:e,categories:a},n&&Object.keys(n).length&&($r.modules[r].meta=n),$r.allTypes.push(r);for(var i in $r.componentsRegistry)sM(i,r);e.layoutAttributes&&PQ($r.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,u=l.name;u==="map"&&nM(),(u==="geo"||u==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function zQ(e){var r=e.name;if($r.subplotsRegistry[r]){Ny.log("Plot type "+r+" already registered.");return}lM(e),$r.subplotsRegistry[r]=e;for(var t in $r.componentsRegistry)uM(t,e.name)}function FQ(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;$r.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&iM($r.layoutArrayContainers,r),lM(e));for(var t in $r.modules)sM(r,t);for(var n in $r.subplotsRegistry)uM(r,n);e.schema&&e.schema.layout&&qy(DQ,e.schema.layout)}function NQ(e){var r=e.name,t=r.split("-")[0],n=e.dictionary,a=e.format,o=n&&Object.keys(n).length,i=a&&Object.keys(a).length,l=$r.localeRegistry,u=l[r];if(u||(l[r]=u={}),t!==r){var s=l[t];s||(l[t]=s={}),o&&s.dictionary===u.dictionary&&(s.dictionary=n),i&&s.format===u.format&&(s.format=a)}o&&(u.dictionary=n),i&&(u.format=a)}function lM(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)iM($r.layoutArrayRegexes,r[t])}}function sM(e,r){var t=$r.componentsRegistry[e].schema;if(!(!t||!t.traces)){var n=t.traces[r];n&&qy($r.modules[r]._module.attributes,n)}}function uM(e,r){var t=$r.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var n=$r.subplotsRegistry[r],a=n.layoutAttributes,o=n.attr==="subplot"?n.name:n.attr;Array.isArray(o)&&(o=o[0]);var i=t.subplots[o];a&&i&&qy(a,i)}}function fM(e){return typeof e=="object"&&(e=e.type),e}});var bM=xe(Kt=>{"use strict";var qQ=pu().timeFormat,yM=it(),Oy=el(),ll=(mu(),Kn(yu)).mod,zu=pn(),Xa=zu.BADNUM,ba=zu.ONEDAY,R0=zu.ONEHOUR,ol=zu.ONEMIN,Iu=zu.ONESEC,D0=zu.EPOCHJD,ko=Cr(),cM=pu().utcFormat,OQ=/^\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,BQ=/^\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,vM=new Date().getFullYear()-70;function So(e){return e&&ko.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Kt.dateTick0=function(e,r){var t=UQ(e,!!r);if(r<2)return t;var n=Kt.dateTime2ms(t,e);return n+=ba*(r-1),Kt.ms2DateTime(n,0,e)};function UQ(e,r){return So(e)?r?ko.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:ko.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Kt.dfltRange=function(e){return So(e)?ko.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Kt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Rh,Dh;Kt.dateTime2ms=function(e,r){if(Kt.isJSDate(e)){var t=e.getTimezoneOffset()*ol,n=(e.getUTCMinutes()-e.getMinutes())*ol+(e.getUTCSeconds()-e.getSeconds())*Iu+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*ol;t=t-a/2+ll(n-t+a/2,a)}return e=Number(e)-t,e>=Rh&&e<=Dh?e:Xa}if(typeof e!="string"&&typeof e!="number")return Xa;e=String(e);var o=So(r),i=e.charAt(0);o&&(i==="G"||i==="g")&&(e=e.slice(1),r="");var l=o&&r.slice(0,7)==="chinese",u=e.match(l?BQ:OQ);if(!u)return Xa;var s=u[1],f=u[3]||"1",c=Number(u[5]||1),d=Number(u[7]||0),x=Number(u[9]||0),g=Number(u[11]||0);if(o){if(s.length===2)return Xa;s=Number(s);var w;try{var T=ko.getComponentMethod("calendars","getCal")(r);if(l){var m=f.charAt(f.length-1)==="i";f=parseInt(f,10),w=T.newDate(s,T.toMonthIndex(s,f,m),c)}else w=T.newDate(s,Number(f),c)}catch(S){return Xa}return w?(w.toJD()-D0)*ba+d*R0+x*ol+g*Iu:Xa}s.length===2?s=(Number(s)+2e3-vM)%100+vM:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,c,d,x));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==c?Xa:k.getTime()+g*Iu};Rh=Kt.MIN_MS=Kt.dateTime2ms("-9999");Dh=Kt.MAX_MS=Kt.dateTime2ms("9999-12-31 23:59:59.9999");Kt.isDateTime=function(e,r){return Kt.dateTime2ms(e,r)!==Xa};function Pu(e,r){return String(e+Math.pow(10,r)).slice(1)}var Lh=90*ba,hM=3*R0,dM=5*ol;Kt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Rh&&e<=Dh))return Xa;r||(r=0);var n=Math.floor(ll(e+.05,1)*10),a=Math.round(e-n/10),o,i,l,u,s,f;if(So(t)){var c=Math.floor(a/ba)+D0,d=Math.floor(ll(e,ba));try{o=ko.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(x){o=cM("G%Y-%m-%d")(new Date(a))}if(o.charAt(0)==="-")for(;o.length<11;)o="-0"+o.slice(1);else for(;o.length<10;)o="0"+o;i=r<Lh?Math.floor(d/R0):0,l=r<Lh?Math.floor(d%R0/ol):0,u=r<hM?Math.floor(d%ol/Iu):0,s=r<dM?d%Iu*10+n:0}else f=new Date(a),o=cM("%Y-%m-%d")(f),i=r<Lh?f.getUTCHours():0,l=r<Lh?f.getUTCMinutes():0,u=r<hM?f.getUTCSeconds():0,s=r<dM?f.getUTCMilliseconds()*10+n:0;return mM(o,i,l,u,s)};Kt.ms2DateTimeLocal=function(e){if(!(e>=Rh+ba&&e<=Dh-ba))return Xa;var r=Math.floor(ll(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=qQ("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return mM(n,a,o,i,l)};function mM(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+Pu(r,2)+":"+Pu(t,2),(n||a)&&(e+=":"+Pu(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+Pu(a,o)}return e}Kt.cleanDate=function(e,r,t){if(e===Xa)return r;if(Kt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(So(t))return Oy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Kt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Kt.isDateTime(e,t))return Oy.error("unrecognized date",e),r;return e};var HQ=/%\d?f/g,VQ=/%h/g,GQ={1:"1",2:"1",3:"2",4:"2"};function pM(e,r,t,n){e=e.replace(HQ,function(o){var i=Math.min(+o.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(i).slice(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(VQ,function(){return GQ[t("%q")(a)]}),So(n))try{e=ko.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var YQ=[59,59.9,59.99,59.999,59.9999];function XQ(e,r){var t=ll(e+.05,ba),n=Pu(Math.floor(t/R0),2)+":"+Pu(ll(Math.floor(t/ol),60),2);if(r!=="M"){yM(r)||(r=0);var a=Math.min(ll(e/Iu,60),YQ[r]),o=(100+a).toFixed(r).slice(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}Kt.formatDate=function(e,r,t,n,a,o){if(a=So(a)&&a,!r)if(t==="y")r=o.year;else if(t==="m")r=o.month;else if(t==="d")r=o.dayMonth+`
`+o.year;else return XQ(e,t)+`
`+pM(o.dayMonthYear,e,n,a);return pM(r,e,n,a)};var gM=3*ba;Kt.incrementMonth=function(e,r,t){t=So(t)&&t;var n=ll(e,ba);if(e=Math.round(e-n),t)try{var a=Math.round(e/ba)+D0,o=ko.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-D0)*ba+n}catch(u){Oy.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+gM);return l.setUTCMonth(l.getUTCMonth()+r)+n-gM};Kt.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=So(r)&&ko.getComponentMethod("calendars","getCal")(r),s=0;s<e.length;s++){if(l=e[s],!yM(l)){o++;continue}if(!(l%ba))if(u)try{i=u.fromJD(l/ba+D0),i.day()===1?i.month()===1?t++:n++:a++}catch(c){}else i=new Date(l),i.getUTCDate()===1?i.getUTCMonth()===0?t++:n++:a++}n+=t,a+=n;var f=e.length-o;return{exactYears:t/f,exactMonths:n/f,exactDays:a/f}}});var By=xe((Qme,xM)=>{"use strict";xM.exports=function(r){return r}});var Hy=xe(Co=>{"use strict";var WQ=it(),ZQ=el(),JQ=By(),$Q=pn().BADNUM,Uy=1e-9;Co.findBin=function(e,r,t){if(WQ(r.start))return t?Math.ceil((e-r.start)/r.size-Uy)-1:Math.floor((e-r.start)/r.size+Uy);var n=0,a=r.length,o=0,i=a>1?(r[a-1]-r[0])/(a-1):1,l,u;for(i>=0?u=t?KQ:QQ:u=t?ej:jQ,e+=i*Uy*(t?-1:1)*(i>=0?1:-1);n<a&&o++<100;)l=Math.floor((n+a)/2),u(r[l],e)?n=l+1:a=l;return o>90&&ZQ.log("Long binary search..."),n-1};function KQ(e,r){return e<r}function QQ(e,r){return e<=r}function jQ(e,r){return e>r}function ej(e,r){return e>=r}Co.sorterAsc=function(e,r){return e-r};Co.sorterDes=function(e,r){return r-e};Co.distinctVals=function(e){var r=e.slice();r.sort(Co.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===$Q;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,o=[],i,l=0;l<=t;l++){var u=r[l],s=u-i;i===void 0?(o.push(u),i=u):s>a&&(n=Math.min(n,s),o.push(u),i=u)}return{vals:o,minDiff:n}};Co.roundUp=function(e,r,t){for(var n=0,a=r.length-1,o,i=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;n<a&&i++<100;)o=s((n+a)/2),r[o]<=e?n=o+l:a=o-u;return r[n]};Co.sort=function(e,r){for(var t=0,n=0,a=1;a<e.length;a++){var o=r(e[a],e[a-1]);if(o<0?t=1:o>0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Co.findIndexOfMin=function(e,r){r=r||JQ;for(var t=1/0,n,a=0;a<e.length;a++){var o=r(e[a]);o<t&&(t=o,n=a)}return n}});var Ph={};i0(Ph,{default:()=>tj});function rj(e){return Object.keys(e).sort()}var tj,Ih=a0(()=>{"use strict";tj=rj});var _M=xe(Qt=>{"use strict";var P0=it(),nj=sa().isArrayOrTypedArray;Qt.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),P0(r)||(r=!1),nj(t[0])){for(o=new Array(n),a=0;a<n;a++)o[a]=Qt.aggNums(e,r,t[a]);t=o}for(a=0;a<n;a++)P0(r)?P0(t[a])&&(r=e(+r,+t[a])):r=t[a];return r};Qt.len=function(e){return Qt.aggNums(function(r){return r+1},0,e)};Qt.mean=function(e,r){return r||(r=Qt.len(e)),Qt.aggNums(function(t,n){return t+n},0,e)/r};Qt.geometricMean=function(e,r){return r||(r=Qt.len(e)),Math.pow(Qt.aggNums(function(t,n){return t*n},1,e),1/r)};Qt.midRange=function(e){if(!(e===void 0||e.length===0))return(Qt.aggNums(Math.max,null,e)+Qt.aggNums(Math.min,null,e))/2};Qt.variance=function(e,r,t){return r||(r=Qt.len(e)),P0(t)||(t=Qt.mean(e,r)),Qt.aggNums(function(n,a){return n+Math.pow(a-t,2)},0,e)/r};Qt.stdev=function(e,r,t){return Math.sqrt(Qt.variance(e,r,t))};Qt.median=function(e){var r=e.slice().sort();return Qt.interp(r,.5)};Qt.interp=function(e,r){if(!P0(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 kM=xe((r3e,AM)=>{"use strict";var wM=(mu(),Kn(yu)),Vy=wM.mod,aj=wM.modHalf,I0=Math.PI,sl=2*I0;function ij(e){return e/180*I0}function oj(e){return e/I0*180}function Gy(e){return Math.abs(e[1]-e[0])>sl-1e-14}function MM(e,r){return aj(r-e,sl)}function lj(e,r){return Math.abs(MM(e,r))}function TM(e,r){if(Gy(r))return!0;var t,n;r[0]<r[1]?(t=r[0],n=r[1]):(t=r[1],n=r[0]),t=Vy(t,sl),n=Vy(n,sl),t>n&&(n+=sl);var a=Vy(e,sl),o=a+sl;return a>=t&&a<=n||o>=t&&o<=n}function sj(e,r,t,n){if(!TM(r,n))return!1;var a,o;return t[0]<t[1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]),e>=a&&e<=o}function Yy(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=Gy([t,n]),u,s,f,c,d;l?(u=0,s=I0,f=sl):t<n?(u=t,f=n):(u=n,f=t),e<r?(c=e,d=r):(c=r,d=e);function x(m,k){return[m*Math.cos(k)+a,o-m*Math.sin(k)]}var g=Math.abs(f-u)<=I0?0:1;function w(m,k,S){return"A"+[m,m]+" "+[0,g,S]+" "+x(m,k)}var T;return l?c===null?T="M"+x(d,u)+w(d,s,0)+w(d,f,0)+"Z":T="M"+x(c,u)+w(c,s,0)+w(c,f,0)+"ZM"+x(d,u)+w(d,s,1)+w(d,f,1)+"Z":c===null?(T="M"+x(d,u)+w(d,f,0),i&&(T+="L0,0Z")):T="M"+x(c,u)+"L"+x(d,u)+w(d,f,0)+"L"+x(c,f)+w(c,u,1)+"Z",T}function uj(e,r,t,n,a){return Yy(null,e,r,t,n,a,0)}function fj(e,r,t,n,a){return Yy(null,e,r,t,n,a,1)}function cj(e,r,t,n,a,o){return Yy(e,r,t,n,a,o,1)}AM.exports={deg2rad:ij,rad2deg:oj,angleDelta:MM,angleDist:lj,isFullCircle:Gy,isAngleInsideSector:TM,isPtInsideSector:sj,pathArc:uj,pathSector:fj,pathAnnulus:cj}});var SM=xe(hs=>{"use strict";hs.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};hs.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};hs.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};hs.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};hs.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};hs.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var LM=xe(ds=>{"use strict";var Xy=(mu(),Kn(yu)).mod;ds.segmentsIntersect=EM;function EM(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,c=n-r,d=o-r,x=l-o,g=u*x-f*c;if(g===0)return null;var w=(s*x-f*d)/g,T=(s*c-u*d)/g;return T<0||T>1||w<0||w>1?null:{x:e+u*w,y:r+c*w}}ds.segmentDistance=function(r,t,n,a,o,i,l,u){if(EM(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,c=l-o,d=u-i,x=s*s+f*f,g=c*c+d*d,w=Math.min(zh(s,f,x,o-r,i-t),zh(s,f,x,l-r,u-t),zh(c,d,g,r-o,t-i),zh(c,d,g,n-o,a-i));return Math.sqrt(w)};function zh(e,r,t,n,a){var o=n*e+a*r;if(o<0)return n*n+a*a;if(o>t){var i=n-e,l=a-r;return i*i+l*l}else{var u=n*r-a*e;return u*u/t}}var Fh,Wy,CM;ds.getTextLocation=function(r,t,n,a){if((r!==Wy||a!==CM)&&(Fh={},Wy=r,CM=a),Fh[n])return Fh[n];var o=r.getPointAtLength(Xy(n-a/2,t)),i=r.getPointAtLength(Xy(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(Xy(n,t)),s=(u.x*4+o.x+i.x)/6,f=(u.y*4+o.y+i.y)/6,c={x:s,y:f,theta:l};return Fh[n]=c,c};ds.clearLocationCache=function(){Wy=null};ds.getVisibleSegment=function(r,t,n){var a=t.left,o=t.right,i=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,c,d;function x(w){var T=r.getPointAtLength(w);w===0?c=T:w===s&&(d=T);var m=T.x<a?a-T.x:T.x>o?T.x-o:0,k=T.y<i?i-T.y:T.y>l?T.y-l:0;return Math.sqrt(m*m+k*k)}for(var g=x(u);g;){if(u+=g+n,u>f)return;g=x(u)}for(g=x(f);g;){if(f-=g+n,u>f)return;g=x(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(c.x-d.x)<.1&&Math.abs(c.y-d.y)<.1}};ds.findPointOnPath=function(r,t,n,a){a=a||{};for(var o=a.pathLength||r.getTotalLength(),i=a.tolerance||.001,l=a.iterationLimit||30,u=r.getPointAtLength(0)[n]>r.getPointAtLength(o)[n]?-1:1,s=0,f=0,c=o,d,x,g;s<l;){if(d=(f+c)/2,x=r.getPointAtLength(d),g=x[n]-t,Math.abs(g)<i)return x;u*g>0?c=d:f=d,s++}return x}});var Nh=xe(z0=>{"use strict";var Eo={};z0.throttle=function(r,t,n){var a=Eo[r],o=Date.now();if(!a){for(var i in Eo)Eo[i].ts<o-6e4&&delete Eo[i];a=Eo[r]={ts:0,timer:null}}RM(a);function l(){n(),a.ts=Date.now(),a.onDone&&(a.onDone(),a.onDone=null)}if(o>a.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};z0.done=function(e){var r=Eo[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};z0.clear=function(e){if(e)RM(Eo[e]),delete Eo[e];else for(var r in Eo)z0.clear(r)};function RM(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var PM=xe((i3e,DM)=>{"use strict";DM.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var IM=xe((o3e,qh)=>{"use strict";qh.exports=Zy;qh.exports.isMobile=Zy;qh.exports.default=Zy;var vj=/(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,hj=/CrOS/,dj=/android|ipad|playbook|silk/i;function Zy(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=vj.test(r)&&!hj.test(r)||!!e.tablet&&dj.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var FM=xe((l3e,zM)=>{"use strict";var pj=it(),gj=IM();zM.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=yj(),typeof t!="string")return!0;var n=gj({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),o=1;o<a.length;o++){var i=a[o];if(i.indexOf("Safari")!==-1)for(var l=o-1;l>-1;l--){var u=a[l];if(u.slice(0,8)==="Version/"){var s=u.slice(8).split(".")[0];if(pj(s)&&(s=+s),s>=13)return!0}}}return n};function yj(){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 qM=xe((s3e,NM)=>{"use strict";var mj=nt();NM.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(i){return i[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(i){i[0][o]=mj.select(this)}),a}});var BM=xe((u3e,OM)=>{"use strict";var bj=Cr();OM.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var o=r._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var u=l[t];if(u)return u}o=bj.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var HM=xe((f3e,UM)=>{"use strict";UM.exports=function(r){for(var t={},n=[],a=0,o=0;o<r.length;o++){var i=r[o];t[i]!==1&&(t[i]=1,n[a++]=i)}return n}});var GM=xe((c3e,VM)=>{"use strict";VM.exports=function(r){for(var t=wj(r)?_j:xj,n=[],a=0;a<r.length;a++){var o=r[a];t(o)&&n.push(o)}return n};function xj(e){return e.visible===!0}function _j(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function wj(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var XM=xe((v3e,YM)=>{"use strict";YM.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,o=String(a).length;if(o>16){var i=String(t).length,l=String(r).length;if(o>=l+i){var u=parseFloat(a).toPrecision(12);u.indexOf("e+")===-1&&(a=+u)}}return a}});var JM={};i0(JM,{default:()=>Aj});function Tj(e){return typeof e=="string"&&(e=e.replace(Mj,"")),(0,WM.default)(e)?Number(e):ZM.BADNUM}var WM,ZM,Mj,Aj,$M=a0(()=>{"use strict";WM=Gg(it()),ZM=Gg(pn()),Mj=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Aj=Tj});var jM=xe((h3e,QM)=>{"use strict";var kj=/<[^>]*>/g,Sj=/[\p{S}\p{P}]/gu,Cj=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,Ej=/�/g,Lj=/\s+/g,Oh="-",KM=Oh.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Rj=new RegExp(KM+"{3,}","g"),Dj=new RegExp(KM+"$","g"),Pj=60;function Ij(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}QM.exports=function(r,t=Pj){var n=Ij(r!=null?r:"").replace(Ej,"").replace(kj," ").replace(Sj,a=>a===Oh?a:"").toLowerCase().trim().replace(Lj,Oh).replace(Cj,"").replace(Rj,Oh);return n.length<=t?n:Array.from(n).slice(0,t).join("").replace(Dj,"")}});var rr=xe((d3e,cT)=>{"use strict";var F0=nt(),zj=pu().utcFormat,Fj=Xg().format,iT=it(),oT=pn(),lT=oT.FP_SAFE,Nj=-lT,eT=oT.BADNUM,Ve=cT.exports={};Ve.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],n=r.slice(t.length);return!/^[~,.0$#]/.test(n)&&/[&fps]/.test(n)?t+"~"+n:r};var rT={};Ve.warnBadFormat=function(e){var r=String(e);rT[r]||(rT[r]=1,Ve.warn('encountered bad format: "'+r+'"'))};Ve.noFormat=function(e){return String(e)};Ve.numberFormat=function(e){var r;try{r=Fj(Ve.adjustFormat(e))}catch(t){return Ve.warnBadFormat(e),Ve.noFormat}return r};Ve.nestedProperty=Vv();Ve.keyedContainer=X_();Ve.relativeAttr=Z_();Ve.isPlainObject=es();Ve.toLogRange=Yv();Ve.relinkPrivateKeys=Q_();var ul=sa();Ve.isArrayBuffer=ul.isArrayBuffer;Ve.isTypedArray=ul.isTypedArray;Ve.isArrayOrTypedArray=ul.isArrayOrTypedArray;Ve.isArray1D=ul.isArray1D;Ve.ensureArray=ul.ensureArray;Ve.concat=ul.concat;Ve.maxRowLength=ul.maxRowLength;Ve.minRowLength=ul.minRowLength;var sT=(mu(),Kn(yu));Ve.mod=sT.mod;Ve.modHalf=sT.modHalf;var fl=b8();Ve.valObjectMeta=fl.valObjectMeta;Ve.coerce=fl.coerce;Ve.coerce2=fl.coerce2;Ve.coerceFont=fl.coerceFont;Ve.coercePattern=fl.coercePattern;Ve.coerceHoverinfo=fl.coerceHoverinfo;Ve.coerceSelectionMarkerOpacity=fl.coerceSelectionMarkerOpacity;Ve.validate=fl.validate;var Ea=bM();Ve.dateTime2ms=Ea.dateTime2ms;Ve.isDateTime=Ea.isDateTime;Ve.ms2DateTime=Ea.ms2DateTime;Ve.ms2DateTimeLocal=Ea.ms2DateTimeLocal;Ve.cleanDate=Ea.cleanDate;Ve.isJSDate=Ea.isJSDate;Ve.formatDate=Ea.formatDate;Ve.incrementMonth=Ea.incrementMonth;Ve.dateTick0=Ea.dateTick0;Ve.dfltRange=Ea.dfltRange;Ve.findExactDates=Ea.findExactDates;Ve.MIN_MS=Ea.MIN_MS;Ve.MAX_MS=Ea.MAX_MS;var ps=Hy();Ve.findBin=ps.findBin;Ve.sorterAsc=ps.sorterAsc;Ve.sorterDes=ps.sorterDes;Ve.distinctVals=ps.distinctVals;Ve.roundUp=ps.roundUp;Ve.sort=ps.sort;Ve.findIndexOfMin=ps.findIndexOfMin;Ve.sortObjectKeys=(Ih(),Kn(Ph)).default;var Lo=_M();Ve.aggNums=Lo.aggNums;Ve.len=Lo.len;Ve.mean=Lo.mean;Ve.geometricMean=Lo.geometricMean;Ve.median=Lo.median;Ve.midRange=Lo.midRange;Ve.variance=Lo.variance;Ve.stdev=Lo.stdev;Ve.interp=Lo.interp;var bi=Mh();Ve.init2dArray=bi.init2dArray;Ve.transposeRagged=bi.transposeRagged;Ve.dot=bi.dot;Ve.translationMatrix=bi.translationMatrix;Ve.rotationMatrix=bi.rotationMatrix;Ve.rotationXYMatrix=bi.rotationXYMatrix;Ve.apply3DTransform=bi.apply3DTransform;Ve.apply2DTransform=bi.apply2DTransform;Ve.apply2DTransform2=bi.apply2DTransform2;Ve.convertCssMatrix=bi.convertCssMatrix;Ve.inverseTransformMatrix=bi.inverseTransformMatrix;var Ji=kM();Ve.deg2rad=Ji.deg2rad;Ve.rad2deg=Ji.rad2deg;Ve.angleDelta=Ji.angleDelta;Ve.angleDist=Ji.angleDist;Ve.isFullCircle=Ji.isFullCircle;Ve.isAngleInsideSector=Ji.isAngleInsideSector;Ve.isPtInsideSector=Ji.isPtInsideSector;Ve.pathArc=Ji.pathArc;Ve.pathSector=Ji.pathSector;Ve.pathAnnulus=Ji.pathAnnulus;var Nu=SM();Ve.isLeftAnchor=Nu.isLeftAnchor;Ve.isCenterAnchor=Nu.isCenterAnchor;Ve.isRightAnchor=Nu.isRightAnchor;Ve.isTopAnchor=Nu.isTopAnchor;Ve.isMiddleAnchor=Nu.isMiddleAnchor;Ve.isBottomAnchor=Nu.isBottomAnchor;var qu=LM();Ve.segmentsIntersect=qu.segmentsIntersect;Ve.segmentDistance=qu.segmentDistance;Ve.getTextLocation=qu.getTextLocation;Ve.clearLocationCache=qu.clearLocationCache;Ve.getVisibleSegment=qu.getVisibleSegment;Ve.findPointOnPath=qu.findPointOnPath;var Hh=Dt();Ve.extendFlat=Hh.extendFlat;Ve.extendDeep=Hh.extendDeep;Ve.extendDeepAll=Hh.extendDeepAll;Ve.extendDeepNoArrays=Hh.extendDeepNoArrays;var Jy=el();Ve.log=Jy.log;Ve.warn=Jy.warn;Ve.error=Jy.error;var qj=(Eu(),Kn(Cu));Ve.counterRegex=qj.counter;var $y=Nh();Ve.throttle=$y.throttle;Ve.throttleDone=$y.done;Ve.clearThrottle=$y.clear;var xi=E0();Ve.getGraphDiv=xi.getGraphDiv;Ve.isPlotDiv=xi.isPlotDiv;Ve.removeElement=xi.removeElement;Ve.addStyleRule=xi.addStyleRule;Ve.addRelatedStyleRule=xi.addRelatedStyleRule;Ve.deleteRelatedStyleRule=xi.deleteRelatedStyleRule;Ve.setStyleOnHover=xi.setStyleOnHover;Ve.getFullTransformMatrix=xi.getFullTransformMatrix;Ve.getElementTransformMatrix=xi.getElementTransformMatrix;Ve.getElementAndAncestors=xi.getElementAndAncestors;Ve.equalDomRects=xi.equalDomRects;Ve.clearResponsive=PM();Ve.preserveDrawingBuffer=FM();Ve.makeTraceGroups=qM();Ve._=BM();Ve.notifier=wy();Ve.filterUnique=HM();Ve.filterVisible=GM();Ve.pushUnique=Ry();Ve.increment=XM();Ve.cleanNumber=($M(),Kn(JM)).default;Ve.slugify=jM();Ve.ensureNumber=function(r){return iT(r)?(r=Number(r),r>lT||r<Nj?eT:r):eT};Ve.isIndex=function(e,r){return r!==void 0&&e>=r?!1:iT(e)&&e>=0&&e%1===0};Ve.noop=wh();Ve.identity=By();Ve.repeat=function(e,r){for(var t=new Array(r),n=0;n<r;n++)t[n]=e;return t};Ve.swapAttrs=function(e,r,t,n){t||(t="x"),n||(n="y");for(var a=0;a<r.length;a++){var o=r[a],i=Ve.nestedProperty(e,o.replace("?",t)),l=Ve.nestedProperty(e,o.replace("?",n)),u=i.get();i.set(l.get()),l.set(u)}};Ve.raiseToTop=function(r){r.parentNode.appendChild(r)};Ve.cancelTransition=function(e){return e.transition().duration(0)};Ve.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Ve.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};Ve.simpleMap=function(e,r,t,n,a){for(var o=e.length,i=new Array(o),l=0;l<o;l++)i[l]=r(e[l],t,n,a);return i};Ve.randstr=function e(r,t,n,a){if(n||(n=16),t===void 0&&(t=24),t<=0)return"0";var o=Math.log(Math.pow(2,t))/Math.log(n),i="",l,u,s;for(l=2;o===1/0;l*=2)o=Math.log(Math.pow(2,t/l))/Math.log(n)*l;var f=o-Math.floor(o);for(l=0;l<Math.floor(o);l++)s=Math.floor(Math.random()*n).toString(n),i=s+i;f&&(u=Math.pow(n,f),s=Math.floor(Math.random()*u).toString(n),i=s+i);var c=parseInt(i,n);return r&&r[i]||c!==1/0&&c>=Math.pow(2,t)?a>10?(Ve.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};Ve.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Ve.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,o=new Array(a),i=new Array(t),l,u,s,f;for(l=0;l<a;l++)o[l]=(1-Math.cos(Math.PI*(l+1)/r))/(2*r);for(l=0;l<t;l++){for(f=0,u=0;u<a;u++)s=l+u+1-r,s<-t?s-=n*Math.round(s/n):s>=n&&(s-=n*Math.floor(s/n)),s<0?s=-1-s:s>=t&&(s=n-1-s),f+=e[s]*o[u];i[l]=f}return i};Ve.syncOrAsync=function(e,r,t){var n,a;function o(){return Ve.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(o);return t&&t(r)};Ve.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Ve.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o<t.length;o++)i=e[t[o]],i!=null?n=!0:a=!1;if(n&&!a)for(o=0;o<t.length;o++)e[t[o]]=r[t[o]]}};Ve.mergeArray=function(e,r,t,n){var a=typeof n=="function";if(Ve.isArrayOrTypedArray(e))for(var o=Math.min(e.length,r.length),i=0;i<o;i++){var l=e[i];r[i][t]=a?n(l):l}};Ve.mergeArrayCastPositive=function(e,r,t){return Ve.mergeArray(e,r,t,function(n){var a=+n;return isFinite(a)&&a>0?a:0})};Ve.fillArray=function(e,r,t,n){if(n=n||Ve.identity,Ve.isArrayOrTypedArray(e))for(var a=0;a<r.length;a++)r[a][t]=n(e[a])};Ve.castOption=function(e,r,t,n){n=n||Ve.identity;var a=Ve.nestedProperty(e,t).get();return Ve.isArrayOrTypedArray(a)?Array.isArray(r)&&Ve.isArrayOrTypedArray(a[r[0]])?n(a[r[0]][r[1]]):n(a[r]):a};Ve.extractOption=function(e,r,t,n){if(t in e)return e[t];var a=Ve.nestedProperty(r,n).get();if(!Array.isArray(a))return a};Ve.tagSelected=function(e,r,t){var n=r.selectedpoints;function a(s){return s!==void 0&&s<e.length}for(var o=0;o<n.length;o++){var i=n[o];if(Ve.isIndex(i)||Ve.isArrayOrTypedArray(i)&&Ve.isIndex(i[0])&&Ve.isIndex(i[1])){var l=i,u=t?t[l]:l;a(u)&&(e[u].selected=1)}}};Ve.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var n=Ve.nestedProperty(e,t).get();return Ve.isArrayOrTypedArray(n)?n:!1}else if(Ve.isArrayOrTypedArray(t))return t;return!1};function uT(e,r,t){var n={};typeof r!="object"&&(r={});var a=t==="pieLike"?-1:3,o=Object.keys(e),i,l,u;for(i=0;i<o.length;i++)l=o[i],u=e[l],!(l.charAt(0)==="_"||typeof u=="function")&&(l==="module"?n[l]=u:Array.isArray(u)?l==="colorscale"||a===-1?n[l]=u.slice():n[l]=u.slice(0,a):Ve.isTypedArray(u)?a===-1?n[l]=u.subarray():n[l]=u.subarray(0,a):u&&typeof u=="object"?n[l]=uT(e[l],r[l],t):n[l]=u);for(o=Object.keys(r),i=0;i<o.length;i++)l=o[i],u=r[l],(typeof u!="object"||!(l in n)||typeof n[l]!="object")&&(n[l]=u);return n}Ve.minExtend=uT;Ve.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};Ve.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var Oj=/Version\/[\d\.]+.*Safari/;Ve.isSafari=function(){return Oj.test(window.navigator.userAgent)};var Bj=/iPad|iPhone|iPod/;Ve.isIOS=function(){return Bj.test(window.navigator.userAgent)};var Uj=/Macintosh.+AppleWebKit.+Gecko\)$/;Ve.isMacWKWebView=()=>Uj.test(window.navigator.userAgent);var Hj=/Firefox\/(\d+)\.\d+/;Ve.getFirefoxVersion=function(){var e=Hj.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Ve.isD3Selection=function(e){return e instanceof F0.selection};Ve.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var o=e.append(r);return t&&o.classed(t,!0),n&&o.call(n),o};Ve.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var o=e.append(r).attr("id",t);return n&&o.call(n),o};Ve.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},o=0;o<t.length;o++){var i=t[o],l=null,u=t[o].match(/(.*)\[([0-9]+)\]/);u?(i=u[1],l=u[2],n=n[i]=[],o===t.length-1?n[l]=r:n[l]={},n=n[l]):(o===t.length-1?n[i]=r:n[i]={},n=n[i])}return a};var Vj=/^([^\[\.]+)\.(.+)?/,Gj=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Bh(e){return e.slice(0,2)==="__"}Ve.expandObjectPaths=function(e){var r,t,n,a,o,i,l;if(typeof e=="object"&&!Array.isArray(e)){for(t in e)if(e.hasOwnProperty(t))if(r=t.match(Vj)){if(a=e[t],n=r[1],Bh(n))continue;delete e[t],e[n]=Ve.extendDeepNoArrays(e[n]||{},Ve.objectFromPath(t,Ve.expandObjectPaths(a))[n])}else if(r=t.match(Gj)){if(a=e[t],n=r[1],Bh(n))continue;if(o=parseInt(r[2]),delete e[t],e[n]=e[n]||[],r[3]===".")l=r[4],i=e[n][o]=e[n][o]||{},Ve.extendDeepNoArrays(i,Ve.objectFromPath(l,Ve.expandObjectPaths(a)));else{if(Bh(n))continue;e[n][o]=Ve.expandObjectPaths(a)}}else{if(Bh(t))continue;e[t]=Ve.expandObjectPaths(e[t])}}return e};Ve.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 n=/(\d+)(\d{3})/,a=r.charAt(0),o=r.charAt(1),i=e.split("."),l=i[0],u=i.length>1?a+i[1]:"";if(o&&(i.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+o+"$2");return l+u};Ve.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var fT=/^\w*$/;Ve.templateString=function(e,r){var t={};return e.replace(Ve.TEMPLATE_STRING_REGEX,function(n,a){var o;return fT.test(a)?o=r[a]:(t[a]=t[a]||Ve.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var Yj={max:10,count:0,name:"hovertemplate"};Ve.hovertemplateString=e=>Ky(qt(xt({},e),{opts:Yj}));var Xj={max:10,count:0,name:"texttemplate"};Ve.texttemplateString=e=>Ky(qt(xt({},e),{opts:Xj}));var Wj=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Zj(e){var r=e.match(Wj);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Jj={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ve.texttemplateStringForShapes=e=>Ky(qt(xt({},e),{opts:Jj}));var tT=/^[:|\|]/;function Ky({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:o}){return o.replace(Ve.TEMPLATE_STRING_REGEX,(i,l,u)=>{let s=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),d=["xother_","yother_"].includes(l),x=s||f||d||c;(f||c)&&(l=l.substring(1)),(d||c)&&(l=l.substring(0,l.length-1));let g=null,w=null;if(a.parseMultDiv){var T=Zj(l);l=T.key,g=T.op,w=T.number}let m;if(x){if(n[l]===void 0)return"";m=n[l]}else for(let M of e)if(M){if(M.hasOwnProperty(l)){m=M[l];break}if(fT.test(l)||(m=Ve.nestedProperty(M,l).get(!0)),m!==void 0)break}if(m===void 0){let{count:M,max:h,name:_}=a,y=t===!1?i:t;return M<h&&Ve.warn([`Variable '${l}' in ${_} could not be found!`,"Please verify that the template is correct.",`Using value: '${y}'.`].join(" ")),M===h&&Ve.warn(`Too many '${_}' warnings - additional warnings will be suppressed.`),a.count++,y}if(g==="*"&&(m*=w),g==="/"&&(m/=w),u){var k;if(u[0]===":"&&(k=r?r.numberFormat:Ve.numberFormat,m!==""&&(m=k(u.replace(tT,""))(m))),u[0]==="|"){k=r?r.timeFormat:zj;var S=Ve.dateTime2ms(m);m=Ve.formatDate(S,u.replace(tT,""),!1,k)}}else{var b=l+"Label";n.hasOwnProperty(b)&&(m=n[b])}return x&&(m="("+m+")",(f||c)&&(m=" "+m),(d||c)&&(m=m+" ")),m})}var Uh=48,nT=57;Ve.subplotSort=function(e,r){for(var t=Math.min(e.length,r.length)+1,n=0,a=0,o=0;o<t;o++){var i=e.charCodeAt(o)||0,l=r.charCodeAt(o)||0,u=i>=Uh&&i<=nT,s=l>=Uh&&l<=nT;if(u&&(n=10*n+i-Uh),s&&(a=10*a+l-Uh),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var Fu=2e9;Ve.seedPseudoRandom=function(){Fu=2e9};Ve.pseudoRandom=function(){var e=Fu;return Fu=(69069*Fu+1)%4294967296,Math.abs(Fu-e)<429496729?Ve.pseudoRandom():Fu/4294967296};Ve.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=Ve.extractOption(e,r,"htx","hovertext");if(Ve.isValidTextValue(a))return n(a);var o=Ve.extractOption(e,r,"tx","text");if(Ve.isValidTextValue(o))return n(o)};Ve.isValidTextValue=function(e){return e||e===0};Ve.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n<r;n++)t.indexOf(".")!==-1&&(t=t.replace("0%","%"),t=t.replace(".%","%"));return t};Ve.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};Ve.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};Ve.strRotate=function(e){return e?"rotate("+e+")":""};Ve.strScale=function(e){return e!==1?"scale("+e+")":""};Ve.getTextTransform=function(e){var r=e.noCenter,t=e.textX,n=e.textY,a=e.targetX,o=e.targetY,i=e.anchorX||0,l=e.anchorY||0,u=e.rotate,s=e.scale;return s?s>1&&(s=1):s=0,Ve.strTranslate(a-s*(t+i),o-s*(n+l))+Ve.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};Ve.setTransormAndDisplay=function(e,r){e.attr("transform",Ve.getTextTransform(r)),e.style("display",r.scale?null:"none")};Ve.ensureUniformFontSize=function(e,r){var t=Ve.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Ve.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Ve.bigFont=function(e){return Math.round(1.2*e)};var aT=Ve.getFirefoxVersion(),$j=aT!==null&&aT<86;Ve.getPositionFromD3Event=function(){return $j?[F0.event.layerX,F0.event.layerY]:[F0.event.offsetX,F0.event.offsetY]}});var dT=xe(()=>{"use strict";var Kj=rr(),vT={"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(Qy in vT)hT=Qy.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Kj.addStyleRule(hT,vT[Qy]);var hT,Qy});var jy=xe((m3e,pT)=>{pT.exports=!0});var rm=xe((b3e,gT)=>{"use strict";var Qj=jy(),em;typeof window.matchMedia=="function"?em=!window.matchMedia("(hover: none)").matches:em=Qj;gT.exports=em});var Yh=xe((x3e,tm)=>{"use strict";var Ou=typeof Reflect=="object"?Reflect:null,yT=Ou&&typeof Ou.apply=="function"?Ou.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},Vh;Ou&&typeof Ou.ownKeys=="function"?Vh=Ou.ownKeys:Object.getOwnPropertySymbols?Vh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Vh=function(r){return Object.getOwnPropertyNames(r)};function jj(e){console&&console.warn&&console.warn(e)}var bT=Number.isNaN||function(r){return r!==r};function It(){It.init.call(this)}tm.exports=It;tm.exports.once=nee;It.EventEmitter=It;It.prototype._events=void 0;It.prototype._eventsCount=0;It.prototype._maxListeners=void 0;var mT=10;function Gh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(It,"defaultMaxListeners",{enumerable:!0,get:function(){return mT},set:function(e){if(typeof e!="number"||e<0||bT(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");mT=e}});It.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};It.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||bT(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 xT(e){return e._maxListeners===void 0?It.defaultMaxListeners:e._maxListeners}It.prototype.getMaxListeners=function(){return xT(this)};It.prototype.emit=function(r){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var a=r==="error",o=this._events;if(o!==void 0)a=a&&o.error===void 0;else if(!a)return!1;if(a){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=o[r];if(u===void 0)return!1;if(typeof u=="function")yT(u,this,t);else for(var s=u.length,f=AT(u,s),n=0;n<s;++n)yT(f[n],this,t);return!0};function _T(e,r,t,n){var a,o,i;if(Gh(t),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",r,t.listener?t.listener:t),o=e._events),i=o[r]),i===void 0)i=o[r]=t,++e._eventsCount;else if(typeof i=="function"?i=o[r]=n?[t,i]:[i,t]:n?i.unshift(t):i.push(t),a=xT(e),a>0&&i.length>a&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=i.length,jj(l)}return e}It.prototype.addListener=function(r,t){return _T(this,r,t,!1)};It.prototype.on=It.prototype.addListener;It.prototype.prependListener=function(r,t){return _T(this,r,t,!0)};function eee(){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 wT(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=eee.bind(n);return a.listener=t,n.wrapFn=a,a}It.prototype.once=function(r,t){return Gh(t),this.on(r,wT(this,r,t)),this};It.prototype.prependOnceListener=function(r,t){return Gh(t),this.prependListener(r,wT(this,r,t)),this};It.prototype.removeListener=function(r,t){var n,a,o,i,l;if(Gh(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){l=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():ree(n,o),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};It.prototype.off=It.prototype.removeListener;It.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),i;for(a=0;a<o.length;++a)i=o[a],i!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[r],typeof t=="function")this.removeListener(r,t);else if(t!==void 0)for(a=t.length-1;a>=0;a--)this.removeListener(r,t[a]);return this};function MT(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?tee(a):AT(a,a.length)}It.prototype.listeners=function(r){return MT(this,r,!0)};It.prototype.rawListeners=function(r){return MT(this,r,!1)};It.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):TT.call(e,r)};It.prototype.listenerCount=TT;function TT(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}It.prototype.eventNames=function(){return this._eventsCount>0?Vh(this._events):[]};function AT(e,r){for(var t=new Array(r),n=0;n<r;++n)t[n]=e[n];return t}function ree(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function tee(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function nee(e,r){return new Promise(function(t,n){function a(i){e.removeListener(r,o),n(i)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",a),t([].slice.call(arguments))}kT(e,r,o,{once:!0}),r!=="error"&&aee(e,a,{once:!0})})}function aee(e,r,t){typeof e.on=="function"&&kT(e,"error",r,t)}function kT(e,r,t,n){if(typeof e.on=="function")n.once?e.once(r,t):e.on(r,t);else if(typeof e.addEventListener=="function")e.addEventListener(r,function a(o){n.once&&e.removeEventListener(r,a),t(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var N0=xe((_3e,ST)=>{"use strict";var nm=Yh().EventEmitter,iee={init:function(e){if(e._ev instanceof nm)return e;var r=new nm,t=new nm;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(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var o=a._events[r];if(!o)return;function i(u){if(u.listener){if(a.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(a,[t])}else return u.apply(a,[t])}o=Array.isArray(o)?o:[o];var l;for(l=0;l<o.length-1;l++)i(o[l]);return n=i(o[l]),n},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}};ST.exports=iee});var LT=xe((w3e,ET)=>{"use strict";var CT=rr(),oee=jo().dfltConfig;function lee(e,r){for(var t=[],n,a=0;a<r.length;a++)n=r[a],n===e?t[a]=n:typeof n=="object"?t[a]=Array.isArray(n)?CT.extendDeep([],n):CT.extendDeepAll({},n):t[a]=n;return t}var Ro={};Ro.add=function(e,r,t,n,a){var o,i;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},i=e.undoQueue.index,e.autoplay){e.undoQueue.inSequence||(e.autoplay=!1);return}!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(i,e.undoQueue.queue.length-i,o),e.undoQueue.index+=1):o=e.undoQueue.queue[i-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(r),o.undo.args.unshift(t),o.redo.calls.push(n),o.redo.args.push(a)),e.undoQueue.queue.length>oee.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Ro.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Ro.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Ro.undo=function(r){var t,n;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,n=0;n<t.undo.calls.length;n++)Ro.plotDo(r,t.undo.calls[n],t.undo.args[n]);r.undoQueue.inSequence=!1,r.autoplay=!1}};Ro.redo=function(r){var t,n;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,n=0;n<t.redo.calls.length;n++)Ro.plotDo(r,t.redo.calls[n],t.redo.args[n]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};Ro.plotDo=function(e,r,t){e.autoplay=!0,t=lee(e,t),r.apply(null,t)};ET.exports=Ro});var am=xe((M3e,RT)=>{"use strict";RT.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Hu=xe(un=>{"use strict";var Wa=Cr(),q0=rr(),Wh=qn(),im=Du(),see=am(),uee=L0(),fee=jo().configAttributes,DT=ea(),_i=q0.extendDeepAll,Bu=q0.isPlainObject,cee=q0.isArrayOrTypedArray,Zh=q0.nestedProperty,vee=q0.valObjectMeta,om="_isSubplotObj",Jh="_isLinkedToArray",hee="_arrayAttrRegexps",IT="_deprecated",lm=[om,Jh,hee,IT];un.IS_SUBPLOT_OBJ=om;un.IS_LINKED_TO_ARRAY=Jh;un.DEPRECATED=IT;un.UNDERSCORE_ATTRS=lm;un.get=function(){var e={};return Wa.allTypes.forEach(function(r){e[r]=pee(r)}),{defs:{valObjects:vee,metaKeys:lm.concat(["description","role","editType","impliedEdits"]),editType:{traces:DT.traces,layout:DT.layout},impliedEdits:{}},traces:e,layout:gee(),frames:yee(),animation:Uu(uee),config:Uu(fee)}};un.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(lm.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!un.isValObject(i)&&Bu(i)&&o!=="impliedEdits"&&un.crawl(i,r,a+1,l)}})};un.isValObject=function(e){return e&&e.valType!==void 0};un.findArrayAttributes=function(e){var r=[],t=[],n=[],a,o;function i(u,s,f,c){t=t.slice(0,c).concat([s]),n=n.slice(0,c).concat([u&&u._isLinkedToArray]);var d=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));d&&l(a,0,"")}function l(u,s,f){var c=u[t[s]],d=f+t[s];if(s===t.length-1)cee(c)&&r.push(o+d);else if(n[s]){if(Array.isArray(c))for(var x=0;x<c.length;x++)Bu(c[x])&&l(c[x],s+1,d+"["+x+"].")}else Bu(c)&&l(c,s+1,d+".")}return a=e,o="",un.crawl(Wh,i),e._module&&e._module.attributes&&un.crawl(e._module.attributes,i),r};un.getTraceValObject=function(e,r){var t=r[0],n=1,a,o,i=e._module;if(i||(i=(Wa.modules[e.type||Wh.type.dflt]||{})._module),!i)return!1;if(a=i.attributes,o=a&&a[t],!o){var l=i.basePlotModule;l&&l.attributes&&(o=l.attributes[t])}return o||(o=Wh[t]),zT(o,r,n)};un.getLayoutValObject=function(e,r){var t=dee(e,r[0]);return zT(t,r,1)};function dee(e,r){var t,n,a,o,i=e._basePlotModules;if(i){var l;for(t=0;t<i.length;t++){if(a=i[t],a.attrRegex&&a.attrRegex.test(r)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!l&&a.layoutAttributes&&(l=a.layoutAttributes)}var u=a.baseLayoutAttrOverrides;if(u&&r in u)return u[r]}if(l)return l}var s=e._modules;if(s){for(t=0;t<s.length;t++)if(o=s[t].layoutAttributes,o&&r in o)return o[r]}for(n in Wa.componentsRegistry){if(a=Wa.componentsRegistry[n],a.name==="colorscale"&&r.indexOf("coloraxis")===0)return a.layoutAttributes[r];if(!a.schema&&r===a.name)return a.layoutAttributes}return r in im?im[r]:!1}function zT(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(Xh(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var n=e[r[t]];if(Bu(n))e=n;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!Xh(r[t]))return!1}else if(e.valType==="info_array"){t++;var a=r[t];if(!Xh(a))return!1;var o=e.items;if(Array.isArray(o)){if(a>=o.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var i=r[t];if(!Xh(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function Xh(e){return e===Math.round(e)&&e>=0}function pee(e){var r,t;r=Wa.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=_i({},Wh),o=_i({},r.attributes);un.crawl(o,function(u,s,f,c,d){Zh(a,d).set(void 0),u===void 0&&Zh(o,d).set(void 0)}),_i(n,a),Wa.traceIs(e,"noOpacity")&&delete n.opacity,Wa.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),Wa.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,_i(n,o),t.attributes&&_i(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Uu(n)};if(r.layoutAttributes){var l={};_i(l,r.layoutAttributes),i.layoutAttributes=Uu(l)}return r.animatable||un.crawl(i,function(u){un.isValObject(u)&&"anim"in u&&delete u.anim}),i}function gee(){var e={},r,t;_i(e,im);for(r in Wa.subplotsRegistry)if(t=Wa.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n<t.attr.length;n++)PT(e,t,t.attr[n]);else{var a=t.attr==="subplot"?t.name:t.attr;PT(e,t,a)}for(r in Wa.componentsRegistry){t=Wa.componentsRegistry[r];var o=t.schema;if(o&&(o.subplots||o.layout)){var i=o.subplots;if(i&&i.xaxis&&!i.yaxis)for(var l in i.xaxis)delete e.yaxis[l];delete e.xaxis.shift,delete e.xaxis.autoshift}else t.name==="colorscale"?_i(e,t.layoutAttributes):t.layoutAttributes&&_ee(e,t.layoutAttributes,t.name)}return{layoutAttributes:Uu(e)}}function yee(){var e={frames:_i({},see)};return Uu(e),e.frames}function Uu(e){return mee(e),bee(e),xee(e),e}function mee(e){function r(t,n,a){!un.isValObject(t)&&Bu(t)&&(t.role="object")}un.crawl(e,r)}function bee(e){function r(t,n,a){if(t){var o=t[Jh];o&&(delete t[Jh],a[n]={items:{}},a[n].items[o]=t,a[n].role="object")}}un.crawl(e,r)}function xee(e){function r(t){for(var n in t)if(Bu(t[n]))r(t[n]);else if(Array.isArray(t[n]))for(var a=0;a<t[n].length;a++)r(t[n][a]);else t[n]instanceof RegExp&&(t[n]=t[n].toString())}r(e)}function PT(e,r,t){var n=Zh(e,t),a=_i({},r.layoutAttributes);a[om]=!0,n.set(a)}function _ee(e,r,t){var n=Zh(e,t);n.set(_i(n.get()||{},r))}});var wt=xe(gs=>{"use strict";var Vu=rr(),wee=qn(),cl="templateitemname",sm={name:{valType:"string",editType:"none"}};sm[cl]={valType:"string",editType:"calc"};gs.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=sm.name,r[cl]=sm[cl],r};gs.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(o){t=Vu.coerce(o,{},wee,"type");var i={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,i._template=n[l]}return i}return{newTrace:a}};gs.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);Vu.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};gs.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[NT(r)],o=n&&n[r];(!Array.isArray(o)||!o.length)&&(o=[]);var i={};function l(s){var f={name:s.name,_input:s},c=f[cl]=s[cl];if(!FT(c))return f._template=a,f;for(var d=0;d<o.length;d++){var x=o[d];if(x.name===c)return i[c]=1,f._template=x,f}return f[t]=s[t]||!1,f._template=!1,f}function u(){for(var s=[],f=0;f<o.length;f++){var c=o[f],d=c.name;if(FT(d)&&!i[d]){var x={_template:c,name:d,_input:{_templateitemname:d}};x[cl]=c[cl],s.push(x),i[d]=1}}return s}return{newItem:l,defaultItems:u}};function FT(e){return e&&typeof e=="string"}function NT(e){var r=e.length-1;return e.charAt(r)!=="s"&&Vu.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}gs.arrayDefaultKey=NT;gs.arrayEditor=function(e,r,t){var n=(Vu.nestedProperty(e,r).get()||[]).length,a=t._index,o=a>=n&&(t._input||{})._templateitemname;o&&(a=n);var i=r+"["+a+"]",l;function u(){l={},o&&(l[i]={},l[i][cl]=o)}u();function s(x,g){l[x]=g}function f(x,g){o?Vu.nestedProperty(l[i],x).set(g):l[i+"."+x]=g}function c(){var x=l;return u(),x}function d(x,g){x&&f(x,g);var w=c();for(var T in w)Vu.nestedProperty(e,T).set(w[T])}return{modifyBase:s,modifyItem:f,getUpdateObj:c,applyUpdate:d}}});var mn=xe((k3e,qT)=>{"use strict";var O0=(Eu(),Kn(Cu)).counter;qT.exports={idRegex:{x:O0("x","( domain)?"),y:O0("y","( domain)?")},attrRegex:O0("[xy]axis"),xAxisMatch:O0("xaxis"),yAxisMatch:O0("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 fn=xe(xa=>{"use strict";var Mee=Cr(),um=mn();xa.id2name=function(r){if(!(typeof r!="string"||!r.match(um.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};xa.name2id=function(r){if(r.match(um.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};xa.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(um.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var o=r.split(" ")[0].slice(1).replace(/^0+/,"");return o==="1"&&(o=""),r.charAt(0)+o+(a&&n?" domain":"")}};xa.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=xa.listIds(e,r),o=new Array(a.length),i;for(i=0;i<a.length;i++){var l=a[i];o[i]=n[l.charAt(0)+"axis"+l.slice(1)]}if(!t){var u=n._subplots.gl3d||[];for(i=0;i<u.length;i++){var s=n[u[i]];r?o.push(s[r+"axis"]):o.push(s.xaxis,s.yaxis,s.zaxis)}}return o};xa.listIds=function(e,r){var t=e._fullLayout;if(!t)return[];var n=t._subplots;return r?n[r+"axis"]:n.xaxis.concat(n.yaxis)};xa.getFromId=function(e,r,t){var n=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]*/,"")),n[xa.id2name(r)]};xa.getFromTrace=function(e,r,t){var n=e._fullLayout,a=null;if(Mee.traceIs(r,"gl3d")){var o=r.scene;o.slice(0,5)==="scene"&&(a=n[o][t+"axis"])}else a=xa.getFromId(e,r[t+"axis"]||t);return a};xa.idSort=function(e,r){var t=e.charAt(0),n=r.charAt(0);return t!==n?t>n?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};xa.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function OT(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}xa.isLinked=function(e,r){return OT(r,e._axisMatchGroups)||OT(r,e._axisConstraintGroups)}});var vl=xe((C3e,BT)=>{"use strict";function Tee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Aee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}BT.exports={clearOutlineControllers:Tee,clearOutline:Aee}});var $h=xe((E3e,UT)=>{"use strict";UT.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var B0=xe(Qh=>{"use strict";var Kh=Cr(),L3e=mn().SUBPLOT_PATTERN;Qh.getSubplotCalcData=function(e,r,t){var n=Kh.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,o=[],i=0;i<e.length;i++){var l=e[i],u=l[0].trace;u[a]===t&&o.push(l)}return o};Qh.getModuleCalcData=function(e,r,t){var n=[],a=[],o;if(typeof r=="string"?o=Kh.getModule(r).plot:typeof r=="function"?o=r:o=r.plot,!o)return[n,e];for(var i=t,l=0;l<e.length;l++){var u=e[l],s=u[0].trace,f=s.zorder!==void 0;s.visible!==!0||s._length===0||(s._module&&s._module.plot===o&&(!f||s.zorder===i)?n.push(u):a.push(u))}return[n,a]};Qh.getSubplotData=function(r,t,n){if(!Kh.subplotsRegistry[t])return[];for(var a=Kh.subplotsRegistry[t].attr,o=[],i,l,u,s=0;s<r.length;s++)i=r[s],i[a]===n&&o.push(i);return o}});var YT=xe(ys=>{"use strict";var kee=Cr(),Gu=rr();ys.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=ys.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(i)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(i){HT(e,i,a.cache),a.check=function(){if(o){var f=HT(e,i,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:i.type,prop:i.prop,traces:i.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u<l.length;u++)e._internalOn(l[u],a.check);a.remove=function(){for(var s=0;s<l.length;s++)e._removeInternalListener(l[s],a.check)}}else Gu.log("Unable to automatically bind plot updates to API command"),a.lookupTable={},a.remove=function(){};return a.disable=function(){o=!1},a.enable=function(){o=!0},r&&(r._commandObserver=a),a};ys.hasSimpleAPICommandBindings=function(e,r,t){var n,a=r.length,o;for(n=0;n<a;n++){var i,l=r[n],u=l.method,s=l.args;if(Array.isArray(s)||(s=[]),!u)return!1;var f=ys.computeAPICommandBindings(e,u,s);if(f.length!==1)return!1;if(!o)o=f[0],Array.isArray(o.traces)&&o.traces.sort();else{if(i=f[0],i.type!==o.type||i.prop!==o.prop)return!1;if(Array.isArray(o.traces))if(Array.isArray(i.traces)){i.traces.sort();for(var c=0;c<o.traces.length;c++)if(o.traces[c]!==i.traces[c])return!1}else return!1;else if(i.prop!==o.prop)return!1}i=f[0];var d=i.value;if(Array.isArray(d))if(d.length===1)d=d[0];else return!1;t&&(t[d]=n)}return o};function HT(e,r,t){var n,a,o,i=!1;if(r.type==="data")n=e._fullData[r.traces!==null?r.traces[0]:0];else if(r.type==="layout")n=e._fullLayout;else return!1;return a=Gu.nestedProperty(n,r.prop).get(),o=t[r.type]=t[r.type]||{},o.hasOwnProperty(r.prop)&&o[r.prop]!==a&&(i=!0),o[r.prop]=a,{changed:i,value:a}}ys.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var n=kee.apiMethodRegistry[r],a=[e];Array.isArray(t)||(t=[]);for(var o=0;o<t.length;o++)a.push(t[o]);return n.apply(null,a).catch(function(i){return Gu.warn("API call to Plotly."+r+" rejected.",i),Promise.reject(i)})};ys.computeAPICommandBindings=function(e,r,t){var n;switch(Array.isArray(t)||(t=[]),r){case"restyle":n=GT(e,t);break;case"relayout":n=VT(e,t);break;case"update":n=GT(e,[t[0],t[2]]).concat(VT(e,[t[1]]));break;case"animate":n=See(e,t);break;default:n=[]}return n};function See(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 VT(e,r){var t=[],n=r[0],a={};if(typeof n=="string")a[n]=r[1];else if(Gu.isPlainObject(n))a=n;else return t;return fm(a,function(o,i,l){t.push({type:"layout",prop:o,value:l})},"",0),t}function GT(e,r){var t,n,a,o,i=[];if(n=r[0],a=r[1],t=r[2],o={},typeof n=="string")o[n]=a;else if(Gu.isPlainObject(n))o=n,t===void 0&&(t=a);else return i;return t===void 0&&(t=null),fm(o,function(l,u,s){var f,c;if(Array.isArray(s)){c=s.slice();var d=Math.min(c.length,e.data.length);t&&(d=Math.min(d,t.length)),f=[];for(var x=0;x<d;x++)f[x]=t?t[x]:x}else c=s,f=t?t.slice():null;if(f===null)Array.isArray(c)&&(c=c[0]);else if(Array.isArray(f)){if(!Array.isArray(c)){var g=c;c=[];for(var w=0;w<f.length;w++)c[w]=g}c.length=Math.min(f.length,c.length)}i.push({type:"data",prop:l,traces:f,value:c})},"",0),i}function fm(e,r,t,n){Object.keys(e).forEach(function(a){var o=e[a];if(a[0]!=="_"){var i=t+(n>0?".":"")+a;Gu.isPlainObject(o)?fm(o,r,i,n+1):r(i,a,o)}})}});var bn=xe((I3e,rA)=>{"use strict";var P3e=nt(),Cee=pu().timeFormatLocale,Eee=Xg().formatLocale,U0=it(),Lee=Wg(),Ree=o0().version,ot=Cr(),Dee=Hu(),Pee=wt(),yr=rr(),Iee=Xr(),XT=pn().BADNUM,_a=fn(),zee=vl().clearOutline,Fee=$h(),cm=L0(),Nee=am(),qee=B0().getModuleCalcData,WT=yr.relinkPrivateKeys,ms=yr._,sr=rA.exports={};yr.extendFlat(sr,ot);sr.attributes=qn();sr.attributes.type.values=sr.allTypes;sr.fontAttrs=Nn();sr.layoutAttributes=Du();var e1=YT();sr.executeAPICommand=e1.executeAPICommand;sr.computeAPICommandBindings=e1.computeAPICommandBindings;sr.manageCommandObserver=e1.manageCommandObserver;sr.hasSimpleAPICommandBindings=e1.hasSimpleAPICommandBindings;sr.redrawText=function(e){return e=yr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ot.getComponentMethod("annotations","draw")(e),ot.getComponentMethod("legend","draw")(e),ot.getComponentMethod("colorbar","draw")(e),r(sr.previousPromises(e)))},300)})};sr.resize=function(e){e=yr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||yr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||yr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,ot.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};sr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};sr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var n=sr.graphJson(e,!1,"object");n.version=Ree;var a=new URL(r);a.searchParams.set("origin",window.location.origin);var o=window.open(a.href,"_blank");if(!o){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var i=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(o.postMessage({type:"chart",chart:n},t),window.removeEventListener("message",i),e.emit("plotly_afterexport"))};return window.addEventListener("message",i),!1};var Oee=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Bee=["year","month","dayMonth","dayMonthYear"];sr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},o=e.layout||{},i=e._fullData||[],l=e._fullData=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},c;e._transitionData||sr.createTransitionData(e),a._dfltTitle={plot:ms(e,"Click to enter Plot title"),subtitle:ms(e,"Click to enter Plot subtitle"),x:ms(e,"Click to enter X axis title"),y:ms(e,"Click to enter Y axis title"),colorbar:ms(e,"Click to enter Colorscale title"),annotation:ms(e,"new text")},a._traceWord=ms(e,"trace");var d=ZT(e,Oee);if(n._initialAutoSizeIsDone){var x=n.width,g=n.height;sr.supplyLayoutGlobalDefaults(o,a,d),o.width||(a.width=x),o.height||(a.height=g),sr.sanitizeMargins(a)}else{sr.supplyLayoutGlobalDefaults(o,a,d);var w=!o.width||!o.height,T=a.autosize,m=f.autosizable,k=w&&(T||m);k?sr.plotAutoSize(e,o,a):w&&sr.sanitizeMargins(a),!T&&w&&(o.width=a.width,o.height=a.height)}a._d3locale=Vee(d,a.separators),a._extraFormat=ZT(e,Bee),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=Hee(),b=a._splomAxes={x:{},y:{}},M=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=Uee(i,u),sr.supplyDataDefaults(u,l,o,a);var h=Object.keys(b.x),_=Object.keys(b.y);if(h.length>1&&_.length>1){for(ot.getComponentMethod("grid","sizeDefaults")(o,a),c=0;c<h.length;c++)yr.pushUnique(S.xaxis,h[c]);for(c=0;c<_.length;c++)yr.pushUnique(S.yaxis,_[c]);for(var y in M)yr.pushUnique(S.cartesian,y)}if(a._has=sr._hasPlotType.bind(a),i.length===l.length)for(c=0;c<l.length;c++)WT(l[c],i[c]);sr.supplyLayoutModuleDefaults(o,a,l,e._transitionData);var v=a._visibleModules,A=[];for(c=0;c<v.length;c++){var p=v[c].crossTraceDefaults;p&&yr.pushUnique(A,p)}for(c=0;c<A.length;c++)A[c](l,a);a._hasOnlyLargeSploms=a._basePlotModules.length===1&&a._basePlotModules[0].name==="splom"&&h.length>15&&_.length>15&&a.shapes.length===0&&a.images.length===0,sr.linkSubplots(l,a,i,n),sr.cleanPlot(l,a,i,n);var R=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),D=R,F=E;D&&!F?n._bgLayer.remove():F&&!D&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&zee({_fullLayout:n}),Gee(l,a),WT(a,n),ot.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var z=a._tracePreGUI,I={},L;for(L in z)I[L]="old";for(c=0;c<l.length;c++)L=l[c].uid,I[L]||(z[L]={}),I[L]="new";for(L in I)I[L]==="old"&&delete z[L];KT(a),ot.getComponentMethod("rangeslider","makeData")(a),!t&&s.length===l.length&&sr.supplyDefaultsUpdateCalc(s,l)};sr.supplyDefaultsUpdateCalc=function(e,r){for(var t=0;t<r.length;t++){var n=r[t],a=(e[t]||[])[0];a&&a.trace&&(a.trace=n)}};function Uee(e,r){var t=r.length,n,a=e.length,o=new Array(t),i={};function l(f,c){o[c]=f,i[f]=1}function u(f,c){if(f&&typeof f=="string"&&!i[f])return l(f,c),!0}for(n=0;n<t;n++){var s=r[n].uid;typeof s=="number"&&(s=String(s)),!u(s,n)&&(n<a&&u(e[n].uid,n)||l(yr.randstr(i),n))}return o}function Hee(){var e=ot.collectableSubplotTypes,r={},t,n;if(!e){e=[];var a=ot.subplotsRegistry;for(var o in a){var i=a[o],l=i.attr;if(l&&(e.push(o),Array.isArray(l)))for(n=0;n<l.length;n++)yr.pushUnique(e,l[n])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function ZT(e,r){var t=e._context.locale;t||(t="en-US");var n=!1,a={};function o(c){for(var d=!0,x=0;x<r.length;x++){var g=r[x];a[g]||(c[g]?a[g]=c[g]:d=!1)}d&&(n=!0)}for(var i=0;i<2;i++){for(var l=e._context.locales,u=0;u<2;u++){var s=(l[t]||{}).format;if(s&&(o(s),n))break;l=ot.localeRegistry}var f=t.split("-")[0];if(n||f===t)break;t=f}return n||o(ot.localeRegistry.en.format),a}function Vee(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=Eee(e).format(yr.adjustFormat(t))}catch(n){return yr.warnBadFormat(t),yr.noFormat}return t},timeFormat:Cee(e).utcFormat}}function Gee(e,r){var t,n=[];r.meta&&(t=r._meta={meta:r.meta,layout:{meta:r.meta}});for(var a=0;a<e.length;a++){var o=e[a];o.meta?n[o.index]=o._meta={meta:o.meta}:r.meta&&(o._meta={meta:r.meta}),r.meta&&(o._meta.layout={meta:r.meta})}n.length&&(t||(t=r._meta={}),t.data=n)}sr.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=[])};sr._hasPlotType=function(e){var r,t=this._basePlotModules||[];for(r=0;r<t.length;r++)if(t[r].name===e)return!0;var n=this._modules||[];for(r=0;r<n.length;r++){var a=n[r].name;if(a===e)return!0;var o=ot.modules[a];if(o&&o.categories[e])return!0}return!1};sr.cleanPlot=function(e,r,t,n){var a,o,i=n._basePlotModules||[];for(a=0;a<i.length;a++){var l=i[a];l.clean&&l.clean(e,r,t,n)}var u=n._has&&n._has("gl"),s=r._has&&r._has("gl");u&&!s&&n._glcontainer!==void 0&&(n._glcontainer.selectAll(".gl-canvas").remove(),n._glcontainer.selectAll(".no-webgl").remove(),n._glcanvas=null);var f=!!n._infolayer;e:for(a=0;a<t.length;a++){var c=t[a],d=c.uid;for(o=0;o<e.length;o++){var x=e[o];if(d===x.uid)continue e}f&&n._infolayer.select(".cb"+d).remove()}};sr.linkSubplots=function(e,r,t,n){var a,o,i=n._plots||{},l=r._plots={},u=r._subplots,s={_fullData:e,_fullLayout:r},f=u.cartesian||[];for(a=0;a<f.length;a++){var c=f[a],d=i[c],x=_a.getFromId(s,c,"x"),g=_a.getFromId(s,c,"y"),w;for(d?w=l[c]=d:(w=l[c]={},w.id=c),x._counterAxes.push(g._id),g._counterAxes.push(x._id),x._subplotsWith.push(c),g._subplotsWith.push(c),w.xaxis=x,w.yaxis=g,w._hasClipOnAxisFalse=!1,o=0;o<e.length;o++){var T=e[o];if(T.xaxis===w.xaxis._id&&T.yaxis===w.yaxis._id&&T.cliponaxis===!1){w._hasClipOnAxisFalse=!0;break}}}var m=_a.list(s,null,!0),k;for(a=0;a<m.length;a++){k=m[a];var S=null;k.overlaying&&(S=_a.getFromId(s,k.overlaying),S&&S.overlaying&&(k.overlaying=!1,S=null)),k._mainAxis=S||k,S&&(k.domain=S.domain.slice()),k._anchorAxis=k.anchor==="free"?null:_a.getFromId(s,k.anchor)}for(a=0;a<m.length;a++)if(k=m[a],k._counterAxes.sort(_a.idSort),k._subplotsWith.sort(yr.subplotSort),k._mainSubplot=Yee(k,r),k._counterAxes.length&&(k.spikemode&&k.spikemode.indexOf("across")!==-1||k.automargin&&k.mirror&&k.anchor!=="free"||ot.getComponentMethod("rangeslider","isVisible")(k))){var b=1,M=0;for(o=0;o<k._counterAxes.length;o++){var h=_a.getFromId(s,k._counterAxes[o]);b=Math.min(b,h.domain[0]),M=Math.max(M,h.domain[1])}b<M&&(k._counterDomainMin=b,k._counterDomainMax=M)}};function Yee(e,r){var t={_fullLayout:r},n=e._id.charAt(0)==="x",a=e._mainAxis._anchorAxis,o="",i="",l="";if(a&&(l=a._mainAxis._id,o=n?e._id+l:l+e._id),!o||!r._plots[o]){o="";for(var u=e._counterAxes,s=0;s<u.length;s++){var f=u[s],c=n?e._id+f:f+e._id;i||(i=c);var d=_a.getFromId(t,f);if(l&&d.overlaying===l){o=c;break}}}return o||i}sr.supplyDataDefaults=function(e,r,t,n){var a=n._modules,o=n._visibleModules,i=n._basePlotModules,l=0,u=0,s,f,c;function d(k){r.push(k);var S=k._module;S&&(yr.pushUnique(a,S),k.visible===!0&&yr.pushUnique(o,S),yr.pushUnique(i,k._module.basePlotModule),l++,k._input.visible!==!1&&u++)}var x={},g=[],w=(t.template||{}).data||{},T=Pee.traceTemplater(w);for(s=0;s<e.length;s++)c=e[s],f=T.newTrace(c),f.uid=n._traceUids[s],sr.supplyTraceDefaults(c,f,u,n,s),f.index=s,f._input=c,d(f),ot.traceIs(f,"carpetAxis")&&(x[f.carpet]=f),ot.traceIs(f,"carpetDependent")&&g.push(s);for(s=0;s<g.length;s++)if(f=r[g[s]],!!f.visible){var m=x[f.carpet];if(f._carpet=m,!m||!m.visible){f.visible=!1;continue}f.xaxis=m.xaxis,f.yaxis=m.yaxis}};sr.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function n(a,o){return yr.coerce(e||{},t,cm,a,o)}if(n("mode"),n("direction"),n("fromcurrent"),Array.isArray(e.frame))for(t.frame=[],r=0;r<e.frame.length;r++)t.frame[r]=sr.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=sr.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=sr.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=sr.supplyAnimationTransitionDefaults(e.transition||{});return t};sr.supplyAnimationFrameDefaults=function(e){var r={};function t(n,a){return yr.coerce(e||{},r,cm.frame,n,a)}return t("duration"),t("redraw"),r};sr.supplyAnimationTransitionDefaults=function(e){var r={};function t(n,a){return yr.coerce(e||{},r,cm.transition,n,a)}return t("duration"),t("easing"),r};sr.supplyFrameDefaults=function(e){var r={};function t(n,a){return yr.coerce(e,r,Nee,n,a)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};sr.supplyTraceDefaults=function(e,r,t,n,a){var o=n.colorway||Iee.defaults,i=o[t%o.length],l;function u(S,b){return yr.coerce(e,r,sr.attributes,S,b)}var s=u("visible");u("type"),u("name",n._traceWord+" "+a),u("uirevision",n.uirevision);var f=sr.getModule(r);if(r._module=f,f){var c=f.basePlotModule,d=c.attr,x=c.attributes;if(d&&x){var g=n._subplots,w="";if(Array.isArray(d))for(l=0;l<d.length;l++){var T=d[l],m=yr.coerce(e,r,x,T);g[T]&&yr.pushUnique(g[T],m),w+=m}else w=yr.coerce(e,r,x,d);g[c.name]&&yr.pushUnique(g[c.name],w)}}if(s&&(u("customdata"),u("ids"),u("meta"),ot.traceIs(r,"showLegend")?(yr.coerce(e,r,f.attributes.showlegend?f.attributes:sr.attributes,"showlegend"),yr.coerce(e,r,f.attributes.legend?f.attributes:sr.attributes,"legend"),u("legendwidth"),u("legendgroup"),u("legendgrouptitle.text"),yr.coerce(e,r,f.attributes.legend?f.attributes:sr.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,i,n),ot.traceIs(r,"noOpacity")||u("opacity"),ot.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),ot.traceIs(r,"noHover")||(r.hovertemplate||yr.coerceHoverinfo(e,r,n),r.type!=="parcats"&&ot.getComponentMethod("fx","supplyDefaults")(e,r,i,n)),f&&f.selectPoints)){var k=u("selectedpoints");yr.isTypedArray(k)&&(r.selectedpoints=Array.from(k))}return r};sr.supplyLayoutGlobalDefaults=function(e,r,t){function n(c,d){return yr.coerce(e,r,sr.layoutAttributes,c,d)}var a=e.template;yr.isPlainObject(a)&&(r.template=a,r._template=a.layout,r._dataTemplate=a.data),n("autotypenumbers");var o=yr.coerceFont(n,"font"),i=o.size;yr.coerceFont(n,"title.font",o,{overrideDflt:{size:Math.round(i*1.4)}}),n("title.text",r._dfltTitle.plot),n("title.xref");var l=n("title.yref");n("title.pad.t"),n("title.pad.r"),n("title.pad.b"),n("title.pad.l");var u=n("title.automargin");n("title.x"),n("title.xanchor"),n("title.y"),n("title.yanchor"),n("title.subtitle.text",r._dfltTitle.subtitle),yr.coerceFont(n,"title.subtitle.font",o,{overrideDflt:{size:Math.round(r.title.font.size*.7)}}),u&&(l==="paper"&&(r.title.y!==0&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y===0?"top":"bottom")),l==="container"&&(r.title.y==="auto"&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y<.5?"bottom":"top")));var s=n("uniformtext.mode");s&&n("uniformtext.minsize"),n("autosize",!(e.width&&e.height)),n("width"),n("height"),n("minreducedwidth"),n("minreducedheight"),n("margin.l"),n("margin.r"),n("margin.t"),n("margin.b"),n("margin.pad"),n("margin.autoexpand"),e.width&&e.height&&sr.sanitizeMargins(r),ot.getComponentMethod("grid","sizeDefaults")(e,r),n("paper_bgcolor"),n("separators",t.decimal+t.thousands),n("colorway"),n("datarevision");var f=n("uirevision");n("editrevision",f),n("selectionrevision",f),ot.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),ot.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,n),ot.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,n),n("meta"),yr.isPlainObject(e.transition)&&(n("transition.duration"),n("transition.easing"),n("transition.ordering")),ot.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),ot.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,n),yr.coerce(e,r,Fee,"scattermode")};function jh(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}sr.plotAutoSize=function(r,t,n){var a=r._context||{},o=a.frameMargins,i,l,u=yr.isPlotDiv(r);if(u&&r.emit("plotly_autosize"),a.fillFrame)i=window.innerWidth,l=window.innerHeight,document.body.style.overflow="hidden";else{var s=u?window.getComputedStyle(r):{};if(i=jh(s.width)||jh(s.maxWidth)||n.width,l=jh(s.height)||jh(s.maxHeight)||n.height,U0(o)&&o>0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var c=sr.layoutAttributes.width.min,d=sr.layoutAttributes.height.min;i<c&&(i=c),l<d&&(l=d);var x=!t.width&&Math.abs(n.width-i)>1,g=!t.height&&Math.abs(n.height-l)>1;(g||x)&&(x&&(n.width=i),g&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),sr.sanitizeMargins(n)};sr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=ot.componentsRegistry,o=r._basePlotModules,i,l,u,s=ot.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(ot.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(yr.subplotSort);for(l=0;l<o.length;l++)u=o[l],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t);var c=r._modules;for(l=0;l<c.length;l++)u=c[l],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t);for(i in a)u=a[i],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t)};sr.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)),yr.clearThrottle(),yr.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()};sr.style=function(e){var r=e._fullLayout._visibleModules,t=[],n;for(n=0;n<r.length;n++){var a=r[n];a.style&&yr.pushUnique(t,a.style)}for(n=0;n<t.length;n++)t[n](e)};sr.sanitizeMargins=function(e){if(!(!e||!e.margin)){var r=e.width,t=e.height,n=e.margin,a=r-(n.l+n.r),o=t-(n.t+n.b),i;a<0&&(i=(r-1)/(n.l+n.r),n.l=Math.floor(i*n.l),n.r=Math.floor(i*n.r)),o<0&&(i=(t-1)/(n.t+n.b),n.t=Math.floor(i*n.t),n.b=Math.floor(i*n.b))}};sr.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};sr.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function KT(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 QT=2,jT=2;sr.autoMargin=function(e,r,t){var n=e._fullLayout,a=n.width,o=n.height,i=n.margin,l=n.minreducedwidth,u=n.minreducedheight,s=yr.constrain(a-i.l-i.r,QT,l),f=yr.constrain(o-i.t-i.b,jT,u),c=Math.max(0,a-s),d=Math.max(0,o-f),x=n._pushmargin,g=n._pushmarginIds;if(i.autoexpand!==!1){if(!t)delete x[r],delete g[r];else{var w=t.pad;if(w===void 0&&(w=Math.min(12,i.l,i.r,i.t,i.b)),c){var T=(t.l+t.r)/c;T>1&&(t.l/=T,t.r/=T)}if(d){var m=(t.t+t.b)/d;m>1&&(t.t/=m,t.b/=m)}var k=t.xl!==void 0?t.xl:t.x,S=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;x[r]={l:{val:k,size:t.l+w},r:{val:S,size:t.r+w},b:{val:M,size:t.b+w},t:{val:b,size:t.t+w}},g[r]=1}if(!n._replotting)return sr.doAutoMargin(e)}};function Xee(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=_a.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}sr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),KT(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=yr.extendFlat({},a),u=o.l,s=o.r,f=o.t,c=o.b,d=r._pushmargin,x=r._pushmarginIds,g=r.minreducedwidth,w=r.minreducedheight;if(o.autoexpand!==!1){for(var T in d)x[T]||delete d[T];var m=e._fullLayout._reservedMargin;for(var k in m)for(var S in m[k]){var b=m[k][S];i[S]=Math.max(i[S],b)}d.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:c}};for(var M in i){var h=0;for(var _ in d)_!=="base"&&U0(d[_][M].size)&&(h=d[_][M].size>h?d[_][M].size:h);var y=Math.max(0,o[M]-h);i[M]=Math.max(0,i[M]-y)}for(var v in d){var A=d[v].l||{},p=d[v].b||{},R=A.val,E=A.size,D=p.val,F=p.size,z=t-i.r-i.l,I=n-i.t-i.b;for(var L in d){if(U0(E)&&d[L].r){var P=d[L].r.val,O=d[L].r.size;if(P>R){var U=(E*P+(O-z)*R)/(P-R),V=(O*(1-R)+(E-z)*(1-P))/(P-R);U+V>u+s&&(u=U,s=V)}}if(U0(F)&&d[L].t){var K=d[L].t.val,j=d[L].t.size;if(K>D){var G=(F*K+(j-I)*D)/(K-D),q=(j*(1-D)+(F-I)*(1-K))/(K-D);G+q>c+f&&(c=G,f=q)}}}}}var J=yr.constrain(t-o.l-o.r,QT,g),te=yr.constrain(n-o.t-o.b,jT,w),Z=Math.max(0,t-J),ie=Math.max(0,n-te);if(Z){var Q=(u+s)/Z;Q>1&&(u/=Q,s/=Q)}if(ie){var re=(c+f)/ie;re>1&&(c/=re,f/=re)}if(a.l=Math.round(u)+i.l,a.r=Math.round(s)+i.r,a.t=Math.round(f)+i.t,a.b=Math.round(c)+i.b,a.p=Math.round(o.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(sr.didMarginChange(l,a)||Xee(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var se=3*(1+Object.keys(x).length);if(r._redrawFromAutoMarginCount<se)return ot.call("_doPlot",e);r._size=l,yr.warn("Too many auto-margin redraws.")}Wee(e)};function Wee(e){var r=_a.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var n=0;n<r.length;n++){var a=r[n][t];a&&a()}})}var JT=["l","r","t","b","p","w","h"];sr.didMarginChange=function(e,r){for(var t=0;t<JT.length;t++){var n=JT[t],a=e[n],o=r[n];if(!U0(a)||Math.abs(o-a)>1)return!0}return!1};sr.graphJson=function(e,r=!1,t="json",n=!1,a=!1){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&sr.supplyDefaults(e);var o=n?e._fullData:e.data,i=n?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(c,d){if(typeof c=="function")return d?"_function_":null;if(yr.isPlainObject(c)){var x={};return Object.keys(c).sort().forEach(function(m){if(["_","["].indexOf(m.charAt(0))===-1){if(typeof c[m]=="function"){d&&(x[m]="_function");return}x[m]=u(c[m],d)}}),x}var g=Array.isArray(c),w=yr.isTypedArray(c);if((g||w)&&c.dtype&&c.shape){var T=c.bdata;return u({dtype:c.dtype,shape:c.shape,bdata:yr.isArrayBuffer(T)?Lee.encode(T):T},d)}return g?c.map(function(m){return u(m,d)}):w?yr.simpleMap(c,yr.identity):yr.isJSDate(c)?yr.ms2DateTimeLocal(+c):c}var s={data:(o||[]).map(function(c){var d=u(c);return r&&delete d.fit,d})};if(!r&&(s.layout=u(i),n)){var f=i._size;s.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(s.frames=u(l)),a&&(s.config=u(e._context,!0)),t==="object"?s:JSON.stringify(s)};sr.modifyFrames=function(e,r){var t,n,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(t=0;t<r.length;t++)switch(n=r[t],n.type){case"replace":a=n.value;var l=(o[n.index]||{}).name,u=a.name;o[n.index]=i[u]=a,u!==l&&(delete i[l],i[u]=a);break;case"insert":a=n.value,i[a.name]=a,o.splice(n.index,0,a);break;case"delete":a=o[n.index],delete i[a.name],o.splice(n.index,1);break}return Promise.resolve()};sr.computeFrame=function(e,r){var t=e._transitionData._frameHash,n,a,o,i;if(!r)throw new Error("computeFrame must be given a string frame name");var l=t[r.toString()];if(!l)return!1;for(var u=[l],s=[l.name];l.baseframe&&(l=t[l.baseframe.toString()])&&s.indexOf(l.name)===-1;)u.push(l),s.push(l.name);for(var f={};l=u.pop();)if(l.layout&&(f.layout=sr.extendLayout(f.layout,l.layout)),l.data){if(f.data||(f.data=[]),a=l.traces,!a)for(a=[],n=0;n<l.data.length;n++)a[n]=n;for(f.traces||(f.traces=[]),n=0;n<l.data.length;n++)o=a[n],o!=null&&(i=f.traces.indexOf(o),i===-1&&(i=f.data.length,f.traces[i]=o),f.data[i]=sr.extendTrace(f.data[i],l.data[n]))}return f};sr.recomputeFrameHash=function(e){for(var r=e._transitionData._frameHash={},t=e._transitionData._frames,n=0;n<t.length;n++){var a=t[n];a&&a.name&&(r[a.name]=a)}};sr.extendObjectWithContainers=function(e,r,t){var n,a,o,i,l,u,s,f,c=yr.extendDeepNoArrays({},r||{}),d=yr.expandObjectPaths(c),x={};if(t&&t.length)for(o=0;o<t.length;o++)n=yr.nestedProperty(d,t[o]),a=n.get(),a===void 0?yr.nestedProperty(x,t[o]).set(null):(n.set(null),yr.nestedProperty(x,t[o]).set(a));if(e=yr.extendDeepNoArrays(e||{},d),t&&t.length){for(o=0;o<t.length;o++)if(l=yr.nestedProperty(x,t[o]),s=l.get(),!!s){for(u=yr.nestedProperty(e,t[o]),f=u.get(),Array.isArray(f)||(f=[],u.set(f)),i=0;i<s.length;i++){var g=s[i];g===null?f[i]=null:f[i]=sr.extendObjectWithContainers(f[i],g)}u.set(f)}}return e};sr.dataArrayContainers=["dimensions"];sr.layoutArrayContainers=ot.layoutArrayContainers;sr.extendTrace=function(e,r){return sr.extendObjectWithContainers(e,r,sr.dataArrayContainers)};sr.extendLayout=function(e,r){return sr.extendObjectWithContainers(e,r,sr.layoutArrayContainers)};sr.transition=function(e,r,t,n,a,o){var i={redraw:a.redraw},l={},u=[];return i.prepareFn=function(){for(var s=Array.isArray(r)?r.length:0,f=n.slice(0,s),c=0;c<f.length;c++){var d=f[c],x=e._fullData[d],g=x._module;if(g){if(g.animatable){var w=g.basePlotModule.name;l[w]||(l[w]=[]),l[w].push(d)}e.data[f[c]]=sr.extendTrace(e.data[f[c]],r[c])}}var T=yr.expandObjectPaths(yr.extendDeepNoArrays({},t)),m=/^[xy]axis[0-9]*$/;for(var k in T)m.test(k)&&delete T[k].range;sr.extendLayout(e.layout,T),delete e.calcdata,sr.supplyDefaults(e),sr.doCalcdata(e);var S=yr.expandObjectPaths(t);if(S){var b=e._fullLayout._plots;for(var M in b){var h=b[M],_=h.xaxis,y=h.yaxis,v=_.range.slice(),A=y.range.slice(),p=null,R=null,E=null,D=null;Array.isArray(S[_._name+".range"])?p=S[_._name+".range"].slice():Array.isArray((S[_._name]||{}).range)&&(p=S[_._name].range.slice()),Array.isArray(S[y._name+".range"])?R=S[y._name+".range"].slice():Array.isArray((S[y._name]||{}).range)&&(R=S[y._name].range.slice()),v&&p&&(_.r2l(v[0])!==_.r2l(p[0])||_.r2l(v[1])!==_.r2l(p[1]))&&(E={xr0:v,xr1:p}),A&&R&&(y.r2l(A[0])!==y.r2l(R[0])||y.r2l(A[1])!==y.r2l(R[1]))&&(D={yr0:A,yr1:R}),(E||D)&&u.push(yr.extendFlat({plotinfo:h},E,D))}}return Promise.resolve()},i.runFn=function(s){var f,c=e._fullLayout._basePlotModules,d=u.length,x;if(t)for(x=0;x<c.length;x++)c[x].transitionAxes&&c[x].transitionAxes(e,u,o,s);d?(f=yr.extendFlat({},o),f.duration=0,delete l.cartesian):f=o;for(var g in l){var w=l[g],T=e._fullData[w[0]]._module;T.basePlotModule.plot(e,w,f,s)}},eA(e,o,i)};sr.transitionFromReact=function(e,r,t,n){var a=e._fullLayout,o=a.transition,i={},l=[];return i.prepareFn=function(){var u=a._plots;i.redraw=!1,r.anim==="some"&&(i.redraw=!0),t.anim==="some"&&(i.redraw=!0);for(var s in u){var f=u[s],c=f.xaxis,d=f.yaxis,x=n[c._name].range.slice(),g=n[d._name].range.slice(),w=c.range.slice(),T=d.range.slice();c.setScale(),d.setScale();var m=null,k=null;(c.r2l(x[0])!==c.r2l(w[0])||c.r2l(x[1])!==c.r2l(w[1]))&&(m={xr0:x,xr1:w}),(d.r2l(g[0])!==d.r2l(T[0])||d.r2l(g[1])!==d.r2l(T[1]))&&(k={yr0:g,yr1:T}),(m||k)&&l.push(yr.extendFlat({plotinfo:f},m,k))}return Promise.resolve()},i.runFn=function(u){for(var s=e._fullData,f=e._fullLayout,c=f._basePlotModules,d,x,g,w=[],T=0;T<s.length;T++)w.push(T);function m(){if(e._fullLayout)for(var S=0;S<c.length;S++)c[S].transitionAxes&&c[S].transitionAxes(e,l,d,u)}function k(){if(e._fullLayout)for(var S=0;S<c.length;S++)c[S].plot(e,g,x,u)}l.length&&r.anim?o.ordering==="traces first"?(d=yr.extendFlat({},o,{duration:0}),g=w,x=o,setTimeout(m,o.duration),k()):(d=o,g=null,x=yr.extendFlat({},o,{duration:0}),setTimeout(k,d.duration),m()):l.length?(d=o,m()):r.anim&&(g=w,x=o,k())},eA(e,o,i)};function eA(e,r,t){var n=!1;function a(c){var d=Promise.resolve();if(!c)return d;for(;c.length;)d=d.then(c.shift());return d}function o(c){if(c)for(;c.length;)c.shift()}function i(){return e.emit("plotly_transitioning",[]),new Promise(function(c){e._transitioning=!0,r.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return ot.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var d=0,x=0;function g(){return d++,function(){x++,!n&&x===d&&l(c)}}t.runFn(g),setTimeout(g())})}function l(c){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return ot.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var s=[sr.previousPromises,u,t.prepareFn,sr.rehover,sr.reselect,i],f=yr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}sr.doCalcdata=function(e,r){var t=_a.list(e),n=e._fullData,a=e._fullLayout,o,i,l,u=new Array(n.length),s=(e.calcdata||[]).slice();for(e.calcdata=u,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l<n.length;l++)if(Array.isArray(r)&&r.indexOf(l)===-1){u[l]=s[l];continue}for(l=0;l<n.length;l++)o=n[l],o._arrayAttrs=Dee.findArrayAttributes(o),o._extremes={};var f=a._subplots.polar||[];for(l=0;l<f.length;l++)t.push(a[f[l]].radialaxis,a[f[l]].angularaxis);for(var c in a._colorAxes){var d=a[c];d.cauto!==!1&&(delete d.cmin,delete d.cmax)}function x(w,T){if(o=n[w],i=o._module,!!i.isContainer===T){var m=[];o.visible===!0&&o._length!==0&&i&&i.calc&&(m=i.calc(e,o)),(!Array.isArray(m)||!m[0])&&(m=[{x:XT,y:XT}]),m[0].t||(m[0].t={}),m[0].trace=o,u[w]=m}}for($ee(t,n,a),l=0;l<n.length;l++)x(l,!0);for(l=0;l<n.length;l++)x(l,!1);$T(e);var g=Jee(t,e);if(g.length){for(a._numBoxes=0,a._numViolins=0,l=0;l<g.length;l++)x(g[l],!0);for(l=0;l<g.length;l++)x(g[l],!1);$T(e)}ot.getComponentMethod("fx","calc")(e),ot.getComponentMethod("errorbars","calc")(e)};var Zee=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function Jee(e,r){var t=[],n,a,o,i,l;function u(L,P,O){var U=P._id.charAt(0);if(L==="histogram2dcontour"){var V=P._counterAxes[0],K=_a.getFromId(r,V),j=U==="x"||V==="x"&&K.type==="category",G=U==="y"||V==="y"&&K.type==="category";return function(q,J){return q===0||J===0||j&&q===O[J].length-1||G&&J===O.length-1?-1:(U==="y"?J:q)-1}}else return function(q,J){return U==="y"?J:q}}var s={min:function(L){return yr.aggNums(Math.min,null,L)},max:function(L){return yr.aggNums(Math.max,null,L)},sum:function(L){return yr.aggNums(function(P,O){return P+O},null,L)},total:function(L){return yr.aggNums(function(P,O){return P+O},null,L)},mean:function(L){return yr.mean(L)},"geometric mean":function(L){return yr.geometricMean(L)},median:function(L){return yr.median(L)}};function f(L,P){return L[1]-P[1]}function c(L,P){return P[1]-L[1]}for(n=0;n<e.length;n++){var d=e[n];if(d.type==="category"){var x=d.categoryorder.match(Zee);if(x){var g=x[1],w=x[2],T=d._id.charAt(0),m=T==="x",k=[];for(a=0;a<d._categories.length;a++)k.push([d._categories[a],[]]);for(a=0;a<d._traceIndices.length;a++){var S=d._traceIndices[a],b=r._fullData[S];if(b.visible===!0){var M=b.type;ot.traceIs(b,"histogram")&&(delete b._xautoBinFinished,delete b._yautoBinFinished);var h=M==="splom",_=M==="scattergl",y=r.calcdata[S];for(o=0;o<y.length;o++){var v=y[o],A,p;if(h){var R=b._axesDim[d._id];if(!m){var E=b._diag[R][0];E&&(d=r._fullLayout[_a.id2name(E)])}var D=v.trace.dimensions[R].values;for(i=0;i<D.length;i++)for(A=d._categoriesMap[D[i]],l=0;l<v.trace.dimensions.length;l++)if(l!==R){var F=v.trace.dimensions[l];k[A][1].push(F.values[i])}}else if(_){for(i=0;i<v.t.x.length;i++)m?(A=v.t.x[i],p=v.t.y[i]):(A=v.t.y[i],p=v.t.x[i]),k[A][1].push(p);v.t&&v.t._scene&&delete v.t._scene.dirty}else if(v.hasOwnProperty("z")){p=v.z;var z=u(b.type,d,p);for(i=0;i<p.length;i++)for(l=0;l<p[i].length;l++)A=z(l,i),A+1&&k[A][1].push(p[i][l])}else{if(A=v.p,A===void 0&&(A=v[T]),isNaN(A)||A<0)continue;for(p=v.s,p===void 0&&(p=v.v),p===void 0&&(p=m?v.y:v.x),Array.isArray(p)||(p===void 0?p=[]:p=[p]),i=0;i<p.length;i++)k[A][1].push(p[i])}}}}d._categoriesValue=k;var I=[];for(a=0;a<k.length;a++)I.push([k[a][0],s[g](k[a][1])]);I.sort(w==="descending"?c:f),d._categoriesAggregatedValue=I,d._initialCategories=I.map(function(L){return L[0]}),t=t.concat(d.sortByInitialCategories())}}}return t}function $ee(e,r,t){var n={};function a(u){u.clearCalc(),u.type==="multicategory"&&u.setupMultiCategory(r),n[u._id]=1}yr.simpleMap(e,a);for(var o=t._axisMatchGroups||[],i=0;i<o.length;i++)for(var l in o[i])n[l]||a(t[_a.id2name(l)])}function $T(e){var r=e._fullLayout,t=r._visibleModules,n={},a,o,i;for(o=0;o<t.length;o++){var l=t[o],u=l.crossTraceCalc;if(u){var s=l.basePlotModule.name;n[s]?yr.pushUnique(n[s],u):n[s]=[u]}}for(i in n){var f=n[i],c=r._subplots[i];if(Array.isArray(c))for(a=0;a<c.length;a++){var d=c[a],x=i==="cartesian"?r._plots[d]:r[d];for(o=0;o<f.length;o++)f[o](e,x,d)}else for(o=0;o<f.length;o++)f[o](e)}}sr.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};sr.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};sr.reselect=function(e){var r=e._fullLayout,t=(e.layout||{}).selections,n=r._previousSelections;r._previousSelections=t;var a=r._reselect||JSON.stringify(t)!==JSON.stringify(n);ot.getComponentMethod("selections","reselect")(e,a)};sr.generalUpdatePerTraceModule=function(e,r,t,n){var a=r.traceHash,o={},i;for(i=0;i<t.length;i++){var l=t[i],u=l[0].trace;u.visible&&(o[u.type]=o[u.type]||[],o[u.type].push(l))}for(var s in a)if(!o[s]){var f=a[s][0],c=f[0].trace;c.visible=!1,o[s]=[f]}for(var d in o){var x=o[d],g=x[0][0].trace._module;g.plot(e,r,yr.filterVisible(x),n)}r.traceHash=o};sr.plotBasePlot=function(e,r,t,n,a){var o=ot.getModule(e),i=qee(r.calcdata,o)[0];o.plot(r,i,n,a)};sr.cleanBasePlot=function(e,r,t,n,a){var o=a._has&&a._has(e),i=t._has&&t._has(e);o&&!i&&a["_"+e+"layer"].selectAll("g.trace").remove()}});var hl=xe(bs=>{"use strict";bs.xmlns="http://www.w3.org/2000/xmlns/";bs.svg="http://www.w3.org/2000/svg";bs.xlink="http://www.w3.org/1999/xlink";bs.svgAttrs={xmlns:bs.svg,"xmlns:xlink":bs.xlink}});var Bn=xe((F3e,tA)=>{"use strict";tA.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 Un=xe(La=>{"use strict";var cn=nt(),Za=rr(),Kee=Za.strTranslate,vm=hl(),Qee=Bn().LINE_SPACING,jee=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,sA=e=>e?e.match(jee):null;La.matchTex=sA;La.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&sA(n);a&&!nre()&&(a=null);var o=cn.select(e.node().parentNode);if(o.empty())return;var i=e.attr("class")?e.attr("class").split(" ")[0]:"text";i+="-math",o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){o.empty()||(i=e.attr("class")+"-math",o.select("svg."+i).remove()),e.text("").style("white-space","pre");var u=hre(e.node(),n);u&&e.style("pointer-events","all"),La.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s},c=e.attr("text-anchor");are(a[2],f,function(d,x,g){o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove();var w=d&&d.select("svg");if(!w||!w.node()){l(),u();return}e.style("display","none");var T=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});T.node().appendChild(w.node()),x&&x.node()&&w.node().insertBefore(x.node().cloneNode(!0),w.node().firstChild);var m=g.width,k=g.height;w.attr({class:i,height:k,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var S=e.node().style.fill||"black",b=w.select("g");b.attr({fill:S,stroke:S});var M=b.node().getBoundingClientRect(),h=M.width,_=M.height;(h>m||_>k)&&(w.style("overflow","hidden"),M=w.node().getBoundingClientRect(),h=M.width,_=M.height);var y=+e.attr("x"),v=+e.attr("y"),A=s||e.node().getBoundingClientRect().height,p=-A/4;i[0]==="y"?T.attr({transform:"rotate("+[-90,y,v]+")"+Kee(-h/2,p-_/2)}):i[0]==="l"?v=p-_/2:i[0]==="a"&&i.indexOf("atitle")!==0?(y=0,v=p):(y=y-h*(c==="middle"?.5:c==="end"?1:0),v=v+p-_/2),w.attr({x:y,y:v}),t&&t.call(e,T),u(T)})})):l(),e};var ere=/(<|<|<)/g,rre=/(>|>|>)/g;function tre(e){return e.replace(ere,"\\lt ").replace(rre,"\\gt ")}var hm=null,uA=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,nA=!1,aA=!1;function nre(){let e=uA();return e===3||e===4?!0:(e===null?nA||(nA=!0,Za.warn("MathJax is not loaded. Math equations will not be rendered.")):aA||(aA=!0,Za.warn("Unsupported MathJax version:",MathJax.version)),!1)}function are(e,r,t){let n=uA();var a;let o=function(){if(!hm){let s=MathJax._.output.svg_ts.SVG,f=Za.extendFlat({},MathJax.config.svg,{fontCache:"local"});n===4&&(f.linebreaks=Za.extendFlat({},f.linebreaks,{inline:!1})),hm=MathJax._.mathjax.mathjax.document(document,Za.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new s(f)}))}let l="math-output-"+Za.randstr({},64);a=cn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let u=tre(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return hm.convert(u,{display:!1})}).then(function(s){a.node().appendChild(s)})},i=function(){let l=a.select(".MathJax"),u=!l.empty()&&a.select("svg").node();if(!u)Za.log("There was an error in the tex syntax.",e),t();else{let s=u.getBoundingClientRect(),f=l.select("defs");t(l,f,s)}a.remove()};Promise.resolve().then(o).then(i).catch(l=>{Za.log("MathJax typesetting failed.",e,l),a&&a.remove(),t()})}var fA={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"},ire={sub:"0.3em",sup:"-0.6em"},ore={sub:"-0.21em",sup:"0.42em"},iA="\u200B",oA=["http:","https:","mailto:","",void 0,":"],cA=La.NEWLINES=/(\r\n?|\n)/g,pm=/(<[^<>]*>)/,gm=/<(\/?)([^ >]*)(\s+(.*))?>/i,lre=/<br(\s+.*)?>/i;La.BR_TAG_ALL=/<br(\s+.*)?>/gi;var vA=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,hA=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,dA=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,sre=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function xs(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&r1(n)}var ure=/(^|;)\s*color:/;La.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",o=a.length,i=e.split(pm),l=[],u="",s=0,f=0;f<i.length;f++){var c=i[f],d=c.match(gm),x=d&&d[2].toLowerCase();if(x)n.indexOf(x)!==-1&&(l.push(c),u=x);else{var g=c.length;if(s+g<t)l.push(c),s+=g;else if(s<t){var w=t-s;u&&(u!=="br"||w<=o||g<=o)&&l.pop(),t>o?l.push(c.slice(0,Math.max(0,w-o))+a):l.push(c.slice(0,w));break}u=""}}return l.join("")};var fre={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},cre=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function r1(e){return e.replace(cre,function(r,t){var n;return t.charAt(0)==="#"?n=vre(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=fre[t],n||r})}La.convertEntities=r1;function vre(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 hre(e,r){r=r.replace(cA," ");var t=!1,n=[],a,o=-1;function i(){o++;var h=document.createElementNS(vm.svg,"tspan");cn.select(h).attr({class:"line",dy:o*Qee+"em"}),e.appendChild(h),a=h;var _=n;if(n=[{node:h}],_.length>1)for(var y=1;y<_.length;y++)l(_[y])}function l(h){var _=h.type,y={},v;if(_==="a"){v="a";var A=h.target,p=h.href,R=h.popup;p&&(y={"xlink:xlink:show":A==="_blank"||A.charAt(0)!=="_"?"new":"replace",target:A,"xlink:xlink:href":p},R&&(y.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+R+'");return false;'))}else v="tspan";h.style&&(y.style=h.style);var E=document.createElementNS(vm.svg,v);if(_==="sup"||_==="sub"){u(a,iA),a.appendChild(E);var D=document.createElementNS(vm.svg,"tspan");u(D,iA),cn.select(D).attr("dy",ore[_]),y.dy=ire[_],a.appendChild(E),a.appendChild(D)}else a.appendChild(E);cn.select(E).attr(y),a=h.node=E,n.push(h)}function u(h,_){h.appendChild(document.createTextNode(_))}function s(h){if(n.length===1){Za.log("Ignoring unexpected end tag </"+h+">.",r);return}var _=n.pop();h!==_.type&&Za.log("Start tag <"+_.type+"> doesnt match end tag <"+h+">. Pretending it did match.",r),a=n[n.length-1].node}var f=lre.test(r);f?i():(a=e,n=[{node:e}]);for(var c=r.split(pm),d=0;d<c.length;d++){var x=c[d],g=x.match(gm),w=g&&g[2].toLowerCase(),T=fA[w];if(w==="br")i();else if(T===void 0)u(a,r1(x));else if(g[1])s(w);else{var m=g[4],k={type:w},S=xs(m,vA);if(S?(S=S.replace(ure,"$1 fill:"),T&&(S+=";"+T)):T&&(S=T),S&&(k.style=S),w==="a"){t=!0;var b=xs(m,hA);if(b){var M=pA(b);M&&(k.href=M,k.target=xs(m,dA)||"_blank",k.popup=xs(m,sre))}}l(k)}}return t}function pA(e){var r=encodeURI(decodeURI(e)),t=document.createElement("a"),n=document.createElement("a");t.href=e,n.href=r;var a=t.protocol,o=n.protocol;return oA.indexOf(a)!==-1&&oA.indexOf(o)!==-1?r:""}La.sanitizeHTML=function(r){r=r.replace(cA," ");for(var t=document.createElement("p"),n=t,a=[],o=r.split(pm),i=0;i<o.length;i++){var l=o[i],u=l.match(gm),s=u&&u[2].toLowerCase();if(s in fA)if(u[1])a.length&&(n=a.pop());else{var f=u[4],c=xs(f,vA),d=c?{style:c}:{};if(s==="a"){var x=xs(f,hA);if(x){var g=pA(x);if(g){d.href=g;var w=xs(f,dA);w&&(d.target=w)}}}var T=document.createElement(s);n.appendChild(T),cn.select(T).attr(d),n=T,a.push(T)}else n.appendChild(document.createTextNode(r1(l)))}var m="innerHTML";return t[m]};La.lineCount=function(r){return r.selectAll("tspan.line").size()||1};La.positionText=function(r,t,n){return r.each(function(){var a=cn.select(this);function o(u,s){return s===void 0?(s=a.attr(u),s===null&&(a.attr(u,0),s=0)):a.attr(u,s),s}var i=o("x",t),l=o("y",n);this.nodeName==="text"&&a.selectAll("tspan.line").attr({x:i,y:l})})};function lA(e,r,t){var n=t.horizontalAlign,a=t.verticalAlign||"top",o=e.node().getBoundingClientRect(),i=r.node().getBoundingClientRect(),l,u,s;return a==="bottom"?u=function(){return o.bottom-l.height}:a==="middle"?u=function(){return o.top+(o.height-l.height)/2}:u=function(){return o.top},n==="right"?s=function(){return o.right-l.width}:n==="center"?s=function(){return o.left+(o.width-l.width)/2}:s=function(){return o.left},function(){l=this.node().getBoundingClientRect();var f=s()-i.left,c=u()-i.top,d=t.gd||{};if(t.gd){d._fullLayout._calcInverseTransform(d);var x=Za.apply3DTransform(d._fullLayout._invTransform)(f,c);f=x[0],c=x[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var dm="1px ";La.makeTextShadow=function(e){var r=dm,t=dm,n=dm;return r+t+n+e+", -"+r+"-"+t+n+e+", "+r+"-"+t+n+e+", -"+r+t+n+e};La.makeEditable=function(e,r){var t=r.gd,n=r.delegate,a=cn.dispatch("edit","input","cancel"),o=n||e;if(e.style({"pointer-events":n?"none":"all"}),e.size()!==1)throw new Error("boo");function i(){u(),e.style({opacity:0});var s=o.attr("class"),f;s?f="."+s.split(" ")[0]+"-math-group":f="[class*=-math-group]",f&&cn.select(e.node().parentNode).select(f).style({opacity:0})}function l(s){var f=s.node(),c=document.createRange();c.selectNodeContents(f);var d=window.getSelection();d.removeAllRanges(),d.addRange(c),f.focus()}function u(){var s=cn.select(t),f=s.select(".svg-container"),c=f.append("div"),d=e.node().style,x=parseFloat(d.fontSize||12),g=r.text;g===void 0&&(g=e.attr("data-unformatted")),c.classed("plugin-editable editable",!0).style({position:"absolute","font-family":d.fontFamily||"Arial","font-size":x,color:r.fill||d.fill||"black",opacity:1,"background-color":r.background||"transparent",outline:"#ffffff33 1px solid",margin:[-x/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(g).call(lA(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var w=cn.select(this).attr("class"),T;w?T="."+w.split(" ")[0]+"-math-group":T="[class*=-math-group]",T&&cn.select(e.node().parentNode).select(T).style({opacity:0});var m=this.textContent;cn.select(this).transition().duration(0).remove(),cn.select(document).on("mouseup",null),a.edit.call(e,m)}).on("focus",function(){var w=this;t._editing=!0,cn.select(document).on("mouseup",function(){if(cn.event.target===w)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){cn.event.which===27?(t._editing=!1,e.style({opacity:1}),cn.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),a.cancel.call(e,this.textContent)):(a.input.call(e,this.textContent),cn.select(this).call(lA(e,f,r)))}).on("keydown",function(){cn.event.which===13&&this.blur()}).call(l)}return r.immediate?i():o.on("click",i),cn.rebind(e,a,"on")}});var $i=xe((q3e,_A)=>{"use strict";var dre=nt(),V0=it(),t1=rr(),_s=Xr(),pre=cs().isValid;function gre(e,r,t){var n=r?t1.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(t1.isArrayOrTypedArray(a)){for(var i=0;i<a.length;i++)if(V0(a[i])){o=!0;break}}return t1.isPlainObject(n)&&(o||n.showscale===!0||V0(n.cmin)&&V0(n.cmax)||pre(n.colorscale)||t1.isPlainObject(n.colorbar))}var gA=["showscale","autocolorscale","colorscale","reversescale","colorbar"],H0=["min","max","mid","auto"];function yA(e){var r=e._colorAx,t=r||e,n={},a,o,i;for(o=0;o<gA.length;o++)i=gA[o],n[i]=t[i];if(r)for(a="c",o=0;o<H0.length;o++)i=H0[o],n[i]=t["c"+i];else{var l;for(o=0;o<H0.length;o++){if(i=H0[o],l="c"+i,l in t){n[i]=t[l];continue}l="z"+i,l in t&&(n[i]=t[l])}a=l.charAt(0)}return n._sync=function(u,s){var f=H0.indexOf(u)!==-1?a+u:u;t[f]=t["_"+f]=s},n}function mA(e){for(var r=yA(e),t=r.min,n=r.max,a=r.reversescale?bA(r.colorscale):r.colorscale,o=a.length,i=new Array(o),l=new Array(o),u=0;u<o;u++){var s=a[u];i[u]=t+s[0]*(n-t),l[u]=s[1]}return{domain:i,range:l}}function bA(e){for(var r=e.length,t=new Array(r),n=r-1,a=0;n>=0;n--,a++){var o=e[n];t[a]=[1-o[0],o[1]]}return t}function xA(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,o=new Array(a),i=0;i<a;i++)o[i]=_s.rgbaArray(n[i]);var l=dre.scale.linear().domain(t).range(o).clamp(!0),u=r.noNumericCheck,s=r.returnArray,f;return u&&s?f=l:u?f=function(c){return _s.rgbaArrayToString(l(c))}:s?f=function(c){return V0(c)?l(c):_s.isValid(c)?c:_s.defaultLine}:f=function(c){return V0(c)?_s.rgbaArrayToString(l(c)):_s.isValid(c)?c:_s.defaultLine},f.domain=l.domain,f.range=function(){return n},f}function yre(e,r){return xA(mA(e),r)}_A.exports={hasColorscale:gre,extractOpts:yA,extractScale:mA,flipScale:bA,makeColorScaleFunc:xA,makeColorScaleFuncFromTrace:yre}});var Do=xe((O3e,TA)=>{"use strict";var wA=zy(),mre=wA.FORMAT_LINK,bre=wA.DATE_FORMAT_LINK;function xre(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?ym:MA)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function ym(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: "+mre+"."].join(" ")}function MA(e,r){return ym(e,r)+[" And for dates see: "+bre+".","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(" ")}TA.exports={axisHoverFormat:xre,descriptionOnlyNumbers:ym,descriptionWithDates:MA}});var Ja=xe((U3e,UA)=>{"use strict";var AA=Nn(),Yu=Zi(),BA=nl().dash,bm=Dt().extendFlat,kA=wt().templatedArray,B3e=mi().templateFormatStringDescription,SA=Do().descriptionWithDates,_re=pn().ONEDAY,Ki=mn(),wre=Ki.HOUR_PATTERN,Mre=Ki.WEEKDAY_PATTERN,mm={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Tre=bm({},mm,{values:mm.values.slice().concat(["sync"])});function CA(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var EA={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},LA={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},RA={valType:"data_array",editType:"ticks"},DA={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function PA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function IA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var zA={valType:"color",dflt:Yu.defaultLine,editType:"ticks"},FA={valType:"color",dflt:Yu.lightLine,editType:"ticks"};function NA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var qA=bm({},BA,{editType:"ticks"}),OA={valType:"boolean",editType:"ticks"};UA.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Yu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:AA({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:[Ki.idRegex.x.toString(),Ki.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:[Ki.idRegex.x.toString(),Ki.idRegex.y.toString()],editType:"calc"},rangebreaks:kA("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:[Mre,wre,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:_re},editType:"calc"}),tickmode:Tre,nticks:CA(),tick0:EA,dtick:LA,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:RA,ticktext:{valType:"data_array",editType:"ticks"},ticks:DA,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:PA(),tickwidth:IA(),tickcolor:zA,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:bm({},BA,{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:AA({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:SA("tick label")},tickformatstops:kA("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:SA("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Yu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:OA,gridcolor:FA,gridwidth:NA(),griddash:qA,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Yu.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:Yu.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ki.idRegex.x.toString(),Ki.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ki.idRegex.x.toString(),Ki.idRegex.y.toString()],editType:"plot"},minor:{tickmode:mm,nticks:CA("minor"),tick0:EA,dtick:LA,tickvals:RA,ticks:DA,ticklen:PA("minor"),tickwidth:IA("minor"),tickcolor:zA,gridcolor:FA,gridwidth:NA("minor"),griddash:qA,showgrid:OA,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 n1=xe((H3e,GA)=>{"use strict";var zt=Ja(),HA=Nn(),VA=Dt().extendFlat,Are=ea().overrideAll;GA.exports=Are({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:zt.linecolor,outlinewidth:zt.linewidth,bordercolor:zt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:zt.minor.tickmode,nticks:zt.nticks,tick0:zt.tick0,dtick:zt.dtick,tickvals:zt.tickvals,ticktext:zt.ticktext,ticks:VA({},zt.ticks,{dflt:""}),ticklabeloverflow:VA({},zt.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:zt.ticklen,tickwidth:zt.tickwidth,tickcolor:zt.tickcolor,ticklabelstep:zt.ticklabelstep,showticklabels:zt.showticklabels,labelalias:zt.labelalias,tickfont:HA({description:"Sets the color bar's tick label font"}),tickangle:zt.tickangle,tickformat:zt.tickformat,tickformatstops:zt.tickformatstops,tickprefix:zt.tickprefix,showtickprefix:zt.showtickprefix,ticksuffix:zt.ticksuffix,showticksuffix:zt.showticksuffix,separatethousands:zt.separatethousands,exponentformat:zt.exponentformat,minexponent:zt.minexponent,showexponent:zt.showexponent,title:{text:{valType:"string"},font:HA({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var wi=xe((G3e,XA)=>{"use strict";var kre=n1(),Sre=(Eu(),Kn(Cu)).counter,Cre=(Ih(),Kn(Ph)).default,YA=cs().scales,V3e=Cre(YA);function a1(e){return"`"+e+"`"}XA.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,o="noScale"in t?t.noScale:r==="marker.line",i="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?YA[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[n],c="in "+a1(s+f));var d=a?" Has an effect only if "+c+" is set to a numerical array.":"",x=n+"auto",g=n+"min",w=n+"max",T=n+"mid",m=a1(s+x),k=a1(s+g),S=a1(s+w),b=k+" and "+S,M={};M[g]=M[w]=void 0;var h={};h[x]=!1;var _={};return f==="color"&&(_.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(_.color.anim=!0)),_[x]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},_[g]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:h},_[w]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:h},_[T]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},_.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},_.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},_.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(_.showscale={valType:"boolean",dflt:i,editType:"calc"},_.colorbar=kre),t.noColorAxis||(_.coloraxis={valType:"subplotid",regex:Sre("coloraxis"),dflt:null,editType:"calc"}),_}});var _m=xe((Y3e,WA)=>{"use strict";var Ere=Dt().extendFlat,Lre=wi(),xm=cs().scales;WA.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:xm.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:xm.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:xm.RdBu,editType:"calc"}},coloraxis:Ere({_isSubplotObj:!0,editType:"calc"},Lre("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var wm=xe((X3e,ZA)=>{"use strict";var Rre=rr();ZA.exports=function(r){return Rre.isPlainObject(r.colorbar)}});var Am=xe(Tm=>{"use strict";var Mm=it(),JA=rr(),$A=pn(),Dre=$A.ONEDAY,Pre=$A.ONEWEEK;Tm.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?Dre:1;if(!e)return o;if(Mm(e))return e=Number(e),e<=0?o:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return o;var i=e.charAt(0),l=e.slice(1);return l=Mm(l)?Number(l):0,l<=0||!(n&&i==="M"&&l===Math.round(l)||t&&i==="L"||t&&i==="D"&&(l===1||l===2))?o:e};Tm.tick0=function(e,r,t,n){if(r==="date")return JA.cleanDate(e,JA.dateTick0(t,n%Pre===0?1:0));if(!(n==="D1"||n==="D2"))return Mm(e)?Number(e):0}});var km=xe((Z3e,QA)=>{"use strict";var KA=Am(),Ire=rr().isArrayOrTypedArray,zre=sa().isTypedArraySpec,Fre=sa().decodeTypedArraySpec;QA.exports=function(r,t,n,a,o={}){var i=o.isMinor,l=i?r.minor||{}:r,u=i?t.minor:t,s=i?"minor.":"";function f(b){var M=l[b];return zre(M)&&(M=Fre(M)),M!==void 0?M:(u._template||{})[b]}var c=f("tick0"),d=f("dtick"),x=f("tickvals"),g=f("overlaying"),w=a==="category"||a==="multicategory",T;Ire(x)?T="array":d?T="linear":g&&!w?T="sync":T="auto";var m=n(s+"tickmode",T);if(m==="auto"||m==="sync")n(s+"nticks");else if(m==="linear"){var k=u.dtick=KA.dtick(d,a);u.tick0=KA.tick0(c,a,t.calendar,k)}else if(a!=="multicategory"){var S=n(s+"tickvals");S===void 0?u.tickmode="auto":i||n("ticktext")}}});var Cm=xe((J3e,ek)=>{"use strict";var Sm=rr(),jA=Ja();ek.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?jA.minor:jA,s=o?"minor.":"",f=Sm.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),c=Sm.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),d=Sm.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),x=n(s+"ticks",!o&&a.outerTicks||f||c||d?"outside":"");x||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var Em=xe(($3e,rk)=>{"use strict";rk.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(o){return r[o]!==void 0}),a=function(o){return r[o]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var Mi=xe((K3e,tk)=>{"use strict";var i1=rr(),Nre=wt();tk.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=i1.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=Nre.arrayTemplater(t,a,o),f,c;for(f=0;f<l.length;f++){var d=l[f];i1.isPlainObject(d)?c=s.newItem(d):(c=s.newItem({}),c[o]=!1),c._index=f,c[o]!==!1&&n.handleItemDefaults(d,c,t,n),u.push(c)}var x=s.defaultItems();for(f=0;f<x.length;f++)c=x[f],c._index=u.length,n.handleItemDefaults({},c,t,n,{}),u.push(c);if(i1.isArrayOrTypedArray(i)){var g=Math.min(i.length,u.length);for(f=0;f<g;f++)i1.relinkPrivateKeys(u[f],i[f])}return u}});var Rm=xe((Q3e,ak)=>{"use strict";var Lm=rr(),qre=Xr().contrast,nk=Ja(),Ore=Em(),Bre=Mi();ak.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");Lm.isPlainObject(i)||delete t.labelalias;var l=Ore(r),u=n("showticklabels");if(u){o.noTicklabelshift||n("ticklabelshift"),o.noTicklabelstandoff||n("ticklabelstandoff");var s=o.font||{},f=t.color,c=t.ticklabelposition||"",d=c.indexOf("inside")!==-1?qre(o.bgColor):f&&f!==nk.color.dflt?f:s.color;if(Lm.coerceFont(n,"tickfont",s,{overrideDflt:{color:d}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var x=n("tickangle");!o.noAutotickangles&&x==="auto"&&n("autotickangles")}if(a!=="category"){var g=n("tickformat");Bre(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Ure}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!g&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!o.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function Ure(e,r){function t(a,o){return Lm.coerce(e,r,nk.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var Dm=xe((j3e,ik)=>{"use strict";var Hre=Em();ik.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=Hre(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var Pm=xe((e5e,ok)=>{"use strict";var dl=rr(),Vre=wt(),Gre=km(),Yre=Cm(),Xre=Rm(),Wre=Dm(),Zre=n1();ok.exports=function(r,t,n){var a=Vre.newContainer(t,"colorbar"),o=r.colorbar||{};function i(p,R){return dl.coerce(o,a,Zre,p,R)}var l=n.margin||{t:0,b:0,l:0,r:0},u=n.width-l.l-l.r,s=n.height-l.t-l.b,f=i("orientation"),c=f==="v",d=i("thicknessmode");i("thickness",d==="fraction"?30/(c?u:s):30);var x=i("lenmode");i("len",x==="fraction"?1:c?s:u);var g=i("yref"),w=i("xref"),T=g==="paper",m=w==="paper",k,S,b,M="left";c?(b="middle",M=m?"left":"right",k=m?1.02:1,S=.5):(b=T?"bottom":"top",M="center",k=.5,S=T?1.02:1),dl.coerce(o,a,{x:{valType:"number",min:m?-2:0,max:m?3:1,dflt:k}},"x"),dl.coerce(o,a,{y:{valType:"number",min:T?-2:0,max:T?3:1,dflt:S}},"y"),i("xanchor",M),i("xpad"),i("yanchor",b),i("ypad"),dl.noneOrAll(o,a,["x","y"]),i("outlinecolor"),i("outlinewidth"),i("bordercolor"),i("borderwidth"),i("bgcolor");var h=dl.coerce(o,a,{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");i("ticklabeloverflow",h.indexOf("inside")!==-1?"hide past domain":"hide past div"),Gre(o,a,i,"linear");var _=n.font,y={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:_};h.indexOf("inside")!==-1&&(y.bgColor="black"),Wre(o,a,i,"linear",y),Xre(o,a,i,"linear",y),Yre(o,a,i,"linear",y),i("title.text",n._dfltTitle.colorbar);var v=a.showticklabels?a.tickfont:_,A=dl.extendFlat({},_,{family:v.family,size:dl.bigFont(v.size)});dl.coerceFont(i,"title.font",A),i("title.side",c?"top":"right")}});var Qi=xe((r5e,uk)=>{"use strict";var lk=it(),zm=rr(),Jre=wm(),$re=Pm(),sk=cs().isValid,Kre=Cr().traceIs;function Im(e,r){var t=r.slice(0,r.length-1);return r?zm.nestedProperty(e,t).get()||{}:e}uk.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=Im(r,i),f=Im(t,i),c=Im(t._template||{},i)||{},d=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var x=n._colorAxes||{},g=a(i+"coloraxis");if(g){var w=Kre(t,"contour")&&zm.nestedProperty(t,"contours.coloring").get()||"heatmap",T=x[g];T?(T[2].push(d),T[0]!==w&&(T[0]=!1,zm.warn(["Ignoring coloraxis:",g,"setting","as it is linked to incompatible colorscales."].join(" ")))):x[g]=[w,t,[d]];return}}var m=s[l+"min"],k=s[l+"max"],S=lk(m)&&lk(k)&&m<k,b=a(i+l+"auto",!S);b?a(i+l+"mid"):(a(i+l+"min"),a(i+l+"max"));var M=s.colorscale,h=c.colorscale,_;if(M!==void 0&&(_=!sk(M)),h!==void 0&&(_=!sk(h)),a(i+"autocolorscale",_),a(i+"colorscale"),a(i+"reversescale"),i!=="marker.line."){var y;i&&u&&(y=Jre(s));var v=a(i+"showscale",y);v&&(i&&c&&(f._template=c),$re(s,f,n))}}});var hk=xe((t5e,vk)=>{"use strict";var fk=rr(),Qre=wt(),ck=_m(),jre=Qi();vk.exports=function(r,t){function n(c,d){return fk.coerce(r,t,ck,c,d)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(c,d){return fk.coerce(o,i,ck.coloraxis,c,d)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=Qre.newContainer(t,u,"coloraxis"),i._name=u,jre(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f<s[2].length;f++)s[2][f]();delete t._colorAxes[u]}}}});var pk=xe((n5e,dk)=>{"use strict";var ete=rr(),rte=$i().hasColorscale,tte=$i().extractOpts;dk.exports=function(r,t){function n(f,c){var d=f["_"+c];d!==void 0&&(f[c]=d)}function a(f,c){var d=c.container?ete.nestedProperty(f,c.container).get():f;if(d)if(d.coloraxis)d._colorAx=t[d.coloraxis];else{var x=tte(d),g=x.auto;(g||x.min===void 0)&&n(d,c.min),(g||x.max===void 0)&&n(d,c.max),x.autocolorscale&&n(d,"colorscale")}}for(var o=0;o<r.length;o++){var i=r[o],l=i._module.colorbar;if(l)if(Array.isArray(l))for(var u=0;u<l.length;u++)a(i,l[u]);else a(i,l);rte(i,"marker.line")&&a(i,{container:"marker.line",min:"cmin",max:"cmax"})}for(var s in t._colorAxes)a(t[s],{min:"cmin",max:"cmax"})}});var pl=xe((a5e,yk)=>{"use strict";var gk=it(),Fm=rr(),nte=$i().extractOpts;yk.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?Fm.nestedProperty(t,i).get():t,u=nte(l),s=u.auto!==!1,f=u.min,c=u.max,d=u.mid,x=function(){return Fm.aggNums(Math.min,null,o)},g=function(){return Fm.aggNums(Math.max,null,o)};if(f===void 0?f=x():s&&(l._colorAx&&gk(f)?f=Math.min(f,x()):f=x()),c===void 0?c=g():s&&(l._colorAx&&gk(c)?c=Math.max(c,g()):c=g()),s&&d!==void 0&&(c-d>d-f?f=d-(c-d):c-d<d-f&&(c=d+(d-f))),f===c&&(f-=.5,c+=.5),u._sync("min",f),u._sync("max",c),u.autocolorscale){var w;f*c<0?w=a.colorscale.diverging:f>=0?w=a.colorscale.sequential:w=a.colorscale.sequentialminus,u._sync("colorscale",w)}}});var ji=xe((i5e,mk)=>{"use strict";var o1=cs(),Xu=$i();mk.exports={moduleType:"component",name:"colorscale",attributes:wi(),layoutAttributes:_m(),supplyLayoutDefaults:hk(),handleDefaults:Qi(),crossTraceDefaults:pk(),calc:pl(),scales:o1.scales,defaultScale:o1.defaultScale,getScale:o1.get,isValidScale:o1.isValid,hasColorscale:Xu.hasColorscale,extractOpts:Xu.extractOpts,extractScale:Xu.extractScale,flipScale:Xu.flipScale,makeColorScaleFunc:Xu.makeColorScaleFunc,makeColorScaleFuncFromTrace:Xu.makeColorScaleFuncFromTrace}});var wa=xe((o5e,xk)=>{"use strict";var bk=rr(),ate=sa().isTypedArraySpec;xk.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 bk.isPlainObject(r)&&(bk.isArrayOrTypedArray(r.size)||ate(r.size))}}});var Nm=xe((l5e,_k)=>{"use strict";var ite=it();_k.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,o=n.sizemin||0,i=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var u=i(l/t);return ite(u)&&u>0?Math.max(u,o):0}}});var eo=xe(In=>{"use strict";var G0=rr();In.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};In.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a<t.length;a++)for(var o=0;o<n.length;o++)if(r.indexOf(t[a]+n[o])!==-1)return!0;return!1}return r.indexOf(In.getSubplot(e))!==-1};In.flat=function(e,r){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=r;return t};In.p2c=function(e,r){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e[n].p2c(r);return t};In.c2dApply=function(e,r){e.length!==r.length&&G0.warn("c2dApply: axArray and valArray must be the same length");for(var t=new Array(r.length),n=0;n<r.length;n++){var a=e&&e[n];t[n]=a&&a.c2d?a.c2d(r[n]):r[n]}return t};In.getDistanceFunction=function(e,r,t,n){return e==="closest"?n||In.quadrature(r,t):e.charAt(0)==="x"?r:t};In.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 n=1/0,a=e.length,o=0;o<a;o++)n=r(e[o]),n<=t.distance&&(t.index=o,t.distance=n);return t};In.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};In.quadrature=function(e,r){return function(t){var n=e(t),a=r(t);return Math.sqrt(n*n+a*a)}};In.makeEventData=function(e,r,t){var n="index"in e?e.index:e.pointNumber,a={data:r._input,fullData:r,curveNumber:r.index,pointNumber:n};return a.pointIndex=n,r._module.eventData?a=r._module.eventData(a,e,r,t,n):("xVal"in e?a.x=e.xVal:"x"in e&&(a.x=e.x),"yVal"in e?a.y=e.yVal:"y"in e&&(a.y=e.y),e.xa&&(a.xaxis=e.xa),e.ya&&(a.yaxis=e.ya),e.zLabelVal!==void 0&&(a.z=e.zLabelVal)),In.appendArrayPointValue(a,r,n),a};In.appendArrayPointValue=function(e,r,t){var n=r._arrayAttrs;if(n)for(var a=0;a<n.length;a++){var o=n[a],i=wk(o);if(e[i]===void 0){var l=G0.nestedProperty(r,o).get(),u=Mk(l,t);u!==void 0&&(e[i]=u)}}};In.appendArrayMultiPointValues=function(e,r,t){var n=r._arrayAttrs;if(n)for(var a=0;a<n.length;a++){var o=n[a],i=wk(o);if(e[i]===void 0){for(var l=G0.nestedProperty(r,o).get(),u=new Array(t.length),s=0;s<t.length;s++)u[s]=Mk(l,t[s]);e[i]=u}}};var ote={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function wk(e){return ote[e]||e}function Mk(e,r){if(Array.isArray(r)){if(G0.isArrayOrTypedArray(e)&&G0.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var lte={x:!0,y:!0},ste={"x unified":!0,"y unified":!0};In.isUnifiedHover=function(e){return typeof e!="string"?!1:!!ste[e]};In.isXYhover=function(e){return typeof e!="string"?!1:!!lte[e]}});var Om=xe((u5e,Tk)=>{var qm={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},ute=/([astvzqmhlc])([^astvzqmhlc]*)/gi,fte=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function cte(e){let r=[];return e.replace(ute,(t,n,a)=>{let o=n.toLowerCase(),i=n,l=vte(a);for(o==="m"&&l.length>2&&(r.push([i,...l.splice(0,2)]),o="l",i=i==="m"?"l":"L");;){if(l.length===qm[o])return r.push([i,...l]),"";if(l.length<qm[o])throw new Error("malformed path data");r.push([i,...l.splice(0,qm[o])])}}),r}function vte(e){let r=e.match(fte);return r?r.map(Number):[]}Tk.exports=cte});var Rk=xe((f5e,Lk)=>{"use strict";var hte=Om(),or=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Pr="M0,0Z",Ak=Math.sqrt(2),yl=Math.sqrt(3),Bm=Math.PI,Um=Math.cos,Hm=Math.sin;Lk.exports={circle:{n:0,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?zr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2);return zr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.3,2);return zr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*.4,2),a=or(e*1.2,2);return zr(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*.8/Ak,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return zr(r,t,"M0,"+n+a+o+i+o+i+l+i+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*2/yl,2),a=or(e/2,2),o=or(e,2);return zr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*2/yl,2),a=or(e/2,2),o=or(e,2);return zr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*2/yl,2),a=or(e/2,2),o=or(e,2);return zr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*2/yl,2),a=or(e/2,2),o=or(e,2);return zr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*.6,2),a=or(e*1.2,2);return zr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*.6,2),a=or(e*1.2,2);return zr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*.6,2),a=or(e*1.2,2);return zr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*.6,2),a=or(e*1.2,2);return zr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*.951,2),a=or(e*.588,2),o=or(-e,2),i=or(e*-.309,2),l=or(e*.809,2);return zr(r,t,"M"+n+","+i+"L"+a+","+l+"H-"+a+"L-"+n+","+i+"L0,"+o+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2),a=or(e/2,2),o=or(e*yl/2,2);return zr(r,t,"M"+o+",-"+a+"V"+a+"L0,"+n+"L-"+o+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2),a=or(e/2,2),o=or(e*yl/2,2);return zr(r,t,"M-"+a+","+o+"H"+a+"L"+n+",0L"+a+",-"+o+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*.924,2),a=or(e*.383,2);return zr(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(Ir(r))return Pr;var n=e*1.4,a=or(n*.225,2),o=or(n*.951,2),i=or(n*.363,2),l=or(n*.588,2),u=or(-n,2),s=or(n*-.309,2),f=or(n*.118,2),c=or(n*.809,2),d=or(n*.382,2);return zr(r,t,"M"+a+","+s+"H"+o+"L"+i+","+f+"L"+l+","+c+"L0,"+d+"L-"+l+","+c+"L-"+i+","+f+"L-"+o+","+s+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*.66,2),a=or(e*.38,2),o=or(e*.76,2);return zr(r,t,"M-"+o+",0l-"+a+",-"+n+"h"+o+"l"+a+",-"+n+"l"+a+","+n+"h"+o+"l-"+a+","+n+"l"+a+","+n+"h-"+o+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+o+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*yl*.8,2),a=or(e*.8,2),o=or(e*1.6,2),i=or(e*4,2),l="A "+i+","+i+" 0 0 1 ";return zr(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+o+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*yl*.8,2),a=or(e*.8,2),o=or(e*1.6,2),i=or(e*4,2),l="A "+i+","+i+" 0 0 1 ";return zr(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+o+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.1,2),a=or(e*2,2),o="A "+a+","+a+" 0 0 1 ";return zr(r,t,"M-"+n+",-"+n+o+"-"+n+","+n+o+n+","+n+o+n+",-"+n+o+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.4,2),a=or(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return zr(r,t,"M-"+n+",0"+o+"0,"+n+o+n+",0"+o+"0,-"+n+o+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*.7,2),a=or(e*1.4,2);return zr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.4,2),a=or(e*.7,2);return zr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2);return zr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2);return zr(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2);return zr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2),a=or(e/Ak,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2);return zr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2);return zr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.3,2);return zr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.3,2),a=or(e*.65,2);return zr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.4,2);return zr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2);return zr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.2,2),a=or(e*.85,2);return zr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e/2,2),a=or(e,2);return zr(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.2,2),a=or(e*1.6,2),o=or(e*.8,2);return zr(r,t,"M-"+n+","+o+"L0,0M"+n+","+o+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.2,2),a=or(e*1.6,2),o=or(e*.8,2);return zr(r,t,"M-"+n+",-"+o+"L0,0M"+n+",-"+o+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.2,2),a=or(e*1.6,2),o=or(e*.8,2);return zr(r,t,"M"+o+","+n+"L0,0M"+o+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.2,2),a=or(e*1.6,2),o=or(e*.8,2);return zr(r,t,"M-"+o+","+n+"L0,0M-"+o+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.4,2);return zr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*1.4,2);return zr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2);return zr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2);return zr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2),a=or(e*2,2);return zr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2),a=or(e*2,2);return zr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*2,2),a=or(e,2);return zr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*2,2),a=or(e,2);return zr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2),a=or(e*2,2);return zr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e,2),a=or(e*2,2);return zr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*2,2),a=or(e,2);return zr(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Ir(r))return Pr;var n=or(e*2,2),a=or(e,2);return zr(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Ir(r))return Pr;var n=Bm/2.5,a=2*e*Um(n),o=2*e*Hm(n);return zr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Ir(r))return Pr;var n=Bm/4,a=2*e*Um(n),o=2*e*Hm(n);return zr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function Ir(e){return e===null}var kk,Sk,Ck,Ek;function zr(e,r,t){if((!e||e%360===0)&&!r)return t;if(Ck===e&&Ek===r&&kk===t)return Sk;Ck=e,Ek=r,kk=t;function n(T,m){var k=Um(T),S=Hm(T),b=m[0],M=m[1]+(r||0);return[b*k-M*S,b*S+M*k]}for(var a=e/180*Bm,o=0,i=0,l=hte(t),u="",s=0;s<l.length;s++){var f=l[s],c=f[0],d=o,x=i;if(c==="M"||c==="L")o=+f[1],i=+f[2];else if(c==="m"||c==="l")o+=+f[1],i+=+f[2];else if(c==="H")o=+f[1];else if(c==="h")o+=+f[1];else if(c==="V")i=+f[1];else if(c==="v")i+=+f[1];else if(c==="A"){o=+f[1],i=+f[2];var g=n(a,[+f[6],+f[7]]);f[6]=g[0],f[7]=g[1],f[3]=+f[3]+e}(c==="H"||c==="V")&&(c="L"),(c==="h"||c==="v")&&(c="l"),(c==="m"||c==="l")&&(o-=d,i-=x);var w=n(a,[o,i]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=w[0],f[2]=w[1]),f[0]=c,u+=f[0]+f.slice(1).join(",")}return Sk=u,u}});var Mt=xe((c5e,Kk)=>{"use strict";var xn=nt(),mt=rr(),dte=mt.numberFormat,ml=it(),s1=Cr(),vn=Xr(),pte=ji(),X0=mt.strTranslate,u1=Un(),gte=hl(),yte=Bn(),mte=yte.LINE_SPACING,Uk=xh().DESELECTDIM,bte=wa(),xte=Nm(),_te=eo().appendArrayPointValue,ur=Kk.exports={};ur.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,o=r.color,i=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),i+1&&e.style("font-size",i+"px"),o&&e.call(vn.fill,o),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",Vm(Mte(f))),u&&e.style("text-shadow",u==="auto"?u1.makeTextShadow(vn.contrast(o)):Vm(u)),s&&e.style("text-decoration-line",Vm(Tte(s)))};function Vm(e){return e==="none"?void 0:e}var wte={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Mte(e){return wte[e]}function Tte(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}ur.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};ur.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};ur.setRect=function(e,r,t,n,a){e.call(ur.setPosition,r,t).call(ur.setSize,n,a)};ur.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),o=n.c2p(e.y);if(ml(a)&&ml(o)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",o):r.attr("transform",X0(a,o));else return!1;return!0};ur.translatePoints=function(e,r,t){e.each(function(n){var a=xn.select(this);ur.translatePoint(n,a,r,t)})};ur.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};ur.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var o=a[0].trace,i=o.xcalendar,l=o.ycalendar,u=s1.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){ur.hideOutsideRangePoint(s,xn.select(this),t,n,i,l)})})}};ur.crispRound=function(e,r,t){return!r||!ml(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};ur.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,l=a||o.dash||"";vn.stroke(r,n||o.color),ur.dashLine(r,l,i)};ur.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var o=(((a||[])[0]||{}).trace||{}).line||{},i=r||o.width||0,l=n||o.dash||"";xn.select(this).call(vn.stroke,t||o.color).call(ur.dashLine,l,i)})};ur.dashLine=function(e,r,t){t=+t||0,r=ur.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};ur.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 Hk(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=ur.getPatternAttr,l=a&&(i(a.shape,0,"")||i(a.path,0,""));if(l){var u=i(a.bgcolor,0,null),s=i(a.fgcolor,0,null),f=a.fgopacity,c=i(a.size,0,8),d=i(a.solidity,0,.3),x=r.uid;ur.pattern(e,"point",t,x,l,c,d,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var g=o.type,w="scatterfill-"+r.uid;if(n&&(w="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var T,m;g==="horizontal"?(T={x:o.start,y:0},m={x:o.stop,y:0}):g==="vertical"&&(T={x:0,y:o.start},m={x:0,y:o.stop}),T.x=r._xA.c2p(T.x===void 0?r._extremes.x.min[0].val:T.x,!0),T.y=r._yA.c2p(T.y===void 0?r._extremes.y.min[0].val:T.y,!0),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.max[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.max[0].val:m.y,!0),e.call(Yk,t,w,"linear",o.colorscale,"fill",T,m,!0,!1)}else g==="horizontal"&&(g=g+"reversed"),e.call(ur.gradient,t,w,g,o.colorscale,"fill")}else r.fillcolor&&e.call(vn.fill,r.fillcolor)}ur.singleFillStyle=function(e,r){var t=xn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};Hk(e,a,r,!1)};ur.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=xn.select(this);n[0].trace&&Hk(a,n[0].trace,r,t)})};var Dk=Rk();ur.symbolNames=[];ur.symbolFuncs=[];ur.symbolBackOffs=[];ur.symbolNeedLines={};ur.symbolNoDot={};ur.symbolNoFill={};ur.symbolList=[];Object.keys(Dk).forEach(function(e){var r=Dk[e],t=r.n;ur.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),ur.symbolNames[t]=e,ur.symbolFuncs[t]=r.f,ur.symbolBackOffs[t]=r.backoff||0,r.needLine&&(ur.symbolNeedLines[t]=!0),r.noDot?ur.symbolNoDot[t]=!0:ur.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(ur.symbolNoFill[t]=!0)});var Ate=ur.symbolNames.length,kte="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ur.symbolNumber=function(e){if(ml(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=ur.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Ate||e>=400?0:Math.floor(Math.max(e,0))};function Vk(e,r,t,n){var a=e%100;return ur.symbolFuncs[a](r,t,n)+(e>=200?kte:"")}var Pk=dte("~f"),Gk={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}};ur.gradient=function(e,r,t,n,a,o){var i=Gk[n];return Yk(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function Yk(e,r,t,n,a,o,i,l,u,s){var f=a.length,c;n==="linear"?c={node:"linearGradient",attrs:{x1:i.x,y1:i.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:n==="radial"&&(c={node:"radialGradient",reversed:s});for(var d=new Array(f),x=0;x<f;x++)c.reversed?d[f-1-x]=[Pk((1-a[x][0])*100),a[x][1]]:d[x]=[Pk(a[x][0]*100),a[x][1]];var g=r._fullLayout,w="g"+g._uid+"-"+t,T=g._defs.select(".gradients").selectAll("#"+w).data([n+d.join(";")],mt.identity);T.exit().remove(),T.enter().append(c.node).each(function(){var m=xn.select(this);c.attrs&&m.attr(c.attrs),m.attr("id",w);var k=m.selectAll("stop").data(d);k.exit().remove(),k.enter().append("stop"),k.each(function(S){xn.select(this).attr({offset:S[0]+"%","stop-color":vn.rgb(S[1]),"stop-opacity":vn.parse(S[1]).alpha})})}),e.style(o,Zm(w,r)).style(o+"-opacity",null),e.classed("gradient_filled",!0)}ur.pattern=function(e,r,t,n,a,o,i,l,u,s,f,c){var d=r==="legend";l&&(u==="overlay"?(s=l,f=vn.contrast(s)):(s=void 0,f=l));var x=t._fullLayout,g="p"+x._uid+"-"+n,w,T,m=function(R,E,D,F,z){return F+(z-F)*(R-E)/(D-E)},k,S,b,M,h={},_=vn.rgb(f),y=vn.parse(f).alpha,v=c*y;switch(a){case"/":w=o*Math.sqrt(2),T=o*Math.sqrt(2),k="M-"+w/4+","+T/4+"l"+w/2+",-"+T/2+"M0,"+T+"L"+w+",0M"+w/4*3+","+T/4*5+"l"+w/2+",-"+T/2,S=i*o,M="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case"\\":w=o*Math.sqrt(2),T=o*Math.sqrt(2),k="M"+w/4*3+",-"+T/4+"l"+w/2+","+T/2+"M0,0L"+w+","+T+"M-"+w/4+","+T/4*3+"l"+w/2+","+T/2,S=i*o,M="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case"x":w=o*Math.sqrt(2),T=o*Math.sqrt(2),k="M-"+w/4+","+T/4+"l"+w/2+",-"+T/2+"M0,"+T+"L"+w+",0M"+w/4*3+","+T/4*5+"l"+w/2+",-"+T/2+"M"+w/4*3+",-"+T/4+"l"+w/2+","+T/2+"M0,0L"+w+","+T+"M-"+w/4+","+T/4*3+"l"+w/2+","+T/2,S=o-o*Math.sqrt(1-i),M="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case"|":w=o,T=o,M="path",k="M"+w/2+",0L"+w/2+","+T,S=i*o,M="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case"-":w=o,T=o,M="path",k="M0,"+T/2+"L"+w+","+T/2,S=i*o,M="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case"+":w=o,T=o,M="path",k="M"+w/2+",0L"+w/2+","+T+"M0,"+T/2+"L"+w+","+T/2,S=o-o*Math.sqrt(1-i),M="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case".":w=o,T=o,i<Math.PI/4?b=Math.sqrt(i*o*o/Math.PI):b=m(i,Math.PI/4,1,o/2,o/Math.sqrt(2)),M="circle",h={cx:w/2,cy:T/2,r:b,opacity:v,fill:_};break;default:w=o,T=o,M="path",h={d:a,opacity:v,fill:_};break}var A=[a||"noSh",s||"noBg",f||"noFg",o,i].join(";"),p=x._defs.select(".patterns").selectAll("#"+g).data([A],mt.identity);p.exit().remove(),p.enter().append("pattern").each(function(){var R=xn.select(this);if(R.attr({id:g,width:w+"px",height:T+"px",patternUnits:"userSpaceOnUse",patternTransform:d?"scale(0.8)":""}),s){var E=vn.rgb(s),D=vn.parse(s).alpha,F=R.selectAll("rect").data([0]);F.exit().remove(),F.enter().append("rect").attr({width:w+"px",height:T+"px",fill:E,"fill-opacity":D})}var z=R.selectAll(M).data([0]);z.exit().remove(),z.enter().append(M).attr(h)}),e.style("fill",Zm(g,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};ur.initGradients=function(e){var r=e._fullLayout,t=mt.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),xn.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};ur.initPatterns=function(e){var r=e._fullLayout,t=mt.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),xn.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};ur.getPatternAttr=function(e,r,t){return e&&mt.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};ur.pointStyle=function(e,r,t,n){if(e.size()){var a=ur.makePointStyleFns(r);e.each(function(o){ur.singlePointStyle(o,xn.select(this),r,a,t,n)})}};ur.singlePointStyle=function(e,r,t,n,a,o){var i=t.marker,l=i.line;if(o&&o.i>=0&&e.i===void 0&&(e.i=o.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?i.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||i.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var s=ur.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=$m(e,t),c=Jm(e,t);r.attr("d",Vk(s,u,f,c))}var d=!1,x,g,w;if(e.so)w=l.outlierwidth,g=l.outliercolor,x=i.outliercolor;else{var T=(l||{}).width;w=(e.mlw+1||T+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?g=e.mlcc=n.lineScale(e.mlc):mt.isArrayOrTypedArray(l.color)?g=vn.defaultLine:g=l.color,mt.isArrayOrTypedArray(i.color)&&(x=vn.defaultLine,d=!0),"mc"in e?x=e.mcc=n.markerScale(e.mc):x=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(x=n.selectedColorFn(e))}let m=e.mld||(l||{}).dash;if(m&&ur.dashLine(r,m,w),e.om)r.call(vn.stroke,x).style({"stroke-width":(w||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:w)+"px");var k=i.gradient,S=e.mgt;S?d=!0:S=k&&k.type,mt.isArrayOrTypedArray(S)&&(S=S[0],Gk[S]||(S=0));var b=i.pattern,M=ur.getPatternAttr,h=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(S&&S!=="none"){var _=e.mgc;_?d=!0:_=k.color;var y=t.uid;d&&(y+="-"+e.i),ur.gradient(r,a,y,S,[[0,_],[1,x]],"fill")}else if(h){var v=!1,A=b.fgcolor;!A&&o&&o.color&&(A=o.color,v=!0);var p=M(A,e.i,o&&o.color||null),R=M(b.bgcolor,e.i,null),E=b.fgopacity,D=M(b.size,e.i,8),F=M(b.solidity,e.i,.3);v=v||e.mcc||mt.isArrayOrTypedArray(b.shape)||mt.isArrayOrTypedArray(b.path)||mt.isArrayOrTypedArray(b.bgcolor)||mt.isArrayOrTypedArray(b.fgcolor)||mt.isArrayOrTypedArray(b.size)||mt.isArrayOrTypedArray(b.solidity);var z=t.uid;v&&(z+="-"+e.i),ur.pattern(r,"point",a,z,h,D,F,e.mcc,b.fillmode,R,p,E)}else mt.isArrayOrTypedArray(x)?vn.fill(r,x[e.i]):vn.fill(r,x);w&&vn.stroke(r,g)}};ur.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=ur.tryColorscale(t,""),r.lineScale=ur.tryColorscale(t,"line"),s1.traceIs(e,"symbols")&&(r.ms2mrc=bte.isBubble(e)?xte(e):function(){return(t.size||6)/2}),e.selectedpoints&&mt.extendFlat(r,ur.makeSelectedPointStyleFns(e)),r};ur.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},o=t.marker||{},i=n.marker||{},l=a.opacity,u=o.opacity,s=i.opacity,f=u!==void 0,c=s!==void 0;(mt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(b){var M=b.mo===void 0?a.opacity:b.mo;return b.selected?f?u:M:c?s:Uk*M});var d=a.color,x=o.color,g=i.color;(x||g)&&(r.selectedColorFn=function(b){var M=b.mcc||d;return b.selected?x||M:g||M});var w=a.size,T=o.size,m=i.size,k=T!==void 0,S=m!==void 0;return s1.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(b){var M=b.mrc||w/2;return b.selected?k?T/2:M:S?m/2:M}),r};ur.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},o=t.textfont||{},i=n.textfont||{},l=a.color,u=o.color,s=i.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?u||c:s||(u?c:vn.addOpacity(c,Uk))},r};ur.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ur.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(o,i){o.style("opacity",t.selectedOpacityFn(i))}),t.selectedColorFn&&a.push(function(o,i){vn.fill(o,t.selectedColorFn(i))}),t.selectedSizeFn&&a.push(function(o,i){var l=i.mx||n.symbol||0,u=t.selectedSizeFn(i);o.attr("d",Vk(ur.symbolNumber(l),u,$m(i,r),Jm(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=xn.select(this),l=0;l<a.length;l++)a[l](i,o)})}};ur.tryColorscale=function(e,r){var t=r?mt.nestedProperty(e,r).get():e;if(t){var n=t.color;if((t.colorscale||t._colorAx)&&mt.isArrayOrTypedArray(n))return pte.makeColorScaleFuncFromTrace(t)}return mt.identity};var Gm={start:1,end:-1,middle:0,bottom:1,top:-1};function Xk(e,r,t,n,a){var o=xn.select(e.node().parentNode),i=r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle",l=r.indexOf("left")!==-1?"end":r.indexOf("right")!==-1?"start":"middle",u=n?n/.8+1:0,s=(u1.lineCount(e)-1)*mte+1,f=Gm[l]*u,c=t*.75+Gm[i]*u+(Gm[i]-1)*s*t/2;e.attr("text-anchor",l),a||o.attr("transform",X0(f,c))}function Wk(e,r){var t=e.ts||r.textfont.size;return ml(t)&&t>0?t:0}ur.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=ur.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=xn.select(this),s=o?mt.extractOption(l,r,"txt","texttemplate"):mt.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(o){var f=r._module.formatLabels,c=f?f(l,r,i):{},d={};_te(d,r,l.i),s=mt.texttemplateString({data:[d,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:i._d3locale,template:s})}var x=l.tp||r.textposition,g=Wk(l,r),w=n?n(l):l.tc||r.textfont.color;u.call(ur.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:g,color:w}).text(s).call(u1.convertToTspans,t).call(Xk,x,g,l.mrc)})}};ur.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ur.makeSelectedTextStyleFns(r);e.each(function(n){var a=xn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=Wk(n,r);vn.fill(a,o);var u=s1.traceIs(r,"bar-like");Xk(a,i,l,n.mrc2||n.mrc,u)})}};var Ik=.5;ur.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a<e.length-1;a++)n.push(l1(e[a-1],e[a],e[a+1],r));for(t+="Q"+n[0][0]+" "+e[1],a=2;a<e.length-1;a++)t+="C"+n[a-2][1]+" "+n[a-1][0]+" "+e[a];return t+="Q"+n[e.length-3][1]+" "+e[e.length-1],t};ur.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],n=e.length-1,a=[l1(e[n],e[0],e[1],r)],o;for(o=1;o<n;o++)a.push(l1(e[o-1],e[o],e[o+1],r));for(a.push(l1(e[n-1],e[n],e[0],r)),o=1;o<=n;o++)t+="C"+a[o-1][1]+" "+a[o][0]+" "+e[o];return t+="C"+a[n][1]+" "+a[0][0]+" "+e[0]+"Z",t};var Zk,Jk;function Wu(e,r,t){return t&&(e=$k(e)),r?Ts(e[1]):Ms(e[0])}function Ms(e){var r=xn.round(e,2);return Zk=r,r}function Ts(e){var r=xn.round(e,2);return Jk=r,r}function l1(e,r,t,n){var a=e[0]-r[0],o=e[1]-r[1],i=t[0]-r[0],l=t[1]-r[1],u=Math.pow(a*a+o*o,Ik/2),s=Math.pow(i*i+l*l,Ik/2),f=(s*s*a-u*u*i)*n,c=(s*s*o-u*u*l)*n,d=3*s*(u+s),x=3*u*(u+s);return[[Ms(r[0]+(d&&f/d)),Ts(r[1]+(d&&c/d))],[Ms(r[0]-(x&&f/x)),Ts(r[1]-(x&&c/x))]]}var Ste={hv:function(e,r,t){return"H"+Ms(r[0])+"V"+Wu(r,1,t)},vh:function(e,r,t){return"V"+Ts(r[1])+"H"+Wu(r,0,t)},hvh:function(e,r,t){return"H"+Ms((e[0]+r[0])/2)+"V"+Ts(r[1])+"H"+Wu(r,0,t)},vhv:function(e,r,t){return"V"+Ts((e[1]+r[1])/2)+"H"+Ms(r[0])+"V"+Wu(r,1,t)}},Cte=function(e,r,t){return"L"+Wu(r,0,t)+","+Wu(r,1,t)};ur.steps=function(e){var r=Ste[e]||Cte;return function(t){for(var n="M"+Ms(t[0][0])+","+Ts(t[0][1]),a=t.length,o=1;o<a;o++)n+=r(t[o-1],t[o],o===a-1);return n}};function $k(e,r){var t=e.backoff,n=e.trace,a=e.d,o=e.i;if(t&&n&&n.marker&&n.marker.angle%360===0&&n.line&&n.line.shape!=="spline"){var i=mt.isArrayOrTypedArray(t),l=e,u=r?r[0]:Zk||0,s=r?r[1]:Jk||0,f=l[0],c=l[1],d=f-u,x=c-s,g=Math.atan2(x,d),w=i?t[o]:t;if(w==="auto"){var T=l.i;n.type==="scatter"&&T--;var m=l.marker,k=m.symbol;mt.isArrayOrTypedArray(k)&&(k=k[T]);var S=m.size;mt.isArrayOrTypedArray(S)&&(S=S[T]),w=m?ur.symbolBackOffs[ur.symbolNumber(k)]*S:0,w+=ur.getMarkerStandoff(a[T],n)||0}var b=f-w*Math.cos(g),M=c-w*Math.sin(g);(b<=f&&b>=u||b>=f&&b<=u)&&(M<=c&&M>=s||M>=c&&M<=s)&&(e=[b,M])}return e}ur.applyBackoff=$k;ur.makeTester=function(){var e=mt.ensureSingleById(xn.select("body"),"svg","js-plotly-tester",function(t){t.attr(gte.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=mt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});ur.tester=e,ur.testref=r};ur.savedBBoxes={};var Ym=0,Ete=1e4;ur.bBox=function(e,r,t){t||(t=zk(e));var n;if(t){if(n=ur.savedBBoxes[t],n)return mt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=zk(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=ur.bBox(a,!1,t);return o&&(u.left+=o,u.right+=o),i&&(u.top+=i,u.bottom+=i),u}if(t+="~"+o+"~"+i+"~"+l,n=ur.savedBBoxes[t],n)return mt.extendFlat({},n)}}var s,f;r?s=e:(f=ur.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),xn.select(s).attr("transform",null).call(u1.positionText,0,0);var c=s.getBoundingClientRect(),d=ur.testref.node().getBoundingClientRect();r||f.removeChild(s);var x={height:c.height,width:c.width,left:c.left-d.left,top:c.top-d.top,right:c.right-d.left,bottom:c.bottom-d.top};return Ym>=Ete&&(ur.savedBBoxes={},Ym=0),t&&(ur.savedBBoxes[t]=x),Ym++,mt.extendFlat({},x)};function zk(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}ur.setClipUrl=function(e,r,t){e.attr("clip-path",Zm(r,t))};function Zm(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}ur.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};ur.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||0,t=t||0,i=i.replace(n,"").trim(),i+=X0(r,t),i=i.trim(),e[o]("transform",i),i};ur.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};ur.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||1,t=t||1,i=i.replace(n,"").trim(),i+="scale("+r+","+t+")",i=i.trim(),e[o]("transform",i),i};var Lte=/\s*sc.*/;ur.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(Lte,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var Rte=/translate\([^)]*\)\s*$/;ur.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=xn.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),u=(a.attr("transform")||"").match(Rte);r===1&&t===1?n=[]:n=[X0(i,l),"scale("+r+","+t+")",X0(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function Jm(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}ur.getMarkerStandoff=Jm;var Y0=Math.atan2,ws=Math.cos,Zu=Math.sin;function Fk(e,r){var t=r[0],n=r[1];return[t*ws(e)-n*Zu(e),t*Zu(e)+n*ws(e)]}var Nk,qk,Ok,Bk,Xm,Wm;function $m(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!ml(t)||mt.isArrayOrTypedArray(t))&&(t=0));var n,a,o=r.marker.angleref;if(o==="previous"||o==="north"){if(r._geo){var i=r._geo.project(e.lonlat);n=i[0],a=i[1]}else{var l=r._xA,u=r._yA;if(l&&u)n=l.c2p(e.x),a=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([s,f+1e-5]),d=r._geo.project([s+1e-5,f]),x=Y0(d[1]-a,d[0]-n),g=Y0(c[1]-a,c[0]-n),w;if(o==="north")w=t/180*Math.PI;else if(o==="previous"){var T=s/180*Math.PI,m=f/180*Math.PI,k=Nk/180*Math.PI,S=qk/180*Math.PI,b=k-T,M=ws(S)*Zu(b),h=Zu(S)*ws(m)-ws(S)*Zu(m)*ws(b);w=-Y0(M,h)-Math.PI,Nk=s,qk=f}var _=Fk(x,[ws(w),0]),y=Fk(g,[Zu(w),0]);t=Y0(_[1]+y[1],_[0]+y[0])/Math.PI*180,o==="previous"&&!(Wm===r.uid&&e.i===Xm+1)&&(t=null)}if(o==="previous"&&!r._geo)if(Wm===r.uid&&e.i===Xm+1&&ml(n)&&ml(a)){var v=n-Ok,A=a-Bk,p=r.line&&r.line.shape||"",R=p.slice(p.length-1);R==="h"&&(A=0),R==="v"&&(v=0),t+=Y0(A,v)/Math.PI*180+90}else t=null}return Ok=n,Bk=a,Xm=e.i,Wm=r.uid,t}ur.getMarkerAngle=$m});var W0=xe((v5e,rS)=>{"use strict";var Ju=nt(),Dte=it(),Pte=bn(),Km=Cr(),As=rr(),Qk=As.strTranslate,f1=Mt(),c1=Xr(),$u=Un(),jk=xh(),Ite=Bn().OPPOSITE_SIDE,eS=/ [XY][0-9]* /,Qm=1.6,jm=1.6;function zte(e,r,t){var n=e._fullLayout,a=t.propContainer,o=t.propName,i=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,c=t.containerGroup,d=1,x=a.title,g=(x&&x.text?x.text:"").trim(),w=!1,T=x&&x.font?x.font:{},m=T.family,k=T.size,S=T.color,b=T.weight,M=T.style,h=T.variant,_=T.textcase,y=T.lineposition,v=T.shadow,A=t.subtitlePropName,p=!!A,R=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},D=(E.text||"").trim(),F=!1,z=1,I=E.font,L=I.family,P=I.size,O=I.color,U=I.weight,V=I.style,K=I.variant,j=I.textcase,G=I.lineposition,q=I.shadow,J;o==="title.text"?J="titleText":o.indexOf("axis")!==-1?J="axisTitleText":o.indexOf("colorbar")!==-1&&(J="colorbarTitleText");var te=e._context.edits[J];function Z(Ee,le){return Ee===void 0||le===void 0?!1:Ee.replace(eS," % ")===le.replace(eS," % ")}g===""?d=0:Z(g,i)&&(te||(g=""),d=.2,w=!0),p&&(D===""?z=0:Z(D,R)&&(te||(D=""),z=.2,F=!0)),t._meta?g=As.templateString(g,t._meta):n._meta&&(g=As.templateString(g,n._meta));var ie=g||D||te,Q;c||(c=As.ensureSingle(n._infolayer,"g","g-"+r),Q=n._hColorbarMoveTitle);var re=c.selectAll("text."+r).data(ie?[0]:[]);re.enter().append("text"),re.text(g).attr("class",r),re.exit().remove();var se=null,ee=r+"-subtitle",ae=D||te;if(p&&(se=c.selectAll("text."+ee).data(ae?[0]:[]),se.enter().append("text"),se.text(D).attr("class",ee),se.exit().remove()),!ie)return c;function ce(Ee,le){As.syncOrAsync([Me,ke],{title:Ee,subtitle:le})}function Me(Ee){var le=Ee.title,Y=Ee.subtitle,$;!f&&Q&&(f={}),f?($="",f.rotate&&($+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||Q)&&($+=Qk(0,(f.offset||0)-(Q||0)))):$=null,le.attr("transform",$);function pe(ye){if(ye){var de=Ju.select(ye.node().parentNode).select("."+ee);if(!de.empty()){var _e=ye.node().getBBox();if(_e.height){var Ae=_e.y+_e.height+Qm*P;de.attr("y",Ae)}}}}if(le.style("opacity",d*c1.opacity(S)).call(f1.font,{color:c1.rgb(S),size:Ju.round(k,2),family:m,weight:b,style:M,variant:h,textcase:_,shadow:v,lineposition:y}).attr(s).call($u.convertToTspans,e,pe),Y&&!Y.empty()){var oe=c.select("."+r+"-math-group"),ve=le.node().getBBox(),he=oe.node()?oe.node().getBBox():void 0,me=he?he.y+he.height+Qm*P:ve.y+ve.height+jm*P,be=As.extendFlat({},s,{y:me});Y.attr("transform",$),Y.style("opacity",z*c1.opacity(O)).call(f1.font,{color:c1.rgb(O),size:Ju.round(P,2),family:L,weight:U,style:V,variant:K,textcase:j,shadow:q,lineposition:G}).attr(be).call($u.convertToTspans,e)}return Pte.previousPromises(e)}function ke(Ee){var le=Ee.title,Y=Ju.select(le.node().parentNode);if(u&&u.selection&&u.side&&g){Y.attr("transform",null);var $=Ite[u.side],pe=u.side==="left"||u.side==="top"?-1:1,oe=Dte(u.pad)?u.pad:2,ve=f1.bBox(Y.node()),he={t:0,b:0,l:0,r:0},me=e._fullLayout._reservedMargin;for(var be in me)for(var ye in me[be]){var de=me[be][ye];he[ye]=Math.max(he[ye],de)}var _e={left:he.l,top:he.t,right:n.width-he.r,bottom:n.height-he.b},Ae=u.maxShift||pe*(_e[u.side]-ve[u.side]),Ie=0;if(Ae<0)Ie=Ae;else{var Pe=u.offsetLeft||0,Ye=u.offsetTop||0;ve.left-=Pe,ve.right-=Pe,ve.top-=Ye,ve.bottom-=Ye,u.selection.each(function(){var Oe=f1.bBox(this);As.bBoxIntersect(ve,Oe,oe)&&(Ie=Math.max(Ie,pe*(Oe[u.side]-ve[$])+oe))}),Ie=Math.min(Ae,Ie),a._titleScoot=Math.abs(Ie)}if(Ie>0||Ae<0){var qe={left:[-Ie,0],right:[Ie,0],top:[0,-Ie],bottom:[0,Ie]}[u.side];Y.attr("transform",Qk(qe[0],qe[1]))}}}re.call(ce,se);function Se(Ee,le){Ee.text(le).on("mouseover.opacity",function(){Ju.select(this).transition().duration(jk.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Ju.select(this).transition().duration(jk.HIDE_PLACEHOLDER).style("opacity",0)})}if(te&&(g?re.on(".opacity",null):(Se(re,i),w=!0),re.call($u.makeEditable,{gd:e}).on("edit",function(Ee){l!==void 0?Km.call("_guiRestyle",e,o,Ee,l):Km.call("_guiRelayout",e,o,Ee)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ce)}).on("input",function(Ee){this.text(Ee||" ").call($u.positionText,s.x,s.y)}),p)){if(p&&!g){var ge=re.node().getBBox(),Le=ge.y+ge.height+jm*P;se.attr("y",Le)}D?se.on(".opacity",null):(Se(se,R),F=!0),se.call($u.makeEditable,{gd:e}).on("edit",function(Ee){Km.call("_guiRelayout",e,"title.subtitle.text",Ee)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ce)}).on("input",function(Ee){this.text(Ee||" ").call($u.positionText,se.attr("x"),se.attr("y"))})}return re.classed("js-placeholder",w),se&&!se.empty()&&se.classed("js-placeholder",F),c}rS.exports={draw:zte,SUBTITLE_PADDING_EM:jm,SUBTITLE_PADDING_MATHJAX_EM:Qm}});var b1=xe((h5e,oS)=>{"use strict";var Fte=nt(),Nte=pu().utcFormat,Tt=rr(),qte=Tt.numberFormat,ro=it(),bl=Tt.cleanNumber,Ote=Tt.ms2DateTime,tS=Tt.dateTime2ms,to=Tt.ensureNumber,nS=Tt.isArrayOrTypedArray,xl=pn(),v1=xl.FP_SAFE,Ti=xl.BADNUM,Bte=xl.LOG_CLIP,Ute=xl.ONEWEEK,h1=xl.ONEDAY,d1=xl.ONEHOUR,aS=xl.ONEMIN,iS=xl.ONESEC,p1=fn(),m1=mn(),g1=m1.HOUR_PATTERN,y1=m1.WEEKDAY_PATTERN;function Z0(e){return Math.pow(10,e)}function e3(e){return e!=null}oS.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(b,M){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&M&&r.range&&r.range.length===2){var h=r.range[0],_=r.range[1];return .5*(h+_-2*Bte*Math.abs(h-_))}else return Ti}function i(b,M,h,_){if((_||{}).msUTC&&ro(b))return+b;var y=tS(b,h||r.calendar);if(y===Ti)if(ro(b)){b=+b;var v=Math.floor(Tt.mod(b+.05,1)*10),A=Math.round(b-v/10);y=tS(new Date(A))+v/10}else return Ti;return y}function l(b,M,h){return Ote(b,M,h||r.calendar)}function u(b){return r._categories[Math.round(b)]}function s(b){if(e3(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 Ti}function f(b,M){for(var h=new Array(M),_=0;_<M;_++){var y=(b[0]||[])[_],v=(b[1]||[])[_];h[_]=c([y,v])}return h}function c(b){if(r._categoriesMap)return r._categoriesMap[b]}function d(b){var M=c(b);if(M!==void 0)return M;if(ro(b))return+b}function x(b){return ro(b)?+b:c(b)}function g(b,M,h){return Fte.round(h+M*b,2)}function w(b,M,h){return(b-h)/M}var T=function(M){return ro(M)?g(M,r._m,r._b):Ti},m=function(b){return w(b,r._m,r._b)};if(r.rangebreaks){var k=a==="y";T=function(b){if(!ro(b))return Ti;var M=r._rangebreaks.length;if(!M)return g(b,r._m,r._b);var h=k;r.range[0]>r.range[1]&&(h=!h);for(var _=h?-1:1,y=_*b,v=0,A=0;A<M;A++){var p=_*r._rangebreaks[A].min,R=_*r._rangebreaks[A].max;if(y<p)break;if(y>R)v=A+1;else{v=y<(p+R)/2?A:A+1;break}}var E=r._B[v]||0;return isFinite(E)?g(b,r._m2,E):0},m=function(b){var M=r._rangebreaks.length;if(!M)return w(b,r._m,r._b);for(var h=0,_=0;_<M&&!(b<r._rangebreaks[_].pmin);_++)b>r._rangebreaks[_].pmax&&(h=_+1);return w(b,r._m2,r._B[h])}}r.c2l=r.type==="log"?o:to,r.l2c=r.type==="log"?Z0:to,r.l2p=T,r.p2l=m,r.c2p=r.type==="log"?function(b,M){return T(o(b,M))}:T,r.p2c=r.type==="log"?function(b){return Z0(m(b))}:m,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=bl,r.c2d=r.c2r=r.l2d=r.l2r=to,r.d2p=r.r2p=function(b){return r.l2p(bl(b))},r.p2d=r.p2r=m,r.cleanPos=to):r.type==="log"?(r.d2r=r.d2l=function(b,M){return o(bl(b),M)},r.r2d=r.r2c=function(b){return Z0(bl(b))},r.d2c=r.r2l=bl,r.c2d=r.l2r=to,r.c2r=o,r.l2d=Z0,r.d2p=function(b,M){return r.l2p(r.d2r(b,M))},r.p2d=function(b){return Z0(m(b))},r.r2p=function(b){return r.l2p(bl(b))},r.p2r=m,r.cleanPos=to):r.type==="date"?(r.d2r=r.r2d=Tt.identity,r.d2c=r.r2c=r.d2l=r.r2l=i,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,M,h){return r.l2p(i(b,0,h))},r.p2d=r.p2r=function(b,M,h){return l(m(b),M,h)},r.cleanPos=function(b){return Tt.cleanDate(b,Ti,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=d,r.r2c=function(b){var M=x(b);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=to,r.r2l=x,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return u(m(b))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:to(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=d,r.r2c=function(b){var M=d(b);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=to,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return u(m(b))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:to(b)},r.setupMultiCategory=function(b){var M=r._traceIndices,h,_,y=r._matchGroup;if(y&&r._categories.length===0){for(var v in y)if(v!==n){var A=t[p1.id2name(v)];M=M.concat(A._traceIndices)}}var p=[[0,{}],[0,{}]],R=[];for(h=0;h<M.length;h++){var E=b[M[h]];if(a in E){var D=E[a],F=E._length||Tt.minRowLength(D);if(nS(D[0])&&nS(D[1]))for(_=0;_<F;_++){var z=D[0][_],I=D[1][_];e3(z)&&e3(I)&&(R.push([z,I]),z in p[0][1]||(p[0][1][z]=p[0][0]++),I in p[1][1]||(p[1][1][I]=p[1][0]++))}}}for(R.sort(function(L,P){var O=p[0][1],U=O[L[0]]-O[P[0]];if(U)return U;var V=p[1][1];return V[L[1]]-V[P[1]]}),h=0;h<R.length;h++)s(R[h])}),r.fraction2r=function(b){var M=r.r2l(r.range[0]),h=r.r2l(r.range[1]);return r.l2r(M+b*(h-M))},r.r2fraction=function(b){var M=r.r2l(r.range[0]),h=r.r2l(r.range[1]);return(r.r2l(b)-M)/(h-M)},r.limitRange=function(b){var M=r.minallowed,h=r.maxallowed;if(!(M===void 0&&h===void 0)){b||(b="range");var _=Tt.nestedProperty(r,b).get(),y=Tt.simpleMap(_,r.r2l),v=y[1]<y[0];v&&y.reverse();var A=Tt.simpleMap([M,h],r.r2l);if(M!==void 0&&y[0]<A[0]&&(_[v?1:0]=M,y[0]=A[0]),h!==void 0&&y[1]>A[1]&&(_[v?0:1]=h,y[1]=A[1]),y[0]>=y[1])if(M!==void 0){var p=A[0]+1;h!==void 0&&(p=Math.min(p,A[1])),_[v?0:1]=r.l2r(p)}else h!==void 0&&(_[v?1:0]=r.l2r(A[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 h=Tt.nestedProperty(r,b).get(),_,y;if(r.type==="date"?y=Tt.dfltRange(r.calendar):a==="y"?y=m1.DFLTRANGEY:r._name==="realaxis"?y=[0,1]:y=M.dfltRange||m1.DFLTRANGEX,y=y.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(y[0]=0),!h||h.length!==2){Tt.nestedProperty(r,b).set(y);return}var v=h[0]===null,A=h[1]===null;for(r.type==="date"&&!r.autorange&&(h[0]=Tt.cleanDate(h[0],Ti,r.calendar),h[1]=Tt.cleanDate(h[1],Ti,r.calendar)),_=0;_<2;_++)if(r.type==="date"){if(!Tt.isDateTime(h[_],r.calendar)){r[b]=y;break}if(r.r2l(h[0])===r.r2l(h[1])){var p=Tt.constrain(r.r2l(h[0]),Tt.MIN_MS+1e3,Tt.MAX_MS-1e3);h[0]=r.l2r(p-1e3),h[1]=r.l2r(p+1e3);break}}else{if(!ro(h[_]))if(!(v||A)&&ro(h[1-_]))h[_]=h[1-_]*(_?10:.1);else{r[b]=y;break}if(h[_]<-v1?h[_]=-v1:h[_]>v1&&(h[_]=v1),h[0]===h[1]){var R=Math.max(1,Math.abs(h[0]*1e-6));h[0]-=R,h[1]+=R}}},r.setScale=function(b){var M=t._size;if(r.overlaying){var h=p1.getFromId({_fullLayout:t},r.overlaying);r.domain=h.domain}var _=b&&r._r?"_r":"range",y=r.calendar;r.cleanRange(_);var v=r.r2l(r[_][0],y),A=r.r2l(r[_][1],y),p=a==="y";if(p?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(v-A),r._b=-r._m*A):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(A-v),r._b=-r._m*v),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,E;if(r._rangebreaks=r.locateBreaks(Math.min(v,A),Math.max(v,A)),r._rangebreaks.length){for(R=0;R<r._rangebreaks.length;R++)E=r._rangebreaks[R],r._lBreaks+=Math.abs(E.max-E.min);var D=p;v>A&&(D=!D),D&&r._rangebreaks.reverse();var F=D?-1:1;for(r._m2=F*r._length/(Math.abs(A-v)-r._lBreaks),r._B.push(-r._m2*(p?A:v)),R=0;R<r._rangebreaks.length;R++)E=r._rangebreaks[R],r._B.push(r._B[r._B.length-1]-F*r._m2*(E.max-E.min));for(R=0;R<r._rangebreaks.length;R++)E=r._rangebreaks[R],E.pmin=T(E.min),E.pmax=T(E.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||[],h,_,y,v,A;M._cachedPatterns||(M._cachedPatterns=M.map(function(O){return O.enabled&&O.bounds?Tt.simpleMap(O.bounds,O.pattern?bl:r.d2c):null})),M._cachedValues||(M._cachedValues=M.map(function(O){return O.enabled&&O.values?Tt.simpleMap(O.values,r.d2c).sort(Tt.sorterAsc):null}));for(var p=0;p<M.length;p++){var R=M[p];if(R.enabled){if(R.bounds){var E=R.pattern;switch(h=M._cachedPatterns[p],_=h[0],y=h[1],E){case y1:A=new Date(b),v=A.getUTCDay(),_>y&&(y+=7,v<_&&(v+=7));break;case g1:A=new Date(b);var D=A.getUTCHours(),F=A.getUTCMinutes(),z=A.getUTCSeconds(),I=A.getUTCMilliseconds();v=D+(F/60+z/3600+I/36e5),_>y&&(y+=24,v<_&&(v+=24));break;case"":v=b;break}if(v>=_&&v<y)return Ti}else for(var L=M._cachedValues[p],P=0;P<L.length;P++)if(_=L[P],y=_+R.dvalue,b>=_&&b<y)return Ti}}return b},r.locateBreaks=function(b,M){var h,_,y,v,A=[];if(!r.rangebreaks)return A;var p=r.rangebreaks.slice().sort(function(V,K){return V.pattern===y1&&K.pattern===g1?-1:K.pattern===y1&&V.pattern===g1?1:0}),R=function(V,K){if(V=Tt.constrain(V,b,M),K=Tt.constrain(K,b,M),V!==K){for(var j=!0,G=0;G<A.length;G++){var q=A[G];V<q.max&&K>=q.min&&(V<q.min&&(q.min=V),K>q.max&&(q.max=K),j=!1)}j&&A.push({min:V,max:K})}};for(h=0;h<p.length;h++){var E=p[h];if(E.enabled)if(E.bounds){var D=b,F=M;E.pattern&&(D=Math.floor(D)),_=Tt.simpleMap(E.bounds,E.pattern?bl:r.r2l),y=_[0],v=_[1];var z=new Date(D),I,L;switch(E.pattern){case y1:L=Ute,I=((v<y?7:0)+(v-y))*h1,D+=y*h1-(z.getUTCDay()*h1+z.getUTCHours()*d1+z.getUTCMinutes()*aS+z.getUTCSeconds()*iS+z.getUTCMilliseconds());break;case g1:L=h1,I=((v<y?24:0)+(v-y))*d1,D+=y*d1-(z.getUTCHours()*d1+z.getUTCMinutes()*aS+z.getUTCSeconds()*iS+z.getUTCMilliseconds());break;default:D=Math.min(_[0],_[1]),F=Math.max(_[0],_[1]),L=F-D,I=L}for(var P=D;P<F;P+=L)R(P,P+I)}else for(var O=Tt.simpleMap(E.values,r.d2c),U=0;U<O.length;U++)y=O[U],v=y+E.dvalue,R(y,v)}return A.sort(function(V,K){return V.min-K.min}),A},r.makeCalcdata=function(b,M,h){var _,y,v,A,p=r.type,R=p==="date"&&b[M+"calendar"];if(M in b){if(_=b[M],A=b._length||Tt.minRowLength(_),Tt.isTypedArray(_)&&(p==="linear"||p==="log")){if(A===_.length)return _;if(_.subarray)return _.subarray(0,A)}if(p==="multicategory")return f(_,A);for(y=new Array(A),v=0;v<A;v++)y[v]=r.d2c(_[v],0,R,h)}else{var E=M+"0"in b?r.d2c(b[M+"0"],0,R):0,D=b["d"+M]?Number(b["d"+M]):1;for(_=b[{x:"y",y:"x"}[M]],A=b._length||_.length,y=new Array(A),v=0;v<A;v++)y[v]=E+v*D}if(r.rangebreaks)for(v=0;v<A;v++)y[v]=r.maskBreaks(y[v]);return y},r.isValidRange=function(b,M){return Array.isArray(b)&&b.length===2&&(M&&b[0]===null||ro(r.r2l(b[0])))&&(M&&b[1]===null||ro(r.r2l(b[1])))},r.getAutorangeDflt=function(b,M){var h=!r.isValidRange(b,"nullOk");return h&&M&&M.reverseDflt?h="reversed":b&&(b[0]===null&&b[1]===null?h=!0:b[0]===null&&b[1]!==null?h="min":b[0]!==null&&b[1]===null&&(h="max")),h},r.isReversed=function(){var b=r.autorange;return b==="reversed"||b==="min reversed"||b==="max reversed"},r.isPtWithinRange=function(b,M){var h=r.c2l(b[a],null,M),_=r.r2l(r.range[0]),y=r.r2l(r.range[1]);return _<y?_<=h&&h<=y:y<=h&&h<=_},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var b=r._matchGroup;if(b){var M=null,h=null;for(var _ in b){var y=t[p1.id2name(_)];if(y._categories){M=y._categories,h=y._categoriesMap;break}}M&&h?(r._categories=M,r._categoriesMap=h):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var v=0;v<r._initialCategories.length;v++)s(r._initialCategories[v])},r.sortByInitialCategories=function(){var b=[];if(r._emptyCategories(),r._initialCategories)for(var M=0;M<r._initialCategories.length;M++)s(r._initialCategories[M]);b=b.concat(r._traceIndices);var h=r._matchGroup;for(var _ in h)if(n!==_){var y=t[p1.id2name(_)];y._categories=r._categories,y._categoriesMap=r._categoriesMap,b=b.concat(y._traceIndices)}return b};var S=t._d3locale;r.type==="date"&&(r._dateFormat=S?S.timeFormat:Nte,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=S?S.numberFormat:qte,delete r._minDtick,delete r._forceTick0}});var t3=xe((d5e,fS)=>{"use strict";var lS=it(),r3=rr(),Hte=pn().BADNUM,x1=r3.isArrayOrTypedArray,Vte=r3.isDateTime,Gte=r3.cleanNumber,sS=Math.round;fS.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(x1(a)&&!a.length)return"-";if(!o&&Jte(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;l<a.length;l++)if(x1(a[l]))for(var u=0;u<a[l].length;u++)i.push(a[l][u]);a=i}if(Wte(a,t))return"date";var s=n.autotypenumbers!=="strict";return Zte(a,s)?"category":Xte(a,s)?"linear":"-"};function Yte(e,r){return r?lS(e):typeof e=="number"}function Xte(e,r){for(var t=e.length,n=0;n<t;n++)if(Yte(e[n],r))return!0;return!1}function Wte(e,r){for(var t=e.length,n=uS(t),a=0,o=0,i={},l=0;l<t;l+=n){var u=sS(l),s=e[u],f=String(s);i[f]||(i[f]=1,Vte(s,r)&&a++,lS(s)&&o++)}return a>o*2}function uS(e){return Math.max(1,(e-1)/1e3)}function Zte(e,r){for(var t=e.length,n=uS(t),a=0,o=0,i={},l=0;l<t;l+=n){var u=sS(l),s=e[u],f=String(s);if(!i[f]){i[f]=1;var c=typeof s;c==="boolean"?o++:(r?Gte(s)!==Hte:c==="number")?a++:c==="string"&&o++}}return o>a*2}function Jte(e){return x1(e[0])&&x1(e[1])}});var Ku=xe((p5e,mS)=>{"use strict";var $te=nt(),dS=it(),_l=rr(),_1=pn().FP_SAFE,Kte=Cr(),Qte=Mt(),pS=fn(),jte=pS.getFromId,ene=pS.isLinked;mS.exports={applyAutorangeOptions:yS,getAutoRange:n3,makePadFn:a3,doAutoRange:tne,findExtremes:nne,concatExtremes:l3};function n3(e,r){var t,n,a=[],o=e._fullLayout,i=a3(o,r,0),l=a3(o,r,1),u=l3(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return _l.simpleMap(r.range,r.r2l);var c=s[0].val,d=f[0].val;for(t=1;t<s.length&&c===d;t++)c=Math.min(c,s[t].val);for(t=1;t<f.length&&c===d;t++)d=Math.max(d,f[t].val);var x=r.autorange,g=x==="reversed"||x==="min reversed"||x==="max reversed";if(!g&&r.range){var w=_l.simpleMap(r.range,r.r2l);g=w[1]<w[0]}r.autorange==="reversed"&&(r.autorange=!0);var T=r.rangemode,m=T==="tozero",k=T==="nonnegative",S=r._length,b=S/10,M=0,h,_,y,v,A,p;for(t=0;t<s.length;t++)for(h=s[t],n=0;n<f.length;n++)_=f[n],p=_.val-h.val-cS(r,h.val,_.val),p>0&&(A=S-i(h)-l(_),A>b?p/A>M&&(y=h,v=_,M=p/A):p/S>M&&(y={val:h.val,nopad:1},v={val:_.val,nopad:1},M=p/S));function R(I,L){return Math.max(I,l(L))}if(c===d){var E=c-1,D=c+1;if(m)if(c===0)a=[0,1];else{var F=(c>0?f:s).reduce(R,0),z=c/(1-Math.min(.5,F/S));a=c>0?[0,z]:[z,0]}else k?a=[Math.max(0,E),Math.max(1,D)]:a=[E,D]}else m?(y.val>=0&&(y={val:0,nopad:1}),v.val<=0&&(v={val:0,nopad:1})):k&&(y.val-M*i(y)<0&&(y={val:0,nopad:1}),v.val<=0&&(v={val:1,nopad:1})),M=(v.val-y.val-cS(r,h.val,_.val))/(S-i(y)-l(v)),a=[y.val-M*i(y),v.val+M*l(v)];return a=yS(a,r),r.limitRange&&r.limitRange(),g&&a.reverse(),_l.simpleMap(a,r.l2r||Number)}function cS(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),o=0;o<a.length;o++){var i=a[o];n+=i.max-i.min}return n}function a3(e,r,t){var n=.05*r._length,a=r._anchorAxis||{};if((r.ticklabelposition||"").indexOf("inside")!==-1||(a.ticklabelposition||"").indexOf("inside")!==-1){var o=r.isReversed();if(!o){var i=_l.simpleMap(r.range,r.r2l);o=i[1]<i[0]}o&&(t=!t)}var l=0;return ene(e,r._id)||(l=rne(e,r,t)),n=Math.max(l,n),r.constrain==="domain"&&r._inputDomain&&(n*=(r._inputDomain[1]-r._inputDomain[0])/(r.domain[1]-r.domain[0])),function(s){return s.nopad?0:s.pad+(s.extrapad?n:l)}}var vS=3;function rne(e,r,t){var n=0,a=r._id.charAt(0)==="x";for(var o in e._plots){var i=e._plots[o];if(!(r._id!==i.xaxis._id&&r._id!==i.yaxis._id)){var l=(a?i.yaxis:i.xaxis)||{};if((l.ticklabelposition||"").indexOf("inside")!==-1&&(!t&&(l.side==="left"||l.side==="bottom")||t&&(l.side==="top"||l.side==="right"))){if(l._vals){var u=_l.deg2rad(l._tickAngles[l._id+"tick"]||0),s=Math.abs(Math.cos(u)),f=Math.abs(Math.sin(u));if(!l._vals[0].bb){var c=l._id+"tick",d=l._selections[c];d.each(function(k){var S=$te.select(this),b=S.select(".text-math-group");b.empty()&&(k.bb=Qte.bBox(S.node()))})}for(var x=0;x<l._vals.length;x++){var g=l._vals[x],w=g.bb;if(w){var T=2*vS+w.width,m=2*vS+w.height;n=Math.max(n,a?Math.max(T*s,m*f):Math.max(m*s,T*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(n+=l.ticklen||0)}}}return n}function l3(e,r,t){var n=r._id,a=e._fullData,o=e._fullLayout,i=[],l=[],u,s,f;function c(T,m){for(u=0;u<m.length;u++){var k=T[m[u]],S=(k._extremes||{})[n];if(k.visible===!0&&S){for(s=0;s<S.min.length;s++)f=S.min[s],i3(i,f.val,f.pad,{extrapad:f.extrapad});for(s=0;s<S.max.length;s++)f=S.max[s],o3(l,f.val,f.pad,{extrapad:f.extrapad})}}}if(c(a,r._traceIndices),c(o.annotations||[],r._annIndices||[]),c(o.shapes||[],r._shapeIndices||[]),r._matchGroup&&!t){for(var d in r._matchGroup)if(d!==r._id){var x=jte(e,d),g=l3(e,x,!0),w=r._length/x._length;for(s=0;s<g.min.length;s++)f=g.min[s],i3(i,f.val,f.pad*w,{extrapad:f.extrapad});for(s=0;s<g.max.length;s++)f=g.max[s],o3(l,f.val,f.pad*w,{extrapad:f.extrapad})}}return{min:i,max:l}}function tne(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():n3(e,r),r._r=r.range.slice(),r._rl=_l.simpleMap(r._r,r.r2l);var n=r._input,a={};a[r._attr+".range"]=r.range,a[r._attr+".autorange"]=r.autorange,Kte.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,a),n.range=r.range.slice(),n.autorange=r.autorange}var o=r._anchorAxis;if(o&&o.rangeslider){var i=o.rangeslider[r._name];i&&i.rangemode==="auto"&&(i.range=n3(e,r)),o._input.rangeslider[r._name]=_l.extendFlat({},i)}}function nne(e,r,t){t||(t={}),e._m||e.setScale();var n=[],a=[],o=r.length,i=t.padded||!1,l=t.tozero&&(e.type==="linear"||e.type==="-"),u=e.type==="log",s=!1,f=t.vpadLinearized||!1,c,d,x,g,w,T,m,k,S;function b(R){if(Array.isArray(R))return s=!0,function(D){return Math.max(Number(R[D]||0),0)};var E=Math.max(Number(R||0),0);return function(){return E}}var M=b((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),h=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),_=b(t.vpadplus||t.vpad),y=b(t.vpadminus||t.vpad);if(!s){if(k=1/0,S=-1/0,u)for(c=0;c<o;c++)d=r[c],d<k&&d>0&&(k=d),d>S&&d<_1&&(S=d);else for(c=0;c<o;c++)d=r[c],d<k&&d>-_1&&(k=d),d>S&&d<_1&&(S=d);r=[k,S],o=2}var v={tozero:l,extrapad:i};function A(R){x=r[R],dS(x)&&(T=M(R),m=h(R),f?(g=e.c2l(x)-y(R),w=e.c2l(x)+_(R)):(k=x-y(R),S=x+_(R),u&&k<S/10&&(k=S/10),g=e.c2l(k),w=e.c2l(S)),l&&(g=Math.min(0,g),w=Math.max(0,w)),hS(g)&&i3(n,g,m,v),hS(w)&&o3(a,w,T,v))}var p=Math.min(6,o);for(c=0;c<p;c++)A(c);for(c=o-1;c>=p;c--)A(c);return{min:n,max:a,opts:t}}function i3(e,r,t,n){gS(e,r,t,n,ane)}function o3(e,r,t,n){gS(e,r,t,n,ine)}function gS(e,r,t,n,a){for(var o=n.tozero,i=n.extrapad,l=!0,u=0;u<e.length&&l;u++){var s=e[u];if(a(s.val,r)&&s.pad>=t&&(s.extrapad||!i)){l=!1;break}else a(r,s.val)&&s.pad<=t&&(i||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=o&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:i})}}function hS(e){return dS(e)&&Math.abs(e)<_1}function ane(e,r){return e<=r}function ine(e,r){return e>=r}function one(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&w1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&w1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function lne(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&w1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&w1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function w1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function yS(e,r){if(!r||!r.autorangeoptions)return e;var t=e[0],n=e[1],a=r.autorangeoptions.include;if(a!==void 0){var o=r.d2l(t),i=r.d2l(n);_l.isArrayOrTypedArray(a)||(a=[a]);for(var l=0;l<a.length;l++){var u=r.d2l(a[l]);o>=u&&(o=u,t=u),i<=u&&(i=u,n=u)}}return t=one(t,r),n=lne(n,r),[t,n]}});var Ot=xe((y5e,US)=>{"use strict";var $a=nt(),jt=it(),Qu=bn(),$0=Cr(),kr=rr(),ju=kr.strTranslate,ks=Un(),sne=W0(),K0=Xr(),Ra=Mt(),une=Ja(),bS=Am(),g5e=mn(),zn=pn(),fne=zn.ONEMAXYEAR,A1=zn.ONEAVGYEAR,k1=zn.ONEMINYEAR,cne=zn.ONEMAXQUARTER,c3=zn.ONEAVGQUARTER,S1=zn.ONEMINQUARTER,vne=zn.ONEMAXMONTH,ef=zn.ONEAVGMONTH,C1=zn.ONEMINMONTH,Da=zn.ONEWEEK,ra=zn.ONEDAY,wl=ra/2,ao=zn.ONEHOUR,Q0=zn.ONEMIN,E1=zn.ONESEC,hne=zn.ONEMILLI,dne=zn.ONEMICROSEC,Ss=zn.MINUS_SIGN,R1=zn.BADNUM,v3={K:"zeroline"},h3={K:"gridline",L:"path"},d3={K:"minor-gridline",L:"path"},LS={K:"tick",L:"path"},xS={K:"tick",L:"text"},_S={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},D1=Bn(),J0=D1.MID_SHIFT,Cs=D1.CAP_SHIFT,j0=D1.LINE_SPACING,pne=D1.OPPOSITE_SIDE,L1=3,nr=US.exports={};nr.setConvert=b1();var gne=t3(),io=fn(),yne=io.idSort,mne=io.isLinked;nr.id2name=io.id2name;nr.name2id=io.name2id;nr.cleanId=io.cleanId;nr.list=io.list;nr.listIds=io.listIds;nr.getFromId=io.getFromId;nr.getFromTrace=io.getFromTrace;var RS=Ku();nr.getAutoRange=RS.getAutoRange;nr.findExtremes=RS.findExtremes;var bne=1e-4;function m3(e){var r=(e[1]-e[0])*bne;return[e[0]-r,e[1]+r]}function xne(e,r,t){if(![t,e,r].every(jt)||t===0)return e;let n=Math.round((e-r)/t),a=r+n*t;return e!==a&&Math.abs(e-a)<Math.abs(t)*1e-6?a:e}nr.coerceRef=function(e,r,t,n,a,o){var i=n.charAt(n.length-1),l=t._fullLayout._subplots[i+"axis"],u=n+"ref",s={};return a||(a=l[0]||(typeof o=="string"?o:o[0])),o||(o=a),l=l.concat(l.map(function(f){return f+" domain"})),s[u]={valType:"enumerated",values:l.concat(o?typeof o=="string"?[o]:o:[]),dflt:a},kr.coerce(e,r,s,u)};nr.coerceRefArray=function(e,r,t,n,a,o,i){let l=n.charAt(n.length-1);var u=t._fullLayout._subplots[l+"axis"];let s=n+"ref";var f=e[s];a||(a=u[0]||(typeof o=="string"?o:o[0])),u=u.concat(u.map(d=>d+" domain")),u=u.concat(o||[]),f.length>i?(kr.warn("Array attribute "+s+" has more entries than expected, truncating to "+i),f=f.slice(0,i)):f.length<i&&(kr.warn("Array attribute "+s+" has fewer entries than expected, extending with default value"),f=f.concat(Array(i-f.length).fill(a)));for(var c=0;c<f.length;c++)f[c]=io.cleanId(f[c],l,!0)||f[c],u.includes(f[c])||(f[c]=a);return r[s]=f,f};nr.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};nr.coercePosition=function(e,r,t,n,a,o){var i,l,u=nr.getRefType(n);if(u!=="range")i=kr.ensureNumber,l=t(a,o);else{var s=nr.getFromId(r,n);o=s.fraction2r(o),l=t(a,o),i=s.cleanPos}e[a]=i(l)};nr.cleanPosition=function(e,r,t){var n=t==="paper"||t==="pixel"?kr.ensureNumber:nr.getFromId(r,t).cleanPos;return n(e)};nr.redrawComponents=function(e,r){r=r||nr.listIds(e);var t=e._fullLayout;function n(a,o,i,l){for(var u=$0.getComponentMethod(a,o),s={},f=0;f<r.length;f++)for(var c=t[nr.id2name(r[f])],d=c[i],x=0;x<d.length;x++){var g=d[x];if(!s[g]&&(u(e,g),s[g]=1,l))return}}n("annotations","drawOne","_annIndices"),n("shapes","drawOne","_shapeIndices"),n("images","draw","_imgIndices",!0),n("selections","drawOne","_selectionIndices")};var _ne=nr.getDataConversions=function(e,r,t,n){var a,o=t==="x"||t==="y"||t==="z"?t:n;if(kr.isArrayOrTypedArray(o)){if(a={type:gne(n,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},nr.setConvert(a),a.type==="category")for(var i=0;i<n.length;i++)a.d2c(n[i])}else a=nr.getFromTrace(e,r,o);return a?{d2c:a.d2c,c2d:a.c2d}:o==="ids"?{d2c:MS,c2d:MS}:{d2c:wS,c2d:wS}};function wS(e){return+e}function MS(e){return String(e)}nr.getDataToCoordFunc=function(e,r,t,n){return _ne(e,r,t,n).d2c};nr.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};nr.minDtick=function(e,r,t,n){["log","category","multicategory"].indexOf(e.type)!==-1||!n?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))};nr.saveRangeInitial=function(e,r){for(var t=nr.list(e,"",!0),n=!1,a=0;a<t.length;a++){var o=t[a],i=o._rangeInitial0===void 0&&o._rangeInitial1===void 0,l=i||o.range[0]!==o._rangeInitial0||o.range[1]!==o._rangeInitial1,u=o.autorange;(i&&u!==!0||r&&l)&&(o._rangeInitial0=u==="min"||u==="max reversed"?void 0:o.range[0],o._rangeInitial1=u==="max"||u==="min reversed"?void 0:o.range[1],o._autorangeInitial=u,n=!0)}return n};nr.saveShowSpikeInitial=function(e,r){for(var t=nr.list(e,"",!0),n=!1,a="on",o=0;o<t.length;o++){var i=t[o],l=i._showSpikeInitial===void 0,u=l||i.showspikes!==i._showspikes;(l||r&&u)&&(i._showSpikeInitial=i.showspikes,n=!0),a==="on"&&!i.showspikes&&(a="off")}return e._fullLayout._cartesianSpikesEnabled=a,n};nr.autoBin=function(e,r,t,n,a,o){var i=kr.aggNums(Math.min,null,e),l=kr.aggNums(Math.max,null,e);if(r.type==="category"||r.type==="multicategory")return{start:i-.5,end:l+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:l-i};a||(a=r.calendar);var u;if(r.type==="log"?u={type:"linear",range:[i,l]}:u={type:r.type,range:kr.simpleMap([i,l],r.c2r,0,a),calendar:a},nr.setConvert(u),o=o&&bS.dtick(o,u.type),o)u.dtick=o,u.tick0=bS.tick0(void 0,u.type,a);else{var s;if(t)s=(l-i)/t;else{var f=kr.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),d=c*kr.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);s=Math.max(d,2*kr.stdev(e)/Math.pow(e.length,n?.25:.4)),jt(s)||(s=1)}nr.autoTicks(u,s)}var x=u.dtick,g=nr.tickIncrement(nr.tickFirst(u),x,"reverse",a),w,T;if(typeof x=="number")g=wne(g,e,u,i,l),T=1+Math.floor((l-g)/x),w=g+T*x;else for(u.dtick.charAt(0)==="M"&&(g=Mne(g,e,x,i,a)),w=g,T=0;w<=l;)w=nr.tickIncrement(w,x,!1,a),T++;return{start:r.c2r(g,0,a),end:r.c2r(w,0,a),size:x,_dataSpan:l-i}};function wne(e,r,t,n,a){var o=0,i=0,l=0,u=0;function s(x){return(1+(x-e)*100/t.dtick)%100<2}for(var f=0;f<r.length;f++)r[f]%1===0?l++:jt(r[f])||u++,s(r[f])&&o++,s(r[f]+t.dtick/2)&&i++;var c=r.length-u;if(l===c&&t.type!=="date")t.dtick<1?e=n-.5*t.dtick:(e-=.5,e+t.dtick<n&&(e+=t.dtick));else if(i<c*.1&&(o>c*.3||s(n)||s(a))){var d=t.dtick/2;e+=e+d<n?d:-d}return e}function Mne(e,r,t,n,a){var o=kr.findExactDates(r,a),i=.8;if(o.exactDays>i){var l=Number(t.slice(1));o.exactYears>i&&l%12===0?e=nr.tickIncrement(e,"M6","reverse")+ra*1.5:o.exactMonths>i?e=nr.tickIncrement(e,"M1","reverse")+ra*15.5:e-=wl;var u=nr.tickIncrement(e,t);if(u<=n)return u}return e}nr.prepMinorTicks=function(e,r,t){var c,d;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var n=r.dtick&&jt(r._tmin),a;if(n){var o=nr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=kr.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=kr.simpleMap(a,r.l2r),e._isMinor=!0,nr.prepTicks(e,t),n){var l=jt(r.dtick),u=jt(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?s3(s,f)?s===2*Da&&f===2*ra&&(e.dtick=Da):s===2*Da&&f===3*ra?e.dtick=Da:s===Da&&!(r._input.minor||{}).nticks?e.dtick=ra:TS(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":s3(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?s3(s,f)||(e.dtick=TS(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((d=r.minor)==null?void 0:d._tick0Init)===void 0&&(e.tick0=r.tick0)};function s3(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function TS(e,r){return Math.abs(e/r-1)<.001}nr.prepTicks=function(e,r){var t=kr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?kr.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=kr.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,nr.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"&&Tne(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),zS(e)};function u3(e){return+e.substring(1)}function Tne(e){var r;function t(){return!(jt(e.dtick)||e.dtick.charAt(0)!=="M")}var n=t(),a=nr.getTickFormat(e);if(a){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(r=ao,o&&!n&&e.dtick<ao&&(e.dtick=ao)):/%p/.test(a)?(r=wl,o&&!n&&e.dtick<wl&&(e.dtick=wl)):/%[Aadejuwx]/.test(a)?(r=ra,o&&!n&&e.dtick<ra&&(e.dtick=ra)):/%[UVW]/.test(a)?(r=Da,o&&!n&&e.dtick<Da&&(e.dtick=Da)):/%[Bbm]/.test(a)?(r=ef,o&&(n?u3(e.dtick)<1:e.dtick<C1)&&(e.dtick="M1")):/%[q]/.test(a)?(r=c3,o&&(n?u3(e.dtick)<3:e.dtick<S1)&&(e.dtick="M3")):/%[Yy]/.test(a)&&(r=A1,o&&(n?u3(e.dtick)<12:e.dtick<k1)&&(e.dtick="M12")))}n=t(),n&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function Ane(e,r,t){for(var n=0;n<e.length;n++){var a=e[n].value,o=n,i=n+1;n<e.length-1?(o=n,i=n+1):n>0?(o=n-1,i=n):(o=n,i=n);var l=e[o].value,u=e[i].value,s=Math.abs(u-l),f=t||s,c=0;f>=k1?s>=k1&&s<=fne?c=s:c=A1:t===c3&&f>=S1?s>=S1&&s<=cne?c=s:c=c3:f>=C1?s>=C1&&s<=vne?c=s:c=ef:t===Da&&f>=Da?c=Da:f>=ra?c=ra:t===wl&&f>=wl?c=wl:t===ao&&f>=ao&&(c=ao);var d;c>=s&&(c=s,d=!0);var x=a+c;if(r.rangebreaks&&c>0){for(var g=84,w=0,T=0;T<g;T++){var m=(T+.5)/g;r.maskBreaks(a*(1-m)+m*x)!==R1&&w++}c*=w/g,c||(e[n].drop=!0),d&&s>Da&&(c=s)}(c>0||n===0)&&(e[n].periodX=a+c/2)}}nr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,o=r.ticklabelstep,i=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||kr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=kr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]<s[0],c=Math.min(s[0],s[1]),d=Math.max(s[0],s[1]),x=Math.max(1e3,r._length||0),g=[],w=[],T=[],m=[],k=[],S=r.minor&&(r.minor.ticks||r.minor.showgrid),b=S||u,M=1;M>=(b?0:1);M--){var h=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var _=M?r:kr.extendFlat({},r,b?r.minor:{minor:{}});if(h?nr.prepMinorTicks(_,r,t):nr.prepTicks(_,t),_.tickmode==="array"){M?(T=[],g=AS(r,!h)):(m=[],w=AS(r,!h));continue}if(_.tickmode==="sync"){T=[],g=kne(r);continue}var y=m3(s),v=y[0],A=y[1],p=jt(_.dtick),R=n==="log"&&!(p||_.dtick.charAt(0)==="L"),E=nr.tickFirst(_,t);if(M){if(r._tmin=E,E<v!==f)break;(n==="category"||n==="multicategory")&&(A=f?Math.max(-.5,A):Math.min(r._categories.length-.5,A))}var D=null,F=E,z;if(M){var I;p?I=r.dtick:n==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(I=ef*r.dtick.substring(1)):I=r._roughDTick,z=Math.round((r.r2l(F)-r.r2l(r.tick0))/I)-1}var L=_.dtick,P=n==="linear"?_.r2l(_.tick0):void 0;for(_.rangebreaks&&_._tick0Init!==_.tick0&&(F=f3(F,r),f||(F=nr.tickIncrement(F,L,!f,a))),(M||u)&&i&&(F=nr.tickIncrement(F,L,!f,a),M&&z--);f?F>=A:F<=A;F=nr.tickIncrement(F,L,f,a)){if(M&&z++,_.rangebreaks&&!f){if(F<v)continue;if(_.maskBreaks(F)===R1&&f3(F,_)>=d)break}if(T.length>x||F===D)break;D=F;var O={value:xne(F,P,L)};M?(F===E&&(O.first=!0),R&&F!==(F|0)&&(O.simpleLabel=!0),o>1&&z%o&&(O.skipLabel=!0),T.push(O)):(O.minor=!0,m.push(O))}}if(!m||m.length<3)u=!1;else{var U=(m[2].value-m[1].value)*(l?-1:1);Kne(U,r.tickformat)||(u=!1,m=m.slice(1))}if(!u)k=T;else{var V=T.concat(m);i&&T.length&&(V=V.slice(1)),V=V.sort(function(le,Y){return le.value-Y.value}).filter(function(le,Y,$){return Y===0||le.value!==$[Y-1].value});var K=V.map(function(le,Y){return le.minor===void 0&&!le.skipLabel?Y:null}).filter(function(le){return le!==null});K.forEach(function(le){u.map(function(Y){var $=le+Y;$>=0&&$<V.length&&kr.pushUnique(k,V[$])})}),T.forEach(function(le){le.skipLabel=k.indexOf(le)===-1})}if(S){var j=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!j){for(var G=T.map(function(le){return le.value}),q=[],J=0;J<m.length;J++){var te=m[J],Z=te.value;if(G.indexOf(Z)===-1){for(var ie=!1,Q=0;!ie&&Q<T.length;Q++)1e7+T[Q].value===1e7+Z&&(ie=!0);ie||q.push(te)}}m=q}}i&&Ane(k,r,r._definedDelta);var re;if(r.rangebreaks){var se=r._id.charAt(0)==="y",ee=1;r.tickmode==="auto"&&(ee=r.tickfont?r.tickfont.size:12);var ae=NaN;for(re=T.length-1;re>-1;re--){if(T[re].drop){T.splice(re,1);continue}T[re].value=f3(T[re].value,r);var ce=r.c2p(T[re].value);(se?ae>ce-ee:ae<ce+ee)?T.splice(f?re+1:re,1):ae=ce}}w3(r)&&Math.abs(s[1]-s[0])===360&&T.pop(),r._tmax=(T[T.length-1]||{}).value,T.length&&(T[T.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var Me,ke=function(le){le.text="",r._prevDateHead=Me};T=T.concat(m);function Se(le,Y){var $=nr.tickText(le,Y.value,!1,Y.simpleLabel,{first:Y.first,last:Y.last}),pe=Y.periodX;return pe!==void 0&&($.periodX=pe,(pe>d||pe<c)&&(pe>d&&($.periodX=d),pe<c&&($.periodX=c),ke($))),$}var ge;for(re=0;re<T.length;re++){var Le=T[re].minor,Ee=T[re].value;Le?(u&&k.indexOf(T[re])!==-1?ge=Se(r,T[re]):ge={x:Ee},ge.minor=!0,w.push(ge)):(Me=r._prevDateHead,ge=Se(r,T[re]),T[re].skipLabel&&ke(ge),g.push(ge))}return i&&u&&w.length&&(w[0].noTick=!0),g=g.concat(w),r._inCalcTicks=!1,i&&g.length&&(g[0].noTick=!0),g};function DS(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==R1})),r}function kne(e){var r=e._mainAxis,t=[];if(r._vals){for(var n=-1,a=-1,o=0;o<r._vals.length;o++)r._vals[o].noTick||r._vals[o].minor||(n===-1&&(n=o),a=o);for(var i=0;i<r._vals.length;i++)if(!r._vals[i].noTick){var l=r.l2p(r._vals[i].x),u=e.p2l(l),s=nr.tickText(e,u,!1,void 0,{first:i===n,last:i===a});r._vals[i].minor&&(s.minor=!0,s.text=""),t.push(s)}}return t=DS(e,t),t}function AS(e,r){var t=kr.simpleMap(e.range,e.r2l),n=m3(t),a=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),i=e.type==="category"?e.d2l_noadd:e.d2l;e.type==="log"&&String(e.dtick).charAt(0)!=="L"&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var l=[],u=0;u<=1;u++)if(!(r!==void 0&&(r&&u||r===!1&&!u))&&!(u&&!e.minor)){var s=u?e.minor.tickvals:e.tickvals,f=u?[]:e.ticktext;if(s){kr.isArrayOrTypedArray(f)||(f=[]);var c=-1,d=-1;if(!u)for(var x=0;x<s.length;x++){var g=i(s[x]);g>a&&g<o&&(c===-1&&(c=x),d=x)}for(var w=0;w<s.length;w++){var T=i(s[w]);if(T>a&&T<o){var m=nr.tickText(e,T,!1,String(f[w]),{first:w===c,last:w===d});u&&(m.minor=!0,m.text=""),l.push(m)}}}}return l=DS(e,l),l}var M1=[2,5,10],kS=[1,2,3,6,12],SS=[1,2,5,10,15,30],Sne=[1,2,3,7,14],PS=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],IS=[-.301,0,.301,.699,1],Cne=[15,30,45,90,180];function no(e,r,t){return r*kr.roundUp(e/r,t)}nr.autoTicks=function(e,r,t){var n;function a(c){return Math.pow(c,Math.floor(Math.log(r)/Math.LN10))}if(e.type==="date"){e.tick0=kr.dateTick0(e.calendar,0);var o=2*r;if(o>A1)r/=A1,n=a(10),e.dtick="M"+12*no(r,n,M1);else if(o>ef)r/=ef,e.dtick="M"+no(r,1,kS);else if(o>ra){if(e.dtick=no(r,ra,e._hasDayOfWeekBreaks?[1,2,7,14]:Sne),!t){var i=nr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=kr.dateTick0(e.calendar,2):e.tick0=kr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>ao?e.dtick=no(r,ao,kS):o>Q0?e.dtick=no(r,Q0,SS):o>E1?e.dtick=no(r,E1,SS):(n=a(10),e.dtick=no(r,n,M1))}else if(e.type==="log"){e.tick0=0;var u=kr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,n=a(10),e.dtick="L"+no(r,n,M1)}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))):w3(e)?(e.tick0=0,n=1,e.dtick=no(r,n,Cne)):(e.tick0=0,n=a(10),e.dtick=no(r,n,M1));if(e.dtick===0&&(e.dtick=1),!jt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function zS(e){var r=e.dtick;if(e._tickexponent=0,!jt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=ra&&a<=10||r>=ra*15)e._tickround="d";else if(r>=Q0&&a<=16||r>=ao)e._tickround="M";else if(r>=E1&&a<=19||r>=Q0)e._tickround="S";else{var o=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(jt(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);jt(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(i[0]),Math.abs(i[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&(rf(e.exponentformat)&&e.exponentformat!=="SI extended"&&!b3(u)||rf(e.exponentformat)&&e.exponentformat==="SI extended"&&!x3(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}nr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(jt(r))return kr.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.slice(1));if(o==="M")return kr.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?IS:PS,u=e+a*.01,s=kr.roundUp(kr.mod(u,1),l,t);return Math.floor(u)+Math.log($a.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};nr.tickFirst=function(e,r){var t=e.r2l||Number,n=kr.simpleMap(e.range,t,void 0,void 0,r),a=n[1]<n[0],o=a?Math.floor:Math.ceil,i=m3(n)[0],l=e.dtick,u=t(e.tick0);if(jt(l)){var s=o((i-u)/l)*l+u;return(e.type==="category"||e.type==="multicategory")&&(s=kr.constrain(s,0,e._categories.length-1)),s}var f=l.charAt(0),c=Number(l.slice(1));if(f==="M"){for(var d=0,x=u,g,w,T;d<10;){if(g=nr.tickIncrement(x,l,a,e.calendar),(g-i)*(x-i)<=0)return a?Math.min(x,g):Math.max(x,g);w=(i-(x+g)/2)/(g-x),T=f+(Math.abs(Math.round(w))||1)*c,x=nr.tickIncrement(x,T,w<0?!a:a,e.calendar),d++}return kr.error("tickFirst did not converge",e),x}else{if(f==="L")return Math.log(o((Math.pow(10,i)-u)/c)*c+u)/Math.LN10;if(f==="D"){var m=l==="D2"?IS:PS,k=kr.roundUp(kr.mod(i,1),m,a);return Math.floor(i)+Math.log($a.round(Math.pow(10,k),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};nr.tickText=function(e,r,t,n,a){var o=!!(a!=null&&a.first),i=!!(a!=null&&a.last),l=FS(e,r),u=e.tickmode==="array",s=t||u,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,d,x=function(S){var b=e.l2p(S);return b>=0&&b<=e._length?S:null};if(u&&kr.isArrayOrTypedArray(e.ticktext)){var g=kr.simpleMap(e.range,e.r2l),w=(Math.abs(g[1]-g[0])-(e._lBreaks||0))/1e4;for(d=0;d<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[d]))<w);d++);if(d<e.ticktext.length)return l.text=String(e.ticktext[d]),l.xbnd=[x(l.x-.5),x(l.x+e.dtick-.5)],l}function T(S){return S===void 0?!0:t?S==="none":S==="all"?!1:S==="first"?!o:S==="last"?!i:!0}var m=t?"never":e.exponentformat!=="none"&&T(e.showexponent)?"hide":"";if(f==="date"?Ene(e,l,t,s):f==="log"?Lne(e,l,t,s,m):f==="category"?Rne(e,l):f==="multicategory"?Dne(e,l,t):w3(e)?Ine(e,l,t,s,m):Pne(e,l,t,s,m),n||(e.tickprefix&&!T(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!T(e.showticksuffix)&&(l.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(l.text)){var k=e.labelalias[l.text];typeof k=="string"&&(l.text=k)}return(e.tickson==="boundaries"||e.showdividers)&&(l.xbnd=[x(l.x-.5),x(l.x+e.dtick-.5)]),l};nr.hoverLabelText=function(e,r,t){t&&(e=kr.extendFlat({},e,{hoverformat:t}));var n=kr.isArrayOrTypedArray(r)?r[0]:r,a=kr.isArrayOrTypedArray(r)?r[1]:void 0;if(a!==void 0&&a!==n)return nr.hoverLabelText(e,n,t)+" - "+nr.hoverLabelText(e,a,t);var o=e.type==="log"&&n<=0,i=nr.tickText(e,e.c2l(o?-n:n),"hover").text;return o?n===0?"0":Ss+i:i};function FS(e,r,t){var n=e.tickfont||{};return{x:r,dx:0,dy:0,text:t||"",fontSize:n.size,font:n.family,fontWeight:n.weight,fontStyle:n.style,fontVariant:n.variant,fontTextcase:n.textcase,fontLineposition:n.lineposition,fontShadow:n.shadow,fontColor:n.color}}function Ene(e,r,t,n){var a=e._tickround,o=t&&e.hoverformat||nr.getTickFormat(e);n=!o&&n,n&&(jt(a)?a=4:a={y:"m",m:"d",d:"M",M:"S",S:4}[a]);var i=kr.formatDate(r.x,o,a,e._dateFormat,e.calendar,e._extraFormat),l,u=i.indexOf(`
`);if(u!==-1&&(l=i.slice(u+1),i=i.slice(0,u)),n&&(l!==void 0&&(i==="00:00:00"||i==="00:00")?(i=l,l=""):i.length===8&&(i=i.replace(/:00$/,""))),l)if(t)a==="d"?i+=", "+l:i=l+(i?", "+i:"");else if(!e._inCalcTicks||e._prevDateHead!==l)e._prevDateHead=l,i+="<br>"+l;else{var s=rc(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="<br> ")}r.text=i}function Lne(e,r,t,n,a){var o=e.dtick,i=r.x,l=e.tickformat,u=typeof o=="string"&&o.charAt(0);if(a==="never"&&(a=""),n&&u!=="L"&&(o="L3",u="L"),l||u==="L")r.text=ec(Math.pow(10,i),e,a,n);else if(jt(o)||u==="D"&&(e.minorloglabels==="complete"||kr.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(kr.mod(i+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,i).toExponential(0),c=f.split("e"),d=+c[1],x=Math.abs(d),g=e.exponentformat;g==="power"||rf(g)&&g!=="SI extended"&&b3(d)||rf(g)&&g==="SI extended"&&x3(d)?(r.text=c[0],x>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),d!==0&&d!==1&&(r.text+="<sup>"+(d>0?"":Ss)+x+"</sup>"),r.fontSize*=1.25):(g==="e"||g==="E")&&x>2?r.text=c[0]+g+(d>0?"+":Ss)+x:(r.text=ec(Math.pow(10,i),e,"","fakehover"),o==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,kr.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var w=String(r.text).charAt(0);(w==="0"||w==="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*(i<0?.5:.25)))}}function Rne(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Dne(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],o=a[1]===void 0?"":String(a[1]),i=a[0]===void 0?"":String(a[0]);t?r.text=i+" - "+o:(r.text=o,r.text2=i)}function Pne(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=ec(r.x,e,a,n)}function Ine(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=zne(o);if(i[1]>=100)r.text=ec(kr.deg2rad(r.x),e,a,n);else{var l=r.x<0;i[1]===1?i[0]===1?r.text="\u03C0":r.text=i[0]+"\u03C0":r.text=["<sup>",i[0],"</sup>","\u2044","<sub>",i[1],"</sub>","\u03C0"].join(""),l&&(r.text=Ss+r.text)}}}else r.text=ec(r.x,e,a,n)}function zne(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function n(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var a=n(e),o=e*a,i=Math.abs(t(o,a));return[Math.round(o/i),Math.round(a/i)]}var NS=["f","p","n","\u03BC","m","","k","M","G","T"],Fne=["q","r","y","z","a",...NS,"P","E","Z","Y","R","Q"],rf=e=>["SI","SI extended","B"].includes(e);function b3(e){return e>14||e<-15}function x3(e){return e>32||e<-30}function Nne(e,r){return rf(r)?!!(r==="SI extended"&&x3(e)||r!=="SI extended"&&b3(e)):!1}function ec(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=nr.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:jt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};zS(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Ss);i==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-o)/2;if(e<c)e="0",a=!1;else{if(l&&(e*=Math.pow(10,-l),o+=l),o===0)e=String(Math.round(e));else if(o<0){let x=Math.pow(10,-o);e=String(Math.round(e/x)*x)}else e=e.toFixed(Math.min(20,o)).replace(/\.?0+$/,"");e=kr.numSeparate(e,r._separators,s)}if(l&&i!=="hide"){Nne(l,i)&&(i="power");var d;l<0?d=Ss+-l:i!=="power"?d="+"+l:d=String(l),i==="e"||i==="E"?e+=i+d:i==="power"?e+="\xD710<sup>"+d+"</sup>":i==="B"&&l===9?e+="B":rf(i)&&(e+=i==="SI extended"?Fne[l/3+10]:NS[l/3+5])}return a?Ss+e:e}nr.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*ef}function n(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var c=f.indexOf(u.charAt(0)),d=f.indexOf(s.charAt(0));return c===d?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):c-d}else return typeof u=="number"?1:-1}function a(u,s,f){var c=f||function(g){return g},d=s[0],x=s[1];return(!d&&typeof d!="number"||c(d)<=c(u))&&(!x&&typeof x!="number"||c(x)>=c(u))}function o(u,s){var f=s[0]===null,c=s[1]===null,d=n(u,s[0])>=0,x=n(u,s[1])<=0;return(f||d)&&(c||x)}var i,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&a(e.dtick,l.dtickrange,t)){i=l;break}break}case"log":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&o(e.dtick,l.dtickrange)){i=l;break}break}default:}return i?i.value:e.tickformat};nr.getSubplots=function(e,r){var t=e._fullLayout._subplots,n=t.cartesian.concat(t.gl2d||[]),a=r?nr.findSubplotsWithAxis(n,r):n;return a.sort(function(o,i){var l=o.slice(1).split("y"),u=i.slice(1).split("y");return l[0]===u[0]?+l[1]-+u[1]:+l[0]-+u[0]}),a};nr.findSubplotsWithAxis=function(e,r){for(var t=new RegExp(r._id.charAt(0)==="x"?"^"+r._id+"y":r._id+"$"),n=[],a=0;a<e.length;a++){var o=e[a];t.test(o)&&n.push(o)}return n};nr.makeClipPaths=function(e){var r=e._fullLayout;if(!r._hasOnlyLargeSploms){var t={_offset:0,_length:r.width,_id:""},n={_offset:0,_length:r.height,_id:""},a=nr.list(e,"x",!0),o=nr.list(e,"y",!0),i=[],l,u;for(l=0;l<a.length;l++)for(i.push({x:a[l],y:n}),u=0;u<o.length;u++)l===0&&i.push({x:t,y:o[u]}),i.push({x:a[l],y:o[u]});var s=r._clips.selectAll(".axesclip").data(i,function(f){return f.x._id+f.y._id});s.enter().append("clipPath").classed("axesclip",!0).attr("id",function(f){return"clip"+r._uid+f.x._id+f.y._id}).append("rect"),s.exit().remove(),s.each(function(f){$a.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})})}};nr.draw=function(e,r,t){var n=e._fullLayout;r==="redraw"&&n._paper.selectAll("g.subplot").each(function(u){var s=u[0],f=n._plots[s];if(f){var c=f.xaxis,d=f.yaxis;f.xaxislayer.selectAll("."+c._id+"tick").remove(),f.yaxislayer.selectAll("."+d._id+"tick").remove(),f.xaxislayer.selectAll("."+c._id+"tick2").remove(),f.yaxislayer.selectAll("."+d._id+"tick2").remove(),f.xaxislayer.selectAll("."+c._id+"divider").remove(),f.yaxislayer.selectAll("."+d._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(),n._infolayer.select(".g-"+c._id+"title").remove(),n._infolayer.select(".g-"+d._id+"title").remove()}});var a=!r||r==="redraw"?nr.listIds(e):r,o=nr.list(e),i=o.filter(function(u){return u.autoshift}).map(function(u){return u.overlaying});a.map(function(u){var s=nr.getFromId(e,u);if(s.tickmode==="sync"&&s.overlaying){var f=a.findIndex(function(c){return c===s.overlaying});f>=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return kr.syncOrAsync(a.map(function(u){return function(){if(u){var s=nr.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=nr.drawOne(e,s,t);return s._shiftPusher&&y3(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=kr.simpleMap(s._r,s.r2l),f}}}))};nr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],o,i,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),c=nr.counterLetter(s),d=u._plots[r._mainSubplot],x=r.zerolinelayer==="above traces";if(!d)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var g=r.linewidth/2||0;r.ticks==="inside"&&(g+=r.ticklen),y3(r,g,n,!0),y3(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=$ne(r,n));var w=d[f+"axislayer"],T=r._mainLinePosition,m=T+=r._shift,k=r._mainMirrorPosition,S=r._vals=nr.calcTicks(r),b=[r.mirror,m,k].join("_");for(o=0;o<S.length;o++)S[o].axInfo=b;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var M={};function h(ge){var Le=s+(ge||"tick");return M[Le]||(M[Le]=Une(r,Le,m)),M[Le]}if(r.visible){var _=nr.makeTransTickFn(r),y=nr.makeTransTickLabelFn(r),v,A,p=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var E=qne(r,S);A=nr.clipEnds(r,E),v=p?A:E}else A=nr.clipEnds(r,S),v=p&&r.ticklabelmode!=="period"?A:S;var D=r._gridVals=A,F=Bne(r,S);if(!u._hasOnlyLargeSploms){var z=r._subplotsWith,I={};for(o=0;o<z.length;o++){i=z[o],l=u._plots[i];var L=l[c+"axis"],P=L._mainAxis._id;if(!I[P]){I[P]=1;var O=f==="x"?"M0,"+L._offset+"v"+L._length:"M"+L._offset+",0h"+L._length;nr.drawGrid(e,r,{vals:D,counterAxis:L,layer:l.gridlayer.select("."+s),minorLayer:l.minorGridlayer.select("."+s),path:O,transFn:_}),nr.drawZeroLine(e,r,{counterAxis:L,layer:x?l.zerolinelayerAbove:l.zerolinelayer,path:O,transFn:_})}}}var U,V=nr.getTickSigns(r),K=nr.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var j=nr.makeTickPath(r,m,V[2]),G=nr.makeTickPath(r,m,K[2],{minor:!0}),q,J,te,Z;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(q=nr.makeTickPath(r,k,V[3]),J=nr.makeTickPath(r,k,K[3],{minor:!0}),te=j+q,Z=G+J):(q="",J="",te=j,Z=G),r.showdividers&&R&&r.tickson==="boundaries"){var ie={};for(o=0;o<F.length;o++)ie[F[o].x]=1;U=function(ge){return ie[ge.x]?q:te}}else U=function(ge){return ge.minor?Z:te}}if(nr.drawTicks(e,r,{vals:v,layer:w,path:U,transFn:_}),r.mirror==="allticks"){var Q=Object.keys(r._linepositions||{});for(o=0;o<Q.length;o++){i=Q[o],l=u._plots[i];var re=r._linepositions[i]||[],se=re[0],ee=re[1],ae=re[2],ce=nr.makeTickPath(r,se,ae?V[0]:K[0],{minor:ae})+nr.makeTickPath(r,ee,ae?V[1]:K[1],{minor:ae});nr.drawTicks(e,r,{vals:v,layer:l[f+"axislayer"],path:ce,transFn:_})}}var Me=[];if(Me.push(function(){return nr.drawLabels(e,r,{vals:S,layer:w,plotinfo:l,transFn:y,labelFns:nr.makeLabelFns(r,m)})}),r.type==="multicategory"){var ke={x:2,y:10}[f];Me.push(function(){var ge={x:"height",y:"width"}[f],Le=h()[ge]+ke+(r._tickAngles[s+"tick"]?r.tickfont.size*j0:0);return nr.drawLabels(e,r,{vals:One(r,S),layer:w,cls:s+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:_,labelFns:nr.makeLabelFns(r,m+Le*V[4])})}),Me.push(function(){return r._depth=V[4]*(h("tick2")[r.side]-m),Vne(e,r,{vals:F,layer:w,path:nr.makeTickPath(r,m,V[4],{len:r._depth}),transFn:_})})}else r.title.hasOwnProperty("standoff")&&Me.push(function(){r._depth=V[4]*(h()[r.side]-m)});var Se=$0.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(Se&&r.side==="bottom")&&Me.push(function(){return Gne(e,r)}),Me.push(function(){var ge=r.side.charAt(0),Le=pne[r.side].charAt(0),Ee=nr.getPxPosition(e,r),le=R?r.ticklen:0,Y,$,pe,oe;(r.automargin||Se||r._shiftPusher)&&(r.type==="multicategory"?Y=h("tick2"):(Y=h(),f==="x"&&ge==="b"&&(r._depth=Math.max(Y.width>0?Y.bottom-Ee:0,le))));var ve=0,he=0;if(r._shiftPusher&&(ve=Math.max(le,Y.height>0?ge==="l"?Ee-Y.left:Y.right-Ee:0),r.title.text!==u._dfltTitle[f]&&(he=(r._titleStandoff||0)+(r._titleScoot||0),ge==="l"&&(he+=ES(r))),r._fullDepth=Math.max(ve,he)),r.automargin){$={x:0,y:0,r:0,l:0,t:0,b:0};var me=[0,1],be=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ge==="b"?$[ge]=r._depth:($[ge]=r._depth=Math.max(Y.width>0?Ee-Y.top:0,le),me.reverse()),Y.width>0){var ye=Y.right-(r._offset+r._length);ye>0&&($.xr=1,$.r=ye);var de=r._offset-Y.left;de>0&&($.xl=0,$.l=de)}}else if(ge==="l"?(r._depth=Math.max(Y.height>0?Ee-Y.left:0,le),$[ge]=r._depth-be):(r._depth=Math.max(Y.height>0?Y.right-Ee:0,le),$[ge]=r._depth+be,me.reverse()),Y.height>0){var _e=Y.bottom-(r._offset+r._length);_e>0&&($.yb=0,$.b=_e);var Ae=r._offset-Y.top;Ae>0&&($.yt=1,$.t=Ae)}$[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[me[0]],r.title.text!==u._dfltTitle[f]&&($[ge]+=ES(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(pe={x:0,y:0,r:0,l:0,t:0,b:0},pe[Le]=r.linewidth,r.mirror&&r.mirror!==!0&&(pe[Le]+=le),r.mirror===!0||r.mirror==="ticks"?pe[c]=r._anchorAxis.domain[me[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(pe[c]=[r._counterDomainMin,r._counterDomainMax][me[1]]))}Se&&(oe=$0.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(CS($,r.automargin),CS(pe,r.automargin)),Qu.autoMargin(e,_3(r),$),Qu.autoMargin(e,OS(r),pe),Qu.autoMargin(e,BS(r),oe)}),kr.syncOrAsync(Me)}};function CS(e,r){if(e){var t=Object.keys(_S).reduce(function(n,a){return r.indexOf(a)!==-1&&_S[a].forEach(function(o){n[o]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function qne(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(kr.extendFlat({},o,{x:l}))};if(r.length){for(n=0;n<r.length;n++)a(r[n],0);a(r[n-1],1)}return t}function One(e,r){for(var t=[],n={},a=0;a<r.length;a++){var o=r[a];n[o.text2]?n[o.text2].push(o.x):n[o.text2]=[o.x]}for(var i in n)t.push(FS(e,kr.interp(n[i],.5),i));return t}function Bne(e,r){var t=[],n,a,o=r.length&&r[r.length-1].x<r[0].x,i=function(u,s){var f=u.xbnd[s];f!==null&&t.push(kr.extendFlat({},u,{x:f}))};if(e.showdividers&&r.length){for(n=0;n<r.length;n++){var l=r[n];l.text2!==a&&i(l,o?1:0),a=l.text2}i(r[n-1],o?0:1)}return t}function Une(e,r,t){var n,a,o,i;if(e._selections[r].size())n=1/0,a=-1/0,o=1/0,i=-1/0,e._selections[r].each(function(){var u=g3(this);if(u.node().style.display!=="none"){var s=Ra.bBox(u.node().parentNode);n=Math.min(n,s.top),a=Math.max(a,s.bottom),o=Math.min(o,s.left),i=Math.max(i,s.right)}});else{var l=nr.makeLabelFns(e,t);n=a=l.yFn({dx:0,dy:0,fontSize:0}),o=i=l.xFn({dx:0,dy:0,fontSize:0})}return{top:n,bottom:a,left:o,right:i,height:a-n,width:i-o}}nr.getTickSigns=function(e,r){var t=e._id.charAt(0),n={x:"top",y:"right"}[t],a=e.side===n?1:-1,o=[-1,1,a,-a],i=r?(e.minor||{}).ticks:e.ticks;return i!=="inside"==(t==="x")&&(o=o.map(function(l){return-l})),e.side&&o.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),o};nr.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return ju(e._offset+e.l2p(r.x),0)}:function(r){return ju(0,e._offset+e.l2p(r.x))}};nr.makeTransTickLabelFn=function(e){var r=Hne(e),t=e.ticklabelshift||0,n=e.ticklabelstandoff||0,a=r[0],o=r[1],i=e.range[0]>e.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!l;if(t){var s=i?-1:1;t=t*s}if(n){var f=e.side,c=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*c}return e._id.charAt(0)==="x"?function(d){return ju(a+e._offset+e.l2p(p3(d))+t,o+n)}:function(d){return ju(o+n,a+e._offset+e.l2p(p3(d))+t)}};function p3(e){return e.periodX!==void 0?e.periodX:e.x}function Hne(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(g){return r.indexOf(g)!==-1},a=n("top"),o=n("left"),i=n("right"),l=n("bottom"),u=n("inside"),s=t!=="boundaries"&&(l||o||a||i);if(!s&&!u)return[0,0];var f=e.side,c=s?(e.tickwidth||0)/2:0,d=L1,x=e.tickfont?e.tickfont.size:12;return(l||a)&&(c+=x*Cs,d+=(e.linewidth||0)/2),(o||i)&&(c+=(e.linewidth||0)/2,d+=L1),u&&f==="top"&&(d-=x*(1-Cs)),(o||a)&&(c=-c),(f==="bottom"||f==="right")&&(d=-d),[s?c:0,u?d:0]}nr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var o=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,i=e._id.charAt(0),l=(e.linewidth||1)/2;return i==="x"?"M0,"+(r+l*t)+"v"+o*t:"M"+(r+l*t)+",0h"+o*t};nr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",o=function(E){return n.indexOf(E)!==-1},i=o("top"),l=o("left"),u=o("right"),s=o("bottom"),f=a!=="boundaries"&&(s||l||i||u),c=o("inside"),d=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&a!=="boundaries",x=0,g=0,w=d?e.ticklen:0;if(c?w*=-1:f&&(w=0),d&&(x+=w,t)){var T=kr.deg2rad(t);x=w*Math.cos(T)+1,g=w*Math.sin(T)}e.showticklabels&&(d||e.showline)&&(x+=.2*e.tickfont.size),x+=(e.linewidth||1)/2*(c?-1:1);var m={labelStandoff:x,labelShift:g},k,S,b,M,h=0,_=e.side,y=e._id.charAt(0),v=e.tickangle,A;if(y==="x")A=!c&&_==="bottom"||c&&_==="top",M=A?1:-1,c&&(M*=-1),k=g*M,S=r+x*M,b=A?1:-.2,Math.abs(v)===90&&(c?b+=J0:v===-90&&_==="bottom"?b=Cs:v===90&&_==="top"?b=J0:b=.5,h=J0/2*(v/90)),m.xFn=function(E){return E.dx+k+h*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*b},m.anchorFn=function(E,D){if(f){if(l)return"end";if(u)return"start"}return!jt(D)||D===0||D===180?"middle":D*M<0!==c?"end":"start"},m.heightFn=function(E,D,F){return D<-60||D>60?-.5*F:e.side==="top"!==c?-F:0};else if(y==="y"){if(A=!c&&_==="left"||c&&_==="right",M=A?1:-1,c&&(M*=-1),k=x,S=g*M,b=0,!c&&Math.abs(v)===90&&(v===-90&&_==="left"||v===90&&_==="right"?b=Cs:b=.5),c){var p=jt(v)?+v:0;if(p!==0){var R=kr.deg2rad(p);h=Math.abs(Math.sin(R))*Cs*M,b=0}}m.xFn=function(E){return E.dx+r-(k+E.fontSize*b)*M+h*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*J0},m.anchorFn=function(E,D){return jt(D)&&Math.abs(D)===90?"middle":A?"end":"start"},m.heightFn=function(E,D,F){return e.side==="right"&&(D*=-1),D<-30?-F:D<30?-.5*F:0}}return m};function P1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}nr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(i){return i.minor&&!i.noTick}):[]).concat(r.ticks?t.vals.filter(function(i){return!i.minor&&!i.noTick}):[]),o=t.layer.selectAll("path."+n).data(a,P1);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return K0.stroke($a.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return Ra.crispRound(e,i.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),I1(r,[LS]),o.attr("transform",t.transFn)};nr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,o=a?t.vals.filter(function(m){return m.minor}):[],i=r.showgrid?t.vals.filter(function(m){return!m.minor}):[],l=t.counterAxis;if(l&&nr.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s<i.length;s++){var f=i[s].x;if(u?!f:Math.abs(f)<r.dtick/100)if(i=i.slice(0,s).concat(i.slice(s+1)),u)s--;else break}r._gw=Ra.crispRound(e,r.gridwidth,1);for(var c=a?Ra.crispRound(e,r.minor.gridwidth,1):0,d=t.layer,x=t.minorLayer,g=1;g>=0;g--){var w=g?d:x;if(w){var T=w.selectAll("path."+n).data(g?i:o,P1);T.exit().remove(),T.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),T.attr("transform",t.transFn).attr("d",t.path).each(function(m){return K0.stroke($a.select(this),m.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(m){return Ra.dashStyle(m.minor?r.minor.griddash:r.griddash,m.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(m){return(m.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&T.attr("d",t.path)}}I1(r,[h3,d3])}};nr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=nr.shouldShowZeroLine(e,r,t.counterAxis),o=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);o.exit().remove(),o.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(i,l){return yne(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(K0.stroke,r.zerolinecolor||K0.defaultLine).style("stroke-width",Ra.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),I1(r,[v3])};nr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,o=r.zerolinelayer==="above traces",i=t.cls||a+"tick",l=t.vals.filter(function(P){return P.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[i],c=t.layer.selectAll("g."+i).data(r.showticklabels?l:[],P1),d=[];c.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(P){var O=$a.select(this),U=e._promises.length;O.call(ks.positionText,u.xFn(P),u.yFn(P)).call(Ra.font,{family:P.font,size:P.fontSize,color:P.fontColor,weight:P.fontWeight,style:P.fontStyle,variant:P.fontVariant,textcase:P.fontTextcase,lineposition:P.fontLineposition,shadow:P.fontShadow}).text(P.text).call(ks.convertToTspans,e),e._promises[U]?d.push(e._promises.pop().then(function(){x(O,s)})):x(O,s)}),I1(r,[xS]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(P){$a.select(this).select("text").call(ks.positionText,u.xFn(P),u.yFn(P))});function x(P,O){P.each(function(U){var V=$a.select(this),K=V.select(".text-math-group"),j=u.anchorFn(U,O),G=t.transFn.call(V.node(),U)+(jt(O)&&+O!=0?" rotate("+O+","+u.xFn(U)+","+(u.yFn(U)-U.fontSize/2)+")":""),q=ks.lineCount(V),J=j0*U.fontSize,te=u.heightFn(U,jt(O)?+O:0,(q-1)*J);if(te&&(G+=ju(0,te)),K.empty()){var Z=V.select("text");Z.attr({transform:G,"text-anchor":j}),Z.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ie=Ra.bBox(K.node()).width,Q=ie*{end:-.5,start:.5}[j];K.attr("transform",G+ju(Q,0))}})}r._adjustTickLabelsOverflow=function(){var P=r.ticklabeloverflow;if(!(!P||P==="allow")){var O=P.indexOf("hide")!==-1,U=r._id.charAt(0)==="x",V=0,K=U?e._fullLayout.width:e._fullLayout.height;if(P.indexOf("domain")!==-1){var j=kr.simpleMap(r.range,r.r2l);V=r.l2p(j[0])+r._offset,K=r.l2p(j[1])+r._offset}var G=Math.min(V,K),q=Math.max(V,K),J=r.side,te=1/0,Z=-1/0;c.each(function(se){var ee=$a.select(this),ae=ee.select(".text-math-group");if(ae.empty()){var ce=Ra.bBox(ee.node()),Me=0;U?(ce.right>q||ce.left<G)&&(Me=1):(ce.bottom>q||ce.top+(r.tickangle?0:se.fontSize/4)<G)&&(Me=1);var ke=ee.select("text");Me?O&&ke.style("display","none"):ke.node().style.display!=="none"&&(ke.style("display",null),J==="bottom"||J==="right"?te=Math.min(te,U?ce.top:ce.left):te=-1/0,J==="top"||J==="left"?Z=Math.max(Z,U?ce.bottom:ce.right):Z=1/0)}});for(var ie in n._plots){var Q=n._plots[ie];if(!(r._id!==Q.xaxis._id&&r._id!==Q.yaxis._id)){var re=U?Q.yaxis:Q.xaxis;re&&(re["_visibleLabelMin_"+r._id]=te,re["_visibleLabelMax_"+r._id]=Z)}}}},r._hideCounterAxisInsideTickLabels=function(P){var O=r._id.charAt(0)==="x",U=[];for(var V in n._plots){var K=n._plots[V];r._id!==K.xaxis._id&&r._id!==K.yaxis._id||U.push(O?K.yaxis:K.xaxis)}U.forEach(function(j,G){j&&rc(j)&&(P||[v3,d3,h3,LS,xS]).forEach(function(q){var J=q.K==="tick"&&q.L==="text"&&r.ticklabelmode==="period",te=n._plots[r._mainSubplot],Z;if(q.K===v3.K){var ie=o?te.zerolinelayerAbove:te.zerolinelayer;Z=ie.selectAll("."+r._id+"zl")}else q.K===d3.K?Z=te.minorGridlayer.selectAll("."+r._id):q.K===h3.K?Z=te.gridlayer.selectAll("."+r._id):Z=te[r._id.charAt(0)+"axislayer"];Z.each(function(){var Q=$a.select(this);q.L&&(Q=Q.selectAll(q.L)),Q.each(function(re){var se=r.l2p(J?p3(re):re.x)+r._offset,ee=$a.select(this);se<r["_visibleLabelMax_"+j._id]&&se>r["_visibleLabelMin_"+j._id]?ee.style("display","none"):q.K==="tick"&&!G&&ee.node().style.display!=="none"&&ee.style("display",null)})})})})},x(c,f+1?f:s);function g(){return d.length&&Promise.all(d)}var w=null;function T(){if(x(c,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){w=r.autotickangles[0];var P=0,O=[],U,V=1;c.each(function($){P=Math.max(P,$.fontSize);var pe=r.l2p($.x),oe=g3(this),ve=Ra.bBox(oe.node());V=Math.max(V,ks.lineCount(oe)),O.push({top:0,bottom:10,height:10,left:pe-ve.width/2,right:pe+ve.width/2+2,width:ve.width+2})});var K=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,j=l.length,G=Math.abs((l[j-1].x-l[0].x)*r._m)/(j-1),q=K?G/2:G,J=K?r.ticklen:P*1.25*V,te=Math.sqrt(Math.pow(q,2)+Math.pow(J,2)),Z=q/te,ie=r.autotickangles.map(function($){return $*Math.PI/180}),Q=ie.find(function($){return Math.abs(Math.cos($))<=Z});Q===void 0&&(Q=ie.reduce(function($,pe){return Math.abs(Math.cos($))<Math.abs(Math.cos(pe))?$:pe},ie[0]));var re=Q*(180/Math.PI);if(K){var se=2;for(r.ticks&&(se+=r.tickwidth/2),U=0;U<O.length;U++){var ee=l[U].xbnd,ae=O[U];if(ee[0]!==null&&ae.left-r.l2p(ee[0])<se||ee[1]!==null&&r.l2p(ee[1])-ae.right<se){w=re;break}}}else{var ce=r.ticklabelposition||"",Me=r.tickson||"",ke=function($){return ce.indexOf($)!==-1},Se=ke("top"),ge=ke("left"),Le=ke("right"),Ee=ke("bottom"),le=Me!=="boundaries"&&(Ee||ge||Se||Le),Y=le?(r.tickwidth||0)+2*L1:0;for(U=0;U<O.length-1;U++)if(kr.bBoxIntersect(O[U],O[U+1],Y)){w=re;break}}w&&x(c,w)}}r._selections&&(r._selections[i]=c);var m=[g];r.automargin&&n._redrawFromAutoMarginCount&&f===90?(w=f,m.push(function(){x(c,f)})):m.push(T),r._tickAngles&&m.push(function(){r._tickAngles[i]=w===null?jt(s)?s:0:w});var k=function(){var P=0,O=0;return c.each(function(U,V){var K=g3(this),j=K.select(".text-math-group");if(j.empty()){var G;r._vals[V]&&(G=r._vals[V].bb||Ra.bBox(K.node()),r._vals[V].bb=G),P=Math.max(P,G.width),O=Math.max(O,G.height)}}),{labelsMaxW:P,labelsMaxH:O}},S=r._anchorAxis;if(S&&(S.autorange||S.insiderange)&&rc(r)&&!mne(n,r._id)&&(n._insideTickLabelsUpdaterange||(n._insideTickLabelsUpdaterange={}),S.autorange&&(n._insideTickLabelsUpdaterange[S._name+".autorange"]=S.autorange,m.push(k)),S.insiderange)){var b=k(),M=r._id.charAt(0)==="y"?b.labelsMaxW:b.labelsMaxH;M+=2*L1,r.ticklabelposition==="inside"&&(M+=r.ticklen||0);var h=r.side==="right"||r.side==="top"?1:-1,_=h===1?1:0,y=h===1?0:1,v=[];v[y]=S.range[y];var A=S.range,p=S.r2p(A[_]),R=S.r2p(A[y]),E=n._insideTickLabelsUpdaterange[S._name+".range"];if(E){var D=S.r2p(E[_]),F=S.r2p(E[y]),z=h*(r._id.charAt(0)==="y"?1:-1);z*p<z*D&&(p=D,v[_]=A[_]=E[_]),z*R>z*F&&(R=F,v[y]=A[y]=E[y])}var I=Math.abs(R-p);I-M>0?(I-=M,M*=1+M/I):M=0,r._id.charAt(0)!=="y"&&(M=-M),v[_]=S.p2r(S.r2p(A[_])+h*M),S.autorange==="min"||S.autorange==="max reversed"?(v[0]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0):(S.autorange==="max"||S.autorange==="min reversed")&&(v[1]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[S._name+".range"]=v}var L=kr.syncOrAsync(m);return L&&L.then&&e._promises.push(L),L};function Vne(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,P1);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(K0.stroke,r.dividercolor).style("stroke-width",Ra.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}nr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,o;if(r.anchor!=="free"?o=r._anchorAxis:n==="x"?o={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(o={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return o._offset;if(a==="bottom"||a==="right")return o._offset+o._length};function ES(e){var r=e.title.font.size,t=(e.title.text.match(ks.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Cs+t*j0):t?r*(t+1)*j0:r}function Gne(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(ks.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*Cs:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*(J0+l*j0));else{var u=rc(r);if(r.type==="multicategory")i=r._depth;else{var s=1.5*o;u&&(s=.5*o,r.ticks==="outside"&&(s+=r.ticklen)),i=10+s+(r.linewidth?r.linewidth-1:0)}u||(a==="x"?i+=r.side==="top"?o*(r.showticklabels?1:0):o*(r.showticklabels?1.5:.5):i+=r.side==="right"?o*(r.showticklabels?1:.5):o*(r.showticklabels?.5:0))}var f=nr.getPxPosition(e,r),c,d,x;a==="x"?(d=r._offset+r._length/2,x=r.side==="top"?f-i:f+i):(x=r._offset+r._length/2,d=r.side==="right"?f+i:f-i,c={rotate:"-90",offset:0});var g;if(r.type!=="multicategory"){var w=r._selections[r._id+"tick"];if(g={selection:w,side:r.side},w&&w.node()&&w.node().parentNode){var T=Ra.getTranslate(w.node().parentNode);g.offsetLeft=T.x,g.offsetTop=T.y}r.title.hasOwnProperty("standoff")&&(g.pad=0)}return r._titleStandoff=i,sne.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:g,transform:c,attributes:{x:d,y:x,"text-anchor":"middle"}})}nr.shouldShowZeroLine=function(e,r,t){var n=kr.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===R1)&&(qS(r,0)||!Yne(e,r,t,n)||Xne(e,r))};nr.clipEnds=function(e,r){return r.filter(function(t){return qS(e,t.x)})};function qS(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function Yne(e,r,t,n){var a=t._mainAxis;if(!a)return;var o=e._fullLayout,i=r._id.charAt(0),l=nr.counterLetter(r._id),u=r._offset+(Math.abs(n[0])<Math.abs(n[1])==(i==="x")?0:r._length);function s(g){if(!g.showline||!g.linewidth)return!1;var w=Math.max((g.linewidth+r.zerolinewidth)/2,1);function T(S){return typeof S=="number"&&Math.abs(S-u)<w}if(T(g._mainLinePosition)||T(g._mainMirrorPosition))return!0;var m=g._linepositions||{};for(var k in m)if(T(m[k][0])||T(m[k][1]))return!0}var f=o._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return s(t,u);for(var c=nr.list(e,l),d=0;d<c.length;d++){var x=c[d];if(x._mainAxis===a&&s(x,u))return!0}}function Xne(e,r){for(var t=e._fullData,n=r._mainSubplot,a=r._id.charAt(0),o=0;o<t.length;o++){var i=t[o];if(i.visible===!0&&i.xaxis+i.yaxis===n&&($0.traceIs(i,"bar-like")&&i.orientation==={x:"h",y:"v"}[a]||i.fill&&i.fill.charAt(i.fill.length-1)===a))return!0}return!1}function g3(e){var r=$a.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}nr.allowAutoMargin=function(e){for(var r=nr.list(e,"",!0),t=0;t<r.length;t++){var n=r[t];n.automargin&&(Qu.allowAutoMargin(e,_3(n)),n.mirror&&Qu.allowAutoMargin(e,OS(n))),$0.getComponentMethod("rangeslider","isVisible")(n)&&Qu.allowAutoMargin(e,BS(n))}};function _3(e){return e._id+".automargin"}function OS(e){return _3(e)+".mirror"}function BS(e){return e._id+".rangeslider"}nr.swap=function(e,r){for(var t=Wne(e,r),n=0;n<t.length;n++)Zne(e,t[n].x,t[n].y)};function Wne(e,r){var t=[],n,a;for(n=0;n<r.length;n++){var o=[],i=e._fullData[r[n]].xaxis,l=e._fullData[r[n]].yaxis;if(!(!i||!l)){for(a=0;a<t.length;a++)(t[a].x.indexOf(i)!==-1||t[a].y.indexOf(l)!==-1)&&o.push(a);if(!o.length){t.push({x:[i],y:[l]});continue}var u=t[o[0]],s;if(o.length>1)for(a=1;a<o.length;a++)s=t[o[a]],T1(u.x,s.x),T1(u.y,s.y);T1(u.x,[i]),T1(u.y,[l])}}return t}function T1(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function Zne(e,r,t){var n=[],a=[],o=e.layout,i,l;for(i=0;i<r.length;i++)n.push(nr.getFromId(e,r[i]));for(i=0;i<t.length;i++)a.push(nr.getFromId(e,t[i]));var u=Object.keys(une),s=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(i=0;i<u.length;i++){var c=u[i],d=n[0][c],x=a[0][c],g=!0,w=!1,T=!1;if(!(c.charAt(0)==="_"||typeof d=="function"||s.indexOf(c)!==-1)){for(l=1;l<n.length&&g;l++){var m=n[l][c];c==="type"&&f.indexOf(d)!==-1&&f.indexOf(m)!==-1&&d!==m?w=!0:m!==d&&(g=!1)}for(l=1;l<a.length&&g;l++){var k=a[l][c];c==="type"&&f.indexOf(x)!==-1&&f.indexOf(k)!==-1&&x!==k?T=!0:a[l][c]!==x&&(g=!1)}g&&(w&&(o[n[0]._name].type="linear"),T&&(o[a[0]._name].type="linear"),Jne(o,c,n,a,e._fullLayout._dfltTitle))}}for(i=0;i<e._fullLayout.annotations.length;i++){var S=e._fullLayout.annotations[i];r.indexOf(S.xref)!==-1&&t.indexOf(S.yref)!==-1&&kr.swapAttrs(o.annotations[i],["?"])}}function Jne(e,r,t,n,a){var o=kr.nestedProperty,i=o(e[t[0]._name],r).get(),l=o(e[n[0]._name],r).get(),u;for(r==="title"&&(i&&i.text===a.x&&(i.text=a.y),l&&l.text===a.y&&(l.text=a.x)),u=0;u<t.length;u++)o(e,t[u]._name+"."+r).set(l);for(u=0;u<n.length;u++)o(e,n[u]._name+"."+r).set(i)}function w3(e){return e._id==="angularaxis"}function f3(e,r){for(var t=r._rangebreaks.length,n=0;n<t;n++){var a=r._rangebreaks[n];if(e>=a.min&&e<a.max)return a.max}return e}function rc(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function I1(e,r){rc(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function y3(e,r,t,n){var a=e.anchor!=="free"&&(e.overlaying===void 0||e.overlaying===!1)?e._id:e.overlaying,o;n?o=e.side==="right"?r:-r:o=r,a in t||(t[a]={}),e.side in t[a]||(t[a][e.side]=0),t[a][e.side]+=o}function $ne(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function Kne(e,r){return/%f/.test(r)?e>=dne:/%L/.test(r)?e>=hne:/%[SX]/.test(r)?e>=E1:/%M/.test(r)?e>=Q0:/%[HI]/.test(r)?e>=ao:/%p/.test(r)?e>=wl:/%[Aadejuwx]/.test(r)?e>=ra:/%[UVW]/.test(r)?e>=Da:/%[Bbm]/.test(r)?e>=C1:/%[q]/.test(r)?e>=S1:/%[Yy]/.test(r)?e>=k1:!0}});var VS=xe((m5e,HS)=>{"use strict";HS.exports=function(r,t,n){var a,o;if(n){var i=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[i?1:0],o=n[i?0:1]}var l=r("autorangeoptions.minallowed",o===null?a:void 0),u=r("autorangeoptions.maxallowed",a===null?o:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var M3=xe((b5e,GS)=>{"use strict";var Qne=VS();GS.exports=function(r,t,n,a){var o=t._template||{},i=t.type||o.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var u;!a.noInsiderange&&i!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=n("range",u)))}var s=t.getAutorangeDflt(l,a),f=n("autorange",s),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(s=t.getAutorangeDflt(l,a),f=n("autorange",s)),f&&(Qne(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var XS=xe((x5e,YS)=>{var jne={left:0,top:0};YS.exports=eae;function eae(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,o=rae(r);return t[0]=n-o.left,t[1]=a-o.top,t}function rae(e){return e===window||e===document||e===document.body?jne:e.getBoundingClientRect()}});var z1=xe((_5e,WS)=>{"use strict";var tae=jy();function nae(){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}WS.exports=tae&&nae()});var JS=xe((w5e,ZS)=>{"use strict";ZS.exports=function(r,t,n,a,o){var i=(r-n)/(a-n),l=i+t/(a-n),u=(i+l)/2;return o==="left"||o==="bottom"?i:o==="center"||o==="middle"?u:o==="right"||o==="top"?l:i<2/3-u?i:l>4/3-u?l:u}});var QS=xe((M5e,KS)=>{"use strict";var $S=rr(),aae=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];KS.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=$S.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=$S.constrain(Math.floor(t*3),0,2),aae[t][r]}});var eC=xe((T5e,jS)=>{"use strict";var iae=N0(),oae=Nh(),lae=E0().getGraphDiv,sae=c0(),T3=jS.exports={};T3.wrapped=function(e,r,t){var o;e=lae(e),e._fullLayout&&oae.clear(e._fullLayout._uid+sae.HOVERID);let n=e._hoverdata;T3.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(o=e._fullLayout)!=null&&o.hoveranywhere&&(r!=null&&r.target)&&!n&&e.emit("plotly_unhover",{event:r,points:[]}))};T3.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&iae.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}),!0)}});var Ai=xe((A5e,aC)=>{"use strict";var uae=XS(),A3=rm(),fae=z1(),cae=rr().removeElement,vae=mn(),Es=aC.exports={};Es.align=JS();Es.getCursor=QS();var tC=eC();Es.unhover=tC.wrapped;Es.unhoverRaw=tC.raw;Es.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,o=r.element,i,l,u,s,f,c,d,x;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=T,fae?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=T,o.addEventListener("touchstart",T,{passive:!1})):o.ontouchstart=T;function g(S,b,M){return Math.abs(S)<M&&(S=0),Math.abs(b)<M&&(b=0),[S,b]}var w=r.clampFn||g;function T(S){t._dragged=!1,t._dragging=!0;var b=rC(S);i=b[0],l=b[1],d=S.target,c=S,x=S.buttons===2||S.ctrlKey,typeof S.clientX=="undefined"&&typeof S.clientY=="undefined"&&(S.clientX=i,S.clientY=l),u=new Date().getTime(),u-t._mouseDownTime<a?n+=1:(n=1,t._mouseDownTime=u),r.prepFn&&r.prepFn(S,i,l),A3&&!x?(f=nC(),f.style.cursor=window.getComputedStyle(o).cursor):A3||(f=document,s=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(o).cursor),document.addEventListener("mouseup",k),document.addEventListener("touchend",k),r.dragmode!==!1&&(S.preventDefault(),document.addEventListener("mousemove",m),document.addEventListener("touchmove",m,{passive:!1}))}function m(S){S.preventDefault();var b=rC(S),M=r.minDrag||vae.MINDRAG,h=w(b[0]-i,b[1]-l,M),_=h[0],y=h[1];(_||y)&&(t._dragged=!0,Es.unhover(t,S)),t._dragged&&r.moveFn&&!x&&(t._dragdata={element:o,dx:_,dy:y},r.moveFn(_,y))}function k(S){if(delete t._dragdata,r.dragmode!==!1&&(S.preventDefault(),document.removeEventListener("mousemove",m),document.removeEventListener("touchmove",m)),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",k),A3?cae(f):s&&(f.documentElement.style.cursor=s,s=null),!t._dragging){t._dragged=!1;return}if(t._dragging=!1,new Date().getTime()-t._mouseDownTime>a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===d?b=c:(b={target:d,srcElement:d,toElement:d},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var h=c[M];!b[M]&&typeof h!="function"&&(b[M]=h)})),r.clickFn&&r.clickFn(n,b),x||d.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function nC(){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}Es.coverSlip=nC;function rC(e){return uae(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ml=xe((k5e,iC)=>{"use strict";iC.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var sC=xe((S5e,lC)=>{"use strict";var k3=Ml(),tc="data-savedcursor",oC="!!";lC.exports=function(r,t){var n=r.attr(tc);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;o<a.length;o++){var i=a[o];i.indexOf("cursor-")===0&&r.attr(tc,i.slice(7)).classed(i,!1)}r.attr(tc)||r.attr(tc,oC)}k3(r,t)}else n&&(r.attr(tc,null),n===oC?k3(r):k3(r,n))}});var C3=xe((C5e,uC)=>{"use strict";var S3=Nn(),hae=Zi();uC.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:hae.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:S3({editType:"legend"}),grouptitlefont:S3({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:S3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var ac=xe(nc=>{"use strict";nc.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};nc.isVertical=function(r){return r.orientation!=="h"};nc.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};nc.getId=function(r){return r._id||"legend"}});var L3=xe((L5e,fC)=>{"use strict";var F1=Cr(),Pa=rr(),dae=wt(),pae=qn(),gae=C3(),yae=Du(),E3=ac();function mae(e,r,t,n,a){var o=r[e]||{},i=dae.newContainer(t,e);function l(P,O){return Pa.coerce(o,i,gae,P,O)}var u=Pa.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(!s)return;var f,c=function(P,O){var U=f._input,V=f;return Pa.coerce(U,V,pae,P,O)},d=t.font||{},x=Pa.coerceFont(l,"grouptitlefont",d,{overrideDflt:{size:Math.round(d.size*1.1)}}),g=0,w=!1,T="normal",m=(t.shapes||[]).filter(function(P){return P.showlegend});function k(P){return F1.traceIs(P,"pie-like")&&P._length!=null&&(Array.isArray(P.legend)||Array.isArray(P.showlegend))}n.filter(k).forEach(function(P){P.visible&&g++;for(var O=0;O<P._length;O++){var U=(Array.isArray(P.legend)?P.legend[O]:P.legend)||"legend";U===e&&((Array.isArray(P.showlegend)?P.showlegend[O]:P.showlegend)||P._dfltShowLegend)&&(w=!0,g++)}if(e==="legend"&&P._length>P.legend.length)for(var V=P.legend.length;V<P._length;V++)w=!0,g++});for(var S=n.concat(m).filter(function(P){return!k(f)&&e===(P.legend||"legend")}),b=0;b<S.length;b++)if(f=S[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))&&(g++,f.showlegend&&(w=!0,(!M&&F1.traceIs(f,"pie-like")||f._input.showlegend===!0)&&g++),Pa.coerceFont(c,"legendgrouptitle.font",x)),(!M&&F1.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(T=E3.isGrouped({traceorder:T})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(T=E3.isReversed({traceorder:T})?"reversed+grouped":"grouped")}var h=Pa.coerce(r,t,yae,"showlegend",t.showlegend||w&&g>(e==="legend"?1:0));if(h===!1&&(t[e]=void 0),!(h===!1&&!o.uirevision)&&(l("uirevision",t.uirevision),h!==!1)){l("borderwidth");var _=l("orientation"),y=l("yref"),v=l("xref"),A=_==="h",p=y==="paper",R=v==="paper",E,D,F,z="left";A?(E=0,F1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?p?(D=1.1,F="bottom"):(D=1,F="top"):p?(D=-.1,F="top"):(D=0,F="bottom")):(D=1,F="auto",R?E=1.02:(E=1,z="right")),Pa.coerce(o,i,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:E}},"x"),Pa.coerce(o,i,{y:{valType:"number",editType:"legend",min:p?-2:0,max:p?3:1,dflt:D}},"y"),l("traceorder",T),E3.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",z),l("yanchor",F),l("maxheight"),l("valign"),Pa.noneOrAll(o,i,["x","y"]);var I=l("title.text");if(I){l("title.side",A?"left":"top");var L=Pa.extendFlat({},u,{size:Pa.bigFont(u.size)});Pa.coerceFont(l,"title.font",L);let P=a>1;l("titleclick",P?"toggle":!1),l("titledoubleclick",P?"toggleothers":!1)}}}fC.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a<i.length;a++){var l=i[a];if(l.showlegend){var u={_input:l._input,visible:l.visible,showlegend:l.showlegend,legend:l.legend};o.push(u)}}var s=["legend"];for(a=0;a<o.length;a++)Array.isArray(o[a].legend)?s=s.concat(o[a].legend):Pa.pushUnique(s,o[a].legend);for(t._legends=[],a=0;a<s.length;a++){var f=s[a];mae(f,r,t,o,s.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var P3=xe(D3=>{"use strict";var Tl=Cr(),R3=rr(),bae=R3.pushUnique,xae=ac(),cC=!0;D3.handleItemClick=function(r,t,n,a){var o=t._fullLayout;if(t._dragged||t._editing)return;var i=r.data()[0][0];if(i.groupTitle&&i.noClick)return;var l=n.groupclick;a==="toggle"&&n.itemdoubleclick==="toggleothers"&&cC&&t.data&&t._context.showTips&&(R3.notifier(R3._(t,"Double-click on legend to isolate one trace"),"long",t),cC=!1);var u=l==="togglegroup",s=o.hiddenlabels?o.hiddenlabels.slice():[],f=t._fullData;let c=(o.shapes||[]).filter(Me=>Me.showlegend||Me.legendgroup);var d=f.concat(c),x=i.trace;x._isShape&&(x=o.shapes[x.index]);var g=x.legendgroup,w,T,m,k,S,b,M={},h=[],_=[],y=[];function v(Me,ke){var Se=h.indexOf(Me),ge=M.visible;return ge||(ge=M.visible=[]),h.indexOf(Me)===-1&&(h.push(Me),Se=h.length-1),ge[Se]=ke,Se}var A=(o.shapes||[]).map(function(Me){return Me._input}),p=!1;function R(Me,ke){A[Me].visible=ke,p=!0}function E(Me,ke){if(!(i.groupTitle&&!u)){var Se=Me._isShape,ge=Me.index;ge===void 0&&(ge=Me._index);var Le=Me.visible===!1?!1:ke;Se?R(ge,Le):v(ge,Le)}}var D=x.legend;if(!x._isShape&&Tl.traceIs(x,"pie-like")){var F=i.label,z=s.indexOf(F);if(a==="toggle")z===-1?s.push(F):s.splice(z,1);else if(a==="toggleothers"){var I=z!==-1,L=[];for(w=0;w<t.calcdata.length;w++){var P=t.calcdata[w];for(T=0;T<P.length;T++){var O=P[T],U=O.label;D===P[0].trace.legend&&F!==U&&(s.indexOf(U)===-1&&(I=!0),bae(s,U),L.push(U))}}if(!I)for(var V=0;V<L.length;V++){var K=s.indexOf(L[V]);K!==-1&&s.splice(K,1)}}Tl.call("_guiRelayout",t,"hiddenlabels",s)}else{var j=g&&g.length,G=[],q;if(j)for(w=0;w<d.length;w++)q=d[w],q.visible&&q.legendgroup===g&&G.push(w);if(a==="toggle"){var J;switch(x.visible){case!0:J="legendonly";break;case!1:J=!1;break;case"legendonly":J=!0;break}if(j)if(u)for(w=0;w<d.length;w++){var te=d[w];te.visible!==!1&&te.legendgroup===g&&E(te,J)}else E(x,J);else E(x,J)}else if(a==="toggleothers"){var Z,ie,Q,re,se,ee=!0;for(w=0;w<d.length;w++)if(se=d[w],Z=se===x,Q=se.showlegend!==!0,!(Z||Q)&&(ie=j&&se.legendgroup===g,!ie&&se.legend===D&&se.visible===!0&&!Tl.traceIs(se,"notLegendIsolatable"))){ee=!1;break}for(w=0;w<d.length;w++)if(se=d[w],!(se.visible===!1||se.legend!==D)&&!Tl.traceIs(se,"notLegendIsolatable"))switch(x.visible){case"legendonly":E(se,!0);break;case!0:re=ee?!0:"legendonly",Z=se===x,Q=se.showlegend!==!0&&!se.legendgroup,ie=Z||j&&se.legendgroup===g,E(se,ie||Q?!0:re);break}}for(w=0;w<_.length;w++)if(m=_[w],!!m){var ae=m.constructUpdate(),ce=Object.keys(ae);for(T=0;T<ce.length;T++)k=ce[T],b=M[k]=M[k]||[],b[y[w]]=ae[k]}for(S=Object.keys(M),w=0;w<S.length;w++)for(k=S[w],T=0;T<h.length;T++)M[k].hasOwnProperty(T)||(M[k][T]=void 0);p?Tl.call("_guiUpdate",t,M,{shapes:A},h):Tl.call("_guiRestyle",t,M,h)}};D3.handleTitleClick=function(r,t,n){let a=r._fullLayout,o=r._fullData,i=xae.getId(t),l=(a.shapes||[]).filter(m=>m.showlegend||m.legendgroup),u=o.concat(l);function s(m){return(m.legend||"legend")===i}var f,c;if(n==="toggle")f=!u.some(function(k){return s(k)&&k.visible===!0}),c=!1;else{let m=u.some(function(k){return!s(k)&&k.visible===!0&&k.showlegend!==!1});f=!0,c=!m}let d={visible:[]},x=[],g=(a.shapes||[]).map(function(m){return m._input});for(var w=!1,T=0;T<u.length;T++){let m=u[T],k=s(m);if(!k){let M=m.showlegend!==!0&&!m.legendgroup;if(n==="toggle"||M)continue}let b=(k?f:c)?!0:"legendonly";m.visible!==!1&&m.visible!==b&&(m._isShape?(g[m._index].visible=b,w=!0):(x.push(m.index),d.visible.push(b)))}w?Tl.call("_guiUpdate",r,d,{shapes:g},x):x.length&&Tl.call("_guiRestyle",r,d,x)}});var I3=xe((D5e,vC)=>{"use strict";vC.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var pC=xe((P5e,dC)=>{"use strict";var{isArrayOrTypedArray:z3}=sa(),hC=Cr(),F3=ac();dC.exports=function(r,t,n){var a=t._inHover,o=F3.isGrouped(t),i=F3.isReversed(t),l={},u=[],s=!1,f={},c=0,d=0,x,g;function w(O,U,V){if(t.visible!==!1&&!(n&&O!==t._id))if(U===""||!F3.isGrouped(t)){var K="~~i"+c;u.push(K),l[K]=[V],c++}else u.indexOf(U)===-1?(u.push(U),s=!0,l[U]=[V]):l[U].push(V)}for(x=0;x<r.length;x++){var T=r[x],m=T[0],k=m.trace,S=k.legend,b=k.legendgroup;if(!(!a&&(!k.visible||!k.showlegend)))if(hC.traceIs(k,"pie-like")){var M=Array.isArray(k.legend),h=Array.isArray(k.showlegend);for(f[b]||(f[b]={}),g=0;g<T.length;g++)if(!(h&&k.showlegend[T[g].i]===!1)){M&&(S=k.legend[T[g].i]||"legend");var _=T[g].label;f[b][_]||(w(S,b,{label:_,color:T[g].color,i:T[g].i,trace:k,pts:T[g].pts}),f[b][_]=!0,d=Math.max(d,(_||"").length))}}else w(S,b,m),d=Math.max(d,(k.name||"").length)}if(!u.length)return[];var y=!s||!o,v=[];for(x=0;x<u.length;x++){var A=l[u[x]];y?v.push(A[0]):v.push(A)}for(y&&(v=[v]),x=0;x<v.length;x++){var p=1/0;for(g=0;g<v[x].length;g++){var R=v[x][g].trace.legendrank,E=z3(R)?Math.min(R):R;p>E&&(p=E)}v[x][0]._groupMinRank=p,v[x][0]._preGroupSort=x}var D=function(O,U){return O[0]._groupMinRank-U[0]._groupMinRank||O[0]._preGroupSort-U[0]._preGroupSort},F=function(O,U){var V=z3(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank,K=z3(U.trace.legendrank)?U.trace.legendrank[U.i]:U.trace.legendrank;return V-K||O._preSort-U._preSort};for(v.forEach(function(O,U){O[0]._preGroupSort=U}),v.sort(D),x=0;x<v.length;x++){v[x].forEach(function(O,U){O._preSort=U}),v[x].sort(F);var z=v[x][0].trace,I=null;for(g=0;g<v[x].length;g++){var L=v[x][g].trace.legendgrouptitle;if(L&&L.text){I=L,a&&(L.font=t._groupTitleFont);break}}if(i&&v[x].reverse(),I){var P=!1;for(g=0;g<v[x].length;g++)if(hC.traceIs(v[x][g].trace,"pie-like")){P=!0;break}v[x].unshift({i:-1,groupTitle:I,noClick:P,trace:{showlegend:z.showlegend,legendgroup:z.legendgroup,legend:z.legend,visible:t.groupclick==="toggleitem"?!0:z.visible}})}for(g=0;g<v[x].length;g++)v[x][g]=[v[x][g]]}return t._lgroupsLength=v.length,t._maxNameLength=d,v}});var N3=xe(Ls=>{"use strict";var N1=rr();function gC(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Ls.formatPiePercent=function(r,t){var n=gC((r*100).toPrecision(3));return N1.numSeparate(n,t)+"%"};Ls.formatPieValue=function(r,t){var n=gC(r.toPrecision(10));return N1.numSeparate(n,t)};Ls.getFirstFilled=function(r,t){if(N1.isArrayOrTypedArray(r))for(var n=0;n<t.length;n++){var a=r[t[n]];if(a||a===0||a==="")return a}};Ls.castOption=function(r,t){if(N1.isArrayOrTypedArray(r))return Ls.getFirstFilled(r,t);if(r)return r};Ls.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var mC=xe((z5e,yC)=>{"use strict";var _ae=Mt(),wae=Xr();yC.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?_ae.pointStyle(r,n,a,t):wae.fill(r,t.color)}});var wC=xe((F5e,_C)=>{"use strict";var bC=Xr(),xC=N3().castOption,Mae=mC();_C.exports=function(r,t,n,a){var o=n.marker.line,i=xC(o.color,t.pts)||bC.defaultLine,l=xC(o.width,t.pts)||0;r.call(Mae,t,n,a).style("stroke-width",l).call(bC.stroke,i)}});var U3=xe((N5e,CC)=>{"use strict";var ta=nt(),q3=Cr(),Hn=rr(),MC=Hn.strTranslate,Ia=Mt(),Ka=Xr(),O3=$i().extractOpts,q1=wa(),Tae=wC(),Aae=N3().castOption,kae=I3(),TC=12,AC=5,Rs=2,Sae=10,tf=5;CC.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=(i+kae.itemGap*2)/2,u=MC(l,0),s=function(_,y,v,A){var p;if(_+1)p=_;else if(y&&y.width>0)p=y.width;else return 0;return o?A:Math.min(p,v)};r.each(function(_){var y=ta.select(this),v=Hn.ensureSingle(y,"g","layers");v.style("opacity",_[0].trace.opacity);var A=n.indentation,p=n.valign,R=_[0].lineHeight,E=_[0].height;if(p==="middle"&&A===0||!R||!E)v.attr("transform",null);else{var D={top:1,bottom:-1}[p],F=D*(.5*(R-E+3))||0,z=n.indentation;v.attr("transform",MC(z,F))}var I=v.selectAll("g.legendfill").data([_]);I.enter().append("g").classed("legendfill",!0);var L=v.selectAll("g.legendlines").data([_]);L.enter().append("g").classed("legendlines",!0);var P=v.selectAll("g.legendsymbols").data([_]);P.enter().append("g").classed("legendsymbols",!0),P.selectAll("g.legendpoints").data([_]).enter().append("g").classed("legendpoints",!0)}).each(h).each(d).each(g).each(x).each(T).each(b).each(S).each(f).each(c).each(m).each(k);function f(_){var y=kC(_),v=y.showFill,A=y.showLine,p=y.showGradientLine,R=y.showGradientFill,E=y.anyFill,D=y.anyLine,F=_[0],z=F.trace,I,L,P=O3(z),O=P.colorscale,U=P.reversescale,V=function(Z){if(Z.size())if(v)Ia.fillGroupStyle(Z,t,!0);else{var ie="legendfill-"+z.uid;Ia.gradient(Z,t,ie,B3(U),O,"fill")}},K=function(Z){if(Z.size()){var ie="legendline-"+z.uid;Ia.lineGroupStyle(Z),Ia.gradient(Z,t,ie,B3(U),O,"stroke")}},j=q1.hasMarkers(z)||!E?"M5,0":D?"M5,-2":"M5,-3",G=ta.select(this),q=G.select(".legendfill").selectAll("path").data(v||R?[_]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",j+"h"+i+"v6h-"+i+"z").call(V),A||p){var J=s(void 0,z.line,Sae,AC);L=Hn.minExtend(z,{line:{width:J}}),I=[Hn.minExtend(F,{trace:L})]}var te=G.select(".legendlines").selectAll("path").data(A||p?[I]:[]);te.enter().append("path").classed("js-line",!0),te.exit().remove(),te.attr("d",j+(p?"l"+i+",0.0001":"h"+i)).call(A?Ia.lineGroupStyle:K)}function c(_){var y=kC(_),v=y.anyFill,A=y.anyLine,p=y.showLine,R=y.showMarker,E=_[0],D=E.trace,F=!R&&!A&&!v&&q1.hasText(D),z,I;function L(J,te,Z,ie){var Q=Hn.nestedProperty(D,J).get(),re=Hn.isArrayOrTypedArray(Q)&&te?te(Q):Q;if(o&&re&&ie!==void 0&&(re=ie),Z){if(re<Z[0])return Z[0];if(re>Z[1])return Z[1]}return re}function P(J){return E._distinct&&E.index&&J[E.index]?J[E.index]:J[0]}if(R||F||p){var O={},U={};if(R){O.mc=L("marker.color",P);var V=D.type==="scattermap";O.mx=V?"circle":L("marker.symbol",P),O.mo=L("marker.opacity",Hn.mean,[.2,1]),O.mlc=L("marker.line.color",P),O.mlw=L("marker.line.width",Hn.mean,[0,5],Rs),O.mld=L("marker.line.dash",P),U.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var K=L("marker.size",Hn.mean,[2,16],TC);O.ms=K,U.marker.size=K}p&&(U.line={width:L("line.width",P,[0,10],AC)}),F&&(O.tx="Aa",O.tp=L("textposition",P),O.ts=10,O.tc=L("textfont.color",P),O.tf=L("textfont.family",P),O.tw=L("textfont.weight",P),O.ty=L("textfont.style",P),O.tv=L("textfont.variant",P),O.tC=L("textfont.textcase",P),O.tE=L("textfont.lineposition",P),O.tS=L("textfont.shadow",P)),z=[Hn.minExtend(E,O)],I=Hn.minExtend(D,U),I.selectedpoints=null,I.texttemplate=null}var j=ta.select(this).select("g.legendpoints"),G=j.selectAll("path.scatterpts").data(R?z:[]);G.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),G.exit().remove(),G.call(Ia.pointStyle,I,t),R&&(z[0].mrc=3);var q=j.selectAll("g.pointtext").data(F?z:[]);q.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),q.exit().remove(),q.selectAll("text").call(Ia.textPointStyle,I,t)}function d(_){var y=_[0].trace,v=y.type==="waterfall";if(_[0]._distinct&&v){var A=_[0].trace[_[0].dir].marker;return _[0].mc=A.color,_[0].mlw=A.line.width,_[0].mlc=A.line.color,w(_,this,"waterfall")}var p=[];y.visible&&v&&(p=_[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 R=ta.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(p);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(E){var D=ta.select(this),F=y[E[0]].marker,z=s(void 0,F.line,tf,Rs);D.attr("d",E[1]).style("stroke-width",z+"px").call(Ka.fill,F.color),z&&D.call(Ka.stroke,F.line.color)})}function x(_){w(_,this)}function g(_){w(_,this,"funnel")}function w(_,y,v){var A=_[0].trace,p=A.marker||{},R=p.line||{},E=p.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",D=v?A.visible&&A.type===v:q3.traceIs(A,"bar"),F=ta.select(y).select("g.legendpoints").selectAll("path.legend"+v).data(D?[_]:[]);F.enter().append("path").classed("legend"+v,!0).attr("d",E).attr("transform",u),F.exit().remove(),F.each(function(z){var I=ta.select(this),L=z[0],P=s(L.mlw,p.line,tf,Rs);I.style("stroke-width",P+"px");var O=L.mcc;if(!n._inHover&&"mc"in L){var U=O3(p),V=U.mid;V===void 0&&(V=(U.max+U.min)/2),O=Ia.tryColorscale(p,"")(V)}var K=O||L.mc||p.color,j=p.pattern,G=Ia.getPatternAttr,q=j&&(G(j.shape,0,"")||G(j.path,0,""));if(q){var J=G(j.bgcolor,0,null),te=G(j.fgcolor,0,null),Z=j.fgopacity,ie=SC(j.size,8,10),Q=SC(j.solidity,.5,1),re="legend-"+A.uid;I.call(Ia.pattern,"legend",t,re,q,ie,Q,O,j.fillmode,J,te,Z)}else I.call(Ka.fill,K);P&&Ka.stroke(I,L.mlc||R.color)})}function T(_){var y=_[0].trace,v=ta.select(this).select("g.legendpoints").selectAll("path.legendbox").data(y.visible&&q3.traceIs(y,"box-violin")?[_]:[]);v.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),v.exit().remove(),v.each(function(){var A=ta.select(this);if((y.boxpoints==="all"||y.points==="all")&&Ka.opacity(y.fillcolor)===0&&Ka.opacity((y.line||{}).color)===0){var p=Hn.minExtend(y,{marker:{size:o?TC:Hn.constrain(y.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});v.call(Ia.pointStyle,p,t)}else{var R=s(void 0,y.line,tf,Rs);A.style("stroke-width",R+"px").call(Ka.fill,y.fillcolor),R&&Ka.stroke(A,y.line.color)}})}function m(_){var y=_[0].trace,v=ta.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(y.visible&&y.type==="candlestick"?[_,_]:[]);v.enter().append("path").classed("legendcandle",!0).attr("d",function(A,p){return p?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),v.exit().remove(),v.each(function(A,p){var R=ta.select(this),E=y[p?"increasing":"decreasing"],D=s(void 0,E.line,tf,Rs);R.style("stroke-width",D+"px").call(Ka.fill,E.fillcolor),D&&Ka.stroke(R,E.line.color)})}function k(_){var y=_[0].trace,v=ta.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(y.visible&&y.type==="ohlc"?[_,_]:[]);v.enter().append("path").classed("legendohlc",!0).attr("d",function(A,p){return p?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),v.exit().remove(),v.each(function(A,p){var R=ta.select(this),E=y[p?"increasing":"decreasing"],D=s(void 0,E.line,tf,Rs);R.style("fill","none").call(Ia.dashLine,E.line.dash,D),D&&Ka.stroke(R,E.line.color)})}function S(_){M(_,this,"pie")}function b(_){M(_,this,"funnelarea")}function M(_,y,v){var A=_[0],p=A.trace,R=v?p.visible&&p.type===v:q3.traceIs(p,v),E=ta.select(y).select("g.legendpoints").selectAll("path.legend"+v).data(R?[_]:[]);if(E.enter().append("path").classed("legend"+v,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.size()){var D=p.marker||{},F=s(Aae(D.line.width,A.pts),D.line,tf,Rs),z="pieLike",I=Hn.minExtend(p,{marker:{line:{width:F}}},z),L=Hn.minExtend(A,{trace:I},z);Tae(E,L,I,t)}}function h(_){var y=_[0].trace,v,A=[];if(y.visible)switch(y.type){case"histogram2d":case"heatmap":A=[["M-15,-2V4H15V-2Z"]],v=!0;break;case"choropleth":case"choroplethmap":A=[["M-6,-6V6H6V-6Z"]],v=!0;break;case"densitymap":A=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],v="radial";break;case"cone":A=[["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"]],v=!1;break;case"streamtube":A=[["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"]],v=!1;break;case"surface":A=[["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"]],v=!0;break;case"mesh3d":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],v=!1;break;case"volume":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],v=!0;break;case"isosurface":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],v=!1;break}var p=ta.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);p.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),p.exit().remove(),p.each(function(R,E){var D=ta.select(this),F=O3(y),z=F.colorscale,I=F.reversescale,L=function(V){if(V.size()){var K="legendfill-"+y.uid;Ia.gradient(V,t,K,B3(I,v==="radial"),z,"fill")}},P;if(z){if(!v){var U=z.length;P=E===0?z[I?U-1:0][1]:E===1?z[I?0:U-1][1]:z[Math.floor((U-1)/2)][1]}}else{var O=y.vertexcolor||y.facecolor||y.color;P=Hn.isArrayOrTypedArray(O)?O[E]||O[0]:O}D.attr("d",R[0]),P?D.call(Ka.fill,P):D.call(L)})}};function B3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function kC(e){var r=e[0].trace,t=r.contours,n=q1.hasLines(r)||r.visible&&r.type==="quiver",a=q1.hasMarkers(r),o=r.visible&&r.fill&&r.fill!=="none",i=!1,l=!1;if(t){var u=t.coloring;u==="lines"?i=!0:n=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?o=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:o,showGradientLine:i,showGradientFill:l,anyLine:n||i,anyFill:o||l}}function SC(e,r,t){return e&&Hn.isArrayOrTypedArray(e)?r:e>t?t:e}});var Y3=xe((q5e,NC)=>{"use strict";var ua=nt(),en=rr(),V3=bn(),Ds=Cr(),U1=N0(),H3=Ai(),rn=Mt(),ic=Xr(),Ps=Un(),EC=P3().handleItemClick,LC=P3().handleTitleClick,an=I3(),G3=Bn(),zC=G3.LINE_SPACING,af=G3.FROM_TL,RC=G3.FROM_BR,DC=pC(),Cae=U3(),of=ac(),nf=1,Eae=/^legend[0-9]*$/;NC.exports=function(r,t){if(t)PC(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=ua.select(this),f=s.attr("class"),c=f.split(" ")[0];c.match(Eae)&&a.indexOf(c)===-1&&s.remove()});for(var i=0;i<a.length;i++){var l=a[i],u=r._fullLayout[l];PC(r,u)}}};function Lae(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var n=r.title.font,a=n.size*zC,o=0,i=e.node(),l=rn.bBox(i).width;r.title.side==="top center"?o=.5*(r._width-2*t-2*an.titlePad-l):r.title.side==="top right"&&(o=r._width-2*t-2*an.titlePad-l),Ps.positionText(e,t+an.titlePad+o,t+a)}}function PC(e,r){var t=r||{},n=e._fullLayout,a=of.getId(t),o,i,l=t._inHover;if(l?(i=t.layer,o="hover"):(i=n._infolayer,o=a),!!i){o+=n._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0);var u;if(l){if(!t.entries)return;u=DC(t.entries,t)}else{for(var s=(e.calcdata||[]).slice(),f=n.shapes,c=0;c<f.length;c++){var d=f[c];if(d.showlegend){var x={_isShape:!0,index:d._index,name:d.name||d.label.text||"shape "+d._index,legend:d.legend,legendgroup:d.legendgroup,legendgrouptitle:d.legendgrouptitle,legendrank:d.legendrank,legendwidth:d.legendwidth,showlegend:d.showlegend,visible:d.visible,opacity:d.opacity,mode:d.type==="line"?"lines":"markers",line:d.line,marker:{line:d.line,color:d.fillcolor,size:12,symbol:d.type==="rect"?"square":d.type==="circle"?"circle":"hexagon2"}};s.push([{trace:x}])}}u=n.showlegend&&DC(s,t,n._legends.length>1)}var g=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),V3.autoMargin(e,a);var w=en.ensureSingle(i,"g",a,function(y){l||y.attr("pointer-events","all")}),T=en.ensureSingleById(n._topdefs,"clipPath",o,function(y){y.append("rect")}),m=en.ensureSingle(w,"rect","bg",function(y){y.attr("shape-rendering","crispEdges")});m.call(ic.stroke,t.bordercolor).call(ic.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=en.ensureSingle(w,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var b;S.text?(b=en.ensureSingle(k,"text",a+"titletext"),b.attr("text-anchor","start").call(rn.font,S.font).text(S.text),B1(b,k,e,t,nf),!l&&(t.titleclick||t.titledoubleclick)&&Pae(k,e,t,a)):(k.selectAll("."+a+"titletext").remove(),k.selectAll("."+a+"titletoggle").remove());var M=en.ensureSingle(w,"rect","scrollbar",function(y){y.attr(an.scrollBarEnterAttrs).call(ic.fill,an.scrollBarColor)}),h=k.selectAll("g.groups").data(u);h.enter().append("g").attr("class","groups"),h.exit().remove();var _=h.selectAll("g.traces").data(en.identity);_.enter().append("g").attr("class","traces"),_.exit().remove(),_.style("opacity",function(y){let v=y[0],A=v.trace;if(v.groupTitle){let p=A.legendgroup,R=(n.shapes||[]).filter(function(D){return D.showlegend});return e._fullData.concat(R).some(function(D){return D.legendgroup===p&&(D.legend||"legend")===a&&D.visible===!0})?1:.5}return Ds.traceIs(A,"pie-like")?g.indexOf(y[0].label)!==-1?.5:1:A.visible==="legendonly"?.5:1}).each(function(){ua.select(this).call(Rae,e,t)}).call(Cae,e,t).each(function(y){l||y[0].groupTitle&&t.groupclick==="toggleitem"||ua.select(this).call(Dae,e,a)}),en.syncOrAsync([V3.previousPromises,function(){return Fae(e,h,_,t,k)},function(){var y=n._size,v=t.borderwidth,A=t.xref==="paper",p=t.yref==="paper";if(S.text){let ae=(n.shapes||[]).filter(function(Me){return Me.showlegend}),ce=e._fullData.concat(ae).some(function(Me){let ke=Me.legend||"legend";var Se=Array.isArray(ke)?ke.includes(a):ke===a;return Se&&Me.visible===!0});b.style("opacity",ce?1:.5)}if(!l){var R,E;A?R=y.l+y.w*t.x-af[H1(t)]*t._width:R=n.width*t.x-af[H1(t)]*t._width,p?E=y.t+y.h*(1-t.y)-af[V1(t)]*t._effHeight:E=n.height*(1-t.y)-af[V1(t)]*t._effHeight;var D=Nae(e,a,R,E);if(D)return;if(n.margin.autoexpand){var F=R,z=E;R=A?en.constrain(R,0,n.width-t._width):F,E=p?en.constrain(E,0,n.height-t._effHeight):z,R!==F&&en.log("Constrain "+a+".x to make legend fit inside graph"),E!==z&&en.log("Constrain "+a+".y to make legend fit inside graph")}rn.setTranslate(w,R,E)}if(M.on(".drag",null),w.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var I=t._effHeight;l&&(I=t._height),m.attr({width:t._width-v,height:I-v,x:v/2,y:v/2}),rn.setTranslate(k,0,0),T.select("rect").attr({width:t._width-2*v,height:I-2*v,x:v,y:v}),rn.setClipUrl(k,o,e),rn.setRect(M,0,0,0,0),delete t._scrollY}else{var L=Math.max(an.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),P=t._effHeight-L-2*an.scrollBarMargin,O=t._height-t._effHeight,U=P/O,V=Math.min(t._scrollY||0,O);m.attr({width:t._width-2*v+an.scrollBarWidth+an.scrollBarMargin,height:t._effHeight-v,x:v/2,y:v/2}),T.select("rect").attr({width:t._width-2*v+an.scrollBarWidth+an.scrollBarMargin,height:t._effHeight-2*v,x:v,y:v+V}),rn.setClipUrl(k,o,e),ie(V,L,U),w.on("wheel",function(){V=en.constrain(t._scrollY+ua.event.deltaY/O*P,0,O),ie(V,L,U),V!==0&&V!==O&&ua.event.preventDefault()});var K,j,G,q=function(ae,ce,Me){var ke=(Me-ce)/U+ae;return en.constrain(ke,0,O)},J=function(ae,ce,Me){var ke=(ce-Me)/U+ae;return en.constrain(ke,0,O)},te=ua.behavior.drag().on("dragstart",function(){var ae=ua.event.sourceEvent;ae.type==="touchstart"?K=ae.changedTouches[0].clientY:K=ae.clientY,G=V}).on("drag",function(){var ae=ua.event.sourceEvent;ae.buttons===2||ae.ctrlKey||(ae.type==="touchmove"?j=ae.changedTouches[0].clientY:j=ae.clientY,V=q(G,K,j),ie(V,L,U))});M.call(te);var Z=ua.behavior.drag().on("dragstart",function(){var ae=ua.event.sourceEvent;ae.type==="touchstart"&&(K=ae.changedTouches[0].clientY,G=V)}).on("drag",function(){var ae=ua.event.sourceEvent;ae.type==="touchmove"&&(j=ae.changedTouches[0].clientY,V=J(G,K,j),ie(V,L,U))});k.call(Z)}function ie(ae,ce,Me){t._scrollY=e._fullLayout[a]._scrollY=ae,rn.setTranslate(k,0,-ae),rn.setRect(M,t._width,an.scrollBarMargin+ae*Me,an.scrollBarWidth,ce),T.select("rect").attr("y",v+ae)}if(e._context.edits.legendPosition){var Q,re,se,ee;w.classed("cursor-move",!0),H3.init({element:w.node(),gd:e,prepFn:function(ae){if(ae.target!==M.node()){var ce=rn.getTranslate(w);se=ce.x,ee=ce.y}},moveFn:function(ae,ce){if(se!==void 0&&ee!==void 0){var Me=se+ae,ke=ee+ce;rn.setTranslate(w,Me,ke),Q=H3.align(Me,t._width,y.l,y.l+y.w,t.xanchor),re=H3.align(ke+t._height,-t._height,y.t+y.h,y.t,t.yanchor)}},doneFn:function(){if(Q!==void 0&&re!==void 0){var ae={};ae[a+".x"]=Q,ae[a+".y"]=re,Ds.call("_guiRelayout",e,ae)}},clickFn:function(ae,ce){var Me=i.selectAll("g.traces").filter(function(){var ke=this.getBoundingClientRect();return ce.clientX>=ke.left&&ce.clientX<=ke.right&&ce.clientY>=ke.top&&ce.clientY<=ke.bottom});Me.size()>0&&FC(e,t,Me,ae,ce)}})}}],e)}}function O1(e,r,t){var n=e[0],a=n.width,o=r.entrywidthmode,i=n.trace.legendwidth||r.entrywidth;return o==="fraction"?r._maxWidth*i:t+(i||a)}function FC(e,r,t,n,a){var o=e._fullLayout,i=t.data()[0][0].trace,l=r.itemclick,u=r.itemdoubleclick,s={event:a,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:o};i._group&&(s.group=i._group),Ds.traceIs(i,"pie-like")&&(s.label=t.datum()[0].label);var f=U1.triggerHandler(e,"plotly_legendclick",s);if(n===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&EC(t,e,r,l)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=U1.triggerHandler(e,"plotly_legenddoubleclick",s);c!==!1&&f!==!1&&u&&EC(t,e,r,u)}}function Rae(e,r,t){var n=of.getId(t),a=e.data()[0][0],o=a.trace,i=Ds.traceIs(o,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!i,u=t._maxNameLength,s,f;a.groupTitle?(s=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?s=a.text:(s=i?a.label:o.name,o._meta&&(s=en.templateString(s,o._meta))));var c=en.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(rn.font,f).text(l?IC(s,u):s);var d=t.indentation+t.itemwidth+an.itemGap*2;Ps.positionText(c,d,0),l?c.call(Ps.makeEditable,{gd:r,text:s}).call(B1,e,r,t).on("edit",function(x){this.text(IC(x,u)).call(B1,e,r,t);var g={};return g.name=x,a.trace._isShape?Ds.call("_guiRelayout",r,"shapes["+o.index+"].name",g.name):Ds.call("_guiRestyle",r,g,o.index)}):B1(c,e,r,t)}function IC(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function Dae(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=en.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(ic.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTime<n?o+=1:(o=1,r._legendMouseDownTime=a)}),i.on("mouseup",function(){if(!(r._dragged||r._editing)){var l=r._fullLayout[t];new Date().getTime()-r._legendMouseDownTime>n&&(o=Math.max(o-1,1)),FC(r,l,e,o,ua.event)}}))}function Pae(e,r,t,n){if(r._fullData.some(function(s){let f=s.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&Ds.traceIs(s,"pie-like")}))return;let o=r._context.doubleClickDelay;var i,l=1;let u=en.ensureSingle(e,"rect",n+"titletoggle",function(s){r._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(ic.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(u.on("mousedown",function(){i=new Date().getTime(),i-r._legendMouseDownTime<o?l+=1:(l=1,r._legendMouseDownTime=i)}),u.on("mouseup",function(){if(r._dragged||r._editing)return;new Date().getTime()-r._legendMouseDownTime>o&&(l=Math.max(l-1,1));let s={event:ua.event,legendId:n,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(U1.triggerHandler(r,"plotly_legendtitleclick",s)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&LC(r,t,t.titleclick)},o)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,U1.triggerHandler(r,"plotly_legendtitledoubleclick",s)!==!1&&t.titledoubleclick&&LC(r,t,t.titledoubleclick))}))}function B1(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),Ps.convertToTspans(e,t,function(){Iae(r,t,n,a)})}function Iae(e,r,t,n){var a=e.data()[0][0],o=a&&a.trace.showlegend;if(Array.isArray(o)&&(o=o[a.i]!==!1),!t._inHover&&a&&!o){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),u=of.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;n===nf?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var c=f.size*zC,d,x;if(l){var g=rn.bBox(l);d=g.height,x=g.width,n===nf?rn.setTranslate(i,s,s+d*.75):rn.setTranslate(i,0,d*.25)}else{var w="."+u+(n===nf?"title":"")+"text",T=e.select(w),m=Ps.lineCount(T),k=T.node();if(d=c*m,x=k?rn.bBox(k).width:0,n===nf)t.title.side==="left"&&(x+=an.itemGap*2),Ps.positionText(T,s+an.titlePad,s+c);else{var S=an.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(S=an.itemGap,x-=t.indentation+t.itemwidth),Ps.positionText(T,S,-c*((m-1)/2-.3))}}n===nf?(t._titleWidth=x,t._titleHeight=d):(a.lineHeight=c,a.height=Math.max(d,16)+3,a.width=x)}function zae(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Fae(e,r,t,n,a){var o=e._fullLayout,i=of.getId(n);n||(n=o[i]);var l=o._size,u=of.isVertical(n),s=of.isGrouped(n),f=n.entrywidthmode==="fraction",c=n.borderwidth,d=2*c,x=an.itemGap,g=n.indentation+n.itemwidth+x*2,w=2*(c+x),T=V1(n),m=n.y<0||n.y===0&&T==="top",k=n.y>1||n.y===1&&T==="bottom",S=n.tracegroupgap,b={};let{orientation:M,yref:h}=n,{maxheight:_}=n,y=m||k||M!=="v"||h!=="paper";_||(_=y?.5:1);let v=y?o.height:l.h;n._maxHeight=Math.max(_>1?_:_*v,30);var A=0;n._width=0,n._height=0;var p=zae(n);if(u)t.each(function(ae){var ce=ae[0].height;rn.setTranslate(this,c+p[0],c+p[1]+n._height+ce/2+x),n._height+=ce,n._width=Math.max(n._width,ae[0].width)}),A=g+n._width,n._width+=x+g+d,n._height+=w,s&&(r.each(function(ae,ce){rn.setTranslate(this,0,ce*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var R=H1(n),E=n.x<0||n.x===0&&R==="right",D=n.x>1||n.x===1&&R==="left",F=k||m,z=o.width/2;n._maxWidth=Math.max(E?F&&R==="left"?l.l+l.w:z:D?F&&R==="right"?l.r+l.w:z:l.w,2*g);var I=0,L=0;t.each(function(ae){var ce=O1(ae,n,g);I=Math.max(I,ce),L+=ce}),A=null;var P=0;if(s){var O=0,U=0,V=0;r.each(function(){var ae=0,ce=0;ua.select(this).selectAll("g.traces").each(function(ke){var Se=O1(ke,n,g),ge=ke[0].height;rn.setTranslate(this,p[0],p[1]+c+x+ge/2+ce),ce+=ge,ae=Math.max(ae,Se),b[ke[0].trace.legendgroup]=ae});var Me=ae+x;U>0&&Me+c+U>n._maxWidth?(P=Math.max(P,U),U=0,V+=O+S,O=ce):O=Math.max(O,ce),rn.setTranslate(this,U,V),U+=Me}),n._width=Math.max(P,U)+c,n._height=V+O+w}else{var K=t.size(),j=L+d+(K-1)*x<n._maxWidth,G=0,q=0,J=0,te=0;t.each(function(ae){var ce=ae[0].height,Me=O1(ae,n,g,s),ke=j?Me:I;f||(ke+=x),ke+c+q-x>=n._maxWidth&&(P=Math.max(P,te),q=0,J+=G,n._height+=G,G=0),rn.setTranslate(this,p[0]+c+q,p[1]+c+J+ce/2+x),te=q+Me+x,q+=ke,G=Math.max(G,ce)}),j?(n._width=q+d,n._height=G+w):(n._width=Math.max(P,te)+d,n._height+=G+w)}}n._width=Math.ceil(Math.max(n._width+p[0],n._titleWidth+2*(c+an.titlePad))),n._height=Math.ceil(Math.max(n._height+p[1],n._titleHeight+2*(c+an.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Z=e._context.edits,ie=Z.legendText||Z.legendPosition;t.each(function(ae){var ce=ua.select(this).select("."+i+"toggle"),Me=ae[0].height,ke=ae[0].trace.legendgroup,Se=O1(ae,n,g);s&&ke!==""&&(Se=b[ke]);var ge=ie?g:A||Se;!u&&!f&&(ge+=x/2),rn.setRect(ce,0,-Me/2,ge,Me)});var Q=a.select("."+i+"titletext");Q.node()&&Lae(Q,n,c);var re=a.select("."+i+"titletoggle");if(re.size()&&Q.node()){var se=Q.attr("x")||0,ee=an.titlePad;rn.setRect(re,se-ee,c,n._titleWidth+2*ee,n._titleHeight+2*ee)}}function Nae(e,r,t,n){var a=e._fullLayout,o=a[r],i=H1(o),l=V1(o),u=o.xref==="paper",s=o.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=o.y<.5?"b":"t",c=o.x<.5?"l":"r",d={r:a.width-t,l:t+o._width,b:a.height-n,t:n+o._effHeight};if(u&&s)return V3.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*af[i],r:o._width*RC[i],b:o._effHeight*RC[l],t:o._effHeight*af[l]});u?e._fullLayout._reservedMargin[r][f]=d[f]:s||o.orientation==="v"?e._fullLayout._reservedMargin[r][c]=d[c]:e._fullLayout._reservedMargin[r][f]=d[f]}function H1(e){return en.isRightAnchor(e)?"right":en.isCenterAnchor(e)?"center":"left"}function V1(e){return en.isBottomAnchor(e)?"bottom":en.isMiddleAnchor(e)?"middle":"top"}});var J3=xe(Z3=>{"use strict";var Is=nt(),Po=it(),Gt=rr(),qae=Gt.pushUnique,X3=Gt.strTranslate,Oae=Gt.strRotate,Bae=N0(),Qa=Un(),Uae=sC(),oo=Mt(),on=Xr(),G1=Ai(),lo=Ot(),Hae=mn().zindexSeparator,sf=Cr(),za=eo(),zs=c0(),Vae=L3(),Gae=Y3(),YC=zs.YANGLE,W3=Math.PI*YC/180,Yae=1/Math.sin(W3),Xae=Math.cos(W3),Wae=Math.sin(W3),Ft=zs.HOVERARROWSIZE,jr=zs.HOVERTEXTPAD,qC={box:!0,ohlc:!0,violin:!0,candlestick:!0},Zae={scatter:!0,scattergl:!0,splom:!0};function OC(e,r){return e.distance-r.distance}Z3.hover=function(r,t,n,a){r=Gt.getGraphDiv(r);var o=t.target;Gt.throttle(r._fullLayout._uid+zs.HOVERID,zs.HOVERMINTIME,function(){Jae(r,t,n,a,o)})};Z3.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=$C(a),i=KC(a),l=r.map(function(T){var m=T._x0||T.x0||T.x||0,k=T._x1||T.x1||T.x||0,S=T._y0||T.y0||T.y||0,b=T._y1||T.y1||T.y||0,M=T.eventData;if(M){var h=Math.min(m,k),_=Math.max(m,k),y=Math.min(S,b),v=Math.max(S,b),A=T.trace;if(sf.traceIs(A,"gl3d")){var p=a._fullLayout[A.scene]._scene.container,R=p.offsetLeft,E=p.offsetTop;h+=R,_+=R,y+=E,v+=E}M.bbox={x0:h+i,x1:_+i,y0:y+o,y1:v+o},M.xPixel=(m+k)/2,M.yPixel=(S+b)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:T.color||on.defaultLine,x0:T.x0||T.x||0,x1:T.x1||T.x||0,y0:T.y0||T.y||0,y1:T.y1||T.y||0,xLabel:T.xLabel,yLabel:T.yLabel,zLabel:T.zLabel,text:T.text,name:T.name,idealAlign:T.idealAlign,borderColor:T.borderColor,fontFamily:T.fontFamily,fontSize:T.fontSize,fontColor:T.fontColor,fontWeight:T.fontWeight,fontStyle:T.fontStyle,fontVariant:T.fontVariant,nameLength:T.nameLength,textAlign:T.textAlign,trace:T.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:T.hovertemplate||!1,hovertemplateLabels:T.hovertemplateLabels||!1,eventData:M}}),u=!1,s=WC(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||on.background,container:Is.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,c=5,d=0,x=0;f.sort(function(T,m){return T.y0-m.y0}).each(function(T,m){var k=T.y0-T.by/2;k-c<d?T.offset=d-k+c:T.offset=0,d=k+T.by+T.offset,m===t.anchorIndex&&(x=T.offset)}).each(function(T){T.offset-=x});var g=a._fullLayout._invScaleX,w=a._fullLayout._invScaleY;return JC(f,u,g,w),n?f:f.node()};function Jae(e,r,t,n,a){t||(t="xy"),typeof t=="string"&&(t=t.split(Hae)[0]);var o=Array.isArray(t)?t:[t],i,l=e._fullLayout,u=l.hoversubplots,s=l._plots||[],f=s[t],c=l._has("cartesian"),d=r.hovermode||l.hovermode,x=(d||"").charAt(0)==="x",g=(d||"").charAt(0)==="y",w,T;if(c&&(x||g)&&u==="axis"){for(var m=o.length,k=0;k<m;k++)if(i=o[k],s[i]){w=lo.getFromId(e,i,"x"),T=lo.getFromId(e,i,"y");var S=(x?w:T)._subplotsWith;if(S&&S.length)for(var b=0;b<S.length;b++)qae(o,S[b])}}if(f&&u!=="single"){var M=f.overlays.map(function(lr){return lr.id});o=o.concat(M)}for(var h=o.length,_=new Array(h),y=new Array(h),v=!1,A=0;A<h;A++)if(i=o[A],s[i])v=!0,_[A]=s[i].xaxis,y[A]=s[i].yaxis;else if(l[i]&&l[i]._subplot){var p=l[i]._subplot;_[A]=p.xaxis,y[A]=p.yaxis}else{Gt.warn("Unrecognized subplot: "+i);return}if(d&&!v&&(d="closest"),["x","y","closest","x unified","y unified"].indexOf(d)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return G1.unhoverRaw(e,r);var R=l.hoverdistance;R===-1&&(R=1/0);var E=l.spikedistance;E===-1&&(E=1/0);var D=[],F=[],z,I,L,P,O,U,V,K,j,G,q,J,te,Z={hLinePoint:null,vLinePoint:null},ie=!1;if(Array.isArray(r))for(d="array",L=0;L<r.length;L++)O=e.calcdata[r[L].curveNumber||0],O&&(U=O[0].trace,O[0].trace.hoverinfo!=="skip"&&(F.push(O),U.orientation==="h"&&(ie=!0)));else{var Q=e.calcdata.slice();for(Q.sort(function(lr,Fr){var et=lr[0].trace.zorder||0,Br=Fr[0].trace.zorder||0;return et-Br}),P=0;P<Q.length;P++)O=Q[P],U=O[0].trace,U.hoverinfo!=="skip"&&za.isTraceInSubplots(U,o)&&(F.push(O),U.orientation==="h"&&(ie=!0));var re=!a,se,ee;if(re)"xpx"in r?se=r.xpx:se=_[0]._length/2,"ypx"in r?ee=r.ypx:ee=y[0]._length/2;else{if(Bae.triggerHandler(e,"plotly_beforehover",r)===!1)return;var ae=a.getBoundingClientRect();se=r.clientX-ae.left,ee=r.clientY-ae.top,l._calcInverseTransform(e);var ce=Gt.apply3DTransform(l._invTransform)(se,ee);if(se=ce[0],ee=ce[1],se<0||se>_[0]._length||ee<0||ee>y[0]._length)return G1.unhoverRaw(e,r)}if(r.pointerX=se+_[0]._offset,r.pointerY=ee+y[0]._offset,"xval"in r?z=za.flat(o,r.xval):z=za.p2c(_,se),"yval"in r?I=za.flat(o,r.yval):I=za.p2c(y,ee),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Po(z[0])||!Po(I[0]))return Gt.warn("Fx.hover failed",r,e),G1.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=z,e._hoverYVals=I,e._hoverXAxes=_,e._hoverYAxes=y);var Me=1/0;function ke(lr,Fr){for(P=0;P<F.length;P++)if(O=F[P],!(!O||!O[0]||!O[0].trace)&&(U=O[0].trace,!(U.visible!==!0||U._length===0)&&["carpet","contourcarpet"].indexOf(U._module.name)===-1)){if(j=d,za.isUnifiedHover(j)&&(j=j.charAt(0)),U.type==="splom"?(K=0,V=o[K]):(V=za.getSubplot(U),K=o.indexOf(V)),J={cd:O,trace:U,xa:_[K],ya:y[K],maxHoverDistance:R,maxSpikeDistance:E,index:!1,distance:Math.min(Me,R),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:on.defaultLine,name:U.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[V]&&(J.subplot=l[V]._subplot),l._splomScenes&&l._splomScenes[U.uid]&&(J.scene=l._splomScenes[U.uid]),j==="array"){var et=r[P];if("pointNumber"in et){let Lt=O[et.pointNumber];Lt&&(J.index=et.pointNumber,Lt.lonlat?(G=Lt.lonlat[0],q=Lt.lonlat[1]):(G=Lt.x,q=Lt.y)),j="closest"}else j="","xval"in et&&(G=et.xval,j="x"),"yval"in et&&(q=et.yval,j=j?"closest":"y")}else lr!==void 0&&Fr!==void 0?(G=lr,q=Fr):(G=z[K],q=I[K]);if(te=D.length,R!==0)if(U._module&&U._module.hoverPoints){var Br=U._module.hoverPoints(J,G,q,j,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:u,gd:e});if(Br)for(var Gr,pt=0;pt<Br.length;pt++)Gr=Br[pt],Po(Gr.x0)&&Po(Gr.y0)&&D.push(jae(Gr,d))}else Gt.log("Unrecognized trace type in hover:",U);if(d==="closest"&&D.length>te&&(D.splice(0,te),Me=D[0].distance),c&&E!==0&&D.length===0){J.distance=E,J.index=!1;var at=U._module.hoverPoints(J,G,q,"closest",{hoverLayer:l._hoverlayer});if(at&&(at=at.filter(function(Lt){return Lt.spikeDistance<=E})),at&&at.length){var Ct,Zt=at.filter(function(Lt){return Lt.xa.showspikes&&Lt.xa.spikesnap!=="hovered data"});if(Zt.length){var St=Zt[0];Po(St.x0)&&Po(St.y0)&&(Ct=ge(St),(!Z.vLinePoint||Z.vLinePoint.spikeDistance>Ct.spikeDistance)&&(Z.vLinePoint=Ct))}var gt=at.filter(function(Lt){return Lt.ya.showspikes&&Lt.ya.spikesnap!=="hovered data"});if(gt.length){var Et=gt[0];Po(Et.x0)&&Po(Et.y0)&&(Ct=ge(Et),(!Z.hLinePoint||Z.hLinePoint.spikeDistance>Ct.spikeDistance)&&(Z.hLinePoint=Ct))}}}}}ke();function Se(lr,Fr,et){for(var Br=null,Gr=1/0,pt,at=0;at<lr.length;at++)w&&w._id!==lr[at].xa._id||T&&T._id!==lr[at].ya._id||(pt=lr[at].spikeDistance,et&&at===0&&(pt=-1/0),pt<=Gr&&pt<=Fr&&(Br=lr[at],Gr=pt));return Br}function ge(lr){return lr?{xa:lr.xa,ya:lr.ya,x:lr.xSpike!==void 0?lr.xSpike:(lr.x0+lr.x1)/2,y:lr.ySpike!==void 0?lr.ySpike:(lr.y0+lr.y1)/2,distance:lr.distance,spikeDistance:lr.spikeDistance,curveNumber:lr.trace.index,color:lr.color,pointNumber:lr.index}:null}var Le={fullLayout:l,container:l._hoverlayer,event:r},Ee=e._spikepoints,le={vLinePoint:Z.vLinePoint,hLinePoint:Z.hLinePoint};e._spikepoints=le;var Y=function(){var lr=D.filter(function(et){return w&&w._id===et.xa._id&&T&&T._id===et.ya._id}),Fr=D.filter(function(et){return!(w&&w._id===et.xa._id&&T&&T._id===et.ya._id)});lr.sort(OC),Fr.sort(OC),D=lr.concat(Fr),D=rie(D,d)};Y();var $=d.charAt(0),pe=($==="x"||$==="y")&&D[0]&&Zae[D[0].trace.type];if(c&&E!==0&&D.length!==0){var oe=D.filter(function(lr){return lr.ya.showspikes}),ve=Se(oe,E,pe);Z.hLinePoint=ge(ve);var he=D.filter(function(lr){return lr.xa.showspikes}),me=Se(he,E,pe);Z.vLinePoint=ge(me)}if(D.length===0){var be=G1.unhoverRaw(e,r);if(c&&(Z.hLinePoint!==null||Z.vLinePoint!==null)&&HC(Ee)&&UC(e,Z,Le),l.hoveranywhere&&!n&&a){var ye=e._hoverdata;ye&&ye.length&&(e.emit("plotly_unhover",{event:r,points:ye}),e._hoverdata=[]),Cn([]),e._hoverAnywhereActive=!0}return be}if(c&&HC(Ee)&&UC(e,Z,Le),za.isXYhover(j)&&D[0].length!==0&&D[0].trace.type!=="splom"){var de=D[0];qC[de.trace.type]?D=D.filter(lr=>lr.trace.index===de.trace.index):D=[de];var _e=D.length,Ae=GC("x",de,l),Ie=GC("y",de,l);ke(Ae,Ie);var Pe=[],Ye={},qe=0,Oe=function(lr){var Fr=qC[lr.trace.type]?XC(lr):lr.trace.index;if(!Ye[Fr])qe++,Ye[Fr]=qe,Pe.push(lr);else{var et=Ye[Fr]-1,Br=Pe[et];et>0&&Math.abs(lr.distance)<Math.abs(Br.distance)&&(Pe[et]=lr)}},Be;for(Be=0;Be<_e;Be++)Oe(D[Be]);for(Be=D.length-1;Be>_e-1;Be--)Oe(D[Be]);D=Pe,Y()}var We=e._hoverdata,Xe=[],tr=$C(e),ir=KC(e);for(let lr of D){var je=za.makeEventData(lr,lr.trace,lr.cd);if(lr.hovertemplate!==!1){var Ke=!1;lr.cd[lr.index]&&lr.cd[lr.index].ht&&(Ke=lr.cd[lr.index].ht),lr.hovertemplate=Ke||lr.trace.hovertemplate||!1}if(lr.xa&&lr.ya){var Ce=lr.x0+lr.xa._offset,Fe=lr.x1+lr.xa._offset,Qe=lr.y0+lr.ya._offset,er=lr.y1+lr.ya._offset,wr=Math.min(Ce,Fe),Vr=Math.max(Ce,Fe),Mr=Math.min(Qe,er),Dr=Math.max(Qe,er);je.bbox={x0:wr+ir,x1:Vr+ir,y0:Mr+tr,y1:Dr+tr},je.xPixel=(Ce+Fe)/2,je.yPixel=(Qe+er)/2}lr.eventData=[je],Xe.push(je)}e._hoverdata=Xe;var Qr=d==="y"&&(F.length>1||D.length>1)||d==="closest"&&ie&&D.length>1,Sr=on.combine(l.plot_bgcolor||on.background,l.paper_bgcolor),Wr=WC(D,{gd:e,hovermode:d,rotateLabels:Qr,bgColor:Sr,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),bt=Wr.hoverLabels;if(za.isUnifiedHover(d)||(Kae(bt,Qr,l,Wr.commonLabelBoundingBox),JC(bt,Qr,l._invScaleX,l._invScaleY)),a&&a.tagName){var Jr=sf.getComponentMethod("annotations","hasClickToShow")(e,Xe);Uae(Is.select(a),Jr?"pointer":"")}var lt=eie(e,r,We);if(!a||n||!lt&&!l.hoveranywhere)return;We&<&&e.emit("plotly_unhover",{event:r,points:We}),Cn(e._hoverdata);function Cn(lr){e.emit("plotly_hover",{event:r,points:lr,xaxes:_,yaxes:y,xvals:za.c2dApply(_,z),yvals:za.c2dApply(y,I),xPixel:r.pointerX,yPixel:r.pointerY})}}function XC(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 $ae=/<extra>([\s\S]*)<\/extra>/;function WC(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,o=r.rotateLabels,i=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||zs.HOVERFONT,c=r.fontSize||zs.HOVERFONTSIZE,d=r.fontWeight||n.font.weight,x=r.fontStyle||n.font.style,g=r.fontVariant||n.font.variant,w=r.fontTextcase||n.font.textcase,T=r.fontLineposition||n.font.lineposition,m=r.fontShadow||n.font.shadow,k=e[0],S=k.xa,b=k.ya,M=a.charAt(0),h=M+"Label",_=k[h];if(_===void 0&&S.type==="multicategory")for(var y=0;y<e.length&&(_=e[y][h],_===void 0);y++);var v=lf(t,u),A=v.top,p=v.width,R=v.height,E=_!==void 0&&k.distance<=r.hoverdistance&&(a==="x"||a==="y");if(E){var D=!0,F,z;for(F=0;F<e.length;F++)if(D&&e[F].zLabel===void 0&&(D=!1),z=e[F].hoverinfo||e[F].trace.hoverinfo,z){var I=Array.isArray(z)?z:z.split("+");if(I.indexOf("all")===-1&&I.indexOf(a)===-1){E=!1;break}}D&&(E=!1)}var L=l.selectAll("g.axistext").data(E?[0]:[]);L.enter().append("g").classed("axistext",!0),L.exit().remove();var P={minX:0,maxX:0,minY:0,maxY:0};if(L.each(function(){var be=Is.select(this),ye=Gt.ensureSingle(be,"path","",function(Mr){Mr.style({"stroke-width":"1px"})}),de=Gt.ensureSingle(be,"text","",function(Mr){Mr.attr("data-notex",1)}),_e=s.bgcolor||on.defaultLine,Ae=s.bordercolor||on.contrast(_e),Ie=on.contrast(_e),Pe=s.font,Ye={weight:Pe.weight||d,style:Pe.style||x,variant:Pe.variant||g,textcase:Pe.textcase||w,lineposition:Pe.lineposition||T,shadow:Pe.shadow||m,family:Pe.family||f,size:Pe.size||c,color:Pe.color||Ie};ye.style({fill:_e,stroke:Ae}),de.text(_).call(oo.font,Ye).call(Qa.positionText,0,0).call(Qa.convertToTspans,t),be.attr("transform","");var qe=lf(t,de.node()),Oe,Be;if(a==="x"){var We=S.side==="top"?"-":"";de.attr("text-anchor","middle").call(Qa.positionText,0,S.side==="top"?A-qe.bottom-Ft-jr:A-qe.top+Ft+jr),Oe=S._offset+(k.x0+k.x1)/2,Be=b._offset+(S.side==="top"?0:b._length);var Xe=qe.width/2+jr,tr=Oe;Oe<Xe?tr=Xe:Oe>n.width-Xe&&(tr=n.width-Xe),ye.attr("d","M"+(Oe-tr)+",0L"+(Oe-tr+Ft)+","+We+Ft+"H"+Xe+"v"+We+(jr*2+qe.height)+"H"+-Xe+"V"+We+Ft+"H"+(Oe-tr-Ft)+"Z"),Oe=tr,P.minX=Oe-Xe,P.maxX=Oe+Xe,S.side==="top"?(P.minY=Be-(jr*2+qe.height),P.maxY=Be-jr):(P.minY=Be+jr,P.maxY=Be+(jr*2+qe.height))}else{var ir,je,Ke;b.side==="right"?(ir="start",je=1,Ke="",Oe=S._offset+S._length):(ir="end",je=-1,Ke="-",Oe=S._offset),Be=b._offset+(k.y0+k.y1)/2,de.attr("text-anchor",ir),ye.attr("d","M0,0L"+Ke+Ft+","+Ft+"V"+(jr+qe.height/2)+"h"+Ke+(jr*2+qe.width)+"V-"+(jr+qe.height/2)+"H"+Ke+Ft+"V-"+Ft+"Z"),P.minY=Be-(jr+qe.height/2),P.maxY=Be+(jr+qe.height/2),b.side==="right"?(P.minX=Oe+Ft,P.maxX=Oe+Ft+(jr*2+qe.width)):(P.minX=Oe-Ft-(jr*2+qe.width),P.maxX=Oe-Ft);var Ce=qe.height/2,Fe=A-qe.top-Ce,Qe="clip"+n._uid+"commonlabel"+b._id,er;if(Oe<qe.width+2*jr+Ft){er="M-"+(Ft+jr)+"-"+Ce+"h-"+(qe.width-jr)+"V"+Ce+"h"+(qe.width-jr)+"Z";var wr=qe.width-Oe+jr;Qa.positionText(de,wr,Fe),ir==="end"&&de.selectAll("tspan").each(function(){var Mr=Is.select(this),Dr=oo.tester.append("text").text(Mr.text()).call(oo.font,Ye),Qr=lf(t,Dr.node());Math.round(Qr.width)<Math.round(qe.width)&&Mr.attr("x",wr-Qr.width),Dr.remove()})}else Qa.positionText(de,je*(jr+Ft),Fe),er=null;var Vr=n._topclips.selectAll("#"+Qe).data(er?[0]:[]);Vr.enter().append("clipPath").attr("id",Qe).append("path"),Vr.exit().remove(),Vr.select("path").attr("d",er),oo.setClipUrl(de,er?Qe:null,t)}be.attr("transform",X3(Oe,Be))}),za.isUnifiedHover(a)){l.selectAll("g.hovertext").remove();let be=e.filter(ye=>ye.hoverinfo!=="none");if(be.length===0)return[];var O=n.hoverlabel,U=O.font,V=be[0],K=((a==="x unified"?V.xa:V.ya).unifiedhovertitle||{}).text,j=K?Gt.hovertemplateString({data:a==="x unified"?[{xa:V.xa,x:V.xVal}]:[{ya:V.ya,y:V.yVal}],fallback:V.trace.hovertemplatefallback,locale:n._d3locale,template:K}):_,G={showlegend:!0,legend:{title:{text:j,font:U},font:U,bgcolor:O.bgcolor,bordercolor:O.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},q={font:U};Vae(G,q,t._fullData);var J=q.legend;J.entries=[];for(var te=0;te<be.length;te++){var Z=be[te];if(Z.hoverinfo!=="none"){var ie=BC(Z,!0,a,n,_),Q=ie[0],re=ie[1];Z.name=re,re!==""?Z.text=re+" : "+Q:Z.text=Q;var se=Z.cd[Z.index];se&&(se.mc&&(Z.mc=se.mc),se.mcc&&(Z.mc=se.mcc),se.mlc&&(Z.mlc=se.mlc),se.mlcc&&(Z.mlc=se.mlcc),se.mlw&&(Z.mlw=se.mlw),se.mrc&&(Z.mrc=se.mrc),se.dir&&(Z.dir=se.dir)),Z._distinct=!0,J.entries.push([Z])}}J.entries.sort(function(ye,de){var _e=n.hoversort;if(_e==="value descending"||_e==="value ascending"){var Ae=a.charAt(0)==="x"?"y":"x",Ie=ye[0][Ae+"LabelVal"],Pe=de[0][Ae+"LabelVal"];if(Ie!==Pe)return _e==="value descending"?Pe-Ie:Ie-Pe}return ye[0].trace.index-de[0].trace.index}),J.layer=l,J._inHover=!0,J._groupTitleFont=O.grouptitlefont,Gae(t,J);var ee=l.select("g.legend"),ae=lf(t,ee.node()),ce=ae.width+2*jr,Me=ae.height+2*jr,ke=be[0],Se=(ke.x0+ke.x1)/2,ge=(ke.y0+ke.y1)/2,Le=!(sf.traceIs(ke.trace,"bar-like")||sf.traceIs(ke.trace,"box-violin")),Ee,le;M==="y"?Le?(le=ge-jr,Ee=ge+jr):(le=Math.min.apply(null,be.map(function(ye){return Math.min(ye.y0,ye.y1)})),Ee=Math.max.apply(null,be.map(function(ye){return Math.max(ye.y0,ye.y1)}))):le=Ee=Gt.mean(be.map(function(ye){return(ye.y0+ye.y1)/2}))-Me/2;var Y,$;M==="x"?Le?(Y=Se+jr,$=Se-jr):(Y=Math.max.apply(null,be.map(function(ye){return Math.max(ye.x0,ye.x1)})),$=Math.min.apply(null,be.map(function(ye){return Math.min(ye.x0,ye.x1)}))):Y=$=Gt.mean(be.map(function(ye){return(ye.x0+ye.x1)/2}))-ce/2;var pe=S._offset,oe=b._offset;Ee+=oe,Y+=pe,$+=pe-ce,le+=oe-Me;var ve,he;return Y+ce<p&&Y>=0?ve=Y:$+ce<p&&$>=0?ve=$:pe+ce<p?ve=pe:Y-Se<Se-$+ce?ve=p-ce:ve=0,ve+=jr,Ee+Me<R&&Ee>=0?he=Ee:le+Me<R&&le>=0?he=le:oe+Me<R?he=oe:Ee-ge<ge-le+Me?he=R-Me:he=0,he+=jr,ee.attr("transform",X3(ve-1,he-1)),ee}var me=l.selectAll("g.hovertext").data(e,function(be){return XC(be)});return me.enter().append("g").classed("hovertext",!0).each(function(){var be=Is.select(this);be.append("rect").call(on.fill,on.addOpacity(i,.8)),be.append("text").classed("name",!0),be.append("path").style("stroke-width","1px"),be.append("text").classed("nums",!0).call(oo.font,{weight:d,style:x,variant:g,textcase:w,lineposition:T,shadow:m,family:f,size:c})}),me.exit().remove(),me.each(function(be){var ye=Is.select(this).attr("transform",""),de=be.color;Array.isArray(de)&&(de=de[be.eventData[0].pointNumber]);var _e=be.bgcolor||de,Ae=on.combine(on.opacity(_e)?_e:on.defaultLine,i),Ie=on.combine(on.opacity(de)?de:on.defaultLine,i),Pe=be.borderColor||on.contrast(Ae),Ye=BC(be,E,a,n,_,ye),qe=Ye[0],Oe=Ye[1],Be=ye.select("text.nums").call(oo.font,{family:be.fontFamily||f,size:be.fontSize||c,color:be.fontColor||Pe,weight:be.fontWeight||d,style:be.fontStyle||x,variant:be.fontVariant||g,textcase:be.fontTextcase||w,lineposition:be.fontLineposition||T,shadow:be.fontShadow||m}).text(qe).attr("data-notex",1).call(Qa.positionText,0,0).call(Qa.convertToTspans,t),We=ye.select("text.name"),Xe=0,tr=0;if(Oe&&Oe!==qe){We.call(oo.font,{family:be.fontFamily||f,size:be.fontSize||c,color:Ie,weight:be.fontWeight||d,style:be.fontStyle||x,variant:be.fontVariant||g,textcase:be.fontTextcase||w,lineposition:be.fontLineposition||T,shadow:be.fontShadow||m}).text(Oe).attr("data-notex",1).call(Qa.positionText,0,0).call(Qa.convertToTspans,t);var ir=lf(t,We.node());Xe=ir.width+2*jr,tr=ir.height+2*jr}else We.remove(),ye.select("rect").remove();ye.select("path").style({fill:Ae,stroke:Pe});var je=be.xa._offset+(be.x0+be.x1)/2,Ke=be.ya._offset+(be.y0+be.y1)/2,Ce=Math.abs(be.x1-be.x0),Fe=Math.abs(be.y1-be.y0),Qe=lf(t,Be.node()),er=Qe.width/n._invScaleX,wr=Qe.height/n._invScaleY;be.ty0=(A-Qe.top)/n._invScaleY,be.bx=er+2*jr,be.by=Math.max(wr+2*jr,tr),be.anchor="start",be.txwidth=er,be.tx2width=Xe,be.offset=0;var Vr=(er+Ft+jr+Xe)*n._invScaleX,Mr,Dr;if(o)be.pos=je,Mr=Ke+Fe/2+Vr<=R,Dr=Ke-Fe/2-Vr>=0,(be.idealAlign==="top"||!Mr)&&Dr?(Ke-=Fe/2,be.anchor="end"):Mr?(Ke+=Fe/2,be.anchor="start"):be.anchor="middle",be.crossPos=Ke;else{if(be.pos=Ke,Mr=je+Ce/2+Vr<=p,Dr=je-Ce/2-Vr>=0,(be.idealAlign==="left"||!Mr)&&Dr)je-=Ce/2,be.anchor="end";else if(Mr)je+=Ce/2,be.anchor="start";else{be.anchor="middle";var Qr=Vr/2,Sr=je+Qr-p,Wr=je-Qr;Sr>0&&(je-=Sr),Wr<0&&(je+=-Wr)}be.crossPos=je}Be.attr("text-anchor",be.anchor),Xe&&We.attr("text-anchor",be.anchor),ye.attr("transform",X3(je,Ke)+(o?Oae(YC):""))}),{hoverLabels:me,commonLabelBoundingBox:P}}function BC(e,r,t,n,a,o){var c,d;var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Gt.templateString(e.name,e.trace._meta)),i=VC(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"<br>"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"<br>"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===a?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"<br>":"")+e.text),e.extraText!==void 0&&(l+=(l?"<br>":"")+e.extraText),o&&l===""&&!e.hovertemplate&&(i===""&&o.remove(),l=i),(d=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&d.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let x=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(x[u+"other"]=x[u+"Val"],x[u+"otherLabel"]=x[u+"Label"]),l=Gt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:x,locale:n._d3locale,template:f}),l=l.replace($ae,(g,w)=>(i=VC(w,e.nameLength),""))}return[l,i]}function Kae(e,r,t,n){var a=r?"xa":"ya",o=r?"ya":"xa",i=0,l=1,u=e.size(),s=new Array(u),f=0,c=n.minX,d=n.maxX,x=n.minY,g=n.maxY,w=function(z){return z*t._invScaleX},T=function(z){return z*t._invScaleY};e.each(function(z){var I=z[a],L=z[o],P=I._id.charAt(0)==="x",O=I.range;f===0&&O&&O[0]>O[1]!==P&&(l=-1);var U=0,V=P?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var K=ZC(z,r),j=z.anchor,G=j==="end"?-1:1,q,J;if(j==="middle")q=z.crossPos+(P?T(K.y-z.by/2):w(z.bx/2+z.tx2width/2)),J=q+(P?T(z.by):w(z.bx));else if(P)q=z.crossPos+T(Ft+K.y)-T(z.by/2-Ft),J=q+T(z.by);else{var te=w(G*Ft+K.x),Z=te+w(G*z.bx);q=z.crossPos+Math.min(te,Z),J=z.crossPos+Math.max(te,Z)}P?x!==void 0&&g!==void 0&&Math.min(J,g)-Math.max(q,x)>1&&(L.side==="left"?(U=L._mainLinePosition,V=t.width):V=L._mainLinePosition):c!==void 0&&d!==void 0&&Math.min(J,d)-Math.max(q,c)>1&&(L.side==="top"?(U=L._mainLinePosition,V=t.height):V=L._mainLinePosition)}s[f++]=[{datum:z,traceIndex:z.trace.index,dp:0,pos:z.pos,posref:z.posref,size:z.by*(P?Yae:1)/2,pmin:U,pmax:V}]}),s.sort(function(z,I){return z[0].posref-I[0].posref||l*(I[0].traceIndex-z[0].traceIndex)});var m,k,S,b,M,h,_;function y(z){var I=z[0],L=z[z.length-1];if(k=I.pmin-I.pos-I.dp+I.size,S=L.pos+L.dp+L.size-I.pmax,k>.01){for(M=z.length-1;M>=0;M--)z[M].dp+=k;m=!1}if(!(S<.01)){if(k<-.01){for(M=z.length-1;M>=0;M--)z[M].dp-=S;m=!1}if(m){var P=0;for(b=0;b<z.length;b++)h=z[b],h.pos+h.dp+h.size>I.pmax&&P++;for(b=z.length-1;b>=0&&!(P<=0);b--)h=z[b],h.pos>I.pmax-1&&(h.del=!0,P--);for(b=0;b<z.length&&!(P<=0);b++)if(h=z[b],h.pos<I.pmin+1)for(h.del=!0,P--,S=h.size*2,M=z.length-1;M>=0;M--)z[M].dp-=S;for(b=z.length-1;b>=0&&!(P<=0);b--)h=z[b],h.pos+h.dp+h.size>I.pmax&&(h.del=!0,P--)}}}for(;!m&&i<=u;){for(i++,m=!0,b=0;b<s.length-1;){var v=s[b],A=s[b+1],p=v[v.length-1],R=A[0];if(k=p.pos+p.dp+p.size-R.pos-R.dp+R.size,k>.01){for(M=A.length-1;M>=0;M--)A[M].dp+=k;for(v.push.apply(v,A),s.splice(b+1,1),_=0,M=v.length-1;M>=0;M--)_+=v[M].dp;for(S=_/v.length,M=v.length-1;M>=0;M--)v[M].dp-=S;m=!1}else b++}s.forEach(y)}for(b=s.length-1;b>=0;b--){var E=s[b];for(M=E.length-1;M>=0;M--){var D=E[M],F=D.datum;F.offset=D.dp,F.del=D.del}}}function ZC(e,r){var t=0,n=e.offset;return r&&(n*=-Wae,t=e.offset*Xae),{x:t,y:n}}function Qae(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ft+jr),n=t+r*(e.txwidth+jr),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+jr),{alignShift:r,textShiftX:t,text2ShiftX:n}}function JC(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=Is.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,c=Qae(i),d=ZC(i,r),x=d.x,g=d.y,w=s==="middle",T="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,m;w?m="M-"+a(i.bx/2+i.tx2width/2)+","+o(g-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":T?m="M0,0L"+a(f*Ft+x)+","+o(Ft+g)+"v"+o(i.by/2-Ft)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*Ft+x)+"V"+o(g-Ft)+"Z":m="M"+a(f*Ft+x)+","+o(g-i.by/2)+"h"+a(f*i.bx)+"v"+o(i.by)+"h"+a(-f*i.bx)+"Z",l.select("path").attr("d",m);var k=x+c.textShiftX,S=g+i.ty0-i.by/2+jr,b=i.textAlign||"auto";b!=="auto"&&(b==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=w?-i.bx/2-i.tx2width/2+jr:-i.bx-jr):b==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=w?i.bx/2-i.tx2width/2-jr:i.bx+jr)),u.call(Qa.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(Qa.positionText,a(c.text2ShiftX+c.alignShift*jr+x),o(g+i.ty0-i.by/2+jr)),l.select("rect").call(oo.setRect,a(c.text2ShiftX+(c.alignShift-1)*i.tx2width/2+x),o(g-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function jae(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(d){return d||Po(d)&&d===0}var l=Array.isArray(t)?function(d,x){var g=Gt.castOption(a,t,d);return i(g)?g:Gt.extractOption({},n,"",x)}:function(d,x){return Gt.extractOption(o,n,d,x)};function u(d,x,g){var w=l(x,g);i(w)&&(e[d]=w)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Gt.constrain(e.x0,0,e.xa._length),e.x1=Gt.constrain(e.x1,0,e.xa._length),e.y0=Gt.constrain(e.y0,0,e.ya._length),e.y1=Gt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:lo.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:lo.hoverLabelText(e.ya,e.yLabelVal,n.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 s=lo.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+lo.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=lo.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+lo.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 UC(e,r,t){var n=t.container,a=t.fullLayout,o=a._size,i=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(n.selectAll(".spikeline").remove(),!!(u||l)){var c=on.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var d=r.hLinePoint,x,g;s=d&&d.xa,f=d&&d.ya;var w=f.spikesnap;w==="cursor"?(x=i.pointerX,g=i.pointerY):(x=s._offset+d.x,g=f._offset+d.y);var T=on.wcagContrast(d.color,c)<1.5?on.contrast(c):d.color,m=f.spikemode,k=f.spikethickness,S=f.spikecolor||T,b=lo.getPxPosition(e,f),M,h;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(M=b,h=x),m.indexOf("across")!==-1){var _=f._counterDomainMin,y=f._counterDomainMax;f.anchor==="free"&&(_=Math.min(_,f.position),y=Math.max(y,f.position)),M=o.l+_*o.w,h=o.l+y*o.w}n.insert("line",":first-child").attr({x1:M,x2:h,y1:g,y2:g,"stroke-width":k,stroke:S,"stroke-dasharray":oo.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:M,x2:h,y1:g,y2:g,"stroke-width":k+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}m.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?k:-k),cy:g,r:k,fill:S}).classed("spikeline",!0)}if(u){var v=r.vLinePoint,A,p;s=v&&v.xa,f=v&&v.ya;var R=s.spikesnap;R==="cursor"?(A=i.pointerX,p=i.pointerY):(A=s._offset+v.x,p=f._offset+v.y);var E=on.wcagContrast(v.color,c)<1.5?on.contrast(c):v.color,D=s.spikemode,F=s.spikethickness,z=s.spikecolor||E,I=lo.getPxPosition(e,s),L,P;if(D.indexOf("toaxis")!==-1||D.indexOf("across")!==-1){if(D.indexOf("toaxis")!==-1&&(L=I,P=p),D.indexOf("across")!==-1){var O=s._counterDomainMin,U=s._counterDomainMax;s.anchor==="free"&&(O=Math.min(O,s.position),U=Math.max(U,s.position)),L=o.t+(1-U)*o.h,P=o.t+(1-O)*o.h}n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":F,stroke:z,"stroke-dasharray":oo.dashStyle(s.spikedash,F)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":F+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}D.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A,cy:I-(s.side!=="top"?F:-F),r:F,fill:z}).classed("spikeline",!0)}}}function eie(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],o=e._hoverdata[n];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers)||a.binNumber!==o.binNumber)return!0}return!1}function HC(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function VC(e,r){return Qa.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function rie(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;i<e.length;i++){var l=e[i];sf.traceIs(l.trace,"bar-like")||sf.traceIs(l.trace,"box-violin")?o.push(l):l.trace[t+"period"]?a.push(l):n.push(l)}return n.concat(a).concat(o)}function GC(e,r,t){var n=r[e+"a"],a=r[e+"Val"],o=r.cd[0];if(n.type==="category"||n.type==="multicategory")a=n._categoriesMap[a];else if(n.type==="date"){var i=r.trace[e+"periodalignment"];if(i){var l=r.cd[r.index],u=l[e+"Start"];u===void 0&&(u=l[e]);var s=l[e+"End"];s===void 0&&(s=l[e]);var f=s-u;i==="end"?a+=f:i==="middle"&&(a+=f/2)}a=n.d2c(a)}return o&&o.t&&o.t.posLetter===n._id&&(t.boxmode==="group"||t.violinmode==="group")&&(a+=o.t.dPos),a}var $C=e=>e.offsetTop+e.clientTop,KC=e=>e.offsetLeft+e.clientLeft;function lf(e,r){var t=e._fullLayout,n=r.getBoundingClientRect(),a=n.left,o=n.top,i=a+n.width,l=o+n.height,u=Gt.apply3DTransform(t._invTransform)(a,o),s=Gt.apply3DTransform(t._invTransform)(i,l),f=u[0],c=u[1],d=s[0],x=s[1];return{x:f,y:c,width:d-f,height:x-c,top:Math.min(c,x),left:Math.min(f,d),right:Math.max(f,d),bottom:Math.max(c,x)}}});var Y1=xe((B5e,QC)=>{"use strict";var tie=rr(),nie=Xr(),aie=eo().isUnifiedHover;QC.exports=function(r,t,n,a){a=a||{};var o=t.legend;function i(l){a.font[l]||(a.font[l]=o?t.legend.font[l]:t.font[l])}t&&aie(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=nie.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),tie.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var eE=xe((U5e,jC)=>{"use strict";var iie=rr(),oie=Y1(),lie=ts();jC.exports=function(r,t){function n(a,o){return iie.coerce(r,t,lie,a,o)}oie(r,t,n)}});var nE=xe((H5e,tE)=>{"use strict";var rE=rr(),sie=Xv(),uie=Y1();tE.exports=function(r,t,n,a){function o(l,u){return rE.coerce(r,t,sie,l,u)}var i=rE.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),uie(r,t,o,i)}});var $3=xe((V5e,aE)=>{"use strict";var fie=rr(),cie=ts();aE.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:fie.coerce(r,t,cie,a,o)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var lE=xe((G5e,oE)=>{"use strict";var iE=rr(),vie=ts(),hie=$3(),die=Y1();oE.exports=function(r,t){function n(s,f){return iE.coerce(r,t,vie,s,f)}var a=hie(r,t);a&&(n("hoverdistance"),n("spikedistance"),a.indexOf("unified")!==-1&&n("hoversort"));var o=n("dragmode");o==="select"&&n("selectdirection");var i=t._has("map"),l=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((i||l)&&u===1||i&&l&&u===2)&&(t.dragmode="pan"),die(r,t,n),iE.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var fE=xe((Y5e,uE)=>{"use strict";var K3=rr(),sE=Cr();uE.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return K3.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o<t.length;o++){var i=t[o],l=i[0].trace;if(!sE.traceIs(l,"pie-like")){var u=sE.traceIs(l,"2dMap")?pie:K3.fillArray;u(l.hoverinfo,i,"hi",a(l)),l.hovertemplate&&u(l.hovertemplate,i,"ht"),l.hoverlabel&&(u(l.hoverlabel.bgcolor,i,"hbg"),u(l.hoverlabel.bordercolor,i,"hbc"),u(l.hoverlabel.font.size,i,"hts"),u(l.hoverlabel.font.color,i,"htc"),u(l.hoverlabel.font.family,i,"htf"),u(l.hoverlabel.font.weight,i,"htw"),u(l.hoverlabel.font.style,i,"hty"),u(l.hoverlabel.font.variant,i,"htv"),u(l.hoverlabel.namelength,i,"hnl"),u(l.hoverlabel.align,i,"hta"),u(l.hoverlabel.showarrow,i,"htsa"))}}};function pie(e,r,t,n){n=n||K3.identity,Array.isArray(e)&&(r[0][t]=n(e))}});var hE=xe((X5e,vE)=>{"use strict";var gie=Cr(),cE=eo(),yie=J3().hover;vE.exports=function(r,t,n){var a=gie.getComponentMethod("annotations","onClick")(r,r._hoverdata),o=r._fullLayout;n!==void 0&&yie(r,t,n,!0);function i(){var u,s,f,c,d,x;var l={points:r._hoverdata,event:t};(u=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(s=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&cE.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&cE.c2dApply(r._hoverYAxes,r._hoverYVals)),(d=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(x=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||o.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var so=xe((W5e,gE)=>{"use strict";var mie=nt(),X1=rr(),bie=Ai(),oc=eo(),dE=ts(),pE=J3();gE.exports={moduleType:"component",name:"fx",constants:c0(),schema:{layout:dE},attributes:Xv(),layoutAttributes:dE,supplyLayoutGlobalDefaults:eE(),supplyDefaults:nE(),supplyLayoutDefaults:lE(),calc:fE(),getDistanceFunction:oc.getDistanceFunction,getClosest:oc.getClosest,inbox:oc.inbox,quadrature:oc.quadrature,appendArrayPointValue:oc.appendArrayPointValue,castHoverOption:_ie,castHoverinfo:wie,hover:pE.hover,unhover:bie.unhover,loneHover:pE.loneHover,loneUnhover:xie,click:hE()};function xie(e){var r=X1.isD3Selection(e)?e:mie.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function _ie(e,r,t){return X1.castOption(e,r,"hoverlabel."+t)}function wie(e,r,t){function n(a){return X1.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return X1.castOption(e,t,"hoverinfo",n)}});var uf=xe(Io=>{"use strict";Io.selectMode=function(e){return e==="lasso"||e==="select"};Io.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Io.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Io.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Io.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Io.selectingOrDrawing=function(e){return Io.freeMode(e)||Io.rectMode(e)}});var W1=xe((J5e,yE)=>{"use strict";yE.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var Z1=xe(($5e,mE)=>{"use strict";mE.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 $1=xe((K5e,bE)=>{"use strict";var J1=32;bE.exports={CIRCLE_SIDES:J1,i000:0,i090:J1/4,i180:J1/2,i270:J1/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var K1=xe((Q5e,_E)=>{"use strict";var Mie=rr().strTranslate;function xE(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 Tie(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 Aie(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return xE(e,t[r])}}function kie(e){return Mie(e.xaxis._offset,e.yaxis._offset)}_E.exports={p2r:xE,r2p:Tie,axValue:Aie,getTransform:kie}});var Al=xe(zo=>{"use strict";var Sie=Om(),TE=$1(),ff=TE.CIRCLE_SIDES,Q3=TE.SQRT2,AE=K1(),wE=AE.p2r,ME=AE.r2p,Cie=[0,3,4,5,6,1,2],Eie=[0,3,4,1,2];zo.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n<r;n++)for(var a=e[n].length,o=0;o<a;o++){var i=e[n][o][0];if(i==="Z")t+="Z";else for(var l=e[n][o].length,u=0;u<l;u++){var s=u;i==="Q"||i==="S"?s=Eie[u]:i==="C"&&(s=Cie[u]),t+=e[n][o][s],u>0&&u<l-1&&(t+=",")}}return t};zo.readPaths=function(e,r,t,n){var a=Sie(e),o=[],i=-1,l=function(){i++,o[i]=[]},u,s=0,f=0,c,d,x=function(){c=s,d=f};x();for(var g=0;g<a.length;g++){var w=[],T,m,k,S,b=a[g][0],M=b;switch(b){case"M":l(),s=+a[g][1],f=+a[g][2],w.push([M,s,f]),x();break;case"Q":case"S":T=+a[g][1],k=+a[g][2],s=+a[g][3],f=+a[g][4],w.push([M,s,f,T,k]);break;case"C":T=+a[g][1],k=+a[g][2],m=+a[g][3],S=+a[g][4],s=+a[g][5],f=+a[g][6],w.push([M,s,f,T,k,m,S]);break;case"T":case"L":s=+a[g][1],f=+a[g][2],w.push([M,s,f]);break;case"H":M="L",s=+a[g][1],w.push([M,s,f]);break;case"V":M="L",f=+a[g][1],w.push([M,s,f]);break;case"A":M="L";var h=+a[g][1],_=+a[g][2];+a[g][4]||(h=-h,_=-_);var y=s-h,v=f;for(u=1;u<=ff/2;u++){var A=2*Math.PI*u/ff;w.push([M,y+h*Math.cos(A),v+_*Math.sin(A)])}break;case"Z":(s!==c||f!==d)&&(s=c,f=d,w.push([M,s,f]));break}for(var p=(t||{}).domain,R=r._fullLayout._size,E=t&&t.xsizemode==="pixel",D=t&&t.ysizemode==="pixel",F=n===!1,z=0;z<w.length;z++){for(u=0;u+2<7;u+=2){var I=w[z][u+1],L=w[z][u+2];I===void 0||L===void 0||(s=I,f=L,t&&(t.xaxis&&t.xaxis.p2r?(F&&(I-=t.xaxis._offset),E?I=ME(t.xaxis,t.xanchor)+I:I=wE(t.xaxis,I)):(F&&(I-=R.l),p?I=p.x[0]+I/R.w:I=I/R.w),t.yaxis&&t.yaxis.p2r?(F&&(L-=t.yaxis._offset),D?L=ME(t.yaxis,t.yanchor)-L:L=wE(t.yaxis,L)):(F&&(L-=R.t),p?L=p.y[1]-L/R.h:L=1-L/R.h)),w[z][u+1]=I,w[z][u+2]=L)}o[i].push(w[z].slice())}}return o};function lc(e,r){return Math.abs(e-r)<=1e-6}function Q1(e,r){var t=r[1]-e[1],n=r[2]-e[2];return Math.sqrt(t*t+n*n)}zo.pointsOnRectangle=function(e){var r=e.length;if(r!==5)return!1;for(var t=1;t<3;t++){var n=e[0][t]-e[1][t],a=e[3][t]-e[2][t];if(!lc(n,a))return!1;var o=e[0][t]-e[3][t],i=e[1][t]-e[2][t];if(!lc(o,i))return!1}return!lc(e[0][1],e[1][1])&&!lc(e[0][1],e[3][1])?!1:!!(Q1(e[0],e[1])*Q1(e[0],e[3]))};zo.pointsOnEllipse=function(e){var r=e.length;if(r!==ff+1)return!1;r=ff;for(var t=0;t<r;t++){var n=(r*2-t)%r,a=(r/2+n)%r,o=(r/2+t)%r;if(!lc(Q1(e[t],e[o]),Q1(e[n],e[a])))return!1}return!0};zo.handleEllipse=function(e,r,t){if(!e)return[r,t];var n=zo.ellipseOver({x0:r[0],y0:r[1],x1:t[0],y1:t[1]}),a=(n.x1+n.x0)/2,o=(n.y1+n.y0)/2,i=(n.x1-n.x0)/2,l=(n.y1-n.y0)/2;i||(i=l=l/Q3),l||(l=i=i/Q3);for(var u=[],s=0;s<ff;s++){var f=s*2*Math.PI/ff;u.push([a+i*Math.cos(f),o+l*Math.sin(f)])}return u};zo.ellipseOver=function(e){var r=e.x0,t=e.y0,n=e.x1,a=e.y1,o=n-r,i=a-t;r-=o,t-=i;var l=(r+n)/2,u=(t+a)/2,s=Q3;return o*=s,i*=s,{x0:l-o,y0:u-i,x1:l+o,y1:u+i}};zo.fixDatesForPaths=function(e,r,t){var n=r.type==="date",a=t.type==="date";if(!n&&!a)return e;for(var o=0;o<e.length;o++)for(var i=0;i<e[o].length;i++)for(var l=0;l+2<e[o][i].length;l+=2)n&&(e[o][i][l+1]=e[o][i][l+1].replace(" ","_")),a&&(e[o][i][l+2]=e[o][i][l+2].replace(" ","_"));return e}});var rd=xe((ebe,IE)=>{"use strict";var kE=fn(),RE=uf(),Lie=RE.drawMode,Rie=RE.openMode,cf=$1(),SE=cf.i000,CE=cf.i090,EE=cf.i180,LE=cf.i270,Die=cf.cos45,Pie=cf.sin45,DE=K1(),j1=DE.p2r,kl=DE.r2p,Iie=vl(),zie=Iie.clearOutline,ed=Al(),Fie=ed.readPaths,Nie=ed.writePaths,qie=ed.ellipseOver,Oie=ed.fixDatesForPaths;function Bie(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,o=r.dragmode,i=(n.layout||{}).shapes||[];if(!Lie(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l<i.length)switch(n._fullLayout.shapes[l].type){case"rect":o="drawrect";break;case"circle":o="drawcircle";break;case"line":o="drawline";break;case"path":var u=i[l].path||"";u[u.length-1]==="Z"?o="drawclosedpath":o="drawopenpath";break}}var s=PE(e,r,o);zie(n);for(var f=r.editHelpers,c=(f||{}).modifyItem,d=[],x=0;x<i.length;x++){var g=n._fullLayout.shapes[x];if(d[x]=g._input,a!==void 0&&x===n._fullLayout._activeShapeIndex){var w=s;switch(g.type){case"line":case"rect":case"circle":var T=kE.getFromId(n,g.xref);g.xref.charAt(0)==="x"&&T.type.includes("category")?(c("x0",w.x0-(g.x0shift||0)),c("x1",w.x1-(g.x1shift||0))):(c("x0",w.x0),c("x1",w.x1));var m=kE.getFromId(n,g.yref);g.yref.charAt(0)==="y"&&m.type.includes("category")?(c("y0",w.y0-(g.y0shift||0)),c("y1",w.y1-(g.y1shift||0))):(c("y0",w.y0),c("y1",w.y1));break;case"path":c("path",w.path);break}}}return a===void 0?(d.push(s),d):f?f.getUpdateObj():{}}}}function PE(e,r,t){var n=e[0][0],a=r.gd,o=n.getAttribute("d"),i=a._fullLayout.newshape,l=r.plotinfo,u=r.isActiveShape,s=l.xaxis,f=l.yaxis,c=!!l.domain||!l.xaxis,d=!!l.domain||!l.yaxis,x=Rie(t),g=Fie(o,a,l,u),w={editable:!0,visible:i.visible,name:i.name,showlegend:i.showlegend,legend:i.legend,legendwidth:i.legendwidth,legendgroup:i.legendgroup,legendgrouptitle:{text:i.legendgrouptitle.text,font:i.legendgrouptitle.font},legendrank:i.legendrank,label:i.label,xref:c?"paper":s._id,yref:d?"paper":f._id,layer:i.layer,opacity:i.opacity,line:{color:i.line.color,width:i.line.width,dash:i.line.dash}};x||(w.fillcolor=i.fillcolor,w.fillrule=i.fillrule);var T;if(g.length===1&&(T=g[0]),T&&T.length===5&&t==="drawrect")w.type="rect",w.x0=T[0][1],w.y0=T[0][2],w.x1=T[2][1],w.y1=T[2][2];else if(T&&t==="drawline")w.type="line",w.x0=T[0][1],w.y0=T[0][2],w.x1=T[1][1],w.y1=T[1][2];else if(T&&t==="drawcircle"){w.type="circle";var m=T[SE][1],k=T[CE][1],S=T[EE][1],b=T[LE][1],M=T[SE][2],h=T[CE][2],_=T[EE][2],y=T[LE][2],v=l.xaxis&&(l.xaxis.type==="date"||l.xaxis.type==="log"),A=l.yaxis&&(l.yaxis.type==="date"||l.yaxis.type==="log");v&&(m=kl(l.xaxis,m),k=kl(l.xaxis,k),S=kl(l.xaxis,S),b=kl(l.xaxis,b)),A&&(M=kl(l.yaxis,M),h=kl(l.yaxis,h),_=kl(l.yaxis,_),y=kl(l.yaxis,y));var p=(k+b)/2,R=(M+_)/2,E=(b-k+S-m)/2,D=(y-h+_-M)/2,F=qie({x0:p,y0:R,x1:p+E*Die,y1:R+D*Pie});v&&(F.x0=j1(l.xaxis,F.x0),F.x1=j1(l.xaxis,F.x1)),A&&(F.y0=j1(l.yaxis,F.y0),F.y1=j1(l.yaxis,F.y1)),w.x0=F.x0,w.y0=F.y0,w.x1=F.x1,w.y1=F.y1}else w.type="path",s&&f&&Oie(g,s,f),w.path=Nie(g),T=null;return w}IE.exports={newShapes:Bie,createShapeObj:PE}});var e5=xe((rbe,zE)=>{"use strict";var Uie=uf(),Hie=Uie.selectMode,Vie=vl(),Gie=Vie.clearOutline,j3=Al(),Yie=j3.readPaths,Xie=j3.writePaths,Wie=j3.fixDatesForPaths;zE.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),o=t.gd,i=o._fullLayout.newselection,l=t.plotinfo,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,c=t.dragmode,d=(o.layout||{}).selections||[];if(!Hie(c)&&f!==void 0){var x=o._fullLayout._activeSelectionIndex;if(x<d.length)switch(o._fullLayout.selections[x].type){case"rect":c="select";break;case"path":c="lasso";break}}var g=Yie(a,o,l,f),w={xref:u._id,yref:s._id,opacity:i.opacity,line:{color:i.line.color,width:i.line.width,dash:i.line.dash}},T;g.length===1&&(T=g[0]),T&&T.length===5&&c==="select"?(w.type="rect",w.x0=T[0][1],w.y0=T[0][2],w.x1=T[2][1],w.y1=T[2][2]):(w.type="path",u&&s&&Wie(g,u,s),w.path=Xie(g),T=null),Gie(o);for(var m=t.editHelpers,k=(m||{}).modifyItem,S=[],b=0;b<d.length;b++){var M=o._fullLayout.selections[b];if(!M){S[b]=M;continue}if(S[b]=M._input,f!==void 0&&b===o._fullLayout._activeSelectionIndex){var h=w;switch(M.type){case"rect":k("x0",h.x0),k("x1",h.x1),k("y0",h.y0),k("y1",h.y1);break;case"path":k("path",h.path);break}}}return f===void 0?(S.push(w),S):m?m.getUpdateObj():{}}}}});var sc=xe((tbe,FE)=>{"use strict";FE.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 Cl=xe(An=>{"use strict";var fo=sc(),NE=rr(),Sl=Ot();An.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};An.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};An.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};An.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};An.extractPathCoords=function(e,r,t){var n=[],a=e.match(fo.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.slice(1).match(fo.paramRE);if(!(!l||l.length<i)){var u=l[i],s=t?u:NE.cleanNumber(u);n.push(s)}}}),n};An.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let n=r.match(fo.segmentRE);if(!n)return 0;let a=t==="x"?fo.paramIsX:fo.paramIsY;return n.reduce((o,i)=>{let l=i.charAt(0),u=a[l].drawn!==void 0;return o+(u?1:0)},0)};An.getDataToPixel=function(e,r,t,n,a){var o=e._fullLayout._size,i;if(r)if(a==="domain")i=function(u){return r._length*(n?1-u:u)+r._offset};else{var l=An.shapePositionToRange(r);i=function(u){var s=uo(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(i=An.decodeDate(i))}else n?i=function(u){return o.t+o.h*(1-u)}:i=function(u){return o.l+o.w*u};return i};An.getPixelToData=function(e,r,t,n){var a=e._fullLayout._size,o;if(r)if(n==="domain")o=function(l){var u=(l-r._offset)/r._length;return t?1-u:u};else{var i=An.rangeToShapePosition(r);o=function(l){return i(r.p2r(l-r._offset))}}else t?o=function(l){return 1-(l-a.t)/a.h}:o=function(l){return(l-a.l)/a.w};return o};An.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};An.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&t.xref!=="paper"&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(n.yaxis=e._fullLayout[t.yref+"axis"])),n.xsizemode=t.xsizemode,n.ysizemode=t.ysizemode,n.xanchor=t.xanchor,n.yanchor=t.yanchor,{options:t,plotinfo:n}};An.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(n.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:n}};An.getPathString=function(e,r){let t=r.type,n=Sl.getRefType(r.xref),a=Sl.getRefType(r.yref),o=e._fullLayout._size;var i,l,u,s,f,c,d,x,g,w,T,m;function k(A,p,R,E){var D;if(A)if(p==="domain")E?D=function(F){return A._offset+A._length*(1-F)}:D=function(F){return A._offset+A._length*F};else{let F=An.shapePositionToRange(A);D=function(z){return A._offset+A.r2p(F(z,!0))},R==="path"&&A.type==="date"&&(D=An.decodeDate(D))}else E?D=function(F){return o.t+o.h*(1-F)}:D=function(F){return o.l+o.w*F};return D}if(n==="array"?(d=[],i=r.xref.map(function(A){return Sl.getFromId(e,A)}),d=r.xref.map(function(A,p){return k(i[p],Sl.getRefType(A),t,!1)})):(i=Sl.getFromId(e,r.xref),d=k(i,n,t,!1)),a==="array"?(x=[],l=r.yref.map(function(A){return Sl.getFromId(e,A)}),x=r.yref.map(function(A,p){return k(l[p],Sl.getRefType(A),t,!0)})):(l=Sl.getFromId(e,r.yref),x=k(l,a,t,!0)),t==="path")return Zie(r,d,x);if(n==="array")u=uo(i[0],r.x0shift),s=uo(i[1],r.x1shift),g=d[0](r.x0)+u,w=d[1](r.x1)+s;else if(u=uo(i,r.x0shift),s=uo(i,r.x1shift),r.xsizemode==="pixel"){let A=d(r.xanchor);g=A+r.x0+u,w=A+r.x1+s}else g=d(r.x0)+u,w=d(r.x1)+s;if(a==="array")f=uo(l[0],r.y0shift),c=uo(l[1],r.y1shift),T=x[0](r.y0)+f,m=x[1](r.y1)+c;else if(f=uo(l,r.y0shift),c=uo(l,r.y1shift),r.ysizemode==="pixel"){let A=x(r.yanchor);T=A-r.y0+f,m=A-r.y1+c}else T=x(r.y0)+f,m=x(r.y1)+c;if(t==="line")return"M"+g+","+T+"L"+w+","+m;if(t==="rect")return"M"+g+","+T+"H"+w+"V"+m+"H"+g+"Z";var S=(g+w)/2,b=(T+m)/2,M=Math.abs(S-g),h=Math.abs(b-T),_="A"+M+","+h,y=S+M+","+b,v=S+","+(b-h);return"M"+y+_+" 0 1,1 "+v+_+" 0 0,1 "+y+"Z"};function Zie(e,r,t){let n=e.path,a=e.xsizemode,o=e.ysizemode,i=e.xanchor,l=e.yanchor,u=Array.isArray(e.xref),s=Array.isArray(e.yref);var f=0,c=0;return n.replace(fo.segmentRE,function(d){var x=0,g=d.charAt(0),w=fo.paramIsX[g],T=fo.paramIsY[g],m=fo.numParams[g];let k=w.drawn!==void 0,S=T.drawn!==void 0,b=u?r[f]:r,M=s?t[c]:t;var h=d.slice(1).replace(fo.paramRE,function(_){return w[x]?a==="pixel"?_=b(i)+Number(_):_=b(_):T[x]&&(o==="pixel"?_=M(l)-Number(_):_=M(_)),x++,x>m&&(_="X"),_});return x>m&&(h=h.replace(/[\s,]*X.*/,""),NE.log("Ignoring extra params in segment "+d)),k&&f++,S&&c++,g+h})}An.getPixelShift=uo;function uo(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 r5=xe((abe,BE)=>{"use strict";var Jie=rr(),co=Ot(),qE=Un(),OE=Mt(),$ie=Al().readPaths,Fs=Cl(),Kie=Fs.getPathString,uc=kh(),Qie=Bn().FROM_TL;BE.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var o;if(n.label.texttemplate){var i={};if(n.type!=="path"){var l=co.getFromId(r,n.xref),u=co.getFromId(r,n.yref);let U=Array.isArray(n.xref),V=Array.isArray(n.yref);for(var s in uc){var f=typeof uc[s]=="function",c=!U||uc.simpleXVariables.includes(s),d=!V||uc.simpleYVariables.includes(s);if(f&&c&&d){var x=uc[s](n,l,u);x!==void 0&&(i[s]=x)}}}o=Jie.texttemplateStringForShapes({data:[i],fallback:n.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:n.label.texttemplate})}else o=n.label.text;var g={"data-index":t},w=n.label.font,T={"data-notex":1},m=a.append("g").attr(g).classed("shape-label",!0),k=m.append("text").attr(T).classed("shape-label-text",!0).text(o),S,b,M,h;if(n.path){var _=Kie(r,n),y=$ie(_,r);S=1/0,M=1/0,b=-1/0,h=-1/0;for(var v=0;v<y.length;v++)for(var A=0;A<y[v].length;A++)for(var p=y[v][A],R=1;R<p.length;R+=2){var E=p[R],D=p[R+1];S=Math.min(S,E),b=Math.max(b,E),M=Math.min(M,D),h=Math.max(h,D)}}else{let U=Array.isArray(n.xref),V=Array.isArray(n.yref),K=co.getFromId(r,U?n.xref[0]:n.xref),j=co.getFromId(r,U?n.xref[1]:n.xref),G=co.getFromId(r,V?n.yref[0]:n.yref),q=co.getFromId(r,V?n.yref[1]:n.yref),J=co.getRefType(U?n.xref[0]:n.xref),te=co.getRefType(U?n.xref[1]:n.xref),Z=co.getRefType(V?n.yref[0]:n.yref),ie=co.getRefType(V?n.yref[1]:n.yref),Q=(se,ee,ae,ce)=>Fs.getDataToPixel(r,ae,ee,!1,ce)(se),re=(se,ee,ae,ce)=>Fs.getDataToPixel(r,ae,ee,!0,ce)(se);if(n.xsizemode==="pixel"){let se=Q(n.xanchor,void 0,K,J),ee=Fs.getPixelShift(K,n.x0shift),ae=Fs.getPixelShift(K,n.x1shift);S=se+n.x0+ee,b=se+n.x1+ae}else S=Q(n.x0,n.x0shift,K,J),b=Q(n.x1,n.x1shift,j,te);if(n.ysizemode==="pixel"){let se=re(n.yanchor,void 0,G,Z),ee=Fs.getPixelShift(G,n.y0shift),ae=Fs.getPixelShift(G,n.y1shift);M=se-n.y0+ee,h=se-n.y1+ae}else M=re(n.y0,n.y0shift,G,Z),h=re(n.y1,n.y1shift,q,ie)}var F=n.label.textangle;F==="auto"&&(n.type==="line"?F=jie(S,M,b,h):F=0),k.call(function(U){return U.call(OE.font,w).attr({}),qE.convertToTspans(U,r),U});var z=OE.bBox(k.node()),I=eoe(S,M,b,h,n,F,z),L=I.textx,P=I.texty,O=I.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[O],y:P,x:L,transform:"rotate("+F+","+L+","+P+")"}).call(qE.positionText,L,P)}};function jie(e,r,t,n){var a,o;return o=Math.abs(t-e),t>=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function eoe(e,r,t,n,a,o,i){var l=a.label.textposition,u=a.label.textangle,s=a.label.padding,f=a.type,c=Math.PI/180*o,d=Math.sin(c),x=Math.cos(c),g=a.label.xanchor,w=a.label.yanchor,T,m,k,S;if(f==="line"){l==="start"?(T=e,m=r):l==="end"?(T=t,m=n):(T=(e+t)/2,m=(r+n)/2),g==="auto"&&(l==="start"?u==="auto"?t>e?g="left":t<e?g="right":g="center":t>e?g="right":t<e?g="left":g="center":l==="end"?u==="auto"?t>e?g="right":t<e?g="left":g="center":t>e?g="left":t<e?g="right":g="center":g="center");var b={left:1,center:0,right:-1},M={bottom:-1,middle:0,top:1};if(u==="auto"){var h=M[w];k=-s*d*h,S=s*x*h}else{var _=b[g],y=M[w];k=s*_,S=s*y}T=T+k,m=m+S}else k=s+3,l.indexOf("right")!==-1?(T=Math.max(e,t)-k,g==="auto"&&(g="right")):l.indexOf("left")!==-1?(T=Math.min(e,t)+k,g==="auto"&&(g="left")):(T=(e+t)/2,g==="auto"&&(g="center")),l.indexOf("top")!==-1?m=Math.min(r,n):l.indexOf("bottom")!==-1?m=Math.max(r,n):m=(r+n)/2,S=s,w==="bottom"?m=m-S:w==="top"&&(m=m+S);var v=Qie[w],A=a.label.font.size,p=i.height,R=(p*v-A)*d,E=-(p*v-A)*x;return{textx:T+R,texty:m+E,xanchor:g}}});var ad=xe((ibe,ZE)=>{"use strict";var roe=rr(),toe=roe.strTranslate,UE=Ai(),GE=uf(),noe=GE.drawMode,YE=GE.selectMode,XE=Cr(),HE=Xr(),nd=$1(),aoe=nd.i000,ioe=nd.i090,ooe=nd.i180,loe=nd.i270,soe=vl(),WE=soe.clearOutlineControllers,n5=Al(),td=n5.pointsOnRectangle,t5=n5.pointsOnEllipse,uoe=n5.writePaths,foe=rd().newShapes,coe=rd().createShapeObj,voe=e5(),hoe=r5();ZE.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),(t5(r[0])||n.hasText)&&l({redrawing:!0})}function l(I){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=foe(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=voe(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&XE.call((I||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,c=noe(f),d=YE(f);(c||d)&&(o._fullLayout._outlining=!0),WE(o),t.attr("d",uoe(r));var x,g,w,T,m;if(!a&&(n.isActiveShape||n.isActiveSelection)){m=doe([],r);var k=s.append("g").attr("class","outline-controllers");A(k),z()}if(c&&n.hasText){var S=s.select(".label-temp"),b=coe(t,n,n.dragmode);hoe(o,"label-temp",b,S)}function M(I){w=+I.srcElement.getAttribute("data-i"),T=+I.srcElement.getAttribute("data-j"),x[w][T].moveFn=h}function h(I,L){if(r.length){var P=m[w][T][1],O=m[w][T][2],U=r[w],V=U.length;if(td(U)){var K=I,j=L;if(n.isActiveSelection){var G=VE(U,T);G[1]===U[T][1]?j=0:K=0}for(var q=0;q<V;q++)if(q!==T){var J=U[q];J[1]===U[T][1]&&(J[1]=P+K),J[2]===U[T][2]&&(J[2]=O+j)}if(U[T][1]=P+K,U[T][2]=O+j,!td(U))for(var te=0;te<V;te++)for(var Z=0;Z<U[te].length;Z++)U[te][Z]=m[w][te][Z]}else U[T][1]=P+I,U[T][2]=O+L;i()}}function _(){l()}function y(){if(r.length&&r[w]&&r[w].length){for(var I=[],L=0;L<r[w].length;L++)L!==T&&I.push(r[w][L]);I.length>1&&!(I.length===2&&I[1][0]==="Z")&&(T===0&&(I[0][0]="M"),r[w]=I,i(),l())}}function v(I,L){if(I===2){w=+L.srcElement.getAttribute("data-i"),T=+L.srcElement.getAttribute("data-j");var P=r[w];!td(P)&&!t5(P)&&y()}}function A(I){x=[];for(var L=0;L<r.length;L++){var P=r[L],O=td(P),U=!O&&t5(P);x[L]=[];for(var V=P.length,K=0;K<V;K++)if(P[K][0]!=="Z"&&!(U&&K!==aoe&&K!==ioe&&K!==ooe&&K!==loe)){var j=O&&n.isActiveSelection,G;j&&(G=VE(P,K));var q=P[K][1],J=P[K][2],te=I.append(j?"rect":"circle").attr("data-i",L).attr("data-j",K).style({fill:HE.background,stroke:HE.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(j){var Z=G[1]-q,ie=G[2]-J,Q=ie?5:Math.max(Math.min(25,Math.abs(Z)-5),5),re=Z?5:Math.max(Math.min(25,Math.abs(ie)-5),5);te.classed(ie?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",Q).attr("height",re).attr("x",q-Q/2).attr("y",J-re/2).attr("transform",toe(Z/2,ie/2))}else te.classed("cursor-grab",!0).attr("r",5).attr("cx",q).attr("cy",J);x[L][K]={element:te.node(),gd:o,prepFn:M,doneFn:_,clickFn:v},UE.init(x[L][K])}}}function p(I,L){if(r.length)for(var P=0;P<r.length;P++)for(var O=0;O<r[P].length;O++)for(var U=0;U+2<r[P][O].length;U+=2)r[P][O][U+1]=m[P][O][U+1]+I,r[P][O][U+2]=m[P][O][U+2]+L}function R(I,L){p(I,L),i()}function E(I){w=+I.srcElement.getAttribute("data-i"),w||(w=0),g[w].moveFn=R}function D(){l()}function F(I){I===2&&poe(o)}function z(){if(g=[],!!r.length){var I=0;g[I]={element:t[0][0],gd:o,prepFn:E,doneFn:D,clickFn:F},UE.init(g[I])}}};function doe(e,r){for(var t=0;t<r.length;t++){var n=r[t];e[t]=[];for(var a=0;a<n.length;a++){e[t][a]=[];for(var o=0;o<n[a].length;o++)e[t][a][o]=n[a][o]}}return e}function VE(e,r){var t=e[r][1],n=e[r][2],a=e.length,o,i,l;return o=(r+1)%a,i=e[o][1],l=e[o][2],i===t&&l===n&&(o=(r+2)%a,i=e[o][1],l=e[o][2]),[o,i,l]}function poe(e){if(YE(e._fullLayout.dragmode)){WE(e);var r=e._fullLayout._activeSelectionIndex,t=(e.layout||{}).selections||[];if(r<t.length){for(var n=[],a=0;a<t.length;a++)a!==r&&n.push(t[a]);delete e._fullLayout._activeSelectionIndex;var o=e._fullLayout.selections[r];e._fullLayout._deselect={xref:o.xref,yref:o.yref},XE.call("_guiRelayout",e,{selections:n})}}}});var ud=xe((obe,aL)=>{"use strict";var goe=nt(),eL=Cr(),i5=rr(),Ns=Ot(),yoe=Al().readPaths,moe=ad(),od=r5(),rL=vl().clearOutlineControllers,a5=Xr(),ld=Mt(),boe=wt().arrayEditor,JE=Ai(),$E=so(),KE=Ml(),qs=sc(),Ma=Cl(),o5=Ma.getPathString;aL.exports={draw:l5,drawOne:tL,eraseActiveShape:Toe,drawLabel:od};function l5(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 n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;a<r.shapes.length;a++)r.shapes[a].visible===!0&&tL(e,a)}function id(e){return!!e._fullLayout._outlining}function sd(e){return!e._context.edits.shapePosition}function tL(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=Ma.makeShapesOptionsAndPlotinfo(e,r),n=t.options,a=t.plotinfo;if(!n._input||n.visible!==!0)return;let o=Array.isArray(n.xref)||Array.isArray(n.yref);if(n.layer==="above")l(e._fullLayout._shapeUpperLayer);else if(n.xref.includes("paper")||n.yref.includes("paper"))l(e._fullLayout._shapeLowerLayer);else if(n.layer==="between"&&!o)l(a.shapelayerBetween);else if(a._hadPlotinfo){var i=a.mainplotinfo||a;l(i.shapelayer)}else l(e._fullLayout._shapeLowerLayer);function l(u){var s=o5(e,n),f={"data-index":r,"fill-rule":n.fillrule,d:s},c=n.opacity,d=n.fillcolor,x=n.line.width?n.line.color:"rgba(0,0,0,0)",g=n.line.width,w=n.line.dash;!g&&n.editable===!0&&(g=5,w="solid");var T=s[s.length-1]!=="Z",m=sd(e)&&n.editable&&e._fullLayout._activeShapeIndex===r;m&&(d=T?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var k=u.append("g").classed("shape-group",!0).attr({"data-index":r}),S=k.append("path").attr(f).style("opacity",c).call(a5.stroke,x).call(a5.fill,d).call(ld.dashLine,w,g);nL(k,e,n),od(e,r,n,k);var b;if((m||e._context.edits.shapePosition)&&(b=boe(e.layout,"shapes",n)),m){S.style({cursor:"move"});var M={element:S.node(),plotinfo:a,gd:e,editHelpers:b,hasText:n.label.text||n.label.texttemplate,isActiveShape:!0},h=yoe(s,e);moe(h,S,M)}else e._context.edits.shapePosition?woe(e,S,n,r,u,b):n.editable===!0&&S.style("pointer-events",T||a5.opacity(d)*c<=.5?"stroke":"all");S.node().addEventListener("click",function(){return Moe(e,S)}),xoe(e,S,a)}}function xoe(e,r,t){if(!(t!=null&&t.id))return;let n=r.node();function a(o){var u;let i=t.mainplotinfo||t,l=(u=i==null?void 0:i.draglayer)==null?void 0:u.select(".nsewdrag").node();return l?{clientX:o.clientX,clientY:o.clientY,target:l}:null}n.addEventListener("mousemove",o=>{if(!e._dragging&&e._fullLayout.hoveranywhere){let i=a(o);i&&$E.hover(e,i,t.id)}}),n.addEventListener("click",o=>{if(!e._dragged&&e._fullLayout.clickanywhere){let i=a(o);i&&$E.click(e,i,t.id)}})}function nL(e,r,t){let n=t.xref,a=t.yref;if(Array.isArray(n)||Array.isArray(a)){let o="clip"+r._fullLayout._uid+"shape"+t._index,i=_oe(r,n,a);i5.ensureSingleById(r._fullLayout._clips,"clipPath",o,function(l){l.append("rect")}).select("rect").attr(i),ld.setClipUrl(e,o,r)}else{let o=(n+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");ld.setClipUrl(e,o?"clip"+r._fullLayout._uid+o:null,r)}}function _oe(e,r,t){let n=e._fullLayout._size;function a(l,u){let s=(Array.isArray(l)?l:[l]).map(d=>Ns.getFromId(e,d)).filter(Boolean);if(!s.length)return u?[n.t,n.t+n.h]:[n.l,n.l+n.w];let f=s.map(function(d){return d._offset}),c=s.map(function(d){return d._offset+d._length});return[Math.min(...f),Math.max(...c)]}let o=a(r,!1),i=a(t,!0);return{x:o[0],y:i[0],width:o[1]-o[0],height:i[1]-i[0]}}function woe(e,r,t,n,a,o){var i=10,l=10,u=t.xsizemode==="pixel",s=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",d=o.modifyItem,x,g,w,T,m,k,S,b,M,h,_,y,v,A,p,R=goe.select(r.node().parentNode),E=Ns.getFromId(e,t.xref),D=Ns.getRefType(t.xref),F=Ns.getFromId(e,t.yref),z=Ns.getRefType(t.yref),I=t.x0shift,L=t.x1shift,P=t.y0shift,O=t.y1shift,U=function(Se,ge){var Le=Ma.getDataToPixel(e,E,ge,!1,D);return Le(Se)},V=function(Se,ge){var Le=Ma.getDataToPixel(e,F,ge,!0,z);return Le(Se)},K=Ma.getPixelToData(e,E,!1,D),j=Ma.getPixelToData(e,F,!0,z),G=te(),q={element:G.node(),gd:e,prepFn:Q,doneFn:re,clickFn:se},J;JE.init(q),G.node().onmousemove=ie;function te(){return f?Z():r}function Z(){var Se=10,ge=Math.max(t.line.width,Se),Le=a.append("g").attr("data-index",n).attr("drag-helper",!0);Le.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ge,"stroke-opacity":"0"});var Ee={"fill-opacity":"0"},le=Math.max(ge/2,Se);return Le.append("circle").attr({"data-line-point":"start-point",cx:u?U(t.xanchor)+t.x0:U(t.x0,I),cy:s?V(t.yanchor)-t.y0:V(t.y0,P),r:le}).style(Ee).classed("cursor-grab",!0),Le.append("circle").attr({"data-line-point":"end-point",cx:u?U(t.xanchor)+t.x1:U(t.x1,L),cy:s?V(t.yanchor)-t.y1:V(t.y1,O),r:le}).style(Ee).classed("cursor-grab",!0),Le}function ie(Se){if(id(e)){J=null;return}if(f)Se.target.tagName==="path"?J="move":J=Se.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ge=q.element.getBoundingClientRect(),Le=ge.right-ge.left,Ee=ge.bottom-ge.top,le=Se.clientX-ge.left,Y=Se.clientY-ge.top,$=!c&&Le>i&&Ee>l&&!Se.shiftKey?JE.getCursor(le/Le,1-Y/Ee):"move";KE(r,$),J=$.split("-")[0]}}function Q(Se){id(e)||(u&&(m=U(t.xanchor)),s&&(k=V(t.yanchor)),t.type==="path"?p=t.path:(x=u?t.x0:U(t.x0),g=s?t.y0:V(t.y0),w=u?t.x1:U(t.x1),T=s?t.y1:V(t.y1)),x<w?(M=x,v="x0",h=w,A="x1"):(M=w,v="x1",h=x,A="x0"),!s&&g<T||s&&g>T?(S=g,_="y0",b=T,y="y1"):(S=T,_="y1",b=g,y="y0"),ie(Se),ce(a,t),ke(r,t,e),q.moveFn=J==="move"?ee:ae,q.altKey=Se.altKey)}function re(){id(e)||(KE(r),Me(a),nL(r,e,t),eL.call("_guiRelayout",e,o.getUpdateObj()))}function se(){id(e)||Me(a)}function ee(Se,ge){if(t.type==="path"){var Le=function(Y){return Y},Ee=Le,le=Le;u?d("xanchor",t.xanchor=K(m+Se)):(Ee=function($){return K(U($)+Se)},E&&E.type==="date"&&(Ee=Ma.encodeDate(Ee))),s?d("yanchor",t.yanchor=j(k+ge)):(le=function($){return j(V($)+ge)},F&&F.type==="date"&&(le=Ma.encodeDate(le))),d("path",t.path=QE(p,Ee,le))}else u?d("xanchor",t.xanchor=K(m+Se)):(d("x0",t.x0=K(x+Se)),d("x1",t.x1=K(w+Se))),s?d("yanchor",t.yanchor=j(k+ge)):(d("y0",t.y0=j(g+ge)),d("y1",t.y1=j(T+ge)));r.attr("d",o5(e,t)),ce(a,t),od(e,n,t,R)}function ae(Se,ge){if(c){var Le=function(Pe){return Pe},Ee=Le,le=Le;u?d("xanchor",t.xanchor=K(m+Se)):(Ee=function(Ye){return K(U(Ye)+Se)},E&&E.type==="date"&&(Ee=Ma.encodeDate(Ee))),s?d("yanchor",t.yanchor=j(k+ge)):(le=function(Ye){return j(V(Ye)+ge)},F&&F.type==="date"&&(le=Ma.encodeDate(le))),d("path",t.path=QE(p,Ee,le))}else if(f){if(J==="resize-over-start-point"){var Y=x+Se,$=s?g-ge:g+ge;d("x0",t.x0=u?Y:K(Y)),d("y0",t.y0=s?$:j($))}else if(J==="resize-over-end-point"){var pe=w+Se,oe=s?T-ge:T+ge;d("x1",t.x1=u?pe:K(pe)),d("y1",t.y1=s?oe:j(oe))}}else{var ve=function(Pe){return J.indexOf(Pe)!==-1},he=ve("n"),me=ve("s"),be=ve("w"),ye=ve("e"),de=he?S+ge:S,_e=me?b+ge:b,Ae=be?M+Se:M,Ie=ye?h+Se:h;s&&(he&&(de=S-ge),me&&(_e=b-ge)),(!s&&_e-de>l||s&&de-_e>l)&&(d(_,t[_]=s?de:j(de)),d(y,t[y]=s?_e:j(_e))),Ie-Ae>i&&(d(v,t[v]=u?Ae:K(Ae)),d(A,t[A]=u?Ie:K(Ie)))}r.attr("d",o5(e,t)),ce(a,t),od(e,n,t,R)}function ce(Se,ge){(u||s)&&Le();function Le(){var Ee=ge.type!=="path",le=Se.selectAll(".visual-cue").data([0]),Y=1;le.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Y}).classed("visual-cue",!0);var $=U(u?ge.xanchor:i5.midRange(Ee?[ge.x0,ge.x1]:Ma.extractPathCoords(ge.path,qs.paramIsX))),pe=V(s?ge.yanchor:i5.midRange(Ee?[ge.y0,ge.y1]:Ma.extractPathCoords(ge.path,qs.paramIsY)));if($=Ma.roundPositionForSharpStrokeRendering($,Y),pe=Ma.roundPositionForSharpStrokeRendering(pe,Y),u&&s){var oe="M"+($-1-Y)+","+(pe-1-Y)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";le.attr("d",oe)}else if(u){var ve="M"+($-1-Y)+","+(pe-9-Y)+"v18 h2 v-18 Z";le.attr("d",ve)}else{var he="M"+($-9-Y)+","+(pe-1-Y)+"h18 v2 h-18 Z";le.attr("d",he)}}}function Me(Se){Se.selectAll(".visual-cue").remove()}function ke(Se,ge,Le){var Ee=ge.xref,le=ge.yref,Y=Ns.getFromId(Le,Ee),$=Ns.getFromId(Le,le),pe="";Ee!=="paper"&&!Y.autorange&&(pe+=Ee),le!=="paper"&&!$.autorange&&(pe+=le),ld.setClipUrl(Se,pe?"clip"+Le._fullLayout._uid+pe:null,Le)}}function QE(e,r,t){return e.replace(qs.segmentRE,function(n){var a=0,o=n.charAt(0),i=qs.paramIsX[o],l=qs.paramIsY[o],u=qs.numParams[o],s=n.slice(1).replace(qs.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function Moe(e,r){if(sd(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){jE(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=jE,l5(e)}}}function jE(e){if(sd(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(rL(e),delete e._fullLayout._activeShapeIndex,l5(e))}}function Toe(e){if(sd(e)){rL(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r<t.length){for(var n=[],a=0;a<t.length;a++)a!==r&&n.push(t[a]);return delete e._fullLayout._activeShapeIndex,eL.call("_guiRelayout",e,{shapes:n})}}}});var oL=xe((lbe,iL)=>{"use strict";var vf=rr()._,Aoe=function(e){return{DIALOG_TITLE:vf(e,"Share chart"),DIALOG_MESSAGE_CLOUD:vf(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:vf(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:vf(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:vf(e,"Cancel"),DIALOG_CONFIRM:vf(e,"Share")}};iL.exports=Aoe});var uL=xe((sbe,sL)=>{"use strict";var lL=nt(),{dfltConfig:koe}=jo(),Soe=oL(),Coe=(e,r,t,n,a)=>{let o=Soe(e),i=r.append("div").classed("plotly-cloud-dialog-box",!0);if(i.append("div").classed("plotly-cloud-dialog-title",!0).text(o.DIALOG_TITLE),t===koe.plotlyServerURL){let u=i.append("div").classed("plotly-cloud-dialog-message",!0),s=new URL(t).origin,f=o.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],d=f[2],x=f[4];u.append("span").text(c),u.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",s).attr("target","_blank").text(d),u.append("span").text(x),u.append("div").classed("plotly-cloud-dialog-message--account",!0).text(o.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let u=new URL(t),s=u.hostname,f=u.origin,c=o.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),d=c[0],x=c[4],g=i.append("div").classed("plotly-cloud-dialog-message",!0);g.append("span").text(d),g.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(s),g.append("span").text(x)}let l=i.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(o.DIALOG_CANCEL).on("click",a),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(o.DIALOG_CONFIRM).on("click",n)},Eoe=(e,r,t)=>{let n=lL.select(e._fullLayout._paperdiv.node());n.selectAll(".plotly-cloud-dialog").remove();let a=n.append("div").classed("plotly-cloud-dialog",!0),o=()=>{a.remove(),document.removeEventListener("keydown",i)},i=l=>{(l.key==="Escape"||l.keyCode===27)&&o()};document.addEventListener("keydown",i),a.on("click",()=>{lL.event.target===a.node()&&o()}),Coe(e,a,r,()=>{o(),t()},o)};sL.exports=Eoe});var f5=xe((ube,gL)=>{"use strict";var ja=Cr(),Loe=bn(),cL=fn(),ct=Z1(),Roe=ud().eraseActiveShape,Doe=uL(),fd=rr(),tt=fd._,vt=gL.exports={};vt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?tt(e,"Download plot as a PNG"):tt(e,"Download plot")},icon:ct.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};fd.notifier(tt(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),ja.call("downloadImage",e,t).then(function(n){fd.notifier(tt(e,"Image download succeeded")+" - "+n,"long",e)}).catch(function(){fd.notifier(tt(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};vt.sendChartToCloud={name:"sendChartToCloud",title:function(e){return tt(e,"Share chart...")},icon:ct.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(a){console.error("Invalid plotlyServerURL: "+r);return}let n=["http:","https:"];if(!n.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${n.join(", ")}`);return}Doe(e,r,function(){Loe.sendDataToCloud(e,r)})}};vt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return tt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ct.zoombox,click:na};vt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return tt(e,"Pan")},attr:"dragmode",val:"pan",icon:ct.pan,click:na};vt.select2d={name:"select2d",_cat:"select",title:function(e){return tt(e,"Box Select")},attr:"dragmode",val:"select",icon:ct.selectbox,click:na};vt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return tt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ct.lasso,click:na};vt.drawclosedpath={name:"drawclosedpath",title:function(e){return tt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ct.drawclosedpath,click:na};vt.drawopenpath={name:"drawopenpath",title:function(e){return tt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ct.drawopenpath,click:na};vt.drawline={name:"drawline",title:function(e){return tt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ct.drawline,click:na};vt.drawrect={name:"drawrect",title:function(e){return tt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ct.drawrect,click:na};vt.drawcircle={name:"drawcircle",title:function(e){return tt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ct.drawcircle,click:na};vt.eraseshape={name:"eraseshape",title:function(e){return tt(e,"Erase active shape")},icon:ct.eraseshape,click:Roe};vt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return tt(e,"Zoom in")},attr:"zoom",val:"in",icon:ct.zoom_plus,click:na};vt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return tt(e,"Zoom out")},attr:"zoom",val:"out",icon:ct.zoom_minus,click:na};vt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return tt(e,"Autoscale")},attr:"zoom",val:"auto",icon:ct.autoscale,click:na};vt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return tt(e,"Reset axes")},attr:"zoom",val:"reset",icon:ct.home,click:na};vt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return tt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ct.tooltip_basic,gravity:"ne",click:na};vt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return tt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ct.tooltip_compare,gravity:"ne",click:na};function na(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=cL.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var c=a==="in"?.5:2,d=(1+c)/2,x=(1-c)/2,g,w;for(f=0;f<l.length;f++)if(s=l[f],w=s.modebardisable==="none"||s.modebardisable.indexOf(a==="auto"||a==="reset"?"autoscale":"zoominout")===-1,w&&!s.fixedrange)if(g=s._name,a==="auto")i[g+".autorange"]=!0;else if(a==="reset")s._rangeInitial0===void 0&&s._rangeInitial1===void 0?i[g+".autorange"]=!0:s._rangeInitial0===void 0?(i[g+".autorange"]=s._autorangeInitial,i[g+".range"]=[null,s._rangeInitial1]):s._rangeInitial1===void 0?(i[g+".range"]=[s._rangeInitial0,null],i[g+".autorange"]=s._autorangeInitial):i[g+".range"]=[s._rangeInitial0,s._rangeInitial1],s._showSpikeInitial!==void 0&&(i[g+".showspikes"]=s._showSpikeInitial,u==="on"&&!s._showSpikeInitial&&(u="off"));else{var T=[s.r2l(s.range[0]),s.r2l(s.range[1])],m=[d*T[0]+x*T[1],d*T[1]+x*T[0]];i[g+".range[0]"]=s.l2r(m[0]),i[g+".range[1]"]=s.l2r(m[1])}}else n==="hovermode"&&(a==="x"||a==="y")&&(a=o._isHoriz?"y":"x",t.setAttribute("data-val",a)),i[n]=a;o._cartesianSpikesEnabled=u,ja.call("_guiRelayout",e,i)}vt.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return tt(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:ct.zoombox,click:vd};vt.pan3d={name:"pan3d",_cat:"pan",title:function(e){return tt(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:ct.pan,click:vd};vt.orbitRotation={name:"orbitRotation",title:function(e){return tt(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:ct["3d_rotate"],click:vd};vt.tableRotation={name:"tableRotation",title:function(e){return tt(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:ct["z-axis"],click:vd};function vd(e,r){for(var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],i={},l=n.split("."),u=0;u<o.length;u++)i[o[u]+"."+l[1]]=a;var s=a==="pan"?a:"zoom";i.dragmode=s,ja.call("_guiRelayout",e,i)}vt.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return tt(e,"Reset camera to default")},attr:"resetDefault",icon:ct.home,click:s5};vt.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return tt(e,"Reset camera to last save")},attr:"resetLastSave",icon:ct.movie,click:s5};function s5(e,r){for(var t=r.currentTarget,n=t.getAttribute("data-attr"),a=n==="resetLastSave",o=n==="resetDefault",i=e._fullLayout,l=i._subplots.gl3d||[],u={},s=0;s<l.length;s++){var f=l[s],c=f+".camera",d=f+".aspectratio",x=f+".aspectmode",g=i[f]._scene,w;a?(u[c+".up"]=g.viewInitial.up,u[c+".eye"]=g.viewInitial.eye,u[c+".center"]=g.viewInitial.center,w=!0):o&&(u[c+".up"]=null,u[c+".eye"]=null,u[c+".center"]=null,w=!0),w&&(u[d+".x"]=g.viewInitial.aspectratio.x,u[d+".y"]=g.viewInitial.aspectratio.y,u[d+".z"]=g.viewInitial.aspectratio.z,u[x]=g.viewInitial.aspectmode)}ja.call("_guiRelayout",e,u)}vt.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return tt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ct.tooltip_basic,gravity:"ne",click:Poe};function vL(e,r){var t=r.currentTarget,n=t._previousVal,a=e._fullLayout,o=a._subplots.gl3d||[],i=["xaxis","yaxis","zaxis"],l={},u={};if(n)u=n,t._previousVal=null;else{for(var s=0;s<o.length;s++){var f=o[s],c=a[f],d=f+".hovermode";l[d]=c.hovermode,u[d]=!1;for(var x=0;x<3;x++){var g=i[x],w=f+"."+g+".showspikes";u[w]=!1,l[w]=c[g].showspikes}}t._previousVal=l}return u}function Poe(e,r){var t=vL(e,r);ja.call("_guiRelayout",e,t)}vt.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return tt(e,"Zoom in")},attr:"zoom",val:"in",icon:ct.zoom_plus,click:u5};vt.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return tt(e,"Zoom out")},attr:"zoom",val:"out",icon:ct.zoom_minus,click:u5};vt.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return tt(e,"Reset")},attr:"reset",val:null,icon:ct.autoscale,click:u5};vt.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return tt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ct.tooltip_basic,gravity:"ne",click:dL};var fL=2;function u5(e,r){var l;let t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i=o._subplots.geo||[];for(let u of i){let s=o[u],f=s._subplot;if(n==="zoom"){let c=f.projection,d=c.scale()/f.fitScale,[x,g]=c.rotate().map(h=>-h),[w,T]=c.invert(f.midPt),{minscale:m}=s.projection,k=(l=s.projection.maxscale)!=null?l:1/0,S=Math.min(m,k),b=Math.max(m,k),M=a==="in"?fL*d:1/fL*d;M>b?M=b:M<S&&(M=S),M!==d&&ja.call("_guiRelayout",e,{[u+".projection.scale"]:M,[u+".projection.rotation.lon"]:x,[u+".projection.rotation.lat"]:g,[u+".center.lon"]:w,[u+".center.lat"]:T,[u+".fitbounds"]:!1})}}n==="reset"&&cd(e,"geo")}vt.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return tt(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:ct.tooltip_basic,gravity:"ne",click:dL};function hL(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function dL(e){var r=hL(e);ja.call("_guiRelayout",e,"hovermode",r)}vt.resetViewSankey={name:"resetSankeyGroup",title:function(e){return tt(e,"Reset view")},icon:ct.home,click:function(e){for(var r={"node.groups":[],"node.x":[],"node.y":[]},t=0;t<e._fullData.length;t++){var n=e._fullData[t]._viewInitial;r["node.groups"].push(n.node.groups.slice()),r["node.x"].push(n.node.x.slice()),r["node.y"].push(n.node.y.slice())}ja.call("restyle",e,r)}};vt.toggleHover={name:"toggleHover",title:function(e){return tt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ct.tooltip_basic,gravity:"ne",click:function(e,r){var t=vL(e,r);t.hovermode=hL(e),ja.call("_guiRelayout",e,t)}};vt.resetViews={name:"resetViews",title:function(e){return tt(e,"Reset views")},icon:ct.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),na(e,r),t.setAttribute("data-attr","resetLastSave"),s5(e,r),cd(e,"geo"),cd(e,"map")}};vt.toggleSpikelines={name:"toggleSpikelines",title:function(e){return tt(e,"Toggle Spike Lines")},icon:ct.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",ja.call("_guiRelayout",e,Ioe(e))}};function Ioe(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",n=cL.list(e,null,!0),a={},o=0;o<n.length;o++){var i=n[o];a[i._name+".showspikes"]=t?!0:i._showSpikeInitial}return a}vt.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return tt(e,"Reset view")},attr:"reset",icon:ct.home,click:function(e){cd(e,"map")}};vt.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return tt(e,"Zoom in")},attr:"zoom",val:"in",icon:ct.zoom_plus,click:pL};vt.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return tt(e,"Zoom out")},attr:"zoom",val:"out",icon:ct.zoom_minus,click:pL};function pL(e,r){zoe(e,r,"map")}function zoe(e,r,t){for(var n=r.currentTarget,a=n.getAttribute("data-val"),o=e._fullLayout,i=o._subplots[t]||[],l=1.05,u={},s=0;s<i.length;s++){var f=i[s],c=o[f].zoom,d=a==="in"?l*c:c/l;u[f+".zoom"]=d}ja.call("_guiRelayout",e,u)}function cd(e,r){for(var t=e._fullLayout,n=t._subplots[r]||[],a={},o=0;o<n.length;o++)for(var i=n[o],l=t[i]._subplot,u=l.viewInitial,s=Object.keys(u),f=0;f<s.length;f++){var c=s[f];a[i+"."+c]=u[c]}ja.call("_guiRelayout",e,a)}});var c5=xe((fbe,xL)=>{"use strict";var yL=f5(),Foe=Object.keys(yL),mL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],bL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(mL),hf=[],Noe=function(e){if(bL.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();hf.indexOf(r)===-1&&hf.push(r),hf.indexOf(t)===-1&&hf.push(t)}};Foe.forEach(function(e){Noe(yL[e])});hf.sort();xL.exports={DRAW_MODES:mL,backButtons:bL,foreButtons:hf}});var h5={};i0(h5,{default:()=>Ooe});var v5,qoe,Ooe,d5=a0(()=>{"use strict";v5=Gg(c5()),qoe={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 *${v5.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 *${v5.default.foreButtons.join("*, *")}*.`].join(" ")}},Ooe=qoe});var wL=xe((cbe,_L)=>{"use strict";var Boe=rr(),fc=Xr(),Uoe=wt(),Hoe=(d5(),Kn(h5)).default;_L.exports=function(r,t){var n=r.modebar||{},a=Uoe.newContainer(t,"modebar");function o(l,u){return Boe.coerce(n,a,Hoe,l,u)}o("orientation"),o("bgcolor",fc.addOpacity(t.paper_bgcolor,.5));var i=fc.contrast(fc.rgb(t.modebar.bgcolor));o("color",fc.addOpacity(i,.3)),o("activecolor",fc.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var kL=xe((vbe,AL)=>{"use strict";var p5=nt(),Voe=it(),hd=rr(),ML=Z1(),Goe=o0().version,Yoe=new DOMParser;function TL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var vo=TL.prototype;vo.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var o=n.modebar,i="#"+a+" .modebar-group";document.querySelectorAll(i).forEach(function(c){c.style.backgroundColor=o.bgcolor});var l=!this.hasButtons(r),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),hd.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};vo.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var o=a.name;if(!o)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(o)!==-1)throw new Error("button name '"+o+"' is taken");r.buttonsNames.push(o);var i=r.createButton(a);r.buttonElements.push(i),n.appendChild(i)}),r.element.appendChild(n)})};vo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};vo.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var o=e.click;if(typeof o!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&p5.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||ML.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};vo.createIcon=function(e){var r=Voe(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var o=Yoe.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};vo.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,o=n.getAttribute("data-attr"),i=n.getAttribute("data-toggle")==="true",l=p5.select(n),u=function(c,d){var x=r.modebar,g=c.querySelector(".icon path");g&&(d||c.matches(":hover")?g.style.fill=x.activecolor:g.style.fill=x.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:hd.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};vo.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 n=0;n<e[t].length;n++)if(e[t][n].name!==r[t][n].name)return!1}return!0};function Xoe(e){return e+" (v"+Goe+")"}vo.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Xoe(hd._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(ML.newplotlylogo)),e.appendChild(r),e};vo.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};vo.destroy=function(){hd.removeElement(this.container.querySelector(".modebar"))};function Woe(e,r){var t=e._fullLayout,n=new TL({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&p5.select(n.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),n}AL.exports=Woe});var EL=xe((hbe,CL)=>{"use strict";var Zoe=fn(),SL=wa(),g5=Cr(),Joe=eo().isUnifiedHover,$oe=kL(),dd=f5(),Koe=c5().DRAW_MODES,Qoe=rr().extendDeep;CL.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var o=n.modeBarButtons,i;Array.isArray(o)&&o.length?i=ale(o):!n.displayModeBar&&n.watermark?i=[]:i=joe(r),a?a.update(r,i):t._modeBar=$oe(r,i)};function joe(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(I,L){if(typeof L=="string"){if(L.toLowerCase()===I.toLowerCase())return!0}else{var P=L.name,O=L._cat||L.name;if(P===I||O===I.toLowerCase())return!0}return!1}var o=r.modebar.add;typeof o=="string"&&(o=[o]);var i=r.modebar.remove;typeof i=="string"&&(i=[i]);var l=n.modeBarButtonsToAdd.concat(o.filter(function(I){for(var L=0;L<n.modeBarButtonsToRemove.length;L++)if(a(I,n.modeBarButtonsToRemove[L]))return!1;return!0})),u=n.modeBarButtonsToRemove.concat(i.filter(function(I){for(var L=0;L<n.modeBarButtonsToAdd.length;L++)if(a(I,n.modeBarButtonsToAdd[L]))return!1;return!0})),s=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),d=r._has("pie"),x=r._has("funnelarea"),g=r._has("ternary"),w=r._has("map"),T=r._has("polar"),m=r._has("smith"),k=r._has("sankey"),S=ele(r),b=Joe(r.hovermode),M=[];function h(I){if(I.length){for(var L=[],P=0;P<I.length;P++){for(var O=I[P],U=dd[O],V=U.name.toLowerCase(),K=(U._cat||U.name).toLowerCase(),j=!1,G=0;G<u.length;G++){var q=u[G].toLowerCase();if(q===V||q===K){j=!0;break}}j||L.push(dd[O])}M.push(L)}}var _=["toImage"];n.showSendToCloud&&_.push("sendChartToCloud"),h(_);var y=[],v=[],A=[],p=[];(s||d||x||g)+c+f+w+T+m>1?(v=["toggleHover"],A=["resetViews"]):c?(y=["zoomInGeo","zoomOutGeo"],v=["hoverClosestGeo"],A=["resetGeo"]):f?(v=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(y=["zoomInMap","zoomOutMap"],v=["toggleHover"],A=["resetViewMap"]):d?v=["hoverClosestPie"]:k?(v=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):v=["toggleHover"],s&&v.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(tle(t)||b)&&(v=[]),s&&!S&&(y=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?p=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!S||g?p=["zoom2d","pan2d"]:w||c?p=["pan2d"]:T&&(p=["zoom2d"]),rle(t)&&p.push("select2d","lasso2d");var R=[],E=function(I){R.indexOf(I)===-1&&v.indexOf(I)!==-1&&R.push(I)};if(Array.isArray(l)){for(var D=[],F=0;F<l.length;F++){var z=l[F];typeof z=="string"?(z=z.toLowerCase(),Koe.indexOf(z)!==-1?(r._has("map")||r._has("cartesian"))&&p.push(z):z==="togglespikelines"?E("toggleSpikelines"):z==="togglehover"?E("toggleHover"):z==="hovercompare"?E("hoverCompareCartesian"):z==="hoverclosest"?(E("hoverClosestCartesian"),E("hoverClosestGeo"),E("hoverClosest3d"),E("hoverClosestPie")):z==="v1hovermode"&&(E("hoverClosestCartesian"),E("hoverCompareCartesian"),E("hoverClosestGeo"),E("hoverClosest3d"),E("hoverClosestPie"))):D.push(z)}l=D}return h(p),h(y.concat(A)),h(R),nle(M,l)}function ele(e){for(var r=Zoe.list({_fullLayout:e},null,!0),t=0;t<r.length;t++){var n=r[t].modebardisable;if(!r[t].fixedrange&&n!=="autoscale+zoominout"&&n!=="zoominout+autoscale")return!1}return!0}function rle(e){for(var r=!1,t=0;t<e.length&&!r;t++){var n=e[t];!n._module||!n._module.selectPoints||(g5.traceIs(n,"scatter-like")&&n.type!=="quiver"?(SL.hasMarkers(n)||SL.hasText(n))&&(r=!0):g5.traceIs(n,"box-violin")?(n.boxpoints==="all"||n.points==="all")&&(r=!0):r=!0)}return r}function tle(e){for(var r=0;r<e.length;r++)if(!g5.traceIs(e[r],"noHover"))return!1;return!0}function nle(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 ale(e){for(var r=Qoe([],e),t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;a++){var o=n[a];if(typeof o=="string")if(dd[o]!==void 0)r[t][a]=dd[o];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var y5=xe((dbe,LL)=>{"use strict";LL.exports={moduleType:"component",name:"modebar",layoutAttributes:(d5(),Kn(h5)).default,supplyLayoutDefaults:wL(),manage:EL()}});var m5=xe((pbe,RL)=>{"use strict";var ile=Bn().FROM_BL;RL.exports=function(r,t,n){n===void 0&&(n=ile[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],o=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(o+(a[0]-o)*t),r.l2r(o+(a[1]-o)*t)],r.setScale()}});var vc=xe(cc=>{"use strict";var Os=rr(),b5=Ku(),ki=fn().id2name,ole=Ja(),DL=m5(),lle=b1(),sle=pn().ALMOST_EQUAL,ule=Bn().FROM_BL;cc.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,c,d,x,g;for(l=0;l<n.length;l++)f=ki(n[l]),c=e[f],d=r[f],fle(c,d,{axIds:n,layoutOut:r,hasImage:a[f]});function w(y,v){for(l=0;l<y.length;l++){u=y[l];for(s in u)r[ki(s)][v]=u}}for(w(i,"_matchGroup"),l=0;l<o.length;l++){u=o[l];for(s in u)if(d=r[ki(s)],d.fixedrange){for(var T in u){var m=ki(T);(e[m]||{}).fixedrange===!1&&Os.warn("fixedrange was specified as false for axis "+m+" but was overridden because another axis in its constraint group has fixedrange true"),r[m].fixedrange=!0}break}}for(l=0;l<o.length;){u=o[l];for(s in u){d=r[ki(s)],d._matchGroup&&Object.keys(d._matchGroup).length===Object.keys(u).length&&(o.splice(l,1),l--);break}l++}w(o,"_constraintGroup");var k=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],S=!1,b=!1;function M(){g=d[x],x==="rangebreaks"&&(b=d._hasDayOfWeekBreaks)}for(l=0;l<i.length;l++){u=i[l];for(var h=0;h<k.length;h++){x=k[h],g=null;var _;for(s in u)if(f=ki(s),c=e[f],d=r[f],x in d){if(!d.matches&&(_=d,x in c)){M();break}g===null&&x in c&&M()}if(x==="range"&&g&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null&&(S=!0),x==="autorange"&&g===null&&S&&(g=!1),g===null&&x in _&&(g=_[x]),g!==null)for(s in u)d=r[ki(s)],d[x]=x==="range"?g.slice():g,x==="rangebreaks"&&(d._hasDayOfWeekBreaks=b,lle(d,r))}}};function fle(e,r,t){var n=t.axIds,a=t.layoutOut,o=t.hasImage,i=a._axisConstraintGroups,l=a._axisMatchGroups,u=r._id,s=u.charAt(0),f=((a._splomAxes||{})[s]||{})[u]||{},c=r._id,d=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function x(R,E){return Os.coerce(e,r,ole,R,E)}x("constrain",o?"domain":"range"),Os.coerce(e,r,{constraintoward:{valType:"enumerated",values:d?["left","center","right"]:["bottom","middle","top"],dflt:d?"center":"middle"}},"constraintoward");var g=r.type,w,T,m=[];for(w=0;w<n.length;w++)if(T=n[w],T!==c){var k=a[ki(T)];k.type===g&&m.push(T)}var S=zL(i,c);if(S){var b=[];for(w=0;w<m.length;w++)T=m[w],S[T]||b.push(T);m=b}var M=m.length,h,_;M&&(e.matches||f.matches)&&(h=Os.coerce(e,r,{matches:{valType:"enumerated",values:m,dflt:m.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var y=o&&!d?r.anchor:void 0;if(M&&!h&&(e.scaleanchor||y)&&(_=Os.coerce(e,r,{scaleanchor:{valType:"enumerated",values:m.concat([!1])}},"scaleanchor",y)),h){r._matchGroup=x5(l,c,h,1);var v=a[ki(h)],A=PL(a,r)/PL(a,v);d!==(h.charAt(0)==="x")&&(A=(d?"x":"y")+A),x5(i,c,h,A)}else e.matches&&n.indexOf(e.matches)!==-1&&Os.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(_){var p=x("scaleratio");p||(p=r.scaleratio=1),x5(i,c,_,p)}else e.scaleanchor&&n.indexOf(e.scaleanchor)!==-1&&Os.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 PL(e,r){var t=r.domain;return t||(t=e[ki(r.overlaying)].domain),t[1]-t[0]}function zL(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function x5(e,r,t,n){var a,o,i,l,u,s=zL(e,r);s===null?(s={},s[r]=1,u=e.length,e.push(s)):u=e.indexOf(s);var f=Object.keys(s);for(a=0;a<e.length;a++)if(i=e[a],a!==u&&i[t]){var c=i[t];for(o=0;o<f.length;o++)l=f[o],i[l]=_5(c,_5(n,s[l]));e.splice(u,1);return}if(n!==1)for(o=0;o<f.length;o++){var d=f[o];s[d]=_5(n,s[d])}s[t]=1}function _5(e,r){var t="",n="",a,o;typeof e=="string"&&(t=e.match(/^[xy]*/)[0],a=t.length,e=+e.slice(a)),typeof r=="string"&&(n=r.match(/^[xy]*/)[0],o=n.length,r=+r.slice(o));var i=e*r;return!a&&!o?i:!a||!o||t.charAt(0)===n.charAt(0)?t+n+e*r:a===o?i:(a>o?t.slice(o):n.slice(a))+i}function cle(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;i<o.length;i++){var l=o[i],u=e[l];if(typeof u=="string"){var s=u.match(/^[xy]*/)[0],f=s.length;u=+u.slice(f);for(var c=s.charAt(0)==="y"?n:1/n,d=0;d<f;d++)u*=c}a[l]=u}return a}cc.enforce=function(r){var t=r._fullLayout,n=t._axisConstraintGroups||[],a,o,i,l,u,s,f,c;for(a=0;a<n.length;a++){i=cle(n[a],t);var d=Object.keys(i),x=1/0,g=0,w=1/0,T={},m={},k=!1;for(o=0;o<d.length;o++)l=d[o],m[l]=u=t[ki(l)],u._inputDomain?u.domain=u._inputDomain.slice():u._inputDomain=u.domain.slice(),u._inputRange||(u._inputRange=u.range.slice()),u.setScale(),T[l]=s=Math.abs(u._m)/i[l],x=Math.min(x,s),(u.constrain==="domain"||!u._constraintShrinkable)&&(w=Math.min(w,s)),delete u._constraintShrinkable,g=Math.max(g,s),u.constrain==="domain"&&(k=!0);if(!(x>sle*g&&!k)){for(o=0;o<d.length;o++)if(l=d[o],s=T[l],u=m[l],f=u.constrain,s!==w||f==="domain")if(c=s/w,f==="range")DL(u,c);else{var S=u._inputDomain,b=(u.domain[1]-u.domain[0])/(S[1]-S[0]),M=(u.r2l(u.range[1])-u.r2l(u.range[0]))/(u.r2l(u._inputRange[1])-u.r2l(u._inputRange[0]));if(c/=b,c*M<1){u.domain=u._input.domain=S.slice(),DL(u,c);continue}if(M<1&&(u.range=u._input.range=u._inputRange.slice(),c*=M),u.autorange){var h=u.r2l(u.range[0]),_=u.r2l(u.range[1]),y=(h+_)/2,v=y,A=y,p=Math.abs(_-y),R=y-p*c*1.0001,E=y+p*c*1.0001,D=b5.makePadFn(t,u,0),F=b5.makePadFn(t,u,1);IL(u,c);var z=Math.abs(u._m),I=b5.concatExtremes(r,u),L=I.min,P=I.max,O,U;for(U=0;U<L.length;U++)O=L[U].val-D(L[U])/z,O>R&&O<v&&(v=O);for(U=0;U<P.length;U++)O=P[U].val+F(P[U])/z,O<E&&O>A&&(A=O);var V=(A-v)/(2*p);c/=V,v=u.l2r(v),A=u.l2r(A),u.range=u._input.range=h<_?[v,A]:[A,v]}IL(u,c)}}}};cc.getAxisGroup=function(r,t){for(var n=r._axisMatchGroups,a=0;a<n.length;a++){var o=n[a];if(o[t])return"g"+a}return t};cc.clean=function(r,t){if(t._inputDomain){for(var n=!1,a=t._id,o=r._fullLayout._axisConstraintGroups,i=0;i<o.length;i++)if(o[i][a]){n=!0;break}(!n||t.constrain!=="domain")&&(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}};function IL(e,r){var t=e._inputDomain,n=ule[e.constraintoward],a=t[0]+(t[1]-t[0])*n;e.domain=e._input.domain=[a+(t[0]-a)/r,a+(t[1]-a)/r],e.setScale()}});var yd=xe(_n=>{"use strict";var gd=nt(),aa=Cr(),Fa=bn(),ei=rr(),w5=Un(),M5=W1(),hc=Xr(),df=Mt(),FL=W0(),UL=y5(),dc=Ot(),Fo=Bn(),HL=vc(),vle=HL.enforce,hle=HL.clean,NL=Ku().doAutoRange,VL="start",dle="middle",GL="end",ple=mn().zindexSeparator;_n.layoutStyles=function(e){return ei.syncOrAsync([Fa.doAutoMargin,yle],e)};function gle(e,r,t){for(var n=0;n<t.length;n++){var a=t[n][0],o=t[n][1];if(!(a[0]>=e[1]||a[1]<=e[0])&&o[0]<r[1]&&o[1]>r[0])return!0}return!1}function yle(e){var r=e._fullLayout,t=r._size,n=t.p,a=dc.list(e,"",!0),o,i,l,u,s,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(df.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),_n.drawMainTitle(e),UL.manage(e),!r._has("cartesian"))return Fa.previousPromises(e);function c(Q,re,se){var ee=Q._lw/2;if(Q._id.charAt(0)==="x"){if(re){if(se==="top")return re._offset-n-ee}else return t.t+t.h*(1-(Q.position||0))+ee%1;return re._offset+re._length+n+ee}if(re){if(se==="right")return re._offset+re._length+n+ee}else return t.l+t.w*(Q.position||0)+ee%1;return re._offset-n-ee}for(o=0;o<a.length;o++){u=a[o];var d=u._anchorAxis;u._linepositions={},u._lw=df.crispRound(e,u.linewidth,1),u._mainLinePosition=c(u,d,u.side),u._mainMirrorPosition=u.mirror&&d?c(u,d,Fo.OPPOSITE_SIDE[u.side]):null}var x=[],g=[],w=[],T=hc.opacity(r.paper_bgcolor)===1&&hc.opacity(r.plot_bgcolor)===1&&r.paper_bgcolor===r.plot_bgcolor;for(i in r._plots)if(l=r._plots[i],l.mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var m=l.xaxis.domain,k=l.yaxis.domain,S=l.plotgroup;if(gle(m,k,w)&&i.indexOf(ple)===-1){var b=S.node(),M=l.bg=ei.ensureSingle(S,"rect","bg");b.insertBefore(M.node(),b.childNodes[0]),g.push(i)}else S.select("rect.bg").remove(),w.push([m,k]),T||(x.push(i),g.push(i))}var h=r._bgLayer.selectAll(".bg").data(x);for(h.enter().append("rect").classed("bg",!0),h.exit().remove(),h.each(function(Q){r._plots[Q].bg=gd.select(this)}),o=0;o<g.length;o++)l=r._plots[g[o]],s=l.xaxis,f=l.yaxis,l.bg&&s._offset!==void 0&&f._offset!==void 0&&l.bg.call(df.setRect,s._offset-n,f._offset-n,s._length+2*n,f._length+2*n).call(hc.fill,r.plot_bgcolor).style("stroke-width",0);if(!r._hasOnlyLargeSploms)for(i in r._plots){l=r._plots[i],s=l.xaxis,f=l.yaxis;var _=l.clipId="clip"+r._uid+i+"plot",y=ei.ensureSingleById(r._clips,"clipPath",_,function(Q){Q.classed("plotclip",!0).append("rect")});l.clipRect=y.select("rect").attr({width:s._length,height:f._length}),df.setTranslate(l.plot,s._offset,f._offset);var v,A;l._hasClipOnAxisFalse?(v=null,A=_):(v=_,A=null),df.setClipUrl(l.plot,v,e),l.layerClipId=A}var p,R,E,D,F,z,I,L,P,O,U,V,K;function j(Q){return"M"+p+","+Q+"H"+R}function G(Q){return"M"+s._offset+","+Q+"h"+s._length}function q(Q){return"M"+Q+","+L+"V"+I}function J(Q){return f._shift!==void 0&&(Q+=f._shift),"M"+Q+","+f._offset+"v"+f._length}function te(Q,re,se){if(!Q.showline||i!==Q._mainSubplot)return"";if(!Q._anchorAxis)return se(Q._mainLinePosition);var ee=re(Q._mainLinePosition);return Q.mirror&&(ee+=re(Q._mainMirrorPosition)),ee}for(i in r._plots){l=r._plots[i],s=l.xaxis,f=l.yaxis;var Z="M0,0";qL(s,i)&&(F=pd(s,"left",f,a),p=s._offset-(F?n+F:0),z=pd(s,"right",f,a),R=s._offset+s._length+(z?n+z:0),E=c(s,f,"bottom"),D=c(s,f,"top"),K=!s._anchorAxis||i!==s._mainSubplot,K&&(s.mirror==="allticks"||s.mirror==="all")&&(s._linepositions[i]=[E,D]),Z=te(s,j,G),K&&s.showline&&(s.mirror==="all"||s.mirror==="allticks")&&(Z+=j(E)+j(D)),l.xlines.style("stroke-width",s._lw+"px").call(hc.stroke,s.showline?s.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",Z);var ie="M0,0";qL(f,i)&&(U=pd(f,"bottom",s,a),I=f._offset+f._length+(U?n:0),V=pd(f,"top",s,a),L=f._offset-(V?n:0),P=c(f,s,"left"),O=c(f,s,"right"),K=!f._anchorAxis||i!==f._mainSubplot,K&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[i]=[P,O]),ie=te(f,q,J),K&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(ie+=q(P)+q(O)),l.ylines.style("stroke-width",f._lw+"px").call(hc.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ie)}return dc.makeClipPaths(e),Fa.previousPromises(e)}function qL(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function OL(e,r,t){if(!t.showline||!t._lw)return!1;if(t.mirror==="all"||t.mirror==="allticks")return!0;var n=t._anchorAxis;if(!n)return!1;var a=Fo.FROM_BL[r];return t.side===r?n.domain[a]===e.domain[a]:t.mirror&&n.domain[1-a]===e.domain[1-a]}function pd(e,r,t,n){if(OL(e,r,t))return t._lw;for(var a=0;a<n.length;a++){var o=n[a];if(o._mainAxis===t._mainAxis&&OL(e,r,o))return o._lw}return 0}_n.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,n=Tle(t),a=Ale(t),o=Mle(t,a),i=wle(t,n);if(FL.draw(e,"gtitle",{propContainer:t,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:t._dfltTitle.plot,subtitlePlaceholder:t._dfltTitle.subtitle,attributes:{x:i,y:o,"text-anchor":n,dy:a}}),r.text&&r.automargin){var l=gd.select(e).selectAll(".gtitle"),u=df.bBox(gd.select(e).selectAll(".g-gtitle").node()).height,s=xle(e,r,u);if(s>0){_le(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:BL(r.yanchor)}).call(w5.positionText,i,o);var f=(r.text.match(w5.BR_TAG_ALL)||[]).length;if(f){var c=Fo.LINE_SPACING*f+Fo.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var T=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",T)})}var d=gd.select(e).selectAll(".gtitle-subtitle");if(d.node()){var x=l.node().getBBox(),g=x.y+x.height,w=g+FL.SUBTITLE_PADDING_EM*r.subtitle.font.size;d.attr({x:i,y:w,"text-anchor":n,dy:BL(r.yanchor)}).call(w5.positionText,i,w)}}}};function mle(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=ei.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return ei.isTopAnchor(r)&&t==="t"||ei.isBottomAnchor(r)&&t==="b"?!1:l<a}function ble(e,r,t,n,a){var o=0;return t==="middle"&&(o+=a/2),e==="t"?(t==="top"&&(o+=a),o+=n-r*n):(t==="bottom"&&(o+=a),o+=r*n),o}function xle(e,r,t){var n=r.y,a=r.yanchor,o=n>.5?"t":"b",i=e._fullLayout.margin[o],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=ble(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function _le(e,r,t,n){var a="title.automargin",o=e._fullLayout.title,i=o.y>.5?"t":"b",l={x:o.x,y:o.y,t:0,b:0},u={};o.yref==="paper"&&mle(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),Fa.allowAutoMargin(e,a),Fa.autoMargin(e,a,l)}function wle(e,r){var t=e.title,n=e._size,a=0;return r===VL?a=t.pad.l:r===GL&&(a=-t.pad.r),t.xref==="paper"?n.l+n.w*t.x+a:e.width*t.x+a}function Mle(e,r){var t=e.title,n=e._size,a=0;return r==="0em"||!r?a=-t.pad.b:r===Fo.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto"?n.t/2:t.yref==="paper"?n.t+n.h-n.h*t.y+a:e.height-e.height*t.y+a}function BL(e){return e==="top"?Fo.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Fo.MID_SHIFT+"em"}function Tle(e){var r=e.title,t=dle;return ei.isRightAnchor(r)?t=GL:ei.isLeftAnchor(r)&&(t=VL),t}function Ale(e){var r=e.title,t="0em";return ei.isTopAnchor(r)?t=Fo.CAP_SHIFT+"em":ei.isMiddleAnchor(r)&&(t=Fo.MID_SHIFT+"em"),t}_n.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n<r.length;n++){var a=r[n],o=a[0]||{},i=o.trace||{},l=i._module||{},u=l.arraysToCalcdata;u&&u(a,i);var s=l.editStyle;s&&t.push({fn:s,cd0:o})}if(t.length){for(n=0;n<t.length;n++){var f=t[n];f.fn(e,f.cd0)}M5(e),_n.redrawReglTraces(e)}return Fa.style(e),aa.getComponentMethod("legend","draw")(e),Fa.previousPromises(e)};_n.doColorBars=function(e){return aa.getComponentMethod("colorbar","draw")(e),Fa.previousPromises(e)};_n.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,aa.call("_doPlot",e,"",r)};_n.doLegend=function(e){return aa.getComponentMethod("legend","draw")(e),Fa.previousPromises(e)};_n.doTicksRelayout=function(e){var r=dc.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(aa.subplotsRegistry.splom.updateGrid(e),M5(e),_n.redrawReglTraces(e)),_n.drawMainTitle(e),Promise.resolve(r).then(function(){return Fa.previousPromises(e)})};_n.doModeBar=function(e){var r=e._fullLayout;UL.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var n=r._basePlotModules[t].updateFx;n&&n(e)}return Fa.previousPromises(e)};_n.doCamera=function(e){for(var r=e._fullLayout,t=r._subplots.gl3d,n=0;n<t.length;n++){var a=r[t[n]],o=a._scene;o.setViewport(a)}};_n.drawData=function(e){var r=e._fullLayout;M5(e);for(var t=r._basePlotModules,n=0;n<t.length;n++)t[n].plot(e);return _n.redrawReglTraces(e),Fa.style(e),aa.getComponentMethod("selections","draw")(e),aa.getComponentMethod("shapes","draw")(e),aa.getComponentMethod("annotations","draw")(e),aa.getComponentMethod("images","draw")(e),r._replotting=!1,Fa.previousPromises(e)};_n.redrawReglTraces=function(e){var r=e._fullLayout;if(r._has("regl")){var t=e._fullData,n=[],a=[],o,i;for(r._hasOnlyLargeSploms&&r._splomGrid.draw(),o=0;o<t.length;o++){var l=t[o];l.visible===!0&&l._length!==0&&(l.type==="splom"?r._splomScenes[l.uid].draw():l.type==="scattergl"?ei.pushUnique(n,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&ei.pushUnique(a,l.subplot))}for(o=0;o<n.length;o++)i=r._plots[n[o]],i._scene&&i._scene.draw();for(o=0;o<a.length;o++)i=r[a[o]]._subplot,i._scene&&i._scene.draw()}};_n.doAutoRangeAndConstraints=function(e){for(var r=dc.list(e,"",!0),t,n={},a=0;a<r.length;a++)if(t=r[a],!n[t._id]){n[t._id]=1,hle(e,t),NL(e,t);var o=t._matchGroup;if(o)for(var i in o){var l=dc.getFromId(e,i);NL(e,l,t.range),n[i]=1}}vle(e)};_n.finalDraw=function(e){aa.getComponentMethod("rangeslider","draw")(e),aa.getComponentMethod("rangeselector","draw")(e)};_n.drawMarginPushers=function(e){aa.getComponentMethod("legend","draw")(e),aa.getComponentMethod("rangeselector","draw")(e),aa.getComponentMethod("sliders","draw")(e),aa.getComponentMethod("updatemenus","draw")(e),aa.getComponentMethod("colorbar","draw")(e)}});var k5=xe((mbe,JL)=>{"use strict";var kle=Al().readPaths,Sle=ad(),YL=vl().clearOutlineControllers,T5=Xr(),XL=Mt(),Cle=wt().arrayEditor,WL=Cl(),Ele=WL.getPathString;JL.exports={draw:md,drawOne:ZL,activateLastSelection:Dle};function md(e){var r=e._fullLayout;YL(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a<r.selections.length;a++)ZL(e,a)}function bd(e){return e._context.editSelection}function ZL(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=WL.makeSelectionsOptionsAndPlotinfo(e,r),n=t.options,a=t.plotinfo;if(!n._input)return;o(e._fullLayout._selectionLayer);function o(i){var l=Ele(e,n),u={"data-index":r,"fill-rule":"evenodd",d:l},s=n.opacity,f="rgba(0,0,0,0)",c=n.line.color||T5.contrast(e._fullLayout.plot_bgcolor),d=n.line.width,x=n.line.dash;d||(d=5,x="solid");var g=bd(e)&&e._fullLayout._activeSelectionIndex===r;g&&(f=e._fullLayout.activeselection.fillcolor,s=e._fullLayout.activeselection.opacity);for(var w=[],T=1;T>=0;T--){var m=i.append("path").attr(u).style("opacity",T?.1:s).call(T5.stroke,c).call(T5.fill,f).call(XL.dashLine,T?"solid":x,T?4+d:d);if(Lle(m,e,n),g){var k=Cle(e.layout,"selections",n);m.style({cursor:"move"});var S={element:m.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},b=kle(l,e);Sle(b,m,S)}else m.style("pointer-events",T?"all":"none");w[T]=m}var M=w[0],h=w[1];h.node().addEventListener("click",function(){return Rle(e,M)})}}function Lle(e,r,t){var n=t.xref+t.yref;XL.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function Rle(e,r){if(bd(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){A5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=A5,md(e)}}}function Dle(e){if(bd(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=A5,md(e)}}function A5(e){if(bd(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(YL(e),delete e._fullLayout._activeSelectionIndex,md(e))}}});var KL=xe((bbe,$L)=>{function Ple(){var e,r=0,t=!1;function n(a,o){return e.list.push({type:a,data:o?JSON.parse(JSON.stringify(o)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,o){return n("check",{seg1:a,seg2:o})},segmentChop:function(a,o){return n("div_seg",{seg:a,pt:o}),n("chop",{seg:a,pt:o})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,o){return n("new_seg",{seg:a,primary:o})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,o,i){return n("temp_status",{seg:a,above:o,below:i})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,o,i){return n("status",{seg:a,above:o,below:i})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,o){return n("chain_rem_head",{index:a,pt:o})},chainRemoveTail:function(a,o){return n("chain_rem_tail",{index:a,pt:o})},chainNew:function(a,o){return n("chain_new",{pt1:a,pt2:o})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,o){return n("chain_add_head",{index:a,pt:o})},chainAddTail:function(a,o){return n("chain_add_tail",{index:a,pt:o})},chainConnect:function(a,o){return n("chain_con",{index1:a,index2:o})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,o){return n("chain_join",{index1:a,index2:o})},done:function(){return n("done")}},e}$L.exports=Ple});var jL=xe((xbe,QL)=>{function Ile(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var o=n[0],i=n[1],l=a[0],u=a[1],s=t[0],f=t[1];return(l-o)*(f-i)-(u-i)*(s-o)>=-e},pointBetween:function(t,n,a){var o=t[1]-n[1],i=a[0]-n[0],l=t[0]-n[0],u=a[1]-n[1],s=l*i+o*u;if(s<e)return!1;var f=i*i+u*u;return!(s-f>-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])<e},pointsSameY:function(t,n){return Math.abs(t[1]-n[1])<e},pointsSame:function(t,n){return r.pointsSameX(t,n)&&r.pointsSameY(t,n)},pointsCompare:function(t,n){return r.pointsSameX(t,n)?r.pointsSameY(t,n)?0:t[1]<n[1]?-1:1:t[0]<n[0]?-1:1},pointsCollinear:function(t,n,a){var o=t[0]-n[0],i=t[1]-n[1],l=n[0]-a[0],u=n[1]-a[1];return Math.abs(o*u-l*i)<e},linesIntersect:function(t,n,a,o){var i=n[0]-t[0],l=n[1]-t[1],u=o[0]-a[0],s=o[1]-a[1],f=i*s-l*u;if(Math.abs(f)<e)return!1;var c=t[0]-a[0],d=t[1]-a[1],x=(u*d-s*c)/f,g=(i*d-l*c)/f,w={alongA:0,alongB:0,pt:[t[0]+x*i,t[1]+x*l]};return x<=-e?w.alongA=-2:x<e?w.alongA=-1:x-1<=-e?w.alongA=0:x-1<e?w.alongA=1:w.alongA=2,g<=-e?w.alongB=-2:g<e?w.alongB=-1:g-1<=-e?w.alongB=0:g-1<e?w.alongB=1:w.alongB=2,w},pointInsideRegion:function(t,n){for(var a=t[0],o=t[1],i=n[n.length-1][0],l=n[n.length-1][1],u=!1,s=0;s<n.length;s++){var f=n[s][0],c=n[s][1];c-o>e!=l-o>e&&(i-f)*(o-c)/(l-c)+f-a>e&&(u=!u),i=f,l=c}return u}};return r}QL.exports=Ile});var rR=xe((_be,eR)=>{var zle={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 n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};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}};eR.exports=zle});var nR=xe((wbe,tR)=>{var pc=rR();function Fle(e,r,t){function n(g,w){return{id:t?t.segmentId():-1,start:g,end:w,myFill:{above:null,below:null},otherFill:null}}function a(g,w,T){return{id:t?t.segmentId():-1,start:g,end:w,myFill:{above:T.myFill.above,below:T.myFill.below},otherFill:null}}var o=pc.create();function i(g,w,T,m,k,S){var b=r.pointsCompare(w,k);return b!==0?b:r.pointsSame(T,S)?0:g!==m?g?1:-1:r.pointAboveOrOnLine(T,m?k:S,m?S:k)?1:-1}function l(g,w){o.insertBefore(g,function(T){var m=i(g.isStart,g.pt,w,T.isStart,T.pt,T.other.pt);return m<0})}function u(g,w){var T=pc.node({isStart:!0,pt:g.start,seg:g,primary:w,other:null,status:null});return l(T,g.end),T}function s(g,w,T){var m=pc.node({isStart:!1,pt:w.end,seg:w,primary:T,other:g,status:null});g.other=m,l(m,g.pt)}function f(g,w){var T=u(g,w);return s(T,g,w),T}function c(g,w){t&&t.segmentChop(g.seg,w),g.other.remove(),g.seg.end=w,g.other.pt=w,l(g.other,g.pt)}function d(g,w){var T=a(w,g.seg.end,g.seg);return c(g,w),f(T,g.primary)}function x(g,w){var T=pc.create();function m(F,z){var I=F.seg.start,L=F.seg.end,P=z.seg.start,O=z.seg.end;return r.pointsCollinear(I,P,O)?r.pointsCollinear(L,P,O)||r.pointAboveOrOnLine(L,P,O)?1:-1:r.pointAboveOrOnLine(I,P,O)?1:-1}function k(F){return T.findTransition(function(z){var I=m(F,z.ev);return I>0})}function S(F,z){var I=F.seg,L=z.seg,P=I.start,O=I.end,U=L.start,V=L.end;t&&t.checkIntersection(I,L);var K=r.linesIntersect(P,O,U,V);if(K===!1){if(!r.pointsCollinear(P,O,U)||r.pointsSame(P,V)||r.pointsSame(O,U))return!1;var j=r.pointsSame(P,U),G=r.pointsSame(O,V);if(j&&G)return z;var q=!j&&r.pointBetween(P,U,V),J=!G&&r.pointBetween(O,U,V);if(j)return J?d(z,O):d(F,V),z;q&&(G||(J?d(z,O):d(F,V)),d(z,P))}else K.alongA===0&&(K.alongB===-1?d(F,U):K.alongB===0?d(F,K.pt):K.alongB===1&&d(F,V)),K.alongB===0&&(K.alongA===-1?d(z,P):K.alongA===0?d(z,K.pt):K.alongA===1&&d(z,O));return!1}for(var b=[];!o.isEmpty();){var M=o.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let F=function(){if(_){var z=S(M,_);if(z)return z}return y?S(M,y):!1};var D=F;t&&t.segmentNew(M.seg,M.primary);var h=k(M),_=h.before?h.before.ev:null,y=h.after?h.after.ev:null;t&&t.tempStatus(M.seg,_?_.seg:!1,y?y.seg:!1);var v=F();if(v){if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,A&&(v.seg.myFill.above=!v.seg.myFill.above)}else v.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(v.seg),M.other.remove(),M.remove()}if(o.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,y?M.seg.myFill.below=y.seg.myFill.above:M.seg.myFill.below=g,A?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var p;y?M.primary===y.primary?p=y.seg.otherFill.above:p=y.seg.myFill.above:p=M.primary?w:g,M.seg.otherFill={above:p,below:p}}t&&t.status(M.seg,_?_.seg:!1,y?y.seg:!1),M.other.status=h.insert(pc.node({ev:M}))}else{var R=M.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(T.exists(R.prev)&&T.exists(R.next)&&S(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!M.primary){var E=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=E}b.push(M.seg)}o.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(g){for(var w,T=g[g.length-1],m=0;m<g.length;m++){w=T,T=g[m];var k=r.pointsCompare(w,T);k!==0&&f(n(k<0?w:T,k<0?T:w),!0)}},calculate:function(g){return x(g,!1)}}:{calculate:function(g,w,T,m){return g.forEach(function(k){f(a(k.start,k.end,k),!0)}),T.forEach(function(k){f(a(k.start,k.end,k),!1)}),x(w,m)}}}tR.exports=Fle});var iR=xe((Mbe,aR)=>{function Nle(e,r,t){var n=[],a=[];return e.forEach(function(o){var i=o.start,l=o.end;if(r.pointsSame(i,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(o);var u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(D,F,z){return f.index=D,f.matches_head=F,f.matches_pt1=z,f===u?(f=s,!1):(f=null,!0)}for(var d=0;d<n.length;d++){var x=n[d],g=x[0],w=x[1],T=x[x.length-1],m=x[x.length-2];if(r.pointsSame(g,i)){if(c(d,!0,!0))break}else if(r.pointsSame(g,l)){if(c(d,!0,!1))break}else if(r.pointsSame(T,i)){if(c(d,!1,!0))break}else if(r.pointsSame(T,l)&&c(d,!1,!1))break}if(f===u){n.push([i,l]),t&&t.chainNew(i,l);return}if(f===s){t&&t.chainMatch(u.index);var k=u.index,S=u.matches_pt1?l:i,b=u.matches_head,x=n[k],M=b?x[0]:x[x.length-1],h=b?x[1]:x[x.length-2],_=b?x[x.length-1]:x[0],y=b?x[x.length-2]:x[1];if(r.pointsCollinear(h,M,S)&&(b?(t&&t.chainRemoveHead(u.index,S),x.shift()):(t&&t.chainRemoveTail(u.index,S),x.pop()),M=h),r.pointsSame(_,S)){n.splice(k,1),r.pointsCollinear(y,_,M)&&(b?(t&&t.chainRemoveTail(u.index,M),x.pop()):(t&&t.chainRemoveHead(u.index,M),x.shift())),t&&t.chainClose(u.index),a.push(x);return}b?(t&&t.chainAddHead(u.index,S),x.unshift(S)):(t&&t.chainAddTail(u.index,S),x.push(S));return}function v(D){t&&t.chainReverse(D),n[D].reverse()}function A(D,F){var z=n[D],I=n[F],L=z[z.length-1],P=z[z.length-2],O=I[0],U=I[1];r.pointsCollinear(P,L,O)&&(t&&t.chainRemoveTail(D,L),z.pop(),L=P),r.pointsCollinear(L,O,U)&&(t&&t.chainRemoveHead(F,O),I.shift()),t&&t.chainJoin(D,F),n[D]=z.concat(I),n.splice(F,1)}var p=u.index,R=s.index;t&&t.chainConnect(p,R);var E=n[p].length<n[R].length;u.matches_head?s.matches_head?E?(v(p),A(p,R)):(v(R),A(R,p)):A(R,p):s.matches_head?A(p,R):E?(v(p),A(R,p)):(v(R),A(p,R))}),a}aR.exports=Nle});var lR=xe((Tbe,oR)=>{function gc(e,r,t){var n=[];return e.forEach(function(a){var o=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[o]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[o]===1,below:r[o]===2},otherFill:null})}),t&&t.selected(n),n}var qle={union:function(e,r){return gc(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return gc(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return gc(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return gc(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return gc(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};oR.exports=qle});var uR=xe((Abe,sR)=>{var Ole={toPolygon:function(e,r){function t(o){if(o.length<=0)return e.segments({inverted:!1,regions:[]});function i(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=i(o[0]),u=1;u<o.length;u++)l=e.selectDifference(e.combine(l,i(o[u])));return l}if(r.type==="Polygon")return e.polygon(t(r.coordinates));if(r.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),a=0;a<r.coordinates.length;a++)n=e.selectUnion(e.combine(n,t(r.coordinates[a])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,r,t){t=e.polygon(e.segments(t));function n(x,g){return r.pointInsideRegion([(x[0][0]+x[1][0])*.5,(x[0][1]+x[1][1])*.5],g)}function a(x){return{region:x,children:[]}}var o=a(null);function i(x,g){for(var w=0;w<x.children.length;w++){var T=x.children[w];if(n(g,T.region)){i(T,g);return}}for(var m=a(g),w=0;w<x.children.length;w++){var T=x.children[w];n(T.region,g)&&(m.children.push(T),x.children.splice(w,1),w--)}x.children.push(m)}for(var l=0;l<t.regions.length;l++){var u=t.regions[l];u.length<3||i(o,u)}function s(x,g){for(var w=0,T=x[x.length-1][0],m=x[x.length-1][1],k=[],S=0;S<x.length;S++){var b=x[S][0],M=x[S][1];k.push([b,M]),w+=M*T-b*m,T=b,m=M}var h=w<0;return h!==g&&k.reverse(),k.push([k[0][0],k[0][1]]),k}var f=[];function c(x){var g=[s(x.region,!1)];f.push(g);for(var w=0;w<x.children.length;w++)g.push(d(x.children[w]))}function d(x){for(var g=0;g<x.children.length;g++)c(x.children[g]);return s(x.region,!0)}for(var l=0;l<o.children.length;l++)c(o.children[l]);return f.length<=0?{type:"Polygon",coordinates:[]}:f.length==1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}};sR.exports=Ole});var hR=xe((kbe,vR)=>{var Ble=KL(),Ule=jL(),fR=nR(),Hle=iR(),yc=lR(),cR=uR(),ri=!1,mc=Ule(),Ta;Ta={buildLog:function(e){return e===!0?ri=Ble():e===!1&&(ri=!1),ri===!1?!1:ri.list},epsilon:function(e){return mc.epsilon(e)},segments:function(e){var r=fR(!0,mc,ri);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=fR(!1,mc,ri);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:yc.union(e.combined,ri),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:yc.intersect(e.combined,ri),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:yc.difference(e.combined,ri),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:yc.differenceRev(e.combined,ri),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:yc.xor(e.combined,ri),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Hle(e.segments,mc,ri),inverted:e.inverted}},polygonFromGeoJSON:function(e){return cR.toPolygon(Ta,e)},polygonToGeoJSON:function(e){return cR.fromPolygon(Ta,mc,e)},union:function(e,r){return bc(e,r,Ta.selectUnion)},intersect:function(e,r){return bc(e,r,Ta.selectIntersect)},difference:function(e,r){return bc(e,r,Ta.selectDifference)},differenceRev:function(e,r){return bc(e,r,Ta.selectDifferenceRev)},xor:function(e,r){return bc(e,r,Ta.selectXor)}};function bc(e,r,t){var n=Ta.segments(e),a=Ta.segments(r),o=Ta.combine(n,a),i=t(o);return Ta.polygon(i)}typeof window=="object"&&(window.PolyBool=Ta);vR.exports=Ta});var pR=xe((Sbe,dR)=>{dR.exports=function(r,t,n,a){var o=r[0],i=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var u=a-n,s=0,f=u-1;s<u;f=s++){var c=t[s+n][0],d=t[s+n][1],x=t[f+n][0],g=t[f+n][1],w=d>i!=g>i&&o<(x-c)*(i-d)/(g-d)+c;w&&(l=!l)}return l}});var C5=xe((Cbe,gR)=>{"use strict";var S5=Mh().dot,xd=pn().BADNUM,_d=gR.exports={};_d.tester=function(r){var t=r.slice(),n=t[0][0],a=n,o=t[0][1],i=o,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;l<t.length;l++)n=Math.min(n,t[l][0]),a=Math.max(a,t[l][0]),o=Math.min(o,t[l][1]),i=Math.max(i,t[l][1]);var u=!1,s;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]&&(u=!0,s=function(g){return g[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]&&(u=!0,s=function(g){return g[1]===t[0][1]}));function f(g,w){var T=g[0],m=g[1];return!(T===xd||T<n||T>a||m===xd||m<o||m>i||w&&s(g))}function c(g,w){var T=g[0],m=g[1];if(T===xd||T<n||T>a||m===xd||m<o||m>i)return!1;var k=t.length,S=t[0][0],b=t[0][1],M=0,h,_,y,v,A;for(h=1;h<k;h++)if(_=S,y=b,S=t[h][0],b=t[h][1],v=Math.min(_,S),!(T<v||T>Math.max(_,S)||m>Math.max(y,b)))if(m<Math.min(y,b))T!==v&&M++;else{if(S===_?A=m:A=y+(T-_)*(b-y)/(S-_),m===A)return!(h===1&&w);m<=A&&T!==v&&M++}return M%2===1}var d=!0,x=t[0];for(l=1;l<t.length;l++)if(x[0]!==t[l][0]||x[1]!==t[l][1]){d=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:i,pts:t,contains:u?f:c,isRect:u,degenerate:d}};_d.isSegmentBent=function(r,t,n,a){var o=r[t],i=[r[n][0]-o[0],r[n][1]-o[1]],l=S5(i,i),u=Math.sqrt(l),s=[-i[1]/u,i[0]/u],f,c,d;for(f=t+1;f<n;f++)if(c=[r[f][0]-o[0],r[f][1]-o[1]],d=S5(c,i),d<0||d>l||Math.abs(S5(c,s))>a)return!0;return!1};_d.filter=function(r,t){var n=[r[0]],a=0,o=0;function i(u){r.push(u);var s=n.length,f=a;n.splice(o+1);for(var c=f+1;c<r.length;c++)(c===r.length-1||_d.isSegmentBent(r,f,c+1,t))&&(n.push(r[c]),n.length<s-2&&(a=c,o=n.length-1),f=c)}if(r.length>1){var l=r.pop();i(l)}return{addPt:i,raw:r,filtered:n}}});var mR=xe((Ebe,yR)=>{"use strict";yR.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var BR=xe((Lbe,OR)=>{"use strict";var bR=hR(),Vle=pR(),wc=Cr(),Gle=Mt().dashStyle,xc=Xr(),Yle=so(),Xle=eo().makeEventData,Sc=uf(),Wle=Sc.freeMode,Zle=Sc.rectMode,Mc=Sc.drawMode,D5=Sc.openMode,P5=Sc.selectMode,xR=Cl(),_R=sc(),kR=ad(),SR=vl().clearOutline,CR=Al(),E5=CR.handleEllipse,Jle=CR.readPaths,$le=rd().newShapes,Kle=e5(),Qle=k5().activateLastSelection,Md=rr(),jle=Md.sorterAsc,ER=C5(),_c=Nh(),ti=fn().getFromId,ese=W1(),rse=yd().redrawReglTraces,Td=mR(),ho=Td.MINSELECT,tse=ER.filter,I5=ER.tester,z5=K1(),wR=z5.p2r,nse=z5.axValue,ase=z5.getTransform;function F5(e){return e.subplot!==void 0}function ise(e,r,t,n,a){var o=!F5(n),i=Wle(a),l=Zle(a),u=D5(a),s=Mc(a),f=P5(a),c=a==="drawline",d=a==="drawcircle",x=c||d,g=n.gd,w=g._fullLayout,T=f&&w.newselection.mode==="immediate"&&o,m=w._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,b=ase(S),M=r-k.left,h=t-k.top;w._calcInverseTransform(g);var _=Md.apply3DTransform(w._invTransform)(M,h);M=_[0],h=_[1];var y=w._invScaleX,v=w._invScaleY,A=M,p=h,R="M"+M+","+h,E=n.xaxes[0],D=n.yaxes[0],F=E._length,z=D._length,I=e.altKey&&!(Mc(a)&&u),L,P,O,U,V,K,j;RR(e,g,n),i&&(L=tse([[M,h]],Td.BENDPX));var G=m.selectAll("path.select-outline-"+S.id).data([1]),q=s?w.newshape:w.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var J=s&&!u?q.fillcolor:"rgba(0,0,0,0)",te=q.line.color||(o?xc.contrast(g._fullLayout.plot_bgcolor):"#7f7f7f");G.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":Gle(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(xc.stroke,te).call(xc.fill,J).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",b).attr("d",R+"Z");var Z=m.append("path").attr("class","zoombox-corners").style({fill:xc.background,stroke:xc.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(s&&n.hasText){var ie=m.select(".label-temp");ie.empty()&&(ie=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Q=w._uid+Td.SELECTID,re=[],se=Ad(g,n.xaxes,n.yaxes,n.subplot);T&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var ae=E._id,ce=D._id;FR(g,ae,ce,se);for(var Me=(g.layout||{}).selections||[],ke=[],Se=!1,ge=0;ge<Me.length;ge++){var Le=w.selections[ge];!Le||Le.xref!==ae||Le.yref!==ce?ke.push(Me[ge]):Se=!0}Se&&(g._fullLayout._noEmitSelectedAtStart=!0,wc.call("_guiRelayout",g,{selections:ke}))}});var ee=bse(n);n.moveFn=function(ae,ce){n._clearSubplotSelections&&(n._clearSubplotSelections(),n._clearSubplotSelections=void 0),A=Math.max(0,Math.min(F,y*ae+M)),p=Math.max(0,Math.min(z,v*ce+h));var Me=Math.abs(A-M),ke=Math.abs(p-h);if(l){var Se,ge,Le;if(f){var Ee=w.selectdirection;switch(Ee==="any"?ke<Math.min(Me*.6,ho)?Se="h":Me<Math.min(ke*.6,ho)?Se="v":Se="d":Se=Ee,Se){case"h":ge=d?z/2:0,Le=z;break;case"v":ge=d?F/2:0,Le=F;break}}if(s)switch(w.newshape.drawdirection){case"vertical":Se="h",ge=d?z/2:0,Le=z;break;case"horizontal":Se="v",ge=d?F/2:0,Le=F;break;case"ortho":Me<ke?(Se="h",ge=h,Le=p):(Se="v",ge=M,Le=A);break;default:Se="d"}Se==="h"?(U=x?E5(d,[A,ge],[A,Le]):[[M,ge],[M,Le],[A,Le],[A,ge]],U.xmin=x?A:Math.min(M,A),U.xmax=x?A:Math.max(M,A),U.ymin=Math.min(ge,Le),U.ymax=Math.max(ge,Le),Z.attr("d","M"+U.xmin+","+(h-ho)+"h-4v"+2*ho+"h4ZM"+(U.xmax-1)+","+(h-ho)+"h4v"+2*ho+"h-4Z")):Se==="v"?(U=x?E5(d,[ge,p],[Le,p]):[[ge,h],[ge,p],[Le,p],[Le,h]],U.xmin=Math.min(ge,Le),U.xmax=Math.max(ge,Le),U.ymin=x?p:Math.min(h,p),U.ymax=x?p:Math.max(h,p),Z.attr("d","M"+(M-ho)+","+U.ymin+"v-4h"+2*ho+"v4ZM"+(M-ho)+","+(U.ymax-1)+"v4h"+2*ho+"v-4Z")):Se==="d"&&(U=x?E5(d,[M,h],[A,p]):[[M,h],[M,p],[A,p],[A,h]],U.xmin=Math.min(M,A),U.xmax=Math.max(M,A),U.ymin=Math.min(h,p),U.ymax=Math.max(h,p),Z.attr("d","M0,0Z"))}else i&&(L.addPt([A,p]),U=L.filtered);if(n.selectionDefs&&n.selectionDefs.length?(O=DR(n.mergedPolygons,U,I),U.subtract=I,P=N5(n.selectionDefs.concat([U]))):(O=[U],P=I5(U)),kR(IR(O,u),G,n),f){var le=R5(g,!1),Y=le.eventData?le.eventData.points.slice():[];le=R5(g,!1,P,se,n),P=le.selectionTesters,j=le.eventData;var $;L?$=L.filtered:$=NR(O),_c.throttle(Q,Td.SELECTDELAY,function(){re=zR(P,se);for(var pe=re.slice(),oe=0;oe<Y.length;oe++){for(var ve=Y[oe],he=!1,me=0;me<pe.length;me++)if(pe[me].curveNumber===ve.curveNumber&&pe[me].pointNumber===ve.pointNumber){he=!0;break}he||pe.push(ve)}pe.length&&(j||(j={}),j.points=pe),ee(j,$),xse(g,j)})}},n.clickFn=function(ae,ce){if(Z.remove(),g._fullLayout._activeShapeIndex>=0){g._fullLayout._deactivateShape(g);return}if(!s){var Me=w.clickmode;_c.done(Q).then(function(){if(_c.clear(Q),ae===2){for(G.remove(),V=0;V<se.length;V++)K=se[V],K._module.selectPoints(K,!1);if(Ac(g,se),Tc(n),O5(g),se.length){var ke=se[0].xaxis,Se=se[0].yaxis;if(ke&&Se){for(var ge=[],Le=g._fullLayout.selections,Ee=0;Ee<Le.length;Ee++){var le=Le[Ee];le&&(le.xref!==ke._id||le.yref!==Se._id)&&ge.push(le)}ge.length<Le.length&&(g._fullLayout._noEmitSelectedAtStart=!0,wc.call("_guiRelayout",g,{selections:ge}))}}}else Me.indexOf("select")>-1&&LR(ce,g,n.xaxes,n.yaxes,n.subplot,n,G),Me==="event"&&kc(g,void 0);Yle.click(g,ce,S.id)}).catch(Md.error)}},n.doneFn=function(){Z.remove(),_c.done(Q).then(function(){_c.clear(Q),!T&&U&&n.selectionDefs&&(U.subtract=I,n.selectionDefs.push(U),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,O)),(T||s)&&Tc(n,T),n.doneFnCompleted&&n.doneFnCompleted(re),f&&kc(g,j)}).catch(Md.error)}}function LR(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,c=[],d,x,g,w,T,m,k,S,b,M;if(fse(l)){RR(e,r,o),d=Ad(r,t,n,a);var h=cse(l,d),_=h.pointNumbers.length>0;if(_?vse(d,h):hse(d)&&(k=TR(h))){for(i&&i.remove(),M=0;M<d.length;M++)x=d[M],x._module.selectPoints(x,!1);Ac(r,d),Tc(o),f&&O5(r)}else{S=e.shiftKey&&(k!==void 0?k:TR(h)),g=ose(h.pointNumber,h.searchInfo,S);var y=o.selectionDefs.concat([g]);for(w=N5(y,w),M=0;M<d.length;M++)if(T=d[M]._module.selectPoints(d[M],w),m=PR(T,d[M]),c.length)for(var v=0;v<m.length;v++)c.push(m[v]);else c=m;if(b={points:c},Ac(r,d,b),g&&o&&o.selectionDefs.push(g),i){var A=o.mergedPolygons,p=D5(o.dragmode);kR(IR(A,p),i,o)}f&&kc(r,b)}}}function ose(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function L5(e){return"pointNumber"in e&&"searchInfo"in e}function lse(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(r,t,n,a){var o=e.searchInfo.cd[0].trace.index,i=a.cd[0].trace.index;return i===o&&n===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function N5(e){if(!e.length)return;for(var r=[],t=L5(e[0])?0:e[0][0][0],n=t,a=L5(e[0])?0:e[0][0][1],o=a,i=0;i<e.length;i++)if(L5(e[i]))r.push(lse(e[i]));else{var l=I5(e[i]);l.subtract=!!e[i].subtract,r.push(l),t=Math.min(t,l.xmin),n=Math.max(n,l.xmax),a=Math.min(a,l.ymin),o=Math.max(o,l.ymax)}function u(s,f,c,d){for(var x=!1,g=0;g<r.length;g++)r[g].contains(s,f,c,d)&&(x=!r[g].subtract);return x}return{xmin:t,xmax:n,ymin:a,ymax:o,pts:[],contains:u,isRect:!1,degenerate:!1}}function RR(e,r,t){var n=r._fullLayout,a=t.plotinfo,o=t.dragmode,i=n._lastSelectedSubplot&&n._lastSelectedSubplot===a.id,l=(e.shiftKey||e.altKey)&&!(Mc(o)&&D5(o));i&&l&&a.selection&&a.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=a.selection.selectionDefs,t.mergedPolygons=a.selection.mergedPolygons):(!l||!a.selection)&&Tc(t),i||(SR(r),n._lastSelectedSubplot=a.id)}function sse(e){return e._fullLayout._activeShapeIndex>=0}function use(e){return e._fullLayout._activeSelectionIndex>=0}function Tc(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;sse(a)&&a._fullLayout._deactivateShape(a),use(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=Mc(t),u=P5(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=$le(s,e)),f&&wc.call("_guiRelayout",a,{shapes:f});var c;u&&!F5(e)&&(c=Kle(s,e)),c&&(a._fullLayout._noEmitSelectedAtStart=!0,wc.call("_guiRelayout",a,{selections:c}).then(function(){r&&Qle(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function MR(e){return e._id}function Ad(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(MR),i=t.map(MR),l,u,s;for(s=0;s<e.calcdata.length;s++)if(l=e.calcdata[s],u=l[0].trace,!(u.visible!==!0||!u._module||!u._module.selectPoints))if(F5({subplot:n})&&(u.subplot===n||u.geo===n))a.push(wd(u._module,l,r[0],t[0]));else if(u.type==="splom"){if(u._xaxes[o[0]]&&u._yaxes[i[0]]){var f=wd(u._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[u.uid],a.push(f)}}else if(u.type==="sankey"){var c=wd(u._module,l,r[0],t[0]);a.push(c)}else{if(o.indexOf(u.xaxis)===-1&&(!u._xA||!u._xA.overlaying)||i.indexOf(u.yaxis)===-1&&(!u._yA||!u._yA.overlaying))continue;a.push(wd(u._module,l,ti(e,u.xaxis),ti(e,u.yaxis)))}return a}function wd(e,r,t,n){return{_module:e,cd:r,xaxis:t,yaxis:n}}function fse(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function cse(e,r){var t=e[0],n=-1,a=[],o,i;for(i=0;i<r.length;i++)if(o=r[i],t.fullData.index===o.cd[0].trace.index){if(t.hoverOnBox===!0)break;t.pointNumber!==void 0?n=t.pointNumber:t.binNumber!==void 0&&(n=t.binNumber,a=t.pointNumbers);break}return{pointNumber:n,pointNumbers:a,searchInfo:o}}function TR(e){var r=e.searchInfo.cd[0].trace,t=e.pointNumber,n=e.pointNumbers,a=n.length>0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function vse(e,r){var t=[],n,a,o,i;for(i=0;i<e.length;i++)n=e[i],n.cd[0].trace.selectedpoints&&n.cd[0].trace.selectedpoints.length>0&&t.push(n);if(t.length===1&&(o=t[0]===r.searchInfo,o&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(i=0;i<r.pointNumbers.length;i++)if(a.selectedpoints.indexOf(r.pointNumbers[i])<0)return!1;return!0}return!1}function hse(e){var r=0,t,n,a;for(a=0;a<e.length;a++)if(t=e[a],n=t.cd[0].trace,n.selectedpoints&&(n.selectedpoints.length>1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function Ac(e,r,t){var n,a;for(n=0;n<r.length;n++){a=r[n].cd[0].trace;var o=e._fullLayout._tracePreGUI[a.uid]||{};o.selectedpoints===void 0&&(o.selectedpoints=a._input.selectedpoints||null)}if(t){var i=t.points||[];for(n=0;n<r.length;n++)a=r[n].cd[0].trace,a._input.selectedpoints=a.selectedpoints=[];for(var l=0;l<i.length;l++){var u=i[l],s=u.data,f=u.pointIndex,c=u.pointIndices;c?[].push.apply(s.selectedpoints,c):s.selectedpoints.push(f)}}else for(n=0;n<r.length;n++)a=r[n].cd[0].trace,delete a.selectedpoints,delete a._input.selectedpoints;dse(e,r)}function dse(e,r){for(var t=!1,n=0;n<r.length;n++){var a=r[n],o=a.cd;wc.traceIs(o[0].trace,"regl")&&(t=!0);var i=a._module,l=i.styleOnSelect||i.style;l&&(l(e,o,o[0].node3),o[0].nodeRangePlot3&&l(e,o,o[0].nodeRangePlot3))}t&&(ese(e),rse(e))}function DR(e,r,t){for(var n=t?bR.difference:bR.union,a=n({regions:e},{regions:[r]}),o=a.regions.reverse(),i=0;i<o.length;i++){var l=o[i];l.subtract=q5(l,o.slice(0,i))}return o}function PR(e,r){if(Array.isArray(e))for(var t=r.cd,n=r.cd[0].trace,a=0;a<e.length;a++)e[a]=Xle(e[a],n,t);return e}function IR(e,r){for(var t=[],n=0;n<e.length;n++){t[n]=[];for(var a=0;a<e[n].length;a++){t[n][a]=[],t[n][a][0]=a?"L":"M";for(var o=0;o<e[n][a].length;o++)t[n][a].push(e[n][a][o])}r||t[n].push(["Z",t[n][0][1],t[n][0][2]])}return t}function zR(e,r){for(var t=[],n,a=[],o,i=0;i<r.length;i++){var l=r[i];o=l._module.selectPoints(l,e),a.push(o),n=PR(o,l),t=t.concat(n)}return t}function R5(e,r,t,n,a){var o=!!n,i,l,u;a&&(i=a.plotinfo,l=a.xaxes[0]._id,u=a.yaxes[0]._id);var s=[],f=[],c=AR(e),d=e._fullLayout;if(i){var x=d._zoomlayer,g=d.dragmode,w=Mc(g),T=P5(g);if(w||T){var m=ti(e,l,"x"),k=ti(e,u,"y");if(m&&k){var S=x.selectAll(".select-outline-"+i.id);if(S&&e._fullLayout._outlining&&S.length){for(var b=S[0][0],M=b.getAttribute("d"),h=Jle(M,e,i),_=[],y=0;y<h.length;y++){for(var v=h[y],A=[],p=0;p<v.length;p++)A.push([El(m,v[p][1]),El(k,v[p][2])]);A.xref=l,A.yref=u,A.subtract=q5(A,_),_.push(A)}c=c.concat(_)}}}}var R=l&&u?[l+u]:d._subplots.cartesian;pse(e);for(var E={},D=0;D<R.length;D++){var F=R[D],z=F.indexOf("y"),I=F.slice(0,z),L=F.slice(z),P=l&&u?t:void 0;if(P=yse(c,I,L,P),P){var O=n;if(!o){var U=ti(e,I,"x"),V=ti(e,L,"y");O=Ad(e,[U],[V],F);for(var K=0;K<O.length;K++){var j=O[K],G=j.cd[0],q=G.trace;if(j._module.name==="scattergl"&&!G.t.xpx){var J=q.x,te=q.y,Z=q._length;G.t.xpx=[],G.t.ypx=[];for(var ie=0;ie<Z;ie++)G.t.xpx[ie]=U.c2p(J[ie]),G.t.ypx[ie]=V.c2p(te[ie])}j._module.name==="splom"&&(E[q.uid]||(E[q.uid]=!0))}}var Q=zR(P,O);s=s.concat(Q),f=f.concat(O)}}var re={points:s};Ac(e,f,re);var se=d.clickmode,ee=se.indexOf("event")>-1&&r;if(!i&&r){var ae=AR(e,!0);if(ae.length){var ce=ae[0].xref,Me=ae[0].yref;if(ce&&Me){var ke=NR(ae),Se=qR([ti(e,ce,"x"),ti(e,Me,"y")]);Se(re,ke)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ee&&kc(e,re),d._reselect=!1}if(!i&&d._deselect){var ge=d._deselect;l=ge.xref,u=ge.yref,gse(l,u,f)||FR(e,l,u,n),ee&&(re.points.length?kc(e,re):O5(e)),d._deselect=!1}return{eventData:re,selectionTesters:t}}function pse(e){var r=e.calcdata;if(r)for(var t=0;t<r.length;t++){var n=r[t][0],a=n.trace,o=e._fullLayout._splomScenes;if(o){var i=o[a.uid];i&&(i.selectBatch=[])}}}function gse(e,r,t){for(var n=0;n<t.length;n++){var a=t[n];if(a.xaxis&&a.xaxis._id===e&&a.yaxis&&a.yaxis._id===r)return!0}return!1}function FR(e,r,t,n){n=Ad(e,[ti(e,r,"x")],[ti(e,t,"y")],r+t);for(var a=0;a<n.length;a++){var o=n[a];o._module.selectPoints(o,!1)}Ac(e,n)}function yse(e,r,t,n){for(var a,o=0;o<e.length;o++){var i=e[o];if(!(r!==i.xref||t!==i.yref))if(a){var l=!!i.subtract;a=DR(a,i,l),n=N5(a)}else a=[i],n=I5(i)}return n}function AR(e,r){for(var t=[],n=e._fullLayout,a=n.selections,o=a.length,i=0;i<o;i++)if(!(r&&i!==n._activeSelectionIndex)){var l=a[i];if(l){var u=l.xref,s=l.yref,f=ti(e,u,"x"),c=ti(e,s,"y"),d,x,g,w,T;if(l.type==="rect"){T=[];var m=El(f,l.x0),k=El(f,l.x1),S=El(c,l.y0),b=El(c,l.y1);T=[[m,S],[m,b],[k,b],[k,S]],d=Math.min(m,k),x=Math.max(m,k),g=Math.min(S,b),w=Math.max(S,b),T.xmin=d,T.xmax=x,T.ymin=g,T.ymax=w,T.xref=u,T.yref=s,T.subtract=!1,T.isRect=!0,t.push(T)}else if(l.type==="path")for(var M=l.path.split("Z"),h=[],_=0;_<M.length;_++){var y=M[_];if(y){y+="Z";var v=xR.extractPathCoords(y,_R.paramIsX,"raw"),A=xR.extractPathCoords(y,_R.paramIsY,"raw");d=1/0,x=-1/0,g=1/0,w=-1/0,T=[];for(var p=0;p<v.length;p++){var R=El(f,v[p]),E=El(c,A[p]);T.push([R,E]),d=Math.min(R,d),x=Math.max(R,x),g=Math.min(E,g),w=Math.max(E,w)}T.xmin=d,T.xmax=x,T.ymin=g,T.ymax=w,T.xref=u,T.yref=s,T.subtract=q5(T,h),h.push(T),t.push(T)}}}}return t}function q5(e,r){for(var t=!1,n=0;n<r.length;n++)for(var a=r[n],o=0;o<e.length;o++)if(Vle(e[o],a)){t=!t;break}return t}function El(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function NR(e){for(var r=e.length,t=[],n=0;n<r;n++){var a=e[n];t=t.concat(a),t=t.concat([a[0]])}return mse(t)}function mse(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 qR(e){return function(r,t){for(var n,a,o=0;o<e.length;o++){var i=e[o],l=i._id,u=l.charAt(0);if(t.isRect){n||(n={});var s=t[u+"min"],f=t[u+"max"];s!==void 0&&f!==void 0&&(n[l]=[wR(i,s),wR(i,f)].sort(jle))}else a||(a={}),a[l]=t.map(nse(i))}n&&(r.range=n),a&&(r.lassoPoints=a)}}function bse(e){var r=e.plotinfo;return r.fillRangeItems||qR(e.xaxes.concat(e.yaxes))}function xse(e,r){e.emit("plotly_selecting",r)}function kc(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function O5(e){e.emit("plotly_deselect",null)}OR.exports={reselect:R5,prepSelect:ise,clearOutline:SR,clearSelectionsCache:Tc,selectOnClick:LR}});var B5=xe((Rbe,UR)=>{"use strict";UR.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 Cc=xe((Dbe,HR)=>{"use strict";HR.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 pf=xe((Ibe,YR)=>{"use strict";var VR=B5(),GR=Nn(),kd=mn(),_se=wt().templatedArray,Pbe=Cc();YR.exports=_se("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:GR({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:VR.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:VR.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",kd.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",kd.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",kd.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",kd.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:GR({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Sd=xe((zbe,XR)=>{"use strict";XR.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var ZR=xe((Fbe,WR)=>{"use strict";WR.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Bs=xe((Nbe,tD)=>{"use strict";var JR=Do().axisHoverFormat,{hovertemplateAttrs:wse,texttemplateAttrs:Mse,templatefallbackAttrs:$R}=mi(),KR=wi(),Tse=Nn(),QR=nl().dash,Ase=nl().pattern,kse=Mt(),Sse=Sd(),Ec=Dt().extendFlat,Cse=ZR();function jR(e){return{valType:"any",dflt:0,editType:"calc"}}function eD(e){return{valType:"any",editType:"calc"}}function rD(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}tD.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:jR("x"),yperiod:jR("y"),xperiod0:eD("x0"),yperiod0:eD("y0"),xperiodalignment:rD("x"),yperiodalignment:rD("y"),xhoverformat:JR("x"),yhoverformat:JR("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:Mse(),texttemplatefallback:$R({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:wse({},{keys:Sse.eventDataKeys}),hovertemplatefallback:$R(),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:Ec({},QR,{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:Cse(!0),fillgradient:Ec({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:Ase,marker:Ec({symbol:{valType:"enumerated",values:kse.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:Ec({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Ec({},QR,{arrayOk:!0}),editType:"calc"},KR("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"},KR("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:Tse({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var U5=xe((Obe,iD)=>{"use strict";var nD=pf(),aD=Bs().line,Ese=nl().dash,Cd=Dt().extendFlat,Lse=ea().overrideAll,Rse=wt().templatedArray,qbe=Cc();iD.exports=Lse(Rse("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Cd({},nD.xref,{}),yref:Cd({},nD.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:aD.color,width:Cd({},aD.width,{min:1,dflt:1}),dash:Cd({},Ese,{dflt:"dot"})}}),"arraydraw","from-root")});var uD=xe((Bbe,sD)=>{"use strict";var oD=rr(),Ed=Ot(),Dse=Mi(),Pse=U5(),lD=Cl();sD.exports=function(r,t){Dse(r,t,{name:"selections",handleItemDefaults:Ise});for(var n=t.selections,a=0;a<n.length;a++){var o=n[a];o&&o.path===void 0&&(o.x0===void 0||o.x1===void 0||o.y0===void 0||o.y1===void 0)&&(t.selections[a]=null)}};function Ise(e,r,t){function n(h,_){return oD.coerce(e,r,Pse,h,_)}var a=n("path"),o=a?"path":"rect",i=n("type",o),l=i!=="path";l&&delete r.path,n("opacity"),n("line.color"),n("line.width"),n("line.dash");for(var u=["x","y"],s=0;s<2;s++){var f=u[s],c={_fullLayout:t},d,x,g,w=Ed.coerceRef(e,r,c,f);if(d=Ed.getFromId(c,w),d._selectionIndices.push(r._index),g=lD.rangeToShapePosition(d),x=lD.shapePositionToRange(d),l){var T=f+"0",m=f+"1",k=e[T],S=e[m];e[T]=x(e[T],!0),e[m]=x(e[m],!0),Ed.coercePosition(r,c,n,w,T),Ed.coercePosition(r,c,n,w,m);var b=r[T],M=r[m];b!==void 0&&M!==void 0&&(r[T]=g(b),r[m]=g(M),e[T]=k,e[m]=S)}}l&&oD.noneOrAll(e,r,["x0","x1","y0","y1"])}});var cD=xe((Ube,fD)=>{"use strict";fD.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var Lc=xe((Hbe,dD)=>{"use strict";var zse=Cr(),vD=rr(),hD=fn();dD.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=zse.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,c=u.cartesian,d=a._has("cartesian"),x=0;x<o.length;x++){var g=o[x];if(vD.isPlainObject(g)){var w=hD.cleanId(g.xref,"x",!1),T=hD.cleanId(g.yref,"y",!1),m=l.x.test(w),k=l.y.test(T);if(m||k){d||vD.pushUnique(a._basePlotModules,i);var S=!1;m&&s.indexOf(w)===-1&&(s.push(w),S=!0),k&&f.indexOf(T)===-1&&(f.push(T),S=!0),S&&m&&k&&c.push(w+T)}}}}}});var gf=xe((Vbe,gD)=>{"use strict";var pD=k5(),Rc=BR();gD.exports={moduleType:"component",name:"selections",layoutAttributes:U5(),supplyLayoutDefaults:uD(),supplyDrawNewSelectionDefaults:cD(),includeBasePlot:Lc()("selections"),draw:pD.draw,drawOne:pD.drawOne,reselect:Rc.reselect,prepSelect:Rc.prepSelect,clearOutline:Rc.clearOutline,clearSelectionsCache:Rc.clearSelectionsCache,selectOnClick:Rc.selectOnClick}});var FD=xe((Gbe,zD)=>{"use strict";var W5=nt(),ni=rr(),yD=ni.numberFormat,Fse=z1(),Ld=Cr(),AD=ni.strTranslate,Nse=Un(),V5=Xr(),Ll=Mt(),qse=so(),mD=Ot(),Ose=Ml(),Bse=Ai(),kD=uf(),Rd=kD.selectingOrDrawing,Use=kD.freeMode,Hse=Bn().FROM_TL,Vse=W1(),Gse=yd().redrawReglTraces,Yse=bn(),G5=fn().getFromId,Xse=gf().prepSelect,Wse=gf().clearOutline,Zse=gf().selectOnClick,H5=m5(),Z5=mn(),bD=Z5.MINDRAG,fa=Z5.MINZOOM,xD=!0;function Jse(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,c,d,x,g,w,T,m,k,S,b,M,h,_,y,v,A,p,R,E,D,F,z,I;t+=r.yaxis._shift;function L(){if(c=r.xaxis,d=r.yaxis,S=c._length,b=d._length,m=c._offset,k=d._offset,x={},x[c._id]=c,g={},g[d._id]=d,i&&l)for(var ye=r.overlays,de=0;de<ye.length;de++){var _e=ye[de].xaxis;x[_e._id]=_e;var Ae=ye[de].yaxis;g[Ae._id]=Ae}w=TD(x),T=TD(g),_=_D(w,l),y=_D(T,i),v=!y&&!_,h=MD(e,e._fullLayout._axisMatchGroups,x,g),M=MD(e,e._fullLayout._axisConstraintGroups,x,g,h);var Ie=M.isSubplotConstrained||h.isSubplotConstrained;A=l||Ie,p=i||Ie;var Pe=e._fullLayout;R=Pe._has("scattergl"),E=Pe._has("splom"),D=Pe._has("svg")}L();var P=Qse(y+_,e._fullLayout.dragmode,s),O=CD(r,i+l+"drag",P,t,n,a,o);if(v&&!s)return O.onmousedown=null,O.style.pointerEvents="none",O;var U={element:O,gd:e,plotinfo:r};U.prepFn=function(ye,de,_e){var Ae=U.dragmode,Ie=e._fullLayout.dragmode;Ie!==Ae&&(U.dragmode=Ie),L(),z=e._fullLayout._invScaleX,I=e._fullLayout._invScaleY,v||(s?ye.shiftKey?Ie==="pan"?Ie="zoom":Rd(Ie)||(Ie="pan"):ye.ctrlKey&&(Ie="pan"):Ie="pan"),Use(Ie)?U.minDrag=1:U.minDrag=void 0,Rd(Ie)?(U.xaxes=w,U.yaxes=T,Xse(ye,de,_e,U,Ie)):(U.clickFn=K,Rd(Ae)&&V(),v||(Ie==="zoom"?(U.moveFn=ae,U.doneFn=Me,U.minDrag=1,ee(ye,de,_e)):Ie==="pan"&&(U.moveFn=le,U.doneFn=oe))),e._fullLayout._redrag=function(){var Pe=e._dragdata;if(Pe&&Pe.element===O){var Ye=e._fullLayout.dragmode;Rd(Ye)||(L(),ve([0,0,S,b]),U.moveFn(Pe.dx,Pe.dy))}}};function V(){U.plotinfo.selection=!1,Wse(e)}function K(ye,de){var _e=U.gd;if(_e._fullLayout._activeShapeIndex>=0){_e._fullLayout._deactivateShape(_e);return}var Ae=_e._fullLayout.clickmode;if(X5(_e),ye===2&&!f&&pe(),s)Ae.indexOf("select")>-1&&Zse(de,_e,w,T,r.id,U),Ae.indexOf("event")>-1&&qse.click(_e,de,r.id);else if(ye===1&&f){var Ie=i?d:c,Pe=i==="s"||l==="w"?0:1,Ye=Ie._name+".range["+Pe+"]",qe=$se(Ie,Pe),Oe="left",Be="middle";if(Ie.fixedrange)return;i?(Be=i==="n"?"top":"bottom",Ie.side==="right"&&(Oe="right")):l==="e"&&(Oe="right"),_e._context.showAxisRangeEntryBoxes&&W5.select(O).call(Nse.makeEditable,{gd:_e,immediate:!0,background:_e._fullLayout.paper_bgcolor,text:String(qe),fill:Ie.tickfont?Ie.tickfont.color:"#444",horizontalAlign:Oe,verticalAlign:Be}).on("edit",function(We){var Xe=Ie.d2r(We);Xe!==void 0&&Ld.call("_guiRelayout",_e,Ye,Xe)})}}Bse.init(U);var j,G,q,J,te,Z,ie,Q,re,se;function ee(ye,de,_e){var Ae=O.getBoundingClientRect();j=de-Ae.left,G=_e-Ae.top,e._fullLayout._calcInverseTransform(e);var Ie=ni.apply3DTransform(e._fullLayout._invTransform)(j,G);j=Ie[0],G=Ie[1],q={l:j,r:j,w:0,t:G,b:G,h:0},J=e._hmpixcount?e._hmlumcount/e._hmpixcount:V5.luminosity(e._fullLayout.plot_bgcolor),te="M0,0H"+S+"V"+b+"H0V0",Z=!1,ie="xy",se=!1,Q=ED(u,J,m,k,te),re=LD(u,m,k)}function ae(ye,de){if(e._transitioningWithDuration)return!1;var _e=Math.max(0,Math.min(S,z*ye+j)),Ae=Math.max(0,Math.min(b,I*de+G)),Ie=Math.abs(_e-j),Pe=Math.abs(Ae-G);q.l=Math.min(j,_e),q.r=Math.max(j,_e),q.t=Math.min(G,Ae),q.b=Math.max(G,Ae);function Ye(){ie="",q.r=q.l,q.t=q.b,re.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ie>fa||Pe>fa?(ie="xy",Ie/S>Pe/b?(Pe=Ie*b/S,G>Ae?q.t=G-Pe:q.b=G+Pe):(Ie=Pe*S/b,j>_e?q.l=j-Ie:q.r=j+Ie),re.attr("d",Dd(q))):Ye();else if(h.isSubplotConstrained)if(Ie>fa||Pe>fa){ie="xy";var qe=Math.min(q.l/S,(b-q.b)/b),Oe=Math.max(q.r/S,(b-q.t)/b);q.l=qe*S,q.r=Oe*S,q.b=(1-qe)*b,q.t=(1-Oe)*b,re.attr("d",Dd(q))}else Ye();else!y||Pe<Math.min(Math.max(Ie*.6,bD),fa)?Ie<bD||!_?Ye():(q.t=0,q.b=b,ie="x",re.attr("d",jse(q,G))):!_||Ie<Math.min(Pe*.6,fa)?(q.l=0,q.r=S,ie="y",re.attr("d",eue(q,j))):(ie="xy",re.attr("d",Dd(q)));q.w=q.r-q.l,q.h=q.b-q.t,ie&&(se=!0),e._dragged=se,RD(Q,re,q,te,Z,J),ce(),e.emit("plotly_relayouting",F),Z=!0}function ce(){F={},(ie==="xy"||ie==="x")&&(Y5(w,q.l/S,q.r/S,F,M.xaxes),Y("x",F)),(ie==="xy"||ie==="y")&&(Y5(T,(b-q.b)/b,(b-q.t)/b,F,M.yaxes),Y("y",F))}function Me(){ce(),X5(e),oe(),PD(e)}var ke=[0,0,S,b],Se=null,ge=Z5.REDRAWDELAY,Le=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function Ee(ye){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(V(),e._transitioningWithDuration){ye.preventDefault(),ye.stopPropagation();return}L(),clearTimeout(Se);var de=-ye.deltaY;if(isFinite(de)||(de=ye.wheelDelta/10),!isFinite(de)){ni.log("Did not find wheel motion attributes: ",ye);return}e._fullLayout._replotting=!0;var _e=Math.exp(-Math.min(Math.max(de,-20),20)/200),Ae=Le.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Ie=(ye.clientX-Ae.left)/Ae.width,Pe=(Ae.bottom-ye.clientY)/Ae.height,Ye;function qe(Oe,Be,We){if(Oe.fixedrange)return;var Xe=ni.simpleMap(Oe.range,Oe.r2l),tr=Xe[0]+(Xe[1]-Xe[0])*Be;function ir(je){return Oe.l2r(tr+(je-tr)*We)}Oe.range=Xe.map(ir)}if(A){for(l||(Ie=.5),Ye=0;Ye<w.length;Ye++)qe(w[Ye],Ie,_e);Y("x"),ke[2]*=_e,ke[0]+=ke[2]*Ie*(1/_e-1)}if(p){for(i||(Pe=.5),Ye=0;Ye<T.length;Ye++)qe(T[Ye],Pe,_e);Y("y"),ke[3]*=_e,ke[1]+=ke[3]*(1-Pe)*(1/_e-1)}ve(ke),$(),e.emit("plotly_relayouting",F),Se=setTimeout(function(){e._fullLayout&&(ke=[0,0,S,b],oe())},ge),ye.preventDefault()}i.length*l.length!==1&&ID(O,Ee);function le(ye,de){if(ye=ye*z,de=de*I,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,_==="ew"||y==="ns"){var _e=_?-ye:0,Ae=y?-de:0;if(h.isSubplotConstrained){if(_&&y){var Ie=(ye/S-de/b)/2;ye=Ie*S,de=-Ie*b,_e=-ye,Ae=-de}y?_e=-Ae*S/b:Ae=-_e*b/S}_&&(wD(w,ye),Y("x")),y&&(wD(T,de),Y("y")),ve([_e,Ae,S,b]),$(),e.emit("plotly_relayouting",F);return}function Pe(ir,je,Ke){for(var Ce=1-je,Fe,Qe,er=0;er<ir.length;er++){var wr=ir[er];if(!wr.fixedrange){Fe=wr,Qe=wr._rl[Ce]+(wr._rl[je]-wr._rl[Ce])/Kse(Ke/wr._length);var Vr=wr.l2r(Qe);Vr!==!1&&Vr!==void 0&&(wr.range[je]=Vr)}}return Fe._length*(Fe._rl[je]-Qe)/(Fe._rl[je]-Fe._rl[Ce])}var Ye=_==="w"==(y==="n")?1:-1;if(_&&y&&(M.isSubplotConstrained||h.isSubplotConstrained)){var qe=(ye/S+Ye*de/b)/2;ye=qe*S,de=Ye*qe*b}var Oe,Be;if(_==="w"?ye=Pe(w,0,ye):_==="e"?ye=Pe(w,1,-ye):_||(ye=0),y==="n"?de=Pe(T,1,de):y==="s"?de=Pe(T,0,-de):y||(de=0),Oe=_==="w"?ye:0,Be=y==="n"?de:0,M.isSubplotConstrained&&!h.isSubplotConstrained||h.isSubplotConstrained&&_&&y&&Ye>0){var We;if(h.isSubplotConstrained||!_&&y.length===1){for(We=0;We<w.length;We++)w[We].range=w[We]._r.slice(),H5(w[We],1-de/b);ye=de*S/b,Oe=ye/2}if(h.isSubplotConstrained||!y&&_.length===1){for(We=0;We<T.length;We++)T[We].range=T[We]._r.slice(),H5(T[We],1-ye/S);de=ye*b/S,Be=de/2}}(!h.isSubplotConstrained||!y)&&Y("x"),(!h.isSubplotConstrained||!_)&&Y("y");var Xe=S-ye,tr=b-de;h.isSubplotConstrained&&!(_&&y)&&(_?(Be=Oe?0:ye*b/S,tr=Xe*b/S):(Oe=Be?0:de*S/b,Xe=tr*S/b)),ve([Oe,Be,Xe,tr]),$(),e.emit("plotly_relayouting",F)}function Y(ye,de){for(var _e=h.isSubplotConstrained?{x:T,y:w}[ye]:h[ye+"axes"],Ae=h.isSubplotConstrained?{x:w,y:T}[ye]:[],Ie=0;Ie<_e.length;Ie++){var Pe=_e[Ie],Ye=Pe._id,qe=h.xLinks[Ye]||h.yLinks[Ye],Oe=Ae[0]||x[qe]||g[qe];Oe&&(de?(de[Pe._name+".range[0]"]=de[Oe._name+".range[0]"],de[Pe._name+".range[1]"]=de[Oe._name+".range[1]"]):Pe.range=Oe.range.slice())}}function $(){var ye=[],de;function _e(Ye){for(de=0;de<Ye.length;de++)Ye[de].fixedrange||ye.push(Ye[de]._id)}function Ae(Ye,qe){for(de=0;de<Ye.length;de++){var Oe=Ye[de],Be=Oe[qe],We=Be._id;!Oe.fixedrange&&Be.tickmode==="sync"&&!ye.includes(We)&&ye.push(We)}}for(A&&(_e(w),_e(M.xaxes),_e(h.xaxes),Ae(r.overlays,"xaxis")),p&&(_e(T),_e(M.yaxes),_e(h.yaxes),Ae(r.overlays,"yaxis")),F={},de=0;de<ye.length;de++){var Ie=ye[de],Pe=G5(e,Ie);mD.drawOne(e,Pe,{skipTitle:!0}),F[Pe._name+".range[0]"]=Pe.range[0],F[Pe._name+".range[1]"]=Pe.range[1]}mD.redrawComponents(e,ye)}function pe(){if(!e._transitioningWithDuration){var ye=e._context.doubleClick,de=[];_&&(de=de.concat(w)),y&&(de=de.concat(T)),h.xaxes&&(de=de.concat(h.xaxes)),h.yaxes&&(de=de.concat(h.yaxes));var _e={},Ae,Ie;if(ye==="reset+autosize")for(ye="autosize",Ie=0;Ie<de.length;Ie++){Ae=de[Ie];var Pe=Ae._rangeInitial0,Ye=Ae._rangeInitial1,qe=Pe!==void 0||Ye!==void 0;if(qe&&(Pe!==void 0&&Pe!==Ae.range[0]||Ye!==void 0&&Ye!==Ae.range[1])||!qe&&Ae.autorange!==!0){ye="reset";break}}if(ye==="autosize")for(Ie=0;Ie<de.length;Ie++)Ae=de[Ie],Ae.fixedrange||(_e[Ae._name+".autorange"]=!0);else if(ye==="reset"){for((_||M.isSubplotConstrained)&&(de=de.concat(M.xaxes)),y&&!M.isSubplotConstrained&&(de=de.concat(M.yaxes)),M.isSubplotConstrained&&(_?y||(de=de.concat(T)):de=de.concat(w)),Ie=0;Ie<de.length;Ie++)if(Ae=de[Ie],!Ae.fixedrange){var Oe=Ae._name,Be=Ae._autorangeInitial;Ae._rangeInitial0===void 0&&Ae._rangeInitial1===void 0?_e[Oe+".autorange"]=!0:Ae._rangeInitial0===void 0?(_e[Oe+".autorange"]=Be,_e[Oe+".range"]=[null,Ae._rangeInitial1]):Ae._rangeInitial1===void 0?(_e[Oe+".range"]=[Ae._rangeInitial0,null],_e[Oe+".autorange"]=Be):_e[Oe+".range"]=[Ae._rangeInitial0,Ae._rangeInitial1]}}e.emit("plotly_doubleclick",null),Ld.call("_guiRelayout",e,_e)}}function oe(){ve([0,0,S,b]),ni.syncOrAsync([Yse.previousPromises,function(){e._fullLayout._replotting=!1,Ld.call("_guiRelayout",e,F)}],e)}function ve(ye){var de=e._fullLayout,_e=de._plots,Ae=de._subplots.cartesian,Ie,Pe,Ye,qe;if(E&&Ld.subplotsRegistry.splom.drag(e),R){for(Ie=0;Ie<Ae.length;Ie++)if(Pe=_e[Ae[Ie]],Ye=Pe.xaxis,qe=Pe.yaxis,Pe._scene){Ye.limitRange&&Ye.limitRange(),qe.limitRange&&qe.limitRange();var Oe=ni.simpleMap(Ye.range,Ye.r2l),Be=ni.simpleMap(qe.range,qe.r2l);Pe._scene.update({range:[Oe[0],Be[0],Oe[1],Be[1]]})}}if((E||R)&&(Vse(e),Gse(e)),D){var We=ye[2]/c._length,Xe=ye[3]/d._length;for(Ie=0;Ie<Ae.length;Ie++){Pe=_e[Ae[Ie]],Ye=Pe.xaxis,qe=Pe.yaxis;var tr=(A||h.isSubplotConstrained)&&!Ye.fixedrange&&x[Ye._id],ir=(p||h.isSubplotConstrained)&&!qe.fixedrange&&g[qe._id],je,Ke,Ce,Fe;if(tr?(je=We,Ce=l||h.isSubplotConstrained?ye[0]:be(Ye,je)):h.xaHash[Ye._id]?(je=We,Ce=ye[0]*Ye._length/c._length):h.yaHash[Ye._id]?(je=Xe,Ce=y==="ns"?-ye[1]*Ye._length/d._length:be(Ye,je,{n:"top",s:"bottom"}[y])):(je=he(Ye,We,Xe),Ce=me(Ye,je)),je>1&&(Ye.maxallowed!==void 0&&A===(Ye.range[0]<Ye.range[1]?"e":"w")||Ye.minallowed!==void 0&&A===(Ye.range[0]<Ye.range[1]?"w":"e"))&&(je=1,Ce=0),ir?(Ke=Xe,Fe=i||h.isSubplotConstrained?ye[1]:be(qe,Ke)):h.yaHash[qe._id]?(Ke=Xe,Fe=ye[1]*qe._length/d._length):h.xaHash[qe._id]?(Ke=We,Fe=_==="ew"?-ye[0]*qe._length/c._length:be(qe,Ke,{e:"right",w:"left"}[_])):(Ke=he(qe,We,Xe),Fe=me(qe,Ke)),Ke>1&&(qe.maxallowed!==void 0&&p===(qe.range[0]<qe.range[1]?"n":"s")||qe.minallowed!==void 0&&p===(qe.range[0]<qe.range[1]?"s":"n"))&&(Ke=1,Fe=0),!(!je&&!Ke)){je||(je=1),Ke||(Ke=1);var Qe=Ye._offset-Ce/je,er=qe._offset-Fe/Ke;Pe.clipRect.call(Ll.setTranslate,Ce,Fe).call(Ll.setScale,je,Ke),Pe.plot.call(Ll.setTranslate,Qe,er).call(Ll.setScale,1/je,1/Ke),(je!==Pe.xScaleFactor||Ke!==Pe.yScaleFactor)&&(Ll.setPointGroupScale(Pe.zoomScalePts,je,Ke),Ll.setTextPointsScale(Pe.zoomScaleTxt,je,Ke)),Ll.hideOutsideRangePoints(Pe.clipOnAxisFalseTraces,Pe),Pe.xScaleFactor=je,Pe.yScaleFactor=Ke}}}}function he(ye,de,_e){return ye.fixedrange?0:A&&M.xaHash[ye._id]?de:p&&(M.isSubplotConstrained?M.xaHash:M.yaHash)[ye._id]?_e:0}function me(ye,de){return de?(ye.range=ye._r.slice(),H5(ye,de),be(ye,de)):0}function be(ye,de,_e){return ye._length*(1-de)*Hse[_e||ye.constraintoward||"middle"]}return O}function SD(e,r,t,n){var a=ni.ensureSingle(e.draglayer,r,t,function(o){o.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return a.call(Ose,n),a.node()}function CD(e,r,t,n,a,o,i){var l=SD(e,"rect",r,t);return W5.select(l).call(Ll.setRect,n,a,o,i),l}function _D(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function $se(e,r){var t=e.range[r],n=Math.abs(t-e.range[1-r]),a;return e.type==="date"?t:e.type==="log"?(a=Math.ceil(Math.max(0,-Math.log(n)/Math.LN10))+3,yD("."+a+"g")(Math.pow(10,t))):(a=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(n)/Math.LN10)+4,yD("."+String(a)+"g")(t))}function Y5(e,r,t,n,a){for(var o=0;o<e.length;o++){var i=e[o];if(!i.fixedrange)if(i.rangebreaks){var l=i._id.charAt(0)==="y",u=l?1-r:r,s=l?1-t:t;n[i._name+".range[0]"]=i.l2r(i.p2l(u*i._length)),n[i._name+".range[1]"]=i.l2r(i.p2l(s*i._length))}else{var f=i._rl[0],c=i._rl[1]-f;n[i._name+".range[0]"]=i.l2r(f+c*r),n[i._name+".range[1]"]=i.l2r(f+c*t)}}if(a&&a.length){var d=(r+(1-t))/2;Y5(a,d,1-d,n,[])}}function wD(e,r){for(var t=0;t<e.length;t++){var n=e[t];if(!n.fixedrange){if(n.rangebreaks){var a=0,o=n._length,i=n.p2l(a+r)-n.p2l(a),l=n.p2l(o+r)-n.p2l(o),u=(i+l)/2;n.range=[n.l2r(n._rl[0]-u),n.l2r(n._rl[1]-u)]}else n.range=[n.l2r(n._rl[0]-r/n._m),n.l2r(n._rl[1]-r/n._m)];n.limitRange&&n.limitRange()}}}function Kse(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Qse(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function ED(e,r,t,n,a){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",AD(t,n)).attr("d",a+"Z")}function LD(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:V5.background,stroke:V5.defaultLine,"stroke-width":1,opacity:0}).attr("transform",AD(r,t)).attr("d","M0,0Z")}function RD(e,r,t,n,a,o){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),DD(e,r,a,o)}function DD(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function X5(e){W5.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function PD(e){xD&&e.data&&e._context.showTips&&(ni.notifier(ni._(e,"Double-click to zoom back out"),"long",e),xD=!1)}function jse(e,r){return"M"+(e.l-.5)+","+(r-fa-.5)+"h-3v"+(2*fa+1)+"h3ZM"+(e.r+.5)+","+(r-fa-.5)+"h3v"+(2*fa+1)+"h-3Z"}function eue(e,r){return"M"+(r-fa-.5)+","+(e.t-.5)+"v-3h"+(2*fa+1)+"v3ZM"+(r-fa-.5)+","+(e.b+.5)+"v3h"+(2*fa+1)+"v-3Z"}function Dd(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,fa)/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 MD(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,c,d=(a||{}).xaHash,x=(a||{}).yaHash,g=0;g<r.length;g++){var w=r[g];for(u in t)if(w[u]){for(f in w)!(a&&(d[f]||x[f]))&&!(f.charAt(0)==="x"?t:n)[f]&&(i[f]=u);for(s in n)!(a&&(d[s]||x[s]))&&w[s]&&(o=!0)}for(s in n)if(w[s])for(c in w)!(a&&(d[c]||x[c]))&&!(c.charAt(0)==="x"?t:n)[c]&&(l[c]=s)}o&&(ni.extendFlat(i,l),l={});var T={},m=[];for(f in i){var k=G5(e,f);m.push(k),T[k._id]=k}var S={},b=[];for(c in l){var M=G5(e,c);b.push(M),S[M._id]=M}return{xaHash:T,yaHash:S,xaxes:m,yaxes:b,xLinks:i,yLinks:l,isSubplotConstrained:o}}function ID(e,r){if(!Fse)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 TD(e){var r=[];for(var t in e)r.push(e[t]);return r}zD.exports={makeDragBox:Jse,makeDragger:SD,makeRectDragger:CD,makeZoombox:ED,makeCorners:LD,updateZoombox:RD,xyCorners:Dd,transitionZoombox:DD,removeZoombox:X5,showDoubleClickNotifier:PD,attachWheelEventHandler:ID}});var J5=xe(Id=>{"use strict";var rue=nt(),Pd=so(),tue=Ai(),nue=Ml(),Si=FD().makeDragBox,wn=mn().DRAGGERSIZE;Id.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){rue.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(o,i){if((t._plots[o].mainplot&&!0)===(t._plots[i].mainplot&&!0)){var l=o.split("y"),u=i.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[o].mainplot?1:-1});n.forEach(function(o){var i=t._plots[o],l=i.xaxis,u=i.yaxis;if(!i.mainplot){var s=Si(r,i,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(d){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===o&&r._fullLayout._plots[o]&&Pd.hover(r,d,o)},Pd.hover(r,d,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(d){r._dragging||(r._fullLayout._hoversubplot=null,tue.unhover(r,d))},r._context.showAxisDragHandles&&(Si(r,i,l._offset-wn,u._offset-wn,wn,wn,"n","w"),Si(r,i,l._offset+l._length,u._offset-wn,wn,wn,"n","e"),Si(r,i,l._offset-wn,u._offset+u._length,wn,wn,"s","w"),Si(r,i,l._offset+l._length,u._offset+u._length,wn,wn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=wn),Si(r,i,l._offset+l._length*.1,f,l._length*.8,wn,"","ew"),Si(r,i,l._offset,f,l._length*.1,wn,"","w"),Si(r,i,l._offset+l._length*.9,f,l._length*.1,wn,"","e")}if(o===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=wn),Si(r,i,c,u._offset+u._length*.1,wn,u._length*.8,"ns",""),Si(r,i,c,u._offset+u._length*.9,wn,u._length*.1,"s",""),Si(r,i,c,u._offset,wn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,Pd.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,Pd.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},Id.updateFx(r)}};Id.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";nue(r._draggers,t)}});var OD=xe((Xbe,qD)=>{"use strict";var ND=Cr();qD.exports=function(r){for(var t=ND.layoutArrayContainers,n=ND.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l<n.length;l++)if(i=r.match(n[l]),i&&i.index===0){o=i[0];break}if(o||(o=t[t.indexOf(a)]),!o)return!1;var u=r.slice(o.length);return u?(i=u.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),i?{array:o,index:Number(i[1]),property:i[3]||""}:!1):{array:o,index:"",property:""}}});var UD=xe(Pc=>{"use strict";var aue=es(),$5=wh(),Dc=el(),iue=Hy().sorterAsc,K5=Cr();Pc.containerArrayMatch=OD();var oue=Pc.isAddVal=function(r){return r==="add"||aue(r)},BD=Pc.isRemoveVal=function(r){return r===null||r==="remove"};Pc.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=K5.getComponentMethod(i,"supplyLayoutDefaults"),u=K5.getComponentMethod(i,"draw"),s=K5.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===$5||u===$5,c=r.layout,d=r._fullLayout;if(n[""]){Object.keys(n).length>1&&Dc.warn("Full array edits are incompatible with other edits",i);var x=n[""][""];if(BD(x))t.set(null);else if(Array.isArray(x))t.set(x);else return Dc.warn("Unrecognized full array edit value",i,x),!0;return f?!1:(l(c,d),u(r),!0)}var g=Object.keys(n).map(Number).sort(iue),w=t.get(),T=w||[],m=o(d,i).get(),k=[],S=-1,b=T.length,M,h,_,y,v,A,p,R;for(M=0;M<g.length;M++){if(_=g[M],y=n[_],v=Object.keys(y),A=y[""],p=oue(A),_<0||_>T.length-(p?0:1)){Dc.warn("index out of range",i,_);continue}if(A!==void 0)v.length>1&&Dc.warn("Insertion & removal are incompatible with edits to the same index.",i,_),BD(A)?k.push(_):p?(A==="add"&&(A={}),T.splice(_,0,A),m&&m.splice(_,0,{})):Dc.warn("Unrecognized full object edit value",i,_,A),S===-1&&(S=_);else for(h=0;h<v.length;h++)R=i+"["+_+"].",o(T[_],v[h],R).set(y[v[h]])}for(M=k.length-1;M>=0;M--)T.splice(k[M],1),m&&m.splice(k[M],1);if(T.length?w||t.set(T):t.set(null),f)return!1;if(l(c,d),s!==$5){var E;if(S===-1)E=g;else{for(b=Math.max(T.length,b),E=[],M=0;M<g.length&&(_=g[M],!(_>=S));M++)E.push(_);for(M=S;M<b;M++)E.push(M)}for(M=0;M<E.length;M++)s(r,E[M])}else u(r);return!0}});var ZD=xe(ai=>{"use strict";var YD=it(),XD=Cr(),ia=rr(),Ic=bn(),WD=fn(),zc=WD.cleanId,lue=WD.getFromTrace,Q5=XD.traceIs,sue=["x","y","z"];ai.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ia.log("Clearing previous rejected promises from queue."),e._promises=[]};ai.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 n=(Ic.subplotsRegistry.cartesian||{}).attrRegex,a=(Ic.subplotsRegistry.polar||{}).attrRegex,o=(Ic.subplotsRegistry.ternary||{}).attrRegex,i=(Ic.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r<l.length;r++){var u=l[r];if(n&&n.test(u)){var s=e[u];s.anchor&&s.anchor!=="free"&&(s.anchor=zc(s.anchor)),s.overlaying&&(s.overlaying=zc(s.overlaying)),s.type||(s.isdate?s.type="date":s.islog?s.type="log":s.isdate===!1&&s.islog===!1&&(s.type="linear")),(s.autorange==="withzero"||s.autorange==="tozero")&&(s.autorange=!0,s.rangemode="tozero"),s.insiderange&&delete s.range,delete s.islog,delete s.isdate,delete s.categories,zd(s,"domain")&&delete s.domain}}var f=Array.isArray(e.annotations)?e.annotations.length:0;for(r=0;r<f;r++){var c=e.annotations[r];ia.isPlainObject(c)&&(yf(c,"xref"),yf(c,"yref"))}var d=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<d;r++){var x=e.shapes[r];ia.isPlainObject(x)&&(yf(x,"xref",!0),yf(x,"yref",!0))}var g=Array.isArray(e.images)?e.images.length:0;for(r=0;r<g;r++){var w=e.images[r];ia.isPlainObject(w)&&(yf(w,"xref"),yf(w,"yref"))}var T=e.legend;return T&&(T.x>3?(T.x=1.02,T.xanchor="left"):T.x<-2&&(T.x=-.02,T.xanchor="right"),T.y>3?(T.y=1.02,T.yanchor="bottom"):T.y<-2&&(T.y=-.02,T.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&ai.cleanLayout(e.template.layout),e};function yf(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=zc(n,a,!0))}ai.cleanData=function(e){for(var r=0;r<e.length;r++){var t=e[r],n;if(t.type==="histogramy"&&"xbins"in t&&!("ybins"in t)&&(t.ybins=t.xbins,delete t.xbins),t.type==="histogramy"&&ai.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=zc(t.xaxis,"x")),t.yaxis&&(t.yaxis=zc(t.yaxis,"y")),Q5(t,"gl3d")&&t.scene&&(t.scene=Ic.subplotsRegistry.gl3d.cleanId(t.scene)),!Q5(t,"pie-like")&&!Q5(t,"bar-like"))if(Array.isArray(t.textposition))for(n=0;n<t.textposition.length;n++)t.textposition[n]=VD(t.textposition[n]);else t.textposition&&(t.textposition=VD(t.textposition));var a=XD.getModule(t);if(a&&a.colorbar){var o=a.colorbar.container,i=o?t[o]:t;i&&i.colorscale&&(i.colorscale==="YIGnBu"&&(i.colorscale="YlGnBu"),i.colorscale==="YIOrRd"&&(i.colorscale="YlOrRd"))}if(t.type==="surface"&&ia.isPlainObject(t.contours)){var l=["x","y","z"];for(n=0;n<l.length;n++){var u=t.contours[l[n]];ia.isPlainObject(u)&&(u.highlightColor&&(u.highlightcolor=u.highlightColor,delete u.highlightColor),u.highlightWidth&&(u.highlightwidth=u.highlightWidth,delete u.highlightWidth))}}if(t.type==="candlestick"||t.type==="ohlc"){var s=(t.increasing||{}).showlegend!==!1,f=(t.decreasing||{}).showlegend!==!1,c=HD(t.increasing),d=HD(t.decreasing);if(c!==!1&&d!==!1){var x=uue(c,d,s,f);x&&(t.name=x)}else(c||d)&&!t.name&&(t.name=c||d)}zd(t,"line")&&delete t.line,"marker"in t&&(zd(t.marker,"line")&&delete t.marker.line,zd(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function HD(e){if(!ia.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function uue(e,r,t,n){if(t&&!n)return e;if(n&&!t||!e.trim())return r;if(!r.trim())return e;var a=Math.min(e.length,r.length),o;for(o=0;o<a&&e.charAt(o)===r.charAt(o);o++);var i=e.slice(0,o);return i.trim()}function VD(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 zd(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}ai.swapXYData=function(e){var r;if(ia.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,n="copy_ystyle"in t?t.copy_ystyle:!(t.color||t.thickness||t.width);ia.swapAttrs(e,["error_?.copy_ystyle"]),n&&ia.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if(typeof e.hoverinfo=="string"){var a=e.hoverinfo.split("+");for(r=0;r<a.length;r++)a[r]==="x"?a[r]="y":a[r]==="y"&&(a[r]="x");e.hoverinfo=a.join("+")}};ai.coerceTraceIndices=function(e,r){if(YD(r))return[r];if(!Array.isArray(r)||!r.length)return e.data.map(function(a,o){return o});if(Array.isArray(r)){for(var t=[],n=0;n<r.length;n++)ia.isIndex(r[n],e.data.length)?t.push(r[n]):ia.warn("trace index (",r[n],") is not a number or is out of bounds");return t}return r};ai.manageArrayContainers=function(e,r,t){var n=e.obj,a=e.parts,o=a.length,i=a[o-1],l=YD(i);if(l&&r===null){var u=a.slice(0,o-1).join("."),s=ia.nestedProperty(n,u).get();s.splice(i,1)}else l&&e.get()===void 0&&e.get()===void 0&&(t[e.astr]=null),e.set(r)};var fue=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function GD(e){var r=e.search(fue);if(r>0)return e.slice(0,r)}ai.hasParent=function(e,r){for(var t=GD(r);t;){if(t in e)return!0;t=GD(t)}return!1};ai.clearAxisTypes=function(e,r,t){for(var n=0;n<r.length;n++)for(var a=e._fullData[n],o=0;o<3;o++){var i=lue(e,a,sue[o]);if(i&&i.type!=="log"){var l=i._name,u=i._id.slice(1);if(u.slice(0,5)==="scene"){if(t[u]!==void 0)continue;l=u+"."+l}var s=l+".type";t[l]===void 0&&t[s]===void 0&&ia.nestedProperty(e.layout,s).set(null)}}};var j5=(e,r)=>{let t=(...n)=>n.every(a=>ia.isPlainObject(a))||n.every(a=>Array.isArray(a));if([e,r].every(n=>Array.isArray(n))){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++){let a=e[n],o=r[n];if(a!==o&&!(t(a,o)?j5(a,o):!1))return!1}return!0}else if([e,r].every(n=>ia.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let a=e[n],o=r[n];if(a!==o&&!(t(a,o)?j5(a,o):!1))return!1}return!0}return!1};ai.collectionsAreEqual=j5});var ib=xe(rt=>{"use strict";var qd=nt(),cue=it(),vue=rm(),cr=rr(),At=cr.nestedProperty,tb=N0(),ca=LT(),ii=Cr(),Yd=Hu(),Lr=bn(),oa=Ot(),hue=M3(),due=Ja(),eb=Mt(),pue=Xr(),gue=J5().initInteractions,yue=hl(),mue=gf().clearOutline,jD=jo().dfltConfig,Fd=UD(),tn=ZD(),dt=yd(),Rl=ea(),bue=mn().AX_NAME_PATTERN,rb=0,JD=5;function xue(e,r,t,n){var a;if(e=cr.getGraphDiv(e),tb.init(e),cr.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=tb.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!cr.isPlotDiv(e)&&cr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return rt.addFrames(e,a)}rP(e,n),t||(t={}),qd.select(e).classed("js-plotly-plot",!0),eb.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(tn.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=tn.cleanLayout(t)),Lr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(Vue(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),eb.initGradients(e),eb.initPatterns(e),u&&oa.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Lr.doCalcdata(e);for(var d=0;d<e.calcdata.length;d++)e.calcdata[d][0].trace=e._fullData[d];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){cr.isHidden(e)||Lr.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):cr.clearResponsive(e);var x=cr.extendFlat({},s._size),g=0;function w(){for(var _=s._basePlotModules,y=0;y<_.length;y++)_[y].drawFramework&&_[y].drawFramework(e);!s._glcanvas&&s._has("gl")&&(s._glcanvas=s._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(R){return R.key}),s._glcanvas.enter().append("canvas").attr("class",function(R){return"gl-canvas gl-canvas-"+R.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var v=e._context.plotGlPixelRatio;if(s._glcanvas){s._glcanvas.attr("width",s.width*v).attr("height",s.height*v).style("width",s.width+"px").style("height",s.height+"px");var A=s._glcanvas.data()[0].regl;if(A&&(Math.floor(s.width*v)!==A._gl.drawingBufferWidth||Math.floor(s.height*v)!==A._gl.drawingBufferHeight)){var p="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(g)cr.error(p);else return cr.log(p+" Clearing graph and plotting again."),Lr.cleanPlot([],{},e._fullData,s),Lr.supplyDefaults(e),s=e._fullLayout,Lr.doCalcdata(e),g++,w()}}return s.modebar.orientation==="h"?s._modebardiv.style("height",null).style("width","100%"):s._modebardiv.style("width",null).style("height",s.height+"px"),Lr.previousPromises(e)}function T(){if(Lr.clearAutoMarginIds(e),dt.drawMarginPushers(e),oa.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&Lr.allowAutoMargin(e,"title.automargin"),s._has("pie"))for(var _=e._fullData,y=0;y<_.length;y++){var v=_[y];v.type==="pie"&&v.automargin&&Lr.allowAutoMargin(e,"pie."+v.uid+".automargin")}return Lr.doAutoMargin(e),Lr.previousPromises(e)}function m(){if(Lr.didMarginChange(x,s._size))return cr.syncOrAsync([T,dt.layoutStyles],e)}function k(){if(!c){S();return}return cr.syncOrAsync([ii.getComponentMethod("shapes","calcAutorange"),ii.getComponentMethod("annotations","calcAutorange"),S],e)}function S(){e._transitioning||(dt.doAutoRangeAndConstraints(e),u&&oa.saveRangeInitial(e),ii.getComponentMethod("rangeslider","calcAutorange")(e))}function b(){return oa.draw(e,u?"":"redraw")}var M=[Lr.previousPromises,l,w,T,m];f&&M.push(k),M.push(dt.layoutStyles),f&&M.push(b,function(y){var v=y._fullLayout._insideTickLabelsUpdaterange;if(v)return y._fullLayout._insideTickLabelsUpdaterange=void 0,Fc(y,v).then(function(){oa.saveRangeInitial(y,!0)})}),M.push(dt.drawData,dt.finalDraw,gue,Lr.rehover,Lr.redrag,Lr.reselect,Lr.doAutoMargin,Lr.previousPromises);var h=cr.syncOrAsync(M,e);return(!h||!h.then)&&(h=Promise.resolve()),h.then(function(){return Nc(e),e})}function Nc(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function _ue(e){return cr.extendFlat(jD,e)}function eP(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){cr.error(t)}}function wue(e,r){var t=pue.combine(r,"white");eP(e,t)}function rP(e,r){if(!e._context){e._context=cr.extendDeep({},jD);var t=qd.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var n=e._context,a,o,i;if(r){for(o=Object.keys(r),a=0;a<o.length;a++)i=o[a],!(i==="editable"||i==="edits")&&i in n&&(i==="setBackground"&&r[i]==="opaque"?n[i]=wue:n[i]=r[i]);var l=r.editable;if(l!==void 0)for(n.editable=l,o=Object.keys(n.edits),a=0;a<o.length;a++)n.edits[o[a]]=l;if(r.edits)for(o=Object.keys(r.edits),a=0;a<o.length;a++)i=o[a],i in n.edits&&(n.edits[i]=r.edits[i]);n._exportedPlot=r._exportedPlot}n.staticPlot&&(n.editable=!1,n.edits={},n.autosizable=!1,n.scrollZoom=!1,n.doubleClick=!1,n.showTips=!1,n.displayModeBar=!1),n.displayModeBar==="hover"&&!vue&&(n.displayModeBar=!0),(n.setBackground==="transparent"||typeof n.setBackground!="function")&&(n.setBackground=eP),n._hasZeroHeight=n._hasZeroHeight||e.clientHeight===0,n._hasZeroWidth=n._hasZeroWidth||e.clientWidth===0;var u=n.scrollZoom,s=n._scrollZoom={};if(u===!0)s.cartesian=1,s.gl3d=1,s.geo=1,s.map=1;else if(typeof u=="string"){var f=u.split("+");for(a=0;a<f.length;a++)s[f[a]]=1}else u!==!1&&(s.gl3d=1,s.geo=1,s.map=1)}function Mue(e){if(e=cr.getGraphDiv(e),!cr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return tn.cleanData(e.data),tn.cleanLayout(e.layout),e.calcdata=void 0,rt._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function Tue(e,r,t,n){return e=cr.getGraphDiv(e),Lr.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),Lr.purge(e),rt._doPlot(e,r,t,n)}function Od(e,r){var t=r+1,n=[],a,o;for(a=0;a<e.length;a++)o=e[a],o<0?n.push(t+o):n.push(o);return n}function Bd(e,r,t){var n,a;for(n=0;n<r.length;n++){if(a=r[n],a!==parseInt(a,10))throw new Error("all values in "+t+" must be integers");if(a>=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function tP(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]),Bd(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Bd(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Aue(e,r,t){var n,a;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]),n=0;n<r.length;n++)if(a=r[n],typeof a!="object"||Array.isArray(a)||a===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 kue(e,r,t,n){var a=cr.isPlainObject(n);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!cr.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");Bd(e,t,"indices");for(var o in r){if(!Array.isArray(r[o])||r[o].length!==t.length)throw new Error("attribute "+o+" must be an array of length equal to indices array length");if(a&&(!(o in n)||!Array.isArray(n[o])||n[o].length!==r[o].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 Sue(e,r,t,n){var a=cr.isPlainObject(n),o=[],i,l,u,s,f;Array.isArray(t)||(t=[t]),t=Od(t,e.data.length-1);for(var c in r)for(var d=0;d<t.length;d++){if(i=e.data[t[d]],u=At(i,c),l=u.get(),s=r[c][d],!cr.isArrayOrTypedArray(s))throw new Error("attribute: "+c+" index: "+d+" must be an array");if(!cr.isArrayOrTypedArray(l))throw new Error("cannot extend missing or non-array attribute: "+c);if(l.constructor!==s.constructor)throw new Error("cannot extend array with an array of a different type: "+c);f=a?n[c][d]:n,cue(f)||(f=-1),o.push({prop:u,target:l,insert:s,maxp:Math.floor(f)})}return o}function nP(e,r,t,n,a){kue(e,r,t,n);for(var o=Sue(e,r,t,n),i={},l={},u=0;u<o.length;u++){var s=o[u].prop,f=o[u].maxp,c=a(o[u].target,o[u].insert,f);s.set(c[0]),Array.isArray(i[s.astr])||(i[s.astr]=[]),i[s.astr].push(c[1]),Array.isArray(l[s.astr])||(l[s.astr]=[]),l[s.astr].push(o[u].target.length)}return{update:i,maxPoints:l}}function aP(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function iP(e,r,t,n){e=cr.getGraphDiv(e);function a(u,s,f){var c,d;if(cr.isTypedArray(u))if(f<0){var x=new u.constructor(0),g=aP(u,s);f<0?(c=g,d=x):(c=x,d=g)}else if(c=new u.constructor(f),d=new u.constructor(u.length+s.length-f),f===s.length)c.set(s),d.set(u);else if(f<s.length){var w=s.length-f;c.set(s.subarray(w)),d.set(u),d.set(s.subarray(0,w),u.length)}else{var T=f-s.length,m=u.length-T;c.set(u.subarray(m)),c.set(s,T),d.set(u.subarray(0,m))}else c=u.concat(s),d=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,d]}var o=nP(e,r,t,n,a),i=rt.redraw(e),l=[e,o.update,t,o.maxPoints];return ca.add(e,rt.prependTraces,l,iP,arguments),i}function oP(e,r,t,n){e=cr.getGraphDiv(e);function a(u,s,f){var c,d;if(cr.isTypedArray(u))if(f<=0){var x=new u.constructor(0),g=aP(s,u);f<0?(c=g,d=x):(c=x,d=g)}else if(c=new u.constructor(f),d=new u.constructor(u.length+s.length-f),f===s.length)c.set(s),d.set(u);else if(f<s.length){var w=s.length-f;c.set(s.subarray(0,w)),d.set(s.subarray(w)),d.set(u,w)}else{var T=f-s.length;c.set(s),c.set(u.subarray(0,T),s.length),d.set(u.subarray(T))}else c=s.concat(u),d=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,d]}var o=nP(e,r,t,n,a),i=rt.redraw(e),l=[e,o.update,t,o.maxPoints];return ca.add(e,rt.extendTraces,l,oP,arguments),i}function lP(e,r,t){e=cr.getGraphDiv(e);var n=[],a=rt.deleteTraces,o=lP,i=[e,n],l=[e,r],u,s;for(Aue(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return cr.extendFlat({},f)}),tn.cleanData(r),u=0;u<r.length;u++)e.data.push(r[u]);for(u=0;u<r.length;u++)n.push(-r.length+u);if(typeof t=="undefined")return s=rt.redraw(e),ca.add(e,a,i,o,l),s;Array.isArray(t)||(t=[t]);try{tP(e,n,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return ca.startSequence(e),ca.add(e,a,i,o,l),s=rt.moveTraces(e,n,t),ca.stopSequence(e),s}function sP(e,r){e=cr.getGraphDiv(e);var t=[],n=rt.addTraces,a=sP,o=[e,t,r],i=[e,r],l,u;if(typeof r=="undefined")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),Bd(e,r,"indices"),r=Od(r,e.data.length-1),r.sort(cr.sorterDes),l=0;l<r.length;l+=1)u=e.data.splice(r[l],1)[0],t.push(u);var s=rt.redraw(e);return ca.add(e,n,o,a,i),s}function nb(e,r,t){e=cr.getGraphDiv(e);var n=[],a=[],o=nb,i=nb,l=[e,t,r],u=[e,r,t],s;if(tP(e,r,t),r=Array.isArray(r)?r:[r],typeof t=="undefined")for(t=[],s=0;s<r.length;s++)t.push(-r.length+s);for(t=Array.isArray(t)?t:[t],r=Od(r,e.data.length-1),t=Od(t,e.data.length-1),s=0;s<e.data.length;s++)r.indexOf(s)===-1&&n.push(e.data[s]);for(s=0;s<r.length;s++)a.push({newIndex:t[s],trace:e.data[r[s]]});for(a.sort(function(c,d){return c.newIndex-d.newIndex}),s=0;s<a.length;s+=1)n.splice(a[s].newIndex,0,a[s].trace);e.data=n;var f=rt.redraw(e);return ca.add(e,o,l,i,u),f}function Ud(e,r,t,n){e=cr.getGraphDiv(e),tn.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(cr.isPlainObject(r))a=cr.extendFlat({},r),n===void 0&&(n=t);else return cr.warn("Restyle fail.",r,t,n),Promise.reject();Object.keys(a).length&&(e.changed=!0);var o=tn.coerceTraceIndices(e,n),i=uP(e,a,o),l=i.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&tn.clearAxisTypes(e,o,{});var u=[];l.fullReplot?u.push(rt._doPlot):(u.push(Lr.previousPromises),Lr.supplyDefaults(e),l.markerSize&&(Lr.doCalcdata(e),Xd(u)),l.style&&u.push(dt.doTraceStyle),l.colorbars&&u.push(dt.doColorBars),u.push(Nc)),u.push(Lr.rehover,Lr.redrag,Lr.reselect),ca.add(e,Ud,[e,i.undoit,i.traces],Ud,[e,i.redoit,i.traces]);var s=cr.syncOrAsync(u,e);return(!s||!s.then)&&(s=Promise.resolve()),s.then(function(){return e.emit("plotly_restyle",i.eventData),e})}function No(e){return e===void 0?null:e}function Nd(e,r){return r?function(t,n,a){var o=At(t,n),i=o.set;return o.set=function(l){var u=(a||"")+n;Hd(u,o.get(),l,e),i(l)},o}:At}function Hd(e,r,t,n){if(Array.isArray(r)||Array.isArray(t))for(var a=Array.isArray(r)?r:[],o=Array.isArray(t)?t:[],i=Math.max(a.length,o.length),l=0;l<i;l++)Hd(e+"["+l+"]",a[l],o[l],n);else if(cr.isPlainObject(r)||cr.isPlainObject(t)){var u=cr.isPlainObject(r)?r:{},s=cr.isPlainObject(t)?t:{},f=cr.extendFlat({},u,s);for(var c in f)Hd(e+"."+c,u[c],s[c],n)}else n[e]===void 0&&(n[e]=No(r))}function Cue(e,r,t){for(var n in t){var a=At(e,n);Hd(n,a.get(),t[n],r)}}function uP(e,r,t){var n=e._fullLayout,a=e._fullData,o=e.data,i=n._guiEditing,l=Nd(n._preGUI,i),u=cr.extendDeepAll({},r),s,f=Rl.traceFlags(),c={},d={},x;function g(){return t.map(function(){})}function w(Q){var re=oa.id2name(Q);x.indexOf(re)===-1&&x.push(re)}function T(Q){return"LAYOUT"+Q+".autorange"}function m(Q){return"LAYOUT"+Q+".range"}function k(Q,re,se){if(Array.isArray(Q)){Q.forEach(function(Me){k(Me,re,se)});return}if(!(Q in r||tn.hasParent(r,Q))){var ee;if(Q.slice(0,6)==="LAYOUT")ee=l(e.layout,Q.replace("LAYOUT",""));else{var ae=t[se],ce=n._tracePreGUI[a[ae].uid];ee=Nd(ce,i)(o[ae],Q)}Q in d||(d[Q]=g()),d[Q][se]===void 0&&(d[Q][se]=No(ee.get())),re!==void 0&&ee.set(re)}}function S(Q){return function(re){return a[re][Q]}}function b(Q){return function(re,se){return re===!1?a[t[se]][Q]:null}}for(var M in r){if(tn.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");var h=r[M],_,y,v,A,p,R;if((M==="autobinx"||M==="autobiny")&&(M=M.charAt(M.length-1)+"bins",Array.isArray(h)?h=h.map(b(M)):h===!1?h=t.map(S(M)):h=null),c[M]=h,M.slice(0,6)==="LAYOUT"){v=l(e.layout,M.replace("LAYOUT","")),d[M]=[No(v.get())],v.set(Array.isArray(h)?h[0]:h),f.calc=!0;continue}for(d[M]=g(),s=0;s<t.length;s++){_=o[t[s]],y=a[t[s]];var E=n._tracePreGUI[y.uid];if(v=Nd(E,i)(_,M),A=v.get(),p=Array.isArray(h)?h[s%h.length]:h,p!==void 0){var D=v.parts[v.parts.length-1],F=M.slice(0,M.length-D.length-1),z=F?F+".":"",I=F?At(y,F).get():y;if(R=Yd.getTraceValObject(y,v.parts),R&&R.impliedEdits&&p!==null)for(var L in R.impliedEdits)k(cr.relativeAttr(M,L),R.impliedEdits[L],s);else if((D==="thicknessmode"||D==="lenmode")&&A!==p&&(p==="fraction"||p==="pixels")&&I){var P=n._size,O=I.orient,U=O==="top"||O==="bottom";if(D==="thicknessmode"){var V=U?P.h:P.w;k(z+"thickness",I.thickness*(p==="fraction"?1/V:V),s)}else{var K=U?P.w:P.h;k(z+"len",I.len*(p==="fraction"?1/K:K),s)}}else if(M==="type"&&(p==="pie"!=(A==="pie")||p==="funnelarea"!=(A==="funnelarea"))){var j="x",G="y";(p==="bar"||A==="bar")&&_.orientation==="h"&&(j="y",G="x"),cr.swapAttrs(_,["?"],"labels",j),cr.swapAttrs(_,["d?","?0"],"label",j),cr.swapAttrs(_,["?"],"values",G),A==="pie"||A==="funnelarea"?(At(_,"marker.color").set(At(_,"marker.colors").get()),n._pielayer.selectAll("g.trace").remove()):ii.traceIs(_,"cartesian")&&At(_,"marker.colors").set(At(_,"marker.color").get())}d[M][s]=No(A);var q=["swapxy","swapxyaxes","orientation","orientationaxes"];if(q.indexOf(M)!==-1){if(M==="orientation"){v.set(p);var J=_.x&&!_.y?"h":"v";if((v.get()||J)===y.orientation)continue}else M==="orientationaxes"&&(_.orientation={v:"h",h:"v"}[y.orientation]);tn.swapXYData(_),f.calc=f.clearAxisTypes=!0}else Lr.dataArrayContainers.indexOf(v.parts[0])!==-1?(tn.manageArrayContainers(v,p,d),f.calc=!0):(R?R.arrayOk&&!ii.traceIs(y,"regl")&&(cr.isArrayOrTypedArray(p)||cr.isArrayOrTypedArray(A))?f.calc=!0:Rl.update(f,R):f.calc=!0,v.set(p))}}if(["swapxyaxes","orientationaxes"].indexOf(M)!==-1&&oa.swap(e,t),M==="orientationaxes"){var te=At(e.layout,"hovermode"),Z=te.get();Z==="x"?te.set("y"):Z==="y"?te.set("x"):Z==="x unified"?te.set("y unified"):Z==="y unified"&&te.set("x unified")}if(["orientation","type"].indexOf(M)!==-1){for(x=[],s=0;s<t.length;s++){var ie=o[t[s]];ii.traceIs(ie,"cartesian")&&(w(ie.xaxis||"x"),w(ie.yaxis||"y"))}k(x.map(T),!0,0),k(x.map(m),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:d,redoit:c,traces:t,eventData:cr.extendDeepNoArrays([],[u,t])}}function Fc(e,r,t){e=cr.getGraphDiv(e),tn.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(cr.isPlainObject(r))n=cr.extendFlat({},r);else return cr.warn("Relayout fail.",r,t),Promise.reject();Object.keys(n).length&&(e.changed=!0);var a=hP(e,n),o=a.flags;o.calc&&(e.calcdata=void 0);var i=[Lr.previousPromises];o.layoutReplot?i.push(dt.layoutReplot):Object.keys(n).length&&(fP(e,o,a)||Lr.supplyDefaults(e),o.legend&&i.push(dt.doLegend),o.layoutstyle&&i.push(dt.layoutStyles),o.axrange&&Xd(i,a.rangesAltered),o.ticks&&i.push(dt.doTicksRelayout),o.modebar&&i.push(dt.doModeBar),o.camera&&i.push(dt.doCamera),o.colorbars&&i.push(dt.doColorBars),i.push(Nc)),i.push(Lr.rehover,Lr.redrag,Lr.reselect),ca.add(e,Fc,[e,a.undoit],Fc,[e,a.redoit]);var l=cr.syncOrAsync(i,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",a.eventData),e})}function fP(e,r,t){var n=e._fullLayout;if(!r.axrange)return!1;for(var a in r)if(a!=="axrange"&&r[a])return!1;var o,i,l=function(x,g){return cr.coerce(o,i,due,x,g)},u={};for(var s in t.rangesAltered){var f=oa.id2name(s);if(o=e.layout[f],i=n[f],hue(o,i,l,u),i._matchGroup){for(var c in i._matchGroup)if(c!==s){var d=n[oa.id2name(c)];d.autorange=i.autorange,d.range=i.range.slice(),d._input.range=i.range.slice()}}}return!0}function Xd(e,r){var t=r?function(n){var a=[],o=!0;for(var i in r){var l=oa.getFromId(n,i);if(a.push(i),(l.ticklabelposition||"").indexOf("inside")!==-1&&l._anchorAxis&&a.push(l._anchorAxis._id),l._matchGroup)for(var u in l._matchGroup)r[u]||a.push(u)}return oa.draw(n,a,{skipTitle:o})}:function(n){return oa.draw(n,"redraw")};e.push(mue,dt.doAutoRangeAndConstraints,t,dt.drawData,dt.finalDraw)}var cP=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,vP=/^[xyz]axis[0-9]*\.autorange$/,Eue=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function hP(e,r){var t=e.layout,n=e._fullLayout,a=n._guiEditing,o=Nd(n._preGUI,a),i=Object.keys(r),l=oa.list(e),u=cr.extendDeepAll({},r),s={},f,c,d;for(i=Object.keys(r),c=0;c<i.length;c++)if(i[c].indexOf("allaxes")===0){for(d=0;d<l.length;d++){var x=l[d]._id.slice(1),g=x.indexOf("scene")!==-1?x+".":"",w=i[c].replace("allaxes",g+l[d]._name);r[w]||(r[w]=r[i[c]])}delete r[i[c]]}var T=Rl.layoutFlags(),m={},k={};function S(Me,ke){if(Array.isArray(Me)){Me.forEach(function(ge){S(ge,ke)});return}if(!(Me in r||tn.hasParent(r,Me))){var Se=o(t,Me);Me in k||(k[Me]=No(Se.get())),ke!==void 0&&Se.set(ke)}}var b={},M;function h(Me){var ke=oa.name2id(Me.split(".")[0]);return b[ke]=1,ke}for(var _ in r){if(tn.hasParent(r,_))throw new Error("cannot set "+_+" and a parent attribute simultaneously");for(var y=o(t,_),v=r[_],A=y.parts.length,p=A-1;p>0&&typeof y.parts[p]!="string";)p--;var R=y.parts[p],E=y.parts[p-1]+"."+R,D=y.parts.slice(0,p).join("."),F=At(e.layout,D).get(),z=At(n,D).get(),I=y.get();if(v!==void 0){m[_]=v,k[_]=R==="reverse"?v:No(I);var L=Yd.getLayoutValObject(n,y.parts);if(L&&L.impliedEdits&&v!==null)for(var P in L.impliedEdits)S(cr.relativeAttr(_,P),L.impliedEdits[P]);if(["width","height"].indexOf(_)!==-1)if(v){S("autosize",null);var O=_==="height"?"width":"height";S(O,n[O])}else n[_]=e._initialAutoSize[_];else if(_==="autosize")S("width",v?null:n.width),S("height",v?null:n.height);else if(E.match(cP))h(E),At(n,D+"._inputRange").set(null);else if(E.match(vP)){h(E),At(n,D+"._inputRange").set(null);var U=At(n,D).get();U._inputDomain&&(U._input.domain=U._inputDomain.slice())}else E.match(Eue)&&At(n,D+"._inputDomain").set(null);if(R==="type"){M=F;var V=z.type==="linear"&&v==="log",K=z.type==="log"&&v==="linear";if(V||K){if(!M||!M.range)S(D+".autorange",!0);else if(z.autorange)V&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var j=M.range[0],G=M.range[1];V?(j<=0&&G<=0&&S(D+".autorange",!0),j<=0?j=G/1e6:G<=0&&(G=j/1e6),S(D+".range[0]",Math.log(j)/Math.LN10),S(D+".range[1]",Math.log(G)/Math.LN10)):(S(D+".range[0]",Math.pow(10,j)),S(D+".range[1]",Math.pow(10,G)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[y.parts[0]]&&y.parts[1]==="radialaxis"&&delete n[y.parts[0]]._subplot.viewInitial["radialaxis.range"],ii.getComponentMethod("annotations","convertCoords")(e,z,v,S),ii.getComponentMethod("images","convertCoords")(e,z,v,S)}else S(D+".autorange",!0),S(D+".range",null);At(n,D+"._inputRange").set(null)}else if(R.match(bue)){var q=At(n,_).get(),J=(v||{}).type;(!J||J==="-")&&(J="linear"),ii.getComponentMethod("annotations","convertCoords")(e,q,J,S),ii.getComponentMethod("images","convertCoords")(e,q,J,S)}var te=Fd.containerArrayMatch(_);if(te){f=te.array,c=te.index;var Z=te.property,ie=L||{editType:"calc"};c!==""&&Z===""&&(Fd.isAddVal(v)?k[_]=null:Fd.isRemoveVal(v)?k[_]=(At(t,f).get()||[])[c]:cr.warn("unrecognized full object value",r)),Rl.update(T,ie),s[f]||(s[f]={});var Q=s[f][c];Q||(Q=s[f][c]={}),Q[Z]=v,delete r[_]}else R==="reverse"?(F.range?F.range.reverse():(S(D+".autorange",!0),F.range=[1,0]),z.autorange?T.calc=!0:T.plot=!0):(_==="dragmode"&&(v===!1&&I!==!1||v!==!1&&I===!1)||n._has("scatter-like")&&n._has("regl")&&_==="dragmode"&&(v==="lasso"||v==="select")&&!(I==="lasso"||I==="select")?T.plot=!0:L?Rl.update(T,L):T.calc=!0,y.set(v))}}for(f in s){var re=Fd.applyContainerArrayChanges(e,o(t,f),s[f],T,o);re||(T.plot=!0)}for(var se in b){M=oa.getFromId(e,se);var ee=M&&M._constraintGroup;if(ee){T.calc=!0;for(var ae in ee)b[ae]||(oa.getFromId(e,ae)._constraintShrinkable=!0)}}(dP(e)||r.height||r.width)&&(T.plot=!0);var ce=n.shapes;for(c=0;c<ce.length;c++)if(ce[c].showlegend){T.calc=!0;break}return(T.plot||T.calc)&&(T.layoutReplot=!0),{flags:T,rangesAltered:b,undoit:k,redoit:m,eventData:u}}function dP(e){var r=e._fullLayout,t=r.width,n=r.height;return e.layout.autosize&&Lr.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==n}function Vd(e,r,t,n){e=cr.getGraphDiv(e),tn.clearPromiseQueue(e),cr.isPlainObject(r)||(r={}),cr.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var a=tn.coerceTraceIndices(e,n),o=uP(e,cr.extendFlat({},r),a),i=o.flags,l=hP(e,cr.extendFlat({},t)),u=l.flags;(i.calc||u.calc)&&(e.calcdata=void 0),i.clearAxisTypes&&tn.clearAxisTypes(e,a,t);var s=[];u.layoutReplot?s.push(dt.layoutReplot):i.fullReplot?s.push(rt._doPlot):(s.push(Lr.previousPromises),fP(e,u,l)||Lr.supplyDefaults(e),i.style&&s.push(dt.doTraceStyle),(i.colorbars||u.colorbars)&&s.push(dt.doColorBars),u.legend&&s.push(dt.doLegend),u.layoutstyle&&s.push(dt.layoutStyles),u.axrange&&Xd(s,l.rangesAltered),u.ticks&&s.push(dt.doTicksRelayout),u.modebar&&s.push(dt.doModeBar),u.camera&&s.push(dt.doCamera),s.push(Nc)),s.push(Lr.rehover,Lr.redrag,Lr.reselect),ca.add(e,Vd,[e,o.undoit,l.undoit,o.traces],Vd,[e,o.redoit,l.redoit,o.traces]);var f=cr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve(e)),f.then(function(){return e.emit("plotly_update",{data:o.eventData,layout:l.eventData}),e})}function ab(e){return function(t){t._fullLayout._guiEditing=!0;var n=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,n}}var Lue=[{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"}],Rue=[{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 $D(e,r){for(var t=0;t<r.length;t++){var n=r[t],a=e.match(n.pattern);if(a){var o=a[1]||"";return{head:o,tail:e.slice(o.length+1),attr:n.attr}}}}function KD(e,r){var t=At(r,e).get();if(t!==void 0)return t;var n=e.split(".");for(n.pop();n.length>1;)if(n.pop(),t=At(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Due(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function Pue(e,r,t){for(var n=0;n<r.length;n++)if(r[n].uid===e)return n;return!r[t]||r[t].uid?-1:t}function QD(e,r){var t=cr.isPlainObject(e),n=Array.isArray(e);return t||n?(t&&cr.isPlainObject(r)||n&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function Iue(e,r,t,n){var a=n._preGUI,o,i,l,u,s,f,c,d,x,g,w=[],T={},m={};for(o in a){if(s=$D(o,Lue),s){if(x=s.head,g=s.tail,i=s.attr||x+".uirevision",l=At(n,i).get(),u=l&&KD(i,r),u&&u===l){if(f=a[o],f===null&&(f=void 0),c=At(r,o),d=c.get(),QD(d,f)){d===void 0&&g==="autorange"&&w.push(x),c.set(No(At(n,o).get()));continue}else if(g==="autorange"||g.slice(0,6)==="range["){var k=a[x+".range[0]"],S=a[x+".range[1]"],b=a[x+".autorange"];if(b||b===null&&k===null&&S===null){if(!(x in T)){var M=At(r,x).get();T[x]=M&&(M.autorange||M.autorange!==!1&&(!M.range||M.range.length!==2))}if(T[x]){c.set(No(At(n,o).get()));continue}}}}}else cr.warn("unrecognized GUI edit: "+o);delete a[o],s&&s.tail.slice(0,6)==="range["&&(m[s.head]=1)}for(var h=0;h<w.length;h++){var _=w[h];if(m[_]){var y=At(r,_).get();y&&delete y.autorange}}var v=n._tracePreGUI;for(var A in v){var p=v[A],R=null,E;for(o in p){if(!R){var D=Due(A,t);if(D<0){delete v[A];break}E=t[D];var F=Pue(A,e,E.index);if(F<0){delete v[A];break}R=e[F]}if(s=$D(o,Rue),s){if(s.attr?(l=At(n,s.attr).get(),u=l&&KD(s.attr,r)):(l=E.uirevision,u=R.uirevision,u===void 0&&(u=r.uirevision)),u&&u===l&&(f=p[o],f===null&&(f=void 0),c=At(R,o),d=c.get(),QD(d,f))){c.set(No(At(E,o).get()));continue}}else cr.warn("unrecognized GUI edit: "+o+" in trace uid "+A);delete p[o]}}}function zue(e,r,t,n){var a,o;function i(){return rt.addFrames(e,a)}e=cr.getGraphDiv(e),tn.clearPromiseQueue(e);var l=e._fullData,u=e._fullLayout;if(!cr.isPlotDiv(e)||!l||!u)o=rt.newPlot(e,r,t,n);else{if(cr.isPlainObject(r)){var s=r;r=s.data,t=s.layout,n=s.config,a=s.frames}var f=!1;if(n){let E=cr.extendDeepAll({},e._context);e._context=void 0,rP(e,n),f=!tn.collectionsAreEqual(E,e._context)}if(f){let E=e._ev.eventNames().map(D=>[D,e._ev.listeners(D)]);o=rt.newPlot(e,r,t,n).then(()=>{for(let[D,F]of E)F.forEach(z=>e.on(D,z));return rt.react(e,r,t,n)})}else{e.data=r||[],tn.cleanData(e.data),e.layout=t||{},tn.cleanLayout(e.layout),Iue(e.data,e.layout,l,u),Lr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,d=e._fullLayout,x=d.datarevision===void 0,g=d.transition,w=Nue(e,u,d,x,g),T=w.newDataRevision,m=Fue(e,l,c,x,g,T);if(dP(e)&&(w.layoutReplot=!0),m.calc||w.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(d),S=0;S<k.length;S++){var b=k[S],M=b.substring(0,5);if(M==="xaxis"||M==="yaxis"){var h=d[b]._emptyCategories;h&&h()}}}else Lr.supplyDefaultsUpdateCalc(e.calcdata,c);var _=[];if(a&&(e._transitionData={},Lr.createTransitionData(e),_.push(i)),d.transition&&(m.anim||w.anim))w.ticks&&_.push(dt.doTicksRelayout),Lr.doCalcdata(e),dt.doAutoRangeAndConstraints(e),_.push(function(){return Lr.transitionFromReact(e,m,w,u)});else if(m.fullReplot||w.layoutReplot)e._fullLayout._skipDefaults=!0,_.push(rt._doPlot);else{for(var y in w.arrays){var v=w.arrays[y];if(v.length){var A=ii.getComponentMethod(y,"drawOne");if(A!==cr.noop)for(var p=0;p<v.length;p++)A(e,v[p]);else{var R=ii.getComponentMethod(y,"draw");if(R===cr.noop)throw new Error("cannot draw components: "+y);R(e)}}}_.push(Lr.previousPromises),m.style&&_.push(dt.doTraceStyle),(m.colorbars||w.colorbars)&&_.push(dt.doColorBars),w.legend&&_.push(dt.doLegend),w.layoutstyle&&_.push(dt.layoutStyles),w.axrange&&Xd(_),w.ticks&&_.push(dt.doTicksRelayout),w.modebar&&_.push(dt.doModeBar),w.camera&&_.push(dt.doCamera),_.push(Nc)}_.push(Lr.rehover,Lr.redrag,Lr.reselect),o=cr.syncOrAsync(_,e),(!o||!o.then)&&(o=Promise.resolve(e))}}return o.then(()=>(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function Fue(e,r,t,n,a,o){var i=r.length===t.length;if(!a&&!i)return{fullReplot:!0,calc:!0};var l=Rl.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(x){var g=Yd.getTraceValObject(s,x);return!s._module.animatable&&g.anim&&(g.anim=!1),g}var c={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:o,gd:e},d={};for(u=0;u<r.length;u++)if(t[u]){if(s=t[u],d[s.uid])continue;d[s.uid]=1,Gd(r[u],s,[],c)}return(l.calc||l.plot)&&(l.fullReplot=!0),a&&l.nChanges&&l.nChangesAnim&&(l.anim=l.nChanges===l.nChangesAnim&&i?"all":"some"),l}function Nue(e,r,t,n,a){var o=Rl.layoutFlags();o.arrays={},o.rangesAltered={},o.nChanges=0,o.nChangesAnim=0;function i(d){return Yd.getLayoutValObject(t,d)}for(var l in t)if(!(!l.startsWith("xaxis")&&!l.startsWith("yaxis"))&&r[l]){var u=t[l].domain,s=r[l].domain,f=r[l]._inputDomain;r[l]._inputDomain&&(u[0]===f[0]&&u[1]===f[1]?t[l].domain=r[l].domain:(u[0]!==s[0]||u[1]!==s[1])&&(t[l]._inputDomain=null))}var c={getValObject:i,flags:o,immutable:n,transition:a,gd:e};return Gd(r,t,[],c),(o.plot||o.calc)&&(o.layoutReplot=!0),a&&o.nChanges&&o.nChangesAnim&&(o.anim=o.nChanges===o.nChangesAnim?"all":"some"),o}function Gd(e,r,t,n){var a,o,i,l=n.getValObject,u=n.flags,s=n.immutable,f=n.inArray,c=n.arrayIndex;function d(){var D=a.editType;if(f&&D.indexOf("arraydraw")!==-1){cr.pushUnique(u.arrays[f],c);return}Rl.update(u,a),D!=="none"&&u.nChanges++,n.transition&&a.anim&&u.nChangesAnim++,(cP.test(i)||vP.test(i))&&(u.rangesAltered[t[0]]=1),o==="datarevision"&&(u.newDataRevision=1)}function x(D){return D.valType==="data_array"||D.arrayOk}for(o in e){if(u.calc&&!n.transition)return;var g=e[o],w=r[o],T=t.concat(o);if(i=T.join("."),!(o.charAt(0)==="_"||typeof g=="function"||g===w)){if((o==="tick0"||o==="dtick")&&t[0]!=="geo"){var m=r.tickmode;if(m==="auto"||m==="array"||!m)continue}if(!(o==="range"&&r.autorange)&&!((o==="zmin"||o==="zmax")&&r.type==="contourcarpet")&&(a=l(T),!!a&&!(a._compareAsJSON&&JSON.stringify(g)===JSON.stringify(w)))){var k=a.valType,S,b=x(a),M=Array.isArray(g),h=Array.isArray(w);if(M&&h){var _="_input_"+o,y=e[_],v=r[_];if(Array.isArray(y)&&y===v)continue}if(w===void 0)b&&M?u.calc=!0:d();else if(a._isLinkedToArray){var A=[],p=!1;f||(u.arrays[o]=A);var R=Math.min(g.length,w.length),E=Math.max(g.length,w.length);if(R!==E)if(a.editType==="arraydraw")p=!0;else{d();continue}for(S=0;S<R;S++)Gd(g[S],w[S],T.concat(S),cr.extendFlat({inArray:o,arrayIndex:S},n));if(p)for(S=R;S<E;S++)A.push(S)}else!k&&cr.isPlainObject(g)?Gd(g,w,T,n):b?M&&h?(s&&(u.calc=!0),(s||n.newDataRevision)&&d()):M!==h?u.calc=!0:d():M&&h?(g.length!==w.length||String(g)!==String(w))&&d():d()}}}for(o in r)if(!(o in e||o.charAt(0)==="_"||typeof r[o]=="function"))if(a=l(t.concat(o)),x(a)&&Array.isArray(r[o])){u.calc=!0;return}else d()}function que(e,r,t){if(e=cr.getGraphDiv(e),!cr.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 n=e._transitionData;n._frameQueue||(n._frameQueue=[]),t=Lr.supplyAnimationDefaults(t);var a=t.transition,o=t.frame;n._frameWaitingCnt===void 0&&(n._frameWaitingCnt=0);function i(s){return Array.isArray(a)?s>=a.length?a[0]:a[s]:a}function l(s){return Array.isArray(o)?s>=o.length?o[0]:o[s]:o}function u(s,f){var c=0;return function(){if(s&&++c===f)return s()}}return new Promise(function(s,f){function c(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var R=n._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function d(R){if(R.length!==0){for(var E=0;E<R.length;E++){var D;R[E].type==="byname"?D=Lr.computeFrame(e,R[E].name):D=R[E].data;var F=l(E),z=i(E);z.duration=Math.min(z.duration,F.duration);var I={frame:D,name:R[E].name,frameOpts:F,transitionOpts:z};E===R.length-1&&(I.onComplete=u(s,2),I.onInterrupt=f),n._frameQueue.push(I)}t.mode==="immediate"&&(n._lastFrameAt=-1/0),n._animationRaf||w()}}function x(){e.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function g(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var R=n._currentFrame=n._frameQueue.shift();if(R){var E=R.name?R.name.toString():null;e._fullLayout._currentFrame=E,n._lastFrameAt=Date.now(),n._timeToNext=R.frameOpts.duration,Lr.transition(e,R.frame.data,R.frame.layout,tn.coerceTraceIndices(e,R.frame.traces),R.frameOpts,R.transitionOpts).then(function(){R.onComplete&&R.onComplete()}),e.emit("plotly_animatingframe",{name:E,frame:R.frame,animation:{frame:R.frameOpts,transition:R.transitionOpts}})}else x()}function w(){e.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var R=function(){n._animationRaf=window.requestAnimationFrame(R),Date.now()-n._lastFrameAt>n._timeToNext&&g()};R()}var T=0;function m(R){return Array.isArray(a)?T>=a.length?R.transitionOpts=a[T]:R.transitionOpts=a[0]:R.transitionOpts=a,T++,R}var k,S,b=[],M=r==null,h=Array.isArray(r),_=!M&&!h&&cr.isPlainObject(r);if(_)b.push({type:"object",data:m(cr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(k=0;k<n._frames.length;k++)S=n._frames[k],S&&(M||String(S.group)===String(r))&&b.push({type:"byname",name:String(S.name),data:m({name:S.name})});else if(h)for(k=0;k<r.length;k++){var y=r[k];["number","string"].indexOf(typeof y)!==-1?(y=String(y),b.push({type:"byname",name:y,data:m({name:y})})):cr.isPlainObject(y)&&b.push({type:"object",data:m(cr.extendFlat({},y))})}for(k=0;k<b.length;k++)if(S=b[k],S.type==="byname"&&!n._frameHash[S.data.name]){cr.warn('animate failure: frame not found: "'+S.data.name+'"'),f();return}["next","immediate"].indexOf(t.mode)!==-1&&c(),t.direction==="reverse"&&b.reverse();var v=e._fullLayout._currentFrame;if(v&&t.fromcurrent){var A=-1;for(k=0;k<b.length;k++)if(S=b[k],S.type==="byname"&&S.name===v){A=k;break}if(A>0&&A<b.length-1){var p=[];for(k=0;k<b.length;k++)S=b[k],(b[k].type!=="byname"||k>A)&&p.push(S);b=p}}b.length>0?d(b):(e.emit("plotly_animated"),s())})}function Oue(e,r,t){if(e=cr.getGraphDiv(e),r==null)return Promise.resolve();if(!cr.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 n,a,o,i,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],c={};for(n=r.length-1;n>=0;n--)if(cr.isPlainObject(r[n])){var d=r[n].name,x=(u[d]||c[d]||{}).name,g=r[n].name,w=u[x]||c[x];x&&g&&typeof g=="number"&&w&&rb<JD&&(rb++,cr.warn('addFrames: overwriting frame "'+(u[x]||c[x]).name+'" with a frame whose name of type "number" also equates to "'+x+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),rb===JD&&cr.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[d]={name:d},f.push({frame:Lr.supplyFrameDefaults(r[n]),index:t&&t[n]!==void 0&&t[n]!==null?t[n]:s+n})}f.sort(function(_,y){return _.index>y.index?-1:_.index<y.index?1:0});var T=[],m=[],k=l.length;for(n=f.length-1;n>=0;n--){if(a=f[n].frame,typeof a.name=="number"&&cr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(o=0;o<l.length&&(l[o]||{}).name!==a.name;o++);T.push({type:"replace",index:o,value:a}),m.unshift({type:"replace",index:o,value:l[o]})}else i=Math.max(0,Math.min(f[n].index,k)),T.push({type:"insert",index:i,value:a}),m.unshift({type:"delete",index:i}),k++}var S=Lr.modifyFrames,b=Lr.modifyFrames,M=[e,m],h=[e,T];return ca&&ca.add(e,S,M,b,h),Lr.modifyFrames(e,T)}function Bue(e,r){if(e=cr.getGraphDiv(e),!cr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var t,n,a=e._transitionData._frames,o=[],i=[];if(!r)for(r=[],t=0;t<a.length;t++)r.push(t);for(r=r.slice(),r.sort(),t=r.length-1;t>=0;t--)n=r[t],o.push({type:"delete",index:n}),i.unshift({type:"insert",index:n,value:a[n]});var l=Lr.modifyFrames,u=Lr.modifyFrames,s=[e,i],f=[e,o];return ca&&ca.add(e,l,s,u,f),Lr.modifyFrames(e,o)}function Uue(e){e=cr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Lr.cleanPlot([],{},t,r),Lr.purge(e),tb.purge(e),r._container&&r._container.remove(),delete e._context,e}function Hue(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!cr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=cr.inverseTransformMatrix(cr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function Vue(e){var r=qd.select(e),t=e._fullLayout;if(t._calcInverseTransform=Hue,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 n={};qd.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=cr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(yue.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 a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.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 o=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=o.append("g").classed("imagelayer",!0),t._shapeUpperLayer=o.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")}rt.animate=que;rt.addFrames=Oue;rt.deleteFrames=Bue;rt.addTraces=lP;rt.deleteTraces=sP;rt.extendTraces=iP;rt.moveTraces=nb;rt.prependTraces=oP;rt.newPlot=Tue;rt._doPlot=xue;rt.purge=Uue;rt.react=zue;rt.redraw=Mue;rt.relayout=Fc;rt.restyle=Ud;rt.setPlotConfig=_ue;rt.update=Vd;rt._guiRelayout=ab(Fc);rt._guiRestyle=ab(Ud);rt._guiUpdate=ab(Vd);rt._storeDirectGUIEdit=Cue});var Us=xe(oi=>{"use strict";var Gue=Cr();oi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};oi.getRedrawFunc=function(e){return function(){Gue.getComponentMethod("colorbar","draw")(e)}};oi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};oi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var pP=window.URL||window.webkitURL;oi.createObjectURL=function(e){return pP.createObjectURL(e)};oi.revokeObjectURL=function(e){return pP.revokeObjectURL(e)};oi.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=Yue(window.atob(e));return new window.Blob([t],{type:"image/"+r})};oi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};oi.getPlotTitle=function(e){var n,a,o,i;var r=e._fullLayout;if(r){var t=(n=r.title)==null?void 0:n.text;return t===((a=r._dfltTitle)==null?void 0:a.plot)?void 0:t}return(i=(o=e.layout)==null?void 0:o.title)==null?void 0:i.text};oi.getPlotSubtitle=function(e){var n,a,o,i,l,u;var r=e._fullLayout;if(r){var t=(a=(n=r.title)==null?void 0:n.subtitle)==null?void 0:a.text;return t===((o=r._dfltTitle)==null?void 0:o.subtitle)?void 0:t}return(u=(l=(i=e.layout)==null?void 0:i.title)==null?void 0:l.subtitle)==null?void 0:u.text};function Yue(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a<r;a++)n[a]=e.charCodeAt(a);return t}oi.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var Wd=xe((jbe,gP)=>{"use strict";var lb=nt(),Kbe=rr(),Xue=Mt(),Wue=Xr(),Qbe=hl(),ob=/"/g,Hs="TOBESTRIPPED",Zue=new RegExp(`("${Hs})|(${Hs}")|("${Hs})|(${Hs}")`,"g"),Jue=["&","&","&",""",""",""","'","'","'"],$ue=["<","<","<"],Kue=[">",">",">"];function Que(e){let r=lb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,n=>{let a=n.toLowerCase();return Jue.includes(a)?n:$ue.includes(a)?"<":Kue.includes(a)?">":n.includes("<")||n.includes(">")?"":r.html(n).text()});return r.remove(),t}function jue(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}gP.exports=function(r,t,n){var a=r._fullLayout,o=a._paper,i=a._toppaper,l=a.width,u=a.height,s;o.insert("rect",":first-child").call(Xue.setRect,0,0,l,u).call(Wue.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s<f.length;s++){var c=f[s];c.toSVG&&c.toSVG(r)}if(i){var d=i.node().childNodes,x=Array.prototype.slice.call(d);for(s=0;s<x.length;s++){var g=x[s];g.childNodes.length&&o.node().appendChild(g)}}a._draggers&&a._draggers.remove(),o.node().style.background="",o.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var T=lb.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){T.remove();return}else T.style({visibility:null,display:null});var m=this.style.fontFamily;m&&m.indexOf('"')!==-1&&T.style("font-family",m.replace(ob,Hs));var k=this.style.fontWeight;k&&(k==="normal"||k==="400")&&T.style("font-weight",void 0);var S=this.style.fontStyle;S&&S==="normal"&&T.style("font-style",void 0);var b=this.style.fontVariant;b&&b==="normal"&&T.style("font-variant",void 0)}),o.selectAll(".gradient_filled,.pattern_filled").each(function(){var T=lb.select(this),m=this.style.fill;m&&m.indexOf("url(")!==-1&&T.style("fill",m.replace(ob,Hs));var k=this.style.stroke;k&&k.indexOf("url(")!==-1&&T.style("stroke",k.replace(ob,Hs))}),(t==="pdf"||t==="eps")&&o.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),t==="svg"&&n&&(o.attr("width",n*l),o.attr("height",n*u),o.attr("viewBox","0 0 "+l+" "+u));var w=new window.XMLSerializer().serializeToString(o.node());return w=Que(w),w=jue(w),w=w.replace(Zue,"'"),w}});var Zd=xe((exe,yP)=>{"use strict";var efe=rr(),rfe=Yh().EventEmitter,qc=Us();function tfe(e){var r=e.emitter||new rfe,t=new Promise(function(n,a){var o=window.Image,i=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,c=e.height||150,d=s*f,x=s*c,g=u.getContext("2d",{willReadFrequently:!0}),w=new o,T,m;l==="svg"||efe.isSafari()?m=qc.encodeSVG(i):(T=qc.createBlob(i,"svg"),m=qc.createObjectURL(T)),u.width=d,u.height=x,w.onload=function(){var k;switch(T=null,qc.revokeObjectURL(m),l!=="svg"&&g.drawImage(w,0,0,d,x),l){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=m;break;default:var S="Image format is not jpeg, png, svg or webp.";if(a(new Error(S)),!e.promise)return r.emit("error",S)}n(k),e.promise||r.emit("success",k)},w.onerror=function(k){if(T=null,qc.revokeObjectURL(m),a(k),!e.promise)return r.emit("error",k)},w.src=m});return e.promise?t:r}yP.exports=tfe});var ub=xe((rxe,xP)=>{"use strict";var mP=it(),bP=ib(),nfe=bn(),po=rr(),Oc=Us(),afe=Wd(),ife=Zd(),ofe=o0().version,sb={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 lfe(e,r){r=r||{};var t,n,a,o;po.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=po.getGraphDiv(e),t=po.extendDeep([],e.data),n=po.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(h){return!(h in r)||po.validate(r[h],sb[h])}if(!i("width")&&r.width!==null||!i("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+po.join2(sb.format.values,", "," or ")+".");var l={};function u(h,_){return po.coerce(r,l,sb,h,_)}var s=u("format"),f=u("width"),c=u("height"),d=u("scale"),x=u("setBackground"),g=u("imageDataOnly"),w=document.createElement("div");w.style.position="absolute",w.style.left="-5000px",document.body.appendChild(w);var T=po.extendFlat({},n);f?T.width=f:r.width===null&&mP(o.width)&&(T.width=o.width),c?T.height=c:r.height===null&&mP(o.height)&&(T.height=o.height);var m=po.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:x}),k=Oc.getRedrawFunc(w);function S(){return new Promise(function(h){setTimeout(h,Oc.getDelay(w._fullLayout))})}function b(){return new Promise(function(h,_){var y=afe(w,s,d),v=w._fullLayout.width,A=w._fullLayout.height;function p(){bP.purge(w),document.body.removeChild(w)}if(s==="full-json"){var R=nfe.graphJson(w,!1,"object",!0,!0);return R.version=ofe,R=JSON.stringify(R),p(),h(g?R:Oc.encodeJSON(R))}if(p(),s==="svg")return h(g?y:Oc.encodeSVG(y));var E=document.createElement("canvas");E.id=po.randstr(),ife({format:s,width:v,height:A,scale:d,canvas:E,svg:y,promise:!0}).then(h).catch(_)})}function M(h){return g?h.replace(Oc.IMAGE_URL_PREFIX,""):h}return new Promise(function(h,_){bP.newPlot(w,t,T,m).then(k).then(S).then(b).then(function(y){h(M(y))}).catch(function(y){_(y)})})}xP.exports=lfe});var MP=xe((txe,wP)=>{"use strict";var li=rr(),sfe=bn(),ufe=Hu(),ffe=jo().dfltConfig,Ci=li.isPlainObject,Gs=Array.isArray,fb=li.isArrayOrTypedArray;wP.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=ufe.get(),a=[],o={_context:li.extendFlat({},ffe)},i,l;Gs(r)?(o.data=li.extendDeep([],r),i=r):(o.data=[],i=[],a.push(Mn("array","data"))),Ci(t)?(o.layout=li.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(Mn("object","layout"))),sfe.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;f<s;f++){var c=i[f],d=["data",f];if(!Ci(c)){a.push(Mn("object",d));continue}var x=u[f],g=x.type,w=n.traces[g].attributes;w.type={valType:"enumerated",values:[g]},x.visible===!1&&c.visible!==!1&&a.push(Mn("invisible",d)),Jd(c,x,w,a,d)}var T=o._fullLayout,m=cfe(n,u);return Jd(l,T,m,a,"layout"),a.length===0?void 0:a};function Jd(e,r,t,n,a,o){o=o||[];for(var i=Object.keys(e),l=0;l<i.length;l++){var u=i[l],s=o.slice();s.push(u);var f=e[u],c=r[u],d=dfe(t,u),x=(d||{}).valType,g=x==="info_array",w=x==="colorscale",T=(d||{}).items;if(!hfe(t,u))n.push(Mn("schema",a,s));else if(Ci(f)&&Ci(c)&&x!=="any")Jd(f,c,d,n,a,s);else if(g&&Gs(f)){f.length>c.length&&n.push(Mn("unused",a,s.concat(c.length)));var m=c.length,k=Array.isArray(T);k&&(m=Math.min(m,T.length));var S,b,M,h,_;if(d.dimensions===2)for(b=0;b<m;b++)if(Gs(f[b])){f[b].length>c[b].length&&n.push(Mn("unused",a,s.concat(b,c[b].length)));var y=c[b].length;for(S=0;S<(k?Math.min(y,T[b].length):y);S++)M=k?T[b][S]:T,h=f[b][S],_=c[b][S],li.validate(h,M)?_!==h&&_!==+h&&n.push(Mn("dynamic",a,s.concat(b,S),h,_)):n.push(Mn("value",a,s.concat(b,S),h))}else n.push(Mn("array",a,s.concat(b),f[b]));else for(b=0;b<m;b++)M=k?T[b]:T,h=f[b],_=c[b],li.validate(h,M)?_!==h&&_!==+h&&n.push(Mn("dynamic",a,s.concat(b),h,_)):n.push(Mn("value",a,s.concat(b),h))}else if(d.items&&!g&&Gs(f)){var v=T[Object.keys(T)[0]],A=[],p,R;for(p=0;p<c.length;p++){var E=c[p]._index||p;if(R=s.slice(),R.push(E),Ci(f[E])&&Ci(c[p])){A.push(E);var D=f[E],F=c[p];Ci(D)&&D.visible!==!1&&F.visible===!1?n.push(Mn("invisible",a,R)):Jd(D,F,v,n,a,R)}}for(p=0;p<f.length;p++)R=s.slice(),R.push(p),Ci(f[p])?A.indexOf(p)===-1&&n.push(Mn("unused",a,R)):n.push(Mn("object",a,R,f[p]))}else!Ci(f)&&Ci(c)?n.push(Mn("object",a,s,f)):!fb(f)&&fb(c)&&!g&&!w?n.push(Mn("array",a,s,f)):u in r?li.validate(f,d)?d.valType==="enumerated"&&(d.coerceNumber&&f!==+c||!fb(f)&&f!==c||String(f)!==String(c))&&n.push(Mn("dynamic",a,s,f,c)):n.push(Mn("value",a,s,f)):n.push(Mn("unused",a,s,f))}return n}function cfe(e,r){for(var t=e.layout.layoutAttributes,n=0;n<r.length;n++){var a=r[n],o=e.traces[a.type],i=o.layoutAttributes;i&&(a.subplot?li.extendFlat(t[o.attributes.subplot.dflt],i):li.extendFlat(t,i))}return t}var vfe={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=Vs(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=Vs(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return Vs(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var n=Ci(t)?"container":"key";return Vs(e)+n+" "+r+" did not get coerced"},dynamic:function(e,r,t,n){return[Vs(e)+"key",r,"(set to '"+t+"')","got reset to","'"+n+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?Vs(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[Vs(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function Vs(e){return Gs(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Mn(e,r,t,n,a){t=t||"";var o,i;Gs(r)?(o=r[0],i=r[1]):(o=r,i=null);var l=gfe(t),u=vfe[e](r,l,n,a);return li.log(u),{code:e,container:o,trace:i,path:t,astr:l,msg:u}}function hfe(e,r){var t=_P(r),n=t.keyMinusId,a=t.id;return n in e&&e[n]._isSubplotObj&&a?!0:r in e}function dfe(e,r){if(r in e)return e[r];var t=_P(r);return e[t.keyMinusId]}var pfe=li.counterRegex("([a-z]+)");function _P(e){var r=e.match(pfe);return{keyMinusId:r&&r[1],id:r&&r[2]}}function gfe(e){if(!Gs(e))return String(e);for(var r="",t=0;t<e.length;t++){var n=e[t];typeof n=="number"?r=r.slice(0,-1)+"["+n+"]":r+=n,t<e.length-1&&(r+=".")}return r}});var AP=xe((nxe,TP)=>{"use strict";var yfe=rr(),$d=Us();function mfe(e,r,t){var n=document.createElement("a"),a="download"in n,o=new Promise(function(i,l){var u,s;if(a)return u=$d.createBlob(e,t),s=$d.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),$d.revokeObjectURL(s),u=null,i(r);if(yfe.isSafari()){var f=t==="svg"?",":";base64,";return $d.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}TP.exports=mfe});var cb=xe((axe,EP)=>{"use strict";var Kd=rr(),kP=Un(),bfe=ub(),xfe=AP(),SP=Us(),CP=40;function _fe(e,r){var t;return Kd.isPlainObject(e)||(t=Kd.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(n,a){t&&t._snapshotInProgress&&a(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var o=bfe(e,r),i=r.filename||e.fn;if(!i){let u=SP.getPlotTitle(e);if(u&&!kP.matchTex(u))i=Kd.slugify(u,CP);else{let s=SP.getPlotSubtitle(e);s&&!kP.matchTex(s)&&(i=Kd.slugify(s,CP))}}var l=i||"plot-image";l+="."+r.format.replace("-","."),o.then(function(u){return t&&(t._snapshotInProgress=!1),xfe(u,l,r.format)}).then(function(u){n(u)}).catch(function(u){t&&(t._snapshotInProgress=!1),a(u)})})}EP.exports=_fe});var IP=xe(vb=>{"use strict";var Aa=rr(),ka=Aa.isPlainObject,LP=Hu(),RP=bn(),wfe=qn(),DP=wt(),PP=jo().dfltConfig;vb.makeTemplate=function(e){e=Aa.isPlainObject(e)?e:Aa.getGraphDiv(e),e=Aa.extendDeep({_context:PP},{data:e.data,layout:e.layout}),RP.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(x){var g={};Bc(x,g,Tfe.bind(null,x));var w=Aa.coerce(x,{},wfe,"type"),T=n.data[w];T||(T=n.data[w]=[]),T.push(g)}),Bc(t,n.layout,Mfe.bind(null,t)),delete n.layout.template;var a=t.template;if(ka(a)){var o=a.layout,i,l,u,s,f,c;ka(o)&&Qd(o,n.layout);var d=a.data;if(ka(d)){for(l in n.data)if(u=d[l],Array.isArray(u)){for(f=n.data[l],c=f.length,s=u.length,i=0;i<c;i++)Qd(u[i%s],f[i]);for(i=c;i<s;i++)f.push(Aa.extendDeep({},u[i]))}for(l in d)l in n.data||(n.data[l]=Aa.extendDeep([],d[l]))}}return n};function Qd(e,r){e=Aa.extendDeep({},e);var t=Object.keys(e).sort(),n,a;function o(f,c,d){if(ka(c)&&ka(f))Qd(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var x=DP.arrayTemplater({_template:e},d);for(a=0;a<c.length;a++){var g=c[a],w=x.newItem(g)._template;w&&Qd(w,g)}var T=x.defaultItems();for(a=0;a<T.length;a++)c.push(T[a]._template);for(a=0;a<c.length;a++)delete c[a].templateitemname}}for(n=0;n<t.length;n++){var i=t[n],l=e[i];if(i in r?o(l,r[i],i):r[i]=l,jd(i)===i)for(var u in r){var s=jd(u);u!==s&&s===i&&!(u in e)&&o(l,r[u],i)}}}function jd(e){return e.replace(/[0-9]+$/,"")}function Bc(e,r,t,n,a){var o=a&&t(a);for(var i in e){var l=e[i],u=si(e,i,n),s=si(e,i,a),f=t(s);if(!f){var c=jd(i);c!==i&&(s=si(e,c,a),f=t(s))}if(!(o&&o===f)&&!(!f||f._noTemplating||f.valType==="data_array"||f.arrayOk&&Array.isArray(l)))if(!f.valType&&ka(l))Bc(l,r,t,u,s);else if(f._isLinkedToArray&&Array.isArray(l))for(var d=!1,x=0,g={},w=0;w<l.length;w++){var T=l[w];if(ka(T)){var m=T.name;if(m)g[m]||(Bc(T,r,t,si(l,x,u),si(l,x,s)),x++,g[m]=1);else if(!d){var k=DP.arrayDefaultKey(i),S=si(e,k,n),b=si(l,x,u);Bc(T,r,t,b,si(l,x,s));var M=Aa.nestedProperty(r,b),h=Aa.nestedProperty(r,S);h.set(M.get()),M.set(null),d=!0}}}else{var _=Aa.nestedProperty(r,u);_.set(l)}}}function Mfe(e,r){return LP.getLayoutValObject(e,Aa.nestedProperty({},r).parts)}function Tfe(e,r){return LP.getTraceValObject(e,Aa.nestedProperty({},r).parts)}function si(e,r,t){var n;return t?Array.isArray(e)?n=t+"["+r+"]":n=t+"."+r:n=r,n}vb.validateTemplate=function(e,r){var t=Aa.extendDeep({},{_context:PP,data:e.data,layout:e.layout}),n=t.layout||{};ka(r)||(r=n.template||{});var a=r.layout,o=r.data,i=[];t.layout=n,t.layout.template=r,RP.supplyDefaults(t);var l=t._fullLayout,u=t._fullData,s={};function f(S,b){for(var M in S)if(M.charAt(0)!=="_"&&ka(S[M])){var h=jd(M),_=[],y;for(y=0;y<b.length;y++)_.push(si(S,M,b[y])),h!==M&&_.push(si(S,h,b[y]));for(y=0;y<_.length;y++)s[_[y]]=1;f(S[M],_)}}function c(S,b){for(var M in S)if(M.indexOf("defaults")===-1&&ka(S[M])){var h=si(S,M,b);s[h]?c(S[M],h):i.push({code:"unused",path:h})}}if(ka(a)?(f(l,["layout"]),c(a,"layout")):i.push({code:"layout"}),!ka(o))i.push({code:"data"});else{for(var d={},x,g=0;g<u.length;g++){var w=u[g];x=w.type,d[x]=(d[x]||0)+1,w._template||i.push({code:"missing",index:w.index,traceType:x})}for(x in o){var T=o[x].length,m=d[x]||0;T>m?i.push({code:"unused",traceType:x,templateCount:T,dataCount:m}):m>T&&i.push({code:"reused",traceType:x,templateCount:T,dataCount:m})}}function k(S,b){for(var M in S)if(M.charAt(0)!=="_"){var h=S[M],_=si(S,M,b);ka(h)?(Array.isArray(S)&&h._template===!1&&h.templateitemname&&i.push({code:"missing",path:_,templateitemname:h.templateitemname}),k(h,_)):Array.isArray(h)&&Afe(h)&&k(h,_)}}if(k({data:u,layout:l},""),i.length)return i.map(kfe)};function Afe(e){for(var r=0;r<e.length;r++)if(ka(e[r]))return!0}function kfe(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 FP=xe(Nt=>{"use strict";var hn=ib();Nt._doPlot=hn._doPlot;Nt.newPlot=hn.newPlot;Nt.restyle=hn.restyle;Nt.relayout=hn.relayout;Nt.redraw=hn.redraw;Nt.update=hn.update;Nt._guiRestyle=hn._guiRestyle;Nt._guiRelayout=hn._guiRelayout;Nt._guiUpdate=hn._guiUpdate;Nt._storeDirectGUIEdit=hn._storeDirectGUIEdit;Nt.react=hn.react;Nt.extendTraces=hn.extendTraces;Nt.prependTraces=hn.prependTraces;Nt.addTraces=hn.addTraces;Nt.deleteTraces=hn.deleteTraces;Nt.moveTraces=hn.moveTraces;Nt.purge=hn.purge;Nt.addFrames=hn.addFrames;Nt.deleteFrames=hn.deleteFrames;Nt.animate=hn.animate;Nt.setPlotConfig=hn.setPlotConfig;var Sfe=E0().getGraphDiv,Cfe=ud().eraseActiveShape;Nt.deleteActiveShape=function(e){return Cfe(Sfe(e))};Nt.toImage=ub();Nt.validate=MP();Nt.downloadImage=cb();var zP=IP();Nt.makeTemplate=zP.makeTemplate;Nt.validateTemplate=zP.validateTemplate});var qP=xe((lxe,NP)=>{"use strict";var hb=rr(),Efe=Cr();NP.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=Efe.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=hb.minRowLength(o);i?l=Math.min(s,hb.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=hb.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var HP=xe((sxe,UP)=>{"use strict";var OP=rr().dateTick0,Lfe=pn(),Rfe=Lfe.ONEWEEK;function BP(e,r){return e%Rfe===0?OP(r,1):OP(r,0)}UP.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",BP(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",BP(l,t.ycalendar)),a("yperiodalignment"))}}});var YP=xe((uxe,GP)=>{"use strict";var VP=["orientation","groupnorm","stackgaps"];GP.exports=function(r,t,n,a){var o=n._scatterStackOpts,i=a("stackgroup");if(i){var l=t.xaxis+t.yaxis,u=o[l];u||(u=o[l]={});var s=u[i],f=!1;s?s.traces.push(t):(s=u[i]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},d=0;d<VP.length;d++){var x=VP[d],g=x+"Found";if(!s[g]){var w=r[x]!==void 0,T=x==="orientation";if((w||f)&&(s[x]=a(x,c[x]),T&&(s.fillDflt=s[x]==="h"?"tonextx":"tonexty"),w&&(s[g]=!0,!f&&(delete s.traces[0][x],T))))for(var m=0;m<s.traces.length-1;m++){var k=s.traces[m];k._input.fill!==k.fill&&(k.fill=s.fillDflt)}}}return s}}});var db=xe((fxe,JP)=>{"use strict";var XP=Xr(),WP=$i().hasColorscale,ZP=Qi(),Dfe=wa();JP.exports=function(r,t,n,a,o,i={}){var l=Dfe.isBubble(r),u=(r.line||{}).color,s;if(u&&(n=u),o("marker.symbol"),o("marker.opacity",l?.7:1),o("marker.size"),i.noAngle||(o("marker.angle"),i.noAngleRef||o("marker.angleref"),i.noStandOff||o("marker.standoff")),o("marker.color",n),WP(r,"marker")&&ZP(r,t,a,o,{prefix:"marker.",cLetter:"c"}),i.noSelect||(o("selected.marker.color"),o("unselected.marker.color"),o("selected.marker.size"),o("unselected.marker.size")),i.noLine||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=XP.background:s=XP.defaultLine,o("marker.line.color",s),WP(r,"marker.line")&&ZP(r,t,a,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width",l?1:0),i.noLineDash||o("marker.line.dash")),l&&(o("marker.sizeref"),o("marker.sizemin"),o("marker.sizemode")),i.gradient){var f=o("marker.gradient.type");f!=="none"&&o("marker.gradient.color")}}});var pb=xe((cxe,$P)=>{"use strict";var Pfe=rr().isArrayOrTypedArray,Ife=$i().hasColorscale,zfe=Qi();$P.exports=function(r,t,n,a,o,i){i||(i={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),o("line.color",n),Ife(r,"line"))zfe(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Pfe(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var QP=xe((vxe,KP)=>{"use strict";KP.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var gb=xe((hxe,jP)=>{"use strict";var Ffe=rr();jP.exports=function(e,r,t,n,a){a=a||{},n("textposition"),Ffe.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var tI=xe((dxe,rI)=>{"use strict";var ep=Xr(),eI=rr().isArrayOrTypedArray;function Nfe(e){for(var r=ep.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var n=ep.interpolate(e[t-1][1],e[t][1],.5);r=ep.interpolate(r,n,e[t-1][0]/e[t][0])}return r}rI.exports=function(r,t,n,a,o){o||(o={});var i=!1;if(t.marker){var l=t.marker.color,u=(t.marker.line||{}).color;l&&!eI(l)?i=l:u&&!eI(u)&&(i=u)}var s;if(o.moduleHasFillgradient){var f=a("fillgradient.type");if(f!=="none"){a("fillgradient.start"),a("fillgradient.stop");var c=a("fillgradient.colorscale");c&&(s=Nfe(c))}}a("fillcolor",ep.addOpacity((t.line||{}).color||i||s||n,.5))}});var oI=xe((pxe,iI)=>{"use strict";var nI=rr(),qfe=Cr(),Ofe=Bs(),Bfe=Sd(),mf=wa(),Ufe=qP(),Hfe=HP(),Vfe=YP(),Gfe=db(),Yfe=pb(),aI=QP(),Xfe=gb(),Wfe=tI(),Zfe=rr().coercePattern;iI.exports=function(r,t,n,a){function o(x,g){return nI.coerce(r,t,Ofe,x,g)}var i=Ufe(r,t,a,o);if(i||(t.visible=!1),!!t.visible){Hfe(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=Vfe(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i<Bfe.PTS_LINESONLY?"lines+markers":"lines";o("text"),o("hovertext"),o("mode",u),mf.hasMarkers(t)&&Gfe(r,t,n,a,o,{gradient:!0}),mf.hasLines(t)&&(Yfe(r,t,n,a,o,{backoff:!0}),aI(r,t,o),o("connectgaps"),o("line.simplify")),mf.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),Xfe(r,t,a,o));var s=[];(mf.hasMarkers(t)||mf.hasText(t))&&(o("cliponaxis"),o("marker.maxdisplayed"),s.push("points")),o("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(Wfe(r,t,n,o,{moduleHasFillgradient:!0}),mf.hasLines(t)||aI(r,t,o),Zfe(o,"fillpattern",t.fillcolor,!1));var f=(t.line||{}).color,c=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&s.push("fills"),o("hoveron",s.join("+")||"points"),t.hoveron!=="fills"&&(o("hovertemplate"),o("hovertemplatefallback"));var d=qfe.getComponentMethod("errorbars","supplyDefaults");d(r,t,f||c||n,{axis:"y"}),d(r,t,f||c||n,{axis:"x",inherit:"y"}),nI.coerceSelectionMarkerOpacity(t,o)}}});var sI=xe((gxe,lI)=>{"use strict";var Jfe=vc().getAxisGroup;lI.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=Jfe(n,l)+i,s=n._alignmentOpts||{},f=a("alignmentgroup"),c=s[u];c||(c=s[u]={});var d=c[f];d?d.traces.push(t):d=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var x=a("offsetgroup")||"",g=d.offsetGroups,w=g[x];t._offsetIndex=0,(o!=="group"||x)&&(w||(w=g[x]={offsetIndex:Object.keys(g).length}),t._offsetIndex=w.offsetIndex)}});var fI=xe((yxe,uI)=>{"use strict";var $fe=rr(),Kfe=sI(),Qfe=Bs();uI.exports=function(r,t){var n,a,o,i=t.scattermode;function l(d){return $fe.coerce(a._input,a,Qfe,d)}if(t.scattermode==="group")for(o=0;o<r.length;o++)a=r[o],a.type==="scatter"&&(n=a._input,Kfe(n,a,t,l,i));for(o=0;o<r.length;o++){var u=r[o];if(u.type==="scatter"){var s=u.fill;if(!(s==="none"||s==="toself")&&(u.opacity=void 0,s==="tonexty"||s==="tonextx"))for(var f=o-1;f>=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var vI=xe((mxe,cI)=>{"use strict";var jfe=rr(),e0e=$h();cI.exports=function(e,r){function t(a,o){return jfe.coerce(e,r,e0e,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var pI=xe((bxe,dI)=>{"use strict";var r0e=it(),hI=rr(),t0e=hI.dateTime2ms,rp=hI.incrementMonth,n0e=pn(),a0e=n0e.ONEAVGMONTH;dI.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var o=r[n+"periodalignment"];if(!o)return{vals:a};var i=r[n+"period"],l;if(r0e(i)){if(i=+i,i<=0)return{vals:a}}else if(typeof i=="string"&&i.charAt(0)==="M"){var u=+i.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:a}}for(var s=t.calendar,f=o==="start",c=o==="end",d=r[n+"period0"],x=t0e(d,s)||0,g=[],w=[],T=[],m=a.length,k=0;k<m;k++){var S=a[k],b,M,h;if(l){for(b=Math.round((S-x)/(l*a0e)),h=rp(x,l*b,s);h>S;)h=rp(h,-l,s);for(;h<=S;)h=rp(h,l,s);M=rp(h,-l,s)}else{for(b=Math.round((S-x)/i),h=x+b*i;h>S;)h-=i;for(;h<=S;)h+=i;M=h-i}g[k]=f?M:c?h:(M+h)/2,w[k]=M,T[k]=h}return{vals:g,starts:w,ends:T}}});var bb=xe((xxe,yI)=>{"use strict";var yb=$i().hasColorscale,mb=pl(),gI=wa();yI.exports=function(r,t){gI.hasLines(t)&&yb(t,"line")&&mb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),gI.hasMarkers(t)&&(yb(t,"marker")&&mb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),yb(t,"marker.line")&&mb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var tp=xe((_xe,mI)=>{"use strict";var Yt=rr();mI.exports=function(r,t){for(var n=0;n<r.length;n++)r[n].i=n;Yt.mergeArray(t.text,r,"tx"),Yt.mergeArray(t.texttemplate,r,"txt"),Yt.mergeArray(t.hovertext,r,"htx"),Yt.mergeArray(t.customdata,r,"data"),Yt.mergeArray(t.textposition,r,"tp"),t.textfont&&(Yt.mergeArrayCastPositive(t.textfont.size,r,"ts"),Yt.mergeArray(t.textfont.color,r,"tc"),Yt.mergeArray(t.textfont.family,r,"tf"),Yt.mergeArray(t.textfont.weight,r,"tw"),Yt.mergeArray(t.textfont.style,r,"ty"),Yt.mergeArray(t.textfont.variant,r,"tv"),Yt.mergeArray(t.textfont.textcase,r,"tC"),Yt.mergeArray(t.textfont.lineposition,r,"tE"),Yt.mergeArray(t.textfont.shadow,r,"tS"));var a=t.marker;if(a){Yt.mergeArrayCastPositive(a.size,r,"ms"),Yt.mergeArrayCastPositive(a.opacity,r,"mo"),Yt.mergeArray(a.symbol,r,"mx"),Yt.mergeArray(a.angle,r,"ma"),Yt.mergeArray(a.standoff,r,"mf"),Yt.mergeArray(a.color,r,"mc");var o=a.line;a.line&&(Yt.mergeArray(o.color,r,"mlc"),Yt.mergeArrayCastPositive(o.width,r,"mlw"),Yt.mergeArray(o.dash,r,"mld"));var i=a.gradient;i&&i.type!=="none"&&(Yt.mergeArray(i.type,r,"mgt"),Yt.mergeArray(i.color,r,"mgc"))}}});var _I=xe((wxe,xI)=>{"use strict";var bI=rr();xI.exports=function(r,t){bI.isArrayOrTypedArray(t.selectedpoints)&&bI.tagSelected(r,t)}});var Tb=xe((Mxe,CI)=>{"use strict";var wI=it(),_b=rr(),Uc=Ot(),MI=pI(),xb=pn().BADNUM,wb=wa(),i0e=bb(),o0e=tp(),l0e=_I();function s0e(e,r){var t=e._fullLayout,n=r._xA=Uc.getFromId(e,r.xaxis||"x","x"),a=r._yA=Uc.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=MI(r,n,"x",o),u=MI(r,a,"y",i),s=l.vals,f=u.vals,c=r._length,d=new Array(c),x=r.ids,g=Mb(r,t,n,a),w=!1,T,m,k,S,b,M;kI(t,r);var h="x",_="y",y;if(g)_b.pushUnique(g.traceIndices,r.index),T=g.orientation==="v",T?(_="s",y="x"):(h="s",y="y"),b=g.stackgaps==="interpolate";else{var v=AI(r,c);TI(e,r,n,a,s,f,v)}var A=!!r.xperiodalignment,p=!!r.yperiodalignment;for(m=0;m<c;m++){var R=d[m]={},E=wI(s[m]),D=wI(f[m]);E&&D?(R[h]=s[m],R[_]=f[m],A&&(R.orig_x=o[m],R.xEnd=l.ends[m],R.xStart=l.starts[m]),p&&(R.orig_y=i[m],R.yEnd=u.ends[m],R.yStart=u.starts[m])):g&&(T?E:D)?(R[y]=T?s[m]:f[m],R.gap=!0,b?(R.s=xb,w=!0):R.s=0):R[h]=R[_]=xb,x&&(R.id=String(x[m]))}if(o0e(d,r),i0e(e,r),l0e(d,r),g){for(m=0;m<d.length;)d[m][y]===xb?d.splice(m,1):m++;if(_b.sort(d,function(L,P){return L[y]-P[y]||L.i-P.i}),w){for(m=0;m<d.length-1&&d[m].gap;)m++;for(M=d[m].s,M||(M=d[m].s=0),k=0;k<m;k++)d[k].s=M;for(S=d.length-1;S>m&&d[S].gap;)S--;for(M=d[S].s,k=d.length-1;k>S;k--)d[k].s=M;for(;m<S;)if(m++,d[m].gap){for(k=m+1;d[k].gap;)k++;for(var F=d[m-1][y],z=d[m-1].s,I=(d[k].s-z)/(d[k][y]-F);m<k;)d[m].s=z+(d[m][y]-F)*I,m++}}}return d}function TI(e,r,t,n,a,o,i){var l=r._length,u=e._fullLayout,s=t._id,f=n._id,c=u._firstScatter[SI(r)]===r.uid,d=(Mb(r,u,t,n)||{}).orientation,x=r.fill;t._minDtick=0,n._minDtick=0;var g={padded:!0},w={padded:!0};i&&(g.ppad=w.ppad=i);var T=l<2||a[0]!==a[l-1]||o[0]!==o[l-1];T&&(x==="tozerox"||x==="tonextx"&&(c||d==="h"))?g.tozero=!0:!(r.error_y||{}).visible&&(x==="tonexty"||x==="tozeroy"||!wb.hasMarkers(r)&&!wb.hasText(r))&&(g.padded=!1,g.ppad=0),T&&(x==="tozeroy"||x==="tonexty"&&(c||d==="v"))?w.tozero=!0:(x==="tonextx"||x==="tozerox")&&(w.padded=!1),s&&(r._extremes[s]=Uc.findExtremes(t,a,g)),f&&(r._extremes[f]=Uc.findExtremes(n,o,w))}function AI(e,r){if(wb.hasMarkers(e)){var t=e.marker,n=1.6*(e.marker.sizeref||1),a;if(e.marker.sizemode==="area"?a=function(s){return Math.max(Math.sqrt((s||0)/n),3)}:a=function(s){return Math.max((s||0)/n,3)},_b.isArrayOrTypedArray(t.size)){var o={type:"linear"};Uc.setConvert(o);for(var i=o.makeCalcdata(e.marker,"size"),l=new Array(r),u=0;u<r;u++)l[u]=a(i[u]);return l}else return a(t.size)}}function kI(e,r){var t=SI(r),n=e._firstScatter;n[t]||(n[t]=r.uid)}function SI(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function Mb(e,r,t,n){var a=e.stackgroup;if(a){var o=r._scatterStackOpts[t._id+n._id][a],i=o.orientation==="v"?n:t;if(i.type==="linear"||i.type==="log")return o}}CI.exports={calc:s0e,calcMarkerSize:AI,calcAxisExpansion:TI,setFirstScatter:kI,getStackOpts:Mb}});var LI=xe((Txe,EI)=>{"use strict";EI.exports=np;var u0e=rr().distinctVals;function np(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],o=0;o<e.length;o++){for(var i=e[o],l=0;l<i.length;l++){var u=i[l],s=u.p;s===void 0&&(s=u[n]),s!==void 0&&a.push(s)}i[0]&&i[0].width1&&(t=Math.min(i[0].width1,t))}this.positions=a;var f=u0e(a);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={}}np.prototype.put=function(r,t,n){var a=this.getLabel(r,t,n),o=this.bins[a]||0;return this.bins[a]=o+n,o};np.prototype.get=function(r,t,n){var a=this.getLabel(r,t,n);return this.bins[a]||0};np.prototype.getLabel=function(r,t,n){var a=n<0&&this.sepNegVal?"v":"^",o=this.overlapNoMerge?r:Math.round(r/this.binWidth);return a+o+"g"+t}});var DI=xe((Axe,RI)=>{"use strict";RI.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var NI=xe((kxe,FI)=>{"use strict";var ui=it(),{isArrayOrTypedArray:qo}=rr(),{BADNUM:bf}=pn(),f0e=Cr(),Hc=Ot(),{getAxisGroup:c0e}=vc(),ap=LI(),{TEXTPAD:v0e}=DI(),{LINE_SPACING:h0e}=Bn(),{BR_TAG_ALL:d0e}=Un();function p0e(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;s<o.length;s++){var f=o[s];if(f.visible===!0&&f0e.traceIs(f,"bar")&&f.xaxis===t._id&&f.yaxis===n._id&&(f.orientation==="h"?l.push(i[s]):u.push(i[s]),f._computePh))for(var c=e.calcdata[s],d=0;d<c.length;d++)typeof c[d].ph0=="function"&&(c[d].ph0=c[d].ph0()),typeof c[d].ph1=="function"&&(c[d].ph1=c[d].ph1())}var x={xCat:t.type==="category"||t.type==="multicategory",yCat:n.type==="category"||n.type==="multicategory",mode:a.barmode,norm:a.barnorm,gap:a.bargap,groupgap:a.bargroupgap};kb(e,t,n,u,x),kb(e,n,t,l,x)}function kb(e,r,t,n,a){if(n.length){var o,i,l,u,s;switch(m0e(t,n),a.mode){case"overlay":Ab(e,r,t,n,a);break;case"group":for(o=[],i=[],l=0;l<n.length;l++)u=n[l],s=u[0].trace,s.offset===void 0?i.push(u):o.push(u);i.length&&b0e(e,r,t,i,a),o.length&&Ab(e,r,t,o,a);break;case"stack":case"relative":for(o=[],i=[],l=0;l<n.length;l++)u=n[l],s=u[0].trace,s.base===void 0?i.push(u):o.push(u);y0e(i),i.length&&x0e(e,r,t,i,a),o.length&&Ab(e,r,t,o,a);break}g0e(n),k0e(n,r)}}function g0e(e){var r,t,n,a,o,i,l;for(r=0;r<e.length;r++)t=e[r],n=t[0].trace,a=t[0].t,a.cornerradiusvalue===void 0&&(o=n.marker?n.marker.cornerradius:void 0,o!==void 0&&(i=ui(o)?+o:+o.slice(0,-1),l=ui(o)?"px":"%",a.cornerradiusvalue=i,a.cornerradiusform=l))}function y0e(e){if(!(e.length<2)){var r,t,n,a,o,i,l;for(r=0;r<e.length&&(t=e[r],n=t[0].trace,o=n.marker?n.marker.cornerradius:void 0,o===void 0);r++);if(o!==void 0)for(i=ui(o)?+o:+o.slice(0,-1),l=ui(o)?"px":"%",r=0;r<e.length;r++)t=e[r],a=t[0].t,a.cornerradiusvalue=i,a.cornerradiusform=l}}function m0e(e,r){var t,n;for(t=0;t<r.length;t++){var a=r[t],o=a[0].trace,i=o.type==="funnel"?o._base:o.base,l,u=o.orientation==="h"?o.xcalendar:o.ycalendar,s=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(qo(i)){for(n=0;n<Math.min(i.length,a.length);n++)l=s(i[n],0,u),ui(l)?(a[n].b=+l,a[n].hasB=1):a[n].b=0;for(;n<a.length;n++)a[n].b=0}else{l=s(i,0,u);var f=ui(l);for(l=f?l:0,n=0;n<a.length;n++)a[n].b=l,f&&(a[n].hasB=1)}}}function Ab(e,r,t,n,a){for(var o=0;o<n.length;o++){var i=n[o],l=new ap([i],{posAxis:r,sepNegVal:!1,overlapNoMerge:!a.norm});Sb(e,r,l,a),a.norm?(zI(l),Cb(t,l,a)):II(t,l)}}function b0e(e,r,t,n,a){var o=new ap(n,{posAxis:r,sepNegVal:!1,overlapNoMerge:!a.norm});Sb(e,r,o,a),T0e(o,r),a.norm?(zI(o),Cb(t,o,a)):II(t,o)}function x0e(e,r,t,n,a){var o=new ap(n,{posAxis:r,sepNegVal:a.mode==="relative",overlapNoMerge:!(a.norm||a.mode==="stack"||a.mode==="relative")});Sb(e,r,o,a),M0e(t,o,a);for(var i=0;i<n.length;i++)for(var l=n[i],u=l[0].t.offsetindex,s=0;s<l.length;s++){var f=l[s];if(f.s!==bf){var c=f.b+f.s===o.get(f.p,u,f.s);c&&(f._outmost=!0)}}a.norm&&Cb(t,o,a)}function Sb(e,r,t,n){var a=e._fullLayout,o=t.positions,i=t.distinctPositions,l=t.minDiff,u=t.traces,s=u.length,f=o.length!==i.length,c=l*(1-n.gap),d,x,g,w;if(r._id==="angularaxis")d=c,x=d*(1-(n.groupgap||0)),g=-x/2;else{var T=c0e(a,r._id)+u[0][0].trace.orientation;w=a._alignmentOpts[T]||{}}for(var m=0;m<s;m++){var k=u[m],S=k[0].trace;if(r._id!=="angularaxis"){var b=w[S.alignmentgroup]||{},M=Object.keys(b.offsetGroups||{}).length;M?d=c/M:d=f?c/s:c,x=d*(1-(n.groupgap||0)),M?g=((2*S._offsetIndex+1-M)*d-x)/2:g=f?((2*m+1-s)*d-x)/2:-x/2}var h=k[0].t;h.barwidth=x,h.offsetindex=S._offsetIndex||0,h.poffset=g,h.bargroupwidth=c,h.bardelta=l}t.binWidth=u[0][0].t.barwidth/100,_0e(t),w0e(r,t),r._id==="angularaxis"?PI(r,t):PI(r,t,f)}function _0e(e){var r=e.traces,t,n;for(t=0;t<r.length;t++){var a=r[t],o=a[0],i=o.trace,l=o.t,u=i._offset||i.offset,s=l.poffset,f;if(qo(u)){for(f=Array.prototype.slice.call(u,0,a.length),n=0;n<f.length;n++)ui(f[n])||(f[n]=s);for(n=f.length;n<a.length;n++)f.push(s);l.poffset=f}else u!==void 0&&(l.poffset=u);var c=i._width||i.width,d=l.barwidth;if(qo(c)){var x=Array.prototype.slice.call(c,0,a.length);for(n=0;n<x.length;n++)ui(x[n])||(x[n]=d);for(n=x.length;n<a.length;n++)x.push(d);if(l.barwidth=x,u===void 0){for(f=[],n=0;n<a.length;n++)f.push(s+(d-x[n])/2);l.poffset=f}}else c!==void 0&&(l.barwidth=c,u===void 0&&(l.poffset=s+(d-c)/2))}}function w0e(e,r){for(var t=r.traces,n=xf(e),a=0;a<t.length;a++)for(var o=t[a],i=o[0].t,l=i.poffset,u=qo(l),s=i.barwidth,f=qo(s),c=0;c<o.length;c++){var d=o[c],x=d.w=f?s[c]:s;d.p===void 0&&(d.p=d[n],d["orig_"+n]=d[n]);var g=(u?l[c]:l)+x/2;d[n]=d.p+g}}function PI(e,r,t){var n=r.traces,a=r.minDiff,o=a/2;Hc.minDtick(e,r.minDiff,r.distinctPositions[0],t);for(var i=0;i<n.length;i++){var l=n[i],u=l[0],s=u.trace,f=[],c,d,x,g;for(g=0;g<l.length;g++)c=l[g],d=c.p-o,x=c.p+o,f.push(d,x);if(s.width||s.offset){var w=u.t,T=w.poffset,m=w.barwidth,k=qo(T),S=qo(m);for(g=0;g<l.length;g++){c=l[g];var b=k?T[g]:T,M=S?m[g]:m;d=c.p+b,x=d+M,f.push(d,x)}}s._extremes[e._id]=Hc.findExtremes(e,f,{padded:!1})}}function II(e,r){for(var t=r.traces,n=xf(e),a=0;a<t.length;a++){for(var o=t[a],i=o[0].trace,l=i.type==="scatter",u=i.orientation==="v",s=[],f=!1,c=0;c<o.length;c++){var d=o[c],x=l?0:d.b,g=l?u?d.y:d.x:x+d.s;d[n]=g,s.push(g),d.hasB&&s.push(x),(!d.hasB||!d.b)&&(f=!0)}let{ppadminus:w,ppadplus:T}=Eb(i,o);i._extremes[e._id]=Hc.findExtremes(e,s,{tozero:f,padded:!0,ppadplus:T,ppadminus:w})}}function M0e(e,r,t){var n=xf(e),a=r.traces,o,i,l,u,s,f,c;for(u=0;u<a.length;u++)if(o=a[u],i=o[0].trace,i.type==="funnel")for(c=o[0].t.offsetindex,s=0;s<o.length;s++)f=o[s],f.s!==bf&&r.put(f.p,c,-.5*f.s);for(u=0;u<a.length;u++){o=a[u],i=o[0].trace,l=i.type==="funnel",c=i.type==="barpolar"?0:o[0].t.offsetindex;var d=[];for(s=0;s<o.length;s++)if(f=o[s],f.s!==bf){var x;l?x=f.s:x=f.s+f.b;var g=r.put(f.p,c,x),w=g+x;f.b=g,f[n]=w,t.norm||(d.push(w),f.hasB&&d.push(g))}if(!t.norm){let{ppadminus:T,ppadplus:m}=Eb(i,o);i._extremes[e._id]=Hc.findExtremes(e,d,{tozero:!0,padded:!0,ppadplus:m,ppadminus:T})}}}function zI(e){for(var r=e.traces,t=0;t<r.length;t++)for(var n=r[t],a=n[0].t.offsetindex,o=0;o<n.length;o++){var i=n[o];i.s!==bf&&e.put(i.p,a,i.b+i.s)}}function T0e(e,r){for(var t=e.traces,n=0;n<t.length;n++){var a=t[n],o=a[0].trace,i=a[0].t.offsetindex;if(o.base===void 0)for(var l=new ap([a],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),u=0;u<a.length;u++){var s=a[u];if(s.p!==bf){var f=l.put(s.p,i,s.b+s.s);f&&(s.b=f)}}}}function Cb(e,r,t){var n=r.traces,a=xf(e),o=t.norm==="fraction"?1:100,i=o/1e9,l=e.l2c(e.c2l(0)),u=t.mode==="stack"?o:l;function s(h){return ui(e.c2l(h))&&(h<l-i||h>u+i||!ui(l))}for(var f=0;f<n.length;f++){for(var c=n[f],d=c[0].t.offsetindex,x=c[0].trace,g=[],w=!1,T=!1,m=0;m<c.length;m++){var k=c[m];if(k.s!==bf){var S=Math.abs(o/r.get(k.p,d,k.s));k.b*=S,k.s*=S;var b=k.b,M=b+k.s;k[a]=M,g.push(M),T=T||s(M),k.hasB&&(g.push(b),T=T||s(b)),(!k.hasB||!k.b)&&(w=!0)}}let{ppadminus:h,ppadplus:_}=Eb(x,c);x._extremes[e._id]=Hc.findExtremes(e,g,{tozero:w,padded:T,ppadplus:_,ppadminus:h})}}function Eb(e,r){if(e.orientation==="v"&&(e.text||e.texttemplate)&&e.textposition==="outside"&&(e.textangle==="auto"||e.textangle===0)){let n=function(o){return!o||typeof o!="string"?0:(o.match(d0e)||[]).length+1};var t;e.texttemplate?t=n(e.texttemplate):t=qo(e.text)?Math.max(...e.text.map(o=>n(o))):n(e.text);let a=e.outsidetextfont.size*h0e*t+v0e;return{ppadplus:r.some(o=>o.s<0)?a:0,ppadminus:r.some(o=>o.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function A0e(e,r,t,n){for(var a=xf(n),o=0;o<e.length;o++)for(var i=e[o],l=0;l<i.length;l++){var u=i[l],s=u[a];u._sMin=r[s],u._sMax=t[s]}}function k0e(e,r){var t=xf(r),n={},a,o,i,l=1/0,u=-1/0;for(a=0;a<e.length;a++)for(i=e[a],o=0;o<i.length;o++){var s=i[o].p;ui(s)&&(l=Math.min(l,s),u=Math.max(u,s))}var f=1e4/(u-l),c=n.round=function(y){return String(Math.round(f*(y-l)))},d={},x={},g=e.some(function(y){var v=y[0].trace;return"marker"in v&&v.marker.cornerradius});for(a=0;a<e.length;a++){i=e[a],i[0].t.extents=n;var w=i[0].t.poffset,T=qo(w);for(o=0;o<i.length;o++){var m=i[o],k=m[t]-m.w/2;if(ui(k)){var S=m[t]+m.w/2,b=c(m.p);n[b]?n[b]=[Math.min(k,n[b][0]),Math.max(S,n[b][1])]:n[b]=[k,S]}if(m.p0=m.p+(T?w[o]:w),m.p1=m.p0+m.w,m.s0=m.b,m.s1=m.s0+m.s,g){var M=Math.min(m.s0,m.s1)||0,h=Math.max(m.s0,m.s1)||0,_=m[t];d[_]=_ in d?Math.min(d[_],M):M,x[_]=_ in x?Math.max(x[_],h):h}}}g&&A0e(e,d,x,r)}function xf(e){return e._id.charAt(0)}FI.exports={crossTraceCalc:p0e,setGroupPositions:kb}});var UI=xe((Sxe,BI)=>{"use strict";var qI=Tb(),OI=NI().setGroupPositions;function S0e(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;s<o.length;s++){var f=o[s];f.visible===!0&&f.type==="scatter"&&f.xaxis===t._id&&f.yaxis===n._id&&(f.orientation==="h"?l.push(i[s]):f.orientation==="v"&&u.push(i[s]))}var c={mode:a.scattermode,gap:a.scattergap};OI(e,t,n,u,c),OI(e,n,t,l,c)}BI.exports=function(r,t){r._fullLayout.scattermode==="group"&&S0e(r,t);var n=t.xaxis,a=t.yaxis,o=n._id+a._id,i=r._fullLayout._scatterStackOpts[o];if(i){var l=r.calcdata,u,s,f,c,d,x,g,w,T,m,k,S,b,M,h;for(var _ in i){m=i[_];var y=m.traceIndices;if(y.length){for(k=m.stackgaps==="interpolate",S=m.groupnorm,m.orientation==="v"?(b="x",M="y"):(b="y",M="x"),h=new Array(y.length),u=0;u<h.length;u++)h[u]=!1;x=l[y[0]];var v=new Array(x.length);for(u=0;u<x.length;u++)v[u]=x[u][b];for(u=1;u<y.length;u++){for(d=l[y[u]],s=f=0;s<d.length;s++){for(g=d[s][b];g>v[f]&&f<v.length;f++)Lb(d,s,v[f],u,h,k,b),s++;if(g!==v[f]){for(c=0;c<u;c++)Lb(l[y[c]],f,g,c,h,k,b);v.splice(f,0,g)}f++}for(;f<v.length;f++)Lb(d,s,v[f],u,h,k,b),s++}var A=v.length;for(s=0;s<x.length;s++){for(w=x[s][M]=x[s].s,u=1;u<y.length;u++)d=l[y[u]],d[0].trace._rawLength=d[0].trace._length,d[0].trace._length=A,w+=d[s].s,d[s][M]=w;if(S)for(T=(S==="fraction"?w:w/100)||1,u=0;u<y.length;u++){var p=l[y[u]][s];p[M]/=T,p.sNorm=p.s/T}}for(u=0;u<y.length;u++){d=l[y[u]];var R=d[0].trace,E=qI.calcMarkerSize(R,R._rawLength),D=Array.isArray(E);if(E&&h[u]||D){var F=E;for(E=new Array(A),s=0;s<A;s++)E[s]=d[s].gap?0:D?F[d[s].i]:F}var z=new Array(A),I=new Array(A);for(s=0;s<A;s++)z[s]=d[s].x,I[s]=d[s].y;qI.calcAxisExpansion(r,R,n,a,z,I,E),d[0].t.orientation=m.orientation}}}}};function Lb(e,r,t,n,a,o,i){a[n]=!0;var l={i:null,gap:!0,s:0};if(l[i]=t,e.splice(r,0,l),r&&t===e[r-1][i]){var u=e[r-1];l.s=u.s,l.i=u.i,l.gap=u.gap}else o&&(l.s=C0e(e,r,t,i));r||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}function C0e(e,r,t,n){var a=e[r-1],o=e[r+1];return o?a?a.s+(o.s-a.s)*(t-a[n])/(o[n]-a[n]):o.s:a.s}});var ZI=xe((Cxe,WI)=>{"use strict";var E0e=Mt(),YI=pn(),Vc=YI.BADNUM,XI=YI.LOG_CLIP,HI=XI+.5,VI=XI-.5,ip=rr(),L0e=ip.segmentsIntersect,GI=ip.constrain,Rb=Sd();WI.exports=function(r,t){var n=t.trace||{},a=t.xaxis,o=t.yaxis,i=a.type==="log",l=o.type==="log",u=a._length,s=o._length,f=t.backoff,c=n.marker,d=t.connectGaps,x=t.baseTolerance,g=t.shape,w=g==="linear",T=n.fill&&n.fill!=="none",m=[],k=Rb.minTolerance,S=r.length,b=new Array(S),M=0,h,_,y,v,A,p,R,E,D,F,z,I,L,P,O,U;function V(Be){var We=r[Be];if(!We)return!1;var Xe=t.linearized?a.l2p(We.x):a.c2p(We.x),tr=t.linearized?o.l2p(We.y):o.c2p(We.y);if(Xe===Vc){if(i&&(Xe=a.c2p(We.x,!0)),Xe===Vc)return!1;l&&tr===Vc&&(Xe*=Math.abs(a._m*s*(a._m>0?HI:VI)/(o._m*u*(o._m>0?HI:VI)))),Xe*=1e3}if(tr===Vc){if(l&&(tr=o.c2p(We.y,!0)),tr===Vc)return!1;tr*=1e3}return[Xe,tr]}function K(Be,We,Xe,tr){var ir=Xe-Be,je=tr-We,Ke=.5-Be,Ce=.5-We,Fe=ir*ir+je*je,Qe=ir*Ke+je*Ce;if(Qe>0&&Qe<Fe){var er=Ke*je-Ce*ir;if(er*er<Fe)return!0}}var j,G;function q(Be,We){var Xe=Be[0]/u,tr=Be[1]/s,ir=Math.max(0,-Xe,Xe-1,-tr,tr-1);return ir&&j!==void 0&&K(Xe,tr,j,G)&&(ir=0),ir&&We&&K(Xe,tr,We[0]/u,We[1]/s)&&(ir=0),(1+Rb.toleranceGrowth*ir)*x}function J(Be,We){var Xe=Be[0]-We[0],tr=Be[1]-We[1];return Math.sqrt(Xe*Xe+tr*tr)}var te=Rb.maxScreensAway,Z=-u*te,ie=u*(1+te),Q=-s*te,re=s*(1+te),se=[[Z,Q,ie,Q],[ie,Q,ie,re],[ie,re,Z,re],[Z,re,Z,Q]],ee,ae,ce,Me,ke,Se;function ge(Be,We){for(var Xe=[],tr=0,ir=0;ir<4;ir++){var je=se[ir],Ke=L0e(Be[0],Be[1],We[0],We[1],je[0],je[1],je[2],je[3]);Ke&&(!tr||Math.abs(Ke.x-Xe[0][0])>1||Math.abs(Ke.y-Xe[0][1])>1)&&(Ke=[Ke.x,Ke.y],tr&&J(Ke,Be)<J(Xe[0],Be)?Xe.unshift(Ke):Xe.push(Ke),tr++)}return Xe}function Le(Be){if(Be[0]<Z||Be[0]>ie||Be[1]<Q||Be[1]>re)return[GI(Be[0],Z,ie),GI(Be[1],Q,re)]}function Ee(Be,We){if(Be[0]===We[0]&&(Be[0]===Z||Be[0]===ie)||Be[1]===We[1]&&(Be[1]===Q||Be[1]===re))return!0}function le(Be,We){var Xe=[],tr=Le(Be),ir=Le(We);return tr&&ir&&Ee(tr,ir)||(tr&&Xe.push(tr),ir&&Xe.push(ir)),Xe}function Y(Be,We,Xe){return function(tr,ir){var je=Le(tr),Ke=Le(ir),Ce=[];if(je&&Ke&&Ee(je,Ke))return Ce;je&&Ce.push(je),Ke&&Ce.push(Ke);var Fe=2*ip.constrain((tr[Be]+ir[Be])/2,We,Xe)-((je||tr)[Be]+(Ke||ir)[Be]);if(Fe){var Qe;je&&Ke?Qe=Fe>0==je[Be]>Ke[Be]?je:Ke:Qe=je||Ke,Qe[Be]+=Fe}return Ce}}var $;g==="linear"||g==="spline"?$=ge:g==="hv"||g==="vh"?$=le:g==="hvh"?$=Y(0,Z,ie):g==="vhv"&&($=Y(1,Q,re));function pe(Be,We){var Xe=We[0]-Be[0],tr=(We[1]-Be[1])/Xe,ir=(Be[1]*We[0]-We[1]*Be[0])/Xe;return ir>0?[tr>0?Z:ie,re]:[tr>0?ie:Z,Q]}function oe(Be){var We=Be[0],Xe=Be[1],tr=We===b[M-1][0],ir=Xe===b[M-1][1];if(!(tr&&ir))if(M>1){var je=We===b[M-2][0],Ke=Xe===b[M-2][1];tr&&(We===Z||We===ie)&&je?Ke?M--:b[M-1]=Be:ir&&(Xe===Q||Xe===re)&&Ke?je?M--:b[M-1]=Be:b[M++]=Be}else b[M++]=Be}function ve(Be){b[M-1][0]!==Be[0]&&b[M-1][1]!==Be[1]&&oe([ce,Me]),oe(Be),ke=null,ce=Me=0}var he=ip.isArrayOrTypedArray(c);function me(Be){if(Be&&f&&(Be.i=h,Be.d=r,Be.trace=n,Be.marker=he?c[Be.i]:c,Be.backoff=f),j=Be[0]/u,G=Be[1]/s,ee=Be[0]<Z?Z:Be[0]>ie?ie:0,ae=Be[1]<Q?Q:Be[1]>re?re:0,ee||ae){if(!M)b[M++]=[ee||Be[0],ae||Be[1]];else if(ke){var We=$(ke,Be);We.length>1&&(ve(We[0]),b[M++]=We[1])}else Se=$(b[M-1],Be)[0],b[M++]=Se;var Xe=b[M-1];ee&&ae&&(Xe[0]!==ee||Xe[1]!==ae)?(ke&&(ce!==ee&&Me!==ae?oe(ce&&Me?pe(ke,Be):[ce||ee,Me||ae]):ce&&Me&&oe([ce,Me])),oe([ee,ae])):ce-ee&&Me-ae&&oe([ee||ce,ae||Me]),ke=Be,ce=ee,Me=ae}else ke&&ve($(ke,Be)[0]),b[M++]=Be}for(h=0;h<S;h++)if(_=V(h),!!_){for(M=0,ke=null,me(_),h++;h<S;h++){if(v=V(h),!v){if(d)continue;break}if(!w||!t.simplify){me(v);continue}var be=V(h+1);if(F=J(v,_),!(!(T&&(M===0||M===S-1))&&F<q(v,be)*k)){for(E=[(v[0]-_[0])/F,(v[1]-_[1])/F],A=_,z=F,I=P=O=0,R=!1,y=v,h++;h<r.length;h++){if(p=be,be=V(h+1),!p){if(d)continue;break}if(D=[p[0]-_[0],p[1]-_[1]],U=D[0]*E[1]-D[1]*E[0],P=Math.min(P,U),O=Math.max(O,U),O-P>q(p,be))break;y=p,L=D[0]*E[0]+D[1]*E[1],L>z?(z=L,v=p,R=!1):L<I&&(I=L,A=p,R=!0)}if(R?(me(v),y!==A&&me(A)):(A!==_&&me(A),y!==v&&me(v)),me(y),h>=r.length||!p)break;me(p),_=p}}ke&&oe([ce||ke[0],Me||ke[1]]),m.push(b.slice(0,M))}var ye=g.slice(g.length-1);if(f&&ye!=="h"&&ye!=="v"){for(var de=!1,_e=-1,Ae=[],Ie=0;Ie<m.length;Ie++)for(var Pe=0;Pe<m[Ie].length-1;Pe++){var Ye=m[Ie][Pe],qe=m[Ie][Pe+1],Oe=E0e.applyBackoff(qe,Ye);(Oe[0]!==qe[0]||Oe[1]!==qe[1])&&(de=!0),Ae[_e+1]||(_e++,Ae[_e]=[Ye,[Oe[0],Oe[1]]])}return de?Ae:m}return m}});var KI=xe((Exe,$I)=>{"use strict";var JI={tonextx:1,tonexty:1,tonext:1};$I.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,c=-1,d=0,x=-1;for(o=0;o<n.length;o++)a=n[o][0].trace,i=a.stackgroup||"",i?i in s?u=s[i]:(u=s[i]=d,d++):a.fill in JI&&x>=0?u=x:(u=x=d,d++),u<c&&(f=!0),a._groupIndex=c=u;var g=n.slice();f&&g.sort(function(T,m){var k=T[0].trace,S=m[0].trace;return k._groupIndex-S._groupIndex||k.index-S.index});var w={};for(o=0;o<g.length;o++)a=g[o][0].trace,i=a.stackgroup||"",a.visible===!0?(a._nexttrace=null,a.fill in JI&&(l=w[i],a._prevtrace=l||null,l&&(l._nexttrace=a)),a._ownfill=a.fill&&(a.fill.slice(0,6)==="tozero"||a.fill==="toself"||a.fill.slice(0,2)==="to"&&!a._prevtrace),w[i]=a):a._prevtrace=a._nexttrace=a._ownfill=null;return g}});var rz=xe((Lxe,ez)=>{"use strict";var Ei=nt(),R0e=Cr(),Gc=rr(),_f=Gc.ensureSingle,jI=Gc.identity,Xt=Mt(),wf=wa(),D0e=ZI(),P0e=KI(),op=C5().tester;ez.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,c=P0e(r,t,n);if(l=a.selectAll("g.trace").data(c,function(x){return x[0].trace.uid}),l.enter().append("g").attr("class",function(x){return"trace scatter trace"+x[0].trace.uid}).style("stroke-miterlimit",2),l.order(),I0e(r,l,t),f){i&&(u=i());var d=Ei.transition().duration(o.duration).ease(o.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});d.each(function(){a.selectAll("g.trace").each(function(x,g){QI(r,g,t,x,c,this,o)})})}else l.each(function(x,g){QI(r,g,t,x,c,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function I0e(e,r,t){r.each(function(n){var a=_f(Ei.select(this),"g","fills");Xt.setClipUrl(a,t.layerClipId,e);var o=n[0].trace;o._ownFill=null,o._nextFill=null;var i=[];o._ownfill&&i.push("_ownFill"),o._nexttrace&&i.push("_nextFill");var l=a.selectAll("g").data(i,jI);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){o[u]=_f(Ei.select(this),"path","js-fill")})})}function QI(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;z0e(e,r,t,n,a);var s=!!i&&i.duration>0;function f(Y){return s?Y.transition():Y}var c=t.xaxis,d=t.yaxis,x=n[0].trace,g=x.line,w=Ei.select(o),T=_f(w,"g","errorbars"),m=_f(w,"g","lines"),k=_f(w,"g","points"),S=_f(w,"g","text");if(R0e.getComponentMethod("errorbars","plot")(e,T,t,i),x.visible!==!0)return;f(w).style("opacity",x.opacity);var b,M,h=x.fill.charAt(x.fill.length-1);h!=="x"&&h!=="y"&&(h="");var _,y;h==="y"?(_=1,y=d.c2p(0,!0)):h==="x"&&(_=0,y=c.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=w;var v="",A=[],p=x._prevtrace,R=null,E=null;p&&(v=p._prevRevpath||"",M=p._nextFill,A=p._ownPolygons,R=p._fillsegments,E=p._fillElement);var D,F,z="",I="",L,P,O,U,V,K,j=[];x._polygons=[];var G=[],q=[],J=Gc.noop;if(b=x._ownFill,wf.hasLines(x)||x.fill!=="none"){M&&M.datum(n),["hv","vh","hvh","vhv"].indexOf(g.shape)!==-1?(L=Xt.steps(g.shape),P=Xt.steps(g.shape.split("").reverse().join(""))):g.shape==="spline"?L=P=function(Y){var $=Y[Y.length-1];return Y.length>1&&Y[0][0]===$[0]&&Y[0][1]===$[1]?Xt.smoothclosed(Y.slice(1),g.smoothing):Xt.smoothopen(Y,g.smoothing)}:L=P=function(Y){return"M"+Y.join("L")},O=function(Y){return P(Y.reverse())},q=D0e(n,{xaxis:c,yaxis:d,trace:x,connectGaps:x.connectgaps,baseTolerance:Math.max(g.width||1,3)/4,shape:g.shape,backoff:g.backoff,simplify:g.simplify,fill:x.fill}),G=new Array(q.length);var te=0;for(u=0;u<q.length;u++){var Z,ie=q[u];!Z||!h?(Z=ie.slice(),G[te]=Z,te++):Z.push.apply(Z,ie)}x._fillElement=null,x._fillExclusionElement=E,x._fillsegments=G.slice(0,te),G=x._fillsegments,q.length&&(U=q[0][0].slice(),V=q[q.length-1],K=V[V.length-1].slice()),J=function(Y){return function($){if(D=L($),F=O($),z?h?(z+="L"+D.slice(1),I=F+("L"+I.slice(1))):(z+="Z"+D,I=F+"Z"+I):(z=D,I=F),wf.hasLines(x)){var pe=Ei.select(this);if(pe.datum(n),Y)f(pe.style("opacity",0).attr("d",D).call(Xt.lineGroupStyle)).style("opacity",1);else{var oe=f(pe);oe.attr("d",D),Xt.singleLineStyle(n,oe)}}}}}var Q=m.selectAll(".js-line").data(q);f(Q.exit()).style("opacity",0).remove(),Q.each(J(!1)),Q.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(Xt.lineGroupStyle).each(J(!0)),Xt.setClipUrl(Q,t.layerClipId,e);function re(Y){f(Y).attr("d","M0,0Z")}var se=function(){var Y=new Array(G.length);for(u=0;u<G.length;u++)Y[u]=op(G[u]);return Y},ee=function(Y){var $,pe;if(!Y||Y.length===0)for($=new Array(G.length),pe=0;pe<G.length;pe++){var oe=G[pe][0].slice(),ve=G[pe][G[pe].length-1].slice();oe[_]=ve[_]=y;var he=[ve,oe],me=he.concat(G[pe]);$[pe]=op(me)}else{for($=new Array(Y.length-1+G.length),pe=0;pe<Y.length-1;pe++)$[pe]=op(Y[pe]);var be=Y[Y.length-1].slice();for(be.reverse(),pe=0;pe<G.length;pe++)$[Y.length-1+pe]=op(G[pe].concat(be))}return $};q.length?(b?(b.datum(n),U&&K&&(h?(U[_]=K[_]=y,f(b).attr("d","M"+K+"L"+U+"L"+z.slice(1)).call(Xt.singleFillStyle,e),j=ee(null)):(f(b).attr("d",z+"Z").call(Xt.singleFillStyle,e),j=se())),x._polygons=j,x._fillElement=b):M&&(x.fill.slice(0,6)==="tonext"&&z&&v?(x.fill==="tonext"?(f(M).attr("d",z+"Z"+v+"Z").call(Xt.singleFillStyle,e),j=se(),x._polygons=j.concat(A)):(f(M).attr("d",z+"L"+v.slice(1)+"Z").call(Xt.singleFillStyle,e),j=ee(R),x._polygons=j),x._fillElement=M):re(M)),x._prevRevpath=I):(b?re(b):M&&re(M),x._prevRevpath=null),x._ownPolygons=j;function ae(Y){return Y.filter(function($){return!$.gap&&$.vis})}function ce(Y){return Y.filter(function($){return $.vis})}function Me(Y){return Y.filter(function($){return!$.gap})}function ke(Y){return Y.id}function Se(Y){if(Y.ids)return ke}function ge(){return!1}function Le(Y,$,pe){var oe,ve,he,me=pe[0].trace,be=wf.hasMarkers(me),ye=wf.hasText(me),de=Se(me),_e=ge,Ae=ge;if(be||ye){var Ie=jI,Pe=me.stackgroup,Ye=Pe&&e._fullLayout._scatterStackOpts[c._id+d._id][Pe].stackgaps==="infer zero";me.marker.maxdisplayed||me._needsCull?Ie=Ye?ce:ae:Pe&&!Ye&&(Ie=Me),be&&(_e=Ie),ye&&(Ae=Ie)}ve=Y.selectAll("path.point"),oe=ve.data(_e,de);var qe=oe.enter().append("path").classed("point",!0);s&&qe.call(Xt.pointStyle,me,e).call(Xt.translatePoints,c,d).style("opacity",0).transition().style("opacity",1),oe.order();var Oe;be&&(Oe=Xt.makePointStyleFns(me)),oe.each(function(Be){var We=Ei.select(this),Xe=f(We);he=Xt.translatePoint(Be,Xe,c,d),he?(Xt.singlePointStyle(Be,Xe,me,Oe,e),t.layerClipId&&Xt.hideOutsideRangePoint(Be,Xe,c,d,me.xcalendar,me.ycalendar),me.customdata&&We.classed("plotly-customdata",Be.data!==null&&Be.data!==void 0)):Xe.remove()}),s?oe.exit().transition().style("opacity",0).remove():oe.exit().remove(),ve=$.selectAll("g"),oe=ve.data(Ae,de),oe.enter().append("g").classed("textpoint",!0).append("text"),oe.order(),oe.each(function(Be){var We=Ei.select(this),Xe=f(We.select("text"));he=Xt.translatePoint(Be,Xe,c,d),he?t.layerClipId&&Xt.hideOutsideRangePoint(Be,We,c,d,me.xcalendar,me.ycalendar):We.remove()}),oe.selectAll("text").call(Xt.textPointStyle,me,e).each(function(Be){var We=c.c2p(Be.x),Xe=d.c2p(Be.y);Ei.select(this).selectAll("tspan.line").each(function(){f(Ei.select(this)).attr({x:We,y:Xe})})}),oe.exit().remove()}k.datum(n),S.datum(n),Le(k,S,n);var Ee=x.cliponaxis===!1,le=Ee?null:t.layerClipId;Xt.setClipUrl(k,le,e),Xt.setClipUrl(S,le,e)}function z0e(e,r,t,n,a){var o=t.xaxis,i=t.yaxis,l=Ei.extent(Gc.simpleMap(o.range,o.r2c)),u=Ei.extent(Gc.simpleMap(i.range,i.r2c)),s=n[0].trace;if(wf.hasMarkers(s)){var f=s.marker.maxdisplayed;if(f!==0){var c=n.filter(function(w){return w.x>=l[0]&&w.x<=l[1]&&w.y>=u[0]&&w.y<=u[1]}),d=Math.ceil(c.length/f),x=0;a.forEach(function(w,T){var m=w[0].trace;wf.hasMarkers(m)&&m.marker.maxdisplayed>0&&T<r&&x++});var g=Math.round(x*d/3+Math.floor(x/3)*d/7.1);n.forEach(function(w){delete w.vis}),c.forEach(function(w,T){Math.round((T+g)%d)===0&&(w.vis=!0)})}}}});var nz=xe((Rxe,tz)=>{"use strict";tz.exports={container:"marker",min:"cmin",max:"cmax"}});var iz=xe((Dxe,az)=>{"use strict";var lp=Ot();az.exports=function(r,t,n){var a={},o={_fullLayout:n},i=lp.getFromTrace(o,t,"x"),l=lp.getFromTrace(o,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),a.xLabel=lp.tickText(i,i.c2l(u),!0).text,a.yLabel=lp.tickText(l,l.c2l(s),!0).text,a}});var zb=xe((Pxe,oz)=>{"use strict";var Db=nt(),Mf=Mt(),F0e=Cr();function N0e(e){var r=Db.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=Db.select(this),a=t.trace||t[0].trace;Pb(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Db.select(this),a=t.trace||t[0].trace;Ib(n,a,e)}),r.selectAll("g.trace path.js-line").call(Mf.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Mf.fillGroupStyle,e,!1),F0e.getComponentMethod("errorbars","style")(r)}function Pb(e,r,t){Mf.pointStyle(e.selectAll("path.point"),r,t)}function Ib(e,r,t){Mf.textPointStyle(e.selectAll("text"),r,t)}function q0e(e,r,t){var n=r[0].trace;n.selectedpoints?(Mf.selectedPointStyle(t.selectAll("path.point"),n),Mf.selectedTextStyle(t.selectAll("text"),n)):(Pb(t,n,e),Ib(t,n,e))}oz.exports={style:N0e,stylePoints:Pb,styleText:Ib,styleOnSelect:q0e}});var sz=xe((Ixe,lz)=>{"use strict";var Tf=Xr(),O0e=wa();lz.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Tf.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var o=t.mcc||(r.marker||{}).color,i=t.mlcc||((r.marker||{}).line||{}).color;return a=o&&Tf.opacity(o)?o:i&&Tf.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?Tf.opacity(a)<.3?Tf.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Tf.opacity(n)&&O0e.hasLines(r)&&r.line.width?n:r.fillcolor)}});var cz=xe((zxe,fz)=>{"use strict";var sp=rr(),uz=so(),B0e=Cr(),U0e=sz(),Fb=Xr(),H0e=sp.fillText;fz.exports=function(r,t,n,a){var o=r.cd,i=o[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(n),c=[s,f],d=i.hoveron||"",x=i.mode.indexOf("markers")!==-1?3:.5,g=!!i.xperiodalignment,w=!!i.yperiodalignment;if(d.indexOf("points")!==-1){var T=function(I){if(g){var L=l.c2p(I.xStart),P=l.c2p(I.xEnd);return s>=Math.min(L,P)&&s<=Math.max(L,P)?0:1/0}var O=Math.max(3,I.mrc||0),U=1-1/O,V=Math.abs(l.c2p(I.x)-s);return V<O?U*V/O:V-O+U},m=function(I){if(w){var L=u.c2p(I.yStart),P=u.c2p(I.yEnd);return f>=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}var O=Math.max(3,I.mrc||0),U=1-1/O,V=Math.abs(u.c2p(I.y)-f);return V<O?U*V/O:V-O+U},k=function(I){var L=Math.max(x,I.mrc||0),P=l.c2p(I.x)-s,O=u.c2p(I.y)-f;return Math.max(Math.sqrt(P*P+O*O)-L,1-x/L)},S=uz.getDistanceFunction(a,T,m,k);if(uz.getClosest(o,S,r),r.index!==!1){var b=o[r.index],M=l.c2p(b.x,!0),h=u.c2p(b.y,!0),_=b.mrc||1;r.index=b.i;var y=o[0].t.orientation,v=y&&(b.sNorm||b.s),A=y==="h"?v:b.orig_x!==void 0?b.orig_x:b.x,p=y==="v"?v:b.orig_y!==void 0?b.orig_y:b.y;return sp.extendFlat(r,{color:U0e(i,b),x0:M-_,x1:M+_,xLabelVal:A,y0:h-_,y1:h+_,yLabelVal:p,spikeDistance:k(b),hovertemplate:i.hovertemplate}),H0e(b,i,r),B0e.getComponentMethod("errorbars","hoverInfo")(b,i,r),[r]}}function R(I){if(!I)return!1;var L=I.node();try{var P=new DOMPoint(c[0],c[1]);return L.isPointInFill(P)}catch(U){var O=L.ownerSVGElement.createSVGPoint();return O.x=c[0],O.y=c[1],L.isPointInFill(O)}}function E(I){var L,P=[],O=1/0,U=-1/0,V=1/0,K=-1/0,j;for(L=0;L<I.length;L++){var G=I[L];G.contains(c)&&(P.push(G),V=Math.min(V,G.ymin),K=Math.max(K,G.ymax))}if(P.length===0)return null;V=Math.max(V,0),K=Math.min(K,u._length),j=(V+K)/2;var q,J,te,Z,ie,Q,re;for(L=0;L<P.length;L++)for(J=P[L].pts,q=1;q<J.length;q++)Q=J[q-1][1],re=J[q][1],Q>j!=re>=j&&(Z=J[q-1][0],ie=J[q][0],re-Q&&(te=Z+(ie-Z)*(j-Q)/(re-Q),O=Math.min(O,te),U=Math.max(U,te)));return O=Math.max(O,0),U=Math.min(U,l._length),{x0:O,x1:U,y0:j,y1:j}}if(d.indexOf("fills")!==-1&&i._fillElement){var D=R(i._fillElement)&&!R(i._fillExclusionElement);if(D){var F=E(i._polygons);F===null&&(F={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var z=Fb.defaultLine;return Fb.opacity(i.fillcolor)?z=i.fillcolor:Fb.opacity((i.line||{}).color)&&(z=i.line.color),sp.extendFlat(r,{distance:r.maxHoverDistance,x0:F.x0,x1:F.x1,y0:F.y0,y1:F.y1,color:z,hovertemplate:!1}),delete r.index,i.text&&!sp.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var dz=xe((Fxe,hz)=>{"use strict";var vz=wa();hz.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,c,d=l.mode&&!vz.hasMarkers(l)&&!vz.hasText(l);if(d)return[];if(t===!1)for(u=0;u<n.length;u++)n[u].selected=0;else for(u=0;u<n.length;u++)s=n[u],f=a.c2p(s.x),c=o.c2p(s.y),s.i!==null&&t.contains([f,c],!1,u,r)?(i.push({pointNumber:s.i,x:a.c2d(s.x),y:o.c2d(s.y)}),s.selected=1):s.selected=0;return i}});var gz=xe((Nxe,pz)=>{"use strict";pz.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var qb=xe((qxe,bz)=>{"use strict";var up=Cr().traceIs,Nb=t3();bz.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(V0e(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function V0e(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=G0e(r,t,n);if(o){if(o.type==="histogram"&&n==={v:"y",h:"x"}[o.orientation||"v"]){e.type="linear";return}var i=n+"calendar",l=o[i],u={noMultiCategory:!up(o,"cartesian")||up(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,mz(o,n)){var s=yz(o),f=[];for(a=0;a<r.length;a++){var c=r[a];!up(c,"box-violin")||(c[n+"axis"]||n)!==t||(c[s]!==void 0?f.push(c[s][0]):c.name!==void 0?f.push(c.name):f.push("text"),c[i]!==l&&(l=void 0))}e.type=Nb(f,l,u)}else if(o.type==="splom"){var d=o.dimensions,x=d[o._axesDim[t]];x.visible&&(e.type=Nb(x.values,l,u))}else e.type=Nb(o[n]||[o[n+"0"]],l,u)}}}function G0e(e,r,t){for(var n=0;n<e.length;n++){var a=e[n];if(a.type==="splom"&&a._length>0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(mz(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function yz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function mz(e,r){var t=yz(e),n=up(e,"box-violin");return n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var _z=xe((Oxe,xz)=>{"use strict";var Y0e=sa().isTypedArraySpec;function X0e(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,o,i;if(r.axData)a=r.axData;else for(a=[],o=0;o<r.data.length;o++){var l=r.data[o];l[t+"axis"]===e._id&&a.push(l)}for(o=0;o<a.length;o++){var u=a[o][t];for(i=0;i<u.length;i++){var s=u[i];s!=null&&(n[s]=1)}}return Object.keys(n)}xz.exports=function(r,t,n,a){if(t.type==="category"){var o=r.categoryarray,i=Array.isArray(o)&&o.length>0||Y0e(o),l;i&&(l="array");var u=n("categoryorder",l),s;u==="array"&&(s=n("categoryarray")),!i&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=X0e(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var Tz=xe((Bxe,Mz)=>{"use strict";var wz=Xr(),W0e=Zi(),Z0e=rr();Mz.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(y,v){return Z0e.coerce2(r,t,a.attributes,y,v)}var l=i("linecolor",o),u=i("linewidth"),s=n("showline",a.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=wz.mix(o,a.bgColor,a.blend||W0e.lightFraction),c=i("gridcolor",f),d=i("gridwidth"),x=i("griddash"),g=n("showgrid",a.showGrid||!!c||!!d||!!x);if(g||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var w=wz.mix(t.gridcolor,a.bgColor,67),T=i("minor.gridcolor",w),m=i("minor.gridwidth",t.gridwidth||1),k=i("minor.griddash",t.griddash||"solid"),S=n("minor.showgrid",!!T||!!m||!!k);S||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var b=i("zerolinelayer"),M=i("zerolinecolor",o),h=i("zerolinewidth"),_=n("zeroline",a.showGrid||!!M||!!h);_||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var cp=xe((Uxe,Lz)=>{"use strict";var Az=it(),J0e=Cr(),Yc=rr(),$0e=wt(),K0e=Mi(),Ob=Ja(),kz=km(),Sz=Cm(),Q0e=Rm(),j0e=Dm(),ece=_z(),rce=Tz(),tce=M3(),Cz=b1(),fp=mn().WEEKDAY_PATTERN,nce=mn().HOUR_PATTERN;Lz.exports=function(r,t,n,a,o){var i=a.letter,l=a.font||{},u=a.splomStash||{},s=n("visible",!a.visibleDflt),f=t._template||{},c=t.type||f.type||"-",d;if(c==="date"){var x=J0e.getComponentMethod("calendars","handleDefaults");x(r,t,"calendar",a.calendar),a.noTicklabelmode||(d=n("ticklabelmode"))}!a.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var g="";(!a.noTicklabelposition||c==="multicategory")&&(g=Yc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:d==="period"?["outside","inside"]:i==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",g.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),Cz(t,o),tce(r,t,n,a),ece(r,t,n,a),a.noHover||(c!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var w=n("color"),T=w!==Ob.color.dflt?w:l.color,m=u.label||o._dfltTitle[i];if(j0e(r,t,n,c,a),!s)return t;n("title.text",m),Yc.coerceFont(n,"title.font",l,{overrideDflt:{size:Yc.bigFont(l.size),color:T}}),kz(r,t,n,c);var k=a.hasMinor;if(k&&($0e.newContainer(t,"minor"),kz(r,t,n,c,{isMinor:!0})),Q0e(r,t,n,c,a),Sz(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,Sz(r,t,n,a),a.isMinor=S}rce(r,t,n,{dfltColor:w,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:Ob}),k&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var b=c==="multicategory";if(!a.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),b){var M=n("showdividers");M&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if(K0e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:ace}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var h=0;h<t.rangebreaks.length;h++)if(t.rangebreaks[h].pattern===fp){t._hasDayOfWeekBreaks=!0;break}if(Cz(t,o),o._has("scattergl")||o._has("splom"))for(var _=0;_<a.data.length;_++){var y=a.data[_];(y.type==="scattergl"||y.type==="splom")&&(y.visible=!1,Yc.warn(y.type+" traces do not work on axes with rangebreaks. Setting trace "+y.index+" to `visible: false`."))}}return t};function ace(e,r,t){function n(d,x){return Yc.coerce(e,r,Ob.rangebreaks,d,x)}var a=n("enabled");if(a){var o=n("bounds");if(o&&o.length>=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=Ez(o[l]),u){i=fp;break}}var s=n("pattern",i);if(s===fp)for(l=0;l<2;l++)u=Ez(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case fp:if(!Az(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=o[l]=u;break;case nce:if(!Az(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=o[l]=u;break}if(t.autorange===!1){var f=t.range;if(f[0]<f[1]){if(o[0]<f[0]&&o[1]>f[1]){r.enabled=!1;return}}else if(o[0]>f[0]&&o[1]<f[1]){r.enabled=!1;return}}}else{var c=n("values");if(c&&c.length)n("dvalue");else{r.enabled=!1;return}}}}var ice={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function Ez(e){if(typeof e=="string")return ice[e.slice(0,3).toLowerCase()]}});var Bb=xe((Hxe,Rz)=>{"use strict";var oce=it(),vp=rr();Rz.exports=function(r,t,n,a){var o=a.counterAxes||[],i=a.overlayableAxes||[],l=a.letter,u=a.grid,s=a.overlayingDomain,f,c,d,x,g,w;u&&(c=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],c&&(d=u[l+"side"].split(" ")[0],x=u.domain[l][d==="right"||d==="top"?1:0])),c=c||[0,1],f=f||(oce(r.position)?"free":o[0]||"free"),d=d||(l==="x"?"bottom":"left"),x=x||0,g=0,w=!1;var T=vp.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),m=vp.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:d}},"side");if(T==="free"){if(l==="y"){var k=n("autoshift");k&&(x=m==="left"?s[0]:s[1],w=t.automargin?t.automargin:!0,g=m==="left"?-3:3),n("shift",g)}n("position",x)}n("automargin",w);var S=!1;if(i.length&&(S=vp.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!S){var b=n("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),vp.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var Bz=xe((Vxe,Oz)=>{"use strict";var Ys=rr(),Dz=Xr(),lce=eo().isUnifiedHover,sce=$3(),Pz=wt(),uce=Du(),Iz=Ja(),fce=qb(),zz=cp(),cce=vc(),Fz=Bb(),Hb=fn(),go=Hb.id2name,Nz=Hb.name2id,vce=mn().AX_ID_PATTERN,qz=Cr(),hp=qz.traceIs,Ub=qz.getComponentMethod;function dp(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Oz.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},c={},d={},x={},g={},w,T;for(w=0;w<n.length;w++){var m=n[w];if(hp(m,"cartesian")){var k;if(m.xaxis)k=go(m.xaxis),dp(o,k,m);else if(m.xaxes)for(T=0;T<m.xaxes.length;T++)dp(o,go(m.xaxes[T]),m);var S;if(m.yaxis)S=go(m.yaxis),dp(o,S,m);else if(m.yaxes)for(T=0;T<m.yaxes.length;T++)dp(o,go(m.yaxes[T]),m);if(m.type==="funnel"?m.orientation==="h"?(k&&(i[k]=!0),S&&(c[S]=!0)):S&&(l[S]=!0):m.type==="image"?(S&&(d[S]=!0),k&&(d[k]=!0)):(S&&(s[S]=!0,f[S]=!0),(!hp(m,"carpet")||m.type==="carpet"&&!m._cheater)&&k&&(u[k]=!0)),m.type==="carpet"&&m._cheater&&k&&(i[k]=!0),hp(m,"2dMap")&&(x[k]=!0,x[S]=!0),hp(m,"oriented")){var b=m.orientation==="h"?S:k;g[b]=!0}}}var M=t._subplots,h=M.xaxis,_=M.yaxis,y=Ys.simpleMap(h,go),v=Ys.simpleMap(_,go),A=y.concat(v),p=Dz.background;h.length&&_.length&&(p=Ys.coerce(r,t,uce,"plot_bgcolor"));var R=Dz.combine(p,t.paper_bgcolor),E,D,F,z,I;function L(){var ve=o[E]||[];I._traceIndices=ve.map(function(he){return he.index}),I._annIndices=[],I._shapeIndices=[],I._selectionIndices=[],I._imgIndices=[],I._subplotsWith=[],I._counterAxes=[],I._name=I._attr=E,I._id=D}function P(ve,he){return Ys.coerce(z,I,Iz,ve,he)}function O(ve,he){return Ys.coerce2(z,I,Iz,ve,he)}function U(ve){return ve==="x"?_:h}function V(ve,he){for(var me=ve==="x"?y:v,be=[],ye=0;ye<me.length;ye++){var de=me[ye];de!==he&&!(r[de]||{}).overlaying&&be.push(Nz(de))}return be}var K={x:U("x"),y:U("y")},j=K.x.concat(K.y),G={},q=[];function J(){var ve=z.matches;vce.test(ve)&&j.indexOf(ve)===-1&&(G[ve]=z.type,q=Object.keys(G))}var te=sce(r,t),Z=lce(te);for(w=0;w<A.length;w++){E=A[w],D=Nz(E),F=E.charAt(0),Ys.isPlainObject(r[E])||(r[E]={}),z=r[E],I=Pz.newContainer(t,E,F+"axis"),L();var ie=F==="x"&&!u[E]&&i[E]||F==="y"&&!s[E]&&l[E],Q=F==="y"&&(!f[E]&&c[E]||d[E]),re={hasMinor:!0,letter:F,font:t.font,outerTicks:x[E],showGrid:!g[E],data:o[E]||[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:ie,reverseDflt:Q,autotypenumbersDflt:a,splomStash:((t._splomAxes||{})[F]||{})[D],noAutotickangles:F==="y"};P("uirevision",t.uirevision),fce(z,I,P,re),zz(z,I,P,re,t);var se=Z&&F===te.charAt(0),ee=O("spikecolor",Z?I.color:void 0),ae=O("spikethickness",Z?1.5:void 0),ce=O("spikedash",Z?"dot":void 0),Me=O("spikemode",Z?"across":void 0),ke=O("spikesnap"),Se=P("showspikes",!!se||!!ee||!!ae||!!ce||!!Me||!!ke);Se||(delete I.spikecolor,delete I.spikethickness,delete I.spikedash,delete I.spikemode,delete I.spikesnap);var ge=go(z.overlaying),Le=[0,1];if(t[ge]!==void 0){var Ee=go(t[ge].anchor);t[Ee]!==void 0&&(Le=t[Ee].domain)}Fz(z,I,P,{letter:F,counterAxes:K[F],overlayableAxes:V(F,E),grid:t.grid,overlayingDomain:Le}),P("title.standoff"),J(),I._input=z}for(w=0;w<q.length;){D=q[w++],E=go(D),F=E.charAt(0),Ys.isPlainObject(r[E])||(r[E]={}),z=r[E],I=Pz.newContainer(t,E,F+"axis"),L();var le={letter:F,font:t.font,outerTicks:x[E],showGrid:!g[E],data:[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:a,splomStash:((t._splomAxes||{})[F]||{})[D]};P("uirevision",t.uirevision),I.type=G[D]||"linear",zz(z,I,P,le,t),Fz(z,I,P,{letter:F,counterAxes:K[F],overlayableAxes:V(F,E),grid:t.grid}),P("fixedrange"),P("modebardisable"),J(),I._input=z}var Y=Ub("rangeslider","handleDefaults"),$=Ub("rangeselector","handleDefaults");for(w=0;w<y.length;w++)E=y[w],z=r[E],I=t[E],Y(r,t,E),I.type==="date"&&$(z,I,t,v,I.calendar),P("fixedrange"),P("modebardisable");for(w=0;w<v.length;w++){E=v[w],z=r[E],I=t[E];var pe=t[go(I.anchor)],oe=Ub("rangeslider","isVisible")(pe);P("fixedrange",oe),P("modebardisable")}cce.handleDefaults(r,t,{axIds:j.concat(q).sort(Hb.idSort),axHasImage:d})}});var Vz=xe((Gxe,Hz)=>{"use strict";var hce=nt(),Uz=Cr(),pp=rr(),Na=Mt(),gp=Ot();Hz.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){gp.redrawComponents(r);return}function i(T){var m=T.xaxis,k=T.yaxis;o._defs.select("#"+T.clipId+"> rect").call(Na.setTranslate,0,0).call(Na.setScale,1,1),T.plot.call(Na.setTranslate,m._offset,k._offset).call(Na.setScale,1,1);var S=T.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(Na.setPointGroupScale,1,1),S.selectAll(".textpoint").call(Na.setTextPointsScale,1,1),S.call(Na.hideOutsideRangePoints,T)}function l(T,m){var k=T.plotinfo,S=k.xaxis,b=k.yaxis,M=S._length,h=b._length,_=!!T.xr1,y=!!T.yr1,v=[];if(_){var A=pp.simpleMap(T.xr0,S.r2l),p=pp.simpleMap(T.xr1,S.r2l),R=A[1]-A[0],E=p[1]-p[0];v[0]=(A[0]*(1-m)+m*p[0]-A[0])/(A[1]-A[0])*M,v[2]=M*(1-m+m*E/R),S.range[0]=S.l2r(A[0]*(1-m)+m*p[0]),S.range[1]=S.l2r(A[1]*(1-m)+m*p[1])}else v[0]=0,v[2]=M;if(y){var D=pp.simpleMap(T.yr0,b.r2l),F=pp.simpleMap(T.yr1,b.r2l),z=D[1]-D[0],I=F[1]-F[0];v[1]=(D[1]*(1-m)+m*F[1]-D[1])/(D[0]-D[1])*h,v[3]=h*(1-m+m*I/z),b.range[0]=S.l2r(D[0]*(1-m)+m*F[0]),b.range[1]=b.l2r(D[1]*(1-m)+m*F[1])}else v[1]=0,v[3]=h;gp.drawOne(r,S,{skipTitle:!0}),gp.drawOne(r,b,{skipTitle:!0}),gp.redrawComponents(r,[S._id,b._id]);var L=_?M/v[2]:1,P=y?h/v[3]:1,O=_?v[0]:0,U=y?v[1]:0,V=_?v[0]/v[2]*M:0,K=y?v[1]/v[3]*h:0,j=S._offset-V,G=b._offset-K;k.clipRect.call(Na.setTranslate,O,U).call(Na.setScale,1/L,1/P),k.plot.call(Na.setTranslate,j,G).call(Na.setScale,L,P),Na.setPointGroupScale(k.zoomScalePts,1/L,1/P),Na.setTextPointsScale(k.zoomScaleTxt,1/L,1/P)}var u;a&&(u=a());function s(){for(var T={},m=0;m<t.length;m++){var k=t[m],S=k.plotinfo.xaxis,b=k.plotinfo.yaxis;k.xr1&&(T[S._name+".range"]=k.xr1.slice()),k.yr1&&(T[b._name+".range"]=k.yr1.slice())}return u&&u(),Uz.call("relayout",r,T).then(function(){for(var M=0;M<t.length;M++)i(t[M].plotinfo)})}function f(){for(var T={},m=0;m<t.length;m++){var k=t[m],S=k.plotinfo.xaxis,b=k.plotinfo.yaxis;k.xr0&&(T[S._name+".range"]=k.xr0.slice()),k.yr0&&(T[b._name+".range"]=k.yr0.slice())}return Uz.call("relayout",r,T).then(function(){for(var M=0;M<t.length;M++)i(t[M].plotinfo)})}var c,d,x,g=hce.ease(n.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(x),x=null,f()});function w(){d=Date.now();for(var T=Math.min(1,(d-c)/n.duration),m=g(T),k=0;k<t.length;k++)l(t[k],m);d-c>n.duration?(s(),x=window.cancelAnimationFrame(w)):x=window.requestAnimationFrame(w)}return c=Date.now(),x=window.requestAnimationFrame(w),Promise.resolve()}});var Vb=xe(Vn=>{"use strict";var mp=nt(),Gz=Cr(),Xs=rr(),dce=bn(),pce=Mt(),Yz=B0().getModuleCalcData,Dl=fn(),Li=mn(),gce=hl(),st=Xs.ensureSingle;function yp(e,r,t){return Xs.ensureSingle(e,r,t,function(n){n.datum(t)})}var Ws=Li.zindexSeparator;Vn.name="cartesian";Vn.attr=["xaxis","yaxis"];Vn.idRoot=["x","y"];Vn.idRegex=Li.idRegex;Vn.attrRegex=Li.attrRegex;Vn.attributes=gz();Vn.layoutAttributes=Ja();Vn.supplyLayoutDefaults=Bz();Vn.transitionAxes=Vz();Vn.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,o=t.cartesian,i=o,l={},u={},s,f,c;for(s=0;s<i.length;s++){var d=i[s].split("y");l[d[0]]=1,u["y"+d[1]]=1}for(s=0;s<n.length;s++)f=n[s],l[f]||(c=(e[Dl.id2name(f)]||{}).anchor,Li.idRegex.y.test(c)||(c="y"),o.push(f+c),i.push(f+c),u[c]||(u[c]=1,Xs.pushUnique(a,c)));for(s=0;s<a.length;s++)c=a[s],u[c]||(f=(e[Dl.id2name(c)]||{}).anchor,Li.idRegex.x.test(f)||(f="x"),o.push(f+c),i.push(f+c),l[f]||(l[f]=1,Xs.pushUnique(n,f)));if(!i.length){f="",c="";for(var x in e)if(Li.attrRegex.test(x)){var g=x.charAt(0);g==="x"?(!f||+x.slice(5)<+f.slice(5))&&(f=x):(!c||+x.slice(5)<+c.slice(5))&&(c=x)}f=f?Dl.name2id(f):"x",c=c?Dl.name2id(c):"y",n.push(f),a.push(c),o.push(f+c)}};Vn.plot=function(e,r,t,n){var a=e._fullLayout,o=a._subplots.cartesian,i=e.calcdata,l;if(!Array.isArray(r))for(r=[],l=0;l<i.length;l++)r.push(l);for(var u=a._zindices,s=0;s<u.length;s++){var f=u[s];for(l=0;l<o.length;l++){var c=o[l],d=a._plots[c];if(s>0){var x=d.id;if(x.indexOf(Ws)!==-1)continue;x+=Ws+(s+1),d=Xs.extendFlat({},d,{id:x,plot:a._cartesianlayer.selectAll(".subplot").select("."+x)})}for(var g=[],w,T=0;T<i.length;T++){var m=i[T],k=m[0].trace;f===(k.zorder||0)&&k.xaxis+k.yaxis===c&&((r.indexOf(k.index)!==-1||k.carpet)&&(w&&w[0].trace.xaxis+w[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(k.fill)!==-1&&g.indexOf(w)===-1&&g.push(w),g.push(m)),w=m)}Xz(e,d,g,t,n)}}};function Xz(e,r,t,n,a){for(var o=Li.traceLayerClasses,i=e._fullLayout,l=i._zindices,u=i._modules,s,f,c,d=[],x=[],g=0;g<l.length;g++)for(var w=l[g],T=0;T<u.length;T++){s=u[T];var m=s.name,k=Gz.modules[m].categories;if(k.svg){var S=s.layerName||m+"layer",b=S+(g?Number(g)+1:""),M=s.plot;f=Yz(t,M,w),c=f[0],t=f[1],c.length&&d.push({i:o.indexOf(S),zindex:g,className:b,plotMethod:M,cdModule:c}),k.zoomScale&&x.push("."+b)}}d.sort(function(y,v){return(y.zindex||0)-(v.zindex||0)||y.i-v.i});var h=r.plot.selectAll("g.mlayer").data(d,function(y){return y.className});if(h.enter().append("g").attr("class",function(y){return y.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),h.exit().remove(),h.order(),h.each(function(y){var v=mp.select(this),A=y.className;y.plotMethod(e,r,y.cdModule,v,n,a),Li.clipOnAxisFalseQuery.indexOf("."+A)===-1&&pce.setClipUrl(v,r.layerClipId,e)}),i._has("scattergl")&&(s=Gz.getModule("scattergl"),c=Yz(t,s)[0],s.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Li.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),x.length)){var _=r.plot.selectAll(x.join(",")).selectAll(".trace");r.zoomScalePts=_.selectAll("path.point"),r.zoomScaleTxt=_.selectAll(".textpoint")}}Vn.clean=function(e,r,t,n){var a=n._plots||{},o=r._plots||{},i=n._subplots||{},l,u,s;if(n._hasOnlyLargeSploms&&!r._hasOnlyLargeSploms)for(s in a)l=a[s],l.plotgroup&&l.plotgroup.remove();var f=n._has&&n._has("gl"),c=r._has&&r._has("gl");if(f&&!c)for(s in a)l=a[s],l._scene&&l._scene.destroy();if(i.xaxis&&i.yaxis){var d=Dl.listIds({_fullLayout:n});for(u=0;u<d.length;u++){var x=d[u];r[Dl.id2name(x)]||n._infolayer.selectAll(".g-"+x+"title").remove()}}var g=n._has&&n._has("cartesian"),w=r._has&&r._has("cartesian");if(g&&!w)Zz(n._cartesianlayer.selectAll(".subplot"),n),n._defs.selectAll(".axesclip").remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(i.cartesian)for(u=0;u<i.cartesian.length;u++){var T=i.cartesian[u];if(T.indexOf(Ws)===-1&&!o[T]){var m="."+T+",."+T+"-x,."+T+"-y";n._cartesianlayer.selectAll(m).remove(),Jz(T,n)}}};Vn.drawFramework=function(e){var r=e._fullLayout,t=e.calcdata,n,a={};for(n=0;n<t.length;n++){var o=t[n][0],i=o.trace,l=i.zorder||0;a[l]||(a[l]=[]),a[l].push(o)}var u=Object.keys(a).map(Number).sort(Xs.sorterAsc);u.length||(u=[0]),r._zindices=u;var s=yce(e),f=s.length,c=[];for(n=0;n<f;n++)c[n]=s[n].slice();for(var d=1;d<u.length;d++){var x=[];for(n=0;n<f;n++)x[n]=s[n].slice(),x[n][0]+=Ws+(d+1);c=c.concat(x)}var g=r._cartesianlayer.selectAll(".subplot").data(c,String);g.enter().append("g").attr("class",function(w){return"subplot "+w[0]}),g.order(),g.exit().call(Zz,r),g.each(function(w){var T=w[0],m=T.indexOf(Ws),k=m!==-1,S=k?T.slice(0,m):T,b=r._plots[T];b||(b=Xs.extendFlat({},r._plots[S]),b&&(b.id=T,r._plots[T]=b,r._subplots.cartesian.push(T))),b&&(b.plotgroup=mp.select(this),Wz(e,b),k||(b.draglayer=st(r._draggers,"g",T)))})};Vn.rangePlot=function(e,r,t){Wz(e,r),Xz(e,r,t),dce.style(e)};function yce(e){var r=e._fullLayout,t=r._zindices.length,n=r._subplots.cartesian,a=n.length,o,i,l,u,s,f,c=[],d=[];for(o=0;o<a;o++){l=n[o],u=r._plots[l],s=u.xaxis,f=u.yaxis;var x=s._mainAxis,g=f._mainAxis,w=x._id+g._id,T=r._plots[w];u.overlays=[],w!==l&&T?(u.mainplot=w,u.mainplotinfo=T,d.push(l)):(u.mainplot=void 0,u.mainplotinfo=void 0,c.push(l))}for(o=0;o<d.length;o++)l=d[o],u=r._plots[l],u.mainplotinfo.overlays.push(u);var m=c.concat(d),k=[];for(o=0;o<a;o++){l=m[o],u=r._plots[l],s=u.xaxis,f=u.yaxis;for(var S=[],b=1;b<=t;b++){var M="";for(b>1&&(M+=Ws+b),S.push(l+M),i=0;i<u.overlays.length;i++)S.push(u.overlays[i].id+M)}S=S.concat([s.layer,f.layer,s.overlaying||"",f.overlaying||""]),k.push(S)}return k}function Wz(e,r){var t=e._fullLayout,n=r.plotgroup,a=r.id,o=a.indexOf(Ws),i=o!==-1,l=Li.layerValue2layerClass[r.xaxis.layer],u=Li.layerValue2layerClass[r.yaxis.layer],s=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.xaxislayer=st(n,"g","xaxislayer-above"),r.yaxislayer=st(n,"g","yaxislayer-above");else{if(!i){var d=st(n,"g","layer-subplot");r.shapelayer=st(d,"g","shapelayer"),r.imagelayer=st(d,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=st(n,"g","minor-gridlayer"),r.gridlayer=st(n,"g","gridlayer"),r.zerolinelayer=st(n,"g","zerolinelayer"));var x=st(n,"g","layer-between");r.shapelayerBetween=st(x,"g","shapelayer"),r.imagelayerBetween=st(x,"g","imagelayer"),st(n,"path","xlines-below"),st(n,"path","ylines-below"),r.overlinesBelow=st(n,"g","overlines-below"),st(n,"g","xaxislayer-below"),st(n,"g","yaxislayer-below"),r.overaxesBelow=st(n,"g","overaxes-below")}r.overplot=st(n,"g","overplot"),r.plot=st(r.overplot,"g",a),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=st(n,"g","zerolinelayer-above"),i||(r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.overlinesAbove=st(n,"g","overlines-above"),st(n,"g","xaxislayer-above"),st(n,"g","yaxislayer-above"),r.overaxesAbove=st(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+u),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+u))}else{var g=c.plotgroup,w=a+"-x",T=a+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,st(c.overlinesBelow,"path",w),st(c.overlinesBelow,"path",T),st(c.overaxesBelow,"g",w),st(c.overaxesBelow,"g",T),r.plot=st(c.overplot,"g",a),st(c.overlinesAbove,"path",w),st(c.overlinesAbove,"path",T),st(c.overaxesAbove,"g",w),st(c.overaxesAbove,"g",T),r.xlines=g.select(".overlines-"+l).select("."+w),r.ylines=g.select(".overlines-"+u).select("."+T),r.xaxislayer=g.select(".overaxes-"+l).select("."+w),r.yaxislayer=g.select(".overaxes-"+u).select("."+T)}i||(s||(yp(r.minorGridlayer,"g",r.xaxis._id),yp(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(Dl.idSort),yp(r.gridlayer,"g",r.xaxis._id),yp(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(m){return m[0]}).sort(Dl.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function Zz(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=mp.select(this);f.remove(),Jz(s,r),t[s]=!0});for(var n in r._plots)for(var a=r._plots[n],o=a.overlays||[],i=0;i<o.length;i++){var l=o[i];t[l.id]&&l.plot.selectAll(".trace").remove()}}}function Jz(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}Vn.toSVG=function(e){var r=e._fullLayout._glimages,t=mp.select(e).selectAll(".svg-container"),n=t.filter(function(o,i){return i===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function a(){var o=this,i=o.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:gce.svg,"xlink:href":i,preserveAspectRatio:"none",x:0,y:0,width:o.style.width,height:o.style.height})}n.each(a)};Vn.updateFx=J5().updateFx});var Kz=xe((Xxe,$z)=>{"use strict";var bp=wa();$z.exports={hasLines:bp.hasLines,hasMarkers:bp.hasMarkers,hasText:bp.hasText,isBubble:bp.isBubble,attributes:Bs(),layoutAttributes:$h(),supplyDefaults:oI(),crossTraceDefaults:fI(),supplyLayoutDefaults:vI(),calc:Tb().calc,crossTraceCalc:UI(),arraysToCalcdata:tp(),plot:rz(),colorbar:nz(),formatLabels:iz(),style:zb().style,styleOnSelect:zb().styleOnSelect,hoverPoints:cz(),selectPoints:dz(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Vb(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var eF=xe((Wxe,jz)=>{"use strict";var mce=nt(),bce=Xr(),Qz=B5(),Gb=rr(),xce=Gb.strScale,_ce=Gb.strRotate,wce=Gb.strTranslate;jz.exports=function(r,t,n){var a=r.node(),o=Qz[n.arrowhead||0],i=Qz[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=o.backoff*l+n.standoff,d=i.backoff*u+n.startstandoff,x,g,w,T;if(a.nodeName==="line"){x={x:+r.attr("x1"),y:+r.attr("y1")},g={x:+r.attr("x2"),y:+r.attr("y2")};var m=x.x-g.x,k=x.y-g.y;if(w=Math.atan2(k,m),T=w+Math.PI,c&&d&&c+d>Math.sqrt(m*m+k*k)){D();return}if(c){if(c*c>m*m+k*k){D();return}var S=c*Math.cos(w),b=c*Math.sin(w);g.x+=S,g.y+=b,r.attr({x2:g.x,y2:g.y})}if(d){if(d*d>m*m+k*k){D();return}var M=d*Math.cos(w),h=d*Math.sin(w);x.x-=M,x.y-=h,r.attr({x1:x.x,y1:x.y})}}else if(a.nodeName==="path"){var _=a.getTotalLength(),y="";if(_<c+d){D();return}var v=a.getPointAtLength(0),A=a.getPointAtLength(.1);w=Math.atan2(v.y-A.y,v.x-A.x),x=a.getPointAtLength(Math.min(d,_)),y="0px,"+d+"px,";var p=a.getPointAtLength(_),R=a.getPointAtLength(_-.1);T=Math.atan2(p.y-R.y,p.x-R.x),g=a.getPointAtLength(Math.max(0,_-c));var E=y?d+c:c;y+=_-E+"px,"+_+"px",r.style("stroke-dasharray",y)}function D(){r.style("stroke-dasharray","0px,100px")}function F(z,I,L,P){z.path&&(z.noRotate&&(L=0),mce.select(a.parentNode).append("path").attr({class:r.attr("class"),d:z.path,transform:wce(I.x,I.y)+_ce(L*180/Math.PI)+xce(P)}).style({fill:bce.rgb(n.arrowcolor),"stroke-width":0}))}s&&F(i,x,w,u),f&&F(o,g,T,l)}});var xp=xe((Zxe,iF)=>{"use strict";var rF=nt(),Yb=Cr(),Mce=bn(),Il=rr(),Xb=Il.strTranslate,Wc=Ot(),Zs=Xr(),Oo=Mt(),tF=so(),Wb=Un(),Zb=Ml(),Xc=Ai(),Tce=wt().arrayEditor,Ace=eF();iF.exports={draw:kce,drawOne:nF,drawRaw:aF};function kce(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&nF(e,t);return Mce.previousPromises(e)}function nF(e,r){var t=e._fullLayout,n=t.annotations[r]||{},a=Wc.getFromId(e,n.xref),o=Wc.getFromId(e,n.yref);a&&a.setScale(),o&&o.setScale(),aF(e,n,r,!1,a,o)}function Pl(e,r,t,n,a){var o=a[t],i=a[t+"ref"],l=t.indexOf("y")!==-1,u=Wc.getRefType(i)==="domain",s=l?n.h:n.w;return e?u?o+(l?-r:r)/e._length:e.p2r(e.r2p(o)+r):o+(l?-r:r)/s}function aF(e,r,t,n,a,o){var i=e._fullLayout,l=e._fullLayout._size,u=e._context.edits,s,f;n?(s="annotation-"+n,f=n+".annotations"):(s="annotation",f="annotations");var c=Tce(e.layout,f,r),d=c.modifyBase,x=c.modifyItem,g=c.getUpdateObj;i._infolayer.selectAll("."+s+'[data-index="'+t+'"]').remove();var w="clip"+i._uid+"_ann"+t;if(!r._input||r.visible===!1){rF.selectAll("#"+w).remove();return}var T={x:{},y:{}},m=+r.textangle||0,k=i._infolayer.append("g").classed(s,!0).attr("data-index",String(t)).style("opacity",r.opacity),S=k.append("g").classed("annotation-text-g",!0),b=u[r.showarrow?"annotationTail":"annotationPosition"],M=r.captureevents||u.annotationText||b;function h(P){var O={index:t,annotation:r._input,fullAnnotation:r,event:P};return n&&(O.subplotId=n),O}var _=S.append("g").style("pointer-events",M?"all":null).call(Zb,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",h(rF.event))});r.hovertext&&_.on("mouseover",function(){var P=r.hoverlabel,O=P.font,U=this.getBoundingClientRect(),V=e.getBoundingClientRect();tF.loneHover({x0:U.left-V.left,x1:U.right-V.left,y:(U.top+U.bottom)/2-V.top,text:r.hovertext,color:P.bgcolor,borderColor:P.bordercolor,fontFamily:O.family,fontSize:O.size,fontColor:O.color,fontWeight:O.weight,fontStyle:O.style,fontVariant:O.variant,fontShadow:O.fontShadow,fontLineposition:O.fontLineposition,fontTextcase:O.fontTextcase},{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:e})}).on("mouseout",function(){tF.loneUnhover(i._hoverlayer.node())});var y=r.borderwidth,v=r.borderpad,A=y+v,p=_.append("rect").attr("class","bg").style("stroke-width",y+"px").call(Zs.stroke,r.bordercolor).call(Zs.fill,r.bgcolor),R=r.width||r.height,E=i._topclips.selectAll("#"+w).data(R?[0]:[]);E.enter().append("clipPath").classed("annclip",!0).attr("id",w).append("rect"),E.exit().remove();var D=r.font,F=i._meta?Il.templateString(r.text,i._meta):r.text,z=_.append("text").classed("annotation-text",!0).text(F);function I(P){return P.call(Oo.font,D).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),Wb.convertToTspans(P,e,L),P}function L(){var P=z.selectAll("a");if(P.size()===1&&P.text()===z.text()){var O=_.insert("a",":first-child").attr({"xlink:xlink:href":P.attr("xlink:href"),"xlink:xlink:show":P.attr("xlink:show")}).style({cursor:"pointer"});O.node().appendChild(p.node())}var U=_.select(".annotation-text-math-group"),V=!U.empty(),K=Oo.bBox((V?U:z).node()),j=K.width,G=K.height,q=r.width||j,J=r.height||G,te=Math.round(q+2*A),Z=Math.round(J+2*A);function ie(tr,ir){return ir==="auto"&&(tr<1/3?ir="left":tr>2/3?ir="right":ir="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ir]}for(var Q=!1,re=["x","y"],se=0;se<re.length;se++){var ee=re[se],ae=r[ee+"ref"]||ee,ce=r["a"+ee+"ref"],Me={x:a,y:o}[ee],ke=(m+(ee==="x"?0:-90))*Math.PI/180,Se=te*Math.cos(ke),ge=Z*Math.sin(ke),Le=Math.abs(Se)+Math.abs(ge),Ee=r[ee+"anchor"],le=r[ee+"shift"]*(ee==="x"?1:-1),Y=T[ee],$,pe,oe,ve,he,me=Wc.getRefType(ae);if(Me&&me!=="domain"){var be=Me.r2fraction(r[ee]);(be<0||be>1)&&(ce===ae?(be=Me.r2fraction(r["a"+ee]),(be<0||be>1)&&(Q=!0)):Q=!0),$=Me._offset+Me.r2p(r[ee]),ve=.5}else{var ye=me==="domain";ee==="x"?(oe=r[ee],$=ye?Me._offset+Me._length*oe:$=l.l+l.w*oe):(oe=1-r[ee],$=ye?Me._offset+Me._length*oe:$=l.t+l.h*oe),ve=r.showarrow?.5:oe}if(r.showarrow){Y.head=$;var de=r["a"+ee];if(he=Se*ie(.5,r.xanchor)-ge*ie(.5,r.yanchor),ce===ae){var _e=Wc.getRefType(ce);_e==="domain"?(ee==="y"&&(de=1-de),Y.tail=Me._offset+Me._length*de):_e==="paper"?ee==="y"?(de=1-de,Y.tail=l.t+l.h*de):Y.tail=l.l+l.w*de:Y.tail=Me._offset+Me.r2p(de),pe=he}else Y.tail=$+de,pe=he+de;Y.text=Y.tail+he;var Ae=i[ee==="x"?"width":"height"];if(ae==="paper"&&(Y.head=Il.constrain(Y.head,1,Ae-1)),ce==="pixel"){var Ie=-Math.max(Y.tail-3,Y.text),Pe=Math.min(Y.tail+3,Y.text)-Ae;Ie>0?(Y.tail+=Ie,Y.text+=Ie):Pe>0&&(Y.tail-=Pe,Y.text-=Pe)}Y.tail+=le,Y.head+=le}else he=Le*ie(ve,Ee),pe=he,Y.text=$+he;Y.text+=le,he+=le,pe+=le,r["_"+ee+"padplus"]=Le/2+pe,r["_"+ee+"padminus"]=Le/2-pe,r["_"+ee+"size"]=Le,r["_"+ee+"shift"]=he}if(Q){_.remove();return}var Ye=0,qe=0;if(r.align!=="left"&&(Ye=(q-j)*(r.align==="center"?.5:1)),r.valign!=="top"&&(qe=(J-G)*(r.valign==="middle"?.5:1)),V)U.select("svg").attr({x:A+Ye-1,y:A+qe}).call(Oo.setClipUrl,R?w:null,e);else{var Oe=A+qe-K.top,Be=A+Ye-K.left;z.call(Wb.positionText,Be,Oe).call(Oo.setClipUrl,R?w:null,e)}E.select("rect").call(Oo.setRect,A,A,q,J),p.call(Oo.setRect,y/2,y/2,te-y,Z-y),_.call(Oo.setTranslate,Math.round(T.x.text-te/2),Math.round(T.y.text-Z/2)),S.attr({transform:"rotate("+m+","+T.x.text+","+T.y.text+")"});var We=function(tr,ir){k.selectAll(".annotation-arrow-g").remove();var je=T.x.head,Ke=T.y.head,Ce=T.x.tail+tr,Fe=T.y.tail+ir,Qe=T.x.text+tr,er=T.y.text+ir,wr=Il.rotationXYMatrix(m,Qe,er),Vr=Il.apply2DTransform(wr),Mr=Il.apply2DTransform2(wr),Dr=+p.attr("width"),Qr=+p.attr("height"),Sr=Qe-.5*Dr,Wr=Sr+Dr,bt=er-.5*Qr,Jr=bt+Qr,lt=[[Sr,bt,Sr,Jr],[Sr,Jr,Wr,Jr],[Wr,Jr,Wr,bt],[Wr,bt,Sr,bt]].map(Mr);if(!lt.reduce(function(gt,Et){return gt^!!Il.segmentsIntersect(je,Ke,je+1e6,Ke+1e6,Et[0],Et[1],Et[2],Et[3])},!1)){lt.forEach(function(gt){var Et=Il.segmentsIntersect(Ce,Fe,je,Ke,gt[0],gt[1],gt[2],gt[3]);Et&&(Ce=Et.x,Fe=Et.y)});var Cn=r.arrowwidth,lr=r.arrowcolor,Fr=r.arrowside,et=k.append("g").style({opacity:Zs.opacity(lr)}).classed("annotation-arrow-g",!0),Br=et.append("path").attr("d","M"+Ce+","+Fe+"L"+je+","+Ke).style("stroke-width",Cn+"px").call(Zs.stroke,Zs.rgb(lr));if(Ace(Br,Fr,r),u.annotationPosition&&Br.node().parentNode&&!n){var Gr=je,pt=Ke;if(r.standoff){var at=Math.sqrt(Math.pow(je-Ce,2)+Math.pow(Ke-Fe,2));Gr+=r.standoff*(Ce-je)/at,pt+=r.standoff*(Fe-Ke)/at}var Ct=et.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ce-Gr)+","+(Fe-pt),transform:Xb(Gr,pt)}).style("stroke-width",Cn+6+"px").call(Zs.stroke,"rgba(0,0,0,0)").call(Zs.fill,"rgba(0,0,0,0)"),Zt,St;Xc.init({element:Ct.node(),gd:e,prepFn:function(){var gt=Oo.getTranslate(_);Zt=gt.x,St=gt.y,a&&a.autorange&&d(a._name+".autorange",!0),o&&o.autorange&&d(o._name+".autorange",!0)},moveFn:function(gt,Et){var Lt=Vr(Zt,St),da=Lt[0]+gt,Wn=Lt[1]+Et;_.call(Oo.setTranslate,da,Wn),x("x",Pl(a,gt,"x",l,r)),x("y",Pl(o,Et,"y",l,r)),r.axref===r.xref&&x("ax",Pl(a,gt,"ax",l,r)),r.ayref===r.yref&&x("ay",Pl(o,Et,"ay",l,r)),et.attr("transform",Xb(gt,Et)),S.attr({transform:"rotate("+m+","+da+","+Wn+")"})},doneFn:function(){Yb.call("_guiRelayout",e,g());var gt=document.querySelector(".js-notes-box-panel");gt&>.redraw(gt.selectedObj)}})}}};if(r.showarrow&&We(0,0),b){var Xe;Xc.init({element:_.node(),gd:e,prepFn:function(){Xe=S.attr("transform")},moveFn:function(tr,ir){var je="pointer";if(r.showarrow)r.axref===r.xref?x("ax",Pl(a,tr,"ax",l,r)):x("ax",r.ax+tr),r.ayref===r.yref?x("ay",Pl(o,ir,"ay",l.w,r)):x("ay",r.ay+ir),We(tr,ir);else{if(n)return;var Ke,Ce;if(a)Ke=Pl(a,tr,"x",l,r);else{var Fe=r._xsize/l.w,Qe=r.x+(r._xshift-r.xshift)/l.w-Fe/2;Ke=Xc.align(Qe+tr/l.w,Fe,0,1,r.xanchor)}if(o)Ce=Pl(o,ir,"y",l,r);else{var er=r._ysize/l.h,wr=r.y-(r._yshift+r.yshift)/l.h-er/2;Ce=Xc.align(wr-ir/l.h,er,0,1,r.yanchor)}x("x",Ke),x("y",Ce),(!a||!o)&&(je=Xc.getCursor(a?.5:Ke,o?.5:Ce,r.xanchor,r.yanchor))}S.attr({transform:Xb(tr,ir)+Xe}),Zb(_,je)},clickFn:function(tr,ir){r.captureevents&&e.emit("plotly_clickannotation",h(ir))},doneFn:function(){Zb(_),Yb.call("_guiRelayout",e,g());var tr=document.querySelector(".js-notes-box-panel");tr&&tr.redraw(tr.selectedObj)}})}}u.annotationText?z.call(Wb.makeEditable,{delegate:_,gd:e}).call(I).on("edit",function(P){r.text=P,this.call(I),x("text",P),a&&a.autorange&&d(a._name+".autorange",!0),o&&o.autorange&&d(o._name+".autorange",!0),Yb.call("_guiRelayout",e,g())}):z.call(I)}});var cF=xe((Jxe,fF)=>{"use strict";var oF=rr(),Sce=Cr(),lF=wt().arrayEditor;fF.exports={hasClickToShow:Cce,onClick:Ece};function Cce(e,r){var t=uF(e,r);return t.on.length>0||t.explicitOff.length>0}function Ece(e,r){var t=uF(e,r),n=t.on,a=t.off.concat(t.explicitOff),o={},i=e._fullLayout.annotations,l,u;if(n.length||a.length){for(l=0;l<n.length;l++)u=lF(e.layout,"annotations",i[n[l]]),u.modifyItem("visible",!0),oF.extendFlat(o,u.getUpdateObj());for(l=0;l<a.length;l++)u=lF(e.layout,"annotations",i[a[l]]),u.modifyItem("visible",!1),oF.extendFlat(o,u.getUpdateObj());return Sce.call("update",e,{},o)}}function uF(e,r){var t=e._fullLayout.annotations,n=[],a=[],o=[],i=(r||[]).length,l,u,s,f,c,d,x,g;for(l=0;l<t.length;l++)if(s=t[l],f=s.clicktoshow,f){for(u=0;u<i;u++)if(c=r[u],d=c.xaxis,x=c.yaxis,d._id===s.xref&&x._id===s.yref&&d.d2r(c.x)===sF(s._xclick,d)&&x.d2r(c.y)===sF(s._yclick,x)){s.visible?f==="onout"?g=a:g=o:g=n,g.push(l);break}u===i&&s.visible&&f==="onout"&&a.push(l)}return{on:n,off:a,explicitOff:o}}function sF(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var $b=xe(($xe,vF)=>{"use strict";var Jb=rr(),Af=Xr();vF.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Af.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),Jb.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var c=a("arrowside"),d,x;c.indexOf("end")!==-1&&(d=a("arrowhead"),x=a("arrowsize")),c.indexOf("start")!==-1&&(a("startarrowhead",d),a("startarrowsize",x)),a("arrowcolor",l?t.bordercolor:Af.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var g=a("hovertext"),w=n.hoverlabel||{};if(g){var T=a("hoverlabel.bgcolor",w.bgcolor||(Af.opacity(o)?Af.rgb(o):Af.defaultLine)),m=a("hoverlabel.bordercolor",w.bordercolor||Af.contrast(T)),k=Jb.extendFlat({},w.font);k.color||(k.color=m),Jb.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!g)}});var dF=xe((Kxe,hF)=>{"use strict";var Kb=rr(),Js=Ot(),Lce=Mi(),Rce=$b(),Dce=pf();hF.exports=function(r,t){Lce(r,t,{name:"annotations",handleItemDefaults:Pce})};function Pce(e,r,t){function n(S,b){return Kb.coerce(e,r,Dce,S,b)}var a=n("visible"),o=n("clicktoshow");if(a||o){Rce(e,r,t,n);for(var i=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var c=l[f],d=Js.coerceRef(e,r,s,c,"","paper");if(d!=="paper"){var x=Js.getFromId(s,d);x._annIndices.push(r._index)}if(Js.coercePosition(r,s,n,d,c,.5),i){var g="a"+c,w=Js.coerceRef(e,r,s,g,"pixel",["pixel","paper"]);w!=="pixel"&&w!==d&&(w=r[g]="pixel");var T=w==="pixel"?u[f]:.4;Js.coercePosition(r,s,n,w,g,T)}n(c+"anchor"),n(c+"shift")}if(Kb.noneOrAll(e,r,["x","y"]),i&&Kb.noneOrAll(e,r,["ax","ay"]),o){var m=n("xclick"),k=n("yclick");r._xclick=m===void 0?r.x:Js.cleanPosition(m,s,r.xref),r._yclick=k===void 0?r.y:Js.cleanPosition(k,s,r.yref)}}}});var yF=xe((Qxe,gF)=>{"use strict";var Qb=rr(),$s=Ot(),Ice=xp().draw;gF.exports=function(r){var t=r._fullLayout,n=Qb.filterVisible(t.annotations);if(n.length&&r._fullData.length)return Qb.syncOrAsync([Ice,zce],r)};function zce(e){var r=e._fullLayout;Qb.filterVisible(r.annotations).forEach(function(t){var n=$s.getFromId(e,t.xref),a=$s.getFromId(e,t.yref),o=$s.getRefType(t.xref),i=$s.getRefType(t.yref);t._extremes={},o==="range"&&pF(t,n),i==="range"&&pF(t,a)})}function pF(e,r){var t=r._id,n=t.charAt(0),a=e[n],o=e["a"+n],i=e[n+"ref"],l=e["a"+n+"ref"],u=e["_"+n+"padplus"],s=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],c=3*e.arrowsize*e.arrowwidth||0,d=c+f,x=c-f,g=3*e.startarrowsize*e.arrowwidth||0,w=g+f,T=g-f,m;if(l===i){var k=$s.findExtremes(r,[r.r2c(a)],{ppadplus:d,ppadminus:x}),S=$s.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,w),ppadminus:Math.max(s,T)});m={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else w=o?w+o:w,T=o?T-o:T,m=$s.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,d,w),ppadminus:Math.max(s,x,T)});e._extremes[t]=m}});var bF=xe((jxe,mF)=>{"use strict";var Fce=it(),Nce=Yv();mF.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(!(o||i))return;var l=r._fullLayout.annotations,u=t._id.charAt(0),s,f;function c(x){var g=s[x],w=null;o?w=Nce(g,t.range):w=Math.pow(10,g),Fce(w)||(w=null),a(f+x,w)}for(var d=0;d<l.length;d++)s=l[d],f="annotations["+d+"].",s[u+"ref"]===t._id&&c(u),s["a"+u+"ref"]===t._id&&c("a"+u)}});var wF=xe((e4e,_F)=>{"use strict";var jb=xp(),xF=cF();_F.exports={moduleType:"component",name:"annotations",layoutAttributes:pf(),supplyLayoutDefaults:dF(),includeBasePlot:Lc()("annotations"),calcAutorange:yF(),draw:jb.draw,drawOne:jb.drawOne,drawRaw:jb.drawRaw,hasClickToShow:xF.hasClickToShow,onClick:xF.onClick,convertCoords:bF()}});var _p=xe((r4e,MF)=>{"use strict";var kt=pf(),qce=ea().overrideAll,Oce=wt().templatedArray;MF.exports=qce(Oce("annotation",{visible:kt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:kt.xanchor,xshift:kt.xshift,yanchor:kt.yanchor,yshift:kt.yshift,text:kt.text,textangle:kt.textangle,font:kt.font,width:kt.width,height:kt.height,opacity:kt.opacity,align:kt.align,valign:kt.valign,bgcolor:kt.bgcolor,bordercolor:kt.bordercolor,borderpad:kt.borderpad,borderwidth:kt.borderwidth,showarrow:kt.showarrow,arrowcolor:kt.arrowcolor,arrowhead:kt.arrowhead,startarrowhead:kt.startarrowhead,arrowside:kt.arrowside,arrowsize:kt.arrowsize,startarrowsize:kt.startarrowsize,arrowwidth:kt.arrowwidth,standoff:kt.standoff,startstandoff:kt.startstandoff,hovertext:kt.hovertext,hoverlabel:kt.hoverlabel,captureevents:kt.captureevents}),"calc","from-root")});var AF=xe((t4e,TF)=>{"use strict";var ex=rr(),Bce=Ot(),Uce=Mi(),Hce=$b(),Vce=_p();TF.exports=function(r,t,n){Uce(r,t,{name:"annotations",handleItemDefaults:Gce,fullLayout:n.fullLayout})};function Gce(e,r,t,n){function a(l,u){return ex.coerce(e,r,Vce,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Bce.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(Hce(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),ex.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),ex.noneOrAll(e,r,["ax","ay"])))}});var EF=xe((n4e,CF)=>{"use strict";var kF=rr(),SF=Ot();CF.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a<n.length;a++)Yce(n[a],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function Yce(e,r){var t=r.fullSceneLayout,n=t.domain,a=r.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},kF.extendFlat(e._xa,o),SF.setConvert(e._xa),e._xa._offset=a.l+n.x[0]*a.w,e._xa.l2p=function(){return .5*(1+e._pdata[0]/e._pdata[3])*a.w*(n.x[1]-n.x[0])},e._ya={},kF.extendFlat(e._ya,o),SF.setConvert(e._ya),e._ya._offset=a.t+(1-n.y[1])*a.h,e._ya.l2p=function(){return .5*(1-e._pdata[1]/e._pdata[3])*a.h*(n.y[1]-n.y[0])}}});var tx=xe((a4e,LF)=>{"use strict";function rx(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function Xce(e,r){var t=rx(e.projection,rx(e.view,rx(e.model,[r[0],r[1],r[2],1])));return t}LF.exports=Xce});var DF=xe((i4e,RF)=>{"use strict";var Wce=xp().drawRaw,Zce=tx(),Jce=["x","y","z"];RF.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,o=0;o<a.length;o++){for(var i=a[o],l=!1,u=0;u<3;u++){var s=Jce[u],f=i[s],c=t[s+"axis"],d=c.r2fraction(f);if(d<0||d>1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+o+'"]').remove():(i._pdata=Zce(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),Wce(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var zF=xe((o4e,IF)=>{"use strict";var $ce=Cr(),PF=rr();IF.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:_p()}}},layoutAttributes:_p(),handleDefaults:AF(),includeBasePlot:Kce,convert:EF(),draw:DF()};function Kce(e,r){var t=$ce.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o<a.length;o++){var i=a[o];n.test(i)&&(e[i].annotations||[]).length&&(PF.pushUnique(r._basePlotModules,t),PF.pushUnique(r._subplots.gl3d,i))}}});var nx=xe((u4e,OF)=>{"use strict";var l4e=mn(),FF=Nn(),NF=Bs().line,Qce=nl().dash,Ri=Dt().extendFlat,jce=wt().templatedArray,s4e=Cc(),kf=qn(),qF=pf(),{shapeTexttemplateAttrs:eve,templatefallbackAttrs:rve}=mi(),tve=kh();OF.exports=jce("shape",{visible:Ri({},kf.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ri({},kf.legend,{editType:"calc+arraydraw"}),legendgroup:Ri({},kf.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ri({},kf.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:FF({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ri({},kf.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ri({},kf.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:Ri({},qF.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:Ri({},qF.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:Ri({},NF.color,{editType:"arraydraw"}),width:Ri({},NF.width,{editType:"calc+arraydraw"}),dash:Ri({},Qce,{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:eve({},{keys:Object.keys(tve)}),texttemplatefallback:rve({editType:"arraydraw"}),font:FF({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 UF=xe((f4e,BF)=>{"use strict";var Sf=rr(),qa=Ot(),nve=Mi(),ave=nx(),Zc=Cl();BF.exports=function(r,t){nve(r,t,{name:"shapes",handleItemDefaults:ove})};function ive(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function ove(e,r,t){function n(S,b){return Sf.coerce(e,r,ave,S,b)}r._isShape=!0;var a=n("visible");if(!a)return;var o=n("showlegend");n("legend"),n("legendgroup"),o&&(n("legendwidth"),n("legendgrouptitle.text"),Sf.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var i=n("path"),l=i?"path":"rect",u=n("type",l),s=u!=="path";s&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));var c=n("xsizemode"),d=n("ysizemode");let x=[.25,.75],g=[0,10];["x","y"].forEach(S=>{var b=S+"anchor",M=S==="x"?c:d,h={_fullLayout:t},_,y,v,A;let p=S+"ref",R=e[p];if(Array.isArray(R)&&R.length>0){let E=Zc.countDefiningCoords(u,i,S);A=qa.coerceRefArray(e,r,h,S,void 0,"paper",E),r["_"+S+"refArray"]=!0}else A=qa.coerceRef(e,r,h,S,void 0,"paper");if(Array.isArray(A))A.forEach(function(E){qa.getRefType(E)==="range"&&(_=qa.getFromId(h,E),_&&_._shapeIndices.indexOf(r._index)===-1&&_._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(E){let D=A[E];qa.getRefType(D)==="range"?(_=qa.getFromId(h,D),y=Zc.shapePositionToRange(_),v=Zc.rangeToShapePosition(_),(_.type==="category"||_.type==="multicategory")&&n(S+E+"shift")):y=v=Sf.identity;let z=S+E,I=e[z];if(e[z]=y(e[z],!0),M==="pixel"?n(z,g[E]):qa.coercePosition(r,h,n,D,z,x[E]),r[z]=v(r[z]),e[z]=I,E===0&&M==="pixel"){let L=e[b];e[b]=y(e[b],!0),qa.coercePosition(r,h,n,D,b,.25),r[b]=v(r[b]),e[b]=L}});else{if(qa.getRefType(A)==="range"?(_=qa.getFromId(h,A),_._shapeIndices.push(r._index),v=Zc.rangeToShapePosition(_),y=Zc.shapePositionToRange(_),s&&(_.type==="category"||_.type==="multicategory")&&(n(S+"0shift"),n(S+"1shift"))):y=v=Sf.identity,s){let D=S+"0",F=S+"1",z=e[D],I=e[F];e[D]=y(e[D],!0),e[F]=y(e[F],!0),M==="pixel"?(n(D,g[0]),n(F,g[1])):(qa.coercePosition(r,h,n,A,D,x[0]),qa.coercePosition(r,h,n,A,F,x[1])),r[D]=v(r[D]),r[F]=v(r[F]),e[D]=z,e[F]=I}if(M==="pixel"){let D=e[b];e[b]=y(e[b],!0),qa.coercePosition(r,h,n,A,b,.25),r[b]=v(r[b]),e[b]=D}}}),s&&Sf.noneOrAll(e,r,["x0","x1","y0","y1"]);var w=u==="line",T,m;if(s&&(T=n("label.texttemplate"),n("label.texttemplatefallback")),T||(m=n("label.text")),m||T){n("label.textangle");var k=n("label.textposition",w?"middle":"middle center");n("label.xanchor"),n("label.yanchor",ive(w,k)),n("label.padding"),Sf.coerceFont(n,"label.font",t.font)}}});var GF=xe((c4e,VF)=>{"use strict";var lve=Xr(),HF=rr();function sve(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}VF.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),HF.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var o=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",lve.contrast(o)),n("newshape.line.dash")}var i=r.dragmode==="drawline",l=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),l||u){n("newshape.label.textangle");var s=n("newshape.label.textposition",i?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",sve(i,s)),n("newshape.label.padding"),HF.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var KF=xe((v4e,$F)=>{"use strict";var ax=rr(),fi=Ot(),yo=sc(),ix=Cl();$F.exports=function(r){var t=r._fullLayout,n=ax.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a<n.length;a++){var o=n[a];o._extremes={};var i,l,u=fi.getRefType(o.xref),s=fi.getRefType(o.yref);if(u==="array"){let f=YF(r,o,"x");Object.entries(f).forEach(([c,d])=>{i=fi.getFromId(r,c),o._extremes[i._id]=fi.findExtremes(i,d,XF(o))})}else o.xref!=="paper"&&u!=="domain"&&(i=fi.getFromId(r,o.xref),l=ZF(i,o,yo.paramIsX),l&&(o._extremes[i._id]=fi.findExtremes(i,l,XF(o))));if(s==="array"){let f=YF(r,o,"y");Object.entries(f).forEach(([c,d])=>{i=fi.getFromId(r,c),o._extremes[i._id]=fi.findExtremes(i,d,WF(o))})}else o.yref!=="paper"&&s!=="domain"&&(i=fi.getFromId(r,o.yref),l=ZF(i,o,yo.paramIsY),l&&(o._extremes[i._id]=fi.findExtremes(i,l,WF(o))))}};function YF(e,r,t){let n=r[t+"ref"],a=t==="x"?yo.paramIsX:yo.paramIsY;function o(c,d){c==="paper"||fi.getRefType(c)==="domain"||(i[c]||(i[c]=[]),i[c].push(d))}let i={};if(r.type==="path"&&r.path){let c=r.path.match(yo.segmentRE)||[];for(var l=0,u=0;u<c.length;u++){let d=c[u],x=d.charAt(0),g=a[x].drawn;if(g===void 0)continue;let w=d.slice(1).match(yo.paramRE);w&&w.length>g&&(o(n[l],w[g]),l++)}}else o(n[0],r[t+"0"]),o(n[1],r[t+"1"]);let s={};for(let c in i){let d=fi.getFromId(e,c);if(d){var f=d.type==="category"||d.type==="multicategory"?d.r2c:d.d2c;d.type==="date"&&(f=ix.decodeDate(f)),s[d._id]=i[c].map(f)}}return s}function XF(e){return JF(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function WF(e){return JF(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function JF(e,r,t,n,a,o){var i=e/2,l=o;if(r==="pixel"){var u=a?ix.extractPathCoords(a,o?yo.paramIsY:yo.paramIsX):[t,n],s=ax.aggNums(Math.max,null,u),f=ax.aggNums(Math.min,null,u),c=f<0?Math.abs(f)+i:i,d=s>0?s+i:i;return{ppad:i,ppadplus:l?c:d,ppadminus:l?d:c}}else return{ppad:i}}function ZF(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",o,i,l=0,u=0,s=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(o=r[n+"0"],i=r[n+"1"],a&&(l=r[n+"0shift"],u=r[n+"1shift"])):(o=r[n+"anchor"],i=r[n+"anchor"]),o!==void 0)return[s(o)+l,s(i)+u];if(r.path){var c=1/0,d=-1/0,x=r.path.match(yo.segmentRE),g,w,T,m,k;for(e.type==="date"&&(s=ix.decodeDate(s)),g=0;g<x.length;g++)w=x[g],T=t[w.charAt(0)].drawn,T!==void 0&&(m=x[g].slice(1).match(yo.paramRE),!(!m||m.length<T)&&(k=s(m[T]),k<c&&(c=k),k>d&&(d=k)));if(d>=c)return[c,d]}}});var eN=xe((h4e,jF)=>{"use strict";var QF=ud();jF.exports={moduleType:"component",name:"shapes",layoutAttributes:nx(),supplyLayoutDefaults:UF(),supplyDrawNewShapeDefaults:GF(),includeBasePlot:Lc()("shapes"),calcAutorange:KF(),draw:QF.draw,drawOne:QF.drawOne}});var ox=xe((p4e,tN)=>{"use strict";var rN=mn(),uve=wt().templatedArray,d4e=Cc();tN.exports=uve("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",rN.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",rN.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var aN=xe((g4e,nN)=>{"use strict";var fve=rr(),lx=Ot(),cve=Mi(),vve=ox(),hve="images";nN.exports=function(r,t){var n={name:hve,handleItemDefaults:dve};cve(r,t,n)};function dve(e,r,t){function n(d,x){return fve.coerce(e,r,vve,d,x)}var a=n("source"),o=n("visible",!!a);if(!o)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var i={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=lx.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var c=lx.getFromId(i,f);c._imgIndices.push(r._index)}lx.coercePosition(r,i,n,f,s,0)}return r}});var sN=xe((y4e,lN)=>{"use strict";var iN=nt(),pve=Mt(),Cf=Ot(),oN=fn(),gve=hl();lN.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l<t.images.length;l++){var u=t.images[l];if(u.visible)if(u.layer==="below"&&u.xref!=="paper"&&u.yref!=="paper"){i=oN.ref2id(u.xref)+oN.ref2id(u.yref);var s=t._plots[i];if(!s){o.push(u);continue}s.mainplot&&(i=s.mainplot.id),a[i]||(a[i]=[]),a[i].push(u)}else u.layer==="above"?n.push(u):o.push(u)}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=iN.select(this);if(this._imgSrc!==b.source)if(M.attr("xmlns",gve.svg),!r._context.staticPlot||b.source&&b.source.slice(0,5)==="data:")M.attr("xlink:href",b.source),this._imgSrc=b.source;else{var h=new Promise(function(_){var y=new Image;this.img=y,y.setAttribute("crossOrigin","anonymous"),y.onerror=v,y.onload=function(){var A=document.createElement("canvas");A.width=this.width,A.height=this.height;var p=A.getContext("2d",{willReadFrequently:!0});p.drawImage(this,0,0);var R=A.toDataURL("image/png");M.attr("xlink:href",R),_()},M.on("error",v),y.src=b.source,this._imgSrc=b.source;function v(){M.remove(),_()}}.bind(this));r._promises.push(h)}}function d(b){var M=iN.select(this),h=Cf.getFromId(r,b.xref),_=Cf.getFromId(r,b.yref),y=Cf.getRefType(b.xref)==="domain",v=Cf.getRefType(b.yref)==="domain",A=t._size,p,R;h!==void 0?p=typeof b.xref=="string"&&y?h._length*b.sizex:Math.abs(h.l2p(b.sizex)-h.l2p(0)):p=b.sizex*A.w,_!==void 0?R=typeof b.yref=="string"&&v?_._length*b.sizey:Math.abs(_.l2p(b.sizey)-_.l2p(0)):R=b.sizey*A.h;var E=p*f.x[b.xanchor].offset,D=R*f.y[b.yanchor].offset,F=f.x[b.xanchor].sizing+f.y[b.yanchor].sizing,z,I;switch(h!==void 0?z=typeof b.xref=="string"&&y?h._length*b.x+h._offset:h.r2p(b.x)+h._offset:z=b.x*A.w+A.l,z+=E,_!==void 0?I=typeof b.yref=="string"&&v?_._length*(1-b.y)+_._offset:_.r2p(b.y)+_._offset:I=A.h-b.y*A.h+A.t,I+=D,b.sizing){case"fill":F+=" slice";break;case"stretch":F="none";break}M.attr({x:z,y:I,width:p,height:R,preserveAspectRatio:F,opacity:b.opacity});var L=h&&Cf.getRefType(b.xref)!=="domain"?h._id:"",P=_&&Cf.getRefType(b.yref)!=="domain"?_._id:"",O=L+P;pve.setClipUrl(M,O?"clip"+t._uid+O:null,r)}function x(b){return[b.xref,b.x,b.sizex,b.yref,b.y,b.sizey].join("_")}function g(b,M){return b._index-M._index}var w=t._imageLowerLayer.selectAll("image").data(o,x),T=t._imageUpperLayer.selectAll("image").data(n,x);w.enter().append("image"),T.enter().append("image"),w.exit().remove(),T.exit().remove(),w.each(function(b){c.bind(this)(b),d.bind(this)(b)}),T.each(function(b){c.bind(this)(b),d.bind(this)(b)}),w.sort(g),T.sort(g);var m=Object.keys(t._plots);for(l=0;l<m.length;l++){i=m[l];var k=t._plots[i];if(k.imagelayer){var S=k.imagelayer.selectAll("image").data(a[i]||[],x);S.enter().append("image"),S.exit().remove(),S.each(function(b){c.bind(this)(b),d.bind(this)(b)}),S.sort(g)}}}});var cN=xe((m4e,fN)=>{"use strict";var uN=it(),yve=Yv();fN.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(o||i){for(var l=r._fullLayout.images,u=t._id.charAt(0),s,f,c=0;c<l.length;c++)if(s=l[c],f="images["+c+"].",s[u+"ref"]===t._id){var d=s[u],x=s["size"+u],g=null,w=null;if(o){g=yve(d,t.range);var T=x/Math.pow(10,g)/2;w=2*Math.log(T+Math.sqrt(1+T*T))/Math.LN10}else g=Math.pow(10,d),w=g*(Math.pow(10,x/2)-Math.pow(10,-x/2));uN(g)?uN(w)||(w=null):(g=null,w=null),a(f+u,g),a(f+"size"+u,w)}}}});var hN=xe((b4e,vN)=>{"use strict";vN.exports={moduleType:"component",name:"images",layoutAttributes:ox(),supplyLayoutDefaults:aN(),includeBasePlot:Lc()("images"),draw:sN(),convertCoords:cN()}});var wp=xe((x4e,dN)=>{"use strict";dN.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 sx=xe((_4e,gN)=>{"use strict";var mve=Nn(),bve=Zi(),xve=Dt().extendFlat,_ve=ea().overrideAll,wve=Sh(),pN=wt().templatedArray,Mve=pN("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}});gN.exports=_ve(pN("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:Mve,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:xve(wve({editType:"arraydraw"}),{}),font:mve({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:bve.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var xN=xe((w4e,bN)=>{"use strict";var Mp=rr(),yN=Mi(),mN=sx(),Tve=wp(),Ave=Tve.name,kve=mN.buttons;bN.exports=function(r,t){var n={name:Ave,handleItemDefaults:Sve};yN(r,t,n)};function Sve(e,r,t){function n(i,l){return Mp.coerce(e,r,mN,i,l)}var a=yN(e,r,{name:"buttons",handleItemDefaults:Cve}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Mp.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Mp.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Cve(e,r){function t(a,o){return Mp.coerce(e,r,kve,a,o)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var MN=xe((M4e,wN)=>{"use strict";wN.exports=Ut;var Di=nt(),_N=Xr(),Ef=Mt(),Tp=rr();function Ut(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})}Ut.barWidth=2;Ut.barLength=20;Ut.barRadius=2;Ut.barPad=1;Ut.barColor="#808BA4";Ut.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,o=a.width,i=a.height;this.position=r;var l=this.position.l,u=this.position.w,s=this.position.t,f=this.position.h,c=this.position.direction,d=c==="down",x=c==="left",g=c==="right",w=c==="up",T=u,m=f,k,S,b,M;!d&&!x&&!g&&!w&&(this.position.direction="down",d=!0);var h=d||w;h?(k=l,S=k+T,d?(b=s,M=Math.min(b+m,i),m=M-b):(M=s+m,b=Math.max(M-m,0),m=M-b)):(b=s,M=b+m,x?(S=l+T,k=Math.max(S-T,0),T=S-k):(k=l,S=Math.min(k+T,o),T=S-k)),this._box={l:k,t:b,w:T,h:m};var _=u>T,y=Ut.barLength+2*Ut.barPad,v=Ut.barWidth+2*Ut.barPad,A=l,p=s+f;p+v>i&&(p=i-v);var R=this.container.selectAll("rect.scrollbar-horizontal").data(_?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(_N.fill,Ut.barColor),_?(this.hbar=R.attr({rx:Ut.barRadius,ry:Ut.barRadius,x:A,y:p,width:y,height:v}),this._hbarXMin=A+y/2,this._hbarTranslateMax=T-y):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=f>m,D=Ut.barWidth+2*Ut.barPad,F=Ut.barLength+2*Ut.barPad,z=l+u,I=s;z+D>o&&(z=o-D);var L=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(_N.fill,Ut.barColor),E?(this.vbar=L.attr({rx:Ut.barRadius,ry:Ut.barRadius,x:z,y:I,width:D,height:F}),this._vbarYMin=I+F/2,this._vbarTranslateMax=m-F):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,O=k-.5,U=E?S+D+.5:S+.5,V=b-.5,K=_?M+v+.5:M+.5,j=a._topdefs.selectAll("#"+P).data(_||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",P).append("rect"),_||E?(this._clipRect=j.select("rect").attr({x:Math.floor(O),y:Math.floor(V),width:Math.ceil(U)-Math.floor(O),height:Math.ceil(K)-Math.floor(V)}),this.container.call(Ef.setClipUrl,P,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Ef.setClipUrl,null),delete this._clipRect),_||E){var G=Di.behavior.drag().on("dragstart",function(){Di.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(G);var q=Di.behavior.drag().on("dragstart",function(){Di.event.sourceEvent.preventDefault(),Di.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));_&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Ut.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Ef.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)};Ut.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Di.event.dx),this.vbar&&(t-=Di.event.dy),this.setTranslate(r,t)};Ut.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Di.event.deltaY),this.vbar&&(t+=Di.event.deltaY),this.setTranslate(r,t)};Ut.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=Tp.constrain(Di.event.x,n,a),i=(o-n)/(a-n),l=this.position.w-this._box.w;r=i*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=Tp.constrain(Di.event.y,u,s),c=(f-u)/(s-u),d=this.position.h-this._box.h;t=c*d}this.setTranslate(r,t)};Ut.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=Tp.constrain(r||0,0,n),t=Tp.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Ef.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 o=r/n;this.hbar.call(Ef.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Ef.setTranslate,r,t+i*this._vbarTranslateMax)}}});var PN=xe((T4e,DN)=>{"use strict";var Lf=nt(),Jc=bn(),$c=Xr(),Rf=Mt(),Oa=rr(),Ap=Un(),Eve=wt().arrayEditor,AN=Bn().LINE_SPACING,Er=wp(),Lve=MN();DN.exports=function(r){var t=r._fullLayout,n=Oa.filterVisible(t[Er.name]);function a(d){Jc.autoMargin(r,LN(d))}var o=t._menulayer.selectAll("g."+Er.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(Er.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Lf.select(this).selectAll("g."+Er.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Er.headerGroupClassName).data(n,Rve);i.enter().append("g").classed(Er.headerGroupClassName,!0);for(var l=Oa.ensureSingle(o,"g",Er.dropdownButtonGroupClassName,function(d){d.style("pointer-events","all")}),u=0;u<n.length;u++){var s=n[u];Nve(r,s)}var f="updatemenus"+t._uid,c=new Lve(r,l,f);i.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(fx)),i.exit().each(function(d){l.call(fx),a(d)}).remove(),i.each(function(d){var x=Lf.select(this),g=d.type==="dropdown"?l:null;Jc.manageCommandObserver(r,d,d.buttons,function(w){ux(r,d,d.buttons[w.index],x,g,c,w.index,!0)}),d.type==="dropdown"?(SN(r,x,l,c,d),kN(l,d)&&Kc(r,x,l,c,d)):Kc(r,x,null,null,d)})}};function Rve(e){return e._index}function Dve(e){return+e.attr(Er.menuIndexAttrName)==-1}function kN(e,r){return+e.attr(Er.menuIndexAttrName)===r._index}function ux(e,r,t,n,a,o,i,l){r.active=i,Eve(e.layout,Er.name,r).applyUpdate("active",i),r.type==="buttons"?Kc(e,n,null,null,r):r.type==="dropdown"&&(a.attr(Er.menuIndexAttrName,"-1"),SN(e,n,a,o,r),l||Kc(e,n,a,o,r))}function SN(e,r,t,n,a){var o=Oa.ensureSingle(r,"g",Er.headerClassName,function(d){d.style("pointer-events","all")}),i=a._dims,l=a.active,u=a.buttons[l]||Er.blankHeaderOpts,s={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},f={width:i.headerWidth,height:i.headerHeight};o.call(cx,a,u,e).call(RN,a,s,f);var c=Oa.ensureSingle(r,"text",Er.headerArrowClassName,function(d){d.attr("text-anchor","end").call(Rf.font,a.font).text(Er.arrowSymbol[a.direction])});c.attr({x:i.headerWidth-Er.arrowOffsetX+a.pad.l,y:i.headerHeight/2+Er.textOffsetY+a.pad.t}),o.on("click",function(){t.call(fx,String(kN(t,a)?-1:a._index)),Kc(e,r,t,n,a)}),o.on("mouseover",function(){o.call(CN)}),o.on("mouseout",function(){o.call(EN,a)}),Rf.setTranslate(r,i.lx,i.ly)}function Kc(e,r,t,n,a){t||(t=r,t.attr("pointer-events","all"));var o=!Dve(t)||a.type==="buttons"?a.buttons:[],i=a.type==="dropdown"?Er.dropdownButtonClassName:Er.buttonClassName,l=t.selectAll("g."+i).data(Oa.filterVisible(o)),u=l.enter().append("g").classed(i,!0),s=l.exit();a.type==="dropdown"?(u.attr("opacity","0").transition().attr("opacity","1"),s.transition().attr("opacity","0").remove()):s.remove();var f=0,c=0,d=a._dims,x=["up","down"].indexOf(a.direction)!==-1;a.type==="dropdown"&&(x?c=d.headerHeight+Er.gapButtonHeader:f=d.headerWidth+Er.gapButtonHeader),a.type==="dropdown"&&a.direction==="up"&&(c=-Er.gapButtonHeader+Er.gapButton-d.openHeight),a.type==="dropdown"&&a.direction==="left"&&(f=-Er.gapButtonHeader+Er.gapButton-d.openWidth);var g={x:d.lx+f+a.pad.l,y:d.ly+c+a.pad.t,yPad:Er.gapButton,xPad:Er.gapButton,index:0},w={l:g.x+a.borderwidth,t:g.y+a.borderwidth};l.each(function(T,m){var k=Lf.select(this);k.call(cx,a,T,e).call(RN,a,g),k.on("click",function(){Lf.event.defaultPrevented||(T.execute&&(T.args2&&a.active===m?(ux(e,a,T,r,t,n,-1),Jc.executeAPICommand(e,T.method,T.args2)):(ux(e,a,T,r,t,n,m),Jc.executeAPICommand(e,T.method,T.args))),e.emit("plotly_buttonclicked",{menu:a,button:T,active:a.active}))}),k.on("mouseover",function(){k.call(CN)}),k.on("mouseout",function(){k.call(EN,a),l.call(TN,a)})}),l.call(TN,a),x?(w.w=Math.max(d.openWidth,d.headerWidth),w.h=g.y-w.t):(w.w=g.x-w.l,w.h=Math.max(d.openHeight,d.headerHeight)),w.direction=a.direction,n&&(l.size()?Pve(e,r,t,n,a,w):Ive(n))}function Pve(e,r,t,n,a,o){var i=a.direction,l=i==="up"||i==="down",u=a._dims,s=a.active,f,c,d;if(l)for(c=0,d=0;d<s;d++)c+=u.heights[d]+Er.gapButton;else for(f=0,d=0;d<s;d++)f+=u.widths[d]+Er.gapButton;n.enable(o,f,c),n.hbar&&n.hbar.attr("opacity","0").transition().attr("opacity","1"),n.vbar&&n.vbar.attr("opacity","0").transition().attr("opacity","1")}function Ive(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 cx(e,r,t,n){e.call(zve,r).call(Fve,r,t,n)}function zve(e,r){var t=Oa.ensureSingle(e,"rect",Er.itemRectClassName,function(n){n.attr({rx:Er.rx,ry:Er.ry,"shape-rendering":"crispEdges"})});t.call($c.stroke,r.bordercolor).call($c.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function Fve(e,r,t,n){var a=Oa.ensureSingle(e,"text",Er.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),o=t.label,i=n._fullLayout._meta;i&&(o=Oa.templateString(o,i)),a.call(Rf.font,r.font).text(o).call(Ap.convertToTspans,n)}function TN(e,r){var t=r.active;e.each(function(n,a){var o=Lf.select(this);a===t&&r.showactive&&o.select("rect."+Er.itemRectClassName).call($c.fill,Er.activeColor)})}function CN(e){e.select("rect."+Er.itemRectClassName).call($c.fill,Er.hoverColor)}function EN(e,r){e.select("rect."+Er.itemRectClassName).call($c.fill,r.bgcolor)}function Nve(e,r){var t=r._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},n=Rf.tester.selectAll("g."+Er.dropdownButtonClassName).data(Oa.filterVisible(r.buttons));n.enter().append("g").classed(Er.dropdownButtonClassName,!0);var a=["up","down"].indexOf(r.direction)!==-1;n.each(function(f,c){var d=Lf.select(this);d.call(cx,r,f,e);var x=d.select("."+Er.itemTextClassName),g=x.node()&&Rf.bBox(x.node()).width,w=Math.max(g+Er.textPadX,Er.minWidth),T=r.font.size*AN,m=Ap.lineCount(x),k=Math.max(T*m,Er.minHeight)+Er.textOffsetY;k=Math.ceil(k),w=Math.ceil(w),t.widths[c]=w,t.heights[c]=k,t.height1=Math.max(t.height1,k),t.width1=Math.max(t.width1,w),a?(t.totalWidth=Math.max(t.totalWidth,w),t.openWidth=t.totalWidth,t.totalHeight+=k+Er.gapButton,t.openHeight+=k+Er.gapButton):(t.totalWidth+=w+Er.gapButton,t.openWidth+=w+Er.gapButton,t.totalHeight=Math.max(t.totalHeight,k),t.openHeight=t.totalHeight)}),a?t.totalHeight-=Er.gapButton:t.totalWidth-=Er.gapButton,t.headerWidth=t.width1+Er.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(a?(t.width1+=Er.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=Er.arrowPadX),n.remove();var o=t.totalWidth+r.pad.l+r.pad.r,i=t.totalHeight+r.pad.t+r.pad.b,l=e._fullLayout._size;t.lx=l.l+l.w*r.x,t.ly=l.t+l.h*(1-r.y);var u="left";Oa.isRightAnchor(r)&&(t.lx-=o,u="right"),Oa.isCenterAnchor(r)&&(t.lx-=o/2,u="center");var s="top";Oa.isBottomAnchor(r)&&(t.ly-=i,s="bottom"),Oa.isMiddleAnchor(r)&&(t.ly-=i/2,s="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),Jc.autoMargin(e,LN(r),{x:r.x,y:r.y,l:o*({right:1,center:.5}[u]||0),r:o*({left:1,center:.5}[u]||0),b:i*({top:1,middle:.5}[s]||0),t:i*({bottom:1,middle:.5}[s]||0)})}function LN(e){return Er.autoMarginIdRoot+e._index}function RN(e,r,t,n){n=n||{};var a=e.select("."+Er.itemRectClassName),o=e.select("."+Er.itemTextClassName),i=r.borderwidth,l=t.index,u=r._dims;Rf.setTranslate(e,i+t.x,i+t.y);var s=["up","down"].indexOf(r.direction)!==-1,f=n.height||(s?u.heights[l]:u.height1);a.attr({x:0,y:0,width:n.width||(s?u.width1:u.widths[l]),height:f});var c=r.font.size*AN,d=Ap.lineCount(o),x=(d-1)*c/2;Ap.positionText(o,Er.textOffsetX,f/2-x+Er.textOffsetY),s?t.y+=u.heights[l]+t.yPad:t.x+=u.widths[l]+t.xPad,t.index++}function fx(e,r){e.attr(Er.menuIndexAttrName,r||"-1").selectAll("g."+Er.dropdownButtonClassName).remove()}});var zN=xe((A4e,IN)=>{"use strict";var qve=wp();IN.exports={moduleType:"component",name:qve.name,layoutAttributes:sx(),supplyLayoutDefaults:xN(),draw:PN()}});var Qc=xe((k4e,FN)=>{"use strict";FN.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 vx=xe((S4e,ON)=>{"use strict";var NN=Nn(),Ove=Sh(),Bve=Dt().extendDeepAll,Uve=ea().overrideAll,Hve=L0(),qN=wt().templatedArray,Ks=Qc(),Vve=qN("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}});ON.exports=Uve(qN("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Vve,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:Bve(Ove({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:Hve.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:NN({})},font:NN({}),activebgcolor:{valType:"color",dflt:Ks.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ks.railBgColor},bordercolor:{valType:"color",dflt:Ks.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ks.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ks.tickLength},tickcolor:{valType:"color",dflt:Ks.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ks.minorTickLength}}),"arraydraw","from-root")});var VN=xe((C4e,HN)=>{"use strict";var Df=rr(),BN=Mi(),UN=vx(),Gve=Qc(),Yve=Gve.name,Xve=UN.steps;HN.exports=function(r,t){BN(r,t,{name:Yve,handleItemDefaults:Wve})};function Wve(e,r,t){function n(c,d){return Df.coerce(e,r,UN,c,d)}for(var a=BN(e,r,{name:"steps",handleItemDefaults:Zve}),o=0,i=0;i<a.length;i++)a[i].visible&&o++;var l;if(o<2?l=r.visible=!1:l=n("visible"),!!l){r._stepCount=o;var u=r._visibleSteps=Df.filterVisible(a),s=n("active");(a[s]||{}).visible||(r.active=u[0]._index),n("x"),n("y"),Df.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("len"),n("lenmode"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Df.coerceFont(n,"font",t.font);var f=n("currentvalue.visible");f&&(n("currentvalue.xanchor"),n("currentvalue.prefix"),n("currentvalue.suffix"),n("currentvalue.offset"),Df.coerceFont(n,"currentvalue.font",r.font)),n("transition.duration"),n("transition.easing"),n("bgcolor"),n("activebgcolor"),n("bordercolor"),n("borderwidth"),n("ticklen"),n("tickwidth"),n("tickcolor"),n("minorticklen")}}function Zve(e,r){function t(o,i){return Df.coerce(e,r,Xve,o,i)}var n;if(e.method!=="skip"&&!Array.isArray(e.args)?n=r.visible=!1:n=t("visible"),n){t("method"),t("args");var a=t("label","step-"+r._index);t("value",a),t("execute")}}});var jN=xe((E4e,QN)=>{"use strict";var Pi=nt(),kp=bn(),zl=Xr(),Ii=Mt(),Ba=rr(),Jve=Ba.strTranslate,jc=Un(),$ve=wt().arrayEditor,Hr=Qc(),px=Bn(),XN=px.LINE_SPACING,hx=px.FROM_TL,dx=px.FROM_BR;QN.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Kve(n,r),o=n._infolayer.selectAll("g."+Hr.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Hr.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),kp.autoMargin(r,WN(f))}if(o.exit().each(function(){Pi.select(this).selectAll("g."+Hr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Hr.groupClassName).data(a,Qve);l.enter().append("g").classed(Hr.groupClassName,!0),l.exit().each(i).remove();for(var u=0;u<a.length;u++){var s=a[u];jve(r,s)}l.each(function(f){var c=Pi.select(this);ahe(f),kp.manageCommandObserver(r,f,f._visibleSteps,function(d){var x=c.data()[0];x.active!==d.index&&(x._dragging||JN(r,c,x,d.index,!1,!0))}),ehe(r,Pi.select(this),f)})}};function WN(e){return Hr.autoMarginIdRoot+e._index}function Kve(e,r){for(var t=e[Hr.name],n=[],a=0;a<t.length;a++){var o=t[a];o.visible&&(o._gd=r,n.push(o))}return n}function Qve(e){return e._index}function jve(e,r){var t=Ii.tester.selectAll("g."+Hr.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Hr.labelGroupClass,!0);var n=0,a=0;t.each(function(g){var w=Pi.select(this),T=ZN(w,{step:g},r),m=T.node();if(m){var k=Ii.bBox(m);a=Math.max(a,k.height),n=Math.max(n,k.width)}}),t.remove();var o=r._dims={};o.inputAreaWidth=Math.max(Hr.railWidth,Hr.gripHeight);var i=e._fullLayout._size;o.lx=i.l+i.w*r.x,o.ly=i.t+i.h*(1-r.y),r.lenmode==="fraction"?o.outerLength=Math.round(i.w*r.len):o.outerLength=r.len,o.inputAreaStart=0,o.inputAreaLength=Math.round(o.outerLength-r.pad.l-r.pad.r);var l=o.inputAreaLength-2*Hr.stepInset,u=l/(r._stepCount-1),s=n+Hr.labelPadding;if(o.labelStride=Math.max(1,Math.ceil(s/u)),o.labelHeight=a,o.currentValueMaxWidth=0,o.currentValueHeight=0,o.currentValueTotalHeight=0,o.currentValueMaxLines=1,r.currentvalue.visible){var f=Ii.tester.append("g");t.each(function(g){var w=Sp(f,r,g.label),T=w.node()&&Ii.bBox(w.node())||{width:0,height:0},m=jc.lineCount(w);o.currentValueMaxWidth=Math.max(o.currentValueMaxWidth,Math.ceil(T.width)),o.currentValueHeight=Math.max(o.currentValueHeight,Math.ceil(T.height)),o.currentValueMaxLines=Math.max(o.currentValueMaxLines,m)}),o.currentValueTotalHeight=o.currentValueHeight+r.currentvalue.offset,f.remove()}o.height=o.currentValueTotalHeight+Hr.tickOffset+r.ticklen+Hr.labelOffset+o.labelHeight+r.pad.t+r.pad.b;var c="left";Ba.isRightAnchor(r)&&(o.lx-=o.outerLength,c="right"),Ba.isCenterAnchor(r)&&(o.lx-=o.outerLength/2,c="center");var d="top";Ba.isBottomAnchor(r)&&(o.ly-=o.height,d="bottom"),Ba.isMiddleAnchor(r)&&(o.ly-=o.height/2,d="middle"),o.outerLength=Math.ceil(o.outerLength),o.height=Math.ceil(o.height),o.lx=Math.round(o.lx),o.ly=Math.round(o.ly);var x={y:r.y,b:o.height*dx[d],t:o.height*hx[d]};r.lenmode==="fraction"?(x.l=0,x.xl=r.x-r.len*hx[c],x.r=0,x.xr=r.x+r.len*dx[c]):(x.x=r.x,x.l=o.outerLength*hx[c],x.r=o.outerLength*dx[c]),kp.autoMargin(e,WN(r),x)}function ehe(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(Sp,t).call(ohe,t).call(the,t).call(nhe,t).call(ihe,e,t).call(rhe,e,t);var n=t._dims;Ii.setTranslate(r,n.lx+t.pad.l,n.ly+t.pad.t),r.call(KN,t,!1),r.call(Sp,t)}function Sp(e,r,t){if(r.currentvalue.visible){var n=r._dims,a,o;switch(r.currentvalue.xanchor){case"right":a=n.inputAreaLength-Hr.currentValueInset-n.currentValueMaxWidth,o="left";break;case"center":a=n.inputAreaLength*.5,o="middle";break;default:a=Hr.currentValueInset,o="left"}var i=Ba.ensureSingle(e,"text",Hr.labelClass,function(d){d.attr({"text-anchor":o,"data-notex":1})}),l=r.currentvalue.prefix?r.currentvalue.prefix:"";if(typeof t=="string")l+=t;else{var u=r.steps[r.active].label,s=r._gd._fullLayout._meta;s&&(u=Ba.templateString(u,s)),l+=u}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),i.call(Ii.font,r.currentvalue.font).text(l).call(jc.convertToTspans,r._gd);var f=jc.lineCount(i),c=(n.currentValueMaxLines+1-f)*r.currentvalue.font.size*XN;return jc.positionText(i,a,c),i}}function rhe(e,r,t){var n=Ba.ensureSingle(e,"rect",Hr.gripRectClass,function(a){a.call($N,r,e,t).style("pointer-events","all")});n.attr({width:Hr.gripWidth,height:Hr.gripHeight,rx:Hr.gripRadius,ry:Hr.gripRadius}).call(zl.stroke,t.bordercolor).call(zl.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function ZN(e,r,t){var n=Ba.ensureSingle(e,"text",Hr.labelClass,function(i){i.attr({"text-anchor":"middle","data-notex":1})}),a=r.step.label,o=t._gd._fullLayout._meta;return o&&(a=Ba.templateString(a,o)),n.call(Ii.font,t.font).text(a).call(jc.convertToTspans,t._gd),n}function the(e,r){var t=Ba.ensureSingle(e,"g",Hr.labelsClass),n=r._dims,a=t.selectAll("g."+Hr.labelGroupClass).data(n.labelSteps);a.enter().append("g").classed(Hr.labelGroupClass,!0),a.exit().remove(),a.each(function(o){var i=Pi.select(this);i.call(ZN,o,r),Ii.setTranslate(i,gx(r,o.fraction),Hr.tickOffset+r.ticklen+r.font.size*XN+Hr.labelOffset+n.currentValueTotalHeight)})}function GN(e,r,t,n,a){var o=Math.round(n*(t._stepCount-1)),i=t._visibleSteps[o]._index;i!==t.active&&JN(e,r,t,i,!0,a)}function JN(e,r,t,n,a,o){var i=t.active;t.active=n,$ve(e.layout,Hr.name,t).applyUpdate("active",n);var l=t.steps[t.active];r.call(KN,t,o),r.call(Sp,t),e.emit("plotly_sliderchange",{slider:t,step:t.steps[t.active],interaction:a,previousActive:i}),l&&l.method&&a&&(r._nextMethod?(r._nextMethod.step=l,r._nextMethod.doCallback=a,r._nextMethod.doTransition=o):(r._nextMethod={step:l,doCallback:a,doTransition:o},r._nextMethodRaf=window.requestAnimationFrame(function(){var u=r._nextMethod.step;u.method&&(u.execute&&kp.executeAPICommand(e,u.method,u.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function $N(e,r,t){if(r._context.staticPlot)return;var n=t.node(),a=Pi.select(r);function o(){return t.data()[0]}function i(){var l=o();r.emit("plotly_sliderstart",{slider:l});var u=t.select("."+Hr.gripRectClass);Pi.event.stopPropagation(),Pi.event.preventDefault(),u.call(zl.fill,l.activebgcolor);var s=YN(l,Pi.mouse(n)[0]);GN(r,t,l,s,!0),l._dragging=!0;function f(){var d=o(),x=YN(d,Pi.mouse(n)[0]);GN(r,t,d,x,!1)}a.on("mousemove",f),a.on("touchmove",f);function c(){var d=o();d._dragging=!1,u.call(zl.fill,d.bgcolor),a.on("mouseup",null),a.on("mousemove",null),a.on("touchend",null),a.on("touchmove",null),r.emit("plotly_sliderend",{slider:d,step:d.steps[d.active]})}a.on("mouseup",c),a.on("touchend",c)}e.on("mousedown",i),e.on("touchstart",i)}function nhe(e,r){var t=e.selectAll("rect."+Hr.tickRectClass).data(r._visibleSteps),n=r._dims;t.enter().append("rect").classed(Hr.tickRectClass,!0),t.exit().remove(),t.attr({width:r.tickwidth+"px","shape-rendering":"crispEdges"}),t.each(function(a,o){var i=o%n.labelStride===0,l=Pi.select(this);l.attr({height:i?r.ticklen:r.minorticklen}).call(zl.fill,r.tickcolor),Ii.setTranslate(l,gx(r,o/(r._stepCount-1))-.5*r.tickwidth,(i?Hr.tickOffset:Hr.minorTickOffset)+n.currentValueTotalHeight)})}function ahe(e){var r=e._dims;r.labelSteps=[];for(var t=e._stepCount,n=0;n<t;n+=r.labelStride)r.labelSteps.push({fraction:n/(t-1),step:e._visibleSteps[n]})}function KN(e,r,t){for(var n=e.select("rect."+Hr.gripRectClass),a=0,o=0;o<r._stepCount;o++)if(r._visibleSteps[o]._index===r.active){a=o;break}var i=gx(r,a/(r._stepCount-1));if(!r._invokingCommand){var l=n;t&&r.transition.duration>0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",Jve(i-Hr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function gx(e,r){var t=e._dims;return t.inputAreaStart+Hr.stepInset+(t.inputAreaLength-2*Hr.stepInset)*Math.min(1,Math.max(0,r))}function YN(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Hr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Hr.stepInset-2*t.inputAreaStart)))}function ihe(e,r,t){var n=t._dims,a=Ba.ensureSingle(e,"rect",Hr.railTouchRectClass,function(o){o.call($N,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Hr.tickOffset+t.ticklen+n.labelHeight)}).call(zl.fill,t.bgcolor).attr("opacity",0),Ii.setTranslate(a,0,n.currentValueTotalHeight)}function ohe(e,r){var t=r._dims,n=t.inputAreaLength-Hr.railInset*2,a=Ba.ensureSingle(e,"rect",Hr.railRectClass);a.attr({width:n,height:Hr.railWidth,rx:Hr.railRadius,ry:Hr.railRadius,"shape-rendering":"crispEdges"}).call(zl.stroke,r.bordercolor).call(zl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Ii.setTranslate(a,Hr.railInset,(t.inputAreaWidth-Hr.railWidth)*.5+t.currentValueTotalHeight)}});var rq=xe((L4e,eq)=>{"use strict";var lhe=Qc();eq.exports={moduleType:"component",name:lhe.name,layoutAttributes:vx(),supplyLayoutDefaults:VN(),draw:jN()}});var Cp=xe((R4e,nq)=>{"use strict";var tq=Zi();nq.exports={bgcolor:{valType:"color",dflt:tq.background,editType:"plot"},bordercolor:{valType:"color",dflt:tq.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 yx=xe((D4e,aq)=>{"use strict";aq.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 Ep=xe((P4e,iq)=>{"use strict";iq.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 sq=xe(Rp=>{"use strict";var she=fn(),uhe=Un(),oq=Ep(),fhe=Bn().LINE_SPACING,Lp=oq.name;function lq(e){var r=e&&e[Lp];return r&&r.visible}Rp.isVisible=lq;Rp.makeData=function(e){for(var r=she.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a<r.length;a++){var o=r[a];if(lq(o)){n.push(o);var i=o[Lp];i._id=Lp+o._id,i._height=(e.height-t.b-t.t)*i.thickness,i._offsetShift=Math.floor(i.borderwidth/2)}}e._rangeSliderData=n};Rp.autoMarginOpts=function(e,r){var t=e._fullLayout,n=r[Lp],a=r._id.charAt(0),o=0,i=0;if(r.side==="bottom"&&(o=r._depth,r.title.text!==t._dfltTitle[a])){i=1.5*r.title.font.size+10+n._offsetShift;var l=(r.title.text.match(uhe.BR_TAG_ALL)||[]).length;i+=l*r.title.font.size*fhe}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:n._height+o+Math.max(t.margin.b,i),pad:oq.extraPad+n._offsetShift*2}}});var vq=xe((z4e,cq)=>{"use strict";var Dp=rr(),uq=wt(),fq=fn(),che=Cp(),vhe=yx();cq.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;Dp.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=uq.newContainer(o,"rangeslider");function u(M,h){return Dp.coerce(i,l,che,M,h)}var s,f;function c(M,h){return Dp.coerce(s,f,vhe,M,h)}var d=u("visible");if(d){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!o.isValidRange(i.range)),u("range");var x=t._subplots;if(x)for(var g=x.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===fq.name2id(n)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),w=Dp.simpleMap(g,fq.id2name),T=0;T<w.length;T++){var m=w[T];s=i[m]||{},f=uq.newContainer(l,m,"yaxis");var k=t[m],S;s.range&&k.isValidRange(s.range)&&(S="fixed");var b=c("rangemode",S);b!=="match"&&c("range",k.range.slice())}l._input=i}}});var dq=xe((F4e,hq)=>{"use strict";var hhe=fn().list,dhe=Ku().getAutoRange,phe=Ep();hq.exports=function(r){for(var t=hhe(r,"x",!0),n=0;n<t.length;n++){var a=t[n],o=a[phe.name];o&&o.visible&&o.autorange&&(o._input.autorange=!0,o._input.range=o.range=dhe(r,a))}}});var mq=xe((N4e,yq)=>{"use strict";var Pp=nt(),ghe=Cr(),yhe=bn(),Wt=rr(),Ip=Wt.strTranslate,gq=Mt(),Fl=Xr(),mhe=W0(),bhe=Vb(),mx=fn(),xhe=Ai(),_he=Ml(),Kr=Ep();yq.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n<t.length;n++){var a=t[n][Kr.name];a._clipId=a._id+"-"+r._uid}function o(l){return l._name}var i=r._infolayer.selectAll("g."+Kr.containerClassName).data(t,o);i.exit().each(function(l){var u=l[Kr.name];r._topdefs.select("#"+u._clipId).remove()}).remove(),t.length!==0&&(i.enter().append("g").classed(Kr.containerClassName,!0).attr("pointer-events","all"),i.each(function(l){var u=Pp.select(this),s=l[Kr.name],f=r[mx.id2name(l.anchor)],c=s[mx.id2name(l.anchor)];if(s.range){var d=Wt.simpleMap(s.range,l.r2l),x=Wt.simpleMap(l.range,l.r2l),g;x[0]<x[1]?g=[Math.min(d[0],x[0]),Math.max(d[1],x[1])]:g=[Math.max(d[0],x[0]),Math.min(d[1],x[1])],s.range=s._input.range=Wt.simpleMap(g,l.l2r)}l.cleanRange("rangeslider.range");var w=r._size,T=l.domain;s._width=w.w*(T[1]-T[0]);var m=Math.round(w.l+w.w*T[0]),k=Math.round(w.t+w.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+s._offsetShift+Kr.extraPad);u.attr("transform",Ip(m,k)),s._rl=Wt.simpleMap(s.range,l.r2l);var S=s._rl[0],b=s._rl[1],M=b-S;if(s.p2d=function(F){return F/s._width*M+S},s.d2p=function(F){return(F-S)/M*s._width},l.rangebreaks){var h=l.locateBreaks(S,b);if(h.length){var _,y,v=0;for(_=0;_<h.length;_++)y=h[_],v+=y.max-y.min;var A=s._width/(b-S-v),p=[-A*S];for(_=0;_<h.length;_++)y=h[_],p.push(p[p.length-1]-A*(y.max-y.min));for(s.d2p=function(F){for(var z=p[0],I=0;I<h.length;I++){var L=h[I];if(F>=L.max)z=p[I+1];else if(F<L.min)break}return z+A*F},_=0;_<h.length;_++)y=h[_],y.pmin=s.d2p(y.min),y.pmax=s.d2p(y.max);s.p2d=function(F){for(var z=p[0],I=0;I<h.length;I++){var L=h[I];if(F>=L.pmax)z=p[I+1];else if(F<L.pmin)break}return(F-z)/A}}}if(c.rangemode!=="match"){var R=f.r2l(c.range[0]),E=f.r2l(c.range[1]),D=E-R;s.d2pOppAxis=function(F){return(F-R)/D*s._height}}u.call(Ahe,e,l,s).call(khe,e,l,s).call(She,e,l,s).call(Ehe,e,l,s,c).call(Lhe,e,l,s).call(Rhe,e,l,s),whe(u,e,l,s),The(u,e,l,s,f,c),l.side==="bottom"&&mhe.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:k+s._height+s._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function pq(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function whe(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Kr.slideBoxClassName).node(),o=e.select("rect."+Kr.grabAreaMinClassName).node(),i=e.select("rect."+Kr.grabAreaMaxClassName).node();function l(){var u=Pp.event,s=u.target,f=pq(u),c=f-e.node().getBoundingClientRect().left,d=n.d2p(t._rl[0]),x=n.d2p(t._rl[1]),g=xhe.coverSlip();this.addEventListener("touchmove",w),this.addEventListener("touchend",T),g.addEventListener("mousemove",w),g.addEventListener("mouseup",T);function w(m){var k=pq(m),S=+k-f,b,M,h;switch(s){case a:if(h="ew-resize",d+S>t._length||x+S<0)return;b=d+S,M=x+S;break;case o:if(h="col-resize",d+S>t._length)return;b=d+S,M=x;break;case i:if(h="col-resize",x+S<0)return;b=d,M=x+S;break;default:h="ew-resize",b=c,M=c+S;break}if(M<b){var _=M;M=b,b=_}n._pixelMin=b,n._pixelMax=M,_he(Pp.select(g),h),Mhe(e,r,t,n)}function T(){g.removeEventListener("mousemove",w),g.removeEventListener("mouseup",T),this.removeEventListener("touchmove",w),this.removeEventListener("touchend",T),Wt.removeElement(g)}}e.on("mousedown",l),e.on("touchstart",l)}function Mhe(e,r,t,n){function a(l){return t.l2r(Wt.constrain(l,n._rl[0],n._rl[1]))}var o=a(n.p2d(n._pixelMin)),i=a(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){ghe.call("_guiRelayout",r,t._name+".range",[o,i])})}function The(e,r,t,n,a,o){var i=Kr.handleWidth/2;function l(m){return Wt.constrain(m,0,n._width)}function u(m){return Wt.constrain(m,0,n._height)}function s(m){return Wt.constrain(m,-i,n._width+i)}var f=l(n.d2p(t._rl[0])),c=l(n.d2p(t._rl[1]));if(e.select("rect."+Kr.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+Kr.maskMinClassName).attr("width",f),e.select("rect."+Kr.maskMaxClassName).attr("x",c).attr("width",n._width-c),o.rangemode!=="match"){var d=n._height-u(n.d2pOppAxis(a._rl[1])),x=n._height-u(n.d2pOppAxis(a._rl[0]));e.select("rect."+Kr.maskMinOppAxisClassName).attr("x",f).attr("height",d).attr("width",c-f),e.select("rect."+Kr.maskMaxOppAxisClassName).attr("x",f).attr("y",x).attr("height",n._height-x).attr("width",c-f),e.select("rect."+Kr.slideBoxClassName).attr("y",d).attr("height",x-d)}var g=.5,w=Math.round(s(f-i))-g,T=Math.round(s(c-i))+g;e.select("g."+Kr.grabberMinClassName).attr("transform",Ip(w,g)),e.select("g."+Kr.grabberMaxClassName).attr("transform",Ip(T,g))}function Ahe(e,r,t,n){var a=Wt.ensureSingle(e,"rect",Kr.bgClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),o=n.borderwidth%2===0?n.borderwidth:n.borderwidth-1,i=-n._offsetShift,l=gq.crispRound(r,n.borderwidth);a.attr({width:n._width+o,height:n._height+o,transform:Ip(i,i),"stroke-width":l}).call(Fl.stroke,n.bordercolor).call(Fl.fill,n.bgcolor)}function khe(e,r,t,n){var a=r._fullLayout,o=Wt.ensureSingleById(a._topdefs,"clipPath",n._clipId,function(i){i.append("rect").attr({x:0,y:0})});o.select("rect").attr({width:n._width,height:n._height})}function She(e,r,t,n){var a=r.calcdata,o=e.selectAll("g."+Kr.rangePlotClassName).data(t._subplotsWith,Wt.identity);o.enter().append("g").attr("class",function(l){return Kr.rangePlotClassName+" "+l}).call(gq.setClipUrl,n._clipId,r),o.order(),o.exit().remove();var i;o.each(function(l,u){var s=Pp.select(this),f=u===0,c=mx.getFromId(r,l,"y"),d=c._name,x=n[d],g={data:[],layout:{xaxis:{type:t.type,domain:[0,1],range:n.range.slice(),calendar:t.calendar},width:n._width,height:n._height,margin:{t:0,b:0,l:0,r:0}},_context:r._context};t.rangebreaks&&(g.layout.xaxis.rangebreaks=t.rangebreaks),g.layout[d]={type:c.type,domain:[0,1],range:x.rangemode!=="match"?x.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(g.layout[d].rangebreaks=c.rangebreaks),yhe.supplyDefaults(g);var w=g._fullLayout.xaxis,T=g._fullLayout[d];w.clearCalc(),w.setScale(),T.clearCalc(),T.setScale();var m={id:l,plotgroup:s,xaxis:w,yaxis:T,isRangePlot:!0};f?i=m:(m.mainplot="xy",m.mainplotinfo=i),bhe.rangePlot(r,m,Che(a,l))})}function Che(e,r){for(var t=[],n=0;n<e.length;n++){var a=e[n],o=a[0].trace;o.xaxis+o.yaxis===r&&t.push(a)}return t}function Ehe(e,r,t,n,a){var o=Wt.ensureSingle(e,"rect",Kr.maskMinClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})});o.attr("height",n._height).call(Fl.fill,Kr.maskColor);var i=Wt.ensureSingle(e,"rect",Kr.maskMaxClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});if(i.attr("height",n._height).call(Fl.fill,Kr.maskColor),a.rangemode!=="match"){var l=Wt.ensureSingle(e,"rect",Kr.maskMinOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",n._width).call(Fl.fill,Kr.maskOppAxisColor);var u=Wt.ensureSingle(e,"rect",Kr.maskMaxOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});u.attr("width",n._width).style("border-top",Kr.maskOppBorder).call(Fl.fill,Kr.maskOppAxisColor)}}function Lhe(e,r,t,n){if(!r._context.staticPlot){var a=Wt.ensureSingle(e,"rect",Kr.slideBoxClassName,function(o){o.attr({y:0,cursor:Kr.slideBoxCursor,"shape-rendering":"crispEdges"})});a.attr({height:n._height,fill:Kr.slideBoxFill})}}function Rhe(e,r,t,n){var a=Wt.ensureSingle(e,"g",Kr.grabberMinClassName),o=Wt.ensureSingle(e,"g",Kr.grabberMaxClassName),i={x:0,width:Kr.handleWidth,rx:Kr.handleRadius,fill:Fl.background,stroke:Fl.defaultLine,"stroke-width":Kr.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(n._height/4),height:Math.round(n._height/2)},u=Wt.ensureSingle(a,"rect",Kr.handleMinClassName,function(x){x.attr(i)});u.attr(l);var s=Wt.ensureSingle(o,"rect",Kr.handleMaxClassName,function(x){x.attr(i)});s.attr(l);var f={width:Kr.grabAreaWidth,x:0,y:0,fill:Kr.grabAreaFill,cursor:r._context.staticPlot?void 0:Kr.grabAreaCursor},c=Wt.ensureSingle(a,"rect",Kr.grabAreaMinClassName,function(x){x.attr(f)});c.attr("height",n._height);var d=Wt.ensureSingle(o,"rect",Kr.grabAreaMaxClassName,function(x){x.attr(f)});d.attr("height",n._height)}});var xq=xe((q4e,bq)=>{"use strict";var Dhe=rr(),Phe=Cp(),Ihe=yx(),bx=sq();bq.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Dhe.extendFlat({},Phe,{yaxis:Ihe})}}},layoutAttributes:Cp(),handleDefaults:vq(),calcAutorange:dq(),draw:mq(),isVisible:bx.isVisible,makeData:bx.makeData,autoMarginOpts:bx.autoMarginOpts}});var zp=xe((O4e,wq)=>{"use strict";var zhe=Nn(),_q=Zi(),Fhe=wt().templatedArray,Nhe=Fhe("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"});wq.exports={visible:{valType:"boolean",editType:"plot"},buttons:Nhe,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:zhe({editType:"plot"}),bgcolor:{valType:"color",dflt:_q.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:_q.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var xx=xe((B4e,Mq)=>{"use strict";Mq.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var kq=xe((U4e,Aq)=>{"use strict";var Fp=rr(),qhe=Xr(),Ohe=wt(),Bhe=Mi(),Tq=zp(),_x=xx();Aq.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=Ohe.newContainer(t,"rangeselector");function u(x,g){return Fp.coerce(i,l,Tq,x,g)}var s=Bhe(i,l,{name:"buttons",handleItemDefaults:Uhe,calendar:o}),f=u("visible",s.length>0);if(f){var c=Hhe(t,n,a);u("x",c[0]),u("y",c[1]),Fp.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),Fp.coerceFont(u,"font",n.font);var d=u("bgcolor");u("activecolor",qhe.contrast(d,_x.lightAmount,_x.darkAmount)),u("bordercolor"),u("borderwidth")}};function Uhe(e,r,t,n){var a=n.calendar;function o(u,s){return Fp.coerce(e,r,Tq.buttons,u,s)}var i=o("visible");if(i){var l=o("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":o("stepmode"),o("count")),o("label")}}function Hhe(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o<n.length;o++){var i=r[n[o]].domain;i&&(a=Math.max(i[1],a))}return[e.domain[0],a+_x.yPad]}});var Cq=xe((H4e,Sq)=>{"use strict";var Vhe=Yg(),Ghe=rr().titleCase;Sq.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=Yhe(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function Yhe(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=Vhe["utc"+Ghe(a)],i=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+o.offset(n,-i));break;case"todate":var u=o.offset(n,-i);l=e.l2r(+o.ceil(u));break}var s=t[1];return[l,s]}});var Fq=xe((V4e,zq)=>{"use strict";var qp=nt(),Xhe=Cr(),Whe=bn(),Eq=Xr(),Iq=Mt(),Bo=rr(),Lq=Bo.strTranslate,Np=Un(),Zhe=fn(),Tx=Bn(),Rq=Tx.LINE_SPACING,Dq=Tx.FROM_TL,Pq=Tx.FROM_BR,Mx=xx(),Jhe=Cq();zq.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data($he(r),Khe);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=qp.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(Bo.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=qp.select(this),c=Jhe(i,s);s._isActive=Qhe(i,s,c),f.call(wx,l,s),f.call(e1e,l,s,r),f.on("click",function(){r._dragged||Xhe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){s._isHovered=!0,f.call(wx,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(wx,l,s)})}),t1e(r,u,l,i._name,o)})};function $he(e){for(var r=Zhe.list(e,"x",!0),t=[],n=0;n<r.length;n++){var a=r[n];a.rangeselector&&a.rangeselector.visible&&t.push(a)}return t}function Khe(e){return e._id}function Qhe(e,r,t){if(r.step==="all")return e.autorange===!0;var n=Object.keys(t);return e.range[0]===t[n[0]]&&e.range[1]===t[n[1]]}function wx(e,r,t){var n=Bo.ensureSingle(e,"rect","selector-rect",function(a){a.attr("shape-rendering","crispEdges")});n.attr({rx:Mx.rx,ry:Mx.ry}),n.call(Eq.stroke,r.bordercolor).call(Eq.fill,jhe(r,t)).style("stroke-width",r.borderwidth+"px")}function jhe(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function e1e(e,r,t,n){function a(i){Np.convertToTspans(i,n)}var o=Bo.ensureSingle(e,"text","selector-text",function(i){i.attr("text-anchor","middle")});o.call(Iq.font,r.font).text(r1e(t,n._fullLayout._meta)).call(a)}function r1e(e,r){return e.label?r?Bo.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function t1e(e,r,t,n,a){var o=0,i=0,l=t.borderwidth;r.each(function(){var x=qp.select(this),g=x.select(".selector-text"),w=t.font.size*Rq,T=Math.max(w*Np.lineCount(g),16)+3;i=Math.max(i,T)}),r.each(function(){var x=qp.select(this),g=x.select(".selector-rect"),w=x.select(".selector-text"),T=w.node()&&Iq.bBox(w.node()).width,m=t.font.size*Rq,k=Np.lineCount(w),S=Math.max(T+10,Mx.minButtonWidth);x.attr("transform",Lq(l+o,l)),g.attr({x:0,y:0,width:S,height:i}),Np.positionText(w,S/2,i/2-(k-1)*m/2+3),o+=S+5});var u=e._fullLayout._size,s=u.l+u.w*t.x,f=u.t+u.h*(1-t.y),c="left";Bo.isRightAnchor(t)&&(s-=o,c="right"),Bo.isCenterAnchor(t)&&(s-=o/2,c="center");var d="top";Bo.isBottomAnchor(t)&&(f-=i,d="bottom"),Bo.isMiddleAnchor(t)&&(f-=i/2,d="middle"),o=Math.ceil(o),i=Math.ceil(i),s=Math.round(s),f=Math.round(f),Whe.autoMargin(e,n+"-range-selector",{x:t.x,y:t.y,l:o*Dq[c],r:o*Pq[c],b:i*Pq[d],t:i*Dq[d]}),a.attr("transform",Lq(s,f))}});var qq=xe((G4e,Nq)=>{"use strict";Nq.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:zp()}}},layoutAttributes:zp(),handleDefaults:kq(),draw:Fq()}});var Op=xe(Ax=>{"use strict";var Oq=Dt().extendFlat;Ax.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]},n=e.name?e.name+" ":"",a=e.trace?"trace":"subplot",o=r.description?" "+r.description:"",i={x:Oq({},t,{}),y:Oq({},t,{}),editType:e.editType};return e.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:e.editType},i.column={valType:"integer",min:0,dflt:0,editType:e.editType}),i};Ax.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],o=n&&n.y||[0,1],i=r.grid;if(i){var l=t("domain.column");l!==void 0&&(l<i.columns?a=i._domains.x[l]:delete e.domain.column);var u=t("domain.row");u!==void 0&&(u<i.rows?o=i._domains.y[u]:delete e.domain.row)}var s=t("domain.x",a),f=t("domain.y",o);s[0]<s[1]||(e.domain.x=a.slice()),f[0]<f[1]||(e.domain.y=o.slice())}});var Gq=xe((X4e,Vq)=>{"use strict";var n1e=rr(),a1e=(Eu(),Kn(Cu)).counter,i1e=Op().attributes,Bq=mn().idRegex,o1e=wt(),kx={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:[a1e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Bq.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Bq.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:i1e({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 Bp(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function l1e(e,r){var t=e.grid||{},n=Bp(r,t,"x"),a=Bp(r,t,"y");if(!e.grid&&!n&&!a)return;var o=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),i=Array.isArray(n),l=Array.isArray(a),u=i&&n!==t.xaxes&&l&&a!==t.yaxes,s,f;o?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=a.length),i&&(f=n.length));var c=o1e.newContainer(r,"grid");function d(h,_){return n1e.coerce(t,c,kx,h,_)}var x=d("rows",s),g=d("columns",f);if(!(x*g>1)){delete r.grid;return}if(!o&&!i&&!l){var w=d("pattern")==="independent";w&&(o=!0)}c._hasSubplotGrid=o;var T=d("roworder"),m=T==="top to bottom",k=o?.2:.1,S=o?.3:.1,b,M;u&&r._splomGridDflt&&(b=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:Uq("x",d,k,b,g),y:Uq("y",d,S,M,x,m)}}function Uq(e,r,t,n,a,o){var i=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var u=new Array(a),s=l[0],f=(l[1]-s)/(a-i),c=f*(1-i),d=0;d<a;d++){var x=s+f*d;u[o?a-1-d:d]=[x,x+c]}return u}function s1e(e,r){var t=r.grid;if(!(!t||!t._domains)){var n=e.grid||{},a=r._subplots,o=t._hasSubplotGrid,i=t.rows,l=t.columns,u=t.pattern==="independent",s,f,c,d,x,g,w,T=t._axisMap={};if(o){var m=n.subplots||[];g=t.subplots=new Array(i);var k=1;for(s=0;s<i;s++){var S=g[s]=new Array(l),b=m[s]||[];for(f=0;f<l;f++)if(u?(x=k===1?"xy":"x"+k+"y"+k,k++):x=b[f],S[f]="",a.cartesian.indexOf(x)!==-1){if(w=x.indexOf("y"),c=x.slice(0,w),d=x.slice(w),T[c]!==void 0&&T[c]!==f||T[d]!==void 0&&T[d]!==s)continue;S[f]=x,T[c]=f,T[d]=s}}}else{var M=Bp(r,n,"x"),h=Bp(r,n,"y");t.xaxes=Hq(M,a.xaxis,l,T,"x"),t.yaxes=Hq(h,a.yaxis,i,T,"y")}var _=t._anchors={},y=t.roworder==="top to bottom";for(var v in T){var A=v.charAt(0),p=t[A+"side"],R,E,D;if(p.length<8)_[v]="free";else if(A==="x"){if(p.charAt(0)==="t"===y?(R=0,E=1,D=i):(R=i-1,E=-1,D=-1),o){var F=T[v];for(s=R;s!==D;s+=E)if(x=g[s][F],!!x&&(w=x.indexOf("y"),x.slice(0,w)===v)){_[v]=x.slice(w);break}}else for(s=R;s!==D;s+=E)if(d=t.yaxes[s],a.cartesian.indexOf(v+d)!==-1){_[v]=d;break}}else if(p.charAt(0)==="l"?(R=0,E=1,D=l):(R=l-1,E=-1,D=-1),o){var z=T[v];for(s=R;s!==D;s+=E)if(x=g[z][s],!!x&&(w=x.indexOf("y"),x.slice(w)===v)){_[v]=x.slice(0,w);break}}else for(s=R;s!==D;s+=E)if(c=t.xaxes[s],a.cartesian.indexOf(c+v)!==-1){_[v]=c;break}}}}function Hq(e,r,t,n,a){var o=new Array(t),i;function l(u,s){r.indexOf(s)!==-1&&n[s]===void 0?(o[u]=s,n[s]=u):o[u]=""}if(Array.isArray(e))for(i=0;i<t;i++)l(i,e[i]);else for(l(0,a),i=1;i<t;i++)l(i,a+(i+1));return o}Vq.exports={moduleType:"component",name:"grid",schema:{layout:{grid:kx}},layoutAttributes:kx,sizeDefaults:l1e,contentDefaults:s1e}});var Sx=xe((W4e,Yq)=>{"use strict";Yq.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 Zq=xe((Z4e,Wq)=>{"use strict";var Xq=it(),u1e=Cr(),f1e=rr(),c1e=wt(),v1e=Sx();Wq.exports=function(e,r,t,n){var a="error_"+n.axis,o=c1e.newContainer(r,a),i=e[a]||{};function l(g,w){return f1e.coerce(i,o,v1e,g,w)}var u=i.array!==void 0||i.value!==void 0||i.type==="sqrt",s=l("visible",u);if(s!==!1){var f=l("type","array"in i?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in i))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var d="copy_"+n.inherit+"style";if(n.inherit){var x=r["error_"+n.inherit];(x||{}).visible&&l(d,!(i.color||Xq(i.thickness)||Xq(i.width)))}(!n.inherit||!o[d])&&(l("color",t),l("thickness"),l("width",u1e.traceIs(r,"gl3d")?0:4))}}});var Cx=xe((J4e,$q)=>{"use strict";$q.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(s,f){var c=+a[f];return[c,c]};var o=r.arrayminus||[];return function(s,f){var c=+a[f],d=+o[f];return!isNaN(c)||!isNaN(d)?[d||0,c||0]:[NaN,NaN]}}else{var i=Jq(t,r.value),l=Jq(t,r.valueminus);return n||r.valueminus===void 0?function(s){var f=i(s);return[f,f]}:function(s){return[l(s),i(s)]}}};function Jq(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 jq=xe(($4e,Qq)=>{"use strict";var Ex=it(),h1e=Cr(),Lx=Ot(),d1e=rr(),p1e=Cx();Qq.exports=function(r){for(var t=r.calcdata,n=0;n<t.length;n++){var a=t[n],o=a[0].trace;if(o.visible===!0&&h1e.traceIs(o,"errorBarsOK")){var i=Lx.getFromId(r,o.xaxis),l=Lx.getFromId(r,o.yaxis);Kq(a,o,i,"x"),Kq(a,o,l,"y")}}};function Kq(e,r,t,n){var a=r["error_"+n]||{},o=a.visible&&["linear","log"].indexOf(t.type)!==-1,i=[];if(o){for(var l=p1e(a),u=0;u<e.length;u++){var s=e[u],f=s.i;if(f===void 0)f=u;else if(f===null)continue;var c=s[n];if(Ex(t.c2l(c))){var d=l(c,f);if(Ex(d[0])&&Ex(d[1])){var x=s[n+"s"]=c-d[0],g=s[n+"h"]=c+d[1];i.push(x,g)}}}var w=t._id,T=r._extremes[w],m=Lx.findExtremes(t,i,d1e.extendFlat({tozero:T.opts.tozero},{padded:!0}));T.min=T.min.concat(m.min),T.max=T.max.concat(m.max)}}});var tO=xe((K4e,rO)=>{"use strict";var eO=nt(),Nl=it(),g1e=Mt(),y1e=wa();rO.exports=function(r,t,n,a){var o,i=n.xaxis,l=n.yaxis,u=a&&a.duration>0,s=r._context.staticPlot;t.each(function(f){var c=f[0].trace,d=c.error_x||{},x=c.error_y||{},g;c.ids&&(g=function(k){return k.id});var w=y1e.hasMarkers(c)&&c.marker.maxdisplayed>0;!x.visible&&!d.visible&&(f=[]);var T=eO.select(this).selectAll("g.errorbar").data(f,g);if(T.exit().remove(),!!f.length){d.visible||T.selectAll("path.xerror").remove(),x.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var m=T.enter().append("g").classed("errorbar",!0);u&&m.style("opacity",0).transition().duration(a.duration).style("opacity",1),g1e.setClipUrl(T,n.layerClipId,r),T.each(function(k){var S=eO.select(this),b=m1e(k,i,l);if(!(w&&!k.vis)){var M,h=S.select("path.yerror");if(x.visible&&Nl(b.x)&&Nl(b.yh)&&Nl(b.ys)){var _=x.width;M="M"+(b.x-_)+","+b.yh+"h"+2*_+"m-"+_+",0V"+b.ys,b.noYS||(M+="m-"+_+",0h"+2*_),o=!h.size(),o?h=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(h=h.transition().duration(a.duration).ease(a.easing)),h.attr("d",M)}else h.remove();var y=S.select("path.xerror");if(d.visible&&Nl(b.y)&&Nl(b.xh)&&Nl(b.xs)){var v=(d.copy_ystyle?x:d).width;M="M"+b.xh+","+(b.y-v)+"v"+2*v+"m0,-"+v+"H"+b.xs,b.noXS||(M+="m0,-"+v+"v"+2*v),o=!y.size(),o?y=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(y=y.transition().duration(a.duration).ease(a.easing)),y.attr("d",M)}else y.remove()}})}})};function m1e(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),Nl(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),Nl(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var iO=xe((Q4e,aO)=>{"use strict";var b1e=nt(),nO=Xr();aO.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=b1e.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(nO.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(nO.stroke,o.color)})}});var sO=xe((j4e,lO)=>{"use strict";var ev=rr(),oO=ea().overrideAll,rv=Sx(),Qs={error_x:ev.extendFlat({},rv),error_y:ev.extendFlat({},rv)};delete Qs.error_x.copy_zstyle;delete Qs.error_y.copy_zstyle;delete Qs.error_y.copy_ystyle;var tv={error_x:ev.extendFlat({},rv),error_y:ev.extendFlat({},rv),error_z:ev.extendFlat({},rv)};delete tv.error_x.copy_ystyle;delete tv.error_y.copy_ystyle;delete tv.error_z.copy_ystyle;delete tv.error_z.copy_zstyle;lO.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Qs,bar:Qs,histogram:Qs,scatter3d:oO(tv,"calc","nested"),scattergl:oO(Qs,"calc","nested")}},supplyDefaults:Zq(),calc:jq(),makeComputeError:Cx(),plot:tO(),style:iO(),hoverInfo:x1e};function x1e(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 fO=xe((e6e,uO)=>{"use strict";uO.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 mO=xe((r6e,yO)=>{"use strict";var ql=nt(),Hp=bn(),cO=Cr(),Uo=Ot(),Up=Ai(),ci=rr(),Fi=ci.strTranslate,gO=Dt().extendFlat,Rx=Ml(),zi=Mt(),Pf=Xr(),_1e=W0(),w1e=Un(),M1e=$i().flipScale,T1e=cp(),A1e=Bb(),k1e=Ja(),Px=Bn(),vO=Px.LINE_SPACING,hO=Px.FROM_TL,dO=Px.FROM_BR,Bt=fO().cn;function S1e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Bt.colorbar).data(C1e(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Bt.colorbar,!0),t.each(function(n){var a=ql.select(this);ci.ensureSingle(a,"rect",Bt.cbbg),ci.ensureSingle(a,"g",Bt.cbfills),ci.ensureSingle(a,"g",Bt.cblines),ci.ensureSingle(a,"g",Bt.cbaxis,function(i){i.classed(Bt.crisp,!0)}),ci.ensureSingle(a,"g",Bt.cbtitleunshift,function(i){i.append("g").classed(Bt.cbtitle,!0)}),ci.ensureSingle(a,"rect",Bt.cboutline);var o=E1e(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&L1e(a,n,e)}),t.exit().each(function(n){Hp.autoMargin(e,n._id)}).remove(),t.order()}function C1e(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return gO(S,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,i,a):(a._fillgradient=o.reversescale?M1e(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f<t.length;f++){var c=t[f];if(i=c[0].trace,!!i._module){var d=i._module.colorbar;if(i.visible===!0&&d)for(var x=Array.isArray(d),g=x?d:[d],w=0;w<g.length;w++){l=g[w];var T=l.container;o=T?i[T]:i,o&&o.showscale&&(a=u(o.colorbar),a._id="cb"+i.uid+(x&&T?"-"+T:""),a._traceIndex=i.index,a._propPrefix=(T?T+".":"")+"colorbar.",a._meta=i._meta,s(),n.push(a))}}}for(var m in r._colorAxes)if(o=r[m],o.showscale){var k=r._colorAxes[m];a=u(o.colorbar),a._id="cb"+m,a._propPrefix=m+".colorbar.",a._meta=r._meta,l={min:"cmin",max:"cmax"},k[0]!=="heatmap"&&(i=k[1],l.calc=i._module.colorbar.calc),s(),n.push(a)}return n}var Dx=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],pO=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function E1e(e,r,t){var n=r.orientation==="v",a=r.len,o=r.lenmode,i=r.thickness,l=r.thicknessmode,u=r.outlinewidth,s=r.borderwidth,f=r.bgcolor,c=r.xanchor,d=r.yanchor,x=r.xpad,g=r.ypad,w=r.x,T=n?r.y:1-r.y,m=r.yref==="paper",k=r.xref==="paper",S=t._fullLayout,b=S._size,M=r._fillcolor,h=r._line,_=r.title,y=_.side,v=r._zrange||ql.extent((typeof M=="function"?M:h.color).domain()),A=typeof h.color=="function"?h.color:function(){return h.color},p=typeof M=="function"?M:function(){return M},R=r._levels,E=R1e(t,r,v),D=E.fill,F=E.line,z=Math.round(i*(l==="fraction"?n?b.w:b.h:1)),I=z/(n?b.w:b.h),L=Math.round(a*(o==="fraction"?n?b.h:b.w:1)),P=L/(n?b.h:b.w),O=k?b.w:t._fullLayout.width,U=m?b.h:t._fullLayout.height,V=Math.round(n?w*O+x:T*U+g),K={center:.5,right:1}[c]||0,j={top:1,middle:.5}[d]||0,G=n?w-K*I:T-j*I,q=n?T-j*P:w-K*P,J=Math.round(n?U*(1-q):O*q);r._lenFrac=P,r._thickFrac=I,r._uFrac=G,r._vFrac=q;var te=r._axis=D1e(t,r,v);te.position=I+(n?w+x/b.w:T+g/b.h);var Z=["top","bottom"].indexOf(y)!==-1;if(n&&Z&&(te.title.side=y,te.titlex=w+x/b.w,te.titley=q+(_.side==="top"?P-g/b.h:g/b.h)),!n&&!Z&&(te.title.side=y,te.titley=T+g/b.h,te.titlex=q+x/b.w),h.color&&r.tickmode==="auto"){te.tickmode="linear",te.tick0=R.start;var ie=R.size,Q=ci.constrain(L/50,4,15)+1,re=(v[1]-v[0])/((r.nticks||Q)*ie);if(re>1){var se=Math.pow(10,Math.floor(Math.log(re)/Math.LN10));ie*=se*ci.roundUp(re/se,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(te.tick0=0)}te.dtick=ie}var ee=n?g/b.h:x/b.w;te.domain=pO(Dx([q,q+P],ee),ee),te.setScale(),e.attr("transform",Fi(Math.round(b.l),Math.round(b.t)));var ae=e.select("."+Bt.cbtitleunshift).attr("transform",Fi(-Math.round(b.l),-Math.round(b.t))),ce=te.ticklabelposition,Me=te.title.font.size,ke=e.select("."+Bt.cbaxis),Se,ge=0,Le=0;function Ee(oe,ve){var he={propContainer:te,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Bt.cbtitle)},me=oe.charAt(0)==="h"?oe.slice(1):"h"+oe;e.selectAll("."+me+",."+me+"-math-group").remove(),_1e.draw(t,oe,gO(he,ve||{}))}function le(){if(n&&Z||!n&&!Z){var oe,ve;y==="top"&&(oe=x+b.l+O*w,ve=g+b.t+U*(1-q-P)+3+Me*.75),y==="bottom"&&(oe=x+b.l+O*w,ve=g+b.t+U*(1-q)-3-Me*.25),y==="right"&&(ve=g+b.t+U*T+3+Me*.75,oe=x+b.l+O*q),Ee(te._id+"title",{attributes:{x:oe,y:ve,"text-anchor":n?"start":"middle"}})}}function Y(){if(n&&!Z||!n&&Z){var oe=te.position||0,ve=te._offset+te._length/2,he,me;if(y==="right")me=ve,he=b.l+O*oe+10+Me*(te.showticklabels?1:.5);else if(he=ve,y==="bottom"&&(me=b.t+U*oe+10+(ce.indexOf("inside")===-1?te.tickfont.size:0)+(te.ticks!=="inside"&&r.ticklen||0)),y==="top"){var be=_.text.split("<br>").length;me=b.t+U*oe+10-z-vO*Me*be}Ee((n?"h":"v")+te._id+"title",{avoid:{selection:ql.select(t).selectAll("g."+te._id+"tick"),side:y,offsetTop:n?0:b.t,offsetLeft:n?b.l:0,maxShift:n?S.width:S.height},attributes:{x:he,y:me,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function $(){if(!n&&!Z||n&&Z){var oe=e.select("."+Bt.cbtitle),ve=oe.select("text"),he=[-u/2,u/2],me=oe.select(".h"+te._id+"title-math-group").node(),be=15.6;ve.node()&&(be=parseInt(ve.node().style.fontSize,10)*vO);var ye;if(me?(ye=zi.bBox(me),Le=ye.width,ge=ye.height,ge>be&&(he[1]-=(ge-be)/2)):ve.node()&&!ve.classed(Bt.jsPlaceholder)&&(ye=zi.bBox(ve.node()),Le=ye.width,ge=ye.height),n){if(ge){if(ge+=5,y==="top")te.domain=pO(te.domain,ge/b.h),he[1]*=-1;else{te.domain=Dx(te.domain,ge/b.h);var de=w1e.lineCount(ve);he[1]+=(1-de)*be}oe.attr("transform",Fi(he[0],he[1])),te.setScale()}}else Le&&(y==="right"&&(te.domain=Dx(te.domain,(Le+Me/2)/b.w)),oe.attr("transform",Fi(he[0],he[1])),te.setScale())}e.selectAll("."+Bt.cbfills+",."+Bt.cblines).attr("transform",n?Fi(0,Math.round(b.h*(1-te.domain[1]))):Fi(Math.round(b.w*te.domain[0]),0)),ke.attr("transform",n?Fi(0,Math.round(-b.t)):Fi(Math.round(-b.l),0));var _e=e.select("."+Bt.cbfills).selectAll("rect."+Bt.cbfill).attr("style","").data(D);_e.enter().append("rect").classed(Bt.cbfill,!0).attr("style",""),_e.exit().remove();var Ae=v.map(te.c2p).map(Math.round).sort(function(Oe,Be){return Oe-Be});_e.each(function(Oe,Be){var We=[Be===0?v[0]:(D[Be]+D[Be-1])/2,Be===D.length-1?v[1]:(D[Be]+D[Be+1])/2].map(te.c2p).map(Math.round);n&&(We[1]=ci.constrain(We[1]+(We[1]>We[0])?1:-1,Ae[0],Ae[1]));var Xe=ql.select(this).attr(n?"x":"y",V).attr(n?"y":"x",ql.min(We)).attr(n?"width":"height",Math.max(z,2)).attr(n?"height":"width",Math.max(ql.max(We)-ql.min(We),2));if(r._fillgradient)zi.gradient(Xe,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var tr=p(Oe).replace("e-","");Xe.attr("fill",Pf.hexString(tr))}});var Ie=e.select("."+Bt.cblines).selectAll("path."+Bt.cbline).data(h.color&&h.width?F:[]);Ie.enter().append("path").classed(Bt.cbline,!0),Ie.exit().remove(),Ie.each(function(Oe){var Be=V,We=Math.round(te.c2p(Oe))+h.width/2%1;ql.select(this).attr("d","M"+(n?Be+","+We:We+","+Be)+(n?"h":"v")+z).call(zi.lineGroupStyle,h.width,A(Oe),h.dash)}),ke.selectAll("g."+te._id+"tick,path").remove();var Pe=V+z+(u||0)/2-(r.ticks==="outside"?1:0),Ye=Uo.calcTicks(te),qe=Uo.getTickSigns(te)[2];return Uo.drawTicks(t,te,{vals:te.ticks==="inside"?Uo.clipEnds(te,Ye):Ye,layer:ke,path:Uo.makeTickPath(te,Pe,qe),transFn:Uo.makeTransTickFn(te)}),Uo.drawLabels(t,te,{vals:Ye,layer:ke,transFn:Uo.makeTransTickLabelFn(te),labelFns:Uo.makeLabelFns(te,Pe)})}function pe(){var oe,ve=z+u/2;ce.indexOf("inside")===-1&&(oe=zi.bBox(ke.node()),ve+=n?oe.width:oe.height),Se=ae.select("text");var he=0,me=n&&y==="top",be=!n&&y==="right",ye=0;if(Se.node()&&!Se.classed(Bt.jsPlaceholder)){var de,_e=ae.select(".h"+te._id+"title-math-group").node();_e&&(n&&Z||!n&&!Z)?(oe=zi.bBox(_e),he=oe.width,de=oe.height):(oe=zi.bBox(ae.node()),he=oe.right-b.l-(n?V:J),de=oe.bottom-b.t-(n?J:V),!n&&y==="top"&&(ve+=oe.height,ye=oe.height)),be&&(Se.attr("transform",Fi(he/2+Me/2,0)),he*=2),ve=Math.max(ve,n?he:de)}var Ae=(n?x:g)*2+ve+s+u/2,Ie=0;!n&&_.text&&d==="bottom"&&T<=0&&(Ie=Ae/2,Ae+=Ie,ye+=Ie),S._hColorbarMoveTitle=Ie,S._hColorbarMoveCBTitle=ye;var Pe=s+u,Ye=(n?V:J)-Pe/2-(n?x:0),qe=(n?J:V)-(n?L:g+ye-Ie);e.select("."+Bt.cbbg).attr("x",Ye).attr("y",qe).attr(n?"width":"height",Math.max(Ae-Ie,2)).attr(n?"height":"width",Math.max(L+Pe,2)).call(Pf.fill,f).call(Pf.stroke,r.bordercolor).style("stroke-width",s);var Oe=be?Math.max(he-10,0):0;e.selectAll("."+Bt.cboutline).attr("x",(n?V:J+x)+Oe).attr("y",(n?J+g-L:V)+(me?ge:0)).attr(n?"width":"height",Math.max(z,2)).attr(n?"height":"width",Math.max(L-(n?2*g+ge:2*x+Oe),2)).call(Pf.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var Be=n?K*Ae:0,We=n?0:(1-j)*Ae-ye;if(Be=k?b.l-Be:-Be,We=m?b.t-We:-We,e.attr("transform",Fi(Be,We)),!n&&(s||Pf.opacity(f)&&!Pf.equals(S.paper_bgcolor,f))){var Xe=ke.selectAll("text"),tr=Xe[0].length,ir=e.select("."+Bt.cbbg).node(),je=zi.bBox(ir),Ke=zi.getTranslate(e),Ce=2;Xe.each(function(Wr,bt){var Jr=0,lt=tr-1;if(bt===Jr||bt===lt){var Cn=zi.bBox(this),lr=zi.getTranslate(this),Fr;if(bt===lt){var et=Cn.right+lr.x,Br=je.right+Ke.x+J-s-Ce+w;Fr=Br-et,Fr>0&&(Fr=0)}else if(bt===Jr){var Gr=Cn.left+lr.x,pt=je.left+Ke.x+J+s+Ce;Fr=pt-Gr,Fr<0&&(Fr=0)}Fr&&(tr<3?this.setAttribute("transform","translate("+Fr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Fe={},Qe=hO[c],er=dO[c],wr=hO[d],Vr=dO[d],Mr=Ae-z;n?(o==="pixels"?(Fe.y=T,Fe.t=L*wr,Fe.b=L*Vr):(Fe.t=Fe.b=0,Fe.yt=T+a*wr,Fe.yb=T-a*Vr),l==="pixels"?(Fe.x=w,Fe.l=Ae*Qe,Fe.r=Ae*er):(Fe.l=Mr*Qe,Fe.r=Mr*er,Fe.xl=w-i*Qe,Fe.xr=w+i*er)):(o==="pixels"?(Fe.x=w,Fe.l=L*Qe,Fe.r=L*er):(Fe.l=Fe.r=0,Fe.xl=w+a*Qe,Fe.xr=w-a*er),l==="pixels"?(Fe.y=1-T,Fe.t=Ae*wr,Fe.b=Ae*Vr):(Fe.t=Mr*wr,Fe.b=Mr*Vr,Fe.yt=T-i*wr,Fe.yb=T+i*Vr));var Dr=r.y<.5?"b":"t",Qr=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Sr={r:S.width-Ye-Be,l:Ye+Fe.r,b:S.height-qe-We,t:qe+Fe.b};k&&m?Hp.autoMargin(t,r._id,Fe):k?t._fullLayout._reservedMargin[r._id][Dr]=Sr[Dr]:m||n?t._fullLayout._reservedMargin[r._id][Qr]=Sr[Qr]:t._fullLayout._reservedMargin[r._id][Dr]=Sr[Dr]}return ci.syncOrAsync([Hp.previousPromises,le,$,Y,Hp.previousPromises,pe],t)}function L1e(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;Up.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),Rx(e)},moveFn:function(s,f){e.attr("transform",i+Fi(s,f)),l=Up.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=Up.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Up.getCursor(l,u,r.xanchor,r.yanchor);Rx(e,c)},doneFn:function(){if(Rx(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?cO.call("_guiRestyle",t,s,r._traceIndex):cO.call("_guiRelayout",t,s)}}})}function R1e(e,r,t){var n=r._levels,a=[],o=[],i,l,u=n.end+n.size/100,s=n.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(i=n.start+l*s,!(s>0?i>=u:i<=u));l++)i>f&&i<c&&a.push(i);if(r._fillgradient)o=[0];else if(typeof r._fillcolor=="function"){var d=r._filllevels;if(d)for(u=d.end+d.size/100,s=d.size,l=0;l<1e5&&(i=d.start+l*s,!(s>0?i>=u:i<=u));l++)i>t[0]&&i<t[1]&&o.push(i);else o=a.map(function(x){return x-n.size/2}),o.push(o[o.length-1]+n.size)}else r._fillcolor&&typeof r._fillcolor=="string"&&(o=[0]);return n.size<0&&(a.reverse(),o.reverse()),{line:a,fill:o}}function D1e(e,r,t){var n=e._fullLayout,a=r.orientation==="v",o={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:a?"right":"bottom",position:1},i=a?"y":"x",l={type:"linear",_id:i+r._id},u={letter:i,font:n.font,noAutotickangles:i==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:n.calendar};function s(f,c){return ci.coerce(o,l,k1e,f,c)}return T1e(o,l,s,u,n),A1e(o,l,s,u),l}yO.exports={draw:S1e}});var xO=xe((t6e,bO)=>{"use strict";bO.exports={moduleType:"component",name:"colorbar",attributes:n1(),supplyDefaults:Pm(),draw:mO().draw,hasColorbar:wm()}});var wO=xe((n6e,_O)=>{"use strict";_O.exports={moduleType:"component",name:"legend",layoutAttributes:C3(),supplyLayoutDefaults:L3(),draw:Y3(),style:U3()}});var TO=xe((a6e,MO)=>{"use strict";MO.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 kO=xe((i6e,AO)=>{"use strict";AO.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var zx=xe((o6e,LO)=>{"use strict";var P1e=Cr(),EO=rr(),Ix=EO.extendFlat,SO=EO.extendDeep;function CO(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 I1e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}LO.exports=function(r,t){var n,a=r.data,o=r.layout,i=SO([],a),l=SO({},o,CO(t.tileClass)),u=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var s=Object.keys(l);for(n=0;n<s.length;n++)I1e(s[n])&&(l[s[n]].title={text:""});for(n=0;n<i.length;n++){var f=i[n];f.showscale=!1,f.marker&&(f.marker.showscale=!1),P1e.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(n=0;n<t.annotations.length;n++)l.annotations.push(t.annotations[n]);var c=Object.keys(l).filter(function(T){return T.match(/^scene\d*$/)});if(c.length){var d={};for(t.tileClass==="thumbnail"&&(d={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<c.length;n++){var x=l[c[n]];x.xaxis||(x.xaxis={}),x.yaxis||(x.yaxis={}),x.zaxis||(x.zaxis={}),Ix(x.xaxis,d),Ix(x.yaxis,d),Ix(x.zaxis,d),x._scene=null}}var g=document.createElement("div");t.tileClass&&(g.className=t.tileClass);var w={gd:g,td:g,layout:l,data:i,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"&&(w.config.setBackground=t.setBackground||"opaque"),w.gd.defaultLayout=CO(t.tileClass),w}});var PO=xe((l6e,DO)=>{"use strict";var z1e=Yh().EventEmitter,F1e=Cr(),N1e=rr(),RO=Us(),q1e=zx(),O1e=Wd(),B1e=Zd();function U1e(e,r){var t=new z1e,n=q1e(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=RO.getDelay(a._fullLayout);setTimeout(function(){var u=O1e(a),s=document.createElement("canvas");s.id=N1e.randstr(),t=B1e({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var i=RO.getRedrawFunc(a);return F1e.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}DO.exports=U1e});var FO=xe((s6e,zO)=>{"use strict";var IO=Us(),H1e={getDelay:IO.getDelay,getRedrawFunc:IO.getRedrawFunc,clone:zx(),toSVG:Wd(),svgToImg:Zd(),toImage:PO(),downloadImage:cb()};zO.exports=H1e});var qO=xe(Ho=>{"use strict";Ho.version=o0().version;k_();dT();var V1e=Cr(),nv=Ho.register=V1e.register,Nx=FP(),NO=Object.keys(Nx);for(Vp=0;Vp<NO.length;Vp++)If=NO[Vp],If.charAt(0)!=="_"&&(Ho[If]=Nx[If]),nv({moduleType:"apiMethod",name:If,fn:Nx[If]});var If,Vp;nv(Kz());nv([wF(),zF(),gf(),eN(),hN(),zN(),rq(),xq(),qq(),Gq(),sO(),ji(),xO(),wO(),so(),y5()]);nv([TO(),kO()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(nv(window.PlotlyLocales),delete window.PlotlyLocales);Ho.Icons=Z1();var Gp=so(),Fx=bn();Ho.Plots={resize:Fx.resize,graphJson:Fx.graphJson,sendDataToCloud:Fx.sendDataToCloud};Ho.Fx={hover:Gp.hover,unhover:Gp.unhover,loneHover:Gp.loneHover,loneUnhover:Gp.loneUnhover};Ho.Snapshot=FO();Ho.PlotSchema=Hu()});var BO=xe((f6e,OO)=>{"use strict";OO.exports=qO()});var kn=xe((c6e,UO)=>{"use strict";(function(){var e={1964:(function(a,o,i){a.exports={alpha_shape:i(3502),convex_hull:i(7352),delaunay_triangulate:i(7642),gl_cone3d:i(6405),gl_error3d:i(9165),gl_line3d:i(5714),gl_mesh3d:i(7201),gl_plot3d:i(4100),gl_scatter3d:i(8418),gl_streamtube3d:i(7815),gl_surface3d:i(9499),ndarray:i(9618),ndarray_linear_interpolate:i(4317)}}),4793:(function(a,o,i){"use strict";var l;var u=i(7507),s=i(3778),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;o.hp=g,l=v,o.IS=50;var c=2147483647;l=c,g.TYPED_ARRAY_SUPPORT=d(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{var le=new Uint8Array(1),Y={foo:function(){return 42}};return Object.setPrototypeOf(Y,Uint8Array.prototype),Object.setPrototypeOf(le,Y),le.foo()===42}catch($){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function x(le){if(le>c)throw new RangeError('The value "'+le+'" is invalid for option "size"');var Y=new Uint8Array(le);return Object.setPrototypeOf(Y,g.prototype),Y}function g(le,Y,$){if(typeof le=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return k(le)}return w(le,Y,$)}g.poolSize=8192;function w(le,Y,$){if(typeof le=="string")return S(le,Y);if(ArrayBuffer.isView(le))return M(le);if(le==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof le);if(ge(le,ArrayBuffer)||le&&ge(le.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ge(le,SharedArrayBuffer)||le&&ge(le.buffer,SharedArrayBuffer)))return h(le,Y,$);if(typeof le=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var pe=le.valueOf&&le.valueOf();if(pe!=null&&pe!==le)return g.from(pe,Y,$);var oe=_(le);if(oe)return oe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof le[Symbol.toPrimitive]=="function")return g.from(le[Symbol.toPrimitive]("string"),Y,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof le)}g.from=function(le,Y,$){return w(le,Y,$)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function T(le){if(typeof le!="number")throw new TypeError('"size" argument must be of type number');if(le<0)throw new RangeError('The value "'+le+'" is invalid for option "size"')}function m(le,Y,$){return T(le),le<=0?x(le):Y!==void 0?typeof $=="string"?x(le).fill(Y,$):x(le).fill(Y):x(le)}g.alloc=function(le,Y,$){return m(le,Y,$)};function k(le){return T(le),x(le<0?0:y(le)|0)}g.allocUnsafe=function(le){return k(le)},g.allocUnsafeSlow=function(le){return k(le)};function S(le,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!g.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var $=A(le,Y)|0,pe=x($),oe=pe.write(le,Y);return oe!==$&&(pe=pe.slice(0,oe)),pe}function b(le){for(var Y=le.length<0?0:y(le.length)|0,$=x(Y),pe=0;pe<Y;pe+=1)$[pe]=le[pe]&255;return $}function M(le){if(ge(le,Uint8Array)){var Y=new Uint8Array(le);return h(Y.buffer,Y.byteOffset,Y.byteLength)}return b(le)}function h(le,Y,$){if(Y<0||le.byteLength<Y)throw new RangeError('"offset" is outside of buffer bounds');if(le.byteLength<Y+($||0))throw new RangeError('"length" is outside of buffer bounds');var pe;return Y===void 0&&$===void 0?pe=new Uint8Array(le):$===void 0?pe=new Uint8Array(le,Y):pe=new Uint8Array(le,Y,$),Object.setPrototypeOf(pe,g.prototype),pe}function _(le){if(g.isBuffer(le)){var Y=y(le.length)|0,$=x(Y);return $.length===0||le.copy($,0,0,Y),$}if(le.length!==void 0)return typeof le.length!="number"||Le(le.length)?x(0):b(le);if(le.type==="Buffer"&&Array.isArray(le.data))return b(le.data)}function y(le){if(le>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return le|0}function v(le){return+le!=le&&(le=0),g.alloc(+le)}g.isBuffer=function(Y){return Y!=null&&Y._isBuffer===!0&&Y!==g.prototype},g.compare=function(Y,$){if(ge(Y,Uint8Array)&&(Y=g.from(Y,Y.offset,Y.byteLength)),ge($,Uint8Array)&&($=g.from($,$.offset,$.byteLength)),!g.isBuffer(Y)||!g.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===$)return 0;for(var pe=Y.length,oe=$.length,ve=0,he=Math.min(pe,oe);ve<he;++ve)if(Y[ve]!==$[ve]){pe=Y[ve],oe=$[ve];break}return pe<oe?-1:oe<pe?1:0},g.isEncoding=function(Y){switch(String(Y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(Y,$){if(!Array.isArray(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return g.alloc(0);var pe;if($===void 0)for($=0,pe=0;pe<Y.length;++pe)$+=Y[pe].length;var oe=g.allocUnsafe($),ve=0;for(pe=0;pe<Y.length;++pe){var he=Y[pe];if(ge(he,Uint8Array))ve+he.length>oe.length?g.from(he).copy(oe,ve):Uint8Array.prototype.set.call(oe,he,ve);else if(g.isBuffer(he))he.copy(oe,ve);else throw new TypeError('"list" argument must be an Array of Buffers');ve+=he.length}return oe};function A(le,Y){if(g.isBuffer(le))return le.length;if(ArrayBuffer.isView(le)||ge(le,ArrayBuffer))return le.byteLength;if(typeof le!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof le);var $=le.length,pe=arguments.length>2&&arguments[2]===!0;if(!pe&&$===0)return 0;for(var oe=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return ae(le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return ke(le).length;default:if(oe)return pe?-1:ae(le).length;Y=(""+Y).toLowerCase(),oe=!0}}g.byteLength=A;function p(le,Y,$){var pe=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,Y>>>=0,$<=Y))return"";for(le||(le="utf8");;)switch(le){case"hex":return q(this,Y,$);case"utf8":case"utf-8":return U(this,Y,$);case"ascii":return j(this,Y,$);case"latin1":case"binary":return G(this,Y,$);case"base64":return O(this,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,Y,$);default:if(pe)throw new TypeError("Unknown encoding: "+le);le=(le+"").toLowerCase(),pe=!0}}g.prototype._isBuffer=!0;function R(le,Y,$){var pe=le[Y];le[Y]=le[$],le[$]=pe}g.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<Y;$+=2)R(this,$,$+1);return this},g.prototype.swap32=function(){var Y=this.length;if(Y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<Y;$+=4)R(this,$,$+3),R(this,$+1,$+2);return this},g.prototype.swap64=function(){var Y=this.length;if(Y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<Y;$+=8)R(this,$,$+7),R(this,$+1,$+6),R(this,$+2,$+5),R(this,$+3,$+4);return this},g.prototype.toString=function(){var Y=this.length;return Y===0?"":arguments.length===0?U(this,0,Y):p.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(Y){if(!g.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y?!0:g.compare(this,Y)===0},g.prototype.inspect=function(){var Y="",$=o.IS;return Y=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(Y+=" ... "),"<Buffer "+Y+">"},f&&(g.prototype[f]=g.prototype.inspect),g.prototype.compare=function(Y,$,pe,oe,ve){if(ge(Y,Uint8Array)&&(Y=g.from(Y,Y.offset,Y.byteLength)),!g.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if($===void 0&&($=0),pe===void 0&&(pe=Y?Y.length:0),oe===void 0&&(oe=0),ve===void 0&&(ve=this.length),$<0||pe>Y.length||oe<0||ve>this.length)throw new RangeError("out of range index");if(oe>=ve&&$>=pe)return 0;if(oe>=ve)return-1;if($>=pe)return 1;if($>>>=0,pe>>>=0,oe>>>=0,ve>>>=0,this===Y)return 0;for(var he=ve-oe,me=pe-$,be=Math.min(he,me),ye=this.slice(oe,ve),de=Y.slice($,pe),_e=0;_e<be;++_e)if(ye[_e]!==de[_e]){he=ye[_e],me=de[_e];break}return he<me?-1:me<he?1:0};function E(le,Y,$,pe,oe){if(le.length===0)return-1;if(typeof $=="string"?(pe=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,Le($)&&($=oe?0:le.length-1),$<0&&($=le.length+$),$>=le.length){if(oe)return-1;$=le.length-1}else if($<0)if(oe)$=0;else return-1;if(typeof Y=="string"&&(Y=g.from(Y,pe)),g.isBuffer(Y))return Y.length===0?-1:D(le,Y,$,pe,oe);if(typeof Y=="number")return Y=Y&255,typeof Uint8Array.prototype.indexOf=="function"?oe?Uint8Array.prototype.indexOf.call(le,Y,$):Uint8Array.prototype.lastIndexOf.call(le,Y,$):D(le,[Y],$,pe,oe);throw new TypeError("val must be string, number or Buffer")}function D(le,Y,$,pe,oe){var ve=1,he=le.length,me=Y.length;if(pe!==void 0&&(pe=String(pe).toLowerCase(),pe==="ucs2"||pe==="ucs-2"||pe==="utf16le"||pe==="utf-16le")){if(le.length<2||Y.length<2)return-1;ve=2,he/=2,me/=2,$/=2}function be(Ie,Pe){return ve===1?Ie[Pe]:Ie.readUInt16BE(Pe*ve)}var ye;if(oe){var de=-1;for(ye=$;ye<he;ye++)if(be(le,ye)===be(Y,de===-1?0:ye-de)){if(de===-1&&(de=ye),ye-de+1===me)return de*ve}else de!==-1&&(ye-=ye-de),de=-1}else for($+me>he&&($=he-me),ye=$;ye>=0;ye--){for(var _e=!0,Ae=0;Ae<me;Ae++)if(be(le,ye+Ae)!==be(Y,Ae)){_e=!1;break}if(_e)return ye}return-1}g.prototype.includes=function(Y,$,pe){return this.indexOf(Y,$,pe)!==-1},g.prototype.indexOf=function(Y,$,pe){return E(this,Y,$,pe,!0)},g.prototype.lastIndexOf=function(Y,$,pe){return E(this,Y,$,pe,!1)};function F(le,Y,$,pe){$=Number($)||0;var oe=le.length-$;pe?(pe=Number(pe),pe>oe&&(pe=oe)):pe=oe;var ve=Y.length;pe>ve/2&&(pe=ve/2);for(var he=0;he<pe;++he){var me=parseInt(Y.substr(he*2,2),16);if(Le(me))return he;le[$+he]=me}return he}function z(le,Y,$,pe){return Se(ae(Y,le.length-$),le,$,pe)}function I(le,Y,$,pe){return Se(ce(Y),le,$,pe)}function L(le,Y,$,pe){return Se(ke(Y),le,$,pe)}function P(le,Y,$,pe){return Se(Me(Y,le.length-$),le,$,pe)}g.prototype.write=function(Y,$,pe,oe){if($===void 0)oe="utf8",pe=this.length,$=0;else if(pe===void 0&&typeof $=="string")oe=$,pe=this.length,$=0;else if(isFinite($))$=$>>>0,isFinite(pe)?(pe=pe>>>0,oe===void 0&&(oe="utf8")):(oe=pe,pe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ve=this.length-$;if((pe===void 0||pe>ve)&&(pe=ve),Y.length>0&&(pe<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");oe||(oe="utf8");for(var he=!1;;)switch(oe){case"hex":return F(this,Y,$,pe);case"utf8":case"utf-8":return z(this,Y,$,pe);case"ascii":case"latin1":case"binary":return I(this,Y,$,pe);case"base64":return L(this,Y,$,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,Y,$,pe);default:if(he)throw new TypeError("Unknown encoding: "+oe);oe=(""+oe).toLowerCase(),he=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(le,Y,$){return Y===0&&$===le.length?u.fromByteArray(le):u.fromByteArray(le.slice(Y,$))}function U(le,Y,$){$=Math.min(le.length,$);for(var pe=[],oe=Y;oe<$;){var ve=le[oe],he=null,me=ve>239?4:ve>223?3:ve>191?2:1;if(oe+me<=$){var be,ye,de,_e;switch(me){case 1:ve<128&&(he=ve);break;case 2:be=le[oe+1],(be&192)===128&&(_e=(ve&31)<<6|be&63,_e>127&&(he=_e));break;case 3:be=le[oe+1],ye=le[oe+2],(be&192)===128&&(ye&192)===128&&(_e=(ve&15)<<12|(be&63)<<6|ye&63,_e>2047&&(_e<55296||_e>57343)&&(he=_e));break;case 4:be=le[oe+1],ye=le[oe+2],de=le[oe+3],(be&192)===128&&(ye&192)===128&&(de&192)===128&&(_e=(ve&15)<<18|(be&63)<<12|(ye&63)<<6|de&63,_e>65535&&_e<1114112&&(he=_e))}}he===null?(he=65533,me=1):he>65535&&(he-=65536,pe.push(he>>>10&1023|55296),he=56320|he&1023),pe.push(he),oe+=me}return K(pe)}var V=4096;function K(le){var Y=le.length;if(Y<=V)return String.fromCharCode.apply(String,le);for(var $="",pe=0;pe<Y;)$+=String.fromCharCode.apply(String,le.slice(pe,pe+=V));return $}function j(le,Y,$){var pe="";$=Math.min(le.length,$);for(var oe=Y;oe<$;++oe)pe+=String.fromCharCode(le[oe]&127);return pe}function G(le,Y,$){var pe="";$=Math.min(le.length,$);for(var oe=Y;oe<$;++oe)pe+=String.fromCharCode(le[oe]);return pe}function q(le,Y,$){var pe=le.length;(!Y||Y<0)&&(Y=0),(!$||$<0||$>pe)&&($=pe);for(var oe="",ve=Y;ve<$;++ve)oe+=Ee[le[ve]];return oe}function J(le,Y,$){for(var pe=le.slice(Y,$),oe="",ve=0;ve<pe.length-1;ve+=2)oe+=String.fromCharCode(pe[ve]+pe[ve+1]*256);return oe}g.prototype.slice=function(Y,$){var pe=this.length;Y=~~Y,$=$===void 0?pe:~~$,Y<0?(Y+=pe,Y<0&&(Y=0)):Y>pe&&(Y=pe),$<0?($+=pe,$<0&&($=0)):$>pe&&($=pe),$<Y&&($=Y);var oe=this.subarray(Y,$);return Object.setPrototypeOf(oe,g.prototype),oe};function te(le,Y,$){if(le%1!==0||le<0)throw new RangeError("offset is not uint");if(le+Y>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=this[Y],ve=1,he=0;++he<$&&(ve*=256);)oe+=this[Y+he]*ve;return oe},g.prototype.readUintBE=g.prototype.readUIntBE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=this[Y+--$],ve=1;$>0&&(ve*=256);)oe+=this[Y+--$]*ve;return oe},g.prototype.readUint8=g.prototype.readUInt8=function(Y,$){return Y=Y>>>0,$||te(Y,1,this.length),this[Y]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(Y,$){return Y=Y>>>0,$||te(Y,2,this.length),this[Y]|this[Y+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(Y,$){return Y=Y>>>0,$||te(Y,2,this.length),this[Y]<<8|this[Y+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},g.prototype.readIntLE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=this[Y],ve=1,he=0;++he<$&&(ve*=256);)oe+=this[Y+he]*ve;return ve*=128,oe>=ve&&(oe-=Math.pow(2,8*$)),oe},g.prototype.readIntBE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=$,ve=1,he=this[Y+--oe];oe>0&&(ve*=256);)he+=this[Y+--oe]*ve;return ve*=128,he>=ve&&(he-=Math.pow(2,8*$)),he},g.prototype.readInt8=function(Y,$){return Y=Y>>>0,$||te(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},g.prototype.readInt16LE=function(Y,$){Y=Y>>>0,$||te(Y,2,this.length);var pe=this[Y]|this[Y+1]<<8;return pe&32768?pe|4294901760:pe},g.prototype.readInt16BE=function(Y,$){Y=Y>>>0,$||te(Y,2,this.length);var pe=this[Y+1]|this[Y]<<8;return pe&32768?pe|4294901760:pe},g.prototype.readInt32LE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},g.prototype.readInt32BE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},g.prototype.readFloatLE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),s.read(this,Y,!0,23,4)},g.prototype.readFloatBE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),s.read(this,Y,!1,23,4)},g.prototype.readDoubleLE=function(Y,$){return Y=Y>>>0,$||te(Y,8,this.length),s.read(this,Y,!0,52,8)},g.prototype.readDoubleBE=function(Y,$){return Y=Y>>>0,$||te(Y,8,this.length),s.read(this,Y,!1,52,8)};function Z(le,Y,$,pe,oe,ve){if(!g.isBuffer(le))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>oe||Y<ve)throw new RangeError('"value" argument is out of bounds');if($+pe>le.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(Y,$,pe,oe){if(Y=+Y,$=$>>>0,pe=pe>>>0,!oe){var ve=Math.pow(2,8*pe)-1;Z(this,Y,$,pe,ve,0)}var he=1,me=0;for(this[$]=Y&255;++me<pe&&(he*=256);)this[$+me]=Y/he&255;return $+pe},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(Y,$,pe,oe){if(Y=+Y,$=$>>>0,pe=pe>>>0,!oe){var ve=Math.pow(2,8*pe)-1;Z(this,Y,$,pe,ve,0)}var he=pe-1,me=1;for(this[$+he]=Y&255;--he>=0&&(me*=256);)this[$+he]=Y/me&255;return $+pe},g.prototype.writeUint8=g.prototype.writeUInt8=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,1,255,0),this[$]=Y&255,$+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,65535,0),this[$]=Y&255,this[$+1]=Y>>>8,$+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,65535,0),this[$]=Y>>>8,this[$+1]=Y&255,$+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,4294967295,0),this[$+3]=Y>>>24,this[$+2]=Y>>>16,this[$+1]=Y>>>8,this[$]=Y&255,$+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,4294967295,0),this[$]=Y>>>24,this[$+1]=Y>>>16,this[$+2]=Y>>>8,this[$+3]=Y&255,$+4},g.prototype.writeIntLE=function(Y,$,pe,oe){if(Y=+Y,$=$>>>0,!oe){var ve=Math.pow(2,8*pe-1);Z(this,Y,$,pe,ve-1,-ve)}var he=0,me=1,be=0;for(this[$]=Y&255;++he<pe&&(me*=256);)Y<0&&be===0&&this[$+he-1]!==0&&(be=1),this[$+he]=(Y/me>>0)-be&255;return $+pe},g.prototype.writeIntBE=function(Y,$,pe,oe){if(Y=+Y,$=$>>>0,!oe){var ve=Math.pow(2,8*pe-1);Z(this,Y,$,pe,ve-1,-ve)}var he=pe-1,me=1,be=0;for(this[$+he]=Y&255;--he>=0&&(me*=256);)Y<0&&be===0&&this[$+he+1]!==0&&(be=1),this[$+he]=(Y/me>>0)-be&255;return $+pe},g.prototype.writeInt8=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,1,127,-128),Y<0&&(Y=255+Y+1),this[$]=Y&255,$+1},g.prototype.writeInt16LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,32767,-32768),this[$]=Y&255,this[$+1]=Y>>>8,$+2},g.prototype.writeInt16BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,32767,-32768),this[$]=Y>>>8,this[$+1]=Y&255,$+2},g.prototype.writeInt32LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,2147483647,-2147483648),this[$]=Y&255,this[$+1]=Y>>>8,this[$+2]=Y>>>16,this[$+3]=Y>>>24,$+4},g.prototype.writeInt32BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[$]=Y>>>24,this[$+1]=Y>>>16,this[$+2]=Y>>>8,this[$+3]=Y&255,$+4};function ie(le,Y,$,pe,oe,ve){if($+pe>le.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function Q(le,Y,$,pe,oe){return Y=+Y,$=$>>>0,oe||ie(le,Y,$,4,34028234663852886e22,-34028234663852886e22),s.write(le,Y,$,pe,23,4),$+4}g.prototype.writeFloatLE=function(Y,$,pe){return Q(this,Y,$,!0,pe)},g.prototype.writeFloatBE=function(Y,$,pe){return Q(this,Y,$,!1,pe)};function re(le,Y,$,pe,oe){return Y=+Y,$=$>>>0,oe||ie(le,Y,$,8,17976931348623157e292,-17976931348623157e292),s.write(le,Y,$,pe,52,8),$+8}g.prototype.writeDoubleLE=function(Y,$,pe){return re(this,Y,$,!0,pe)},g.prototype.writeDoubleBE=function(Y,$,pe){return re(this,Y,$,!1,pe)},g.prototype.copy=function(Y,$,pe,oe){if(!g.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(pe||(pe=0),!oe&&oe!==0&&(oe=this.length),$>=Y.length&&($=Y.length),$||($=0),oe>0&&oe<pe&&(oe=pe),oe===pe||Y.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(pe<0||pe>=this.length)throw new RangeError("Index out of range");if(oe<0)throw new RangeError("sourceEnd out of bounds");oe>this.length&&(oe=this.length),Y.length-$<oe-pe&&(oe=Y.length-$+pe);var ve=oe-pe;return this===Y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin($,pe,oe):Uint8Array.prototype.set.call(Y,this.subarray(pe,oe),$),ve},g.prototype.fill=function(Y,$,pe,oe){if(typeof Y=="string"){if(typeof $=="string"?(oe=$,$=0,pe=this.length):typeof pe=="string"&&(oe=pe,pe=this.length),oe!==void 0&&typeof oe!="string")throw new TypeError("encoding must be a string");if(typeof oe=="string"&&!g.isEncoding(oe))throw new TypeError("Unknown encoding: "+oe);if(Y.length===1){var ve=Y.charCodeAt(0);(oe==="utf8"&&ve<128||oe==="latin1")&&(Y=ve)}}else typeof Y=="number"?Y=Y&255:typeof Y=="boolean"&&(Y=Number(Y));if($<0||this.length<$||this.length<pe)throw new RangeError("Out of range index");if(pe<=$)return this;$=$>>>0,pe=pe===void 0?this.length:pe>>>0,Y||(Y=0);var he;if(typeof Y=="number")for(he=$;he<pe;++he)this[he]=Y;else{var me=g.isBuffer(Y)?Y:g.from(Y,oe),be=me.length;if(be===0)throw new TypeError('The value "'+Y+'" is invalid for argument "value"');for(he=0;he<pe-$;++he)this[he+$]=me[he%be]}return this};var se=/[^+/0-9A-Za-z-_]/g;function ee(le){if(le=le.split("=")[0],le=le.trim().replace(se,""),le.length<2)return"";for(;le.length%4!==0;)le=le+"=";return le}function ae(le,Y){Y=Y||1/0;for(var $,pe=le.length,oe=null,ve=[],he=0;he<pe;++he){if($=le.charCodeAt(he),$>55295&&$<57344){if(!oe){if($>56319){(Y-=3)>-1&&ve.push(239,191,189);continue}else if(he+1===pe){(Y-=3)>-1&&ve.push(239,191,189);continue}oe=$;continue}if($<56320){(Y-=3)>-1&&ve.push(239,191,189),oe=$;continue}$=(oe-55296<<10|$-56320)+65536}else oe&&(Y-=3)>-1&&ve.push(239,191,189);if(oe=null,$<128){if((Y-=1)<0)break;ve.push($)}else if($<2048){if((Y-=2)<0)break;ve.push($>>6|192,$&63|128)}else if($<65536){if((Y-=3)<0)break;ve.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((Y-=4)<0)break;ve.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return ve}function ce(le){for(var Y=[],$=0;$<le.length;++$)Y.push(le.charCodeAt($)&255);return Y}function Me(le,Y){for(var $,pe,oe,ve=[],he=0;he<le.length&&!((Y-=2)<0);++he)$=le.charCodeAt(he),pe=$>>8,oe=$%256,ve.push(oe),ve.push(pe);return ve}function ke(le){return u.toByteArray(ee(le))}function Se(le,Y,$,pe){for(var oe=0;oe<pe&&!(oe+$>=Y.length||oe>=le.length);++oe)Y[oe+$]=le[oe];return oe}function ge(le,Y){return le instanceof Y||le!=null&&le.constructor!=null&&le.constructor.name!=null&&le.constructor.name===Y.name}function Le(le){return le!==le}var Ee=(function(){for(var le="0123456789abcdef",Y=new Array(256),$=0;$<16;++$)for(var pe=$*16,oe=0;oe<16;++oe)Y[pe+oe]=le[$]+le[oe];return Y})()}),9216:(function(a){"use strict";a.exports=u,a.exports.isMobile=u,a.exports.default=u;let o=/(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|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,l=/android|ipad|playbook|silk/i;function u(s){s||(s={});let f=s.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;let c=o.test(f)&&!i.test(f)||!!s.tablet&&l.test(f);return!c&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}}),6296:(function(a,o,i){"use strict";a.exports=d;var l=i(7261),u=i(9977),s=i(1811);function f(x,g){this._controllerNames=Object.keys(x),this._controllerList=this._controllerNames.map(function(w){return x[w]}),this._mode=g,this._active=x[g],this._active||(this._mode="turntable",this._active=x.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var c=f.prototype;c.flush=function(x){for(var g=this._controllerList,w=0;w<g.length;++w)g[w].flush(x)},c.idle=function(x){for(var g=this._controllerList,w=0;w<g.length;++w)g[w].idle(x)},c.lookAt=function(x,g,w,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].lookAt(x,g,w,T)},c.rotate=function(x,g,w,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].rotate(x,g,w,T)},c.pan=function(x,g,w,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].pan(x,g,w,T)},c.translate=function(x,g,w,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].translate(x,g,w,T)},c.setMatrix=function(x,g){for(var w=this._controllerList,T=0;T<w.length;++T)w[T].setMatrix(x,g)},c.setDistanceLimits=function(x,g){for(var w=this._controllerList,T=0;T<w.length;++T)w[T].setDistanceLimits(x,g)},c.setDistance=function(x,g){for(var w=this._controllerList,T=0;T<w.length;++T)w[T].setDistance(x,g)},c.recalcMatrix=function(x){this._active.recalcMatrix(x)},c.getDistance=function(x){return this._active.getDistance(x)},c.getDistanceLimits=function(x){return this._active.getDistanceLimits(x)},c.lastT=function(){return this._active.lastT()},c.setMode=function(x){if(x!==this._mode){var g=this._controllerNames.indexOf(x);if(!(g<0)){var w=this._active,T=this._controllerList[g],m=Math.max(w.lastT(),T.lastT());w.recalcMatrix(m),T.setMatrix(m,w.computedMatrix),this._active=T,this._mode=x,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},c.getMode=function(){return this._mode};function d(x){x=x||{};var g=x.eye||[0,0,1],w=x.center||[0,0,0],T=x.up||[0,1,0],m=x.distanceLimits||[0,1/0],k=x.mode||"turntable",S=l(),b=u(),M=s();return S.setDistanceLimits(m[0],m[1]),S.lookAt(0,g,w,T),b.setDistanceLimits(m[0],m[1]),b.lookAt(0,g,w,T),M.setDistanceLimits(m[0],m[1]),M.lookAt(0,g,w,T),new f({turntable:S,orbit:b,matrix:M},k)}}),7169:(function(a,o,i){"use strict";var l=typeof WeakMap=="undefined"?i(1538):WeakMap,u=i(2762),s=i(8116),f=new l;function c(d){var x=f.get(d),g=x&&(x._triangleBuffer.handle||x._triangleBuffer.buffer);if(!g||!d.isBuffer(g)){var w=u(d,new Float32Array([-1,-1,-1,4,4,-1]));x=s(d,[{buffer:w,type:d.FLOAT,size:2}]),x._triangleBuffer=w,f.set(d,x)}x.bind(),d.drawArrays(d.TRIANGLES,0,3),x.unbind()}a.exports=c}),1085:(function(a,o,i){var l=i(1371);a.exports=u;function u(s,f,c){f=typeof f=="number"?f:1,c=c||": ";var d=s.split(/\r?\n/),x=String(d.length+f-1).length;return d.map(function(g,w){var T=w+f,m=String(T).length,k=l(T,x-m);return k+c+g}).join(`
`)}}),3952:(function(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,c){for(var d=new Array(c+1),x=0;x<f.length;++x)d[x]=f[x];for(var x=0;x<=f.length;++x){for(var g=f.length;g<=c;++g){for(var w=new Array(c),T=0;T<c;++T)w[T]=Math.pow(g+1-x,T);d[g]=w}var m=l.apply(void 0,d);if(m)return!0}return!1}function s(f){var c=f.length;if(c===0)return[];if(c===1)return[0];for(var d=f[0].length,x=[f[0]],g=[0],w=1;w<c;++w){if(x.push(f[w]),!u(x,d)){x.pop();continue}if(g.push(w),g.length===d+1)return g}return g}}),5995:(function(a,o,i){"use strict";a.exports=s;var l=i(7642),u=i(6037);function s(f,c){return l(c).filter(function(d){for(var x=new Array(d.length),g=0;g<d.length;++g)x[g]=c[d[g]];return u(x)*f<1})}}),3502:(function(a,o,i){a.exports=s;var l=i(5995),u=i(9127);function s(f,c){return u(l(f,c))}}),6468:(function(a){a.exports=function(i){return atob(i)}}),2642:(function(a,o,i){"use strict";a.exports=s;var l=i(727);function u(f){for(var c=0,d=0;d<f.length;++d)c+=f[d];return c}function s(f,c){for(var d=c.length,x=new Array(d+1),g=0;g<d;++g){for(var w=new Array(d+1),T=0;T<=d;++T)w[T]=f[T][g];x[g]=w}x[d]=new Array(d+1);for(var g=0;g<=d;++g)x[d][g]=1;for(var m=new Array(d+1),g=0;g<d;++g)m[g]=c[g];m[d]=1;var k=l(x,m),S=u(k[d+1]);S===0&&(S=1);for(var b=new Array(d+1),g=0;g<=d;++g)b[g]=u(k[g])/S;return b}}),7507:(function(a,o){"use strict";o.byteLength=x,o.toByteArray=w,o.fromByteArray=k;for(var i=[],l=[],u=typeof Uint8Array!="undefined"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,c=s.length;f<c;++f)i[f]=s[f],l[s.charCodeAt(f)]=f;l[45]=62,l[95]=63;function d(S){var b=S.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=S.indexOf("=");M===-1&&(M=b);var h=M===b?0:4-M%4;return[M,h]}function x(S){var b=d(S),M=b[0],h=b[1];return(M+h)*3/4-h}function g(S,b,M){return(b+M)*3/4-M}function w(S){var b,M=d(S),h=M[0],_=M[1],y=new u(g(S,h,_)),v=0,A=_>0?h-4:h,p;for(p=0;p<A;p+=4)b=l[S.charCodeAt(p)]<<18|l[S.charCodeAt(p+1)]<<12|l[S.charCodeAt(p+2)]<<6|l[S.charCodeAt(p+3)],y[v++]=b>>16&255,y[v++]=b>>8&255,y[v++]=b&255;return _===2&&(b=l[S.charCodeAt(p)]<<2|l[S.charCodeAt(p+1)]>>4,y[v++]=b&255),_===1&&(b=l[S.charCodeAt(p)]<<10|l[S.charCodeAt(p+1)]<<4|l[S.charCodeAt(p+2)]>>2,y[v++]=b>>8&255,y[v++]=b&255),y}function T(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function m(S,b,M){for(var h,_=[],y=b;y<M;y+=3)h=(S[y]<<16&16711680)+(S[y+1]<<8&65280)+(S[y+2]&255),_.push(T(h));return _.join("")}function k(S){for(var b,M=S.length,h=M%3,_=[],y=16383,v=0,A=M-h;v<A;v+=y)_.push(m(S,v,v+y>A?A:v+y));return h===1?(b=S[M-1],_.push(i[b>>2]+i[b<<4&63]+"==")):h===2&&(b=(S[M-2]<<8)+S[M-1],_.push(i[b>>10]+i[b>>4&63]+i[b<<2&63]+"=")),_.join("")}}),3865:(function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).add(f[0].mul(s[1])),s[1].mul(f[1]))}}),1318:(function(a){"use strict";a.exports=o;function o(i,l){return i[0].mul(l[1]).cmp(l[0].mul(i[1]))}}),8697:(function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]),s[1].mul(f[0]))}}),7842:(function(a,o,i){"use strict";var l=i(6330),u=i(1533),s=i(2651),f=i(6768),c=i(869),d=i(8697);a.exports=x;function x(g,w){if(l(g))return w?d(g,x(w)):[g[0].clone(),g[1].clone()];var T=0,m,k;if(u(g))m=g.clone();else if(typeof g=="string")m=f(g);else{if(g===0)return[s(0),s(1)];if(g===Math.floor(g))m=s(g);else{for(;g!==Math.floor(g);)g=g*Math.pow(2,256),T-=256;m=s(g)}}if(l(w))m.mul(w[1]),k=w[0].clone();else if(u(w))k=w.clone();else if(typeof w=="string")k=f(w);else if(!w)k=s(1);else if(w===Math.floor(w))k=s(w);else{for(;w!==Math.floor(w);)w=w*Math.pow(2,256),T+=256;k=s(w)}return T>0?m=m.ushln(T):T<0&&(k=k.ushln(-T)),c(m,k)}}),6330:(function(a,o,i){"use strict";var l=i(1533);a.exports=u;function u(s){return Array.isArray(s)&&s.length===2&&l(s[0])&&l(s[1])}}),5716:(function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s.cmp(new l(0))}}),1369:(function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){var f=s.length,c=s.words,d=0;if(f===1)d=c[0];else if(f===2)d=c[0]+c[1]*67108864;else for(var x=0;x<f;x++){var g=c[x];d+=g*Math.pow(67108864,x)}return l(s)*d}}),4025:(function(a,o,i){"use strict";var l=i(2361),u=i(8828).countTrailingZeros;a.exports=s;function s(f){var c=u(l.lo(f));if(c<32)return c;var d=u(l.hi(f));return d>20?52:d+32}}),1533:(function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s&&typeof s=="object"&&!!s.words}}),2651:(function(a,o,i){"use strict";var l=i(6859),u=i(2361);a.exports=s;function s(f){var c=u.exponent(f);return c<52?new l(f):new l(f*Math.pow(2,52-c)).ushln(c-52)}}),869:(function(a,o,i){"use strict";var l=i(2651),u=i(5716);a.exports=s;function s(f,c){var d=u(f),x=u(c);if(d===0)return[l(0),l(1)];if(x===0)return[l(0),l(0)];x<0&&(f=f.neg(),c=c.neg());var g=f.gcd(c);return g.cmpn(1)?[f.div(g),c.div(g)]:[f,c]}}),6768:(function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return new l(s)}}),6504:(function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[0]),s[1].mul(f[1]))}}),7721:(function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){return l(s[0])*l(s[1])}}),5572:(function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).sub(s[1].mul(f[0])),s[1].mul(f[1]))}}),946:(function(a,o,i){"use strict";var l=i(1369),u=i(4025);a.exports=s;function s(f){var c=f[0],d=f[1];if(c.cmpn(0)===0)return 0;var x=c.abs().divmod(d.abs()),g=x.div,w=l(g),T=x.mod,m=c.negative!==d.negative?-1:1;if(T.cmpn(0)===0)return m*w;if(w){var k=u(w)+4,S=l(T.ushln(k).divRound(d));return m*(w+S*Math.pow(2,-k))}else{var b=d.bitLength()-T.bitLength()+53,S=l(T.ushln(b).divRound(d));return b<1023?m*S*Math.pow(2,-b):(S*=Math.pow(2,-1023),m*S*Math.pow(2,1023-b))}}}),2478:(function(a){"use strict";function o(c,d,x,g,w){for(var T=w+1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,d):k-d;S>=0?(T=m,w=m-1):g=m+1}return T}function i(c,d,x,g,w){for(var T=w+1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,d):k-d;S>0?(T=m,w=m-1):g=m+1}return T}function l(c,d,x,g,w){for(var T=g-1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,d):k-d;S<0?(T=m,g=m+1):w=m-1}return T}function u(c,d,x,g,w){for(var T=g-1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,d):k-d;S<=0?(T=m,g=m+1):w=m-1}return T}function s(c,d,x,g,w){for(;g<=w;){var T=g+w>>>1,m=c[T],k=x!==void 0?x(m,d):m-d;if(k===0)return T;k<=0?g=T+1:w=T-1}return-1}function f(c,d,x,g,w,T){return typeof x=="function"?T(c,d,x,g===void 0?0:g|0,w===void 0?c.length-1:w|0):T(c,d,void 0,x===void 0?0:x|0,g===void 0?c.length-1:g|0)}a.exports={ge:function(c,d,x,g,w){return f(c,d,x,g,w,o)},gt:function(c,d,x,g,w){return f(c,d,x,g,w,i)},lt:function(c,d,x,g,w){return f(c,d,x,g,w,l)},le:function(c,d,x,g,w){return f(c,d,x,g,w,u)},eq:function(c,d,x,g,w){return f(c,d,x,g,w,s)}}}),8828:(function(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<<i-1,o.sign=function(s){return(s>0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s<f)},o.max=function(s,f){return s^(s^f)&-(s<f)},o.isPow2=function(s){return!(s&s-1)&&!!s},o.log2=function(s){var f,c;return f=(s>65535)<<4,s>>>=f,c=(s>255)<<3,s>>>=c,f|=c,c=(s>15)<<2,s>>>=c,f|=c,c=(s>3)<<1,s>>>=c,f|=c,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var c=f,d=f,x=7;for(c>>>=1;c;c>>>=1)d<<=1,d|=c&1,--x;s[f]=d<<x&255}})(u),o.reverse=function(s){return u[s&255]<<24|u[s>>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,c){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,s|c<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}}),6859:(function(a,o,i){a=i.nmd(a),(function(l,u){"use strict";function s(I,L){if(!I)throw new Error(L||"Assertion failed")}function f(I,L){I.super_=L;var P=function(){};P.prototype=L.prototype,I.prototype=new P,I.prototype.constructor=I}function c(I,L,P){if(c.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((L==="le"||L==="be")&&(P=L,L=10),this._init(I||0,L||10,P||"be"))}typeof l=="object"?l.exports=c:u.BN=c,c.BN=c,c.wordSize=26;var d;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?d=window.Buffer:d=i(7790).Buffer}catch(I){}c.isBN=function(L){return L instanceof c?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===c.wordSize&&Array.isArray(L.words)},c.max=function(L,P){return L.cmp(P)>0?L:P},c.min=function(L,P){return L.cmp(P)<0?L:P},c.prototype._init=function(L,P,O){if(typeof L=="number")return this._initNumber(L,P,O);if(typeof L=="object")return this._initArray(L,P,O);P==="hex"&&(P=16),s(P===(P|0)&&P>=2&&P<=36),L=L.toString().replace(/\s+/g,"");var U=0;L[0]==="-"&&(U++,this.negative=1),U<L.length&&(P===16?this._parseHex(L,U,O):(this._parseBase(L,P,U),O==="le"&&this._initArray(this.toArray(),P,O)))},c.prototype._initNumber=function(L,P,O){L<0&&(this.negative=1,L=-L),L<67108864?(this.words=[L&67108863],this.length=1):L<4503599627370496?(this.words=[L&67108863,L/67108864&67108863],this.length=2):(s(L<9007199254740992),this.words=[L&67108863,L/67108864&67108863,1],this.length=3),O==="le"&&this._initArray(this.toArray(),P,O)},c.prototype._initArray=function(L,P,O){if(s(typeof L.length=="number"),L.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(L.length/3),this.words=new Array(this.length);for(var U=0;U<this.length;U++)this.words[U]=0;var V,K,j=0;if(O==="be")for(U=L.length-1,V=0;U>=0;U-=3)K=L[U]|L[U-1]<<8|L[U-2]<<16,this.words[V]|=K<<j&67108863,this.words[V+1]=K>>>26-j&67108863,j+=24,j>=26&&(j-=26,V++);else if(O==="le")for(U=0,V=0;U<L.length;U+=3)K=L[U]|L[U+1]<<8|L[U+2]<<16,this.words[V]|=K<<j&67108863,this.words[V+1]=K>>>26-j&67108863,j+=24,j>=26&&(j-=26,V++);return this.strip()};function x(I,L){var P=I.charCodeAt(L);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function g(I,L,P){var O=x(I,P);return P-1>=L&&(O|=x(I,P-1)<<4),O}c.prototype._parseHex=function(L,P,O){this.length=Math.ceil((L.length-P)/6),this.words=new Array(this.length);for(var U=0;U<this.length;U++)this.words[U]=0;var V=0,K=0,j;if(O==="be")for(U=L.length-1;U>=P;U-=2)j=g(L,P,U)<<V,this.words[K]|=j&67108863,V>=18?(V-=18,K+=1,this.words[K]|=j>>>26):V+=8;else{var G=L.length-P;for(U=G%2===0?P+1:P;U<L.length;U+=2)j=g(L,P,U)<<V,this.words[K]|=j&67108863,V>=18?(V-=18,K+=1,this.words[K]|=j>>>26):V+=8}this.strip()};function w(I,L,P,O){for(var U=0,V=Math.min(I.length,P),K=L;K<V;K++){var j=I.charCodeAt(K)-48;U*=O,j>=49?U+=j-49+10:j>=17?U+=j-17+10:U+=j}return U}c.prototype._parseBase=function(L,P,O){this.words=[0],this.length=1;for(var U=0,V=1;V<=67108863;V*=P)U++;U--,V=V/P|0;for(var K=L.length-O,j=K%U,G=Math.min(K,K-j)+O,q=0,J=O;J<G;J+=U)q=w(L,J,J+U,P),this.imuln(V),this.words[0]+q<67108864?this.words[0]+=q:this._iaddn(q);if(j!==0){var te=1;for(q=w(L,J,L.length,P),J=0;J<j;J++)te*=P;this.imuln(te),this.words[0]+q<67108864?this.words[0]+=q:this._iaddn(q)}this.strip()},c.prototype.copy=function(L){L.words=new Array(this.length);for(var P=0;P<this.length;P++)L.words[P]=this.words[P];L.length=this.length,L.negative=this.negative,L.red=this.red},c.prototype.clone=function(){var L=new c(null);return this.copy(L),L},c.prototype._expand=function(L){for(;this.length<L;)this.words[this.length++]=0;return this},c.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(L,P){L=L||10,P=P|0||1;var O;if(L===16||L==="hex"){O="";for(var U=0,V=0,K=0;K<this.length;K++){var j=this.words[K],G=((j<<U|V)&16777215).toString(16);V=j>>>24-U&16777215,U+=2,U>=26&&(U-=26,K--),V!==0||K!==this.length-1?O=T[6-G.length]+G+O:O=G+O}for(V!==0&&(O=V.toString(16)+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(L===(L|0)&&L>=2&&L<=36){var q=m[L],J=k[L];O="";var te=this.clone();for(te.negative=0;!te.isZero();){var Z=te.modn(J).toString(L);te=te.idivn(J),te.isZero()?O=Z+O:O=T[q-Z.length]+Z+O}for(this.isZero()&&(O="0"+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}s(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(L,P){return s(typeof d!="undefined"),this.toArrayLike(d,L,P)},c.prototype.toArray=function(L,P){return this.toArrayLike(Array,L,P)},c.prototype.toArrayLike=function(L,P,O){var U=this.byteLength(),V=O||Math.max(1,U);s(U<=V,"byte array longer than desired length"),s(V>0,"Requested array length <= 0"),this.strip();var K=P==="le",j=new L(V),G,q,J=this.clone();if(K){for(q=0;!J.isZero();q++)G=J.andln(255),J.iushrn(8),j[q]=G;for(;q<V;q++)j[q]=0}else{for(q=0;q<V-U;q++)j[q]=0;for(q=0;!J.isZero();q++)G=J.andln(255),J.iushrn(8),j[V-q-1]=G}return j},Math.clz32?c.prototype._countBits=function(L){return 32-Math.clz32(L)}:c.prototype._countBits=function(L){var P=L,O=0;return P>=4096&&(O+=13,P>>>=13),P>=64&&(O+=7,P>>>=7),P>=8&&(O+=4,P>>>=4),P>=2&&(O+=2,P>>>=2),O+P},c.prototype._zeroBits=function(L){if(L===0)return 26;var P=L,O=0;return(P&8191)===0&&(O+=13,P>>>=13),(P&127)===0&&(O+=7,P>>>=7),(P&15)===0&&(O+=4,P>>>=4),(P&3)===0&&(O+=2,P>>>=2),(P&1)===0&&O++,O},c.prototype.bitLength=function(){var L=this.words[this.length-1],P=this._countBits(L);return(this.length-1)*26+P};function S(I){for(var L=new Array(I.bitLength()),P=0;P<L.length;P++){var O=P/26|0,U=P%26;L[P]=(I.words[O]&1<<U)>>>U}return L}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,P=0;P<this.length;P++){var O=this._zeroBits(this.words[P]);if(L+=O,O!==26)break}return L},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(L){return this.negative!==0?this.abs().inotn(L).iaddn(1):this.clone()},c.prototype.fromTwos=function(L){return this.testn(L-1)?this.notn(L).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return this.negative!==0},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(L){for(;this.length<L.length;)this.words[this.length++]=0;for(var P=0;P<L.length;P++)this.words[P]=this.words[P]|L.words[P];return this.strip()},c.prototype.ior=function(L){return s((this.negative|L.negative)===0),this.iuor(L)},c.prototype.or=function(L){return this.length>L.length?this.clone().ior(L):L.clone().ior(this)},c.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},c.prototype.iuand=function(L){var P;this.length>L.length?P=L:P=this;for(var O=0;O<P.length;O++)this.words[O]=this.words[O]&L.words[O];return this.length=P.length,this.strip()},c.prototype.iand=function(L){return s((this.negative|L.negative)===0),this.iuand(L)},c.prototype.and=function(L){return this.length>L.length?this.clone().iand(L):L.clone().iand(this)},c.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},c.prototype.iuxor=function(L){var P,O;this.length>L.length?(P=this,O=L):(P=L,O=this);for(var U=0;U<O.length;U++)this.words[U]=P.words[U]^O.words[U];if(this!==P)for(;U<P.length;U++)this.words[U]=P.words[U];return this.length=P.length,this.strip()},c.prototype.ixor=function(L){return s((this.negative|L.negative)===0),this.iuxor(L)},c.prototype.xor=function(L){return this.length>L.length?this.clone().ixor(L):L.clone().ixor(this)},c.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},c.prototype.inotn=function(L){s(typeof L=="number"&&L>=0);var P=Math.ceil(L/26)|0,O=L%26;this._expand(P),O>0&&P--;for(var U=0;U<P;U++)this.words[U]=~this.words[U]&67108863;return O>0&&(this.words[U]=~this.words[U]&67108863>>26-O),this.strip()},c.prototype.notn=function(L){return this.clone().inotn(L)},c.prototype.setn=function(L,P){s(typeof L=="number"&&L>=0);var O=L/26|0,U=L%26;return this._expand(O+1),P?this.words[O]=this.words[O]|1<<U:this.words[O]=this.words[O]&~(1<<U),this.strip()},c.prototype.iadd=function(L){var P;if(this.negative!==0&&L.negative===0)return this.negative=0,P=this.isub(L),this.negative^=1,this._normSign();if(this.negative===0&&L.negative!==0)return L.negative=0,P=this.isub(L),L.negative=1,P._normSign();var O,U;this.length>L.length?(O=this,U=L):(O=L,U=this);for(var V=0,K=0;K<U.length;K++)P=(O.words[K]|0)+(U.words[K]|0)+V,this.words[K]=P&67108863,V=P>>>26;for(;V!==0&&K<O.length;K++)P=(O.words[K]|0)+V,this.words[K]=P&67108863,V=P>>>26;if(this.length=O.length,V!==0)this.words[this.length]=V,this.length++;else if(O!==this)for(;K<O.length;K++)this.words[K]=O.words[K];return this},c.prototype.add=function(L){var P;return L.negative!==0&&this.negative===0?(L.negative=0,P=this.sub(L),L.negative^=1,P):L.negative===0&&this.negative!==0?(this.negative=0,P=L.sub(this),this.negative=1,P):this.length>L.length?this.clone().iadd(L):L.clone().iadd(this)},c.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var P=this.iadd(L);return L.negative=1,P._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var O=this.cmp(L);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var U,V;O>0?(U=this,V=L):(U=L,V=this);for(var K=0,j=0;j<V.length;j++)P=(U.words[j]|0)-(V.words[j]|0)+K,K=P>>26,this.words[j]=P&67108863;for(;K!==0&&j<U.length;j++)P=(U.words[j]|0)+K,K=P>>26,this.words[j]=P&67108863;if(K===0&&j<U.length&&U!==this)for(;j<U.length;j++)this.words[j]=U.words[j];return this.length=Math.max(this.length,j),U!==this&&(this.negative=1),this.strip()},c.prototype.sub=function(L){return this.clone().isub(L)};function b(I,L,P){P.negative=L.negative^I.negative;var O=I.length+L.length|0;P.length=O,O=O-1|0;var U=I.words[0]|0,V=L.words[0]|0,K=U*V,j=K&67108863,G=K/67108864|0;P.words[0]=j;for(var q=1;q<O;q++){for(var J=G>>>26,te=G&67108863,Z=Math.min(q,L.length-1),ie=Math.max(0,q-I.length+1);ie<=Z;ie++){var Q=q-ie|0;U=I.words[Q]|0,V=L.words[ie]|0,K=U*V+te,J+=K/67108864|0,te=K&67108863}P.words[q]=te|0,G=J|0}return G!==0?P.words[q]=G|0:P.length--,P.strip()}var M=function(L,P,O){var U=L.words,V=P.words,K=O.words,j=0,G,q,J,te=U[0]|0,Z=te&8191,ie=te>>>13,Q=U[1]|0,re=Q&8191,se=Q>>>13,ee=U[2]|0,ae=ee&8191,ce=ee>>>13,Me=U[3]|0,ke=Me&8191,Se=Me>>>13,ge=U[4]|0,Le=ge&8191,Ee=ge>>>13,le=U[5]|0,Y=le&8191,$=le>>>13,pe=U[6]|0,oe=pe&8191,ve=pe>>>13,he=U[7]|0,me=he&8191,be=he>>>13,ye=U[8]|0,de=ye&8191,_e=ye>>>13,Ae=U[9]|0,Ie=Ae&8191,Pe=Ae>>>13,Ye=V[0]|0,qe=Ye&8191,Oe=Ye>>>13,Be=V[1]|0,We=Be&8191,Xe=Be>>>13,tr=V[2]|0,ir=tr&8191,je=tr>>>13,Ke=V[3]|0,Ce=Ke&8191,Fe=Ke>>>13,Qe=V[4]|0,er=Qe&8191,wr=Qe>>>13,Vr=V[5]|0,Mr=Vr&8191,Dr=Vr>>>13,Qr=V[6]|0,Sr=Qr&8191,Wr=Qr>>>13,bt=V[7]|0,Jr=bt&8191,lt=bt>>>13,Cn=V[8]|0,lr=Cn&8191,Fr=Cn>>>13,et=V[9]|0,Br=et&8191,Gr=et>>>13;O.negative=L.negative^P.negative,O.length=19,G=Math.imul(Z,qe),q=Math.imul(Z,Oe),q=q+Math.imul(ie,qe)|0,J=Math.imul(ie,Oe);var pt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(pt>>>26)|0,pt&=67108863,G=Math.imul(re,qe),q=Math.imul(re,Oe),q=q+Math.imul(se,qe)|0,J=Math.imul(se,Oe),G=G+Math.imul(Z,We)|0,q=q+Math.imul(Z,Xe)|0,q=q+Math.imul(ie,We)|0,J=J+Math.imul(ie,Xe)|0;var at=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(at>>>26)|0,at&=67108863,G=Math.imul(ae,qe),q=Math.imul(ae,Oe),q=q+Math.imul(ce,qe)|0,J=Math.imul(ce,Oe),G=G+Math.imul(re,We)|0,q=q+Math.imul(re,Xe)|0,q=q+Math.imul(se,We)|0,J=J+Math.imul(se,Xe)|0,G=G+Math.imul(Z,ir)|0,q=q+Math.imul(Z,je)|0,q=q+Math.imul(ie,ir)|0,J=J+Math.imul(ie,je)|0;var Ct=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,G=Math.imul(ke,qe),q=Math.imul(ke,Oe),q=q+Math.imul(Se,qe)|0,J=Math.imul(Se,Oe),G=G+Math.imul(ae,We)|0,q=q+Math.imul(ae,Xe)|0,q=q+Math.imul(ce,We)|0,J=J+Math.imul(ce,Xe)|0,G=G+Math.imul(re,ir)|0,q=q+Math.imul(re,je)|0,q=q+Math.imul(se,ir)|0,J=J+Math.imul(se,je)|0,G=G+Math.imul(Z,Ce)|0,q=q+Math.imul(Z,Fe)|0,q=q+Math.imul(ie,Ce)|0,J=J+Math.imul(ie,Fe)|0;var Zt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,G=Math.imul(Le,qe),q=Math.imul(Le,Oe),q=q+Math.imul(Ee,qe)|0,J=Math.imul(Ee,Oe),G=G+Math.imul(ke,We)|0,q=q+Math.imul(ke,Xe)|0,q=q+Math.imul(Se,We)|0,J=J+Math.imul(Se,Xe)|0,G=G+Math.imul(ae,ir)|0,q=q+Math.imul(ae,je)|0,q=q+Math.imul(ce,ir)|0,J=J+Math.imul(ce,je)|0,G=G+Math.imul(re,Ce)|0,q=q+Math.imul(re,Fe)|0,q=q+Math.imul(se,Ce)|0,J=J+Math.imul(se,Fe)|0,G=G+Math.imul(Z,er)|0,q=q+Math.imul(Z,wr)|0,q=q+Math.imul(ie,er)|0,J=J+Math.imul(ie,wr)|0;var St=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(St>>>26)|0,St&=67108863,G=Math.imul(Y,qe),q=Math.imul(Y,Oe),q=q+Math.imul($,qe)|0,J=Math.imul($,Oe),G=G+Math.imul(Le,We)|0,q=q+Math.imul(Le,Xe)|0,q=q+Math.imul(Ee,We)|0,J=J+Math.imul(Ee,Xe)|0,G=G+Math.imul(ke,ir)|0,q=q+Math.imul(ke,je)|0,q=q+Math.imul(Se,ir)|0,J=J+Math.imul(Se,je)|0,G=G+Math.imul(ae,Ce)|0,q=q+Math.imul(ae,Fe)|0,q=q+Math.imul(ce,Ce)|0,J=J+Math.imul(ce,Fe)|0,G=G+Math.imul(re,er)|0,q=q+Math.imul(re,wr)|0,q=q+Math.imul(se,er)|0,J=J+Math.imul(se,wr)|0,G=G+Math.imul(Z,Mr)|0,q=q+Math.imul(Z,Dr)|0,q=q+Math.imul(ie,Mr)|0,J=J+Math.imul(ie,Dr)|0;var gt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(gt>>>26)|0,gt&=67108863,G=Math.imul(oe,qe),q=Math.imul(oe,Oe),q=q+Math.imul(ve,qe)|0,J=Math.imul(ve,Oe),G=G+Math.imul(Y,We)|0,q=q+Math.imul(Y,Xe)|0,q=q+Math.imul($,We)|0,J=J+Math.imul($,Xe)|0,G=G+Math.imul(Le,ir)|0,q=q+Math.imul(Le,je)|0,q=q+Math.imul(Ee,ir)|0,J=J+Math.imul(Ee,je)|0,G=G+Math.imul(ke,Ce)|0,q=q+Math.imul(ke,Fe)|0,q=q+Math.imul(Se,Ce)|0,J=J+Math.imul(Se,Fe)|0,G=G+Math.imul(ae,er)|0,q=q+Math.imul(ae,wr)|0,q=q+Math.imul(ce,er)|0,J=J+Math.imul(ce,wr)|0,G=G+Math.imul(re,Mr)|0,q=q+Math.imul(re,Dr)|0,q=q+Math.imul(se,Mr)|0,J=J+Math.imul(se,Dr)|0,G=G+Math.imul(Z,Sr)|0,q=q+Math.imul(Z,Wr)|0,q=q+Math.imul(ie,Sr)|0,J=J+Math.imul(ie,Wr)|0;var Et=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Et>>>26)|0,Et&=67108863,G=Math.imul(me,qe),q=Math.imul(me,Oe),q=q+Math.imul(be,qe)|0,J=Math.imul(be,Oe),G=G+Math.imul(oe,We)|0,q=q+Math.imul(oe,Xe)|0,q=q+Math.imul(ve,We)|0,J=J+Math.imul(ve,Xe)|0,G=G+Math.imul(Y,ir)|0,q=q+Math.imul(Y,je)|0,q=q+Math.imul($,ir)|0,J=J+Math.imul($,je)|0,G=G+Math.imul(Le,Ce)|0,q=q+Math.imul(Le,Fe)|0,q=q+Math.imul(Ee,Ce)|0,J=J+Math.imul(Ee,Fe)|0,G=G+Math.imul(ke,er)|0,q=q+Math.imul(ke,wr)|0,q=q+Math.imul(Se,er)|0,J=J+Math.imul(Se,wr)|0,G=G+Math.imul(ae,Mr)|0,q=q+Math.imul(ae,Dr)|0,q=q+Math.imul(ce,Mr)|0,J=J+Math.imul(ce,Dr)|0,G=G+Math.imul(re,Sr)|0,q=q+Math.imul(re,Wr)|0,q=q+Math.imul(se,Sr)|0,J=J+Math.imul(se,Wr)|0,G=G+Math.imul(Z,Jr)|0,q=q+Math.imul(Z,lt)|0,q=q+Math.imul(ie,Jr)|0,J=J+Math.imul(ie,lt)|0;var Lt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,G=Math.imul(de,qe),q=Math.imul(de,Oe),q=q+Math.imul(_e,qe)|0,J=Math.imul(_e,Oe),G=G+Math.imul(me,We)|0,q=q+Math.imul(me,Xe)|0,q=q+Math.imul(be,We)|0,J=J+Math.imul(be,Xe)|0,G=G+Math.imul(oe,ir)|0,q=q+Math.imul(oe,je)|0,q=q+Math.imul(ve,ir)|0,J=J+Math.imul(ve,je)|0,G=G+Math.imul(Y,Ce)|0,q=q+Math.imul(Y,Fe)|0,q=q+Math.imul($,Ce)|0,J=J+Math.imul($,Fe)|0,G=G+Math.imul(Le,er)|0,q=q+Math.imul(Le,wr)|0,q=q+Math.imul(Ee,er)|0,J=J+Math.imul(Ee,wr)|0,G=G+Math.imul(ke,Mr)|0,q=q+Math.imul(ke,Dr)|0,q=q+Math.imul(Se,Mr)|0,J=J+Math.imul(Se,Dr)|0,G=G+Math.imul(ae,Sr)|0,q=q+Math.imul(ae,Wr)|0,q=q+Math.imul(ce,Sr)|0,J=J+Math.imul(ce,Wr)|0,G=G+Math.imul(re,Jr)|0,q=q+Math.imul(re,lt)|0,q=q+Math.imul(se,Jr)|0,J=J+Math.imul(se,lt)|0,G=G+Math.imul(Z,lr)|0,q=q+Math.imul(Z,Fr)|0,q=q+Math.imul(ie,lr)|0,J=J+Math.imul(ie,Fr)|0;var da=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(da>>>26)|0,da&=67108863,G=Math.imul(Ie,qe),q=Math.imul(Ie,Oe),q=q+Math.imul(Pe,qe)|0,J=Math.imul(Pe,Oe),G=G+Math.imul(de,We)|0,q=q+Math.imul(de,Xe)|0,q=q+Math.imul(_e,We)|0,J=J+Math.imul(_e,Xe)|0,G=G+Math.imul(me,ir)|0,q=q+Math.imul(me,je)|0,q=q+Math.imul(be,ir)|0,J=J+Math.imul(be,je)|0,G=G+Math.imul(oe,Ce)|0,q=q+Math.imul(oe,Fe)|0,q=q+Math.imul(ve,Ce)|0,J=J+Math.imul(ve,Fe)|0,G=G+Math.imul(Y,er)|0,q=q+Math.imul(Y,wr)|0,q=q+Math.imul($,er)|0,J=J+Math.imul($,wr)|0,G=G+Math.imul(Le,Mr)|0,q=q+Math.imul(Le,Dr)|0,q=q+Math.imul(Ee,Mr)|0,J=J+Math.imul(Ee,Dr)|0,G=G+Math.imul(ke,Sr)|0,q=q+Math.imul(ke,Wr)|0,q=q+Math.imul(Se,Sr)|0,J=J+Math.imul(Se,Wr)|0,G=G+Math.imul(ae,Jr)|0,q=q+Math.imul(ae,lt)|0,q=q+Math.imul(ce,Jr)|0,J=J+Math.imul(ce,lt)|0,G=G+Math.imul(re,lr)|0,q=q+Math.imul(re,Fr)|0,q=q+Math.imul(se,lr)|0,J=J+Math.imul(se,Fr)|0,G=G+Math.imul(Z,Br)|0,q=q+Math.imul(Z,Gr)|0,q=q+Math.imul(ie,Br)|0,J=J+Math.imul(ie,Gr)|0;var Wn=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,G=Math.imul(Ie,We),q=Math.imul(Ie,Xe),q=q+Math.imul(Pe,We)|0,J=Math.imul(Pe,Xe),G=G+Math.imul(de,ir)|0,q=q+Math.imul(de,je)|0,q=q+Math.imul(_e,ir)|0,J=J+Math.imul(_e,je)|0,G=G+Math.imul(me,Ce)|0,q=q+Math.imul(me,Fe)|0,q=q+Math.imul(be,Ce)|0,J=J+Math.imul(be,Fe)|0,G=G+Math.imul(oe,er)|0,q=q+Math.imul(oe,wr)|0,q=q+Math.imul(ve,er)|0,J=J+Math.imul(ve,wr)|0,G=G+Math.imul(Y,Mr)|0,q=q+Math.imul(Y,Dr)|0,q=q+Math.imul($,Mr)|0,J=J+Math.imul($,Dr)|0,G=G+Math.imul(Le,Sr)|0,q=q+Math.imul(Le,Wr)|0,q=q+Math.imul(Ee,Sr)|0,J=J+Math.imul(Ee,Wr)|0,G=G+Math.imul(ke,Jr)|0,q=q+Math.imul(ke,lt)|0,q=q+Math.imul(Se,Jr)|0,J=J+Math.imul(Se,lt)|0,G=G+Math.imul(ae,lr)|0,q=q+Math.imul(ae,Fr)|0,q=q+Math.imul(ce,lr)|0,J=J+Math.imul(ce,Fr)|0,G=G+Math.imul(re,Br)|0,q=q+Math.imul(re,Gr)|0,q=q+Math.imul(se,Br)|0,J=J+Math.imul(se,Gr)|0;var Ua=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Ua>>>26)|0,Ua&=67108863,G=Math.imul(Ie,ir),q=Math.imul(Ie,je),q=q+Math.imul(Pe,ir)|0,J=Math.imul(Pe,je),G=G+Math.imul(de,Ce)|0,q=q+Math.imul(de,Fe)|0,q=q+Math.imul(_e,Ce)|0,J=J+Math.imul(_e,Fe)|0,G=G+Math.imul(me,er)|0,q=q+Math.imul(me,wr)|0,q=q+Math.imul(be,er)|0,J=J+Math.imul(be,wr)|0,G=G+Math.imul(oe,Mr)|0,q=q+Math.imul(oe,Dr)|0,q=q+Math.imul(ve,Mr)|0,J=J+Math.imul(ve,Dr)|0,G=G+Math.imul(Y,Sr)|0,q=q+Math.imul(Y,Wr)|0,q=q+Math.imul($,Sr)|0,J=J+Math.imul($,Wr)|0,G=G+Math.imul(Le,Jr)|0,q=q+Math.imul(Le,lt)|0,q=q+Math.imul(Ee,Jr)|0,J=J+Math.imul(Ee,lt)|0,G=G+Math.imul(ke,lr)|0,q=q+Math.imul(ke,Fr)|0,q=q+Math.imul(Se,lr)|0,J=J+Math.imul(Se,Fr)|0,G=G+Math.imul(ae,Br)|0,q=q+Math.imul(ae,Gr)|0,q=q+Math.imul(ce,Br)|0,J=J+Math.imul(ce,Gr)|0;var Bi=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,G=Math.imul(Ie,Ce),q=Math.imul(Ie,Fe),q=q+Math.imul(Pe,Ce)|0,J=Math.imul(Pe,Fe),G=G+Math.imul(de,er)|0,q=q+Math.imul(de,wr)|0,q=q+Math.imul(_e,er)|0,J=J+Math.imul(_e,wr)|0,G=G+Math.imul(me,Mr)|0,q=q+Math.imul(me,Dr)|0,q=q+Math.imul(be,Mr)|0,J=J+Math.imul(be,Dr)|0,G=G+Math.imul(oe,Sr)|0,q=q+Math.imul(oe,Wr)|0,q=q+Math.imul(ve,Sr)|0,J=J+Math.imul(ve,Wr)|0,G=G+Math.imul(Y,Jr)|0,q=q+Math.imul(Y,lt)|0,q=q+Math.imul($,Jr)|0,J=J+Math.imul($,lt)|0,G=G+Math.imul(Le,lr)|0,q=q+Math.imul(Le,Fr)|0,q=q+Math.imul(Ee,lr)|0,J=J+Math.imul(Ee,Fr)|0,G=G+Math.imul(ke,Br)|0,q=q+Math.imul(ke,Gr)|0,q=q+Math.imul(Se,Br)|0,J=J+Math.imul(Se,Gr)|0;var xo=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(xo>>>26)|0,xo&=67108863,G=Math.imul(Ie,er),q=Math.imul(Ie,wr),q=q+Math.imul(Pe,er)|0,J=Math.imul(Pe,wr),G=G+Math.imul(de,Mr)|0,q=q+Math.imul(de,Dr)|0,q=q+Math.imul(_e,Mr)|0,J=J+Math.imul(_e,Dr)|0,G=G+Math.imul(me,Sr)|0,q=q+Math.imul(me,Wr)|0,q=q+Math.imul(be,Sr)|0,J=J+Math.imul(be,Wr)|0,G=G+Math.imul(oe,Jr)|0,q=q+Math.imul(oe,lt)|0,q=q+Math.imul(ve,Jr)|0,J=J+Math.imul(ve,lt)|0,G=G+Math.imul(Y,lr)|0,q=q+Math.imul(Y,Fr)|0,q=q+Math.imul($,lr)|0,J=J+Math.imul($,Fr)|0,G=G+Math.imul(Le,Br)|0,q=q+Math.imul(Le,Gr)|0,q=q+Math.imul(Ee,Br)|0,J=J+Math.imul(Ee,Gr)|0;var _o=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(_o>>>26)|0,_o&=67108863,G=Math.imul(Ie,Mr),q=Math.imul(Ie,Dr),q=q+Math.imul(Pe,Mr)|0,J=Math.imul(Pe,Dr),G=G+Math.imul(de,Sr)|0,q=q+Math.imul(de,Wr)|0,q=q+Math.imul(_e,Sr)|0,J=J+Math.imul(_e,Wr)|0,G=G+Math.imul(me,Jr)|0,q=q+Math.imul(me,lt)|0,q=q+Math.imul(be,Jr)|0,J=J+Math.imul(be,lt)|0,G=G+Math.imul(oe,lr)|0,q=q+Math.imul(oe,Fr)|0,q=q+Math.imul(ve,lr)|0,J=J+Math.imul(ve,Fr)|0,G=G+Math.imul(Y,Br)|0,q=q+Math.imul(Y,Gr)|0,q=q+Math.imul($,Br)|0,J=J+Math.imul($,Gr)|0;var wo=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(wo>>>26)|0,wo&=67108863,G=Math.imul(Ie,Sr),q=Math.imul(Ie,Wr),q=q+Math.imul(Pe,Sr)|0,J=Math.imul(Pe,Wr),G=G+Math.imul(de,Jr)|0,q=q+Math.imul(de,lt)|0,q=q+Math.imul(_e,Jr)|0,J=J+Math.imul(_e,lt)|0,G=G+Math.imul(me,lr)|0,q=q+Math.imul(me,Fr)|0,q=q+Math.imul(be,lr)|0,J=J+Math.imul(be,Fr)|0,G=G+Math.imul(oe,Br)|0,q=q+Math.imul(oe,Gr)|0,q=q+Math.imul(ve,Br)|0,J=J+Math.imul(ve,Gr)|0;var dn=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(dn>>>26)|0,dn&=67108863,G=Math.imul(Ie,Jr),q=Math.imul(Ie,lt),q=q+Math.imul(Pe,Jr)|0,J=Math.imul(Pe,lt),G=G+Math.imul(de,lr)|0,q=q+Math.imul(de,Fr)|0,q=q+Math.imul(_e,lr)|0,J=J+Math.imul(_e,Fr)|0,G=G+Math.imul(me,Br)|0,q=q+Math.imul(me,Gr)|0,q=q+Math.imul(be,Br)|0,J=J+Math.imul(be,Gr)|0;var Wo=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,G=Math.imul(Ie,lr),q=Math.imul(Ie,Fr),q=q+Math.imul(Pe,lr)|0,J=Math.imul(Pe,Fr),G=G+Math.imul(de,Br)|0,q=q+Math.imul(de,Gr)|0,q=q+Math.imul(_e,Br)|0,J=J+Math.imul(_e,Gr)|0;var Ui=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,G=Math.imul(Ie,Br),q=Math.imul(Ie,Gr),q=q+Math.imul(Pe,Br)|0,J=Math.imul(Pe,Gr);var Hi=(j+G|0)+((q&8191)<<13)|0;return j=(J+(q>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,K[0]=pt,K[1]=at,K[2]=Ct,K[3]=Zt,K[4]=St,K[5]=gt,K[6]=Et,K[7]=Lt,K[8]=da,K[9]=Wn,K[10]=Ua,K[11]=Bi,K[12]=xo,K[13]=_o,K[14]=wo,K[15]=dn,K[16]=Wo,K[17]=Ui,K[18]=Hi,j!==0&&(K[19]=j,O.length++),O};Math.imul||(M=b);function h(I,L,P){P.negative=L.negative^I.negative,P.length=I.length+L.length;for(var O=0,U=0,V=0;V<P.length-1;V++){var K=U;U=0;for(var j=O&67108863,G=Math.min(V,L.length-1),q=Math.max(0,V-I.length+1);q<=G;q++){var J=V-q,te=I.words[J]|0,Z=L.words[q]|0,ie=te*Z,Q=ie&67108863;K=K+(ie/67108864|0)|0,Q=Q+j|0,j=Q&67108863,K=K+(Q>>>26)|0,U+=K>>>26,K&=67108863}P.words[V]=j,O=K,K=U}return O!==0?P.words[V]=O:P.length--,P.strip()}function _(I,L,P){var O=new y;return O.mulp(I,L,P)}c.prototype.mulTo=function(L,P){var O,U=this.length+L.length;return this.length===10&&L.length===10?O=M(this,L,P):U<63?O=b(this,L,P):U<1024?O=h(this,L,P):O=_(this,L,P),O};function y(I,L){this.x=I,this.y=L}y.prototype.makeRBT=function(L){for(var P=new Array(L),O=c.prototype._countBits(L)-1,U=0;U<L;U++)P[U]=this.revBin(U,O,L);return P},y.prototype.revBin=function(L,P,O){if(L===0||L===O-1)return L;for(var U=0,V=0;V<P;V++)U|=(L&1)<<P-V-1,L>>=1;return U},y.prototype.permute=function(L,P,O,U,V,K){for(var j=0;j<K;j++)U[j]=P[L[j]],V[j]=O[L[j]]},y.prototype.transform=function(L,P,O,U,V,K){this.permute(K,L,P,O,U,V);for(var j=1;j<V;j<<=1)for(var G=j<<1,q=Math.cos(2*Math.PI/G),J=Math.sin(2*Math.PI/G),te=0;te<V;te+=G)for(var Z=q,ie=J,Q=0;Q<j;Q++){var re=O[te+Q],se=U[te+Q],ee=O[te+Q+j],ae=U[te+Q+j],ce=Z*ee-ie*ae;ae=Z*ae+ie*ee,ee=ce,O[te+Q]=re+ee,U[te+Q]=se+ae,O[te+Q+j]=re-ee,U[te+Q+j]=se-ae,Q!==G&&(ce=q*Z-J*ie,ie=q*ie+J*Z,Z=ce)}},y.prototype.guessLen13b=function(L,P){var O=Math.max(P,L)|1,U=O&1,V=0;for(O=O/2|0;O;O=O>>>1)V++;return 1<<V+1+U},y.prototype.conjugate=function(L,P,O){if(!(O<=1))for(var U=0;U<O/2;U++){var V=L[U];L[U]=L[O-U-1],L[O-U-1]=V,V=P[U],P[U]=-P[O-U-1],P[O-U-1]=-V}},y.prototype.normalize13b=function(L,P){for(var O=0,U=0;U<P/2;U++){var V=Math.round(L[2*U+1]/P)*8192+Math.round(L[2*U]/P)+O;L[U]=V&67108863,V<67108864?O=0:O=V/67108864|0}return L},y.prototype.convert13b=function(L,P,O,U){for(var V=0,K=0;K<P;K++)V=V+(L[K]|0),O[2*K]=V&8191,V=V>>>13,O[2*K+1]=V&8191,V=V>>>13;for(K=2*P;K<U;++K)O[K]=0;s(V===0),s((V&-8192)===0)},y.prototype.stub=function(L){for(var P=new Array(L),O=0;O<L;O++)P[O]=0;return P},y.prototype.mulp=function(L,P,O){var U=2*this.guessLen13b(L.length,P.length),V=this.makeRBT(U),K=this.stub(U),j=new Array(U),G=new Array(U),q=new Array(U),J=new Array(U),te=new Array(U),Z=new Array(U),ie=O.words;ie.length=U,this.convert13b(L.words,L.length,j,U),this.convert13b(P.words,P.length,J,U),this.transform(j,K,G,q,U,V),this.transform(J,K,te,Z,U,V);for(var Q=0;Q<U;Q++){var re=G[Q]*te[Q]-q[Q]*Z[Q];q[Q]=G[Q]*Z[Q]+q[Q]*te[Q],G[Q]=re}return this.conjugate(G,q,U),this.transform(G,q,ie,K,U,V),this.conjugate(ie,K,U),this.normalize13b(ie,U),O.negative=L.negative^P.negative,O.length=L.length+P.length,O.strip()},c.prototype.mul=function(L){var P=new c(null);return P.words=new Array(this.length+L.length),this.mulTo(L,P)},c.prototype.mulf=function(L){var P=new c(null);return P.words=new Array(this.length+L.length),_(this,L,P)},c.prototype.imul=function(L){return this.clone().mulTo(L,this)},c.prototype.imuln=function(L){s(typeof L=="number"),s(L<67108864);for(var P=0,O=0;O<this.length;O++){var U=(this.words[O]|0)*L,V=(U&67108863)+(P&67108863);P>>=26,P+=U/67108864|0,P+=V>>>26,this.words[O]=V&67108863}return P!==0&&(this.words[O]=P,this.length++),this.length=L===0?1:this.length,this},c.prototype.muln=function(L){return this.clone().imuln(L)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(L){var P=S(L);if(P.length===0)return new c(1);for(var O=this,U=0;U<P.length&&P[U]===0;U++,O=O.sqr());if(++U<P.length)for(var V=O.sqr();U<P.length;U++,V=V.sqr())P[U]!==0&&(O=O.mul(V));return O},c.prototype.iushln=function(L){s(typeof L=="number"&&L>=0);var P=L%26,O=(L-P)/26,U=67108863>>>26-P<<26-P,V;if(P!==0){var K=0;for(V=0;V<this.length;V++){var j=this.words[V]&U,G=(this.words[V]|0)-j<<P;this.words[V]=G|K,K=j>>>26-P}K&&(this.words[V]=K,this.length++)}if(O!==0){for(V=this.length-1;V>=0;V--)this.words[V+O]=this.words[V];for(V=0;V<O;V++)this.words[V]=0;this.length+=O}return this.strip()},c.prototype.ishln=function(L){return s(this.negative===0),this.iushln(L)},c.prototype.iushrn=function(L,P,O){s(typeof L=="number"&&L>=0);var U;P?U=(P-P%26)/26:U=0;var V=L%26,K=Math.min((L-V)/26,this.length),j=67108863^67108863>>>V<<V,G=O;if(U-=K,U=Math.max(0,U),G){for(var q=0;q<K;q++)G.words[q]=this.words[q];G.length=K}if(K!==0)if(this.length>K)for(this.length-=K,q=0;q<this.length;q++)this.words[q]=this.words[q+K];else this.words[0]=0,this.length=1;var J=0;for(q=this.length-1;q>=0&&(J!==0||q>=U);q--){var te=this.words[q]|0;this.words[q]=J<<26-V|te>>>V,J=te&j}return G&&J!==0&&(G.words[G.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(L,P,O){return s(this.negative===0),this.iushrn(L,P,O)},c.prototype.shln=function(L){return this.clone().ishln(L)},c.prototype.ushln=function(L){return this.clone().iushln(L)},c.prototype.shrn=function(L){return this.clone().ishrn(L)},c.prototype.ushrn=function(L){return this.clone().iushrn(L)},c.prototype.testn=function(L){s(typeof L=="number"&&L>=0);var P=L%26,O=(L-P)/26,U=1<<P;if(this.length<=O)return!1;var V=this.words[O];return!!(V&U)},c.prototype.imaskn=function(L){s(typeof L=="number"&&L>=0);var P=L%26,O=(L-P)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(P!==0&&O++,this.length=Math.min(O,this.length),P!==0){var U=67108863^67108863>>>P<<P;this.words[this.length-1]&=U}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.maskn=function(L){return this.clone().imaskn(L)},c.prototype.iaddn=function(L){return s(typeof L=="number"),s(L<67108864),L<0?this.isubn(-L):this.negative!==0?this.length===1&&(this.words[0]|0)<L?(this.words[0]=L-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(L),this.negative=1,this):this._iaddn(L)},c.prototype._iaddn=function(L){this.words[0]+=L;for(var P=0;P<this.length&&this.words[P]>=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},c.prototype.isubn=function(L){if(s(typeof L=="number"),s(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P<this.length&&this.words[P]<0;P++)this.words[P]+=67108864,this.words[P+1]-=1;return this.strip()},c.prototype.addn=function(L){return this.clone().iaddn(L)},c.prototype.subn=function(L){return this.clone().isubn(L)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(L,P,O){var U=L.length+O,V;this._expand(U);var K,j=0;for(V=0;V<L.length;V++){K=(this.words[V+O]|0)+j;var G=(L.words[V]|0)*P;K-=G&67108863,j=(K>>26)-(G/67108864|0),this.words[V+O]=K&67108863}for(;V<this.length-O;V++)K=(this.words[V+O]|0)+j,j=K>>26,this.words[V+O]=K&67108863;if(j===0)return this.strip();for(s(j===-1),j=0,V=0;V<this.length;V++)K=-(this.words[V]|0)+j,j=K>>26,this.words[V]=K&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(L,P){var O=this.length-L.length,U=this.clone(),V=L,K=V.words[V.length-1]|0,j=this._countBits(K);O=26-j,O!==0&&(V=V.ushln(O),U.iushln(O),K=V.words[V.length-1]|0);var G=U.length-V.length,q;if(P!=="mod"){q=new c(null),q.length=G+1,q.words=new Array(q.length);for(var J=0;J<q.length;J++)q.words[J]=0}var te=U.clone()._ishlnsubmul(V,1,G);te.negative===0&&(U=te,q&&(q.words[G]=1));for(var Z=G-1;Z>=0;Z--){var ie=(U.words[V.length+Z]|0)*67108864+(U.words[V.length+Z-1]|0);for(ie=Math.min(ie/K|0,67108863),U._ishlnsubmul(V,ie,Z);U.negative!==0;)ie--,U.negative=0,U._ishlnsubmul(V,1,Z),U.isZero()||(U.negative^=1);q&&(q.words[Z]=ie)}return q&&q.strip(),U.strip(),P!=="div"&&O!==0&&U.iushrn(O),{div:q||null,mod:U}},c.prototype.divmod=function(L,P,O){if(s(!L.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var U,V,K;return this.negative!==0&&L.negative===0?(K=this.neg().divmod(L,P),P!=="mod"&&(U=K.div.neg()),P!=="div"&&(V=K.mod.neg(),O&&V.negative!==0&&V.iadd(L)),{div:U,mod:V}):this.negative===0&&L.negative!==0?(K=this.divmod(L.neg(),P),P!=="mod"&&(U=K.div.neg()),{div:U,mod:K.mod}):(this.negative&L.negative)!==0?(K=this.neg().divmod(L.neg(),P),P!=="div"&&(V=K.mod.neg(),O&&V.negative!==0&&V.isub(L)),{div:K.div,mod:V}):L.length>this.length||this.cmp(L)<0?{div:new c(0),mod:this}:L.length===1?P==="div"?{div:this.divn(L.words[0]),mod:null}:P==="mod"?{div:null,mod:new c(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new c(this.modn(L.words[0]))}:this._wordDiv(L,P)},c.prototype.div=function(L){return this.divmod(L,"div",!1).div},c.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},c.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},c.prototype.divRound=function(L){var P=this.divmod(L);if(P.mod.isZero())return P.div;var O=P.div.negative!==0?P.mod.isub(L):P.mod,U=L.ushrn(1),V=L.andln(1),K=O.cmp(U);return K<0||V===1&&K===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},c.prototype.modn=function(L){s(L<=67108863);for(var P=(1<<26)%L,O=0,U=this.length-1;U>=0;U--)O=(P*O+(this.words[U]|0))%L;return O},c.prototype.idivn=function(L){s(L<=67108863);for(var P=0,O=this.length-1;O>=0;O--){var U=(this.words[O]|0)+P*67108864;this.words[O]=U/L|0,P=U%L}return this.strip()},c.prototype.divn=function(L){return this.clone().idivn(L)},c.prototype.egcd=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var U=new c(1),V=new c(0),K=new c(0),j=new c(1),G=0;P.isEven()&&O.isEven();)P.iushrn(1),O.iushrn(1),++G;for(var q=O.clone(),J=P.clone();!P.isZero();){for(var te=0,Z=1;(P.words[0]&Z)===0&&te<26;++te,Z<<=1);if(te>0)for(P.iushrn(te);te-- >0;)(U.isOdd()||V.isOdd())&&(U.iadd(q),V.isub(J)),U.iushrn(1),V.iushrn(1);for(var ie=0,Q=1;(O.words[0]&Q)===0&&ie<26;++ie,Q<<=1);if(ie>0)for(O.iushrn(ie);ie-- >0;)(K.isOdd()||j.isOdd())&&(K.iadd(q),j.isub(J)),K.iushrn(1),j.iushrn(1);P.cmp(O)>=0?(P.isub(O),U.isub(K),V.isub(j)):(O.isub(P),K.isub(U),j.isub(V))}return{a:K,b:j,gcd:O.iushln(G)}},c.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var U=new c(1),V=new c(0),K=O.clone();P.cmpn(1)>0&&O.cmpn(1)>0;){for(var j=0,G=1;(P.words[0]&G)===0&&j<26;++j,G<<=1);if(j>0)for(P.iushrn(j);j-- >0;)U.isOdd()&&U.iadd(K),U.iushrn(1);for(var q=0,J=1;(O.words[0]&J)===0&&q<26;++q,J<<=1);if(q>0)for(O.iushrn(q);q-- >0;)V.isOdd()&&V.iadd(K),V.iushrn(1);P.cmp(O)>=0?(P.isub(O),U.isub(V)):(O.isub(P),V.isub(U))}var te;return P.cmpn(1)===0?te=U:te=V,te.cmpn(0)<0&&te.iadd(L),te},c.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var P=this.clone(),O=L.clone();P.negative=0,O.negative=0;for(var U=0;P.isEven()&&O.isEven();U++)P.iushrn(1),O.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;O.isEven();)O.iushrn(1);var V=P.cmp(O);if(V<0){var K=P;P=O,O=K}else if(V===0||O.cmpn(1)===0)break;P.isub(O)}while(!0);return O.iushln(U)},c.prototype.invm=function(L){return this.egcd(L).a.umod(L)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(L){return this.words[0]&L},c.prototype.bincn=function(L){s(typeof L=="number");var P=L%26,O=(L-P)/26,U=1<<P;if(this.length<=O)return this._expand(O+1),this.words[O]|=U,this;for(var V=U,K=O;V!==0&&K<this.length;K++){var j=this.words[K]|0;j+=V,V=j>>>26,j&=67108863,this.words[K]=j}return V!==0&&(this.words[K]=V,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(L){var P=L<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var O;if(this.length>1)O=1;else{P&&(L=-L),s(L<=67108863,"Number is too big");var U=this.words[0]|0;O=U===L?0:U<L?-1:1}return this.negative!==0?-O|0:O},c.prototype.cmp=function(L){if(this.negative!==0&&L.negative===0)return-1;if(this.negative===0&&L.negative!==0)return 1;var P=this.ucmp(L);return this.negative!==0?-P|0:P},c.prototype.ucmp=function(L){if(this.length>L.length)return 1;if(this.length<L.length)return-1;for(var P=0,O=this.length-1;O>=0;O--){var U=this.words[O]|0,V=L.words[O]|0;if(U!==V){U<V?P=-1:U>V&&(P=1);break}}return P},c.prototype.gtn=function(L){return this.cmpn(L)===1},c.prototype.gt=function(L){return this.cmp(L)===1},c.prototype.gten=function(L){return this.cmpn(L)>=0},c.prototype.gte=function(L){return this.cmp(L)>=0},c.prototype.ltn=function(L){return this.cmpn(L)===-1},c.prototype.lt=function(L){return this.cmp(L)===-1},c.prototype.lten=function(L){return this.cmpn(L)<=0},c.prototype.lte=function(L){return this.cmp(L)<=0},c.prototype.eqn=function(L){return this.cmpn(L)===0},c.prototype.eq=function(L){return this.cmp(L)===0},c.red=function(L){return new F(L)},c.prototype.toRed=function(L){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},c.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(L){return this.red=L,this},c.prototype.forceRed=function(L){return s(!this.red,"Already a number in reduction context"),this._forceRed(L)},c.prototype.redAdd=function(L){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},c.prototype.redIAdd=function(L){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},c.prototype.redSub=function(L){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},c.prototype.redISub=function(L){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},c.prototype.redShl=function(L){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},c.prototype.redMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},c.prototype.redIMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},c.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(L){return s(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var v={k256:null,p224:null,p192:null,p25519:null};function A(I,L){this.name=I,this.p=new c(L,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}A.prototype._tmp=function(){var L=new c(null);return L.words=new Array(Math.ceil(this.n/13)),L},A.prototype.ireduce=function(L){var P=L,O;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),O=P.bitLength();while(O>this.n);var U=O<this.n?-1:P.ucmp(this.p);return U===0?(P.words[0]=0,P.length=1):U>0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},A.prototype.split=function(L,P){L.iushrn(this.n,0,P)},A.prototype.imulK=function(L){return L.imul(this.k)};function p(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(p,A),p.prototype.split=function(L,P){for(var O=4194303,U=Math.min(L.length,9),V=0;V<U;V++)P.words[V]=L.words[V];if(P.length=U,L.length<=9){L.words[0]=0,L.length=1;return}var K=L.words[9];for(P.words[P.length++]=K&O,V=10;V<L.length;V++){var j=L.words[V]|0;L.words[V-10]=(j&O)<<4|K>>>22,K=j}K>>>=22,L.words[V-10]=K,K===0&&L.length>10?L.length-=10:L.length-=9},p.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var P=0,O=0;O<L.length;O++){var U=L.words[O]|0;P+=U*977,L.words[O]=P&67108863,P=U*64+(P/67108864|0)}return L.words[L.length-1]===0&&(L.length--,L.words[L.length-1]===0&&L.length--),L};function R(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}f(R,A);function E(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}f(E,A);function D(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}f(D,A),D.prototype.imulK=function(L){for(var P=0,O=0;O<L.length;O++){var U=(L.words[O]|0)*19+P,V=U&67108863;U>>>=26,L.words[O]=V,P=U}return P!==0&&(L.words[L.length++]=P),L},c._prime=function(L){if(v[L])return v[L];var P;if(L==="k256")P=new p;else if(L==="p224")P=new R;else if(L==="p192")P=new E;else if(L==="p25519")P=new D;else throw new Error("Unknown prime "+L);return v[L]=P,P};function F(I){if(typeof I=="string"){var L=c._prime(I);this.m=L.p,this.prime=L}else s(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}F.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},F.prototype._verify2=function(L,P){s((L.negative|P.negative)===0,"red works only with positives"),s(L.red&&L.red===P.red,"red works only with red numbers")},F.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},F.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},F.prototype.add=function(L,P){this._verify2(L,P);var O=L.add(P);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},F.prototype.iadd=function(L,P){this._verify2(L,P);var O=L.iadd(P);return O.cmp(this.m)>=0&&O.isub(this.m),O},F.prototype.sub=function(L,P){this._verify2(L,P);var O=L.sub(P);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},F.prototype.isub=function(L,P){this._verify2(L,P);var O=L.isub(P);return O.cmpn(0)<0&&O.iadd(this.m),O},F.prototype.shl=function(L,P){return this._verify1(L),this.imod(L.ushln(P))},F.prototype.imul=function(L,P){return this._verify2(L,P),this.imod(L.imul(P))},F.prototype.mul=function(L,P){return this._verify2(L,P),this.imod(L.mul(P))},F.prototype.isqr=function(L){return this.imul(L,L.clone())},F.prototype.sqr=function(L){return this.mul(L,L)},F.prototype.sqrt=function(L){if(L.isZero())return L.clone();var P=this.m.andln(3);if(s(P%2===1),P===3){var O=this.m.add(new c(1)).iushrn(2);return this.pow(L,O)}for(var U=this.m.subn(1),V=0;!U.isZero()&&U.andln(1)===0;)V++,U.iushrn(1);s(!U.isZero());var K=new c(1).toRed(this),j=K.redNeg(),G=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new c(2*q*q).toRed(this);this.pow(q,G).cmp(j)!==0;)q.redIAdd(j);for(var J=this.pow(q,U),te=this.pow(L,U.addn(1).iushrn(1)),Z=this.pow(L,U),ie=V;Z.cmp(K)!==0;){for(var Q=Z,re=0;Q.cmp(K)!==0;re++)Q=Q.redSqr();s(re<ie);var se=this.pow(J,new c(1).iushln(ie-re-1));te=te.redMul(se),J=se.redSqr(),Z=Z.redMul(J),ie=re}return te},F.prototype.invm=function(L){var P=L._invmp(this.m);return P.negative!==0?(P.negative=0,this.imod(P).redNeg()):this.imod(P)},F.prototype.pow=function(L,P){if(P.isZero())return new c(1).toRed(this);if(P.cmpn(1)===0)return L.clone();var O=4,U=new Array(1<<O);U[0]=new c(1).toRed(this),U[1]=L;for(var V=2;V<U.length;V++)U[V]=this.mul(U[V-1],L);var K=U[0],j=0,G=0,q=P.bitLength()%26;for(q===0&&(q=26),V=P.length-1;V>=0;V--){for(var J=P.words[V],te=q-1;te>=0;te--){var Z=J>>te&1;if(K!==U[0]&&(K=this.sqr(K)),Z===0&&j===0){G=0;continue}j<<=1,j|=Z,G++,!(G!==O&&(V!==0||te!==0))&&(K=this.mul(K,U[j]),G=0,j=0)}q=26}return K},F.prototype.convertTo=function(L){var P=L.umod(this.m);return P===L?P.clone():P},F.prototype.convertFrom=function(L){var P=L.clone();return P.red=null,P},c.mont=function(L){return new z(L)};function z(I){F.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(z,F),z.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},z.prototype.convertFrom=function(L){var P=this.imod(L.mul(this.rinv));return P.red=null,P},z.prototype.imul=function(L,P){if(L.isZero()||P.isZero())return L.words[0]=0,L.length=1,L;var O=L.imul(P),U=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),V=O.isub(U).iushrn(this.shift),K=V;return V.cmp(this.m)>=0?K=V.isub(this.m):V.cmpn(0)<0&&(K=V.iadd(this.m)),K._forceRed(this)},z.prototype.mul=function(L,P){if(L.isZero()||P.isZero())return new c(0)._forceRed(this);var O=L.mul(P),U=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),V=O.isub(U).iushrn(this.shift),K=V;return V.cmp(this.m)>=0?K=V.isub(this.m):V.cmpn(0)<0&&(K=V.iadd(this.m)),K._forceRed(this)},z.prototype.invm=function(L){var P=this.imod(L._invmp(this.m).mul(this.r2));return P._forceRed(this)}})(a,this)}),6204:(function(a){"use strict";a.exports=o;function o(i){var l,u,s,f=i.length,c=0;for(l=0;l<f;++l)c+=i[l].length;var d=new Array(c),x=0;for(l=0;l<f;++l){var g=i[l],w=g.length;for(u=0;u<w;++u){var T=d[x++]=new Array(w-1),m=0;for(s=0;s<w;++s)s!==u&&(T[m++]=g[s]);if(u&1){var k=T[1];T[1]=T[0],T[0]=k}}}return d}}),6867:(function(a,o,i){"use strict";a.exports=m;var l=i(1888),u=i(855),s=i(7150);function f(k,S){for(var b=0;b<k;++b)if(!(S[b]<=S[b+k]))return!0;return!1}function c(k,S,b,M){for(var h=0,_=0,y=0,v=k.length;y<v;++y){var A=k[y];if(!f(S,A)){for(var p=0;p<2*S;++p)b[h++]=A[p];M[_++]=y}}return _}function d(k,S,b,M){var h=k.length,_=S.length;if(!(h<=0||_<=0)){var y=k[0].length>>>1;if(!(y<=0)){var v,A=l.mallocDouble(2*y*h),p=l.mallocInt32(h);if(h=c(k,y,A,p),h>0){if(y===1&&M)u.init(h),v=u.sweepComplete(y,b,0,h,A,p,0,h,A,p);else{var R=l.mallocDouble(2*y*_),E=l.mallocInt32(_);_=c(S,y,R,E),_>0&&(u.init(h+_),y===1?v=u.sweepBipartite(y,b,0,h,A,p,0,_,R,E):v=s(y,b,M,h,A,p,_,R,E),l.free(R),l.free(E))}l.free(A),l.free(p)}return v}}}var x;function g(k,S){x.push([k,S])}function w(k){return x=[],d(k,k,g,!0),x}function T(k,S){return x=[],d(k,S,g,!1),x}function m(k,S,b){switch(arguments.length){case 1:return w(k);case 2:return typeof S=="function"?d(k,k,S,!0):T(k,S);case 3:return d(k,S,b,!1);default:throw new Error("box-intersect: Invalid arguments")}}}),2455:(function(a,o){"use strict";function i(){function s(d,x,g,w,T,m,k,S,b,M,h){for(var _=2*d,y=w,v=_*w;y<T;++y,v+=_){var A=m[x+v],p=m[x+v+d],R=k[y];e:for(var E=S,D=_*S;E<b;++E,D+=_){var F=M[x+D],z=M[x+D+d],I=h[E];if(!(z<A||p<F)){for(var L=x+1;L<d;++L){var P=m[L+v],O=m[L+d+v],U=M[L+D],V=M[L+d+D];if(O<U||V<P)continue e}var K=g(R,I);if(K!==void 0)return K}}}}function f(d,x,g,w,T,m,k,S,b,M,h){for(var _=2*d,y=S,v=_*S;y<b;++y,v+=_){var A=M[x+v],p=M[x+v+d],R=h[y];e:for(var E=w,D=_*w;E<T;++E,D+=_){var F=m[x+D],z=m[x+D+d],I=k[E];if(!(p<F||z<A)){for(var L=x+1;L<d;++L){var P=m[L+D],O=m[L+d+D],U=M[L+v],V=M[L+d+v];if(O<U||V<P)continue e}var K=g(I,R);if(K!==void 0)return K}}}}function c(d,x,g,w,T,m,k,S,b,M,h){return T-w>b-S?s(d,x,g,w,T,m,k,S,b,M,h):f(d,x,g,w,T,m,k,S,b,M,h)}return c}function l(){function s(g,w,T,m,k,S,b,M,h,_,y){for(var v=2*g,A=m,p=v*m;A<k;++A,p+=v){var R=S[w+p],E=S[w+p+g],D=b[A];e:for(var F=M,z=v*M;F<h;++F,z+=v){var I=_[w+z],L=y[F];if(!(I<=R||E<I)){for(var P=w+1;P<g;++P){var O=S[P+p],U=S[P+g+p],V=_[P+z],K=_[P+g+z];if(U<V||K<O)continue e}var j=T(L,D);if(j!==void 0)return j}}}}function f(g,w,T,m,k,S,b,M,h,_,y){for(var v=2*g,A=m,p=v*m;A<k;++A,p+=v){var R=S[w+p],E=S[w+p+g],D=b[A];e:for(var F=M,z=v*M;F<h;++F,z+=v){var I=_[w+z],L=y[F];if(!(I<R||E<I)){for(var P=w+1;P<g;++P){var O=S[P+p],U=S[P+g+p],V=_[P+z],K=_[P+g+z];if(U<V||K<O)continue e}var j=T(D,L);if(j!==void 0)return j}}}}function c(g,w,T,m,k,S,b,M,h,_,y){for(var v=2*g,A=M,p=v*M;A<h;++A,p+=v){var R=_[w+p],E=y[A];e:for(var D=m,F=v*m;D<k;++D,F+=v){var z=S[w+F],I=S[w+F+g],L=b[D];if(!(R<=z||I<R)){for(var P=w+1;P<g;++P){var O=S[P+F],U=S[P+g+F],V=_[P+p],K=_[P+g+p];if(U<V||K<O)continue e}var j=T(E,L);if(j!==void 0)return j}}}}function d(g,w,T,m,k,S,b,M,h,_,y){for(var v=2*g,A=M,p=v*M;A<h;++A,p+=v){var R=_[w+p],E=y[A];e:for(var D=m,F=v*m;D<k;++D,F+=v){var z=S[w+F],I=S[w+F+g],L=b[D];if(!(R<z||I<R)){for(var P=w+1;P<g;++P){var O=S[P+F],U=S[P+g+F],V=_[P+p],K=_[P+g+p];if(U<V||K<O)continue e}var j=T(L,E);if(j!==void 0)return j}}}}function x(g,w,T,m,k,S,b,M,h,_,y,v){return S-k>_-h?m?s(g,w,T,k,S,b,M,h,_,y,v):f(g,w,T,k,S,b,M,h,_,y,v):m?c(g,w,T,k,S,b,M,h,_,y,v):d(g,w,T,k,S,b,M,h,_,y,v)}return x}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)}),7150:(function(a,o,i){"use strict";a.exports=I;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,c=s.full,d=i(855),x=i(3545),g=i(8105),w=128,T=1<<22,m=1<<22,k=g("!(lo>=p0)&&!(p1>=hi)"),S=g("lo===p0"),b=g("lo<p0"),M=g("hi<=p0"),h=g("lo<=p0&&p0<=hi"),_=g("lo<p0&&p0<=hi"),y=6,v=2,A=1024,p=l.mallocInt32(A),R=l.mallocDouble(A);function E(L,P){var O=8*u.log2(P+1)*(L+1)|0,U=u.nextPow2(y*O);p.length<U&&(l.free(p),p=l.mallocInt32(U));var V=u.nextPow2(v*O);R.length<V&&(l.free(R),R=l.mallocDouble(V))}function D(L,P,O,U,V,K,j,G,q){var J=y*L;p[J]=P,p[J+1]=O,p[J+2]=U,p[J+3]=V,p[J+4]=K,p[J+5]=j;var te=v*L;R[te]=G,R[te+1]=q}function F(L,P,O,U,V,K,j,G,q,J,te){var Z=2*L,ie=q*Z,Q=J[ie+P];e:for(var re=V,se=V*Z;re<K;++re,se+=Z){var ee=j[se+P],ae=j[se+P+L];if(!(Q<ee||ae<Q)&&!(U&&Q===ee)){for(var ce=G[re],Me=P+1;Me<L;++Me){var ee=j[se+Me],ae=j[se+Me+L],ke=J[ie+Me],Se=J[ie+Me+L];if(ae<ke||Se<ee)continue e}var ge;if(U?ge=O(te,ce):ge=O(ce,te),ge!==void 0)return ge}}}function z(L,P,O,U,V,K,j,G,q,J){var te=2*L,Z=G*te,ie=q[Z+P];e:for(var Q=U,re=U*te;Q<V;++Q,re+=te){var se=j[Q];if(se!==J){var ee=K[re+P],ae=K[re+P+L];if(!(ie<ee||ae<ie)){for(var ce=P+1;ce<L;++ce){var ee=K[re+ce],ae=K[re+ce+L],Me=q[Z+ce],ke=q[Z+ce+L];if(ae<Me||ke<ee)continue e}var Se=O(se,J);if(Se!==void 0)return Se}}}}function I(L,P,O,U,V,K,j,G,q){E(L,U+j);var J=0,te=2*L,Z;for(D(J++,0,0,U,0,j,O?16:0,-1/0,1/0),O||D(J++,0,0,j,0,U,1,-1/0,1/0);J>0;){J-=1;var ie=J*y,Q=p[ie],re=p[ie+1],se=p[ie+2],ee=p[ie+3],ae=p[ie+4],ce=p[ie+5],Me=J*v,ke=R[Me],Se=R[Me+1],ge=ce&1,Le=!!(ce&16),Ee=V,le=K,Y=G,$=q;if(ge&&(Ee=G,le=q,Y=V,$=K),!(ce&2&&(se=b(L,Q,re,se,Ee,le,Se),re>=se))&&!(ce&4&&(re=M(L,Q,re,se,Ee,le,ke),re>=se))){var pe=se-re,oe=ae-ee;if(Le){if(L*pe*(pe+oe)<m){if(Z=d.scanComplete(L,Q,P,re,se,Ee,le,ee,ae,Y,$),Z!==void 0)return Z;continue}}else if(L*Math.min(pe,oe)<w){if(Z=f(L,Q,P,ge,re,se,Ee,le,ee,ae,Y,$),Z!==void 0)return Z;continue}else if(L*pe*oe<T){if(Z=d.scanBipartite(L,Q,P,ge,re,se,Ee,le,ee,ae,Y,$),Z!==void 0)return Z;continue}var ve=k(L,Q,re,se,Ee,le,ke,Se);if(re<ve)if(L*(ve-re)<w){if(Z=c(L,Q+1,P,re,ve,Ee,le,ee,ae,Y,$),Z!==void 0)return Z}else if(Q===L-2){if(ge?Z=d.sweepBipartite(L,P,ee,ae,Y,$,re,ve,Ee,le):Z=d.sweepBipartite(L,P,re,ve,Ee,le,ee,ae,Y,$),Z!==void 0)return Z}else D(J++,Q+1,re,ve,ee,ae,ge,-1/0,1/0),D(J++,Q+1,ee,ae,re,ve,ge^1,-1/0,1/0);if(ve<se){var he=x(L,Q,ee,ae,Y,$),me=Y[te*he+Q],be=S(L,Q,he,ae,Y,$,me);if(be<ae&&D(J++,Q,ve,se,be,ae,(ge|4)+(Le?16:0),me,Se),ee<he&&D(J++,Q,ve,se,ee,he,(ge|2)+(Le?16:0),ke,me),he+1===be){if(Le?Z=z(L,Q,P,ve,se,Ee,le,he,Y,$[he]):Z=F(L,Q,P,ge,ve,se,Ee,le,he,Y,$[he]),Z!==void 0)return Z}else if(he<be){var ye;if(Le){if(ye=h(L,Q,ve,se,Ee,le,me),ve<ye){var de=S(L,Q,ve,ye,Ee,le,me);if(Q===L-2){if(ve<de&&(Z=d.sweepComplete(L,P,ve,de,Ee,le,he,be,Y,$),Z!==void 0)||de<ye&&(Z=d.sweepBipartite(L,P,de,ye,Ee,le,he,be,Y,$),Z!==void 0))return Z}else ve<de&&D(J++,Q+1,ve,de,he,be,16,-1/0,1/0),de<ye&&(D(J++,Q+1,de,ye,he,be,0,-1/0,1/0),D(J++,Q+1,he,be,de,ye,1,-1/0,1/0))}}else ge?ye=_(L,Q,ve,se,Ee,le,me):ye=h(L,Q,ve,se,Ee,le,me),ve<ye&&(Q===L-2?ge?Z=d.sweepBipartite(L,P,he,be,Y,$,ve,ye,Ee,le):Z=d.sweepBipartite(L,P,ve,ye,Ee,le,he,be,Y,$):(D(J++,Q+1,ve,ye,he,be,ge,-1/0,1/0),D(J++,Q+1,he,be,ve,ye,ge^1,-1/0,1/0)))}}}}}}),3545:(function(a,o,i){"use strict";a.exports=c;var l=i(8105),u=l("lo<p0"),s=8;function f(d,x,g,w,T,m){for(var k=2*d,S=k*(g+1)+x,b=g+1;b<w;++b,S+=k)for(var M=T[S],h=b,_=k*(b-1);h>g&&T[_+x]>M;--h,_-=k){for(var y=_,v=_+k,A=0;A<k;++A,++y,++v){var p=T[y];T[y]=T[v],T[v]=p}var R=m[h];m[h]=m[h-1],m[h-1]=R}}function c(d,x,g,w,T,m){if(w<=g+1)return g;for(var k=g,S=w,b=w+g>>>1,M=2*d,h=b,_=T[M*b+x];k<S;){if(S-k<s){f(d,x,k,S,T,m),_=T[M*b+x];break}var y=S-k,v=Math.random()*y+k|0,A=T[M*v+x],p=Math.random()*y+k|0,R=T[M*p+x],E=Math.random()*y+k|0,D=T[M*E+x];A<=R?D>=R?(h=p,_=R):A>=D?(h=v,_=A):(h=E,_=D):R>=D?(h=p,_=R):D>=A?(h=v,_=A):(h=E,_=D);for(var I=M*(S-1),L=M*h,F=0;F<M;++F,++I,++L){var z=T[I];T[I]=T[L],T[L]=z}var P=m[S-1];m[S-1]=m[h],m[h]=P,h=u(d,x,k,S-1,T,m,_);for(var I=M*(S-1),L=M*h,F=0;F<M;++F,++I,++L){var z=T[I];T[I]=T[L],T[L]=z}var P=m[S-1];if(m[S-1]=m[h],m[h]=P,b<h){for(S=h-1;k<S&&T[M*(S-1)+x]===_;)S-=1;S+=1}else if(h<b)for(k=h+1;k<S&&T[M*k+x]===_;)k+=1;else break}return u(d,x,g,b,T,m,T[M*b+x])}}),8105:(function(a){"use strict";a.exports=i;var o={"lo===p0":l,"lo<p0":u,"lo<=p0":s,"hi<=p0":f,"lo<p0&&p0<=hi":d,"lo<=p0&&p0<=hi":c,"!(lo>=p0)&&!(p1>=hi)":x};function i(g){return o[g]}function l(g,w,T,m,k,S,b){for(var M=2*g,h=M*T,_=h,y=T,v=w,A=g+w,p=T;m>p;++p,h+=M){var R=k[h+v];if(R===b)if(y===p)y+=1,_+=M;else{for(var E=0;M>E;++E){var D=k[h+E];k[h+E]=k[_],k[_++]=D}var F=S[p];S[p]=S[y],S[y++]=F}}return y}function u(g,w,T,m,k,S,b){for(var M=2*g,h=M*T,_=h,y=T,v=w,A=g+w,p=T;m>p;++p,h+=M){var R=k[h+v];if(R<b)if(y===p)y+=1,_+=M;else{for(var E=0;M>E;++E){var D=k[h+E];k[h+E]=k[_],k[_++]=D}var F=S[p];S[p]=S[y],S[y++]=F}}return y}function s(g,w,T,m,k,S,b){for(var M=2*g,h=M*T,_=h,y=T,v=w,A=g+w,p=T;m>p;++p,h+=M){var R=k[h+A];if(R<=b)if(y===p)y+=1,_+=M;else{for(var E=0;M>E;++E){var D=k[h+E];k[h+E]=k[_],k[_++]=D}var F=S[p];S[p]=S[y],S[y++]=F}}return y}function f(g,w,T,m,k,S,b){for(var M=2*g,h=M*T,_=h,y=T,v=w,A=g+w,p=T;m>p;++p,h+=M){var R=k[h+A];if(R<=b)if(y===p)y+=1,_+=M;else{for(var E=0;M>E;++E){var D=k[h+E];k[h+E]=k[_],k[_++]=D}var F=S[p];S[p]=S[y],S[y++]=F}}return y}function c(g,w,T,m,k,S,b){for(var M=2*g,h=M*T,_=h,y=T,v=w,A=g+w,p=T;m>p;++p,h+=M){var R=k[h+v],E=k[h+A];if(R<=b&&b<=E)if(y===p)y+=1,_+=M;else{for(var D=0;M>D;++D){var F=k[h+D];k[h+D]=k[_],k[_++]=F}var z=S[p];S[p]=S[y],S[y++]=z}}return y}function d(g,w,T,m,k,S,b){for(var M=2*g,h=M*T,_=h,y=T,v=w,A=g+w,p=T;m>p;++p,h+=M){var R=k[h+v],E=k[h+A];if(R<b&&b<=E)if(y===p)y+=1,_+=M;else{for(var D=0;M>D;++D){var F=k[h+D];k[h+D]=k[_],k[_++]=F}var z=S[p];S[p]=S[y],S[y++]=z}}return y}function x(g,w,T,m,k,S,b,M){for(var h=2*g,_=h*T,y=_,v=T,A=w,p=g+w,R=T;m>R;++R,_+=h){var E=k[_+A],D=k[_+p];if(!(E>=b)&&!(M>=D))if(v===R)v+=1,y+=h;else{for(var F=0;h>F;++F){var z=k[_+F];k[_+F]=k[y],k[y++]=z}var I=S[R];S[R]=S[v],S[v++]=I}}return v}}),4192:(function(a){"use strict";a.exports=i;var o=32;function i(w,T){T<=4*o?l(0,T-1,w):g(0,T-1,w)}function l(w,T,m){for(var k=2*(w+1),S=w+1;S<=T;++S){for(var b=m[k++],M=m[k++],h=S,_=k-2;h-- >w;){var y=m[_-2],v=m[_-1];if(y<b)break;if(y===b&&v<M)break;m[_]=y,m[_+1]=v,_-=2}m[_]=b,m[_+1]=M}}function u(w,T,m){w*=2,T*=2;var k=m[w],S=m[w+1];m[w]=m[T],m[w+1]=m[T+1],m[T]=k,m[T+1]=S}function s(w,T,m){w*=2,T*=2,m[w]=m[T],m[w+1]=m[T+1]}function f(w,T,m,k){w*=2,T*=2,m*=2;var S=k[w],b=k[w+1];k[w]=k[T],k[w+1]=k[T+1],k[T]=k[m],k[T+1]=k[m+1],k[m]=S,k[m+1]=b}function c(w,T,m,k,S){w*=2,T*=2,S[w]=S[T],S[T]=m,S[w+1]=S[T+1],S[T+1]=k}function d(w,T,m){w*=2,T*=2;var k=m[w],S=m[T];return k<S?!1:k===S?m[w+1]>m[T+1]:!0}function x(w,T,m,k){w*=2;var S=k[w];return S<T?!0:S===T?k[w+1]<m:!1}function g(w,T,m){var k=(T-w+1)/6|0,S=w+k,b=T-k,M=w+T>>1,h=M-k,_=M+k,y=S,v=h,A=M,p=_,R=b,E=w+1,D=T-1,F=0;d(y,v,m)&&(F=y,y=v,v=F),d(p,R,m)&&(F=p,p=R,R=F),d(y,A,m)&&(F=y,y=A,A=F),d(v,A,m)&&(F=v,v=A,A=F),d(y,p,m)&&(F=y,y=p,p=F),d(A,p,m)&&(F=A,A=p,p=F),d(v,R,m)&&(F=v,v=R,R=F),d(v,A,m)&&(F=v,v=A,A=F),d(p,R,m)&&(F=p,p=R,R=F);for(var z=m[2*v],I=m[2*v+1],L=m[2*p],P=m[2*p+1],O=2*y,U=2*A,V=2*R,K=2*S,j=2*M,G=2*b,q=0;q<2;++q){var J=m[O+q],te=m[U+q],Z=m[V+q];m[K+q]=J,m[j+q]=te,m[G+q]=Z}s(h,w,m),s(_,T,m);for(var ie=E;ie<=D;++ie)if(x(ie,z,I,m))ie!==E&&u(ie,E,m),++E;else if(!x(ie,L,P,m))for(;;)if(x(D,L,P,m)){x(D,z,I,m)?(f(ie,E,D,m),++E,--D):(u(ie,D,m),--D);break}else{if(--D<ie)break;continue}c(w,E-1,z,I,m),c(T,D+1,L,P,m),E-2-w<=o?l(w,E-2,m):g(w,E-2,m),T-(D+2)<=o?l(D+2,T,m):g(D+2,T,m),D-E<=o?l(E,D,m):g(E,D,m)}}),855:(function(a,o,i){"use strict";a.exports={init:S,sweepBipartite:h,sweepComplete:_,scanBipartite:y,scanComplete:v};var l=i(1888),u=i(8828),s=i(4192),f=1<<28,c=1024,d=l.mallocInt32(c),x=l.mallocInt32(c),g=l.mallocInt32(c),w=l.mallocInt32(c),T=l.mallocInt32(c),m=l.mallocInt32(c),k=l.mallocDouble(c*8);function S(A){var p=u.nextPow2(A);d.length<p&&(l.free(d),d=l.mallocInt32(p)),x.length<p&&(l.free(x),x=l.mallocInt32(p)),g.length<p&&(l.free(g),g=l.mallocInt32(p)),w.length<p&&(l.free(w),w=l.mallocInt32(p)),T.length<p&&(l.free(T),T=l.mallocInt32(p)),m.length<p&&(l.free(m),m=l.mallocInt32(p));var R=8*p;k.length<R&&(l.free(k),k=l.mallocDouble(R))}function b(A,p,R,E){var D=p[E],F=A[R-1];A[D]=F,p[F]=D}function M(A,p,R,E){A[R]=E,p[E]=R}function h(A,p,R,E,D,F,z,I,L,P){for(var O=0,U=2*A,V=A-1,K=U-1,j=R;j<E;++j){var G=F[j],q=U*j;k[O++]=D[q+V],k[O++]=-(G+1),k[O++]=D[q+K],k[O++]=G}for(var j=z;j<I;++j){var G=P[j]+f,J=U*j;k[O++]=L[J+V],k[O++]=-G,k[O++]=L[J+K],k[O++]=G}var te=O>>>1;s(k,te);for(var Z=0,ie=0,j=0;j<te;++j){var Q=k[2*j+1]|0;if(Q>=f)Q=Q-f|0,b(g,w,ie--,Q);else if(Q>=0)b(d,x,Z--,Q);else if(Q<=-f){Q=-Q-f|0;for(var re=0;re<Z;++re){var se=p(d[re],Q);if(se!==void 0)return se}M(g,w,ie++,Q)}else{Q=-Q-1|0;for(var re=0;re<ie;++re){var se=p(Q,g[re]);if(se!==void 0)return se}M(d,x,Z++,Q)}}}function _(A,p,R,E,D,F,z,I,L,P){for(var O=0,U=2*A,V=A-1,K=U-1,j=R;j<E;++j){var G=F[j]+1<<1,q=U*j;k[O++]=D[q+V],k[O++]=-G,k[O++]=D[q+K],k[O++]=G}for(var j=z;j<I;++j){var G=P[j]+1<<1,J=U*j;k[O++]=L[J+V],k[O++]=-G|1,k[O++]=L[J+K],k[O++]=G|1}var te=O>>>1;s(k,te);for(var Z=0,ie=0,Q=0,j=0;j<te;++j){var re=k[2*j+1]|0,se=re&1;if(j<te-1&&re>>1===k[2*j+3]>>1&&(se=2,j+=1),re<0){for(var ee=-(re>>1)-1,ae=0;ae<Q;++ae){var ce=p(T[ae],ee);if(ce!==void 0)return ce}if(se!==0)for(var ae=0;ae<Z;++ae){var ce=p(d[ae],ee);if(ce!==void 0)return ce}if(se!==1)for(var ae=0;ae<ie;++ae){var ce=p(g[ae],ee);if(ce!==void 0)return ce}se===0?M(d,x,Z++,ee):se===1?M(g,w,ie++,ee):se===2&&M(T,m,Q++,ee)}else{var ee=(re>>1)-1;se===0?b(d,x,Z--,ee):se===1?b(g,w,ie--,ee):se===2&&b(T,m,Q--,ee)}}}function y(A,p,R,E,D,F,z,I,L,P,O,U){var V=0,K=2*A,j=p,G=p+A,q=1,J=1;E?J=f:q=f;for(var te=D;te<F;++te){var Z=te+q,ie=K*te;k[V++]=z[ie+j],k[V++]=-Z,k[V++]=z[ie+G],k[V++]=Z}for(var te=L;te<P;++te){var Z=te+J,Q=K*te;k[V++]=O[Q+j],k[V++]=-Z}var re=V>>>1;s(k,re);for(var se=0,te=0;te<re;++te){var ee=k[2*te+1]|0;if(ee<0){var Z=-ee,ae=!1;if(Z>=f?(ae=!E,Z-=f):(ae=!!E,Z-=1),ae)M(d,x,se++,Z);else{var ce=U[Z],Me=K*Z,ke=O[Me+p+1],Se=O[Me+p+1+A];e:for(var ge=0;ge<se;++ge){var Le=d[ge],Ee=K*Le;if(!(Se<z[Ee+p+1]||z[Ee+p+1+A]<ke)){for(var le=p+2;le<A;++le)if(O[Me+le+A]<z[Ee+le]||z[Ee+le+A]<O[Me+le])continue e;var Y=I[Le],$;if(E?$=R(ce,Y):$=R(Y,ce),$!==void 0)return $}}}}else b(d,x,se--,ee-q)}}function v(A,p,R,E,D,F,z,I,L,P,O){for(var U=0,V=2*A,K=p,j=p+A,G=E;G<D;++G){var q=G+f,J=V*G;k[U++]=F[J+K],k[U++]=-q,k[U++]=F[J+j],k[U++]=q}for(var G=I;G<L;++G){var q=G+1,te=V*G;k[U++]=P[te+K],k[U++]=-q}var Z=U>>>1;s(k,Z);for(var ie=0,G=0;G<Z;++G){var Q=k[2*G+1]|0;if(Q<0){var q=-Q;if(q>=f)d[ie++]=q-f;else{q-=1;var re=O[q],se=V*q,ee=P[se+p+1],ae=P[se+p+1+A];e:for(var ce=0;ce<ie;++ce){var Me=d[ce],ke=z[Me];if(ke===re)break;var Se=V*Me;if(!(ae<F[Se+p+1]||F[Se+p+1+A]<ee)){for(var ge=p+2;ge<A;++ge)if(P[se+ge+A]<F[Se+ge]||F[Se+ge+A]<P[se+ge])continue e;var Le=R(ke,re);if(Le!==void 0)return Le}}}}else{for(var q=Q-f,ce=ie-1;ce>=0;--ce)if(d[ce]===q){for(var ge=ce+1;ge<ie;++ge)d[ge-1]=d[ge];break}--ie}}}}),2538:(function(a,o,i){"use strict";var l=i(8902),u=i(5542),s=i(2272),f=i(5023);a.exports=w;function c(T){return[Math.min(T[0],T[1]),Math.max(T[0],T[1])]}function d(T,m){return T[0]-m[0]||T[1]-m[1]}function x(T){return T.map(c).sort(d)}function g(T,m,k){return m in T?T[m]:k}function w(T,m,k){Array.isArray(m)?(k=k||{},m=m||[]):(k=m||{},m=[]);var S=!!g(k,"delaunay",!0),b=!!g(k,"interior",!0),M=!!g(k,"exterior",!0),h=!!g(k,"infinity",!1);if(!b&&!M||T.length===0)return[];var _=l(T,m);if(S||b!==M||h){for(var y=u(T.length,x(m)),v=0;v<_.length;++v){var A=_[v];y.addTriangle(A[0],A[1],A[2])}return S&&s(T,y),M?b?h?f(y,0,h):y.cells():f(y,1,h):f(y,-1)}else return _}}),2272:(function(a,o,i){"use strict";var l=i(2646)[4],u=i(2478);a.exports=f;function s(c,d,x,g,w,T){var m=d.opposite(g,w);if(!(m<0)){if(w<g){var k=g;g=w,w=k,k=T,T=m,m=k}d.isConstraint(g,w)||l(c[g],c[w],c[T],c[m])<0&&x.push(g,w)}}function f(c,d){for(var x=[],g=c.length,w=d.stars,T=0;T<g;++T)for(var m=w[T],k=1;k<m.length;k+=2){var S=m[k];if(!(S<T)&&!d.isConstraint(T,S)){for(var b=m[k-1],M=-1,h=1;h<m.length;h+=2)if(m[h-1]===S){M=m[h];break}M<0||l(c[T],c[S],c[b],c[M])<0&&x.push(T,S)}}for(;x.length>0;){for(var S=x.pop(),T=x.pop(),b=-1,M=-1,m=w[T],_=1;_<m.length;_+=2){var y=m[_-1],v=m[_];y===S?M=v:v===S&&(b=y)}b<0||M<0||l(c[T],c[S],c[b],c[M])>=0||(d.flip(T,S),s(c,d,x,b,T,M),s(c,d,x,T,M,b),s(c,d,x,M,S,b),s(c,d,x,S,b,M))}}}),5023:(function(a,o,i){"use strict";var l=i(2478);a.exports=x;function u(g,w,T,m,k,S,b){this.cells=g,this.neighbor=w,this.flags=m,this.constraint=T,this.active=k,this.next=S,this.boundary=b}var s=u.prototype;function f(g,w){return g[0]-w[0]||g[1]-w[1]||g[2]-w[2]}s.locate=(function(){var g=[0,0,0];return function(w,T,m){var k=w,S=T,b=m;return T<m?T<w&&(k=T,S=m,b=w):m<w&&(k=m,S=w,b=T),k<0?-1:(g[0]=k,g[1]=S,g[2]=b,l.eq(this.cells,g,f))}})();function c(g,w){for(var T=g.cells(),m=T.length,k=0;k<m;++k){var S=T[k],b=S[0],M=S[1],h=S[2];M<h?M<b&&(S[0]=M,S[1]=h,S[2]=b):h<b&&(S[0]=h,S[1]=b,S[2]=M)}T.sort(f);for(var _=new Array(m),k=0;k<_.length;++k)_[k]=0;var y=[],v=[],A=new Array(3*m),p=new Array(3*m),R=null;w&&(R=[]);for(var E=new u(T,A,p,_,y,v,R),k=0;k<m;++k)for(var S=T[k],D=0;D<3;++D){var b=S[D],M=S[(D+1)%3],F=A[3*k+D]=E.locate(M,b,g.opposite(M,b)),z=p[3*k+D]=g.isConstraint(b,M);F<0&&(z?v.push(k):(y.push(k),_[k]=1),w&&R.push([M,b,-1]))}return E}function d(g,w,T){for(var m=0,k=0;k<g.length;++k)w[k]===T&&(g[m++]=g[k]);return g.length=m,g}function x(g,w,T){var m=c(g,T);if(w===0)return T?m.cells.concat(m.boundary):m.cells;for(var k=1,S=m.active,b=m.next,M=m.flags,h=m.cells,_=m.constraint,y=m.neighbor;S.length>0||b.length>0;){for(;S.length>0;){var v=S.pop();if(M[v]!==-k){M[v]=k;for(var A=h[v],p=0;p<3;++p){var R=y[3*v+p];R>=0&&M[R]===0&&(_[3*v+p]?b.push(R):(S.push(R),M[R]=k))}}}var E=b;b=S,S=E,b.length=0,k=-k}var D=d(h,M,w);return T?D.concat(m.boundary):D}}),8902:(function(a,o,i){"use strict";var l=i(2478),u=i(3250)[3],s=0,f=1,c=2;a.exports=b;function d(M,h,_,y,v){this.a=M,this.b=h,this.idx=_,this.lowerIds=y,this.upperIds=v}function x(M,h,_,y){this.a=M,this.b=h,this.type=_,this.idx=y}function g(M,h){var _=M.a[0]-h.a[0]||M.a[1]-h.a[1]||M.type-h.type;return _||M.type!==s&&(_=u(M.a,M.b,h.b),_)?_:M.idx-h.idx}function w(M,h){return u(M.a,M.b,h)}function T(M,h,_,y,v){for(var A=l.lt(h,y,w),p=l.gt(h,y,w),R=A;R<p;++R){for(var E=h[R],D=E.lowerIds,z=D.length;z>1&&u(_[D[z-2]],_[D[z-1]],y)>0;)M.push([D[z-1],D[z-2],v]),z-=1;D.length=z,D.push(v);for(var F=E.upperIds,z=F.length;z>1&&u(_[F[z-2]],_[F[z-1]],y)<0;)M.push([F[z-2],F[z-1],v]),z-=1;F.length=z,F.push(v)}}function m(M,h){var _;return M.a[0]<h.a[0]?_=u(M.a,M.b,h.a):_=u(h.b,h.a,M.a),_||(h.b[0]<M.b[0]?_=u(M.a,M.b,h.b):_=u(h.b,h.a,M.b),_||M.idx-h.idx)}function k(M,h,_){var y=l.le(M,_,m),v=M[y],A=v.upperIds,p=A[A.length-1];v.upperIds=[p],M.splice(y+1,0,new d(_.a,_.b,_.idx,[p],A))}function S(M,h,_){var y=_.a;_.a=_.b,_.b=y;var v=l.eq(M,_,m),A=M[v],p=M[v-1];p.upperIds=A.upperIds,M.splice(v,1)}function b(M,h){for(var _=M.length,y=h.length,v=[],A=0;A<_;++A)v.push(new x(M[A],null,s,A));for(var A=0;A<y;++A){var p=h[A],R=M[p[0]],E=M[p[1]];R[0]<E[0]?v.push(new x(R,E,c,A),new x(E,R,f,A)):R[0]>E[0]&&v.push(new x(E,R,c,A),new x(R,E,f,A))}v.sort(g);for(var D=v[0].a[0]-(1+Math.abs(v[0].a[0]))*Math.pow(2,-52),F=[new d([D,1],[D,0],-1,[],[],[],[])],z=[],A=0,I=v.length;A<I;++A){var L=v[A],P=L.type;P===s?T(z,F,M,L.a,L.idx):P===c?k(F,M,L):S(F,M,L)}return z}}),5542:(function(a,o,i){"use strict";var l=i(2478);a.exports=c;function u(d,x){this.stars=d,this.edges=x}var s=u.prototype;function f(d,x,g){for(var w=1,T=d.length;w<T;w+=2)if(d[w-1]===x&&d[w]===g){d[w-1]=d[T-2],d[w]=d[T-1],d.length=T-2;return}}s.isConstraint=(function(){var d=[0,0];function x(g,w){return g[0]-w[0]||g[1]-w[1]}return function(g,w){return d[0]=Math.min(g,w),d[1]=Math.max(g,w),l.eq(this.edges,d,x)>=0}})(),s.removeTriangle=function(d,x,g){var w=this.stars;f(w[d],x,g),f(w[x],g,d),f(w[g],d,x)},s.addTriangle=function(d,x,g){var w=this.stars;w[d].push(x,g),w[x].push(g,d),w[g].push(d,x)},s.opposite=function(d,x){for(var g=this.stars[x],w=1,T=g.length;w<T;w+=2)if(g[w]===d)return g[w-1];return-1},s.flip=function(d,x){var g=this.opposite(d,x),w=this.opposite(x,d);this.removeTriangle(d,x,g),this.removeTriangle(x,d,w),this.addTriangle(d,w,g),this.addTriangle(x,g,w)},s.edges=function(){for(var d=this.stars,x=[],g=0,w=d.length;g<w;++g)for(var T=d[g],m=0,k=T.length;m<k;m+=2)x.push([T[m],T[m+1]]);return x},s.cells=function(){for(var d=this.stars,x=[],g=0,w=d.length;g<w;++g)for(var T=d[g],m=0,k=T.length;m<k;m+=2){var S=T[m],b=T[m+1];g<Math.min(S,b)&&x.push([g,S,b])}return x};function c(d,x){for(var g=new Array(d),w=0;w<d;++w)g[w]=[];return new u(g,x)}}),2419:(function(a){"use strict";a.exports=o;function o(i){for(var l=1,u=1;u<i.length;++u)for(var s=0;s<u;++s)if(i[u]<i[s])l=-l;else if(i[s]===i[u])return 0;return l}}),3628:(function(a,o,i){"use strict";var l=i(1338),u=i(727);function s(d,x){for(var g=0,w=d.length,T=0;T<w;++T)g+=d[T]*x[T];return g}function f(d){var x=d.length;if(x===0)return[];var g=d[0].length,w=l([d.length+1,d.length+1],1),T=l([d.length+1],1);w[x][x]=0;for(var m=0;m<x;++m){for(var k=0;k<=m;++k)w[k][m]=w[m][k]=2*s(d[m],d[k]);T[m]=s(d[m],d[m])}for(var S=u(w,T),b=0,M=S[x+1],m=0;m<M.length;++m)b+=M[m];for(var h=new Array(x),m=0;m<x;++m){for(var M=S[m],_=0,k=0;k<M.length;++k)_+=M[k];h[m]=_/b}return h}function c(d){if(d.length===0)return[];for(var x=d[0].length,g=l([x]),w=f(d),T=0;T<d.length;++T)for(var m=0;m<x;++m)g[m]+=d[T][m]*w[T];return g}c.barycenetric=f,a.exports=c}),6037:(function(a,o,i){a.exports=u;var l=i(3628);function u(s){for(var f=l(s),c=0,d=0;d<s.length;++d)for(var x=s[d],g=0;g<f.length;++g)c+=Math.pow(x[g]-f[g],2);return Math.sqrt(c/s.length)}}),332:(function(a,o,i){"use strict";a.exports=R;var l=i(1755),u=i(6867),s=i(1125),f=i(7842),c=i(1318),d=i(946),x=i(5838),g=i(1278),w=i(3637);function T(E){var D=d(E);return[g(D,-1/0),g(D,1/0)]}function m(E,D){for(var F=new Array(D.length),z=0;z<D.length;++z){var I=D[z],L=E[I[0]],P=E[I[1]];F[z]=[g(Math.min(L[0],P[0]),-1/0),g(Math.min(L[1],P[1]),-1/0),g(Math.max(L[0],P[0]),1/0),g(Math.max(L[1],P[1]),1/0)]}return F}function k(E){for(var D=new Array(E.length),F=0;F<E.length;++F){var z=E[F];D[F]=[g(z[0],-1/0),g(z[1],-1/0),g(z[0],1/0),g(z[1],1/0)]}return D}function S(E,D,F){var z=[];return u(F,function(I,L){var P=D[I],O=D[L];if(!(P[0]===O[0]||P[0]===O[1]||P[1]===O[0]||P[1]===O[1])){var U=E[P[0]],V=E[P[1]],K=E[O[0]],j=E[O[1]];s(U,V,K,j)&&z.push([I,L])}}),z}function b(E,D,F,z){var I=[];return u(F,z,function(L,P){var O=D[L];if(!(O[0]===P||O[1]===P)){var U=E[P],V=E[O[0]],K=E[O[1]];s(V,K,U,U)&&I.push([L,P])}}),I}function M(E,D,F,z,I){var L,P,O=E.map(function(Me){return[f(Me[0]),f(Me[1])]});for(L=0;L<F.length;++L){var U=F[L];P=U[0];var V=U[1],K=D[P],j=D[V],G=w(x(E[K[0]]),x(E[K[1]]),x(E[j[0]]),x(E[j[1]]));if(G){var q=E.length;E.push([d(G[0]),d(G[1])]),O.push(G),z.push([P,q],[V,q])}}for(z.sort(function(Me,ke){if(Me[0]!==ke[0])return Me[0]-ke[0];var Se=O[Me[1]],ge=O[ke[1]];return c(Se[0],ge[0])||c(Se[1],ge[1])}),L=z.length-1;L>=0;--L){var J=z[L];P=J[0];var te=D[P],Z=te[0],ie=te[1],Q=E[Z],re=E[ie];if((Q[0]-re[0]||Q[1]-re[1])<0){var se=Z;Z=ie,ie=se}te[0]=Z;var ee=te[1]=J[1],ae;for(I&&(ae=te[2]);L>0&&z[L-1][0]===P;){var J=z[--L],ce=J[1];I?D.push([ee,ce,ae]):D.push([ee,ce]),ee=ce}I?D.push([ee,ie,ae]):D.push([ee,ie])}return O}function h(E,D,F){for(var z=D.length,I=new l(z),L=[],P=0;P<D.length;++P){var O=D[P],U=T(O[0]),V=T(O[1]);L.push([g(U[0],-1/0),g(V[0],-1/0),g(U[1],1/0),g(V[1],1/0)])}u(L,function(J,te){I.link(J,te)});for(var K=!0,j=new Array(z),P=0;P<z;++P){var G=I.find(P);G!==P&&(K=!1,E[G]=[Math.min(E[P][0],E[G][0]),Math.min(E[P][1],E[G][1])])}if(K)return null;for(var q=0,P=0;P<z;++P){var G=I.find(P);G===P?(j[P]=q,E[q++]=E[P]):j[P]=-1}E.length=q;for(var P=0;P<z;++P)j[P]<0&&(j[P]=j[I.find(P)]);return j}function _(E,D){return E[0]-D[0]||E[1]-D[1]}function y(E,D){var F=E[0]-D[0]||E[1]-D[1];return F||(E[2]<D[2]?-1:E[2]>D[2]?1:0)}function v(E,D,F){if(E.length!==0){if(D)for(var z=0;z<E.length;++z){var I=E[z],L=D[I[0]],P=D[I[1]];I[0]=Math.min(L,P),I[1]=Math.max(L,P)}else for(var z=0;z<E.length;++z){var I=E[z],L=I[0],P=I[1];I[0]=Math.min(L,P),I[1]=Math.max(L,P)}F?E.sort(y):E.sort(_);for(var O=1,z=1;z<E.length;++z){var U=E[z-1],V=E[z];V[0]===U[0]&&V[1]===U[1]&&(!F||V[2]===U[2])||(E[O++]=V)}E.length=O}}function A(E,D,F){var z=h(E,[],k(E));return v(D,z,F),!!z}function p(E,D,F){var z=m(E,D),I=S(E,D,z),L=k(E),P=b(E,D,z,L),O=M(E,D,I,P,F),U=h(E,O,L);return v(D,U,F),U?!0:I.length>0||P.length>0}function R(E,D,F){var z;if(F){z=D;for(var I=new Array(D.length),L=0;L<D.length;++L){var P=D[L];I[L]=[P[0],P[1],F[L]]}D=I}for(var O=A(E,D,!!F);p(E,D,!!F);)O=!0;if(F&&O){z.length=0,F.length=0;for(var L=0;L<D.length;++L){var P=D[L];z.push([P[0],P[1]]),F.push(P[2])}}return O}}),3637:(function(a,o,i){"use strict";a.exports=w;var l=i(6504),u=i(8697),s=i(5572),f=i(7721),c=i(544),d=i(2653),x=i(8987);function g(T,m){return s(l(T[0],m[1]),l(T[1],m[0]))}function w(T,m,k,S){var b=c(m,T),M=c(S,k),h=g(b,M);if(f(h)===0)return null;var _=c(T,k),y=g(M,_),v=u(y,h),A=x(b,v),p=d(T,A);return p}}),3642:(function(a){a.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],"rainbow-soft":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],"freesurface-blue":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],"freesurface-red":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],"velocity-blue":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],"velocity-green":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}}),6729:(function(a,o,i){"use strict";var l=i(3642),u=i(395);a.exports=s;function s(x){var g,w,T,m,k,S,b,M,v,h,_;if(x||(x={}),M=(x.nshades||72)-1,b=x.format||"hex",S=x.colormap,S||(S="jet"),typeof S=="string"){if(S=S.toLowerCase(),!l[S])throw Error(S+" not a supported colorscale");k=l[S]}else if(Array.isArray(S))k=S.slice();else throw Error("unsupported colormap option",S);if(k.length>M+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(x.alpha)?x.alpha.length!==2?h=[1,1]:h=x.alpha.slice():typeof x.alpha=="number"?h=[x.alpha,x.alpha]:h=[1,1],g=k.map(function(R){return Math.round(R.index*M)}),h[0]=Math.min(Math.max(h[0],0),1),h[1]=Math.min(Math.max(h[1],0),1);var y=k.map(function(R,E){var D=k[E].index,F=k[E].rgb.slice();return F.length===4&&F[3]>=0&&F[3]<=1||(F[3]=h[0]+(h[1]-h[0])*D),F}),v=[];for(_=0;_<g.length-1;++_){m=g[_+1]-g[_],w=y[_],T=y[_+1];for(var A=0;A<m;A++){var p=A/m;v.push([Math.round(u(w[0],T[0],p)),Math.round(u(w[1],T[1],p)),Math.round(u(w[2],T[2],p)),u(w[3],T[3],p)])}}return v.push(k[k.length-1].rgb.concat(h[1])),b==="hex"?v=v.map(c):b==="rgbaString"?v=v.map(d):b==="float"&&(v=v.map(f)),v}function f(x){return[x[0]/255,x[1]/255,x[2]/255,x[3]]}function c(x){for(var g,w="#",T=0;T<3;++T)g=x[T],g=g.toString(16),w+=("00"+g).substr(g.length);return w}function d(x){return"rgba("+x.join(",")+")"}}),3140:(function(a,o,i){"use strict";a.exports=x;var l=i(3250),u=i(8572),s=i(9362),f=i(5382),c=i(8210);function d(g,w,T){var m=s(g[0],-w[0]),k=s(g[1],-w[1]),S=s(T[0],-w[0]),b=s(T[1],-w[1]),M=c(f(m,S),f(k,b));return M[M.length-1]>=0}function x(g,w,T,m){var k=l(w,T,m);if(k===0){var S=u(l(g,w,T)),b=u(l(g,w,m));if(S===b){if(S===0){var M=d(g,w,T),h=d(g,w,m);return M===h?0:M?1:-1}return 0}else{if(b===0)return S>0||d(g,w,m)?-1:1;if(S===0)return b>0||d(g,w,T)?1:-1}return u(b-S)}var _=l(g,w,T);if(_>0)return k>0&&l(g,w,m)>0?1:-1;if(_<0)return k>0||l(g,w,m)>0?1:-1;var y=l(g,w,m);return y>0||d(g,w,T)?1:-1}}),8572:(function(a){"use strict";a.exports=function(i){return i<0?-1:i>0?1:0}}),8507:(function(a){a.exports=l;var o=Math.min;function i(u,s){return u-s}function l(u,s){var f=u.length,c=u.length-s.length;if(c)return c;switch(f){case 0:return 0;case 1:return u[0]-s[0];case 2:return u[0]+u[1]-s[0]-s[1]||o(u[0],u[1])-o(s[0],s[1]);case 3:var d=u[0]+u[1],x=s[0]+s[1];if(c=d+u[2]-(x+s[2]),c)return c;var g=o(u[0],u[1]),w=o(s[0],s[1]);return o(g,u[2])-o(w,s[2])||o(g+u[2],d)-o(w+s[2],x);case 4:var T=u[0],m=u[1],k=u[2],S=u[3],b=s[0],M=s[1],h=s[2],_=s[3];return T+m+k+S-(b+M+h+_)||o(T,m,k,S)-o(b,M,h,_,b)||o(T+m,T+k,T+S,m+k,m+S,k+S)-o(b+M,b+h,b+_,M+h,M+_,h+_)||o(T+m+k,T+m+S,T+k+S,m+k+S)-o(b+M+h,b+M+_,b+h+_,M+h+_);default:for(var y=u.slice().sort(i),v=s.slice().sort(i),A=0;A<f;++A)if(c=y[A]-v[A],c)return c;return 0}}}),3788:(function(a,o,i){"use strict";var l=i(8507),u=i(2419);a.exports=s;function s(f,c){return l(f,c)||u(f)-u(c)}}),7352:(function(a,o,i){"use strict";var l=i(5721),u=i(4750),s=i(2690);a.exports=f;function f(c){var d=c.length;if(d===0)return[];if(d===1)return[[0]];var x=c[0].length;return x===0?[]:x===1?l(c):x===2?u(c):s(c,x)}}),5721:(function(a){"use strict";a.exports=o;function o(i){for(var l=0,u=0,s=1;s<i.length;++s)i[s][0]<i[l][0]&&(l=s),i[s][0]>i[u][0]&&(u=s);return l<u?[[l],[u]]:l>u?[[u],[l]]:[[l]]}}),4750:(function(a,o,i){"use strict";a.exports=u;var l=i(3090);function u(s){var f=l(s),c=f.length;if(c<=2)return[];for(var d=new Array(c),x=f[c-1],g=0;g<c;++g){var w=f[g];d[g]=[x,w],x=w}return d}}),2690:(function(a,o,i){"use strict";a.exports=c;var l=i(8954),u=i(3952);function s(d,x){for(var g=d.length,w=new Array(g),T=0;T<x.length;++T)w[T]=d[x[T]];for(var m=x.length,T=0;T<g;++T)x.indexOf(T)<0&&(w[m++]=d[T]);return w}function f(d,x){for(var g=d.length,w=x.length,T=0;T<g;++T)for(var m=d[T],k=0;k<m.length;++k){var S=m[k];if(S<w)m[k]=x[S];else{S=S-w;for(var b=0;b<w;++b)S>=x[b]&&(S+=1);m[k]=S}}return d}function c(d,x){try{return l(d,!0)}catch(m){var g=u(d);if(g.length<=x)return[];var w=s(d,g),T=l(w,!0);return f(T,g)}}}),4769:(function(a){"use strict";function o(l,u,s,f,c,d){var x=6*c*c-6*c,g=3*c*c-4*c+1,w=-6*c*c+6*c,T=3*c*c-2*c;if(l.length){d||(d=new Array(l.length));for(var m=l.length-1;m>=0;--m)d[m]=x*l[m]+g*u[m]+w*s[m]+T*f[m];return d}return x*l+g*u+w*s[m]+T*f}function i(l,u,s,f,c,d){var x=c-1,g=c*c,w=x*x,T=(1+2*c)*w,m=c*w,k=g*(3-2*c),S=g*x;if(l.length){d||(d=new Array(l.length));for(var b=l.length-1;b>=0;--b)d[b]=T*l[b]+m*u[b]+k*s[b]+S*f[b];return d}return T*l+m*u+k*s+S*f}a.exports=i,a.exports.derivative=o}),7642:(function(a,o,i){"use strict";var l=i(8954),u=i(1682);a.exports=d;function s(x,g){this.point=x,this.index=g}function f(x,g){for(var w=x.point,T=g.point,m=w.length,k=0;k<m;++k){var S=T[k]-w[k];if(S)return S}return 0}function c(x,g,w){if(x===1)return w?[[-1,0]]:[];var T=g.map(function(M,h){return[M[0],h]});T.sort(function(M,h){return M[0]-h[0]});for(var m=new Array(x-1),k=1;k<x;++k){var S=T[k-1],b=T[k];m[k-1]=[S[1],b[1]]}return w&&m.push([-1,m[0][1]],[m[x-1][1],-1]),m}function d(x,g){var w=x.length;if(w===0)return[];var T=x[0].length;if(T<1)return[];if(T===1)return c(w,x,g);for(var m=new Array(w),k=1,S=0;S<w;++S){for(var b=x[S],M=new Array(T+1),h=0,_=0;_<T;++_){var y=b[_];M[_]=y,h+=y*y}M[T]=h,m[S]=new s(M,S),k=Math.max(h,k)}u(m,f),w=m.length;for(var v=new Array(w+T+1),A=new Array(w+T+1),p=(T+1)*(T+1)*k,R=new Array(T+1),S=0;S<=T;++S)R[S]=0;R[T]=p,v[0]=R.slice(),A[0]=-1;for(var S=0;S<=T;++S){var M=R.slice();M[S]=1,v[S+1]=M,A[S+1]=-1}for(var S=0;S<w;++S){var E=m[S];v[S+T+1]=E.point,A[S+T+1]=E.index}var D=l(v,!1);if(g?D=D.filter(function(F){for(var z=0,I=0;I<=T;++I){var L=A[F[I]];if(L<0&&++z>=2)return!1;F[I]=L}return!0}):D=D.filter(function(F){for(var z=0;z<=T;++z){var I=A[F[z]];if(I<0)return!1;F[z]=I}return!0}),T&1)for(var S=0;S<D.length;++S){var E=D[S],M=E[0];E[0]=E[1],E[1]=M}return D}}),2361:(function(a){var o=!1;if(typeof Float64Array!="undefined"){var i=new Float64Array(1),l=new Uint32Array(i.buffer);if(i[0]=1,o=!0,l[1]===1072693248){let k=function(M,h){return l[0]=M,l[1]=h,i[0]},S=function(M){return i[0]=M,l[0]},b=function(M){return i[0]=M,l[1]};var s=k,f=S,c=b;a.exports=function(h){return i[0]=h,[l[0],l[1]]},a.exports.pack=k,a.exports.lo=S,a.exports.hi=b}else if(l[0]===1072693248){let k=function(M,h){return l[1]=M,l[0]=h,i[0]},S=function(M){return i[0]=M,l[1]},b=function(M){return i[0]=M,l[0]};var d=k,x=S,g=b;a.exports=function(h){return i[0]=h,[l[1],l[0]]},a.exports.pack=k,a.exports.lo=S,a.exports.hi=b}else o=!1}if(!o){let k=function(M,h){return u.writeUInt32LE(M,0,!0),u.writeUInt32LE(h,4,!0),u.readDoubleLE(0,!0)},S=function(M){return u.writeDoubleLE(M,0,!0),u.readUInt32LE(0,!0)},b=function(M){return u.writeDoubleLE(M,0,!0),u.readUInt32LE(4,!0)};var w=k,T=S,m=b,u=new Buffer(8);a.exports=function(h){return u.writeDoubleLE(h,0,!0),[u.readUInt32LE(0,!0),u.readUInt32LE(4,!0)]},a.exports.pack=k,a.exports.lo=S,a.exports.hi=b}a.exports.sign=function(k){return a.exports.hi(k)>>>31},a.exports.exponent=function(k){var S=a.exports.hi(k);return(S<<1>>>21)-1023},a.exports.fraction=function(k){var S=a.exports.lo(k),b=a.exports.hi(k),M=b&(1<<20)-1;return b&2146435072&&(M+=1048576),[S,M]},a.exports.denormalized=function(k){var S=a.exports.hi(k);return!(S&2146435072)}}),1338:(function(a){"use strict";function o(u,s,f){var c=u[f]|0;if(c<=0)return[];var d=new Array(c),x;if(f===u.length-1)for(x=0;x<c;++x)d[x]=s;else for(x=0;x<c;++x)d[x]=o(u,s,f+1);return d}function i(u,s){var f,c;for(f=new Array(u),c=0;c<u;++c)f[c]=s;return f}function l(u,s){switch(typeof s=="undefined"&&(s=0),typeof u){case"number":if(u>0)return i(u|0,s);break;case"object":if(typeof u.length=="number")return o(u,s,0);break}return[]}a.exports=l}),3134:(function(a,o,i){"use strict";a.exports=u;var l=i(1682);function u(s,f){var c=s.length;if(typeof f!="number"){f=0;for(var d=0;d<c;++d){var x=s[d];f=Math.max(f,x[0],x[1])}f=(f|0)+1}f=f|0;for(var g=new Array(f),d=0;d<f;++d)g[d]=[];for(var d=0;d<c;++d){var x=s[d];g[x[0]].push(x[1]),g[x[1]].push(x[0])}for(var w=0;w<f;++w)l(g[w],function(T,m){return T-m});return g}}),5033:(function(a){"use strict";a.exports=o;function o(i,l,u){var s=l||0,f=u||1;return[[i[12]+i[0],i[13]+i[1],i[14]+i[2],i[15]+i[3]],[i[12]-i[0],i[13]-i[1],i[14]-i[2],i[15]-i[3]],[i[12]+i[4],i[13]+i[5],i[14]+i[6],i[15]+i[7]],[i[12]-i[4],i[13]-i[5],i[14]-i[6],i[15]-i[7]],[s*i[12]+i[8],s*i[13]+i[9],s*i[14]+i[10],s*i[15]+i[11]],[f*i[12]-i[8],f*i[13]-i[9],f*i[14]-i[10],f*i[15]-i[11]]]}}),9215:(function(a,o,i){"use strict";a.exports=x;var l=i(4769),u=i(2478);function s(g,w,T){return Math.min(w,Math.max(g,T))}function f(g,w,T){this.dimension=g.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var m=0;m<this.dimension;++m)this.bounds[0][m]=-1/0,this.bounds[1][m]=1/0;this._state=g.slice().reverse(),this._velocity=w.slice().reverse(),this._time=[T],this._scratch=[g.slice(),g.slice(),g.slice(),g.slice(),g.slice()]}var c=f.prototype;c.flush=function(g){var w=u.gt(this._time,g)-1;w<=0||(this._time.splice(0,w),this._state.splice(0,w*this.dimension),this._velocity.splice(0,w*this.dimension))},c.curve=function(g){var w=this._time,T=w.length,m=u.le(w,g),k=this._scratch[0],S=this._state,b=this._velocity,M=this.dimension,h=this.bounds;if(m<0)for(var _=M-1,y=0;y<M;++y,--_)k[y]=S[_];else if(m>=T-1)for(var _=S.length-1,v=g-w[T-1],y=0;y<M;++y,--_)k[y]=S[_]+v*b[_];else{for(var _=M*(m+1)-1,A=w[m],p=w[m+1],R=p-A||1,E=this._scratch[1],D=this._scratch[2],F=this._scratch[3],z=this._scratch[4],I=!0,y=0;y<M;++y,--_)E[y]=S[_],F[y]=b[_]*R,D[y]=S[_+M],z[y]=b[_+M]*R,I=I&&E[y]===D[y]&&F[y]===z[y]&&F[y]===0;if(I)for(var y=0;y<M;++y)k[y]=E[y];else l(E,F,D,z,(g-A)/R,k)}for(var L=h[0],P=h[1],y=0;y<M;++y)k[y]=s(L[y],P[y],k[y]);return k},c.dcurve=function(g){var w=this._time,T=w.length,m=u.le(w,g),k=this._scratch[0],S=this._state,b=this._velocity,M=this.dimension;if(m>=T-1)for(var h=S.length-1,_=g-w[T-1],y=0;y<M;++y,--h)k[y]=b[h];else{for(var h=M*(m+1)-1,v=w[m],A=w[m+1],p=A-v||1,R=this._scratch[1],E=this._scratch[2],D=this._scratch[3],F=this._scratch[4],z=!0,y=0;y<M;++y,--h)R[y]=S[h],D[y]=b[h]*p,E[y]=S[h+M],F[y]=b[h+M]*p,z=z&&R[y]===E[y]&&D[y]===F[y]&&D[y]===0;if(z)for(var y=0;y<M;++y)k[y]=0;else{l.derivative(R,D,E,F,(g-v)/p,k);for(var y=0;y<M;++y)k[y]/=p}}return k},c.lastT=function(){var g=this._time;return g[g.length-1]},c.stable=function(){for(var g=this._velocity,w=g.length,T=this.dimension-1;T>=0;--T)if(g[--w])return!1;return!0},c.jump=function(g){var w=this.lastT(),T=this.dimension;if(!(g<w||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,b=this.bounds,M=b[0],h=b[1];this._time.push(w,g);for(var _=0;_<2;++_)for(var y=0;y<T;++y)m.push(m[S++]),k.push(0);this._time.push(g);for(var y=T;y>0;--y)m.push(s(M[y-1],h[y-1],arguments[y])),k.push(0)}},c.push=function(g){var w=this.lastT(),T=this.dimension;if(!(g<w||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,b=g-w,M=this.bounds,h=M[0],_=M[1],y=b>1e-6?1/b:0;this._time.push(g);for(var v=T;v>0;--v){var A=s(h[v-1],_[v-1],arguments[v]);m.push(A),k.push((A-m[S++])*y)}}},c.set=function(g){var w=this.dimension;if(!(g<this.lastT()||arguments.length!==w+1)){var T=this._state,m=this._velocity,k=this.bounds,S=k[0],b=k[1];this._time.push(g);for(var M=w;M>0;--M)T.push(s(S[M-1],b[M-1],arguments[M])),m.push(0)}},c.move=function(g){var w=this.lastT(),T=this.dimension;if(!(g<=w||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,b=this.bounds,M=b[0],h=b[1],_=g-w,y=_>1e-6?1/_:0;this._time.push(g);for(var v=T;v>0;--v){var A=arguments[v];m.push(s(M[v-1],h[v-1],m[S++]+A)),k.push(A*y)}}},c.idle=function(g){var w=this.lastT();if(!(g<w)){var T=this.dimension,m=this._state,k=this._velocity,S=m.length-T,b=this.bounds,M=b[0],h=b[1],_=g-w;this._time.push(g);for(var y=T-1;y>=0;--y)m.push(s(M[y],h[y],m[S]+_*k[S])),k.push(0),S+=1}};function d(g){for(var w=new Array(g),T=0;T<g;++T)w[T]=0;return w}function x(g,w,T){switch(arguments.length){case 0:return new f([0],[0],0);case 1:if(typeof g=="number"){var m=d(g);return new f(m,m,0)}else return new f(g,d(g.length),0);case 2:if(typeof w=="number"){var m=d(g.length);return new f(g,m,+w)}else T=0;case 3:if(g.length!==w.length)throw new Error("state and velocity lengths must match");return new f(g,w,T)}}}),3840:(function(a){"use strict";a.exports=M;var o=0,i=1;function l(h,_,y,v,A,p){this._color=h,this.key=_,this.value=y,this.left=v,this.right=A,this._count=p}function u(h){return new l(h._color,h.key,h.value,h.left,h.right,h._count)}function s(h,_){return new l(h,_.key,_.value,_.left,_.right,_._count)}function f(h){h._count=1+(h.left?h.left._count:0)+(h.right?h.right._count:0)}function c(h,_){this._compare=h,this.root=_}var d=c.prototype;Object.defineProperty(d,"keys",{get:function(){var h=[];return this.forEach(function(_,y){h.push(_)}),h}}),Object.defineProperty(d,"values",{get:function(){var h=[];return this.forEach(function(_,y){h.push(y)}),h}}),Object.defineProperty(d,"length",{get:function(){return this.root?this.root._count:0}}),d.insert=function(h,_){for(var y=this._compare,v=this.root,A=[],p=[];v;){var R=y(h,v.key);A.push(v),p.push(R),R<=0?v=v.left:v=v.right}A.push(new l(o,h,_,null,null,1));for(var E=A.length-2;E>=0;--E){var v=A[E];p[E]<=0?A[E]=new l(v._color,v.key,v.value,A[E+1],v.right,v._count+1):A[E]=new l(v._color,v.key,v.value,v.left,A[E+1],v._count+1)}for(var E=A.length-1;E>1;--E){var D=A[E-1],v=A[E];if(D._color===i||v._color===i)break;var F=A[E-2];if(F.left===D)if(D.left===v){var z=F.right;if(z&&z._color===o)D._color=i,F.right=s(i,z),F._color=o,E-=1;else{if(F._color=o,F.left=D.right,D._color=i,D.right=F,A[E-2]=D,A[E-1]=v,f(F),f(D),E>=3){var I=A[E-3];I.left===F?I.left=D:I.right=D}break}}else{var z=F.right;if(z&&z._color===o)D._color=i,F.right=s(i,z),F._color=o,E-=1;else{if(D.right=v.left,F._color=o,F.left=v.right,v._color=i,v.left=D,v.right=F,A[E-2]=v,A[E-1]=D,f(F),f(D),f(v),E>=3){var I=A[E-3];I.left===F?I.left=v:I.right=v}break}}else if(D.right===v){var z=F.left;if(z&&z._color===o)D._color=i,F.left=s(i,z),F._color=o,E-=1;else{if(F._color=o,F.right=D.left,D._color=i,D.left=F,A[E-2]=D,A[E-1]=v,f(F),f(D),E>=3){var I=A[E-3];I.right===F?I.right=D:I.left=D}break}}else{var z=F.left;if(z&&z._color===o)D._color=i,F.left=s(i,z),F._color=o,E-=1;else{if(D.left=v.right,F._color=o,F.right=v.left,v._color=i,v.right=D,v.left=F,A[E-2]=v,A[E-1]=D,f(F),f(D),f(v),E>=3){var I=A[E-3];I.right===F?I.right=v:I.left=v}break}}}return A[0]._color=i,new c(y,A[0])};function x(h,_){if(_.left){var y=x(h,_.left);if(y)return y}var y=h(_.key,_.value);if(y)return y;if(_.right)return x(h,_.right)}function g(h,_,y,v){var A=_(h,v.key);if(A<=0){if(v.left){var p=g(h,_,y,v.left);if(p)return p}var p=y(v.key,v.value);if(p)return p}if(v.right)return g(h,_,y,v.right)}function w(h,_,y,v,A){var p=y(h,A.key),R=y(_,A.key),E;if(p<=0&&(A.left&&(E=w(h,_,y,v,A.left),E)||R>0&&(E=v(A.key,A.value),E)))return E;if(R>0&&A.right)return w(h,_,y,v,A.right)}d.forEach=function(_,y,v){if(this.root)switch(arguments.length){case 1:return x(_,this.root);case 2:return g(y,this._compare,_,this.root);case 3:return this._compare(y,v)>=0?void 0:w(y,v,this._compare,_,this.root)}},Object.defineProperty(d,"begin",{get:function(){for(var h=[],_=this.root;_;)h.push(_),_=_.left;return new T(this,h)}}),Object.defineProperty(d,"end",{get:function(){for(var h=[],_=this.root;_;)h.push(_),_=_.right;return new T(this,h)}}),d.at=function(h){if(h<0)return new T(this,[]);for(var _=this.root,y=[];;){if(y.push(_),_.left){if(h<_.left._count){_=_.left;continue}h-=_.left._count}if(!h)return new T(this,y);if(h-=1,_.right){if(h>=_.right._count)break;_=_.right}else break}return new T(this,[])},d.ge=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var p=_(h,y.key);v.push(y),p<=0&&(A=v.length),p<=0?y=y.left:y=y.right}return v.length=A,new T(this,v)},d.gt=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var p=_(h,y.key);v.push(y),p<0&&(A=v.length),p<0?y=y.left:y=y.right}return v.length=A,new T(this,v)},d.lt=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var p=_(h,y.key);v.push(y),p>0&&(A=v.length),p<=0?y=y.left:y=y.right}return v.length=A,new T(this,v)},d.le=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var p=_(h,y.key);v.push(y),p>=0&&(A=v.length),p<0?y=y.left:y=y.right}return v.length=A,new T(this,v)},d.find=function(h){for(var _=this._compare,y=this.root,v=[];y;){var A=_(h,y.key);if(v.push(y),A===0)return new T(this,v);A<=0?y=y.left:y=y.right}return new T(this,[])},d.remove=function(h){var _=this.find(h);return _?_.remove():this},d.get=function(h){for(var _=this._compare,y=this.root;y;){var v=_(h,y.key);if(v===0)return y.value;v<=0?y=y.left:y=y.right}};function T(h,_){this.tree=h,this._stack=_}var m=T.prototype;Object.defineProperty(m,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(m,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),m.clone=function(){return new T(this.tree,this._stack.slice())};function k(h,_){h.key=_.key,h.value=_.value,h.left=_.left,h.right=_.right,h._color=_._color,h._count=_._count}function S(h){for(var _,y,v,A,p=h.length-1;p>=0;--p){if(_=h[p],p===0){_._color=i;return}if(y=h[p-1],y.left===_){if(v=y.right,v.right&&v.right._color===o){if(v=y.right=u(v),A=v.right=u(v.right),y.right=v.left,v.left=y,v.right=A,v._color=y._color,_._color=i,y._color=i,A._color=i,f(y),f(v),p>1){var R=h[p-2];R.left===y?R.left=v:R.right=v}h[p-1]=v;return}else if(v.left&&v.left._color===o){if(v=y.right=u(v),A=v.left=u(v.left),y.right=A.left,v.left=A.right,A.left=y,A.right=v,A._color=y._color,y._color=i,v._color=i,_._color=i,f(y),f(v),f(A),p>1){var R=h[p-2];R.left===y?R.left=A:R.right=A}h[p-1]=A;return}if(v._color===i)if(y._color===o){y._color=i,y.right=s(o,v);return}else{y.right=s(o,v);continue}else{if(v=u(v),y.right=v.left,v.left=y,v._color=y._color,y._color=o,f(y),f(v),p>1){var R=h[p-2];R.left===y?R.left=v:R.right=v}h[p-1]=v,h[p]=y,p+1<h.length?h[p+1]=_:h.push(_),p=p+2}}else{if(v=y.left,v.left&&v.left._color===o){if(v=y.left=u(v),A=v.left=u(v.left),y.left=v.right,v.right=y,v.left=A,v._color=y._color,_._color=i,y._color=i,A._color=i,f(y),f(v),p>1){var R=h[p-2];R.right===y?R.right=v:R.left=v}h[p-1]=v;return}else if(v.right&&v.right._color===o){if(v=y.left=u(v),A=v.right=u(v.right),y.left=A.right,v.right=A.left,A.right=y,A.left=v,A._color=y._color,y._color=i,v._color=i,_._color=i,f(y),f(v),f(A),p>1){var R=h[p-2];R.right===y?R.right=A:R.left=A}h[p-1]=A;return}if(v._color===i)if(y._color===o){y._color=i,y.left=s(o,v);return}else{y.left=s(o,v);continue}else{if(v=u(v),y.left=v.right,v.right=y,v._color=y._color,y._color=o,f(y),f(v),p>1){var R=h[p-2];R.right===y?R.right=v:R.left=v}h[p-1]=v,h[p]=y,p+1<h.length?h[p+1]=_:h.push(_),p=p+2}}}}m.remove=function(){var h=this._stack;if(h.length===0)return this.tree;var _=new Array(h.length),y=h[h.length-1];_[_.length-1]=new l(y._color,y.key,y.value,y.left,y.right,y._count);for(var v=h.length-2;v>=0;--v){var y=h[v];y.left===h[v+1]?_[v]=new l(y._color,y.key,y.value,_[v+1],y.right,y._count):_[v]=new l(y._color,y.key,y.value,y.left,_[v+1],y._count)}if(y=_[_.length-1],y.left&&y.right){var A=_.length;for(y=y.left;y.right;)_.push(y),y=y.right;var p=_[A-1];_.push(new l(y._color,p.key,p.value,y.left,y.right,y._count)),_[A-1].key=y.key,_[A-1].value=y.value;for(var v=_.length-2;v>=A;--v)y=_[v],_[v]=new l(y._color,y.key,y.value,y.left,_[v+1],y._count);_[A-1].left=_[A]}if(y=_[_.length-1],y._color===o){var R=_[_.length-2];R.left===y?R.left=null:R.right===y&&(R.right=null),_.pop();for(var v=0;v<_.length;++v)_[v]._count--;return new c(this.tree._compare,_[0])}else if(y.left||y.right){y.left?k(y,y.left):y.right&&k(y,y.right),y._color=i;for(var v=0;v<_.length-1;++v)_[v]._count--;return new c(this.tree._compare,_[0])}else{if(_.length===1)return new c(this.tree._compare,null);for(var v=0;v<_.length;++v)_[v]._count--;var E=_[_.length-2];S(_),E.left===y?E.left=null:E.right=null}return new c(this.tree._compare,_[0])},Object.defineProperty(m,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(m,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(m,"index",{get:function(){var h=0,_=this._stack;if(_.length===0){var y=this.tree.root;return y?y._count:0}else _[_.length-1].left&&(h=_[_.length-1].left._count);for(var v=_.length-2;v>=0;--v)_[v+1]===_[v].right&&(++h,_[v].left&&(h+=_[v].left._count));return h},enumerable:!0}),m.next=function(){var h=this._stack;if(h.length!==0){var _=h[h.length-1];if(_.right)for(_=_.right;_;)h.push(_),_=_.left;else for(h.pop();h.length>0&&h[h.length-1].right===_;)_=h[h.length-1],h.pop()}},Object.defineProperty(m,"hasNext",{get:function(){var h=this._stack;if(h.length===0)return!1;if(h[h.length-1].right)return!0;for(var _=h.length-1;_>0;--_)if(h[_-1].left===h[_])return!0;return!1}}),m.update=function(h){var _=this._stack;if(_.length===0)throw new Error("Can't update empty node!");var y=new Array(_.length),v=_[_.length-1];y[y.length-1]=new l(v._color,v.key,h,v.left,v.right,v._count);for(var A=_.length-2;A>=0;--A)v=_[A],v.left===_[A+1]?y[A]=new l(v._color,v.key,v.value,y[A+1],v.right,v._count):y[A]=new l(v._color,v.key,v.value,v.left,y[A+1],v._count);return new c(this.tree._compare,y[0])},m.prev=function(){var h=this._stack;if(h.length!==0){var _=h[h.length-1];if(_.left)for(_=_.left;_;)h.push(_),_=_.right;else for(h.pop();h.length>0&&h[h.length-1].left===_;)_=h[h.length-1],h.pop()}},Object.defineProperty(m,"hasPrev",{get:function(){var h=this._stack;if(h.length===0)return!1;if(h[h.length-1].left)return!0;for(var _=h.length-1;_>0;--_)if(h[_-1].right===h[_])return!0;return!1}});function b(h,_){return h<_?-1:h>_?1:0}function M(h){return new c(h||b,null)}}),3837:(function(a,o,i){"use strict";a.exports=E;var l=i(4935),u=i(501),s=i(5304),f=i(6429),c=i(6444),d=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),x=ArrayBuffer,g=DataView;function w(D){return x.isView(D)&&!(D instanceof g)}function T(D){return Array.isArray(D)||w(D)}function m(D,F){return D[0]=F[0],D[1]=F[1],D[2]=F[2],D}function k(D){this.gl=D,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=s(D)}var S=k.prototype;S.update=function(D){D=D||{};function F(Z,ie,Q){if(Q in D){var re=D[Q],se=this[Q],ee;(Z?T(re)&&T(re[0]):T(re))?this[Q]=ee=[ie(re[0]),ie(re[1]),ie(re[2])]:this[Q]=ee=[ie(re),ie(re),ie(re)];for(var ae=0;ae<3;++ae)if(ee[ae]!==se[ae])return!0}return!1}var z=F.bind(this,!1,Number),I=F.bind(this,!1,Boolean),L=F.bind(this,!1,String),P=F.bind(this,!0,function(Z){if(T(Z)){if(Z.length===3)return[+Z[0],+Z[1],+Z[2],1];if(Z.length===4)return[+Z[0],+Z[1],+Z[2],+Z[3]]}return[0,0,0,1]}),O,U=!1,V=!1;if("bounds"in D)for(var K=D.bounds,j=0;j<2;++j)for(var G=0;G<3;++G)K[j][G]!==this.bounds[j][G]&&(V=!0),this.bounds[j][G]=K[j][G];if("ticks"in D){O=D.ticks,U=!0,this.autoTicks=!1;for(var j=0;j<3;++j)this.tickSpacing[j]=0}else z("tickSpacing")&&(this.autoTicks=!0,V=!0);if(this._firstInit&&("ticks"in D||"tickSpacing"in D||(this.autoTicks=!0),V=!0,U=!0,this._firstInit=!1),V&&this.autoTicks&&(O=c.create(this.bounds,this.tickSpacing),U=!0),U){for(var j=0;j<3;++j)O[j].sort(function(ie,Q){return ie.x-Q.x});c.equal(O,this.ticks)?U=!1:this.ticks=O}I("tickEnable"),L("tickFont")&&(U=!0),L("tickFontStyle")&&(U=!0),L("tickFontWeight")&&(U=!0),L("tickFontVariant")&&(U=!0),z("tickSize"),z("tickAngle"),z("tickPad"),P("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),I("labelEnable"),z("labelSize"),z("labelPad"),P("labelColor"),I("lineEnable"),I("lineMirror"),z("lineWidth"),P("lineColor"),I("lineTickEnable"),I("lineTickMirror"),z("lineTickLength"),z("lineTickWidth"),P("lineTickColor"),I("gridEnable"),z("gridWidth"),P("gridColor"),I("zeroEnable"),P("zeroLineColor"),z("zeroLineWidth"),I("backgroundEnable"),P("backgroundColor");var J=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],te=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||U)&&this._text.update(this.bounds,this.labels,J,this.ticks,te):this._text=l(this.gl,this.bounds,this.labels,J,this.ticks,te),this._lines&&U&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function b(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var M=[new b,new b,new b];function h(D,F,z,I,L){for(var P=D.primalOffset,O=D.primalMinor,U=D.mirrorOffset,V=D.mirrorMinor,K=I[F],j=0;j<3;++j)if(F!==j){var G=P,q=U,J=O,te=V;K&1<<j&&(G=U,q=P,J=V,te=O),G[j]=z[0][j],q[j]=z[1][j],L[j]>0?(J[j]=-1,te[j]=0):(J[j]=0,te[j]=1)}}var _=[0,0,0],y={model:d,view:d,projection:d,_ortho:!1};S.isOpaque=function(){return!0},S.isTransparent=function(){return!1},S.drawTransparent=function(D){};var v=0,A=[0,0,0],p=[0,0,0],R=[0,0,0];S.draw=function(D){D=D||y;for(var Q=this.gl,F=D.model||d,z=D.view||d,I=D.projection||d,L=this.bounds,P=D._ortho||!1,O=f(F,z,I,L,P),U=O.cubeEdges,V=O.axis,K=z[12],j=z[13],G=z[14],q=z[15],J=P?2:1,te=J*this.pixelRatio*(I[3]*K+I[7]*j+I[11]*G+I[15]*q)/Q.drawingBufferHeight,Z=0;Z<3;++Z)this.lastCubeProps.cubeEdges[Z]=U[Z],this.lastCubeProps.axis[Z]=V[Z];for(var ie=M,Z=0;Z<3;++Z)h(M[Z],Z,this.bounds,U,V);for(var Q=this.gl,re=_,Z=0;Z<3;++Z)this.backgroundEnable[Z]?re[Z]=V[Z]:re[Z]=0;this._background.draw(F,z,I,L,re,this.backgroundColor),this._lines.bind(F,z,I,this);for(var Z=0;Z<3;++Z){var se=[0,0,0];V[Z]>0?se[Z]=L[1][Z]:se[Z]=L[0][Z];for(var ee=0;ee<2;++ee){var ae=(Z+1+ee)%3,ce=(Z+1+(ee^1))%3;this.gridEnable[ae]&&this._lines.drawGrid(ae,ce,this.bounds,se,this.gridColor[ae],this.gridWidth[ae]*this.pixelRatio)}for(var ee=0;ee<2;++ee){var ae=(Z+1+ee)%3,ce=(Z+1+(ee^1))%3;this.zeroEnable[ce]&&Math.min(L[0][ce],L[1][ce])<=0&&Math.max(L[0][ce],L[1][ce])>=0&&this._lines.drawZero(ae,ce,this.bounds,se,this.zeroLineColor[ce],this.zeroLineWidth[ce]*this.pixelRatio)}}for(var Z=0;Z<3;++Z){this.lineEnable[Z]&&this._lines.drawAxisLine(Z,this.bounds,ie[Z].primalOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio),this.lineMirror[Z]&&this._lines.drawAxisLine(Z,this.bounds,ie[Z].mirrorOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio);for(var Me=m(A,ie[Z].primalMinor),ke=m(p,ie[Z].mirrorMinor),Se=this.lineTickLength,ee=0;ee<3;++ee){var ge=te/F[5*ee];Me[ee]*=Se[ee]*ge,ke[ee]*=Se[ee]*ge}this.lineTickEnable[Z]&&this._lines.drawAxisTicks(Z,ie[Z].primalOffset,Me,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio),this.lineTickMirror[Z]&&this._lines.drawAxisTicks(Z,ie[Z].mirrorOffset,ke,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio)}this._lines.unbind(),this._text.bind(F,z,I,this.pixelRatio);var Le,Ee=.5,le,Y;function $(be){Y=[0,0,0],Y[be]=1}function pe(be,ye,de){var _e=(be+1)%3,Ae=(be+2)%3,Ie=ye[_e],Pe=ye[Ae],Ye=de[_e],qe=de[Ae];if(Ie>0&&qe>0){$(_e);return}else if(Ie>0&&qe<0){$(_e);return}else if(Ie<0&&qe>0){$(_e);return}else if(Ie<0&&qe<0){$(_e);return}else if(Pe>0&&Ye>0){$(Ae);return}else if(Pe>0&&Ye<0){$(Ae);return}else if(Pe<0&&Ye>0){$(Ae);return}else if(Pe<0&&Ye<0){$(Ae);return}}for(var Z=0;Z<3;++Z){for(var oe=ie[Z].primalMinor,ve=ie[Z].mirrorMinor,he=m(R,ie[Z].primalOffset),ee=0;ee<3;++ee)this.lineTickEnable[Z]&&(he[ee]+=te*oe[ee]*Math.max(this.lineTickLength[ee],0)/F[5*ee]);var me=[0,0,0];if(me[Z]=1,this.tickEnable[Z]){this.tickAngle[Z]===-3600?(this.tickAngle[Z]=0,this.tickAlign[Z]="auto"):this.tickAlign[Z]=-1,le=1,Le=[this.tickAlign[Z],Ee,le],Le[0]==="auto"?Le[0]=v:Le[0]=parseInt(""+Le[0]),Y=[0,0,0],pe(Z,oe,ve);for(var ee=0;ee<3;++ee)he[ee]+=te*oe[ee]*this.tickPad[ee]/F[5*ee];this._text.drawTicks(Z,this.tickSize[Z],this.tickAngle[Z],he,this.tickColor[Z],me,Y,Le)}if(this.labelEnable[Z]){le=0,Y=[0,0,0],this.labels[Z].length>4&&($(Z),le=1),Le=[this.labelAlign[Z],Ee,le],Le[0]==="auto"?Le[0]=v:Le[0]=parseInt(""+Le[0]);for(var ee=0;ee<3;++ee)he[ee]+=te*oe[ee]*this.labelPad[ee]/F[5*ee];he[Z]+=.5*(L[0][Z]+L[1][Z]),this._text.drawLabel(Z,this.labelSize[Z],this.labelAngle[Z],he,this.labelColor[Z],[0,0,0],Y,Le)}}this._text.unbind()},S.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function E(D,F){var z=new k(D);return z.update(F),z}}),5304:(function(a,o,i){"use strict";a.exports=d;var l=i(2762),u=i(8116),s=i(1879).bg;function f(x,g,w,T){this.gl=x,this.buffer=g,this.vao=w,this.shader=T}var c=f.prototype;c.draw=function(x,g,w,T,m,k){for(var S=!1,b=0;b<3;++b)S=S||m[b];if(S){var M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:x,view:g,projection:w,bounds:T,enable:m,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),M.disable(M.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function d(x){for(var g=[],w=[],T=0,m=0;m<3;++m)for(var k=(m+1)%3,S=(m+2)%3,b=[0,0,0],M=[0,0,0],h=-1;h<=1;h+=2){w.push(T,T+2,T+1,T+1,T+2,T+3),b[m]=h,M[m]=h;for(var _=-1;_<=1;_+=2){b[k]=_;for(var y=-1;y<=1;y+=2)b[S]=y,g.push(b[0],b[1],b[2],M[0],M[1],M[2]),T+=1}var v=k;k=S,S=v}var A=l(x,new Float32Array(g)),p=l(x,new Uint16Array(w),x.ELEMENT_ARRAY_BUFFER),R=u(x,[{buffer:A,type:x.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:x.FLOAT,size:3,offset:12,stride:24}],p),E=s(x);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(x,A,R,E)}}),6429:(function(a,o,i){"use strict";a.exports=h;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),c=new Array(16),d=new Array(8),x=new Array(8),g=new Array(3),w=[0,0,0];(function(){for(var _=0;_<8;++_)d[_]=[1,1,1,1],x[_]=[1,1,1]})();function T(_,y,v){for(var A=0;A<4;++A){_[A]=v[12+A];for(var p=0;p<3;++p)_[A]+=y[p]*v[4*p+A]}}var m=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(_){for(var y=0;y<m.length;++y)if(_=s.positive(_,m[y]),_.length<3)return 0;for(var v=_[0],A=v[0]/v[3],p=v[1]/v[3],R=0,y=1;y+1<_.length;++y){var E=_[y],D=_[y+1],F=E[0]/E[3],z=E[1]/E[3],I=D[0]/D[3],L=D[1]/D[3],P=F-A,O=z-p,U=I-A,V=L-p;R+=Math.abs(P*V-O*U)}return R}var S=[1,1,1],b=[0,0,0],M={cubeEdges:S,axis:b};function h(_,y,v,A,p){u(c,y,_),u(c,v,c);for(var R=0,E=0;E<2;++E){g[2]=A[E][2];for(var D=0;D<2;++D){g[1]=A[D][1];for(var F=0;F<2;++F)g[0]=A[F][0],T(d[R],g,c),R+=1}}for(var z=-1,E=0;E<8;++E){for(var I=d[E][3],L=0;L<3;++L)x[E][L]=d[E][L]/I;p&&(x[E][2]*=-1),I<0&&(z<0||x[E][2]<x[z][2])&&(z=E)}if(z<0){z=0;for(var P=0;P<3;++P){for(var O=(P+2)%3,U=(P+1)%3,V=-1,K=-1,j=0;j<2;++j){var G=j<<P,q=G+(j<<O)+(1-j<<U),J=G+(1-j<<O)+(j<<U);f(x[G],x[q],x[J],w)<0||(j?V=1:K=1)}if(V<0||K<0){K>V&&(z|=1<<P);continue}for(var j=0;j<2;++j){var G=j<<P,q=G+(j<<O)+(1-j<<U),J=G+(1-j<<O)+(j<<U),te=k([d[G],d[q],d[J],d[G+(1<<O)+(1<<U)]]);j?V=te:K=te}if(K>V){z|=1<<P;continue}}}for(var Z=7^z,ie=-1,E=0;E<8;++E)E===z||E===Z||(ie<0||x[ie][1]>x[E][1])&&(ie=E);for(var Q=-1,E=0;E<3;++E){var re=ie^1<<E;if(!(re===z||re===Z)){Q<0&&(Q=re);var U=x[re];U[0]<x[Q][0]&&(Q=re)}}for(var se=-1,E=0;E<3;++E){var re=ie^1<<E;if(!(re===z||re===Z||re===Q)){se<0&&(se=re);var U=x[re];U[0]>x[se][0]&&(se=re)}}var ee=S;ee[0]=ee[1]=ee[2]=0,ee[l.log2(Q^ie)]=ie&Q,ee[l.log2(ie^se)]=ie&se;var ae=se^7;ae===z||ae===Z?(ae=Q^7,ee[l.log2(se^ae)]=ae&se):ee[l.log2(Q^ae)]=ae&Q;for(var ce=b,Me=z,P=0;P<3;++P)Me&1<<P?ce[P]=-1:ce[P]=1;return M}}),501:(function(a,o,i){"use strict";a.exports=S;var l=i(2762),u=i(8116),s=i(1879).n,f=[0,0,0],c=[0,0,0],d=[0,0,0],x=[0,0,0],g=[1,1];function w(b){return b[0]=b[1]=b[2]=0,b}function T(b,M){return b[0]=M[0],b[1]=M[1],b[2]=M[2],b}function m(b,M,h,_,y,v,A,p){this.gl=b,this.vertBuffer=M,this.vao=h,this.shader=_,this.tickCount=y,this.tickOffset=v,this.gridCount=A,this.gridOffset=p}var k=m.prototype;k.bind=function(b,M,h){this.shader.bind(),this.shader.uniforms.model=b,this.shader.uniforms.view=M,this.shader.uniforms.projection=h,g[0]=this.gl.drawingBufferWidth,g[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=g,this.vao.bind()},k.unbind=function(){this.vao.unbind()},k.drawAxisLine=function(b,M,h,_,y){var v=w(c);this.shader.uniforms.majorAxis=c,v[b]=M[1][b]-M[0][b],this.shader.uniforms.minorAxis=v;var A=T(x,h);A[b]+=M[0][b],this.shader.uniforms.offset=A,this.shader.uniforms.lineWidth=y,this.shader.uniforms.color=_;var p=w(d);p[(b+2)%3]=1,this.shader.uniforms.screenAxis=p,this.vao.draw(this.gl.TRIANGLES,6);var p=w(d);p[(b+1)%3]=1,this.shader.uniforms.screenAxis=p,this.vao.draw(this.gl.TRIANGLES,6)},k.drawAxisTicks=function(b,M,h,_,y){if(this.tickCount[b]){var v=w(f);v[b]=1,this.shader.uniforms.majorAxis=v,this.shader.uniforms.offset=M,this.shader.uniforms.minorAxis=h,this.shader.uniforms.color=_,this.shader.uniforms.lineWidth=y;var A=w(d);A[b]=1,this.shader.uniforms.screenAxis=A,this.vao.draw(this.gl.TRIANGLES,this.tickCount[b],this.tickOffset[b])}},k.drawGrid=function(b,M,h,_,y,v){if(this.gridCount[b]){var A=w(c);A[M]=h[1][M]-h[0][M],this.shader.uniforms.minorAxis=A;var p=T(x,_);p[M]+=h[0][M],this.shader.uniforms.offset=p;var R=w(f);R[b]=1,this.shader.uniforms.majorAxis=R;var E=w(d);E[b]=1,this.shader.uniforms.screenAxis=E,this.shader.uniforms.lineWidth=v,this.shader.uniforms.color=y,this.vao.draw(this.gl.TRIANGLES,this.gridCount[b],this.gridOffset[b])}},k.drawZero=function(b,M,h,_,y,v){var A=w(c);this.shader.uniforms.majorAxis=A,A[b]=h[1][b]-h[0][b],this.shader.uniforms.minorAxis=A;var p=T(x,_);p[b]+=h[0][b],this.shader.uniforms.offset=p;var R=w(d);R[M]=1,this.shader.uniforms.screenAxis=R,this.shader.uniforms.lineWidth=v,this.shader.uniforms.color=y,this.vao.draw(this.gl.TRIANGLES,6)},k.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()};function S(b,M,h){var _=[],y=[0,0,0],v=[0,0,0],A=[0,0,0],p=[0,0,0];_.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var R=0;R<3;++R){for(var F=_.length/3|0,E=0;E<h[R].length;++E){var D=+h[R][E].x;_.push(D,0,1,D,1,1,D,0,-1,D,0,-1,D,1,1,D,1,-1)}var I=_.length/3|0;y[R]=F,v[R]=I-F;for(var F=_.length/3|0,z=0;z<h[R].length;++z){var D=+h[R][z].x;_.push(D,0,1,D,1,1,D,0,-1,D,0,-1,D,1,1,D,1,-1)}var I=_.length/3|0;A[R]=F,p[R]=I-F}var L=l(b,new Float32Array(_)),P=u(b,[{buffer:L,type:b.FLOAT,size:3,stride:0,offset:0}]),O=s(b);return O.attributes.position.location=0,new m(b,L,P,O,v,y,p,A)}}),1879:(function(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision highp float;
#define GLSLIFY 1
attribute vec3 position;
uniform mat4 model, view, projection;
uniform vec3 offset, majorAxis, minorAxis, screenAxis;
uniform float lineWidth;
uniform vec2 screenShape;
vec3 project(vec3 p) {
vec4 pp = projection * (view * (model * vec4(p, 1.0)));
return pp.xyz / max(pp.w, 0.0001);
}
void main() {
vec3 major = position.x * majorAxis;
vec3 minor = position.y * minorAxis;
vec3 vPosition = major + minor + offset;
vec3 pPosition = project(vPosition);
vec3 offset = project(vPosition + screenAxis * position.z);
vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;
gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);
}
`]),f=l([`precision highp float;
#define GLSLIFY 1
uniform vec4 color;
void main() {
gl_FragColor = color;
}`]);o.n=function(w){return u(w,s,f,null,[{name:"position",type:"vec3"}])};var c=l([`precision highp float;
#define GLSLIFY 1
attribute vec3 position;
uniform mat4 model, view, projection;
uniform vec3 offset, axis, alignDir, alignOpt;
uniform float scale, angle, pixelScale;
uniform vec2 resolution;
vec3 project(vec3 p) {
vec4 pp = projection * (view * (model * vec4(p, 1.0)));
return pp.xyz / max(pp.w, 0.0001);
}
float computeViewAngle(vec3 a, vec3 b) {
vec3 A = project(a);
vec3 B = project(b);
return atan(
(B.y - A.y) * resolution.y,
(B.x - A.x) * resolution.x
);
}
const float PI = 3.141592;
const float TWO_PI = 2.0 * PI;
const float HALF_PI = 0.5 * PI;
const float ONE_AND_HALF_PI = 1.5 * PI;
int option = int(floor(alignOpt.x + 0.001));
float hv_ratio = alignOpt.y;
bool enableAlign = (alignOpt.z != 0.0);
float mod_angle(float a) {
return mod(a, PI);
}
float positive_angle(float a) {
return mod_angle((a < 0.0) ?
a + TWO_PI :
a
);
}
float look_upwards(float a) {
float b = positive_angle(a);
return ((b > HALF_PI) && (b <= ONE_AND_HALF_PI)) ?
b - PI :
b;
}
float look_horizontal_or_vertical(float a, float ratio) {
// ratio controls the ratio between being horizontal to (vertical + horizontal)
// if ratio is set to 0.5 then it is 50%, 50%.
// when using a higher ratio e.g. 0.75 the result would
// likely be more horizontal than vertical.
float b = positive_angle(a);
return
(b < ( ratio) * HALF_PI) ? 0.0 :
(b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :
(b < (2.0 + ratio) * HALF_PI) ? 0.0 :
(b < (4.0 - ratio) * HALF_PI) ? HALF_PI :
0.0;
}
float roundTo(float a, float b) {
return float(b * floor((a + 0.5 * b) / b));
}
float look_round_n_directions(float a, int n) {
float b = positive_angle(a);
float div = TWO_PI / float(n);
float c = roundTo(b, div);
return look_upwards(c);
}
float applyAlignOption(float rawAngle, float delta) {
return
(option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions
(option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical
(option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis
(option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards
(option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal
rawAngle; // otherwise return back raw input angle
}
bool isAxisTitle = (axis.x == 0.0) &&
(axis.y == 0.0) &&
(axis.z == 0.0);
void main() {
//Compute world offset
float axisDistance = position.z;
vec3 dataPosition = axisDistance * axis + offset;
float beta = angle; // i.e. user defined attributes for each tick
float axisAngle;
float clipAngle;
float flip;
if (enableAlign) {
axisAngle = (isAxisTitle) ? HALF_PI :
computeViewAngle(dataPosition, dataPosition + axis);
clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);
axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;
clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;
flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),
vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;
beta += applyAlignOption(clipAngle, flip * PI);
}
//Compute plane offset
vec2 planeCoord = position.xy * pixelScale;
mat2 planeXform = scale * mat2(
cos(beta), sin(beta),
-sin(beta), cos(beta)
);
vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;
//Compute clip position
vec3 clipPosition = project(dataPosition);
//Apply text offset in clip coordinates
clipPosition += vec3(viewOffset, 0.0);
//Done
gl_Position = vec4(clipPosition, 1.0);
}
`]),d=l([`precision highp float;
#define GLSLIFY 1
uniform vec4 color;
void main() {
gl_FragColor = color;
}`]);o.Q=function(w){return u(w,c,d,null,[{name:"position",type:"vec3"}])};var x=l([`precision highp float;
#define GLSLIFY 1
attribute vec3 position;
attribute vec3 normal;
uniform mat4 model, view, projection;
uniform vec3 enable;
uniform vec3 bounds[2];
varying vec3 colorChannel;
void main() {
vec3 signAxis = sign(bounds[1] - bounds[0]);
vec3 realNormal = signAxis * normal;
if(dot(realNormal, enable) > 0.0) {
vec3 minRange = min(bounds[0], bounds[1]);
vec3 maxRange = max(bounds[0], bounds[1]);
vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));
gl_Position = projection * (view * (model * vec4(nPosition, 1.0)));
} else {
gl_Position = vec4(0,0,0,0);
}
colorChannel = abs(realNormal);
}
`]),g=l([`precision highp float;
#define GLSLIFY 1
uniform vec4 colors[3];
varying vec3 colorChannel;
void main() {
gl_FragColor = colorChannel.x * colors[0] +
colorChannel.y * colors[1] +
colorChannel.z * colors[2];
}`]);o.bg=function(w){return u(w,x,g,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}}),4935:(function(a,o,i){"use strict";a.exports=k;var l=i(2762),u=i(8116),s=i(4359),f=i(1879).Q,c=window||process.global||{},d=c.__TEXT_CACHE||{};c.__TEXT_CACHE={};var x=3;function g(S,b,M,h){this.gl=S,this.shader=b,this.buffer=M,this.vao=h,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var w=g.prototype,T=[0,0];w.bind=function(S,b,M,h){this.vao.bind(),this.shader.bind();var _=this.shader.uniforms;_.model=S,_.view=b,_.projection=M,_.pixelScale=h,T[0]=this.gl.drawingBufferWidth,T[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=T},w.unbind=function(){this.vao.unbind()},w.update=function(S,b,M,h,_){var y=[];function v(P,O,U,V,K,j){var G=[U.style,U.weight,U.variant,U.family].join("_"),q=d[G];q||(q=d[G]={});var J=q[O];J||(J=q[O]=m(O,{triangles:!0,font:U.family,fontStyle:U.style,fontWeight:U.weight,fontVariant:U.variant,textAlign:"center",textBaseline:"middle",lineSpacing:K,styletags:j}));for(var te=(V||12)/12,Z=J.positions,ie=J.cells,Q=0,re=ie.length;Q<re;++Q)for(var se=ie[Q],ee=2;ee>=0;--ee){var ae=Z[se[ee]];y.push(te*ae[0],-te*ae[1],P)}}for(var A=[0,0,0],p=[0,0,0],R=[0,0,0],E=[0,0,0],D=1.25,F={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},z=0;z<3;++z){R[z]=y.length/x|0,v(.5*(S[0][z]+S[1][z]),b[z],M[z],12,D,F),E[z]=(y.length/x|0)-R[z],A[z]=y.length/x|0;for(var I=0;I<h[z].length;++I)if(h[z][I].text){var L={family:h[z][I].font||_[z].family,style:_[z].fontStyle||_[z].style,weight:_[z].fontWeight||_[z].weight,variant:_[z].fontVariant||_[z].variant};v(h[z][I].x,h[z][I].text,L,h[z][I].fontSize||12,D,F)}p[z]=(y.length/x|0)-A[z]}this.buffer.update(y),this.tickOffset=A,this.tickCount=p,this.labelOffset=R,this.labelCount=E},w.drawTicks=function(S,b,M,h,_,y,v,A){this.tickCount[S]&&(this.shader.uniforms.axis=y,this.shader.uniforms.color=_,this.shader.uniforms.angle=M,this.shader.uniforms.scale=b,this.shader.uniforms.offset=h,this.shader.uniforms.alignDir=v,this.shader.uniforms.alignOpt=A,this.vao.draw(this.gl.TRIANGLES,this.tickCount[S],this.tickOffset[S]))},w.drawLabel=function(S,b,M,h,_,y,v,A){this.labelCount[S]&&(this.shader.uniforms.axis=y,this.shader.uniforms.color=_,this.shader.uniforms.angle=M,this.shader.uniforms.scale=b,this.shader.uniforms.offset=h,this.shader.uniforms.alignDir=v,this.shader.uniforms.alignOpt=A,this.vao.draw(this.gl.TRIANGLES,this.labelCount[S],this.labelOffset[S]))},w.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function m(S,b){try{return s(S,b)}catch(M){return console.warn('error vectorizing text:"'+S+'" error:',M),{cells:[],positions:[]}}}function k(S,b,M,h,_,y){var v=l(S),A=u(S,[{buffer:v,size:3}]),p=f(S);p.attributes.position.location=0;var R=new g(S,p,v,A);return R.update(b,M,h,_,y),R}}),6444:(function(a,o){"use strict";o.create=l,o.equal=u;function i(s,f){var c=s+"",d=c.indexOf("."),x=0;d>=0&&(x=c.length-d-1);var g=Math.pow(10,x),w=Math.round(s*f*g),T=w+"";if(T.indexOf("e")>=0)return T;var m=w/g,k=w%g;w<0?(m=-Math.ceil(m)|0,k=-k|0):(m=Math.floor(m)|0,k=k|0);var S=""+m;if(w<0&&(S="-"+S),x){for(var b=""+k;b.length<x;)b="0"+b;return S+"."+b}else return S}function l(s,f){for(var c=[],d=0;d<3;++d){for(var x=[],g=.5*(s[0][d]+s[1][d]),w=0;w*f[d]<=s[1][d];++w)x.push({x:w*f[d],text:i(f[d],w)});for(var w=-1;w*f[d]>=s[0][d];--w)x.push({x:w*f[d],text:i(f[d],w)});c.push(x)}return c}function u(s,f){for(var c=0;c<3;++c){if(s[c].length!==f[c].length)return!1;for(var d=0;d<s[c].length;++d){var x=s[c][d],g=f[c][d];if(x.x!==g.x||x.text!==g.text||x.font!==g.font||x.fontColor!==g.fontColor||x.fontSize!==g.fontSize||x.dx!==g.dx||x.dy!==g.dy)return!1}}return!0}}),5445:(function(a,o,i){"use strict";a.exports=M;var l=i(5033),u=i(5202),s=i(6429),f=i(6760),c=i(5665),d=i(5352),x=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),g=new Float32Array(16);function w(h,_,y){this.lo=h,this.hi=_,this.pixelsPerDataUnit=y}var T=[0,0,0,1],m=[0,0,0,1];function k(h,_,y,v,A){for(var p=0;p<3;++p){for(var R=T,E=m,D=0;D<3;++D)E[D]=R[D]=y[D];E[3]=R[3]=1,E[p]+=1,d(E,E,_),E[3]<0&&(h[p]=1/0),R[p]-=1,d(R,R,_),R[3]<0&&(h[p]=1/0);var F=(R[0]/R[3]-E[0]/E[3])*v,z=(R[1]/R[3]-E[1]/E[3])*A;h[p]=.25*Math.sqrt(F*F+z*z)}return h}var S=[new w(1/0,-1/0,1/0),new w(1/0,-1/0,1/0),new w(1/0,-1/0,1/0)],b=[0,0,0];function M(h,_,y,v,z){var p=_.model||x,R=_.view||x,E=_.projection||x,D=_._ortho||!1,F=h.bounds,z=z||s(p,R,E,F,D),I=z.axis;f(g,R,p),f(g,E,g);for(var L=S,P=0;P<3;++P)L[P].lo=1/0,L[P].hi=-1/0,L[P].pixelsPerDataUnit=1/0;var O=l(c(g,g));c(g,g);for(var U=0;U<3;++U){var V=(U+1)%3,K=(U+2)%3,j=b;e:for(var P=0;P<2;++P){var G=[];if(I[U]<0!=!!P){j[U]=F[P][U];for(var q=0;q<2;++q){j[V]=F[q^P][V];for(var J=0;J<2;++J)j[K]=F[J^q^P][K],G.push(j.slice())}for(var te=D?5:4,q=te;q===te;++q){if(G.length===0)continue e;G=u.positive(G,O[q])}for(var q=0;q<G.length;++q)for(var K=G[q],Z=k(b,g,K,y,v),J=0;J<3;++J)L[J].lo=Math.min(L[J].lo,K[J]),L[J].hi=Math.max(L[J].hi,K[J]),J!==U&&(L[J].pixelsPerDataUnit=Math.min(L[J].pixelsPerDataUnit,Math.abs(Z[J])))}}}return L}}),2762:(function(a,o,i){"use strict";var l=i(1888),u=i(5298),s=i(9618),f=["uint8","uint8_clamped","uint16","uint32","int8","int16","int32","float32"];function c(m,k,S,b,M){this.gl=m,this.type=k,this.handle=S,this.length=b,this.usage=M}var d=c.prototype;d.bind=function(){this.gl.bindBuffer(this.type,this.handle)},d.unbind=function(){this.gl.bindBuffer(this.type,null)},d.dispose=function(){this.gl.deleteBuffer(this.handle)};function x(m,k,S,b,M,h){var _=M.length*M.BYTES_PER_ELEMENT;if(h<0)return m.bufferData(k,M,b),_;if(_+h>S)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return m.bufferSubData(k,h,M),S}function g(m,k){for(var S=l.malloc(m.length,k),b=m.length,M=0;M<b;++M)S[M]=m[M];return S}function w(m,k){for(var S=1,b=k.length-1;b>=0;--b){if(k[b]!==S)return!1;S*=m[b]}return!0}d.update=function(m,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof m=="object"&&typeof m.shape!="undefined"){var S=m.dtype;if(f.indexOf(S)<0&&(S="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var b=gl.getExtension("OES_element_index_uint");b&&S!=="uint16"?S="uint32":S="uint16"}if(S===m.dtype&&w(m.shape,m.stride))m.offset===0&&m.data.length===m.shape[0]?this.length=x(this.gl,this.type,this.length,this.usage,m.data,k):this.length=x(this.gl,this.type,this.length,this.usage,m.data.subarray(m.offset,m.shape[0]),k);else{var M=l.malloc(m.size,S),h=s(M,m.shape);u.assign(h,m),k<0?this.length=x(this.gl,this.type,this.length,this.usage,M,k):this.length=x(this.gl,this.type,this.length,this.usage,M.subarray(0,m.size),k),l.free(M)}}else if(Array.isArray(m)){var _;this.type===this.gl.ELEMENT_ARRAY_BUFFER?_=g(m,"uint16"):_=g(m,"float32"),k<0?this.length=x(this.gl,this.type,this.length,this.usage,_,k):this.length=x(this.gl,this.type,this.length,this.usage,_.subarray(0,m.length),k),l.free(_)}else if(typeof m=="object"&&typeof m.length=="number")this.length=x(this.gl,this.type,this.length,this.usage,m,k);else if(typeof m=="number"||m===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");m=m|0,m<=0&&(m=1),this.gl.bufferData(this.type,m|0,this.usage),this.length=m}else throw new Error("gl-buffer: Invalid data type")};function T(m,k,S,b){if(S=S||m.ARRAY_BUFFER,b=b||m.DYNAMIC_DRAW,S!==m.ARRAY_BUFFER&&S!==m.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(b!==m.DYNAMIC_DRAW&&b!==m.STATIC_DRAW&&b!==m.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var M=m.createBuffer(),h=new c(m,S,M,0,b);return h.update(k),h}a.exports=T}),6405:(function(a,o,i){"use strict";var l=i(2931);a.exports=function(s,f){var c=s.positions,d=s.vectors,x={positions:[],vertexIntensity:[],vertexIntensityBounds:s.vertexIntensityBounds,vectors:[],cells:[],coneOffset:s.coneOffset,colormap:s.colormap};if(s.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),x;for(var g=0,w=1/0,T=-1/0,m=1/0,k=-1/0,S=1/0,b=-1/0,M=null,h=null,_=[],y=1/0,v=!1,A=s.coneSizemode==="raw",p=0;p<c.length;p++){var R=c[p];w=Math.min(R[0],w),T=Math.max(R[0],T),m=Math.min(R[1],m),k=Math.max(R[1],k),S=Math.min(R[2],S),b=Math.max(R[2],b);var E=d[p];if(l.length(E)>g&&(g=l.length(E)),p&&!A){var D=2*l.distance(M,R)/(l.length(h)+l.length(E));D?(y=Math.min(y,D),v=!1):v=!0}v||(M=R,h=E),_.push(E)}var F=[w,m,S],z=[T,k,b];f&&(f[0]=F,f[1]=z),g===0&&(g=1);var I=1/g;isFinite(y)||(y=1),x.vectorScale=y;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*I),x.coneScale=L;for(var p=0,P=0;p<c.length;p++)for(var R=c[p],O=R[0],U=R[1],V=R[2],K=_[p],j=l.length(K)*I,G=0,q=8;G<q;G++){x.positions.push([O,U,V,P++]),x.positions.push([O,U,V,P++]),x.positions.push([O,U,V,P++]),x.positions.push([O,U,V,P++]),x.positions.push([O,U,V,P++]),x.positions.push([O,U,V,P++]),x.vectors.push(K),x.vectors.push(K),x.vectors.push(K),x.vectors.push(K),x.vectors.push(K),x.vectors.push(K),x.vertexIntensity.push(j,j,j),x.vertexIntensity.push(j,j,j);var J=x.positions.length;x.cells.push([J-6,J-5,J-4],[J-3,J-2,J-1])}return x};var u=i(614);a.exports.createMesh=i(9060),a.exports.createConeMesh=function(s,f){return a.exports.createMesh(s,f,{shaders:u,traceType:"cone"})}}),9060:(function(a,o,i){"use strict";var l=i(9405),u=i(2762),s=i(8116),f=i(7766),c=i(6760),d=i(7608),x=i(9618),g=i(6729),w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(_,y,v,A,p,R,E,D,F,z,I){this.gl=_,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=y,this.dirty=!0,this.triShader=v,this.pickShader=A,this.trianglePositions=p,this.triangleVectors=R,this.triangleColors=D,this.triangleUVs=F,this.triangleIds=E,this.triangleVAO=z,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=I,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var m=T.prototype;m.isOpaque=function(){return this.opacity>=1},m.isTransparent=function(){return this.opacity<1},m.pickSlots=1,m.setPickBase=function(_){this.pickId=_};function k(_){for(var y=g({colormap:_,nshades:256,format:"rgba"}),v=new Uint8Array(256*4),A=0;A<256;++A){for(var p=y[A],R=0;R<3;++R)v[4*A+R]=p[R];v[4*A+3]=p[3]*255}return x(v,[256,256,4],[4,0,1])}function S(_){for(var y=_.length,v=new Array(y),A=0;A<y;++A)v[A]=_[A][2];return v}m.update=function(_){_=_||{};var y=this.gl;this.dirty=!0,"lightPosition"in _&&(this.lightPosition=_.lightPosition),"opacity"in _&&(this.opacity=_.opacity),"ambient"in _&&(this.ambientLight=_.ambient),"diffuse"in _&&(this.diffuseLight=_.diffuse),"specular"in _&&(this.specularLight=_.specular),"roughness"in _&&(this.roughness=_.roughness),"fresnel"in _&&(this.fresnel=_.fresnel),_.tubeScale!==void 0&&(this.tubeScale=_.tubeScale),_.vectorScale!==void 0&&(this.vectorScale=_.vectorScale),_.coneScale!==void 0&&(this.coneScale=_.coneScale),_.coneOffset!==void 0&&(this.coneOffset=_.coneOffset),_.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=y.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=y.LINEAR,this.texture.setPixels(k(_.colormap)),this.texture.generateMipmap());var v=_.cells,A=_.positions,p=_.vectors;if(!(!A||!v||!p)){var R=[],E=[],D=[],F=[],z=[];this.cells=v,this.positions=A,this.vectors=p;var I=_.meshColor||[1,1,1,1],L=_.vertexIntensity,P=1/0,O=-1/0;if(L)if(_.vertexIntensityBounds)P=+_.vertexIntensityBounds[0],O=+_.vertexIntensityBounds[1];else for(var U=0;U<L.length;++U){var V=L[U];P=Math.min(P,V),O=Math.max(O,V)}else for(var U=0;U<A.length;++U){var V=A[U][2];P=Math.min(P,V),O=Math.max(O,V)}L?this.intensity=L:this.intensity=S(A),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(var U=0;U<A.length;++U)for(var K=A[U],j=0;j<3;++j)isNaN(K[j])||!isFinite(K[j])||(this.bounds[0][j]=Math.min(this.bounds[0][j],K[j]),this.bounds[1][j]=Math.max(this.bounds[1][j],K[j]));var G=0;e:for(var U=0;U<v.length;++U){var q=v[U];switch(q.length){case 3:for(var j=0;j<3;++j)for(var J=q[j],K=A[J],te=0;te<3;++te)if(isNaN(K[te])||!isFinite(K[te]))continue e;for(var j=0;j<3;++j){var J=q[2-j],K=A[J];R.push(K[0],K[1],K[2],K[3]);var Z=p[J];E.push(Z[0],Z[1],Z[2],Z[3]||0);var ie=I;ie.length===3?D.push(ie[0],ie[1],ie[2],1):D.push(ie[0],ie[1],ie[2],ie[3]);var Q;L?Q=[(L[J]-P)/(O-P),0]:Q=[(K[2]-P)/(O-P),0],F.push(Q[0],Q[1]),z.push(U)}G+=1;break;default:break}}this.triangleCount=G,this.trianglePositions.update(R),this.triangleVectors.update(E),this.triangleColors.update(D),this.triangleUVs.update(F),this.triangleIds.update(new Uint32Array(z))}},m.drawTransparent=m.draw=function(_){_=_||{};for(var y=this.gl,v=_.model||w,A=_.view||w,p=_.projection||w,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)R[0][E]=Math.max(R[0][E],this.clipBounds[0][E]),R[1][E]=Math.min(R[1][E],this.clipBounds[1][E]);var D={model:v,view:A,projection:p,inverseModel:w.slice(),clipBounds:R,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};D.inverseModel=d(D.inverseModel,D.model),y.disable(y.CULL_FACE),this.texture.bind(0);var F=new Array(16);c(F,D.view,D.model),c(F,D.projection,F),d(F,F);for(var E=0;E<3;++E)D.eyePosition[E]=F[12+E]/F[15];for(var z=F[15],E=0;E<3;++E)z+=this.lightPosition[E]*F[4*E+3];for(var E=0;E<3;++E){for(var I=F[12+E],L=0;L<3;++L)I+=F[4*L+E]*this.lightPosition[L];D.lightPosition[E]=I/z}if(this.triangleCount>0){var P=this.triShader;P.bind(),P.uniforms=D,this.triangleVAO.bind(),y.drawArrays(y.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},m.drawPick=function(_){_=_||{};for(var y=this.gl,v=_.model||w,A=_.view||w,p=_.projection||w,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)R[0][E]=Math.max(R[0][E],this.clipBounds[0][E]),R[1][E]=Math.min(R[1][E],this.clipBounds[1][E]);this._model=[].slice.call(v),this._view=[].slice.call(A),this._projection=[].slice.call(p),this._resolution=[y.drawingBufferWidth,y.drawingBufferHeight];var D={model:v,view:A,projection:p,clipBounds:R,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},F=this.pickShader;F.bind(),F.uniforms=D,this.triangleCount>0&&(this.triangleVAO.bind(),y.drawArrays(y.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},m.pick=function(_){if(!_||_.id!==this.pickId)return null;var y=_.value[0]+256*_.value[1]+65536*_.value[2],v=this.cells[y],A=this.positions[v[1]].slice(0,3),p={position:A,dataCoordinate:A,index:Math.floor(v[1]/48)};return this.traceType==="cone"?p.index=Math.floor(v[1]/48):this.traceType==="streamtube"&&(p.intensity=this.intensity[v[1]],p.velocity=this.vectors[v[1]].slice(0,3),p.divergence=this.vectors[v[1]][3],p.index=y),p},m.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function b(_,y){var v=l(_,y.meshShader.vertex,y.meshShader.fragment,null,y.meshShader.attributes);return v.attributes.position.location=0,v.attributes.color.location=2,v.attributes.uv.location=3,v.attributes.vector.location=4,v}function M(_,y){var v=l(_,y.pickShader.vertex,y.pickShader.fragment,null,y.pickShader.attributes);return v.attributes.position.location=0,v.attributes.id.location=1,v.attributes.vector.location=4,v}function h(_,y,v){var A=v.shaders;arguments.length===1&&(y=_,_=y.gl);var p=b(_,A),R=M(_,A),E=f(_,x(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=_.LINEAR_MIPMAP_LINEAR,E.magFilter=_.LINEAR;var D=u(_),F=u(_),z=u(_),I=u(_),L=u(_),P=s(_,[{buffer:D,type:_.FLOAT,size:4},{buffer:L,type:_.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:z,type:_.FLOAT,size:4},{buffer:I,type:_.FLOAT,size:2},{buffer:F,type:_.FLOAT,size:4}]),O=new T(_,E,p,R,D,F,L,z,I,P,v.traceType||"cone");return O.update(y),O}a.exports=h}),614:(function(a,o,i){var l=i(3236),u=l([`precision highp float;
precision highp float;
#define GLSLIFY 1
vec3 getOrthogonalVector(vec3 v) {
// Return up-vector for only-z vector.
// Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).
// From the above if-statement we have ||a|| > 0 U ||b|| > 0.
// Assign z = 0, x = -b, y = a:
// a*-b + b*a + c*0 = -ba + ba + 0 = 0
if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {
return normalize(vec3(-v.y, v.x, 0.0));
} else {
return normalize(vec3(0.0, v.z, -v.y));
}
}
// Calculate the cone vertex and normal at the given index.
//
// The returned vertex is for a cone with its top at origin and height of 1.0,
// pointing in the direction of the vector attribute.
//
// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.
// These vertices are used to make up the triangles of the cone by the following:
// segment + 0 top vertex
// segment + 1 perimeter vertex a+1
// segment + 2 perimeter vertex a
// segment + 3 center base vertex
// segment + 4 perimeter vertex a
// segment + 5 perimeter vertex a+1
// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.
// To go from index to segment, floor(index / 6)
// To go from segment to angle, 2*pi * (segment/segmentCount)
// To go from index to segment index, index - (segment*6)
//
vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {
const float segmentCount = 8.0;
float index = rawIndex - floor(rawIndex /
(segmentCount * 6.0)) *
(segmentCount * 6.0);
float segment = floor(0.001 + index/6.0);
float segmentIndex = index - (segment*6.0);
normal = -normalize(d);
if (segmentIndex > 2.99 && segmentIndex < 3.01) {
return mix(vec3(0.0), -d, coneOffset);
}
float nextAngle = (
(segmentIndex > 0.99 && segmentIndex < 1.01) ||
(segmentIndex > 4.99 && segmentIndex < 5.01)
) ? 1.0 : 0.0;
float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);
vec3 v1 = mix(d, vec3(0.0), coneOffset);
vec3 v2 = v1 - d;
vec3 u = getOrthogonalVector(d);
vec3 v = normalize(cross(u, d));
vec3 x = u * cos(angle) * length(d)*0.25;
vec3 y = v * sin(angle) * length(d)*0.25;
vec3 v3 = v2 + x + y;
if (segmentIndex < 3.0) {
vec3 tx = u * sin(angle);
vec3 ty = v * -cos(angle);
vec3 tangent = tx + ty;
normal = normalize(cross(v3 - v1, tangent));
}
if (segmentIndex == 0.0) {
return mix(d, vec3(0.0), coneOffset);
}
return v3;
}
attribute vec3 vector;
attribute vec4 color, position;
attribute vec2 uv;
uniform float vectorScale, coneScale, coneOffset;
uniform mat4 model, view, projection, inverseModel;
uniform vec3 eyePosition, lightPosition;
varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;
varying vec4 f_color;
varying vec2 f_uv;
void main() {
// Scale the vector magnitude to stay constant with
// model & view changes.
vec3 normal;
vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);
vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);
//Lighting geometry parameters
vec4 cameraCoordinate = view * conePosition;
cameraCoordinate.xyz /= cameraCoordinate.w;
f_lightDirection = lightPosition - cameraCoordinate.xyz;
f_eyeDirection = eyePosition - cameraCoordinate.xyz;
f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);
// vec4 m_position = model * vec4(conePosition, 1.0);
vec4 t_position = view * conePosition;
gl_Position = projection * t_position;
f_color = color;
f_data = conePosition.xyz;
f_position = position.xyz;
f_uv = uv;
}
`]),s=l([`#extension GL_OES_standard_derivatives : enable
precision highp float;
#define GLSLIFY 1
float beckmannDistribution(float x, float roughness) {
float NdotH = max(x, 0.0001);
float cos2Alpha = NdotH * NdotH;
float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;
float roughness2 = roughness * roughness;
float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;
return exp(tan2Alpha / roughness2) / denom;
}
float cookTorranceSpecular(
vec3 lightDirection,
vec3 viewDirection,
vec3 surfaceNormal,
float roughness,
float fresnel) {
float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);
float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);
//Half angle vector
vec3 H = normalize(lightDirection + viewDirection);
//Geometric term
float NdotH = max(dot(surfaceNormal, H), 0.0);
float VdotH = max(dot(viewDirection, H), 0.000001);
float LdotH = max(dot(lightDirection, H), 0.000001);
float G1 = (2.0 * NdotH * VdotN) / VdotH;
float G2 = (2.0 * NdotH * LdotN) / LdotH;
float G = min(1.0, min(G1, G2));
//Distribution term
float D = beckmannDistribution(NdotH, roughness);
//Fresnel term
float F = pow(1.0 - VdotN, fresnel);
//Multiply terms and done
return G * F * D / max(3.14159265 * VdotN, 0.000001);
}
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;
uniform sampler2D texture;
varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;
varying vec4 f_color;
varying vec2 f_uv;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
vec3 N = normalize(f_normal);
vec3 L = normalize(f_lightDirection);
vec3 V = normalize(f_eyeDirection);
if(gl_FrontFacing) {
N = -N;
}
float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));
float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);
vec4 surfaceColor = f_color * texture2D(texture, f_uv);
vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);
gl_FragColor = litColor * opacity;
}
`]),f=l([`precision highp float;
precision highp float;
#define GLSLIFY 1
vec3 getOrthogonalVector(vec3 v) {
// Return up-vector for only-z vector.
// Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).
// From the above if-statement we have ||a|| > 0 U ||b|| > 0.
// Assign z = 0, x = -b, y = a:
// a*-b + b*a + c*0 = -ba + ba + 0 = 0
if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {
return normalize(vec3(-v.y, v.x, 0.0));
} else {
return normalize(vec3(0.0, v.z, -v.y));
}
}
// Calculate the cone vertex and normal at the given index.
//
// The returned vertex is for a cone with its top at origin and height of 1.0,
// pointing in the direction of the vector attribute.
//
// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.
// These vertices are used to make up the triangles of the cone by the following:
// segment + 0 top vertex
// segment + 1 perimeter vertex a+1
// segment + 2 perimeter vertex a
// segment + 3 center base vertex
// segment + 4 perimeter vertex a
// segment + 5 perimeter vertex a+1
// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.
// To go from index to segment, floor(index / 6)
// To go from segment to angle, 2*pi * (segment/segmentCount)
// To go from index to segment index, index - (segment*6)
//
vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {
const float segmentCount = 8.0;
float index = rawIndex - floor(rawIndex /
(segmentCount * 6.0)) *
(segmentCount * 6.0);
float segment = floor(0.001 + index/6.0);
float segmentIndex = index - (segment*6.0);
normal = -normalize(d);
if (segmentIndex > 2.99 && segmentIndex < 3.01) {
return mix(vec3(0.0), -d, coneOffset);
}
float nextAngle = (
(segmentIndex > 0.99 && segmentIndex < 1.01) ||
(segmentIndex > 4.99 && segmentIndex < 5.01)
) ? 1.0 : 0.0;
float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);
vec3 v1 = mix(d, vec3(0.0), coneOffset);
vec3 v2 = v1 - d;
vec3 u = getOrthogonalVector(d);
vec3 v = normalize(cross(u, d));
vec3 x = u * cos(angle) * length(d)*0.25;
vec3 y = v * sin(angle) * length(d)*0.25;
vec3 v3 = v2 + x + y;
if (segmentIndex < 3.0) {
vec3 tx = u * sin(angle);
vec3 ty = v * -cos(angle);
vec3 tangent = tx + ty;
normal = normalize(cross(v3 - v1, tangent));
}
if (segmentIndex == 0.0) {
return mix(d, vec3(0.0), coneOffset);
}
return v3;
}
attribute vec4 vector;
attribute vec4 position;
attribute vec4 id;
uniform mat4 model, view, projection;
uniform float vectorScale, coneScale, coneOffset;
varying vec3 f_position;
varying vec4 f_id;
void main() {
vec3 normal;
vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);
vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);
gl_Position = projection * (view * conePosition);
f_id = id;
f_position = position.xyz;
}
`]),c=l([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform float pickId;
varying vec3 f_position;
varying vec4 f_id;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
gl_FragColor = vec4(pickId, f_id.xyz);
}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},o.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}}),737:(function(a){a.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}}),5171:(function(a,o,i){var l=i(737);a.exports=function(s){return l[s]}}),9165:(function(a,o,i){"use strict";a.exports=T;var l=i(2762),u=i(8116),s=i(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(m,k,S,b){this.gl=m,this.shader=b,this.buffer=k,this.vao=S,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var d=c.prototype;d.isOpaque=function(){return!this.hasAlpha},d.isTransparent=function(){return this.hasAlpha},d.drawTransparent=d.draw=function(m){var k=this.gl,S=this.shader.uniforms;this.shader.bind();var b=S.view=m.view||f,M=S.projection=m.projection||f;S.model=m.model||f,S.clipBounds=this.clipBounds,S.opacity=this.opacity;var h=b[12],_=b[13],y=b[14],v=b[15],A=m._ortho||!1,p=A?2:1,R=p*this.pixelRatio*(M[3]*h+M[7]*_+M[11]*y+M[15]*v)/k.drawingBufferHeight;this.vao.bind();for(var E=0;E<3;++E)k.lineWidth(this.lineWidth[E]*this.pixelRatio),S.capSize=this.capSize[E]*R,this.lineCount[E]&&k.drawArrays(k.LINES,this.lineOffset[E],this.lineCount[E]);this.vao.unbind()};function x(m,k){for(var S=0;S<3;++S)m[0][S]=Math.min(m[0][S],k[S]),m[1][S]=Math.max(m[1][S],k[S])}var g=(function(){for(var m=new Array(3),k=0;k<3;++k){for(var S=[],b=1;b<=2;++b)for(var M=-1;M<=1;M+=2){var h=(b+k)%3,_=[0,0,0];_[h]=M,S.push(_)}m[k]=S}return m})();function w(m,k,S,b){for(var M=g[b],h=0;h<M.length;++h){var _=M[h];m.push(k[0],k[1],k[2],S[0],S[1],S[2],S[3],_[0],_[1],_[2])}return M.length}d.update=function(m){m=m||{},"lineWidth"in m&&(this.lineWidth=m.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),"capSize"in m&&(this.capSize=m.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,"opacity"in m&&(this.opacity=+m.opacity,this.opacity<1&&(this.hasAlpha=!0));var k=m.color||[[0,0,0],[0,0,0],[0,0,0]],S=m.position,b=m.error;if(Array.isArray(k[0])||(k=[k,k,k]),S&&b){var M=[],h=S.length,_=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var y=0;y<3;++y){this.lineOffset[y]=_;e:for(var v=0;v<h;++v){for(var A=S[v],p=0;p<3;++p)if(isNaN(A[p])||!isFinite(A[p]))continue e;var R=b[v],E=k[y];if(Array.isArray(E[0])&&(E=k[v]),E.length===3?E=[E[0],E[1],E[2],1]:E.length===4&&(E=[E[0],E[1],E[2],E[3]],!this.hasAlpha&&E[3]<1&&(this.hasAlpha=!0)),!(isNaN(R[0][y])||isNaN(R[1][y]))){if(R[0][y]<0){var D=A.slice();D[y]+=R[0][y],M.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,D[0],D[1],D[2],E[0],E[1],E[2],E[3],0,0,0),x(this.bounds,D),_+=2+w(M,D,E,y)}if(R[1][y]>0){var D=A.slice();D[y]+=R[1][y],M.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,D[0],D[1],D[2],E[0],E[1],E[2],E[3],0,0,0),x(this.bounds,D),_+=2+w(M,D,E,y)}}}this.lineCount[y]=_-this.lineOffset[y]}this.buffer.update(M)}},d.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function T(m){var k=m.gl,S=l(k),b=u(k,[{buffer:S,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:S,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:S,type:k.FLOAT,size:3,offset:28,stride:40}]),M=s(k);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var h=new c(k,S,b,M);return h.update(m),h}}),3436:(function(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision highp float;
#define GLSLIFY 1
attribute vec3 position, offset;
attribute vec4 color;
uniform mat4 model, view, projection;
uniform float capSize;
varying vec4 fragColor;
varying vec3 fragPosition;
void main() {
vec4 worldPosition = model * vec4(position, 1.0);
worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);
gl_Position = projection * (view * worldPosition);
fragColor = color;
fragPosition = position;
}`]),f=l([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform float opacity;
varying vec3 fragPosition;
varying vec4 fragColor;
void main() {
if (
outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||
fragColor.a * opacity == 0.
) discard;
gl_FragColor = opacity * fragColor;
}`]);a.exports=function(c){return u(c,s,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}}),2260:(function(a,o,i){"use strict";var l=i(7766);a.exports=_;var u=null,s,f,c,d;function x(y){var v=y.getParameter(y.FRAMEBUFFER_BINDING),A=y.getParameter(y.RENDERBUFFER_BINDING),p=y.getParameter(y.TEXTURE_BINDING_2D);return[v,A,p]}function g(y,v){y.bindFramebuffer(y.FRAMEBUFFER,v[0]),y.bindRenderbuffer(y.RENDERBUFFER,v[1]),y.bindTexture(y.TEXTURE_2D,v[2])}function w(y,v){var A=y.getParameter(v.MAX_COLOR_ATTACHMENTS_WEBGL);u=new Array(A+1);for(var p=0;p<=A;++p){for(var R=new Array(A),E=0;E<p;++E)R[E]=y.COLOR_ATTACHMENT0+E;for(var E=p;E<A;++E)R[E]=y.NONE;u[p]=R}}function T(y){switch(y){case s:throw new Error("gl-fbo: Framebuffer unsupported");case f:throw new Error("gl-fbo: Framebuffer incomplete attachment");case c:throw new Error("gl-fbo: Framebuffer incomplete dimensions");case d:throw new Error("gl-fbo: Framebuffer incomplete missing attachment");default:throw new Error("gl-fbo: Framebuffer failed for unspecified reason")}}function m(y,v,A,p,R,E){if(!p)return null;var D=l(y,v,A,R,p);return D.magFilter=y.NEAREST,D.minFilter=y.NEAREST,D.mipSamples=1,D.bind(),y.framebufferTexture2D(y.FRAMEBUFFER,E,y.TEXTURE_2D,D.handle,0),D}function k(y,v,A,p,R){var E=y.createRenderbuffer();return y.bindRenderbuffer(y.RENDERBUFFER,E),y.renderbufferStorage(y.RENDERBUFFER,p,v,A),y.framebufferRenderbuffer(y.FRAMEBUFFER,R,y.RENDERBUFFER,E),E}function S(y){var v=x(y.gl),A=y.gl,p=y.handle=A.createFramebuffer(),R=y._shape[0],E=y._shape[1],D=y.color.length,F=y._ext,z=y._useStencil,I=y._useDepth,L=y._colorType;A.bindFramebuffer(A.FRAMEBUFFER,p);for(var P=0;P<D;++P)y.color[P]=m(A,R,E,L,A.RGBA,A.COLOR_ATTACHMENT0+P);D===0?(y._color_rb=k(A,R,E,A.RGBA4,A.COLOR_ATTACHMENT0),F&&F.drawBuffersWEBGL(u[0])):D>1&&F.drawBuffersWEBGL(u[D]);var O=A.getExtension("WEBGL_depth_texture");O?z?y.depth=m(A,R,E,O.UNSIGNED_INT_24_8_WEBGL,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):I&&(y.depth=m(A,R,E,A.UNSIGNED_SHORT,A.DEPTH_COMPONENT,A.DEPTH_ATTACHMENT)):I&&z?y._depth_rb=k(A,R,E,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):I?y._depth_rb=k(A,R,E,A.DEPTH_COMPONENT16,A.DEPTH_ATTACHMENT):z&&(y._depth_rb=k(A,R,E,A.STENCIL_INDEX,A.STENCIL_ATTACHMENT));var U=A.checkFramebufferStatus(A.FRAMEBUFFER);if(U!==A.FRAMEBUFFER_COMPLETE){y._destroyed=!0,A.bindFramebuffer(A.FRAMEBUFFER,null),A.deleteFramebuffer(y.handle),y.handle=null,y.depth&&(y.depth.dispose(),y.depth=null),y._depth_rb&&(A.deleteRenderbuffer(y._depth_rb),y._depth_rb=null);for(var P=0;P<y.color.length;++P)y.color[P].dispose(),y.color[P]=null;y._color_rb&&(A.deleteRenderbuffer(y._color_rb),y._color_rb=null),g(A,v),T(U)}g(A,v)}function b(y,v,A,p,R,E,D,F){this.gl=y,this._shape=[v|0,A|0],this._destroyed=!1,this._ext=F,this.color=new Array(R);for(var z=0;z<R;++z)this.color[z]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=p,this._useDepth=E,this._useStencil=D;var I=this,L=[v|0,A|0];Object.defineProperties(L,{0:{get:function(){return I._shape[0]},set:function(P){return I.width=P}},1:{get:function(){return I._shape[1]},set:function(P){return I.height=P}}}),this._shapeVector=L,S(this)}var M=b.prototype;function h(y,v,A){if(y._destroyed)throw new Error("gl-fbo: Can't resize destroyed FBO");if(!(y._shape[0]===v&&y._shape[1]===A)){var p=y.gl,R=p.getParameter(p.MAX_RENDERBUFFER_SIZE);if(v<0||v>R||A<0||A>R)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");y._shape[0]=v,y._shape[1]=A;for(var E=x(p),D=0;D<y.color.length;++D)y.color[D].shape=y._shape;y._color_rb&&(p.bindRenderbuffer(p.RENDERBUFFER,y._color_rb),p.renderbufferStorage(p.RENDERBUFFER,p.RGBA4,y._shape[0],y._shape[1])),y.depth&&(y.depth.shape=y._shape),y._depth_rb&&(p.bindRenderbuffer(p.RENDERBUFFER,y._depth_rb),y._useDepth&&y._useStencil?p.renderbufferStorage(p.RENDERBUFFER,p.DEPTH_STENCIL,y._shape[0],y._shape[1]):y._useDepth?p.renderbufferStorage(p.RENDERBUFFER,p.DEPTH_COMPONENT16,y._shape[0],y._shape[1]):y._useStencil&&p.renderbufferStorage(p.RENDERBUFFER,p.STENCIL_INDEX,y._shape[0],y._shape[1])),p.bindFramebuffer(p.FRAMEBUFFER,y.handle);var F=p.checkFramebufferStatus(p.FRAMEBUFFER);F!==p.FRAMEBUFFER_COMPLETE&&(y.dispose(),g(p,E),T(F)),g(p,E)}}Object.defineProperties(M,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(y){if(Array.isArray(y)||(y=[y|0,y|0]),y.length!==2)throw new Error("gl-fbo: Shape vector must be length 2");var v=y[0]|0,A=y[1]|0;return h(this,v,A),[v,A]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(y){return y=y|0,h(this,y,this._shape[1]),y},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(y){return y=y|0,h(this,this._shape[0],y),y},enumerable:!1}}),M.bind=function(){if(!this._destroyed){var y=this.gl;y.bindFramebuffer(y.FRAMEBUFFER,this.handle),y.viewport(0,0,this._shape[0],this._shape[1])}},M.dispose=function(){if(!this._destroyed){this._destroyed=!0;var y=this.gl;y.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(y.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var v=0;v<this.color.length;++v)this.color[v].dispose(),this.color[v]=null;this._color_rb&&(y.deleteRenderbuffer(this._color_rb),this._color_rb=null)}};function _(y,v,A,p){s||(s=y.FRAMEBUFFER_UNSUPPORTED,f=y.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,c=y.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,d=y.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var R=y.getExtension("WEBGL_draw_buffers");if(!u&&R&&w(y,R),Array.isArray(v)&&(p=A,A=v[1]|0,v=v[0]|0),typeof v!="number")throw new Error("gl-fbo: Missing shape parameter");var E=y.getParameter(y.MAX_RENDERBUFFER_SIZE);if(v<0||v>E||A<0||A>E)throw new Error("gl-fbo: Parameters are too large for FBO");p=p||{};var D=1;if("color"in p){if(D=Math.max(p.color|0,0),D<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(D>1)if(R){if(D>y.getParameter(R.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+D+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var F=y.UNSIGNED_BYTE,z=y.getExtension("OES_texture_float");if(p.float&&D>0){if(!z)throw new Error("gl-fbo: Context does not support floating point textures");F=y.FLOAT}else p.preferFloat&&D>0&&z&&(F=y.FLOAT);var I=!0;"depth"in p&&(I=!!p.depth);var L=!1;return"stencil"in p&&(L=!!p.stencil),new b(y,v,A,F,D,I,L,R)}}),2992:(function(a,o,i){var l=i(3387).sprintf,u=i(5171),s=i(1848),f=i(1085);a.exports=c;function c(d,x,g){"use strict";var w=s(x)||"of unknown name (see npm glsl-shader-name)",T="unknown type";g!==void 0&&(T=g===u.FRAGMENT_SHADER?"fragment":"vertex");for(var m=l(`Error compiling %s shader %s:
`,T,w),k=l("%s%s",m,d),S=d.split(`
`),b={},M=0;M<S.length;M++){var h=S[M];if(!(h===""||h==="\0")){var _=parseInt(h.split(":")[2]);if(isNaN(_))throw new Error(l("Could not parse error: %s",h));b[_]=h}}for(var y=f(x).split(`
`),M=0;M<y.length;M++)if(!(!b[M+3]&&!b[M+2]&&!b[M+1])){var v=y[M];if(m+=v+`
`,b[M+1]){var A=b[M+1];A=A.substr(A.split(":",3).join(":").length+1).trim(),m+=l(`^^^ %s
`,A)}}return{long:m.trim(),short:k.trim()}}}),7319:(function(a,o,i){var l=i(3236),u=i(9405),s=l([`precision highp float;
#define GLSLIFY 1
attribute vec3 position, nextPosition;
attribute float arcLength, lineWidth;
attribute vec4 color;
uniform vec2 screenShape;
uniform float pixelRatio;
uniform mat4 model, view, projection;
varying vec4 fragColor;
varying vec3 worldPosition;
varying float pixelArcLength;
vec4 project(vec3 p) {
return projection * (view * (model * vec4(p, 1.0)));
}
void main() {
vec4 startPoint = project(position);
vec4 endPoint = project(nextPosition);
vec2 A = startPoint.xy / startPoint.w;
vec2 B = endPoint.xy / endPoint.w;
float clipAngle = atan(
(B.y - A.y) * screenShape.y,
(B.x - A.x) * screenShape.x
);
vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(
sin(clipAngle),
-cos(clipAngle)
) / screenShape;
gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);
worldPosition = position;
pixelArcLength = arcLength;
fragColor = color;
}
`]),f=l([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform sampler2D dashTexture;
uniform float dashScale;
uniform float opacity;
varying vec3 worldPosition;
varying float pixelArcLength;
varying vec4 fragColor;
void main() {
if (
outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||
fragColor.a * opacity == 0.
) discard;
float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;
if(dashWeight < 0.5) {
discard;
}
gl_FragColor = fragColor * opacity;
}
`]),c=l([`precision highp float;
#define GLSLIFY 1
#define FLOAT_MAX 1.70141184e38
#define FLOAT_MIN 1.17549435e-38
// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl
vec4 packFloat(float v) {
float av = abs(v);
//Handle special cases
if(av < FLOAT_MIN) {
return vec4(0.0, 0.0, 0.0, 0.0);
} else if(v > FLOAT_MAX) {
return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;
} else if(v < -FLOAT_MAX) {
return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;
}
vec4 c = vec4(0,0,0,0);
//Compute exponent and mantissa
float e = floor(log2(av));
float m = av * pow(2.0, -e) - 1.0;
//Unpack mantissa
c[1] = floor(128.0 * m);
m -= c[1] / 128.0;
c[2] = floor(32768.0 * m);
m -= c[2] / 32768.0;
c[3] = floor(8388608.0 * m);
//Unpack exponent
float ebias = e + 127.0;
c[0] = floor(ebias / 2.0);
ebias -= c[0] * 2.0;
c[1] += floor(ebias) * 128.0;
//Unpack sign bit
c[0] += 128.0 * step(0.0, -v);
//Scale back to range
return c / 255.0;
}
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform float pickId;
uniform vec3 clipBounds[2];
varying vec3 worldPosition;
varying float pixelArcLength;
varying vec4 fragColor;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;
gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);
}`]),d=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];o.createShader=function(x){return u(x,s,f,null,d)},o.createPickShader=function(x){return u(x,s,c,null,d)}}),5714:(function(a,o,i){"use strict";a.exports=y;var l=i(2762),u=i(8116),s=i(7766),f=new Uint8Array(4),c=new Float32Array(f.buffer);function d(v,A,p,R){return f[0]=R,f[1]=p,f[2]=A,f[3]=v,c[0]}var x=i(2478),g=i(9618),w=i(7319),T=w.createShader,m=w.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function S(v,A){for(var p=0,R=0;R<3;++R){var E=v[R]-A[R];p+=E*E}return Math.sqrt(p)}function b(v){for(var A=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],p=0;p<3;++p)A[0][p]=Math.max(v[0][p],A[0][p]),A[1][p]=Math.min(v[1][p],A[1][p]);return A}function M(v,A,p,R){this.arcLength=v,this.position=A,this.index=p,this.dataCoordinate=R}function h(v,A,p,R,E,D){this.gl=v,this.shader=A,this.pickShader=p,this.buffer=R,this.vao=E,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=D,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var _=h.prototype;_.isTransparent=function(){return this.hasAlpha},_.isOpaque=function(){return!this.hasAlpha},_.pickSlots=1,_.setPickBase=function(v){this.pickId=v},_.drawTransparent=_.draw=function(v){if(this.vertexCount){var A=this.gl,p=this.shader,R=this.vao;p.bind(),p.uniforms={model:v.model||k,view:v.view||k,projection:v.projection||k,clipBounds:b(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(A.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},_.drawPick=function(v){if(this.vertexCount){var A=this.gl,p=this.pickShader,R=this.vao;p.bind(),p.uniforms={model:v.model||k,view:v.view||k,projection:v.projection||k,pickId:this.pickId,clipBounds:b(this.clipBounds),screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(A.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},_.update=function(v){var A,p;this.dirty=!0;var R=!!v.connectGaps;"dashScale"in v&&(this.dashScale=v.dashScale),this.hasAlpha=!1,"opacity"in v&&(this.opacity=+v.opacity,this.opacity<1&&(this.hasAlpha=!0));var E=[],D=[],F=[],z=0,I=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],P=v.position||v.positions;if(P){var O=v.color||v.colors||[0,0,0,1],U=v.lineWidth||1,V=!1;e:for(A=1;A<P.length;++A){var K=P[A-1],j=P[A];for(D.push(z),F.push(K.slice()),p=0;p<3;++p){if(isNaN(K[p])||isNaN(j[p])||!isFinite(K[p])||!isFinite(j[p])){if(!R&&E.length>0){for(var G=0;G<24;++G)E.push(E[E.length-12]);I+=2,V=!0}continue e}L[0][p]=Math.min(L[0][p],K[p],j[p]),L[1][p]=Math.max(L[1][p],K[p],j[p])}var q,J;Array.isArray(O[0])?(q=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1],J=O.length>A?O[A]:O.length>0?O[O.length-1]:[0,0,0,1]):q=J=O,q.length===3&&(q=[q[0],q[1],q[2],1]),J.length===3&&(J=[J[0],J[1],J[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var te;Array.isArray(U)?te=U.length>A-1?U[A-1]:U.length>0?U[U.length-1]:[0,0,0,1]:te=U;var Z=z;if(z+=S(K,j),V){for(p=0;p<2;++p)E.push(K[0],K[1],K[2],j[0],j[1],j[2],Z,te,q[0],q[1],q[2],q[3]);I+=2,V=!1}E.push(K[0],K[1],K[2],j[0],j[1],j[2],Z,te,q[0],q[1],q[2],q[3],K[0],K[1],K[2],j[0],j[1],j[2],Z,-te,q[0],q[1],q[2],q[3],j[0],j[1],j[2],K[0],K[1],K[2],z,-te,J[0],J[1],J[2],J[3],j[0],j[1],j[2],K[0],K[1],K[2],z,te,J[0],J[1],J[2],J[3]),I+=4}}if(this.buffer.update(E),D.push(z),F.push(P[P.length-1].slice()),this.bounds=L,this.vertexCount=I,this.points=F,this.arcLength=D,"dashes"in v){var ie=v.dashes,Q=ie.slice();for(Q.unshift(0),A=1;A<Q.length;++A)Q[A]=Q[A-1]+Q[A];var re=g(new Array(256*4),[256,1,4]);for(A=0;A<256;++A){for(p=0;p<4;++p)re.set(A,0,p,0);x.le(Q,Q[Q.length-1]*A/255)&1?re.set(A,0,0,0):re.set(A,0,0,255)}this.texture.setPixels(re)}},_.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},_.pick=function(v){if(!v||v.id!==this.pickId)return null;var A=d(v.value[0],v.value[1],v.value[2],0),p=x.le(this.arcLength,A);if(p<0)return null;if(p===this.arcLength.length-1)return new M(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),p);for(var R=this.points[p],E=this.points[Math.min(p+1,this.points.length-1)],D=(A-this.arcLength[p])/(this.arcLength[p+1]-this.arcLength[p]),F=1-D,z=[0,0,0],I=0;I<3;++I)z[I]=F*R[I]+D*E[I];var L=Math.min(D<.5?p:p+1,this.points.length-1);return new M(A,z,L,this.points[L])};function y(v){var A=v.gl||v.scene&&v.scene.gl,p=T(A);p.attributes.position.location=0,p.attributes.nextPosition.location=1,p.attributes.arcLength.location=2,p.attributes.lineWidth.location=3,p.attributes.color.location=4;var R=m(A);R.attributes.position.location=0,R.attributes.nextPosition.location=1,R.attributes.arcLength.location=2,R.attributes.lineWidth.location=3,R.attributes.color.location=4;for(var E=l(A),D=u(A,[{buffer:E,size:3,offset:0,stride:48},{buffer:E,size:3,offset:12,stride:48},{buffer:E,size:1,offset:24,stride:48},{buffer:E,size:1,offset:28,stride:48},{buffer:E,size:4,offset:32,stride:48}]),F=g(new Array(256*4),[256,1,4]),z=0;z<1024;++z)F.data[z]=255;var I=s(A,F);I.wrap=A.REPEAT;var L=new h(A,p,R,E,D,I);return L.update(v),L}}),1903:(function(a){a.exports=o;function o(i){var l=new Float32Array(16);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l[4]=i[4],l[5]=i[5],l[6]=i[6],l[7]=i[7],l[8]=i[8],l[9]=i[9],l[10]=i[10],l[11]=i[11],l[12]=i[12],l[13]=i[13],l[14]=i[14],l[15]=i[15],l}}),6864:(function(a){a.exports=o;function o(){var i=new Float32Array(16);return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}}),9921:(function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3],c=i[4],d=i[5],x=i[6],g=i[7],w=i[8],T=i[9],m=i[10],k=i[11],S=i[12],b=i[13],M=i[14],h=i[15],_=l*d-u*c,y=l*x-s*c,v=l*g-f*c,A=u*x-s*d,p=u*g-f*d,R=s*g-f*x,E=w*b-T*S,D=w*M-m*S,F=w*h-k*S,z=T*M-m*b,I=T*h-k*b,L=m*h-k*M;return _*L-y*I+v*z+A*F-p*D+R*E}}),7399:(function(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],c=l[3],d=u+u,x=s+s,g=f+f,w=u*d,T=s*d,m=s*x,k=f*d,S=f*x,b=f*g,M=c*d,h=c*x,_=c*g;return i[0]=1-m-b,i[1]=T+_,i[2]=k-h,i[3]=0,i[4]=T-_,i[5]=1-w-b,i[6]=S+M,i[7]=0,i[8]=k+h,i[9]=S-M,i[10]=1-w-m,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}}),6743:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],d=l[3],x=s+s,g=f+f,w=c+c,T=s*x,m=s*g,k=s*w,S=f*g,b=f*w,M=c*w,h=d*x,_=d*g,y=d*w;return i[0]=1-(S+M),i[1]=m+y,i[2]=k-_,i[3]=0,i[4]=m-y,i[5]=1-(T+M),i[6]=b+h,i[7]=0,i[8]=k+_,i[9]=b-h,i[10]=1-(T+S),i[11]=0,i[12]=u[0],i[13]=u[1],i[14]=u[2],i[15]=1,i}}),7894:(function(a){a.exports=o;function o(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}}),7608:(function(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],c=l[3],d=l[4],x=l[5],g=l[6],w=l[7],T=l[8],m=l[9],k=l[10],S=l[11],b=l[12],M=l[13],h=l[14],_=l[15],y=u*x-s*d,v=u*g-f*d,A=u*w-c*d,p=s*g-f*x,R=s*w-c*x,E=f*w-c*g,D=T*M-m*b,F=T*h-k*b,z=T*_-S*b,I=m*h-k*M,L=m*_-S*M,P=k*_-S*h,O=y*P-v*L+A*I+p*z-R*F+E*D;return O?(O=1/O,i[0]=(x*P-g*L+w*I)*O,i[1]=(f*L-s*P-c*I)*O,i[2]=(M*E-h*R+_*p)*O,i[3]=(k*R-m*E-S*p)*O,i[4]=(g*z-d*P-w*F)*O,i[5]=(u*P-f*z+c*F)*O,i[6]=(h*A-b*E-_*v)*O,i[7]=(T*E-k*A+S*v)*O,i[8]=(d*L-x*z+w*D)*O,i[9]=(s*z-u*L-c*D)*O,i[10]=(b*R-M*A+_*y)*O,i[11]=(m*A-T*R-S*y)*O,i[12]=(x*F-d*I-g*D)*O,i[13]=(u*I-s*F+f*D)*O,i[14]=(M*v-b*p-h*y)*O,i[15]=(T*p-m*v+k*y)*O,i):null}}),6582:(function(a,o,i){var l=i(7894);a.exports=u;function u(s,f,c,d){var x,g,w,T,m,k,S,b,M,h,_=f[0],y=f[1],v=f[2],A=d[0],p=d[1],R=d[2],E=c[0],D=c[1],F=c[2];return Math.abs(_-E)<1e-6&&Math.abs(y-D)<1e-6&&Math.abs(v-F)<1e-6?l(s):(S=_-E,b=y-D,M=v-F,h=1/Math.sqrt(S*S+b*b+M*M),S*=h,b*=h,M*=h,x=p*M-R*b,g=R*S-A*M,w=A*b-p*S,h=Math.sqrt(x*x+g*g+w*w),h?(h=1/h,x*=h,g*=h,w*=h):(x=0,g=0,w=0),T=b*w-M*g,m=M*x-S*w,k=S*g-b*x,h=Math.sqrt(T*T+m*m+k*k),h?(h=1/h,T*=h,m*=h,k*=h):(T=0,m=0,k=0),s[0]=x,s[1]=T,s[2]=S,s[3]=0,s[4]=g,s[5]=m,s[6]=b,s[7]=0,s[8]=w,s[9]=k,s[10]=M,s[11]=0,s[12]=-(x*_+g*y+w*v),s[13]=-(T*_+m*y+k*v),s[14]=-(S*_+b*y+M*v),s[15]=1,s)}}),6760:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],d=l[3],x=l[4],g=l[5],w=l[6],T=l[7],m=l[8],k=l[9],S=l[10],b=l[11],M=l[12],h=l[13],_=l[14],y=l[15],v=u[0],A=u[1],p=u[2],R=u[3];return i[0]=v*s+A*x+p*m+R*M,i[1]=v*f+A*g+p*k+R*h,i[2]=v*c+A*w+p*S+R*_,i[3]=v*d+A*T+p*b+R*y,v=u[4],A=u[5],p=u[6],R=u[7],i[4]=v*s+A*x+p*m+R*M,i[5]=v*f+A*g+p*k+R*h,i[6]=v*c+A*w+p*S+R*_,i[7]=v*d+A*T+p*b+R*y,v=u[8],A=u[9],p=u[10],R=u[11],i[8]=v*s+A*x+p*m+R*M,i[9]=v*f+A*g+p*k+R*h,i[10]=v*c+A*w+p*S+R*_,i[11]=v*d+A*T+p*b+R*y,v=u[12],A=u[13],p=u[14],R=u[15],i[12]=v*s+A*x+p*m+R*M,i[13]=v*f+A*g+p*k+R*h,i[14]=v*c+A*w+p*S+R*_,i[15]=v*d+A*T+p*b+R*y,i}}),4040:(function(a){a.exports=o;function o(i,l,u,s,f,c,d){var x=1/(l-u),g=1/(s-f),w=1/(c-d);return i[0]=-2*x,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*g,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=2*w,i[11]=0,i[12]=(l+u)*x,i[13]=(f+s)*g,i[14]=(d+c)*w,i[15]=1,i}}),4772:(function(a){a.exports=o;function o(i,l,u,s,f){var c=1/Math.tan(l/2),d=1/(s-f);return i[0]=c/u,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=c,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=(f+s)*d,i[11]=-1,i[12]=0,i[13]=0,i[14]=2*f*s*d,i[15]=0,i}}),6079:(function(a){a.exports=o;function o(i,l,u,s){var f=s[0],c=s[1],d=s[2],x=Math.sqrt(f*f+c*c+d*d),g,w,T,m,k,S,b,M,h,_,y,v,A,p,R,E,D,F,z,I,L,P,O,U;return Math.abs(x)<1e-6?null:(x=1/x,f*=x,c*=x,d*=x,g=Math.sin(u),w=Math.cos(u),T=1-w,m=l[0],k=l[1],S=l[2],b=l[3],M=l[4],h=l[5],_=l[6],y=l[7],v=l[8],A=l[9],p=l[10],R=l[11],E=f*f*T+w,D=c*f*T+d*g,F=d*f*T-c*g,z=f*c*T-d*g,I=c*c*T+w,L=d*c*T+f*g,P=f*d*T+c*g,O=c*d*T-f*g,U=d*d*T+w,i[0]=m*E+M*D+v*F,i[1]=k*E+h*D+A*F,i[2]=S*E+_*D+p*F,i[3]=b*E+y*D+R*F,i[4]=m*z+M*I+v*L,i[5]=k*z+h*I+A*L,i[6]=S*z+_*I+p*L,i[7]=b*z+y*I+R*L,i[8]=m*P+M*O+v*U,i[9]=k*P+h*O+A*U,i[10]=S*P+_*O+p*U,i[11]=b*P+y*O+R*U,l!==i&&(i[12]=l[12],i[13]=l[13],i[14]=l[14],i[15]=l[15]),i)}}),5567:(function(a){a.exports=o;function o(i,l,u){var s=Math.sin(u),f=Math.cos(u),c=l[4],d=l[5],x=l[6],g=l[7],w=l[8],T=l[9],m=l[10],k=l[11];return l!==i&&(i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i[12]=l[12],i[13]=l[13],i[14]=l[14],i[15]=l[15]),i[4]=c*f+w*s,i[5]=d*f+T*s,i[6]=x*f+m*s,i[7]=g*f+k*s,i[8]=w*f-c*s,i[9]=T*f-d*s,i[10]=m*f-x*s,i[11]=k*f-g*s,i}}),2408:(function(a){a.exports=o;function o(i,l,u){var s=Math.sin(u),f=Math.cos(u),c=l[0],d=l[1],x=l[2],g=l[3],w=l[8],T=l[9],m=l[10],k=l[11];return l!==i&&(i[4]=l[4],i[5]=l[5],i[6]=l[6],i[7]=l[7],i[12]=l[12],i[13]=l[13],i[14]=l[14],i[15]=l[15]),i[0]=c*f-w*s,i[1]=d*f-T*s,i[2]=x*f-m*s,i[3]=g*f-k*s,i[8]=c*s+w*f,i[9]=d*s+T*f,i[10]=x*s+m*f,i[11]=g*s+k*f,i}}),7089:(function(a){a.exports=o;function o(i,l,u){var s=Math.sin(u),f=Math.cos(u),c=l[0],d=l[1],x=l[2],g=l[3],w=l[4],T=l[5],m=l[6],k=l[7];return l!==i&&(i[8]=l[8],i[9]=l[9],i[10]=l[10],i[11]=l[11],i[12]=l[12],i[13]=l[13],i[14]=l[14],i[15]=l[15]),i[0]=c*f+w*s,i[1]=d*f+T*s,i[2]=x*f+m*s,i[3]=g*f+k*s,i[4]=w*f-c*s,i[5]=T*f-d*s,i[6]=m*f-x*s,i[7]=k*f-g*s,i}}),2504:(function(a){a.exports=o;function o(i,l,u){var s=u[0],f=u[1],c=u[2];return i[0]=l[0]*s,i[1]=l[1]*s,i[2]=l[2]*s,i[3]=l[3]*s,i[4]=l[4]*f,i[5]=l[5]*f,i[6]=l[6]*f,i[7]=l[7]*f,i[8]=l[8]*c,i[9]=l[9]*c,i[10]=l[10]*c,i[11]=l[11]*c,i[12]=l[12],i[13]=l[13],i[14]=l[14],i[15]=l[15],i}}),7656:(function(a){a.exports=o;function o(i,l,u){var s=u[0],f=u[1],c=u[2],d,x,g,w,T,m,k,S,b,M,h,_;return l===i?(i[12]=l[0]*s+l[4]*f+l[8]*c+l[12],i[13]=l[1]*s+l[5]*f+l[9]*c+l[13],i[14]=l[2]*s+l[6]*f+l[10]*c+l[14],i[15]=l[3]*s+l[7]*f+l[11]*c+l[15]):(d=l[0],x=l[1],g=l[2],w=l[3],T=l[4],m=l[5],k=l[6],S=l[7],b=l[8],M=l[9],h=l[10],_=l[11],i[0]=d,i[1]=x,i[2]=g,i[3]=w,i[4]=T,i[5]=m,i[6]=k,i[7]=S,i[8]=b,i[9]=M,i[10]=h,i[11]=_,i[12]=d*s+T*f+b*c+l[12],i[13]=x*s+m*f+M*c+l[13],i[14]=g*s+k*f+h*c+l[14],i[15]=w*s+S*f+_*c+l[15]),i}}),5665:(function(a){a.exports=o;function o(i,l){if(i===l){var u=l[1],s=l[2],f=l[3],c=l[6],d=l[7],x=l[11];i[1]=l[4],i[2]=l[8],i[3]=l[12],i[4]=u,i[6]=l[9],i[7]=l[13],i[8]=s,i[9]=c,i[11]=l[14],i[12]=f,i[13]=d,i[14]=x}else i[0]=l[0],i[1]=l[4],i[2]=l[8],i[3]=l[12],i[4]=l[1],i[5]=l[5],i[6]=l[9],i[7]=l[13],i[8]=l[2],i[9]=l[6],i[10]=l[10],i[11]=l[14],i[12]=l[3],i[13]=l[7],i[14]=l[11],i[15]=l[15];return i}}),7626:(function(a,o,i){"use strict";var l=i(2642),u=i(9346);a.exports=x;function s(g,w){for(var T=[0,0,0,0],m=0;m<4;++m)for(var k=0;k<4;++k)T[k]+=g[4*m+k]*w[m];return T}function f(g,w,T,m,k){for(var S=s(m,s(T,s(w,[g[0],g[1],g[2],1]))),b=0;b<3;++b)S[b]/=S[3];return[.5*k[0]*(1+S[0]),.5*k[1]*(1-S[1])]}function c(g,w){if(g.length===2){for(var T=0,m=0,k=0;k<2;++k)T+=Math.pow(w[k]-g[0][k],2),m+=Math.pow(w[k]-g[1][k],2);return T=Math.sqrt(T),m=Math.sqrt(m),T+m<1e-6?[1,0]:[m/(T+m),T/(m+T)]}else if(g.length===3){var S=[0,0];return u(g[0],g[1],g[2],w,S),l(g,S)}return[]}function d(g,w){for(var T=[0,0,0],m=0;m<g.length;++m)for(var k=g[m],S=w[m],b=0;b<3;++b)T[b]+=S*k[b];return T}function x(g,w,T,m,k,S){if(g.length===1)return[0,g[0].slice()];for(var b=new Array(g.length),M=0;M<g.length;++M)b[M]=f(g[M],T,m,k,S);for(var h=0,_=1/0,M=0;M<b.length;++M){for(var y=0,v=0;v<2;++v)y+=Math.pow(b[M][v]-w[v],2);y<_&&(_=y,h=M)}for(var A=c(b,w),p=0,M=0;M<3;++M){if(A[M]<-.001||A[M]>1.0001)return null;p+=A[M]}return Math.abs(p-1)>.001?null:[h,d(g,A),A]}}),840:(function(a,o,i){var l=i(3236),u=l([`precision highp float;
#define GLSLIFY 1
attribute vec3 position, normal;
attribute vec4 color;
attribute vec2 uv;
uniform mat4 model
, view
, projection
, inverseModel;
uniform vec3 eyePosition
, lightPosition;
varying vec3 f_normal
, f_lightDirection
, f_eyeDirection
, f_data;
varying vec4 f_color;
varying vec2 f_uv;
vec4 project(vec3 p) {
return projection * (view * (model * vec4(p, 1.0)));
}
void main() {
gl_Position = project(position);
//Lighting geometry parameters
vec4 cameraCoordinate = view * vec4(position , 1.0);
cameraCoordinate.xyz /= cameraCoordinate.w;
f_lightDirection = lightPosition - cameraCoordinate.xyz;
f_eyeDirection = eyePosition - cameraCoordinate.xyz;
f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);
f_color = color;
f_data = position;
f_uv = uv;
}
`]),s=l([`#extension GL_OES_standard_derivatives : enable
precision highp float;
#define GLSLIFY 1
float beckmannDistribution(float x, float roughness) {
float NdotH = max(x, 0.0001);
float cos2Alpha = NdotH * NdotH;
float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;
float roughness2 = roughness * roughness;
float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;
return exp(tan2Alpha / roughness2) / denom;
}
float cookTorranceSpecular(
vec3 lightDirection,
vec3 viewDirection,
vec3 surfaceNormal,
float roughness,
float fresnel) {
float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);
float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);
//Half angle vector
vec3 H = normalize(lightDirection + viewDirection);
//Geometric term
float NdotH = max(dot(surfaceNormal, H), 0.0);
float VdotH = max(dot(viewDirection, H), 0.000001);
float LdotH = max(dot(lightDirection, H), 0.000001);
float G1 = (2.0 * NdotH * VdotN) / VdotH;
float G2 = (2.0 * NdotH * LdotN) / LdotH;
float G = min(1.0, min(G1, G2));
//Distribution term
float D = beckmannDistribution(NdotH, roughness);
//Fresnel term
float F = pow(1.0 - VdotN, fresnel);
//Multiply terms and done
return G * F * D / max(3.14159265 * VdotN, 0.000001);
}
//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform float roughness
, fresnel
, kambient
, kdiffuse
, kspecular;
uniform sampler2D texture;
varying vec3 f_normal
, f_lightDirection
, f_eyeDirection
, f_data;
varying vec4 f_color;
varying vec2 f_uv;
void main() {
if (f_color.a == 0.0 ||
outOfRange(clipBounds[0], clipBounds[1], f_data)
) discard;
vec3 N = normalize(f_normal);
vec3 L = normalize(f_lightDirection);
vec3 V = normalize(f_eyeDirection);
if(gl_FrontFacing) {
N = -N;
}
float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));
//float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d
float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);
vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);
vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);
gl_FragColor = litColor * f_color.a;
}
`]),f=l([`precision highp float;
#define GLSLIFY 1
attribute vec3 position;
attribute vec4 color;
attribute vec2 uv;
uniform mat4 model, view, projection;
varying vec4 f_color;
varying vec3 f_data;
varying vec2 f_uv;
void main() {
gl_Position = projection * (view * (model * vec4(position, 1.0)));
f_color = color;
f_data = position;
f_uv = uv;
}`]),c=l([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform sampler2D texture;
uniform float opacity;
varying vec4 f_color;
varying vec3 f_data;
varying vec2 f_uv;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;
gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;
}`]),d=l([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
attribute vec3 position;
attribute vec4 color;
attribute vec2 uv;
attribute float pointSize;
uniform mat4 model, view, projection;
uniform vec3 clipBounds[2];
varying vec4 f_color;
varying vec2 f_uv;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], position)) {
gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);
} else {
gl_Position = projection * (view * (model * vec4(position, 1.0)));
}
gl_PointSize = pointSize;
f_color = color;
f_uv = uv;
}`]),x=l([`precision highp float;
#define GLSLIFY 1
uniform sampler2D texture;
uniform float opacity;
varying vec4 f_color;
varying vec2 f_uv;
void main() {
vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);
if(dot(pointR, pointR) > 0.25) {
discard;
}
gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;
}`]),g=l([`precision highp float;
#define GLSLIFY 1
attribute vec3 position;
attribute vec4 id;
uniform mat4 model, view, projection;
varying vec3 f_position;
varying vec4 f_id;
void main() {
gl_Position = projection * (view * (model * vec4(position, 1.0)));
f_id = id;
f_position = position;
}`]),w=l([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform float pickId;
varying vec3 f_position;
varying vec4 f_id;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
gl_FragColor = vec4(pickId, f_id.xyz);
}`]),T=l([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
attribute vec3 position;
attribute float pointSize;
attribute vec4 id;
uniform mat4 model, view, projection;
uniform vec3 clipBounds[2];
varying vec3 f_position;
varying vec4 f_id;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], position)) {
gl_Position = vec4(0.0, 0.0, 0.0, 0.0);
} else {
gl_Position = projection * (view * (model * vec4(position, 1.0)));
gl_PointSize = pointSize;
}
f_id = id;
f_position = position;
}`]),m=l([`precision highp float;
#define GLSLIFY 1
attribute vec3 position;
uniform mat4 model, view, projection;
void main() {
gl_Position = projection * (view * (model * vec4(position, 1.0)));
}`]),k=l([`precision highp float;
#define GLSLIFY 1
uniform vec3 contourColor;
void main() {
gl_FragColor = vec4(contourColor, 1.0);
}
`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.pointShader={vertex:d,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},o.pickShader={vertex:g,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},o.pointPickShader={vertex:T,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},o.contourShader={vertex:m,fragment:k,attributes:[{name:"position",type:"vec3"}]}}),7201:(function(a,o,i){"use strict";var l=1e-6,u=1e-6,s=i(9405),f=i(2762),c=i(8116),d=i(7766),x=i(8406),g=i(6760),w=i(7608),T=i(9618),m=i(6729),k=i(7765),S=i(1888),b=i(840),M=i(7626),h=b.meshShader,_=b.wireShader,y=b.pointShader,v=b.pickShader,A=b.pointPickShader,p=b.contourShader,R=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(G,q,J,te,Z,ie,Q,re,se,ee,ae,ce,Me,ke,Se,ge,Le,Ee,le,Y,$,pe,oe,ve,he,me,be){this.gl=G,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=J,this.lineShader=te,this.pointShader=Z,this.pickShader=ie,this.pointPickShader=Q,this.contourShader=re,this.trianglePositions=se,this.triangleColors=ae,this.triangleNormals=Me,this.triangleUVs=ce,this.triangleIds=ee,this.triangleVAO=ke,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Se,this.edgeColors=Le,this.edgeUVs=Ee,this.edgeIds=ge,this.edgeVAO=le,this.edgeCount=0,this.pointPositions=Y,this.pointColors=pe,this.pointUVs=oe,this.pointSizes=ve,this.pointIds=$,this.pointVAO=he,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=me,this.contourVAO=be,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=R,this._view=R,this._projection=R,this._resolution=[1,1]}var D=E.prototype;D.isOpaque=function(){return!this.hasAlpha},D.isTransparent=function(){return this.hasAlpha},D.pickSlots=1,D.setPickBase=function(G){this.pickId=G};function F(G,q){if(!q||!q.length)return 1;for(var J=0;J<q.length;++J){if(q.length<2)return 1;if(q[J][0]===G)return q[J][1];if(q[J][0]>G&&J>0){var te=(q[J][0]-G)/(q[J][0]-q[J-1][0]);return q[J][1]*(1-te)+te*q[J-1][1]}}return 1}function z(G,q){for(var J=m({colormap:G,nshades:256,format:"rgba"}),te=new Uint8Array(256*4),Z=0;Z<256;++Z){for(var ie=J[Z],Q=0;Q<3;++Q)te[4*Z+Q]=ie[Q];q?te[4*Z+3]=255*F(Z/255,q):te[4*Z+3]=255*ie[3]}return T(te,[256,256,4],[4,0,1])}function I(G){for(var q=G.length,J=new Array(q),te=0;te<q;++te)J[te]=G[te][2];return J}D.highlight=function(G){if(!G||!this.contourEnable){this.contourCount=0;return}for(var q=k(this.cells,this.intensity,G.intensity),J=q.cells,te=q.vertexIds,Z=q.vertexWeights,ie=J.length,Q=S.mallocFloat32(6*ie),re=0,se=0;se<ie;++se)for(var ee=J[se],ae=0;ae<2;++ae){var ce=ee[0];ee.length===2&&(ce=ee[ae]);for(var Me=te[ce][0],ke=te[ce][1],Se=Z[ce],ge=1-Se,Le=this.positions[Me],Ee=this.positions[ke],le=0;le<3;++le)Q[re++]=Se*Le[le]+ge*Ee[le]}this.contourCount=re/3|0,this.contourPositions.update(Q.subarray(0,re)),S.free(Q)},D.update=function(G){G=G||{};var q=this.gl;this.dirty=!0,"contourEnable"in G&&(this.contourEnable=G.contourEnable),"contourColor"in G&&(this.contourColor=G.contourColor),"lineWidth"in G&&(this.lineWidth=G.lineWidth),"lightPosition"in G&&(this.lightPosition=G.lightPosition),this.hasAlpha=!1,"opacity"in G&&(this.opacity=G.opacity,this.opacity<1&&(this.hasAlpha=!0)),"opacityscale"in G&&(this.opacityscale=G.opacityscale,this.hasAlpha=!0),"ambient"in G&&(this.ambientLight=G.ambient),"diffuse"in G&&(this.diffuseLight=G.diffuse),"specular"in G&&(this.specularLight=G.specular),"roughness"in G&&(this.roughness=G.roughness),"fresnel"in G&&(this.fresnel=G.fresnel),G.texture?(this.texture.dispose(),this.texture=d(q,G.texture)):G.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=q.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=q.LINEAR,this.texture.setPixels(z(G.colormap,this.opacityscale)),this.texture.generateMipmap());var J=G.cells,te=G.positions;if(!(!te||!J)){var Z=[],ie=[],Q=[],re=[],se=[],ee=[],ae=[],ce=[],Me=[],ke=[],Se=[],ge=[],Le=[],Ee=[];this.cells=J,this.positions=te;var le=G.vertexNormals,Y=G.cellNormals,$=G.vertexNormalsEpsilon===void 0?l:G.vertexNormalsEpsilon,pe=G.faceNormalsEpsilon===void 0?u:G.faceNormalsEpsilon;G.useFacetNormals&&!Y&&(Y=x.faceNormals(J,te,pe)),!Y&&!le&&(le=x.vertexNormals(J,te,$));var oe=G.vertexColors,ve=G.cellColors,he=G.meshColor||[1,1,1,1],me=G.vertexUVs,be=G.vertexIntensity,ye=G.cellUVs,de=G.cellIntensity,_e=1/0,Ae=-1/0;if(!me&&!ye)if(be)if(G.vertexIntensityBounds)_e=+G.vertexIntensityBounds[0],Ae=+G.vertexIntensityBounds[1];else for(var Ie=0;Ie<be.length;++Ie){var Pe=be[Ie];_e=Math.min(_e,Pe),Ae=Math.max(Ae,Pe)}else if(de)if(G.cellIntensityBounds)_e=+G.cellIntensityBounds[0],Ae=+G.cellIntensityBounds[1];else for(var Ie=0;Ie<de.length;++Ie){var Pe=de[Ie];_e=Math.min(_e,Pe),Ae=Math.max(Ae,Pe)}else for(var Ie=0;Ie<te.length;++Ie){var Pe=te[Ie][2];_e=Math.min(_e,Pe),Ae=Math.max(Ae,Pe)}be?this.intensity=be:de?this.intensity=de:this.intensity=I(te),this.pickVertex=!(de||ve);var Ye=G.pointSizes,qe=G.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(var Ie=0;Ie<te.length;++Ie)for(var Oe=te[Ie],Be=0;Be<3;++Be)isNaN(Oe[Be])||!isFinite(Oe[Be])||(this.bounds[0][Be]=Math.min(this.bounds[0][Be],Oe[Be]),this.bounds[1][Be]=Math.max(this.bounds[1][Be],Oe[Be]));var We=0,Xe=0,tr=0;e:for(var Ie=0;Ie<J.length;++Ie){var ir=J[Ie];switch(ir.length){case 1:for(var je=ir[0],Oe=te[je],Be=0;Be<3;++Be)if(isNaN(Oe[Be])||!isFinite(Oe[Be]))continue e;ke.push(Oe[0],Oe[1],Oe[2]);var Ke;oe?Ke=oe[je]:ve?Ke=ve[Ie]:Ke=he,this.opacityscale&&be?ie.push(Ke[0],Ke[1],Ke[2],this.opacity*F((be[je]-_e)/(Ae-_e),this.opacityscale)):Ke.length===3?Se.push(Ke[0],Ke[1],Ke[2],this.opacity):(Se.push(Ke[0],Ke[1],Ke[2],Ke[3]*this.opacity),Ke[3]<1&&(this.hasAlpha=!0));var Ce;me?Ce=me[je]:be?Ce=[(be[je]-_e)/(Ae-_e),0]:ye?Ce=ye[Ie]:de?Ce=[(de[Ie]-_e)/(Ae-_e),0]:Ce=[(Oe[2]-_e)/(Ae-_e),0],ge.push(Ce[0],Ce[1]),Ye?Le.push(Ye[je]):Le.push(qe),Ee.push(Ie),tr+=1;break;case 2:for(var Be=0;Be<2;++Be)for(var je=ir[Be],Oe=te[je],Fe=0;Fe<3;++Fe)if(isNaN(Oe[Fe])||!isFinite(Oe[Fe]))continue e;for(var Be=0;Be<2;++Be){var je=ir[Be],Oe=te[je];ee.push(Oe[0],Oe[1],Oe[2]);var Ke;oe?Ke=oe[je]:ve?Ke=ve[Ie]:Ke=he,this.opacityscale&&be?ie.push(Ke[0],Ke[1],Ke[2],this.opacity*F((be[je]-_e)/(Ae-_e),this.opacityscale)):Ke.length===3?ae.push(Ke[0],Ke[1],Ke[2],this.opacity):(ae.push(Ke[0],Ke[1],Ke[2],Ke[3]*this.opacity),Ke[3]<1&&(this.hasAlpha=!0));var Ce;me?Ce=me[je]:be?Ce=[(be[je]-_e)/(Ae-_e),0]:ye?Ce=ye[Ie]:de?Ce=[(de[Ie]-_e)/(Ae-_e),0]:Ce=[(Oe[2]-_e)/(Ae-_e),0],ce.push(Ce[0],Ce[1]),Me.push(Ie)}Xe+=1;break;case 3:for(var Be=0;Be<3;++Be)for(var je=ir[Be],Oe=te[je],Fe=0;Fe<3;++Fe)if(isNaN(Oe[Fe])||!isFinite(Oe[Fe]))continue e;for(var Be=0;Be<3;++Be){var je=ir[2-Be],Oe=te[je];Z.push(Oe[0],Oe[1],Oe[2]);var Ke;oe?Ke=oe[je]:ve?Ke=ve[Ie]:Ke=he,Ke?this.opacityscale&&be?ie.push(Ke[0],Ke[1],Ke[2],this.opacity*F((be[je]-_e)/(Ae-_e),this.opacityscale)):Ke.length===3?ie.push(Ke[0],Ke[1],Ke[2],this.opacity):(ie.push(Ke[0],Ke[1],Ke[2],Ke[3]*this.opacity),Ke[3]<1&&(this.hasAlpha=!0)):ie.push(.5,.5,.5,1);var Ce;me?Ce=me[je]:be?Ce=[(be[je]-_e)/(Ae-_e),0]:ye?Ce=ye[Ie]:de?Ce=[(de[Ie]-_e)/(Ae-_e),0]:Ce=[(Oe[2]-_e)/(Ae-_e),0],re.push(Ce[0],Ce[1]);var Qe;le?Qe=le[je]:Qe=Y[Ie],Q.push(Qe[0],Qe[1],Qe[2]),se.push(Ie)}We+=1;break;default:break}}this.pointCount=tr,this.edgeCount=Xe,this.triangleCount=We,this.pointPositions.update(ke),this.pointColors.update(Se),this.pointUVs.update(ge),this.pointSizes.update(Le),this.pointIds.update(new Uint32Array(Ee)),this.edgePositions.update(ee),this.edgeColors.update(ae),this.edgeUVs.update(ce),this.edgeIds.update(new Uint32Array(Me)),this.trianglePositions.update(Z),this.triangleColors.update(ie),this.triangleUVs.update(re),this.triangleNormals.update(Q),this.triangleIds.update(new Uint32Array(se))}},D.drawTransparent=D.draw=function(G){G=G||{};for(var q=this.gl,J=G.model||R,te=G.view||R,Z=G.projection||R,ie=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Q=0;Q<3;++Q)ie[0][Q]=Math.max(ie[0][Q],this.clipBounds[0][Q]),ie[1][Q]=Math.min(ie[1][Q],this.clipBounds[1][Q]);var re={model:J,view:te,projection:Z,inverseModel:R.slice(),clipBounds:ie,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};re.inverseModel=w(re.inverseModel,re.model),q.disable(q.CULL_FACE),this.texture.bind(0);var se=new Array(16);g(se,re.view,re.model),g(se,re.projection,se),w(se,se);for(var Q=0;Q<3;++Q)re.eyePosition[Q]=se[12+Q]/se[15];for(var ee=se[15],Q=0;Q<3;++Q)ee+=this.lightPosition[Q]*se[4*Q+3];for(var Q=0;Q<3;++Q){for(var ae=se[12+Q],ce=0;ce<3;++ce)ae+=se[4*ce+Q]*this.lightPosition[ce];re.lightPosition[Q]=ae/ee}if(this.triangleCount>0){var Me=this.triShader;Me.bind(),Me.uniforms=re,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Me=this.lineShader;Me.bind(),Me.uniforms=re,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var Me=this.pointShader;Me.bind(),Me.uniforms=re,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Me=this.contourShader;Me.bind(),Me.uniforms=re,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},D.drawPick=function(G){G=G||{};for(var q=this.gl,J=G.model||R,te=G.view||R,Z=G.projection||R,ie=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Q=0;Q<3;++Q)ie[0][Q]=Math.max(ie[0][Q],this.clipBounds[0][Q]),ie[1][Q]=Math.min(ie[1][Q],this.clipBounds[1][Q]);this._model=[].slice.call(J),this._view=[].slice.call(te),this._projection=[].slice.call(Z),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var re={model:J,view:te,projection:Z,clipBounds:ie,pickId:this.pickId/255},se=this.pickShader;if(se.bind(),se.uniforms=re,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var se=this.pointPickShader;se.bind(),se.uniforms=re,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},D.pick=function(G){if(!G||G.id!==this.pickId)return null;for(var q=G.value[0]+256*G.value[1]+65536*G.value[2],J=this.cells[q],te=this.positions,Z=new Array(J.length),ie=0;ie<J.length;++ie)Z[ie]=te[J[ie]];var Q=G.coord[0],re=G.coord[1];if(!this.pickVertex){var se=this.positions[J[0]],ee=this.positions[J[1]],ae=this.positions[J[2]],ce=[(se[0]+ee[0]+ae[0])/3,(se[1]+ee[1]+ae[1])/3,(se[2]+ee[2]+ae[2])/3];return{_cellCenter:!0,position:[Q,re],index:q,cell:J,cellId:q,intensity:this.intensity[q],dataCoordinate:ce}}var Me=M(Z,[Q*this.pixelRatio,this._resolution[1]-re*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!Me)return null;for(var ke=Me[2],Se=0,ie=0;ie<J.length;++ie)Se+=ke[ie]*this.intensity[J[ie]];return{position:Me[1],index:J[Me[0]],cell:J,cellId:q,intensity:Se,dataCoordinate:this.positions[J[Me[0]]]}},D.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()};function L(G){var q=s(G,h.vertex,h.fragment);return q.attributes.position.location=0,q.attributes.color.location=2,q.attributes.uv.location=3,q.attributes.normal.location=4,q}function P(G){var q=s(G,_.vertex,_.fragment);return q.attributes.position.location=0,q.attributes.color.location=2,q.attributes.uv.location=3,q}function O(G){var q=s(G,y.vertex,y.fragment);return q.attributes.position.location=0,q.attributes.color.location=2,q.attributes.uv.location=3,q.attributes.pointSize.location=4,q}function U(G){var q=s(G,v.vertex,v.fragment);return q.attributes.position.location=0,q.attributes.id.location=1,q}function V(G){var q=s(G,A.vertex,A.fragment);return q.attributes.position.location=0,q.attributes.id.location=1,q.attributes.pointSize.location=4,q}function K(G){var q=s(G,p.vertex,p.fragment);return q.attributes.position.location=0,q}function j(G,q){arguments.length===1&&(q=G,G=q.gl);var J=G.getExtension("OES_standard_derivatives")||G.getExtension("MOZ_OES_standard_derivatives")||G.getExtension("WEBKIT_OES_standard_derivatives");if(!J)throw new Error("derivatives not supported");var te=L(G),Z=P(G),ie=O(G),Q=U(G),re=V(G),se=K(G),ee=d(G,T(new Uint8Array([255,255,255,255]),[1,1,4]));ee.generateMipmap(),ee.minFilter=G.LINEAR_MIPMAP_LINEAR,ee.magFilter=G.LINEAR;var ae=f(G),ce=f(G),Me=f(G),ke=f(G),Se=f(G),ge=c(G,[{buffer:ae,type:G.FLOAT,size:3},{buffer:Se,type:G.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:ce,type:G.FLOAT,size:4},{buffer:Me,type:G.FLOAT,size:2},{buffer:ke,type:G.FLOAT,size:3}]),Le=f(G),Ee=f(G),le=f(G),Y=f(G),$=c(G,[{buffer:Le,type:G.FLOAT,size:3},{buffer:Y,type:G.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Ee,type:G.FLOAT,size:4},{buffer:le,type:G.FLOAT,size:2}]),pe=f(G),oe=f(G),ve=f(G),he=f(G),me=f(G),be=c(G,[{buffer:pe,type:G.FLOAT,size:3},{buffer:me,type:G.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:oe,type:G.FLOAT,size:4},{buffer:ve,type:G.FLOAT,size:2},{buffer:he,type:G.FLOAT,size:1}]),ye=f(G),de=c(G,[{buffer:ye,type:G.FLOAT,size:3}]),_e=new E(G,ee,te,Z,ie,Q,re,se,ae,Se,ce,Me,ke,ge,Le,Y,Ee,le,$,pe,me,oe,ve,he,be,ye,de);return _e.update(q),_e}a.exports=j}),4437:(function(a,o,i){"use strict";a.exports=x;var l=i(3025),u=i(6296),s=i(351),f=i(8512),c=i(24),d=i(7520);function x(g,w){g=g||document.body,w=w||{};var T=[.01,1/0];"distanceLimits"in w&&(T[0]=w.distanceLimits[0],T[1]=w.distanceLimits[1]),"zoomMin"in w&&(T[0]=w.zoomMin),"zoomMax"in w&&(T[1]=w.zoomMax);var m=u({center:w.center||[0,0,0],up:w.up||[0,1,0],eye:w.eye||[0,0,10],mode:w.mode||"orbit",distanceLimits:T}),k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0,b=g.clientWidth,M=g.clientHeight,h={keyBindingMode:"rotate",enableWheel:!0,view:m,element:g,delay:w.delay||16,rotateSpeed:w.rotateSpeed||1,zoomSpeed:w.zoomSpeed||1,translateSpeed:w.translateSpeed||1,flipX:!!w.flipX,flipY:!!w.flipY,modes:m.modes,_ortho:w._ortho||w.projection&&w.projection.type==="orthographic"||!1,tick:function(){var _=l(),y=this.delay,v=_-2*y;m.idle(_-y),m.recalcMatrix(v),m.flush(_-(100+y*2));for(var A=!0,p=m.computedMatrix,R=0;R<16;++R)A=A&&k[R]===p[R],k[R]=p[R];var E=g.clientWidth===b&&g.clientHeight===M;return b=g.clientWidth,M=g.clientHeight,A?!E:(S=Math.exp(m.computedRadius[0]),!0)},lookAt:function(_,y,v){m.lookAt(m.lastT(),_,y,v)},rotate:function(_,y,v){m.rotate(m.lastT(),_,y,v)},pan:function(_,y,v){m.pan(m.lastT(),_,y,v)},translate:function(_,y,v){m.translate(m.lastT(),_,y,v)}};return Object.defineProperties(h,{matrix:{get:function(){return m.computedMatrix},set:function(_){return m.setMatrix(m.lastT(),_),m.computedMatrix},enumerable:!0},mode:{get:function(){return m.getMode()},set:function(_){var y=m.computedUp.slice(),v=m.computedEye.slice(),A=m.computedCenter.slice();if(m.setMode(_),_==="turntable"){var p=l();m._active.lookAt(p,v,A,y),m._active.lookAt(p+500,v,A,[0,0,1]),m._active.flush(p)}return m.getMode()},enumerable:!0},center:{get:function(){return m.computedCenter},set:function(_){return m.lookAt(m.lastT(),null,_),m.computedCenter},enumerable:!0},eye:{get:function(){return m.computedEye},set:function(_){return m.lookAt(m.lastT(),_),m.computedEye},enumerable:!0},up:{get:function(){return m.computedUp},set:function(_){return m.lookAt(m.lastT(),null,null,_),m.computedUp},enumerable:!0},distance:{get:function(){return S},set:function(_){return m.setDistance(m.lastT(),_),_},enumerable:!0},distanceLimits:{get:function(){return m.getDistanceLimits(T)},set:function(_){return m.setDistanceLimits(_),_},enumerable:!0}}),g.addEventListener("contextmenu",function(_){return _.preventDefault(),!1}),h._lastX=-1,h._lastY=-1,h._lastMods={shift:!1,control:!1,alt:!1,meta:!1},h.enableMouseListeners=function(){h.mouseListener=s(g,_),g.addEventListener("touchstart",function(y){var v=c(y.changedTouches[0],g);_(0,v[0],v[1],h._lastMods),_(1,v[0],v[1],h._lastMods)},d?{passive:!0}:!1),g.addEventListener("touchmove",function(y){var v=c(y.changedTouches[0],g);_(1,v[0],v[1],h._lastMods),y.preventDefault()},d?{passive:!1}:!1),g.addEventListener("touchend",function(y){_(0,h._lastX,h._lastY,h._lastMods)},d?{passive:!0}:!1);function _(y,v,A,p){var R=h.keyBindingMode;if(R!==!1){var E=R==="rotate",D=R==="pan",F=R==="zoom",z=!!p.control,I=!!p.alt,L=!!p.shift,P=!!(y&1),O=!!(y&2),U=!!(y&4),V=1/g.clientHeight,K=V*(v-h._lastX),j=V*(A-h._lastY),G=h.flipX?1:-1,q=h.flipY?1:-1,J=Math.PI*h.rotateSpeed,te=l();if(h._lastX!==-1&&h._lastY!==-1&&((E&&P&&!z&&!I&&!L||P&&!z&&!I&&L)&&m.rotate(te,G*J*K,-q*J*j,0),(D&&P&&!z&&!I&&!L||O||P&&z&&!I&&!L)&&m.pan(te,-h.translateSpeed*K*S,h.translateSpeed*j*S,0),F&&P&&!z&&!I&&!L||U||P&&!z&&I&&!L)){var Z=-h.zoomSpeed*j/window.innerHeight*(te-m.lastT())*100;m.pan(te,0,0,S*(Math.exp(Z)-1))}return h._lastX=v,h._lastY=A,h._lastMods=p,!0}}h.wheelListener=f(g,function(y,v){if(h.keyBindingMode!==!1&&h.enableWheel){var A=h.flipX?1:-1,p=h.flipY?1:-1,R=l();if(Math.abs(y)>Math.abs(v))m.rotate(R,0,0,-y*A*Math.PI*h.rotateSpeed/window.innerWidth);else if(!h._ortho){var E=-h.zoomSpeed*p*v/window.innerHeight*(R-m.lastT())/20;m.pan(R,0,0,S*(Math.exp(E)-1))}}},!0)},h.enableMouseListeners(),h}}),799:(function(a,o,i){var l=i(3236),u=i(9405),s=l([`precision mediump float;
#define GLSLIFY 1
attribute vec2 position;
varying vec2 uv;
void main() {
uv = position;
gl_Position = vec4(position, 0, 1);
}`]),f=l([`precision mediump float;
#define GLSLIFY 1
uniform sampler2D accumBuffer;
varying vec2 uv;
void main() {
vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));
gl_FragColor = min(vec4(1,1,1,1), accum);
}`]);a.exports=function(c){return u(c,s,f,null,[{name:"position",type:"vec2"}])}}),4100:(function(a,o,i){"use strict";var l=i(4437),u=i(3837),s=i(5445),f=i(4449),c=i(3589),d=i(2260),x=i(7169),g=i(351),w=i(4772),T=i(4040),m=i(799),k=i(9216)({tablet:!0,featureDetect:!0});a.exports={createScene:_,createCamera:l};function S(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function b(v,A){var p=null;try{p=v.getContext("webgl",A),p||(p=v.getContext("experimental-webgl",A))}catch(R){return null}return p}function M(v){var A=Math.round(Math.log(Math.abs(v))/Math.log(10));if(A<0){var p=Math.round(Math.pow(10,-A));return Math.ceil(v*p)/p}else if(A>0){var p=Math.round(Math.pow(10,A));return Math.ceil(v/p)*p}return Math.ceil(v)}function h(v){return typeof v=="boolean"?v:!0}function _(v){v=v||{},v.camera=v.camera||{};var A=v.canvas;if(!A)if(A=document.createElement("canvas"),v.container){var p=v.container;p.appendChild(A)}else document.body.appendChild(A);var R=v.gl;if(R||(v.glOptions&&(k=!!v.glOptions.preserveDrawingBuffer),R=b(A,v.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!R)throw new Error("webgl not supported");var E=v.bounds||[[-10,-10,-10],[10,10,10]],D=new S,F=d(R,R.drawingBufferWidth,R.drawingBufferHeight,{preferFloat:!k}),z=m(R),I=v.cameraObject&&v.cameraObject._ortho===!0||v.camera.projection&&v.camera.projection.type==="orthographic"||!1,L={eye:v.camera.eye||[2,0,0],center:v.camera.center||[0,0,0],up:v.camera.up||[0,1,0],zoomMin:v.camera.zoomMax||.1,zoomMax:v.camera.zoomMin||100,mode:v.camera.mode||"turntable",_ortho:I},P=v.axes||{},O=u(R,P);O.enable=!P.disable;var U=v.spikes||{},V=f(R,U),K=[],j=[],G=[],q=[],J=!0,Q=!0,te=new Array(16),Z=new Array(16),ie={view:null,projection:te,model:Z,_ortho:!1},Q=!0,re=[R.drawingBufferWidth,R.drawingBufferHeight],se=v.cameraObject||l(A,L),ee={gl:R,contextLost:!1,pixelRatio:v.pixelRatio||1,canvas:A,selection:D,camera:se,axes:O,axesPixels:null,spikes:V,bounds:E,objects:K,shape:re,aspect:v.aspectRatio||[1,1,1],pickRadius:v.pickRadius||10,zNear:v.zNear||.01,zFar:v.zFar||1e3,fovy:v.fovy||Math.PI/4,clearColor:v.clearColor||[0,0,0,0],autoResize:h(v.autoResize),autoBounds:h(v.autoBounds),autoScale:!!v.autoScale,autoCenter:h(v.autoCenter),clipToBounds:h(v.clipToBounds),snapToData:!!v.snapToData,onselect:v.onselect||null,onrender:v.onrender||null,onclick:v.onclick||null,cameraParams:ie,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Y){this.aspect[0]=Y.x,this.aspect[1]=Y.y,this.aspect[2]=Y.z,Q=!0},setBounds:function(Y,$){this.bounds[0][Y]=$.min,this.bounds[1][Y]=$.max},setClearColor:function(Y){this.clearColor=Y},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},ae=[R.drawingBufferWidth/ee.pixelRatio|0,R.drawingBufferHeight/ee.pixelRatio|0];function ce(){if(!ee._stopped&&ee.autoResize){var Y=A.parentNode,$=1,pe=1;Y&&Y!==document.body?($=Y.clientWidth,pe=Y.clientHeight):($=window.innerWidth,pe=window.innerHeight);var oe=Math.ceil($*ee.pixelRatio)|0,ve=Math.ceil(pe*ee.pixelRatio)|0;if(oe!==A.width||ve!==A.height){A.width=oe,A.height=ve;var he=A.style;he.position=he.position||"absolute",he.left="0px",he.top="0px",he.width=$+"px",he.height=pe+"px",J=!0}}}ee.autoResize&&ce(),window.addEventListener("resize",ce);function Me(){for(var Y=K.length,$=q.length,pe=0;pe<$;++pe)G[pe]=0;e:for(var pe=0;pe<Y;++pe){var oe=K[pe],ve=oe.pickSlots;if(!ve){j[pe]=-1;continue}for(var he=0;he<$;++he)if(G[he]+ve<255){j[pe]=he,oe.setPickBase(G[he]+1),G[he]+=ve;continue e}var me=c(R,re);j[pe]=$,q.push(me),G.push(ve),oe.setPickBase(1),$+=1}for(;$>0&&G[$-1]===0;)G.pop(),q.pop().dispose()}ee.update=function(Y){ee._stopped||(Y=Y||{},J=!0,Q=!0)},ee.add=function(Y){ee._stopped||(Y.axes=O,K.push(Y),j.push(-1),J=!0,Q=!0,Me())},ee.remove=function(Y){if(!ee._stopped){var $=K.indexOf(Y);$<0||(K.splice($,1),j.pop(),J=!0,Q=!0,Me())}},ee.dispose=function(){if(!ee._stopped&&(ee._stopped=!0,window.removeEventListener("resize",ce),A.removeEventListener("webglcontextlost",ke),ee.mouseListener.enabled=!1,!ee.contextLost)){O.dispose(),V.dispose();for(var Y=0;Y<K.length;++Y)K[Y].dispose();F.dispose();for(var Y=0;Y<q.length;++Y)q[Y].dispose();z.dispose(),R=null,O=null,V=null,K=[]}},ee._mouseRotating=!1,ee._prevButtons=0,ee.enableMouseListeners=function(){ee.mouseListener=g(A,function(Y,$,pe){if(!ee._stopped){var oe=q.length,ve=K.length,he=D.object;D.distance=1/0,D.mouse[0]=$,D.mouse[1]=pe,D.object=null,D.screen=null,D.dataCoordinate=D.dataPosition=null;var me=!1;if(Y&&ee._prevButtons)ee._mouseRotating=!0;else{ee._mouseRotating&&(Q=!0),ee._mouseRotating=!1;for(var be=0;be<oe;++be){var ye=q[be].query($,ae[1]-pe-1,ee.pickRadius);if(ye){if(ye.distance>D.distance)continue;for(var de=0;de<ve;++de){var _e=K[de];if(j[de]===be){var Ae=_e.pick(ye);Ae&&(D.buttons=Y,D.screen=ye.coord,D.distance=ye.distance,D.object=_e,D.index=Ae.distance,D.dataPosition=Ae.position,D.dataCoordinate=Ae.dataCoordinate,D.data=Ae,me=!0)}}}}}he&&he!==D.object&&(he.highlight&&he.highlight(null),J=!0),D.object&&(D.object.highlight&&D.object.highlight(D.data),J=!0),me=me||D.object!==he,me&&ee.onselect&&ee.onselect(D),Y&1&&!(ee._prevButtons&1)&&ee.onclick&&ee.onclick(D),ee._prevButtons=Y}})};function ke(){if(ee.contextLost)return!0;R.isContextLost()&&(ee.contextLost=!0,ee.mouseListener.enabled=!1,ee.selection.object=null,ee.oncontextloss&&ee.oncontextloss())}A.addEventListener("webglcontextlost",ke);function Se(){if(!ke()){R.colorMask(!0,!0,!0,!0),R.depthMask(!0),R.disable(R.BLEND),R.enable(R.DEPTH_TEST),R.depthFunc(R.LEQUAL);for(var Y=K.length,$=q.length,pe=0;pe<$;++pe){var oe=q[pe];oe.shape=ae,oe.begin();for(var ve=0;ve<Y;++ve)if(j[ve]===pe){var he=K[ve];he.drawPick&&(he.pixelRatio=1,he.drawPick(ie))}oe.end()}}}var ge=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],Le=[ge[0].slice(),ge[1].slice()];function Ee(){if(!ke()){ce();var Y=ee.camera.tick();ie.view=ee.camera.matrix,J=J||Y,Q=Q||Y,O.pixelRatio=ee.pixelRatio,V.pixelRatio=ee.pixelRatio;var $=K.length,pe=ge[0],oe=ge[1];pe[0]=pe[1]=pe[2]=1/0,oe[0]=oe[1]=oe[2]=-1/0;for(var ve=0;ve<$;++ve){var he=K[ve];he.pixelRatio=ee.pixelRatio,he.axes=ee.axes,J=J||!!he.dirty,Q=Q||!!he.dirty;var me=he.bounds;if(me)for(var be=me[0],ye=me[1],de=0;de<3;++de)pe[de]=Math.min(pe[de],be[de]),oe[de]=Math.max(oe[de],ye[de])}var _e=ee.bounds;if(ee.autoBounds)for(var de=0;de<3;++de){if(oe[de]<pe[de])pe[de]=-1,oe[de]=1;else{pe[de]===oe[de]&&(pe[de]-=1,oe[de]+=1);var Ae=.05*(oe[de]-pe[de]);pe[de]=pe[de]-Ae,oe[de]=oe[de]+Ae}_e[0][de]=pe[de],_e[1][de]=oe[de]}for(var Ie=!1,de=0;de<3;++de)Ie=Ie||Le[0][de]!==_e[0][de]||Le[1][de]!==_e[1][de],Le[0][de]=_e[0][de],Le[1][de]=_e[1][de];if(Q=Q||Ie,J=J||Ie,!!J){if(Ie){for(var Pe=[0,0,0],ve=0;ve<3;++ve)Pe[ve]=M((_e[1][ve]-_e[0][ve])/10);O.autoTicks?O.update({bounds:_e,tickSpacing:Pe}):O.update({bounds:_e})}var Ye=R.drawingBufferWidth,qe=R.drawingBufferHeight;re[0]=Ye,re[1]=qe,ae[0]=Math.max(Ye/ee.pixelRatio,1)|0,ae[1]=Math.max(qe/ee.pixelRatio,1)|0,y(ee,I);for(var ve=0;ve<$;++ve){var he=K[ve];he.axesBounds=_e,ee.clipToBounds&&(he.clipBounds=_e)}D.object&&(ee.snapToData?V.position=D.dataCoordinate:V.position=D.dataPosition,V.bounds=_e),Q&&(Q=!1,Se()),ee.axesPixels=s(ee.axes,ie,Ye,qe),ee.onrender&&ee.onrender(),R.bindFramebuffer(R.FRAMEBUFFER,null),R.viewport(0,0,Ye,qe),ee.clearRGBA(),R.depthMask(!0),R.colorMask(!0,!0,!0,!0),R.enable(R.DEPTH_TEST),R.depthFunc(R.LEQUAL),R.disable(R.BLEND),R.disable(R.CULL_FACE);var Oe=!1;O.enable&&(Oe=Oe||O.isTransparent(),O.draw(ie)),V.axes=O,D.object&&V.draw(ie),R.disable(R.CULL_FACE);for(var ve=0;ve<$;++ve){var he=K[ve];he.axes=O,he.pixelRatio=ee.pixelRatio,he.isOpaque&&he.isOpaque()&&he.draw(ie),he.isTransparent&&he.isTransparent()&&(Oe=!0)}if(Oe){F.shape=re,F.bind(),R.clear(R.DEPTH_BUFFER_BIT),R.colorMask(!1,!1,!1,!1),R.depthMask(!0),R.depthFunc(R.LESS),O.enable&&O.isTransparent()&&O.drawTransparent(ie);for(var ve=0;ve<$;++ve){var he=K[ve];he.isOpaque&&he.isOpaque()&&he.draw(ie)}R.enable(R.BLEND),R.blendEquation(R.FUNC_ADD),R.blendFunc(R.ONE,R.ONE_MINUS_SRC_ALPHA),R.colorMask(!0,!0,!0,!0),R.depthMask(!1),R.clearColor(0,0,0,0),R.clear(R.COLOR_BUFFER_BIT),O.isTransparent()&&O.drawTransparent(ie);for(var ve=0;ve<$;++ve){var he=K[ve];he.isTransparent&&he.isTransparent()&&he.drawTransparent(ie)}R.bindFramebuffer(R.FRAMEBUFFER,null),R.blendFunc(R.ONE,R.ONE_MINUS_SRC_ALPHA),R.disable(R.DEPTH_TEST),z.bind(),F.color[0].bind(0),z.uniforms.accumBuffer=0,x(R),R.disable(R.BLEND)}J=!1;for(var ve=0;ve<$;++ve)K[ve].dirty=!1}}}function le(){ee._stopped||ee.contextLost||(Ee(),requestAnimationFrame(le))}return ee.enableMouseListeners(),le(),ee.redraw=function(){ee._stopped||(J=!0,Ee())},ee}function y(v,A){var p=v.bounds,R=v.cameraParams,E=R.projection,D=R.model,F=v.gl.drawingBufferWidth,z=v.gl.drawingBufferHeight,I=v.zNear,L=v.zFar,P=v.fovy,O=F/z;A?(T(E,-O,O,-1,1,I,L),R._ortho=!0):(w(E,P,O,I,L),R._ortho=!1);for(var U=0;U<16;++U)D[U]=0;D[15]=1;for(var V=0,U=0;U<3;++U)V=Math.max(V,p[1][U]-p[0][U]);for(var U=0;U<3;++U)v.autoScale?D[5*U]=v.aspect[U]/(p[1][U]-p[0][U]):D[5*U]=1/V,v.autoCenter&&(D[12+U]=-D[5*U]*.5*(p[0][U]+p[1][U]))}}),783:(function(a){a.exports=o;function o(i,l,u,s){var f=l[0],c=l[1],d=l[2],x=l[3],g=u[0],w=u[1],T=u[2],m=u[3],k,S,b,M,h;return S=f*g+c*w+d*T+x*m,S<0&&(S=-S,g=-g,w=-w,T=-T,m=-m),1-S>1e-6?(k=Math.acos(S),b=Math.sin(k),M=Math.sin((1-s)*k)/b,h=Math.sin(s*k)/b):(M=1-s,h=s),i[0]=M*f+h*g,i[1]=M*c+h*w,i[2]=M*d+h*T,i[3]=M*x+h*m,i}}),5964:(function(a){"use strict";a.exports=function(o){return!o&&o!==0?"":o.toString()}}),9366:(function(a,o,i){"use strict";var l=i(4359);a.exports=s;var u={};function s(f,c,d){var x=[c.style,c.weight,c.variant,c.family].join("_"),g=u[x];if(g||(g=u[x]={}),f in g)return g[f];var w={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};w.triangles=!0;var T=l(f,w);w.triangles=!1;var m=l(f,w),k,S;if(d&&d!==1){for(k=0;k<T.positions.length;++k)for(S=0;S<T.positions[k].length;++S)T.positions[k][S]/=d;for(k=0;k<m.positions.length;++k)for(S=0;S<m.positions[k].length;++S)m.positions[k][S]/=d}var b=[[1/0,1/0],[-1/0,-1/0]],M=m.positions.length;for(k=0;k<M;++k){var h=m.positions[k];for(S=0;S<2;++S)b[0][S]=Math.min(b[0][S],h[S]),b[1][S]=Math.max(b[1][S],h[S])}return g[f]=[T,m,b]}}),1283:(function(a,o,i){var l=i(9405),u=i(3236),s=u([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
attribute vec3 position;
attribute vec4 color;
attribute vec2 glyph;
attribute vec4 id;
uniform vec4 highlightId;
uniform float highlightScale;
uniform mat4 model, view, projection;
uniform vec3 clipBounds[2];
varying vec4 interpColor;
varying vec4 pickId;
varying vec3 dataCoordinate;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], position)) {
gl_Position = vec4(0,0,0,0);
} else {
float scale = 1.0;
if(distance(highlightId, id) < 0.0001) {
scale = highlightScale;
}
vec4 worldPosition = model * vec4(position, 1);
vec4 viewPosition = view * worldPosition;
viewPosition = viewPosition / viewPosition.w;
vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));
gl_Position = clipPosition;
interpColor = color;
pickId = id;
dataCoordinate = position;
}
}`]),f=u([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
attribute vec3 position;
attribute vec4 color;
attribute vec2 glyph;
attribute vec4 id;
uniform mat4 model, view, projection;
uniform vec2 screenSize;
uniform vec3 clipBounds[2];
uniform float highlightScale, pixelRatio;
uniform vec4 highlightId;
varying vec4 interpColor;
varying vec4 pickId;
varying vec3 dataCoordinate;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], position)) {
gl_Position = vec4(0,0,0,0);
} else {
float scale = pixelRatio;
if(distance(highlightId.bgr, id.bgr) < 0.001) {
scale *= highlightScale;
}
vec4 worldPosition = model * vec4(position, 1.0);
vec4 viewPosition = view * worldPosition;
vec4 clipPosition = projection * viewPosition;
clipPosition /= clipPosition.w;
gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);
interpColor = color;
pickId = id;
dataCoordinate = position;
}
}`]),c=u([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
attribute vec3 position;
attribute vec4 color;
attribute vec2 glyph;
attribute vec4 id;
uniform float highlightScale;
uniform vec4 highlightId;
uniform vec3 axes[2];
uniform mat4 model, view, projection;
uniform vec2 screenSize;
uniform vec3 clipBounds[2];
uniform float scale, pixelRatio;
varying vec4 interpColor;
varying vec4 pickId;
varying vec3 dataCoordinate;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], position)) {
gl_Position = vec4(0,0,0,0);
} else {
float lscale = pixelRatio * scale;
if(distance(highlightId, id) < 0.0001) {
lscale *= highlightScale;
}
vec4 clipCenter = projection * (view * (model * vec4(position, 1)));
vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;
vec4 clipPosition = projection * (view * (model * vec4(dataPosition, 1)));
gl_Position = clipPosition;
interpColor = color;
pickId = id;
dataCoordinate = dataPosition;
}
}
`]),d=u([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 fragClipBounds[2];
uniform float opacity;
varying vec4 interpColor;
varying vec3 dataCoordinate;
void main() {
if (
outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||
interpColor.a * opacity == 0.
) discard;
gl_FragColor = interpColor * opacity;
}
`]),x=u([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 fragClipBounds[2];
uniform float pickGroup;
varying vec4 pickId;
varying vec3 dataCoordinate;
void main() {
if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;
gl_FragColor = vec4(pickGroup, pickId.bgr);
}`]),g=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],w={vertex:s,fragment:d,attributes:g},T={vertex:f,fragment:d,attributes:g},m={vertex:c,fragment:d,attributes:g},k={vertex:s,fragment:x,attributes:g},S={vertex:f,fragment:x,attributes:g},b={vertex:c,fragment:x,attributes:g};function M(h,_){var y=l(h,_),v=y.attributes;return v.position.location=0,v.color.location=1,v.glyph.location=2,v.id.location=3,y}o.createPerspective=function(h){return M(h,w)},o.createOrtho=function(h){return M(h,T)},o.createProject=function(h){return M(h,m)},o.createPickPerspective=function(h){return M(h,k)},o.createPickOrtho=function(h){return M(h,S)},o.createPickProject=function(h){return M(h,b)}}),8418:(function(a,o,i){"use strict";var l=i(5219),u=i(2762),s=i(8116),f=i(1888),c=i(6760),d=i(1283),x=i(9366),g=i(5964),w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=ArrayBuffer,m=DataView;function k(Z){return T.isView(Z)&&!(Z instanceof m)}function S(Z){return Array.isArray(Z)||k(Z)}a.exports=te;function b(Z,ie){var Q=Z[0],re=Z[1],se=Z[2],ee=Z[3];return Z[0]=ie[0]*Q+ie[4]*re+ie[8]*se+ie[12]*ee,Z[1]=ie[1]*Q+ie[5]*re+ie[9]*se+ie[13]*ee,Z[2]=ie[2]*Q+ie[6]*re+ie[10]*se+ie[14]*ee,Z[3]=ie[3]*Q+ie[7]*re+ie[11]*se+ie[15]*ee,Z}function M(Z,ie,Q,re){return b(re,re,Q),b(re,re,ie),b(re,re,Z)}function h(Z,ie){this.index=Z,this.dataCoordinate=this.position=ie}function _(Z){return Z===!0||Z>1?1:Z}function y(Z,ie,Q,re,se,ee,ae,ce,Me,ke,Se,ge){this.gl=Z,this.pixelRatio=1,this.shader=ie,this.orthoShader=Q,this.projectShader=re,this.pointBuffer=se,this.colorBuffer=ee,this.glyphBuffer=ae,this.idBuffer=ce,this.vao=Me,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=ke,this.pickOrthoShader=Se,this.pickProjectShader=ge,this.points=[],this._selectResult=new h(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var v=y.prototype;v.pickSlots=1,v.setPickBase=function(Z){this.pickId=Z},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&!this.projectHasAlpha)return!0;return!1};var A=[0,0],p=[0,0,0],R=[0,0,0],E=[0,0,0,1],D=[0,0,0,1],F=w.slice(),z=[0,0,0],I=[[0,0,0],[0,0,0]];function L(Z){return Z[0]=Z[1]=Z[2]=0,Z}function P(Z,ie){return Z[0]=ie[0],Z[1]=ie[1],Z[2]=ie[2],Z[3]=1,Z}function O(Z,ie,Q,re){return Z[0]=ie[0],Z[1]=ie[1],Z[2]=ie[2],Z[Q]=re,Z}function U(Z){for(var ie=I,Q=0;Q<2;++Q)for(var re=0;re<3;++re)ie[Q][re]=Math.max(Math.min(Z[Q][re],1e8),-1e8);return ie}function V(Z,ie,Q,re){var se=ie.axesProject,ee=ie.gl,ae=Z.uniforms,ce=Q.model||w,Me=Q.view||w,ke=Q.projection||w,Se=ie.axesBounds,ge=U(ie.clipBounds),Le;ie.axes&&ie.axes.lastCubeProps?Le=ie.axes.lastCubeProps.axis:Le=[1,1,1],A[0]=2/ee.drawingBufferWidth,A[1]=2/ee.drawingBufferHeight,Z.bind(),ae.view=Me,ae.projection=ke,ae.screenSize=A,ae.highlightId=ie.highlightId,ae.highlightScale=ie.highlightScale,ae.clipBounds=ge,ae.pickGroup=ie.pickId/255,ae.pixelRatio=re;for(var Ee=0;Ee<3;++Ee)if(se[Ee]){ae.scale=ie.projectScale[Ee],ae.opacity=ie.projectOpacity[Ee];for(var le=F,Y=0;Y<16;++Y)le[Y]=0;for(var Y=0;Y<4;++Y)le[5*Y]=1;le[5*Ee]=0,Le[Ee]<0?le[12+Ee]=Se[0][Ee]:le[12+Ee]=Se[1][Ee],c(le,ce,le),ae.model=le;var $=(Ee+1)%3,pe=(Ee+2)%3,oe=L(p),ve=L(R);oe[$]=1,ve[pe]=1;var he=M(ke,Me,ce,P(E,oe)),me=M(ke,Me,ce,P(D,ve));if(Math.abs(he[1])>Math.abs(me[1])){var be=he;he=me,me=be,be=oe,oe=ve,ve=be;var ye=$;$=pe,pe=ye}he[0]<0&&(oe[$]=-1),me[1]>0&&(ve[pe]=-1);for(var de=0,_e=0,Y=0;Y<4;++Y)de+=Math.pow(ce[4*$+Y],2),_e+=Math.pow(ce[4*pe+Y],2);oe[$]/=Math.sqrt(de),ve[pe]/=Math.sqrt(_e),ae.axes[0]=oe,ae.axes[1]=ve,ae.fragClipBounds[0]=O(z,ge[0],Ee,-1e8),ae.fragClipBounds[1]=O(z,ge[1],Ee,1e8),ie.vao.bind(),ie.vao.draw(ee.TRIANGLES,ie.vertexCount),ie.lineWidth>0&&(ee.lineWidth(ie.lineWidth*re),ie.vao.draw(ee.LINES,ie.lineVertexCount,ie.vertexCount)),ie.vao.unbind()}}var K=[-1e8,-1e8,-1e8],j=[1e8,1e8,1e8],G=[K,j];function q(Z,ie,Q,re,se,ee,ae){var ce=Q.gl;if((ee===Q.projectHasAlpha||ae)&&V(ie,Q,re,se),ee===Q.hasAlpha||ae){Z.bind();var Me=Z.uniforms;Me.model=re.model||w,Me.view=re.view||w,Me.projection=re.projection||w,A[0]=2/ce.drawingBufferWidth,A[1]=2/ce.drawingBufferHeight,Me.screenSize=A,Me.highlightId=Q.highlightId,Me.highlightScale=Q.highlightScale,Me.fragClipBounds=G,Me.clipBounds=Q.axes.bounds,Me.opacity=Q.opacity,Me.pickGroup=Q.pickId/255,Me.pixelRatio=se,Q.vao.bind(),Q.vao.draw(ce.TRIANGLES,Q.vertexCount),Q.lineWidth>0&&(ce.lineWidth(Q.lineWidth*se),Q.vao.draw(ce.LINES,Q.lineVertexCount,Q.vertexCount)),Q.vao.unbind()}}v.draw=function(Z){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,Z,this.pixelRatio,!1,!1)},v.drawTransparent=function(Z){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,Z,this.pixelRatio,!0,!1)},v.drawPick=function(Z){var ie=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(ie,this.pickProjectShader,this,Z,1,!0,!0)},v.pick=function(Z){if(!Z||Z.id!==this.pickId)return null;var ie=Z.value[2]+(Z.value[1]<<8)+(Z.value[0]<<16);if(ie>=this.pointCount||ie<0)return null;var Q=this.points[ie],re=this._selectResult;re.index=ie;for(var se=0;se<3;++se)re.position[se]=re.dataCoordinate[se]=Q[se];return re},v.highlight=function(Z){if(!Z)this.highlightId=[1,1,1,1];else{var ie=Z.index,Q=ie&255,re=ie>>8&255,se=ie>>16&255;this.highlightId=[Q/255,re/255,se/255,0]}};function J(Z,ie,Q,re){var se;S(Z)?ie<Z.length?se=Z[ie]:se=void 0:se=Z,se=g(se);var ee=!0;l(se)&&(se="\u25BC",ee=!1),Q||(Q={});var ae=Q.family;S(ae)&&(ae=ae[ie]),ae||(ae="normal");var ce=Q.weight;S(ce)&&(ce=ce[ie]),ce||(ce="normal");var Me=Q.style;S(Me)&&(Me=Me[ie]),Me||(Me="normal");var ke=Q.variant;S(ke)&&(ke=ke[ie]),ke||(ke="normal");var Se=x(se,{family:ae,weight:ce,style:Me,variant:ke},re),Se=x(se,Q,re);return{mesh:Se[0],lines:Se[1],bounds:Se[2],visible:ee}}v.update=function(Z){if(Z=Z||{},"perspective"in Z&&(this.useOrtho=!Z.perspective),"orthographic"in Z&&(this.useOrtho=!!Z.orthographic),"lineWidth"in Z&&(this.lineWidth=Z.lineWidth),"project"in Z)if(S(Z.project))this.axesProject=Z.project;else{var ie=!!Z.project;this.axesProject=[ie,ie,ie]}if("projectScale"in Z)if(S(Z.projectScale))this.projectScale=Z.projectScale.slice();else{var Q=+Z.projectScale;this.projectScale=[Q,Q,Q]}if(this.projectHasAlpha=!1,"projectOpacity"in Z){if(S(Z.projectOpacity))this.projectOpacity=Z.projectOpacity.slice();else{var Q=+Z.projectOpacity;this.projectOpacity=[Q,Q,Q]}for(var re=0;re<3;++re)this.projectOpacity[re]=_(this.projectOpacity[re]),this.projectOpacity[re]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in Z&&(this.opacity=_(Z.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var se=Z.position,ee={family:Z.font||"normal",style:Z.fontStyle||"normal",weight:Z.fontWeight||"normal",variant:Z.fontVariant||"normal"},ae=Z.alignment||[0,0],ce,Me;if(ae.length===2)ce=ae[0],Me=ae[1];else{ce=[],Me=[];for(var re=0;re<ae.length;++re)ce[re]=ae[re][0],Me[re]=ae[re][1]}var ke=[1/0,1/0,1/0],Se=[-1/0,-1/0,-1/0],ge=Z.glyph,Le=Z.color,Ee=Z.size,le=Z.angle,Y=Z.lineColor,$=-1,pe=0,oe=0,ve=0;if(se.length){ve=se.length;e:for(var re=0;re<ve;++re){for(var he=se[re],me=0;me<3;++me)if(isNaN(he[me])||!isFinite(he[me]))continue e;var be=J(ge,re,ee,this.pixelRatio),ye=be.mesh,de=be.lines,_e=be.bounds;pe+=ye.cells.length*3,oe+=de.edges.length*2}}var Ae=pe+oe,Ie=f.mallocFloat(3*Ae),Pe=f.mallocFloat(4*Ae),Ye=f.mallocFloat(2*Ae),qe=f.mallocUint32(Ae);if(Ae>0){var Oe=0,Be=pe,We=[0,0,0,1],Xe=[0,0,0,1],tr=S(Le)&&S(Le[0]),ir=S(Y)&&S(Y[0]);e:for(var re=0;re<ve;++re){$+=1;for(var he=se[re],me=0;me<3;++me){if(isNaN(he[me])||!isFinite(he[me]))continue e;Se[me]=Math.max(Se[me],he[me]),ke[me]=Math.min(ke[me],he[me])}var be=J(ge,re,ee,this.pixelRatio),ye=be.mesh,de=be.lines,_e=be.bounds,je=be.visible;if(!je)We=[1,1,1,0];else if(S(Le)){var Ke;if(tr?re<Le.length?Ke=Le[re]:Ke=[0,0,0,0]:Ke=Le,Ke.length===3){for(var me=0;me<3;++me)We[me]=Ke[me];We[3]=1}else if(Ke.length===4){for(var me=0;me<4;++me)We[me]=Ke[me];!this.hasAlpha&&Ke[3]<1&&(this.hasAlpha=!0)}}else We[0]=We[1]=We[2]=0,We[3]=1;if(!je)Xe=[1,1,1,0];else if(S(Y)){var Ke;if(ir?re<Y.length?Ke=Y[re]:Ke=[0,0,0,0]:Ke=Y,Ke.length===3){for(var me=0;me<3;++me)Xe[me]=Ke[me];Xe[me]=1}else if(Ke.length===4){for(var me=0;me<4;++me)Xe[me]=Ke[me];!this.hasAlpha&&Ke[3]<1&&(this.hasAlpha=!0)}}else Xe[0]=Xe[1]=Xe[2]=0,Xe[3]=1;var Ce=.5;je?S(Ee)?re<Ee.length?Ce=+Ee[re]:Ce=12:Ee?Ce=+Ee:this.useOrtho&&(Ce=12):Ce=0;var Fe=0;S(le)?re<le.length?Fe=+le[re]:Fe=0:le&&(Fe=+le);for(var Qe=Math.cos(Fe),er=Math.sin(Fe),he=se[re],me=0;me<3;++me)Se[me]=Math.max(Se[me],he[me]),ke[me]=Math.min(ke[me],he[me]);var wr=ce,Vr=Me,wr=0;S(ce)?re<ce.length?wr=ce[re]:wr=0:ce&&(wr=ce);var Vr=0;S(Me)?re<Me.length?Vr=Me[re]:Vr=0:Me&&(Vr=Me),wr*=wr>0?1-_e[0][0]:wr<0?1+_e[1][0]:1,Vr*=Vr>0?1-_e[0][1]:Vr<0?1+_e[1][1]:1;for(var Mr=[wr,Vr],bt=ye.cells||[],Jr=ye.positions||[],me=0;me<bt.length;++me)for(var Dr=bt[me],Qr=0;Qr<3;++Qr){for(var Sr=0;Sr<3;++Sr)Ie[3*Oe+Sr]=he[Sr];for(var Sr=0;Sr<4;++Sr)Pe[4*Oe+Sr]=We[Sr];qe[Oe]=$;var Wr=Jr[Dr[Qr]];Ye[2*Oe]=Ce*(Qe*Wr[0]-er*Wr[1]+Mr[0]),Ye[2*Oe+1]=Ce*(er*Wr[0]+Qe*Wr[1]+Mr[1]),Oe+=1}for(var bt=de.edges,Jr=de.positions,me=0;me<bt.length;++me)for(var Dr=bt[me],Qr=0;Qr<2;++Qr){for(var Sr=0;Sr<3;++Sr)Ie[3*Be+Sr]=he[Sr];for(var Sr=0;Sr<4;++Sr)Pe[4*Be+Sr]=Xe[Sr];qe[Be]=$;var Wr=Jr[Dr[Qr]];Ye[2*Be]=Ce*(Qe*Wr[0]-er*Wr[1]+Mr[0]),Ye[2*Be+1]=Ce*(er*Wr[0]+Qe*Wr[1]+Mr[1]),Be+=1}}}this.bounds=[ke,Se],this.points=se,this.pointCount=se.length,this.vertexCount=pe,this.lineVertexCount=oe,this.pointBuffer.update(Ie),this.colorBuffer.update(Pe),this.glyphBuffer.update(Ye),this.idBuffer.update(qe),f.free(Ie),f.free(Pe),f.free(Ye),f.free(qe)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()};function te(Z){var ie=Z.gl,Q=d.createPerspective(ie),re=d.createOrtho(ie),se=d.createProject(ie),ee=d.createPickPerspective(ie),ae=d.createPickOrtho(ie),ce=d.createPickProject(ie),Me=u(ie),ke=u(ie),Se=u(ie),ge=u(ie),Le=s(ie,[{buffer:Me,size:3,type:ie.FLOAT},{buffer:ke,size:4,type:ie.FLOAT},{buffer:Se,size:2,type:ie.FLOAT},{buffer:ge,size:4,type:ie.UNSIGNED_BYTE,normalized:!0}]),Ee=new y(ie,Q,re,se,Me,ke,Se,ge,Le,ee,ae,ce);return Ee.update(Z),Ee}}),3589:(function(a,o,i){"use strict";a.exports=w;var l=i(2260),u=i(1888),s=i(9618),f=i(8828).nextPow2,c=function(T,m,k){for(var S=1e8,b=-1,M=-1,h=T.shape[0],_=T.shape[1],y=0;y<h;y++)for(var v=0;v<_;v++){var A=T.get(y,v,0),p=T.get(y,v,1),R=T.get(y,v,2),E=T.get(y,v,3);if(A<255||p<255||R<255||E<255){var D=m-y,F=k-v,z=D*D+F*F;z<S&&(S=z,b=y,M=v)}}return[b,M,S]};function d(T,m,k,S,b){this.coord=[T,m],this.id=k,this.value=S,this.distance=b}function x(T,m,k){this.gl=T,this.fbo=m,this.buffer=k,this._readTimeout=null;var S=this;this._readCallback=function(){S.gl&&(m.bind(),T.readPixels(0,0,m.shape[0],m.shape[1],T.RGBA,T.UNSIGNED_BYTE,S.buffer),S._readTimeout=null)}}var g=x.prototype;Object.defineProperty(g,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(T){if(this.gl){this.fbo.shape=T;var m=this.fbo.shape[0],k=this.fbo.shape[1];if(k*m*4>this.buffer.length){u.free(this.buffer);for(var S=this.buffer=u.mallocUint8(f(k*m*4)),b=0;b<k*m*4;++b)S[b]=255}return T}}}),g.begin=function(){var T=this.gl,m=this.shape;T&&(this.fbo.bind(),T.clearColor(1,1,1,1),T.clear(T.COLOR_BUFFER_BIT|T.DEPTH_BUFFER_BIT))},g.end=function(){var T=this.gl;T&&(T.bindFramebuffer(T.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},g.query=function(T,m,k){if(!this.gl)return null;var S=this.fbo.shape.slice();T=T|0,m=m|0,typeof k!="number"&&(k=1);var b=Math.min(Math.max(T-k,0),S[0])|0,M=Math.min(Math.max(T+k,0),S[0])|0,h=Math.min(Math.max(m-k,0),S[1])|0,_=Math.min(Math.max(m+k,0),S[1])|0;if(M<=b||_<=h)return null;var y=[M-b,_-h],v=s(this.buffer,[y[0],y[1],4],[4,S[0]*4,1],4*(b+S[0]*h)),A=c(v.hi(y[0],y[1],1),k,k),p=A[0],R=A[1];if(p<0||Math.pow(this.radius,2)<A[2])return null;var E=v.get(p,R,0),D=v.get(p,R,1),F=v.get(p,R,2),z=v.get(p,R,3);return new d(p+b|0,R+h|0,E,[D,F,z],Math.sqrt(A[2]))},g.dispose=function(){this.gl&&(this.fbo.dispose(),u.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))};function w(T,m){var k=m[0],S=m[1],b={},M=l(T,k,S,b),h=u.mallocUint8(k*S*4);return new x(T,M,h)}}),9405:(function(a,o,i){"use strict";var l=i(3327),u=i(8731),s=i(216),f=i(5091),c=i(2145),d=i(8866);function x(m){this.gl=m,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var g=x.prototype;g.bind=function(){this.program||this._relink();var m,k=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),S=this.gl.lastAttribCount;if(k>S)for(m=S;m<k;m++)this.gl.enableVertexAttribArray(m);else if(S>k)for(m=k;m<S;m++)this.gl.disableVertexAttribArray(m);this.gl.lastAttribCount=k,this.gl.useProgram(this.program)},g.dispose=function(){for(var m=this.gl.lastAttribCount,k=0;k<m;k++)this.gl.disableVertexAttribArray(k);this.gl.lastAttribCount=0,this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null};function w(m,k){return m.name<k.name?-1:1}g.update=function(m,k,S,b){if(!k||arguments.length===1){var M=m;m=M.vertex,k=M.fragment,S=M.uniforms,b=M.attributes}var h=this,_=h.gl,y=h._vref;h._vref=f.shader(_,_.VERTEX_SHADER,m),y&&y.dispose(),h.vertShader=h._vref.shader;var v=this._fref;if(h._fref=f.shader(_,_.FRAGMENT_SHADER,k),v&&v.dispose(),h.fragShader=h._fref.shader,!S||!b){var A=_.createProgram();if(_.attachShader(A,h.fragShader),_.attachShader(A,h.vertShader),_.linkProgram(A),!_.getProgramParameter(A,_.LINK_STATUS)){var p=_.getProgramInfoLog(A);throw new d(p,"Error linking program:"+p)}S=S||c.uniforms(_,A),b=b||c.attributes(_,A),_.deleteProgram(A)}b=b.slice(),b.sort(w);var R=[],E=[],D=[],F;for(F=0;F<b.length;++F){var z=b[F];if(z.type.indexOf("mat")>=0){for(var I=z.type.charAt(z.type.length-1)|0,L=new Array(I),P=0;P<I;++P)L[P]=D.length,E.push(z.name+"["+P+"]"),typeof z.location=="number"?D.push(z.location+P):Array.isArray(z.location)&&z.location.length===I&&typeof z.location[P]=="number"?D.push(z.location[P]|0):D.push(-1);R.push({name:z.name,type:z.type,locations:L})}else R.push({name:z.name,type:z.type,locations:[D.length]}),E.push(z.name),typeof z.location=="number"?D.push(z.location|0):D.push(-1)}var O=0;for(F=0;F<D.length;++F)if(D[F]<0){for(;D.indexOf(O)>=0;)O+=1;D[F]=O}var U=new Array(S.length);function V(){h.program=f.program(_,h._vref,h._fref,E,D);for(var K=0;K<S.length;++K)U[K]=_.getUniformLocation(h.program,S[K].name)}V(),h._relink=V,h.types={uniforms:s(S),attributes:s(b)},h.attributes=u(_,h,R,D),Object.defineProperty(h,"uniforms",l(_,h,S,U))};function T(m,k,S,b,M){var h=new x(m);return h.update(k,S,b,M),h}a.exports=T}),8866:(function(a){function o(i,l,u){this.shortMessage=l||"",this.longMessage=u||"",this.rawError=i||"",this.message="gl-shader: "+(l||i||"")+(u?`
`+u:""),this.stack=new Error().stack}o.prototype=new Error,o.prototype.name="GLError",o.prototype.constructor=o,a.exports=o}),8731:(function(a,o,i){"use strict";a.exports=x;var l=i(8866);function u(g,w,T,m,k,S){this._gl=g,this._wrapper=w,this._index=T,this._locations=m,this._dimension=k,this._constFunc=S}var s=u.prototype;s.pointer=function(w,T,m,k){var S=this,b=S._gl,M=S._locations[S._index];b.vertexAttribPointer(M,S._dimension,w||b.FLOAT,!!T,m||0,k||0),b.enableVertexAttribArray(M)},s.set=function(g,w,T,m){return this._constFunc(this._locations[this._index],g,w,T,m)},Object.defineProperty(s,"location",{get:function(){return this._locations[this._index]},set:function(g){return g!==this._locations[this._index]&&(this._locations[this._index]=g|0,this._wrapper.program=null),g|0}});var f=[function(g,w,T){return T.length===void 0?g.vertexAttrib1f(w,T):g.vertexAttrib1fv(w,T)},function(g,w,T,m){return T.length===void 0?g.vertexAttrib2f(w,T,m):g.vertexAttrib2fv(w,T)},function(g,w,T,m,k){return T.length===void 0?g.vertexAttrib3f(w,T,m,k):g.vertexAttrib3fv(w,T)},function(g,w,T,m,k,S){return T.length===void 0?g.vertexAttrib4f(w,T,m,k,S):g.vertexAttrib4fv(w,T)}];function c(g,w,T,m,k,S,b){var M=f[k],h=new u(g,w,T,m,k,M);Object.defineProperty(S,b,{set:function(_){return g.disableVertexAttribArray(m[T]),M(g,m[T],_),_},get:function(){return h},enumerable:!0})}function d(g,w,T,m,k,S,b){for(var M=new Array(k),h=new Array(k),_=0;_<k;++_)c(g,w,T[_],m,k,M,_),h[_]=M[_];Object.defineProperty(M,"location",{set:function(A){if(Array.isArray(A))for(var p=0;p<k;++p)h[p].location=A[p];else for(var p=0;p<k;++p)h[p].location=A+p;return A},get:function(){for(var A=new Array(k),p=0;p<k;++p)A[p]=m[T[p]];return A},enumerable:!0}),M.pointer=function(A,p,R,E){A=A||g.FLOAT,p=!!p,R=R||k*k,E=E||0;for(var D=0;D<k;++D){var F=m[T[D]];g.vertexAttribPointer(F,k,A,p,R,E+D*k),g.enableVertexAttribArray(F)}};var y=new Array(k),v=g["vertexAttrib"+k+"fv"];Object.defineProperty(S,b,{set:function(A){for(var p=0;p<k;++p){var R=m[T[p]];if(g.disableVertexAttribArray(R),Array.isArray(A[0]))v.call(g,R,A[p]);else{for(var E=0;E<k;++E)y[E]=A[k*p+E];v.call(g,R,y)}}return A},get:function(){return M},enumerable:!0})}function x(g,w,T,m){for(var k={},S=0,b=T.length;S<b;++S){var M=T[S],h=M.name,_=M.type,y=M.locations;switch(_){case"bool":case"int":case"float":c(g,w,y[0],m,1,k,h);break;default:if(_.indexOf("vec")>=0){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new l("","Invalid data type for attribute "+h+": "+_);c(g,w,y[0],m,v,k,h)}else if(_.indexOf("mat")>=0){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new l("","Invalid data type for attribute "+h+": "+_);d(g,w,y,m,v,k,h)}else throw new l("","Unknown data type for attribute "+h+": "+_);break}}return k}}),3327:(function(a,o,i){"use strict";var l=i(216),u=i(8866);a.exports=c;function s(d){return function(){return d}}function f(d,x){for(var g=new Array(d),w=0;w<d;++w)g[w]=x;return g}function c(d,x,g,w){function T(_){return function(y,v,A){return y.getUniform(v.program,A[_])}}function m(_){return function(v){for(var A=k("",_),p=0;p<A.length;++p){var R=A[p],E=R[0],D=R[1];if(w[D]){var F=v;if(typeof E=="string"&&(E.indexOf(".")===0||E.indexOf("[")===0)){var z=E;if(E.indexOf(".")===0&&(z=E.slice(1)),z.indexOf("]")===z.length-1){var I=z.indexOf("["),L=z.slice(0,I),P=z.slice(I+1,z.length-1);F=L?v[L][P]:v[P]}else F=v[z]}var O=g[D].type,U;switch(O){case"bool":case"int":case"sampler2D":case"samplerCube":d.uniform1i(w[D],F);break;case"float":d.uniform1f(w[D],F);break;default:var V=O.indexOf("vec");if(0<=V&&V<=1&&O.length===4+V){if(U=O.charCodeAt(O.length-1)-48,U<2||U>4)throw new u("","Invalid data type");switch(O.charAt(0)){case"b":case"i":d["uniform"+U+"iv"](w[D],F);break;case"v":d["uniform"+U+"fv"](w[D],F);break;default:throw new u("","Unrecognized data type for vector "+name+": "+O)}}else if(O.indexOf("mat")===0&&O.length===4){if(U=O.charCodeAt(O.length-1)-48,U<2||U>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+O);d["uniformMatrix"+U+"fv"](w[D],!1,F);break}else throw new u("","Unknown uniform data type for "+name+": "+O)}}}}}function k(_,y){if(typeof y!="object")return[[_,y]];var v=[];for(var A in y){var p=y[A],R=_;parseInt(A)+""===A?R+="["+A+"]":R+="."+A,typeof p=="object"?v.push.apply(v,k(R,p)):v.push([R,p])}return v}function S(_){switch(_){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var y=_.indexOf("vec");if(0<=y&&y<=1&&_.length===4+y){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new u("","Invalid data type");return _.charAt(0)==="b"?f(v,!1):f(v,0)}else if(_.indexOf("mat")===0&&_.length===4){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+_);return f(v*v,0)}else throw new u("","Unknown uniform data type for "+name+": "+_)}}function b(_,y,v){if(typeof v=="object"){var A=M(v);Object.defineProperty(_,y,{get:s(A),set:m(v),enumerable:!0,configurable:!1})}else w[v]?Object.defineProperty(_,y,{get:T(v),set:m(v),enumerable:!0,configurable:!1}):_[y]=S(g[v].type)}function M(_){var y;if(Array.isArray(_)){y=new Array(_.length);for(var v=0;v<_.length;++v)b(y,v,_[v])}else{y={};for(var A in _)b(y,A,_[A])}return y}var h=l(g,!0);return{get:s(M(h)),set:m(h),enumerable:!0,configurable:!0}}}),216:(function(a){"use strict";a.exports=o;function o(i,l){for(var u={},s=0;s<i.length;++s)for(var f=i[s].name,c=f.split("."),d=u,x=0;x<c.length;++x){var g=c[x].split("[");if(g.length>1){g[0]in d||(d[g[0]]=[]),d=d[g[0]];for(var w=1;w<g.length;++w){var T=parseInt(g[w]);w<g.length-1||x<c.length-1?(T in d||(w<g.length-1?d[T]=[]:d[T]={}),d=d[T]):l?d[T]=s:d[T]=i[s].type}}else x<c.length-1?(g[0]in d||(d[g[0]]={}),d=d[g[0]]):l?d[g[0]]=s:d[g[0]]=i[s].type}return u}}),2145:(function(a,o){"use strict";o.uniforms=s,o.attributes=f;var i={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube"},l=null;function u(c,d){if(!l){var x=Object.keys(i);l={};for(var g=0;g<x.length;++g){var w=x[g];l[c[w]]=i[w]}}return l[d]}function s(c,d){for(var x=c.getProgramParameter(d,c.ACTIVE_UNIFORMS),g=[],w=0;w<x;++w){var T=c.getActiveUniform(d,w);if(T){var m=u(c,T.type);if(T.size>1)for(var k=0;k<T.size;++k)g.push({name:T.name.replace("[0]","["+k+"]"),type:m});else g.push({name:T.name,type:m})}}return g}function f(c,d){for(var x=c.getProgramParameter(d,c.ACTIVE_ATTRIBUTES),g=[],w=0;w<x;++w){var T=c.getActiveAttrib(d,w);T&&g.push({name:T.name,type:u(c,T.type)})}return g}}),5091:(function(a,o,i){"use strict";o.shader=k,o.program=S;var l=i(8866),u=i(2992),s=typeof WeakMap=="undefined"?i(606):WeakMap,f=new s,c=0;function d(b,M,h,_,y,v,A){this.id=b,this.src=M,this.type=h,this.shader=_,this.count=v,this.programs=[],this.cache=A}d.prototype.dispose=function(){if(--this.count===0){for(var b=this.cache,M=b.gl,h=this.programs,_=0,y=h.length;_<y;++_){var v=b.programs[h[_]];v&&(delete b.programs[_],M.deleteProgram(v))}M.deleteShader(this.shader),delete b.shaders[this.type===M.FRAGMENT_SHADER|0][this.src]}};function x(b){this.gl=b,this.shaders=[{},{}],this.programs={}}var g=x.prototype;function w(b,M,h){var _=b.createShader(M);if(b.shaderSource(_,h),b.compileShader(_),!b.getShaderParameter(_,b.COMPILE_STATUS)){var y=b.getShaderInfoLog(_);try{var v=u(y,h,M)}catch(A){throw console.warn("Failed to format compiler error: "+A),new l(y,`Error compiling shader:
`+y)}throw new l(y,v.short,v.long)}return _}g.getShaderReference=function(b,M){var h=this.gl,_=this.shaders[b===h.FRAGMENT_SHADER|0],y=_[M];if(!y||!h.isShader(y.shader)){var v=w(h,b,M);y=_[M]=new d(c++,M,b,v,[],1,this)}else y.count+=1;return y};function T(b,M,h,_,y){var v=b.createProgram();b.attachShader(v,M),b.attachShader(v,h);for(var A=0;A<_.length;++A)b.bindAttribLocation(v,y[A],_[A]);if(b.linkProgram(v),!b.getProgramParameter(v,b.LINK_STATUS)){var p=b.getProgramInfoLog(v);throw new l(p,"Error linking program: "+p)}return v}g.getProgram=function(b,M,h,_){var y=[b.id,M.id,h.join(":"),_.join(":")].join("@"),v=this.programs[y];return(!v||!this.gl.isProgram(v))&&(this.programs[y]=v=T(this.gl,b.shader,M.shader,h,_),b.programs.push(y),M.programs.push(y)),v};function m(b){var M=f.get(b);return M||(M=new x(b),f.set(b,M)),M}function k(b,M,h){return m(b).getShaderReference(M,h)}function S(b,M,h,_,y){return m(b).getProgram(M,h,_,y)}}),1493:(function(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision mediump float;
#define GLSLIFY 1
attribute vec3 position, color;
attribute float weight;
uniform mat4 model, view, projection;
uniform vec3 coordinates[3];
uniform vec4 colors[3];
uniform vec2 screenShape;
uniform float lineWidth;
varying vec4 fragColor;
void main() {
vec3 vertexPosition = mix(coordinates[0],
mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));
vec4 clipPos = projection * (view * (model * vec4(vertexPosition, 1.0)));
vec2 clipOffset = (projection * (view * (model * vec4(color, 0.0)))).xy;
vec2 delta = weight * clipOffset * screenShape;
vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;
gl_Position = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);
fragColor = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];
}
`]),f=l([`precision mediump float;
#define GLSLIFY 1
varying vec4 fragColor;
void main() {
gl_FragColor = fragColor;
}`]);a.exports=function(c){return u(c,s,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec3"},{name:"weight",type:"float"}])}}),4449:(function(a,o,i){"use strict";var l=i(2762),u=i(8116),s=i(1493);a.exports=T;var f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(m,k,S,b){this.gl=m,this.buffer=k,this.vao=S,this.shader=b,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var d=c.prototype,x=[0,0,0],g=[0,0,0],w=[0,0];d.isTransparent=function(){return!1},d.drawTransparent=function(m){},d.draw=function(m){var k=this.gl,S=this.vao,b=this.shader;S.bind(),b.bind();var M=m.model||f,h=m.view||f,_=m.projection||f,y;this.axes&&(y=this.axes.lastCubeProps.axis);for(var v=x,A=g,p=0;p<3;++p)y&&y[p]<0?(v[p]=this.bounds[0][p],A[p]=this.bounds[1][p]):(v[p]=this.bounds[1][p],A[p]=this.bounds[0][p]);w[0]=k.drawingBufferWidth,w[1]=k.drawingBufferHeight,b.uniforms.model=M,b.uniforms.view=h,b.uniforms.projection=_,b.uniforms.coordinates=[this.position,v,A],b.uniforms.colors=this.colors,b.uniforms.screenShape=w;for(var p=0;p<3;++p)b.uniforms.lineWidth=this.lineWidth[p]*this.pixelRatio,this.enabled[p]&&(S.draw(k.TRIANGLES,6,6*p),this.drawSides[p]&&S.draw(k.TRIANGLES,12,18+12*p));S.unbind()},d.update=function(m){m&&("bounds"in m&&(this.bounds=m.bounds),"position"in m&&(this.position=m.position),"lineWidth"in m&&(this.lineWidth=m.lineWidth),"colors"in m&&(this.colors=m.colors),"enabled"in m&&(this.enabled=m.enabled),"drawSides"in m&&(this.drawSides=m.drawSides))},d.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function T(m,k){var S=[];function b(v,A,p,R,E,D){var F=[v,A,p,0,0,0,1];F[R+3]=1,F[R]=E,S.push.apply(S,F),F[6]=-1,S.push.apply(S,F),F[R]=D,S.push.apply(S,F),S.push.apply(S,F),F[6]=1,S.push.apply(S,F),F[R]=E,S.push.apply(S,F)}b(0,0,0,0,0,1),b(0,0,0,1,0,1),b(0,0,0,2,0,1),b(1,0,0,1,-1,1),b(1,0,0,2,-1,1),b(0,1,0,0,-1,1),b(0,1,0,2,-1,1),b(0,0,1,0,-1,1),b(0,0,1,1,-1,1);var M=l(m,S),h=u(m,[{type:m.FLOAT,buffer:M,size:3,offset:0,stride:28},{type:m.FLOAT,buffer:M,size:3,offset:12,stride:28},{type:m.FLOAT,buffer:M,size:1,offset:24,stride:28}]),_=s(m);_.attributes.position.location=0,_.attributes.color.location=1,_.attributes.weight.location=2;var y=new c(m,M,h,_);return y.update(k),y}}),6740:(function(a,o,i){var l=i(3236),u=l([`precision highp float;
precision highp float;
#define GLSLIFY 1
vec3 getOrthogonalVector(vec3 v) {
// Return up-vector for only-z vector.
// Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).
// From the above if-statement we have ||a|| > 0 U ||b|| > 0.
// Assign z = 0, x = -b, y = a:
// a*-b + b*a + c*0 = -ba + ba + 0 = 0
if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {
return normalize(vec3(-v.y, v.x, 0.0));
} else {
return normalize(vec3(0.0, v.z, -v.y));
}
}
// Calculate the tube vertex and normal at the given index.
//
// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.
//
// Each tube segment is made up of a ring of vertices.
// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.
// The indexes of tube segments run from 0 to 8.
//
vec3 getTubePosition(vec3 d, float index, out vec3 normal) {
float segmentCount = 8.0;
float angle = 2.0 * 3.14159 * (index / segmentCount);
vec3 u = getOrthogonalVector(d);
vec3 v = normalize(cross(u, d));
vec3 x = u * cos(angle) * length(d);
vec3 y = v * sin(angle) * length(d);
vec3 v3 = x + y;
normal = normalize(v3);
return v3;
}
attribute vec4 vector;
attribute vec4 color, position;
attribute vec2 uv;
uniform float vectorScale, tubeScale;
uniform mat4 model, view, projection, inverseModel;
uniform vec3 eyePosition, lightPosition;
varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;
varying vec4 f_color;
varying vec2 f_uv;
void main() {
// Scale the vector magnitude to stay constant with
// model & view changes.
vec3 normal;
vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);
vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);
//Lighting geometry parameters
vec4 cameraCoordinate = view * tubePosition;
cameraCoordinate.xyz /= cameraCoordinate.w;
f_lightDirection = lightPosition - cameraCoordinate.xyz;
f_eyeDirection = eyePosition - cameraCoordinate.xyz;
f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);
// vec4 m_position = model * vec4(tubePosition, 1.0);
vec4 t_position = view * tubePosition;
gl_Position = projection * t_position;
f_color = color;
f_data = tubePosition.xyz;
f_position = position.xyz;
f_uv = uv;
}
`]),s=l([`#extension GL_OES_standard_derivatives : enable
precision highp float;
#define GLSLIFY 1
float beckmannDistribution(float x, float roughness) {
float NdotH = max(x, 0.0001);
float cos2Alpha = NdotH * NdotH;
float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;
float roughness2 = roughness * roughness;
float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;
return exp(tan2Alpha / roughness2) / denom;
}
float cookTorranceSpecular(
vec3 lightDirection,
vec3 viewDirection,
vec3 surfaceNormal,
float roughness,
float fresnel) {
float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);
float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);
//Half angle vector
vec3 H = normalize(lightDirection + viewDirection);
//Geometric term
float NdotH = max(dot(surfaceNormal, H), 0.0);
float VdotH = max(dot(viewDirection, H), 0.000001);
float LdotH = max(dot(lightDirection, H), 0.000001);
float G1 = (2.0 * NdotH * VdotN) / VdotH;
float G2 = (2.0 * NdotH * LdotN) / LdotH;
float G = min(1.0, min(G1, G2));
//Distribution term
float D = beckmannDistribution(NdotH, roughness);
//Fresnel term
float F = pow(1.0 - VdotN, fresnel);
//Multiply terms and done
return G * F * D / max(3.14159265 * VdotN, 0.000001);
}
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;
uniform sampler2D texture;
varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;
varying vec4 f_color;
varying vec2 f_uv;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
vec3 N = normalize(f_normal);
vec3 L = normalize(f_lightDirection);
vec3 V = normalize(f_eyeDirection);
if(gl_FrontFacing) {
N = -N;
}
float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));
float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);
vec4 surfaceColor = f_color * texture2D(texture, f_uv);
vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);
gl_FragColor = litColor * opacity;
}
`]),f=l([`precision highp float;
precision highp float;
#define GLSLIFY 1
vec3 getOrthogonalVector(vec3 v) {
// Return up-vector for only-z vector.
// Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).
// From the above if-statement we have ||a|| > 0 U ||b|| > 0.
// Assign z = 0, x = -b, y = a:
// a*-b + b*a + c*0 = -ba + ba + 0 = 0
if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {
return normalize(vec3(-v.y, v.x, 0.0));
} else {
return normalize(vec3(0.0, v.z, -v.y));
}
}
// Calculate the tube vertex and normal at the given index.
//
// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.
//
// Each tube segment is made up of a ring of vertices.
// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.
// The indexes of tube segments run from 0 to 8.
//
vec3 getTubePosition(vec3 d, float index, out vec3 normal) {
float segmentCount = 8.0;
float angle = 2.0 * 3.14159 * (index / segmentCount);
vec3 u = getOrthogonalVector(d);
vec3 v = normalize(cross(u, d));
vec3 x = u * cos(angle) * length(d);
vec3 y = v * sin(angle) * length(d);
vec3 v3 = x + y;
normal = normalize(v3);
return v3;
}
attribute vec4 vector;
attribute vec4 position;
attribute vec4 id;
uniform mat4 model, view, projection;
uniform float tubeScale;
varying vec3 f_position;
varying vec4 f_id;
void main() {
vec3 normal;
vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);
vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);
gl_Position = projection * (view * tubePosition);
f_id = id;
f_position = position.xyz;
}
`]),c=l([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform float pickId;
varying vec3 f_position;
varying vec4 f_id;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
gl_FragColor = vec4(pickId, f_id.xyz);
}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},o.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}}),7815:(function(a,o,i){"use strict";var l=i(2931),u=i(9970),s=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(b,M,h,_){for(var y=b.points,v=b.velocities,A=b.divergences,p=[],R=[],E=[],D=[],F=[],z=[],I=0,L=0,P=u.create(),O=u.create(),U=8,V=0;V<y.length;V++){var K=y[V],j=v[V],G=A[V];M===0&&(G=h*.05),L=l.length(j)/_,P=u.create(),l.copy(P,j),P[3]=G;for(var q=0;q<U;q++)F[q]=[K[0],K[1],K[2],q];if(D.length>0)for(var q=0;q<U;q++){var J=(q+1)%U;p.push(D[q],F[q],F[J],F[J],D[J],D[q]),E.push(O,P,P,P,O,O),z.push(I,L,L,L,I,I);var te=p.length;R.push([te-6,te-5,te-4],[te-3,te-2,te-1])}var Z=D;D=F,F=Z;var ie=O;O=P,P=ie;var Q=I;I=L,L=Q}return{positions:p,cells:R,vectors:E,vertexIntensity:z}},c=function(b,M,h,_){for(var y=0,v=0;v<b.length;v++)for(var A=b[v].velocities,p=0;p<A.length;p++)y=Math.max(y,l.length(A[p]));for(var R=b.map(function(V){return f(V,h,_,y)}),E=[],D=[],F=[],z=[],v=0;v<R.length;v++){var I=R[v],L=E.length;E=E.concat(I.positions),F=F.concat(I.vectors),z=z.concat(I.vertexIntensity);for(var p=0;p<I.cells.length;p++){var P=I.cells[p],O=[];D.push(O);for(var U=0;U<P.length;U++)O.push(P[U]+L)}}return{positions:E,cells:D,vectors:F,vertexIntensity:z,colormap:M}},d=function(b,M){var h=b.length,_;for(_=0;_<h;_++){var y=b[_];if(y===M)return _;if(y>M)return _-1}return _},x=function(b,M,h){return b<M?M:b>h?h:b},g=function(b,M,h){var _=M.vectors,y=M.meshgrid,v=b[0],A=b[1],p=b[2],R=y[0].length,E=y[1].length,D=y[2].length,F=d(y[0],v),z=d(y[1],A),I=d(y[2],p),L=F+1,P=z+1,O=I+1;if(F=x(F,0,R-1),L=x(L,0,R-1),z=x(z,0,E-1),P=x(P,0,E-1),I=x(I,0,D-1),O=x(O,0,D-1),F<0||z<0||I<0||L>R-1||P>E-1||O>D-1)return l.create();var U=y[0][F],V=y[0][L],K=y[1][z],j=y[1][P],G=y[2][I],q=y[2][O],J=(v-U)/(V-U),te=(A-K)/(j-K),Z=(p-G)/(q-G);isFinite(J)||(J=.5),isFinite(te)||(te=.5),isFinite(Z)||(Z=.5);var ie,Q,re,se,ee,ae;switch(h.reversedX&&(F=R-1-F,L=R-1-L),h.reversedY&&(z=E-1-z,P=E-1-P),h.reversedZ&&(I=D-1-I,O=D-1-O),h.filled){case 5:ee=I,ae=O,re=z*D,se=P*D,ie=F*D*E,Q=L*D*E;break;case 4:ee=I,ae=O,ie=F*D,Q=L*D,re=z*D*R,se=P*D*R;break;case 3:re=z,se=P,ee=I*E,ae=O*E,ie=F*E*D,Q=L*E*D;break;case 2:re=z,se=P,ie=F*E,Q=L*E,ee=I*E*R,ae=O*E*R;break;case 1:ie=F,Q=L,ee=I*R,ae=O*R,re=z*R*D,se=P*R*D;break;default:ie=F,Q=L,re=z*R,se=P*R,ee=I*R*E,ae=O*R*E;break}var ce=_[ie+re+ee],Me=_[ie+re+ae],ke=_[ie+se+ee],Se=_[ie+se+ae],ge=_[Q+re+ee],Le=_[Q+re+ae],Ee=_[Q+se+ee],le=_[Q+se+ae],Y=l.create(),$=l.create(),pe=l.create(),oe=l.create();l.lerp(Y,ce,ge,J),l.lerp($,Me,Le,J),l.lerp(pe,ke,Ee,J),l.lerp(oe,Se,le,J);var ve=l.create(),he=l.create();l.lerp(ve,Y,pe,te),l.lerp(he,$,oe,te);var me=l.create();return l.lerp(me,ve,he,Z),me},w=function(b,M){var h=M[0],_=M[1],y=M[2];return b[0]=h<0?-h:h,b[1]=_<0?-_:_,b[2]=y<0?-y:y,b},T=function(b){var M=1/0;b.sort(function(v,A){return v-A});for(var h=b.length,_=1;_<h;_++){var y=Math.abs(b[_]-b[_-1]);y<M&&(M=y)}return M},m=function(b){for(var M=[],h=[],_=[],y={},v={},A={},p=b.length,R=0;R<p;R++){var E=b[R],D=E[0],F=E[1],z=E[2];y[D]||(M.push(D),y[D]=!0),v[F]||(h.push(F),v[F]=!0),A[z]||(_.push(z),A[z]=!0)}var I=T(M),L=T(h),P=T(_),O=Math.min(I,L,P);return isFinite(O)?O:1};a.exports=function(b,M){var h=b.startingPositions,_=b.maxLength||1e3,y=b.tubeSize||1,v=b.absoluteTubeSize,A=b.gridFill||"+x+y+z",p={};A.indexOf("-x")!==-1&&(p.reversedX=!0),A.indexOf("-y")!==-1&&(p.reversedY=!0),A.indexOf("-z")!==-1&&(p.reversedZ=!0),p.filled=s.indexOf(A.replace(/-/g,"").replace(/\+/g,""));var R=b.getVelocity||function(Le){return g(Le,b,p)},E=b.getDivergence||function(Le,Ee){var le=l.create(),Y=1e-4;l.add(le,Le,[Y,0,0]);var $=R(le);l.subtract($,$,Ee),l.scale($,$,1/Y),l.add(le,Le,[0,Y,0]);var pe=R(le);l.subtract(pe,pe,Ee),l.scale(pe,pe,1/Y),l.add(le,Le,[0,0,Y]);var oe=R(le);return l.subtract(oe,oe,Ee),l.scale(oe,oe,1/Y),l.add(le,$,pe),l.add(le,le,oe),le},D=[],F=M[0][0],z=M[0][1],I=M[0][2],L=M[1][0],P=M[1][1],O=M[1][2],U=function(Le){var Ee=Le[0],le=Le[1],Y=Le[2];return!(Ee<F||Ee>L||le<z||le>P||Y<I||Y>O)},V=l.distance(M[0],M[1]),K=10*V/_,j=K*K,G=1,q=0,J=h.length;J>1&&(G=m(h));for(var te=0;te<J;te++){var Z=l.create();l.copy(Z,h[te]);var ie=[Z],Q=[],re=R(Z),se=Z;Q.push(re);var ee=[],ae=E(Z,re),ce=l.length(ae);isFinite(ce)&&ce>q&&(q=ce),ee.push(ce),D.push({points:ie,velocities:Q,divergences:ee});for(var Me=0;Me<_*100&&ie.length<_&&U(Z);){Me++;var ke=l.clone(re),Se=l.squaredLength(ke);if(Se===0)break;if(Se>j&&l.scale(ke,ke,K/Math.sqrt(Se)),l.add(ke,ke,Z),re=R(ke),l.squaredDistance(se,ke)-j>-1e-4*j){ie.push(ke),se=ke,Q.push(re);var ae=E(ke,re),ce=l.length(ae);isFinite(ce)&&ce>q&&(q=ce),ee.push(ce)}Z=ke}}var ge=c(D,b.colormap,q,G);return v?ge.tubeScale=v:(q===0&&(q=1),ge.tubeScale=y*.5*G/q),ge};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(b,M){return S(b,M,{shaders:k,traceType:"streamtube"})}}),990:(function(a,o,i){var l=i(9405),u=i(3236),s=u([`precision highp float;
#define GLSLIFY 1
attribute vec4 uv;
attribute vec3 f;
attribute vec3 normal;
uniform vec3 objectOffset;
uniform mat4 model, view, projection, inverseModel;
uniform vec3 lightPosition, eyePosition;
uniform sampler2D colormap;
varying float value, kill;
varying vec3 worldCoordinate;
varying vec2 planeCoordinate;
varying vec3 lightDirection, eyeDirection, surfaceNormal;
varying vec4 vColor;
void main() {
vec3 localCoordinate = vec3(uv.zw, f.x);
worldCoordinate = objectOffset + localCoordinate;
mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0));
vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0);
vec4 clipPosition = projection * (view * worldPosition);
gl_Position = clipPosition;
kill = f.y;
value = f.z;
planeCoordinate = uv.xy;
vColor = texture2D(colormap, vec2(value, value));
//Lighting geometry parameters
vec4 cameraCoordinate = view * worldPosition;
cameraCoordinate.xyz /= cameraCoordinate.w;
lightDirection = lightPosition - cameraCoordinate.xyz;
eyeDirection = eyePosition - cameraCoordinate.xyz;
surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);
}
`]),f=u([`precision highp float;
#define GLSLIFY 1
float beckmannDistribution(float x, float roughness) {
float NdotH = max(x, 0.0001);
float cos2Alpha = NdotH * NdotH;
float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;
float roughness2 = roughness * roughness;
float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;
return exp(tan2Alpha / roughness2) / denom;
}
float beckmannSpecular(
vec3 lightDirection,
vec3 viewDirection,
vec3 surfaceNormal,
float roughness) {
return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);
}
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 lowerBound, upperBound;
uniform float contourTint;
uniform vec4 contourColor;
uniform sampler2D colormap;
uniform vec3 clipBounds[2];
uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;
uniform float vertexColor;
varying float value, kill;
varying vec3 worldCoordinate;
varying vec3 lightDirection, eyeDirection, surfaceNormal;
varying vec4 vColor;
void main() {
if (
kill > 0.0 ||
vColor.a == 0.0 ||
outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)
) discard;
vec3 N = normalize(surfaceNormal);
vec3 V = normalize(eyeDirection);
vec3 L = normalize(lightDirection);
if(gl_FrontFacing) {
N = -N;
}
float specular = max(beckmannSpecular(L, V, N, roughness), 0.);
float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);
//decide how to interpolate color \u2014 in vertex or in fragment
vec4 surfaceColor =
step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +
step(.5, vertexColor) * vColor;
vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);
gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;
}
`]),c=u([`precision highp float;
#define GLSLIFY 1
attribute vec4 uv;
attribute float f;
uniform vec3 objectOffset;
uniform mat3 permutation;
uniform mat4 model, view, projection;
uniform float height, zOffset;
uniform sampler2D colormap;
varying float value, kill;
varying vec3 worldCoordinate;
varying vec2 planeCoordinate;
varying vec3 lightDirection, eyeDirection, surfaceNormal;
varying vec4 vColor;
void main() {
vec3 dataCoordinate = permutation * vec3(uv.xy, height);
worldCoordinate = objectOffset + dataCoordinate;
mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0));
vec4 worldPosition = (model * objectOffsetTranslation) * vec4(dataCoordinate, 1.0);
vec4 clipPosition = projection * (view * worldPosition);
clipPosition.z += zOffset;
gl_Position = clipPosition;
value = f + objectOffset.z;
kill = -1.0;
planeCoordinate = uv.zw;
vColor = texture2D(colormap, vec2(value, value));
//Don't do lighting for contours
surfaceNormal = vec3(1,0,0);
eyeDirection = vec3(0,1,0);
lightDirection = vec3(0,0,1);
}
`]),d=u([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec2 shape;
uniform vec3 clipBounds[2];
uniform float pickId;
varying float value, kill;
varying vec3 worldCoordinate;
varying vec2 planeCoordinate;
varying vec3 surfaceNormal;
vec2 splitFloat(float v) {
float vh = 255.0 * v;
float upper = floor(vh);
float lower = fract(vh);
return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);
}
void main() {
if ((kill > 0.0) ||
(outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;
vec2 ux = splitFloat(planeCoordinate.x / shape.x);
vec2 uy = splitFloat(planeCoordinate.y / shape.y);
gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));
}
`]);o.createShader=function(x){var g=l(x,s,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g.attributes.normal.location=2,g},o.createPickShader=function(x){var g=l(x,s,d,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g.attributes.normal.location=2,g},o.createContourShader=function(x){var g=l(x,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g},o.createPickContourShader=function(x){var g=l(x,c,d,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g}}),9499:(function(a,o,i){"use strict";a.exports=ie;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),c=i(1888),d=i(6729),x=i(5298),g=i(9994),w=i(9618),T=i(3711),m=i(6760),k=i(7608),S=i(2478),b=i(6199),M=i(990),h=M.createShader,_=M.createContourShader,y=M.createPickShader,v=M.createPickContourShader,A=40,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],R=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],E=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var Q=0;Q<3;++Q){var re=E[Q],se=(Q+1)%3,ee=(Q+2)%3;re[se+0]=1,re[ee+3]=1,re[Q+6]=1}})();function D(Q,re,se,ee,ae){this.position=Q,this.index=re,this.uv=se,this.level=ee,this.dataCoordinate=ae}var F=256;function z(Q,re,se,ee,ae,ce,Me,ke,Se,ge,Le,Ee,le,Y,$){this.gl=Q,this.shape=re,this.bounds=se,this.objectOffset=$,this.intensityBounds=[],this._shader=ee,this._pickShader=ae,this._coordinateBuffer=ce,this._vao=Me,this._colorMap=ke,this._contourShader=Se,this._contourPickShader=ge,this._contourBuffer=Le,this._contourVAO=Ee,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new D([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=le,this._dynamicVAO=Y,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[w(c.mallocFloat(1024),[0,0]),w(c.mallocFloat(1024),[0,0]),w(c.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var I=z.prototype;I.genColormap=function(Q,re){var se=!1,ee=g([d({colormap:Q,nshades:F,format:"rgba"}).map(function(ae,ce){var Me=re?L(ce/255,re):ae[3];return Me<1&&(se=!0),[ae[0],ae[1],ae[2],255*Me]})]);return x.divseq(ee,255),this.hasAlphaScale=se,ee},I.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},I.isOpaque=function(){return!this.isTransparent()},I.pickSlots=1,I.setPickBase=function(Q){this.pickId=Q};function L(Q,re){if(!re||!re.length)return 1;for(var se=0;se<re.length;++se){if(re.length<2)return 1;if(re[se][0]===Q)return re[se][1];if(re[se][0]>Q&&se>0){var ee=(re[se][0]-Q)/(re[se][0]-re[se-1][0]);return re[se][1]*(1-ee)+ee*re[se-1][1]}}return 1}var P=[0,0,0],O={showSurface:!1,showContour:!1,projections:[p.slice(),p.slice(),p.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function U(Q,re){var se,ee,ae,ce=re.axes&&re.axes.lastCubeProps.axis||P,Me=re.showSurface,ke=re.showContour;for(se=0;se<3;++se)for(Me=Me||re.surfaceProject[se],ee=0;ee<3;++ee)ke=ke||re.contourProject[se][ee];for(se=0;se<3;++se){var Se=O.projections[se];for(ee=0;ee<16;++ee)Se[ee]=0;for(ee=0;ee<4;++ee)Se[5*ee]=1;Se[5*se]=0,Se[12+se]=re.axesBounds[+(ce[se]>0)][se],m(Se,Q.model,Se);var ge=O.clipBounds[se];for(ae=0;ae<2;++ae)for(ee=0;ee<3;++ee)ge[ae][ee]=Q.clipBounds[ae][ee];ge[0][se]=-1e8,ge[1][se]=1e8}return O.showSurface=Me,O.showContour=ke,O}var V={model:p,view:p,projection:p,inverseModel:p.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},K=p.slice(),j=[1,0,0,0,1,0,0,0,1];function G(Q,re){Q=Q||{};var se=this.gl;se.disable(se.CULL_FACE),this._colorMap.bind(0);var ee=V;ee.model=Q.model||p,ee.view=Q.view||p,ee.projection=Q.projection||p,ee.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ee.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ee.objectOffset=this.objectOffset,ee.contourColor=this.contourColor[0],ee.inverseModel=k(ee.inverseModel,ee.model);for(var ae=0;ae<2;++ae)for(var ce=ee.clipBounds[ae],Me=0;Me<3;++Me)ce[Me]=Math.min(Math.max(this.clipBounds[ae][Me],-1e8),1e8);ee.kambient=this.ambientLight,ee.kdiffuse=this.diffuseLight,ee.kspecular=this.specularLight,ee.roughness=this.roughness,ee.fresnel=this.fresnel,ee.opacity=this.opacity,ee.height=0,ee.permutation=j,ee.vertexColor=this.vertexColor;var ke=K;for(m(ke,ee.view,ee.model),m(ke,ee.projection,ke),k(ke,ke),ae=0;ae<3;++ae)ee.eyePosition[ae]=ke[12+ae]/ke[15];var Se=ke[15];for(ae=0;ae<3;++ae)Se+=this.lightPosition[ae]*ke[4*ae+3];for(ae=0;ae<3;++ae){var ge=ke[12+ae];for(Me=0;Me<3;++Me)ge+=ke[4*Me+ae]*this.lightPosition[Me];ee.lightPosition[ae]=ge/Se}var Le=U(ee,this);if(Le.showSurface){for(this._shader.bind(),this._shader.uniforms=ee,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(se.TRIANGLES,this._vertexCount),ae=0;ae<3;++ae)!this.surfaceProject[ae]||!this.vertexCount||(this._shader.uniforms.model=Le.projections[ae],this._shader.uniforms.clipBounds=Le.clipBounds[ae],this._vao.draw(se.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Le.showContour){var Ee=this._contourShader;ee.kambient=1,ee.kdiffuse=0,ee.kspecular=0,ee.opacity=1,Ee.bind(),Ee.uniforms=ee;var le=this._contourVAO;for(le.bind(),ae=0;ae<3;++ae)for(Ee.uniforms.permutation=E[ae],se.lineWidth(this.contourWidth[ae]*this.pixelRatio),Me=0;Me<this.contourLevels[ae].length;++Me)Me===this.highlightLevel[ae]?(Ee.uniforms.contourColor=this.highlightColor[ae],Ee.uniforms.contourTint=this.highlightTint[ae]):(Me===0||Me-1===this.highlightLevel[ae])&&(Ee.uniforms.contourColor=this.contourColor[ae],Ee.uniforms.contourTint=this.contourTint[ae]),this._contourCounts[ae][Me]&&(Ee.uniforms.height=this.contourLevels[ae][Me],le.draw(se.LINES,this._contourCounts[ae][Me],this._contourOffsets[ae][Me]));for(ae=0;ae<3;++ae)for(Ee.uniforms.model=Le.projections[ae],Ee.uniforms.clipBounds=Le.clipBounds[ae],Me=0;Me<3;++Me)if(this.contourProject[ae][Me]){Ee.uniforms.permutation=E[Me],se.lineWidth(this.contourWidth[Me]*this.pixelRatio);for(var Y=0;Y<this.contourLevels[Me].length;++Y)Y===this.highlightLevel[Me]?(Ee.uniforms.contourColor=this.highlightColor[Me],Ee.uniforms.contourTint=this.highlightTint[Me]):(Y===0||Y-1===this.highlightLevel[Me])&&(Ee.uniforms.contourColor=this.contourColor[Me],Ee.uniforms.contourTint=this.contourTint[Me]),this._contourCounts[Me][Y]&&(Ee.uniforms.height=this.contourLevels[Me][Y],le.draw(se.LINES,this._contourCounts[Me][Y],this._contourOffsets[Me][Y]))}for(le.unbind(),le=this._dynamicVAO,le.bind(),ae=0;ae<3;++ae)if(this._dynamicCounts[ae]!==0)for(Ee.uniforms.model=ee.model,Ee.uniforms.clipBounds=ee.clipBounds,Ee.uniforms.permutation=E[ae],se.lineWidth(this.dynamicWidth[ae]*this.pixelRatio),Ee.uniforms.contourColor=this.dynamicColor[ae],Ee.uniforms.contourTint=this.dynamicTint[ae],Ee.uniforms.height=this.dynamicLevel[ae],le.draw(se.LINES,this._dynamicCounts[ae],this._dynamicOffsets[ae]),Me=0;Me<3;++Me)this.contourProject[Me][ae]&&(Ee.uniforms.model=Le.projections[Me],Ee.uniforms.clipBounds=Le.clipBounds[Me],le.draw(se.LINES,this._dynamicCounts[ae],this._dynamicOffsets[ae]));le.unbind()}}I.draw=function(Q){return G.call(this,Q,!1)},I.drawTransparent=function(Q){return G.call(this,Q,!0)};var q={model:p,view:p,projection:p,inverseModel:p,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};I.drawPick=function(Q){Q=Q||{};var re=this.gl;re.disable(re.CULL_FACE);var se=q;se.model=Q.model||p,se.view=Q.view||p,se.projection=Q.projection||p,se.shape=this._field[2].shape,se.pickId=this.pickId/255,se.lowerBound=this.bounds[0],se.upperBound=this.bounds[1],se.objectOffset=this.objectOffset,se.permutation=j;for(var ee=0;ee<2;++ee)for(var ae=se.clipBounds[ee],ce=0;ce<3;++ce)ae[ce]=Math.min(Math.max(this.clipBounds[ee][ce],-1e8),1e8);var Me=U(se,this);if(Me.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=se,this._vao.bind(),this._vao.draw(re.TRIANGLES,this._vertexCount),ee=0;ee<3;++ee)this.surfaceProject[ee]&&(this._pickShader.uniforms.model=Me.projections[ee],this._pickShader.uniforms.clipBounds=Me.clipBounds[ee],this._vao.draw(re.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Me.showContour){var ke=this._contourPickShader;ke.bind(),ke.uniforms=se;var Se=this._contourVAO;for(Se.bind(),ce=0;ce<3;++ce)for(re.lineWidth(this.contourWidth[ce]*this.pixelRatio),ke.uniforms.permutation=E[ce],ee=0;ee<this.contourLevels[ce].length;++ee)this._contourCounts[ce][ee]&&(ke.uniforms.height=this.contourLevels[ce][ee],Se.draw(re.LINES,this._contourCounts[ce][ee],this._contourOffsets[ce][ee]));for(ee=0;ee<3;++ee)for(ke.uniforms.model=Me.projections[ee],ke.uniforms.clipBounds=Me.clipBounds[ee],ce=0;ce<3;++ce)if(this.contourProject[ee][ce]){ke.uniforms.permutation=E[ce],re.lineWidth(this.contourWidth[ce]*this.pixelRatio);for(var ge=0;ge<this.contourLevels[ce].length;++ge)this._contourCounts[ce][ge]&&(ke.uniforms.height=this.contourLevels[ce][ge],Se.draw(re.LINES,this._contourCounts[ce][ge],this._contourOffsets[ce][ge]))}Se.unbind()}},I.pick=function(Q){if(!Q||Q.id!==this.pickId)return null;var re=this._field[2].shape,se=this._pickResult,ee=re[0]*(Q.value[0]+(Q.value[2]>>4)/16)/255,ae=Math.floor(ee),ce=ee-ae,Me=re[1]*(Q.value[1]+(Q.value[2]&15)/16)/255,ke=Math.floor(Me),Se=Me-ke;ae+=1,ke+=1;var ge=se.position;ge[0]=ge[1]=ge[2]=0;for(var Le=0;Le<2;++Le)for(var Ee=Le?ce:1-ce,le=0;le<2;++le)for(var Y=le?Se:1-Se,$=ae+Le,pe=ke+le,oe=Ee*Y,ve=0;ve<3;++ve)ge[ve]+=this._field[ve].get($,pe)*oe;for(var he=this._pickResult.level,me=0;me<3;++me)if(he[me]=S.le(this.contourLevels[me],ge[me]),he[me]<0)this.contourLevels[me].length>0&&(he[me]=0);else if(he[me]<this.contourLevels[me].length-1){var be=this.contourLevels[me][he[me]],ye=this.contourLevels[me][he[me]+1];Math.abs(be-ge[me])>Math.abs(ye-ge[me])&&(he[me]+=1)}for(se.index[0]=ce<.5?ae:ae+1,se.index[1]=Se<.5?ke:ke+1,se.uv[0]=ee/re[0],se.uv[1]=Me/re[1],ve=0;ve<3;++ve)se.dataCoordinate[ve]=this._field[ve].get(se.index[0],se.index[1]);return se},I.padField=function(Q,re){var se=re.shape.slice(),ee=Q.shape.slice();x.assign(Q.lo(1,1).hi(se[0],se[1]),re),x.assign(Q.lo(1).hi(se[0],1),re.hi(se[0],1)),x.assign(Q.lo(1,ee[1]-1).hi(se[0],1),re.lo(0,se[1]-1).hi(se[0],1)),x.assign(Q.lo(0,1).hi(1,se[1]),re.hi(1)),x.assign(Q.lo(ee[0]-1,1).hi(1,se[1]),re.lo(se[0]-1)),Q.set(0,0,re.get(0,0)),Q.set(0,ee[1]-1,re.get(0,se[1]-1)),Q.set(ee[0]-1,0,re.get(se[0]-1,0)),Q.set(ee[0]-1,ee[1]-1,re.get(se[0]-1,se[1]-1))};function J(Q,re){return Array.isArray(Q)?[re(Q[0]),re(Q[1]),re(Q[2])]:[re(Q),re(Q),re(Q)]}function te(Q){return Array.isArray(Q)?Q.length===3?[Q[0],Q[1],Q[2],1]:[Q[0],Q[1],Q[2],Q[3]]:[0,0,0,1]}function Z(Q){if(Array.isArray(Q)){if(Array.isArray(Q))return[te(Q[0]),te(Q[1]),te(Q[2])];var re=te(Q);return[re.slice(),re.slice(),re.slice()]}}I.update=function(Q){Q=Q||{},this.objectOffset=Q.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Q&&(this.contourWidth=J(Q.contourWidth,Number)),"showContour"in Q&&(this.showContour=J(Q.showContour,Boolean)),"showSurface"in Q&&(this.showSurface=!!Q.showSurface),"contourTint"in Q&&(this.contourTint=J(Q.contourTint,Boolean)),"contourColor"in Q&&(this.contourColor=Z(Q.contourColor)),"contourProject"in Q&&(this.contourProject=J(Q.contourProject,function(Ua){return J(Ua,Boolean)})),"surfaceProject"in Q&&(this.surfaceProject=Q.surfaceProject),"dynamicColor"in Q&&(this.dynamicColor=Z(Q.dynamicColor)),"dynamicTint"in Q&&(this.dynamicTint=J(Q.dynamicTint,Number)),"dynamicWidth"in Q&&(this.dynamicWidth=J(Q.dynamicWidth,Number)),"opacity"in Q&&(this.opacity=Q.opacity),"opacityscale"in Q&&(this.opacityscale=Q.opacityscale),"colorBounds"in Q&&(this.colorBounds=Q.colorBounds),"vertexColor"in Q&&(this.vertexColor=Q.vertexColor?1:0),"colormap"in Q&&this._colorMap.setPixels(this.genColormap(Q.colormap,this.opacityscale));var re=Q.field||Q.coords&&Q.coords[2]||null,se=!1;if(re||(this._field[2].shape[0]||this._field[2].shape[2]?re=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):re=this._field[2].hi(0,0)),"field"in Q||"coords"in Q){var ee=(re.shape[0]+2)*(re.shape[1]+2);ee>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(l.nextPow2(ee))),this._field[2]=w(this._field[2].data,[re.shape[0]+2,re.shape[1]+2]),this.padField(this._field[2],re),this.shape=re.shape.slice();for(var ae=this.shape,ce=0;ce<2;++ce)this._field[2].size>this._field[ce].data.length&&(c.freeFloat(this._field[ce].data),this._field[ce].data=c.mallocFloat(this._field[2].size)),this._field[ce]=w(this._field[ce].data,[ae[0]+2,ae[1]+2]);if(Q.coords){var Me=Q.coords;if(!Array.isArray(Me)||Me.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ce=0;ce<2;++ce){var ke=Me[ce];for(le=0;le<2;++le)if(ke.shape[le]!==ae[le])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ce],ke)}}else if(Q.ticks){var Se=Q.ticks;if(!Array.isArray(Se)||Se.length!==2)throw new Error("gl-surface: invalid ticks");for(ce=0;ce<2;++ce){var ge=Se[ce];if((Array.isArray(ge)||ge.length)&&(ge=w(ge)),ge.shape[0]!==ae[ce])throw new Error("gl-surface: invalid tick length");var Le=w(ge.data,ae);Le.stride[ce]=ge.stride[0],Le.stride[ce^1]=0,this.padField(this._field[ce],Le)}}else{for(ce=0;ce<2;++ce){var Ee=[0,0];Ee[ce]=1,this._field[ce]=w(this._field[ce].data,[ae[0]+2,ae[1]+2],Ee,0)}this._field[0].set(0,0,0);for(var le=0;le<ae[0];++le)this._field[0].set(le+1,0,le);for(this._field[0].set(ae[0]+1,0,ae[0]-1),this._field[1].set(0,0,0),le=0;le<ae[1];++le)this._field[1].set(0,le+1,le);this._field[1].set(0,ae[1]+1,ae[1]-1)}var Y=this._field,$=w(c.mallocFloat(Y[2].size*3*2),[3,ae[0]+2,ae[1]+2,2]);for(ce=0;ce<3;++ce)b($.pick(ce),Y[ce],"mirror");var pe=w(c.mallocFloat(Y[2].size*3),[ae[0]+2,ae[1]+2,3]);for(ce=0;ce<ae[0]+2;++ce)for(le=0;le<ae[1]+2;++le){var oe=$.get(0,ce,le,0),ve=$.get(0,ce,le,1),he=$.get(1,ce,le,0),me=$.get(1,ce,le,1),be=$.get(2,ce,le,0),ye=$.get(2,ce,le,1),de=he*ye-me*be,_e=be*ve-ye*oe,Ae=oe*me-ve*he,Ie=Math.sqrt(de*de+_e*_e+Ae*Ae);Ie<1e-8?(Ie=Math.max(Math.abs(de),Math.abs(_e),Math.abs(Ae)),Ie<1e-8?(Ae=1,_e=de=0,Ie=1):Ie=1/Ie):Ie=1/Math.sqrt(Ie),pe.set(ce,le,0,de*Ie),pe.set(ce,le,1,_e*Ie),pe.set(ce,le,2,Ae*Ie)}c.free($.data);var Pe=[1/0,1/0,1/0],Ye=[-1/0,-1/0,-1/0],qe=1/0,Oe=-1/0,Be=(ae[0]-1)*(ae[1]-1)*6,We=c.mallocFloat(l.nextPow2(10*Be)),Xe=0,tr=0;for(ce=0;ce<ae[0]-1;++ce)e:for(le=0;le<ae[1]-1;++le){for(var ir=0;ir<2;++ir)for(var je=0;je<2;++je)for(var Ke=0;Ke<3;++Ke){var Ce=this._field[Ke].get(1+ce+ir,1+le+je);if(isNaN(Ce)||!isFinite(Ce))continue e}for(Ke=0;Ke<6;++Ke){var Fe=ce+R[Ke][0],Qe=le+R[Ke][1],er=this._field[0].get(Fe+1,Qe+1),wr=this._field[1].get(Fe+1,Qe+1);Ce=this._field[2].get(Fe+1,Qe+1),de=pe.get(Fe+1,Qe+1,0),_e=pe.get(Fe+1,Qe+1,1),Ae=pe.get(Fe+1,Qe+1,2),Q.intensity&&(Vr=Q.intensity.get(Fe,Qe));var Vr=Q.intensity?Q.intensity.get(Fe,Qe):Ce+this.objectOffset[2];We[Xe++]=Fe,We[Xe++]=Qe,We[Xe++]=er,We[Xe++]=wr,We[Xe++]=Ce,We[Xe++]=0,We[Xe++]=Vr,We[Xe++]=de,We[Xe++]=_e,We[Xe++]=Ae,Pe[0]=Math.min(Pe[0],er+this.objectOffset[0]),Pe[1]=Math.min(Pe[1],wr+this.objectOffset[1]),Pe[2]=Math.min(Pe[2],Ce+this.objectOffset[2]),qe=Math.min(qe,Vr),Ye[0]=Math.max(Ye[0],er+this.objectOffset[0]),Ye[1]=Math.max(Ye[1],wr+this.objectOffset[1]),Ye[2]=Math.max(Ye[2],Ce+this.objectOffset[2]),Oe=Math.max(Oe,Vr),tr+=1}}for(Q.intensityBounds&&(qe=+Q.intensityBounds[0],Oe=+Q.intensityBounds[1]),ce=6;ce<Xe;ce+=10)We[ce]=(We[ce]-qe)/(Oe-qe);this._vertexCount=tr,this._coordinateBuffer.update(We.subarray(0,Xe)),c.freeFloat(We),c.free(pe.data),this.bounds=[Pe,Ye],this.intensity=Q.intensity||this._field[2],(this.intensityBounds[0]!==qe||this.intensityBounds[1]!==Oe)&&(se=!0),this.intensityBounds=[qe,Oe]}if("levels"in Q){var Mr=Q.levels;for(Array.isArray(Mr[0])?Mr=Mr.slice():Mr=[[],[],Mr],ce=0;ce<3;++ce)Mr[ce]=Mr[ce].slice(),Mr[ce].sort(function(Ua,Bi){return Ua-Bi});for(ce=0;ce<3;++ce)for(le=0;le<Mr[ce].length;++le)Mr[ce][le]-=this.objectOffset[ce];e:for(ce=0;ce<3;++ce){if(Mr[ce].length!==this.contourLevels[ce].length){se=!0;break}for(le=0;le<Mr[ce].length;++le)if(Mr[ce][le]!==this.contourLevels[ce][le]){se=!0;break e}}this.contourLevels=Mr}if(se){Y=this._field,ae=this.shape;for(var Dr=[],Qr=0;Qr<3;++Qr){var Sr=this.contourLevels[Qr],Wr=[],bt=[],Jr=[0,0,0];for(ce=0;ce<Sr.length;++ce){var lt=T(this._field[Qr],Sr[ce]);Wr.push(Dr.length/5|0),tr=0;e:for(le=0;le<lt.cells.length;++le){var Cn=lt.cells[le];for(Ke=0;Ke<2;++Ke){var lr=lt.positions[Cn[Ke]],Fr=lr[0],et=Math.floor(Fr)|0,Br=Fr-et,Gr=lr[1],pt=Math.floor(Gr)|0,at=Gr-pt,Ct=!1;r:for(var Zt=0;Zt<3;++Zt){Jr[Zt]=0;var St=(Qr+Zt+1)%3;for(ir=0;ir<2;++ir){var gt=ir?Br:1-Br;for(Fe=Math.min(Math.max(et+ir,0),ae[0])|0,je=0;je<2;++je){var Et=je?at:1-at;if(Qe=Math.min(Math.max(pt+je,0),ae[1])|0,Zt<2?Ce=this._field[St].get(Fe,Qe):Ce=(this.intensity.get(Fe,Qe)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(Ce)||isNaN(Ce)){Ct=!0;break r}var Lt=gt*Et;Jr[Zt]+=Lt*Ce}}}if(!Ct)Dr.push(Jr[0],Jr[1],lr[0],lr[1],Jr[2]),tr+=1;else{if(Ke>0){for(var da=0;da<5;++da)Dr.pop();tr-=1}continue e}}}bt.push(tr)}this._contourOffsets[Qr]=Wr,this._contourCounts[Qr]=bt}var Wn=c.mallocFloat(Dr.length);for(ce=0;ce<Dr.length;++ce)Wn[ce]=Dr[ce];this._contourBuffer.update(Wn),c.freeFloat(Wn)}},I.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var Q=0;Q<3;++Q)c.freeFloat(this._field[Q].data)},I.highlight=function(Q){var re;if(!Q){this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],this.highlightLevel=[-1,-1,-1];return}for(re=0;re<3;++re)this.enableHighlight[re]?this.highlightLevel[re]=Q.level[re]:this.highlightLevel[re]=-1;var se;for(this.snapToData?se=Q.dataCoordinate:se=Q.position,re=0;re<3;++re)se[re]-=this.objectOffset[re];if(!((!this.enableDynamic[0]||se[0]===this.dynamicLevel[0])&&(!this.enableDynamic[1]||se[1]===this.dynamicLevel[1])&&(!this.enableDynamic[2]||se[2]===this.dynamicLevel[2]))){for(var ee=0,ae=this.shape,ce=c.mallocFloat(12*ae[0]*ae[1]),Me=0;Me<3;++Me){if(!this.enableDynamic[Me]){this.dynamicLevel[Me]=NaN,this._dynamicCounts[Me]=0;continue}this.dynamicLevel[Me]=se[Me];var ke=(Me+1)%3,Se=(Me+2)%3,ge=this._field[Me],Le=this._field[ke],Ee=this._field[Se],le=T(ge,se[Me]),Y=le.cells,$=le.positions;for(this._dynamicOffsets[Me]=ee,re=0;re<Y.length;++re)for(var pe=Y[re],oe=0;oe<2;++oe){var ve=$[pe[oe]],he=+ve[0],me=he|0,be=Math.min(me+1,ae[0])|0,ye=he-me,de=1-ye,_e=+ve[1],Ae=_e|0,Ie=Math.min(Ae+1,ae[1])|0,Pe=_e-Ae,Ye=1-Pe,qe=de*Ye,Oe=de*Pe,Be=ye*Ye,We=ye*Pe,Xe=qe*Le.get(me,Ae)+Oe*Le.get(me,Ie)+Be*Le.get(be,Ae)+We*Le.get(be,Ie),tr=qe*Ee.get(me,Ae)+Oe*Ee.get(me,Ie)+Be*Ee.get(be,Ae)+We*Ee.get(be,Ie);if(isNaN(Xe)||isNaN(tr)){oe&&(ee-=1);break}ce[2*ee+0]=Xe,ce[2*ee+1]=tr,ee+=1}this._dynamicCounts[Me]=ee-this._dynamicOffsets[Me]}this._dynamicBuffer.update(ce.subarray(0,2*ee)),c.freeFloat(ce)}};function ie(Q){var re=Q.gl,se=h(re),ee=y(re),ae=_(re),ce=v(re),Me=u(re),ke=s(re,[{buffer:Me,size:4,stride:A,offset:0},{buffer:Me,size:3,stride:A,offset:16},{buffer:Me,size:3,stride:A,offset:28}]),Se=u(re),ge=s(re,[{buffer:Se,size:4,stride:20,offset:0},{buffer:Se,size:1,stride:20,offset:16}]),Le=u(re),Ee=s(re,[{buffer:Le,size:2,type:re.FLOAT}]),le=f(re,1,F,re.RGBA,re.UNSIGNED_BYTE);le.minFilter=re.LINEAR,le.magFilter=re.LINEAR;var Y=new z(re,[0,0],[[0,0,0],[0,0,0]],se,ee,Me,ke,le,ae,ce,Se,ge,Le,Ee,[0,0,0]),$={levels:[[],[],[]]};for(var pe in Q)$[pe]=Q[pe];return $.colormap=$.colormap||"jet",Y.update($),Y}}),7766:(function(a,o,i){"use strict";var l=i(9618),u=i(5298),s=i(1888);a.exports=v;var f=null,c=null,d=null;function x(A){f=[A.LINEAR,A.NEAREST_MIPMAP_LINEAR,A.LINEAR_MIPMAP_NEAREST,A.LINEAR_MIPMAP_NEAREST],c=[A.NEAREST,A.LINEAR,A.NEAREST_MIPMAP_NEAREST,A.NEAREST_MIPMAP_LINEAR,A.LINEAR_MIPMAP_NEAREST,A.LINEAR_MIPMAP_LINEAR],d=[A.REPEAT,A.CLAMP_TO_EDGE,A.MIRRORED_REPEAT]}function g(A){return typeof HTMLCanvasElement!="undefined"&&A instanceof HTMLCanvasElement||typeof HTMLImageElement!="undefined"&&A instanceof HTMLImageElement||typeof HTMLVideoElement!="undefined"&&A instanceof HTMLVideoElement||typeof ImageData!="undefined"&&A instanceof ImageData}var w=function(A,p){u.muls(A,p,255)};function T(A,p,R){var E=A.gl,D=E.getParameter(E.MAX_TEXTURE_SIZE);if(p<0||p>D||R<0||R>D)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[p,R],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,p,R,0,A.format,A.type,null),A._mipLevels=[0],A}function m(A,p,R,E,D,F){this.gl=A,this.handle=p,this.format=D,this.type=F,this._shape=[R,E],this._mipLevels=[0],this._magFilter=A.NEAREST,this._minFilter=A.NEAREST,this._wrapS=A.CLAMP_TO_EDGE,this._wrapT=A.CLAMP_TO_EDGE,this._anisoSamples=1;var z=this,I=[this._wrapS,this._wrapT];Object.defineProperties(I,[{get:function(){return z._wrapS},set:function(P){return z.wrapS=P}},{get:function(){return z._wrapT},set:function(P){return z.wrapT=P}}]),this._wrapVector=I;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return z._shape[0]},set:function(P){return z.width=P}},{get:function(){return z._shape[1]},set:function(P){return z.height=P}}]),this._shapeVector=L}var k=m.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var p=this.gl;if(this.type===p.FLOAT&&f.indexOf(A)>=0&&(p.getExtension("OES_texture_float_linear")||(A=p.NEAREST)),c.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var p=this.gl;if(this.type===p.FLOAT&&f.indexOf(A)>=0&&(p.getExtension("OES_texture_float_linear")||(A=p.NEAREST)),c.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var p=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,p!==this._anisoSamples){var R=this.gl.getExtension("EXT_texture_filter_anisotropic");R&&this.gl.texParameterf(this.gl.TEXTURE_2D,R.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(A){if(this.bind(),d.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,A),this._wrapS=A}},wrapT:{get:function(){return this._wrapT},set:function(A){if(this.bind(),d.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,A),this._wrapT=A}},wrap:{get:function(){return this._wrapVector},set:function(A){if(Array.isArray(A)||(A=[A,A]),A.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var p=0;p<2;++p)if(d.indexOf(A[p])<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);this._wrapS=A[0],this._wrapT=A[1];var R=this.gl;return this.bind(),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_S,this._wrapS),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_T,this._wrapT),A}},shape:{get:function(){return this._shapeVector},set:function(A){if(!Array.isArray(A))A=[A|0,A|0];else if(A.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return T(this,A[0]|0,A[1]|0),[A[0]|0,A[1]|0]}},width:{get:function(){return this._shape[0]},set:function(A){return A=A|0,T(this,A,this._shape[1]),A}},height:{get:function(){return this._shape[1]},set:function(A){return A=A|0,T(this,this._shape[0],A),A}}}),k.bind=function(A){var p=this.gl;return A!==void 0&&p.activeTexture(p.TEXTURE0+(A|0)),p.bindTexture(p.TEXTURE_2D,this.handle),A!==void 0?A|0:p.getParameter(p.ACTIVE_TEXTURE)-p.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var A=Math.min(this._shape[0],this._shape[1]),p=0;A>0;++p,A>>>=1)this._mipLevels.indexOf(p)<0&&this._mipLevels.push(p)},k.setPixels=function(A,p,R,E){var D=this.gl;this.bind(),Array.isArray(p)?(E=R,R=p[1]|0,p=p[0]|0):(p=p||0,R=R||0),E=E||0;var F=g(A)?A:A.raw;if(F){var z=this._mipLevels.indexOf(E)<0;z?(D.texImage2D(D.TEXTURE_2D,0,this.format,this.format,this.type,F),this._mipLevels.push(E)):D.texSubImage2D(D.TEXTURE_2D,E,p,R,this.format,this.type,F)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||p+A.shape[1]>this._shape[1]>>>E||R+A.shape[0]>this._shape[0]>>>E||p<0||R<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");b(D,p,R,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,p){return A.length===3?p[2]===1&&p[1]===A[0]*A[2]&&p[0]===A[2]:p[0]===1&&p[1]===A[0]}function b(A,p,R,E,D,F,z,I){var L=I.dtype,P=I.shape.slice();if(P.length<2||P.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var O=0,U=0,V=S(P,I.stride.slice());L==="float32"?O=A.FLOAT:L==="float64"?(O=A.FLOAT,V=!1,L="float32"):L==="uint8"?O=A.UNSIGNED_BYTE:(O=A.UNSIGNED_BYTE,V=!1,L="uint8");var K=1;if(P.length===2)U=A.LUMINANCE,P=[P[0],P[1],1],I=l(I.data,P,[I.stride[0],I.stride[1],1],I.offset);else if(P.length===3){if(P[2]===1)U=A.ALPHA;else if(P[2]===2)U=A.LUMINANCE_ALPHA;else if(P[2]===3)U=A.RGB;else if(P[2]===4)U=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");K=P[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((U===A.LUMINANCE||U===A.ALPHA)&&(D===A.LUMINANCE||D===A.ALPHA)&&(U=D),U!==D)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var j=I.size,G=z.indexOf(E)<0;if(G&&z.push(E),O===F&&V)I.offset===0&&I.data.length===j?G?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,F,I.data):A.texSubImage2D(A.TEXTURE_2D,E,p,R,P[0],P[1],D,F,I.data):G?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,F,I.data.subarray(I.offset,I.offset+j)):A.texSubImage2D(A.TEXTURE_2D,E,p,R,P[0],P[1],D,F,I.data.subarray(I.offset,I.offset+j));else{var q;F===A.FLOAT?q=s.mallocFloat32(j):q=s.mallocUint8(j);var J=l(q,P,[P[2],P[2]*P[0],1]);O===A.FLOAT&&F===A.UNSIGNED_BYTE?w(J,I):u.assign(J,I),G?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,F,q.subarray(0,j)):A.texSubImage2D(A.TEXTURE_2D,E,p,R,P[0],P[1],D,F,q.subarray(0,j)),F===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function M(A){var p=A.createTexture();return A.bindTexture(A.TEXTURE_2D,p),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,A.CLAMP_TO_EDGE),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,A.CLAMP_TO_EDGE),p}function h(A,p,R,E,D){var F=A.getParameter(A.MAX_TEXTURE_SIZE);if(p<0||p>F||R<0||R>F)throw new Error("gl-texture2d: Invalid texture shape");if(D===A.FLOAT&&!A.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var z=M(A);return A.texImage2D(A.TEXTURE_2D,0,E,p,R,0,E,D,null),new m(A,z,p,R,E,D)}function _(A,p,R,E,D,F){var z=M(A);return A.texImage2D(A.TEXTURE_2D,0,D,D,F,p),new m(A,z,R,E,D,F)}function y(A,p){var R=p.dtype,E=p.shape.slice(),D=A.getParameter(A.MAX_TEXTURE_SIZE);if(E[0]<0||E[0]>D||E[1]<0||E[1]>D)throw new Error("gl-texture2d: Invalid texture size");var F=S(E,p.stride.slice()),z=0;R==="float32"?z=A.FLOAT:R==="float64"?(z=A.FLOAT,F=!1,R="float32"):R==="uint8"?z=A.UNSIGNED_BYTE:(z=A.UNSIGNED_BYTE,F=!1,R="uint8");var I=0;if(E.length===2)I=A.LUMINANCE,E=[E[0],E[1],1],p=l(p.data,E,[p.stride[0],p.stride[1],1],p.offset);else if(E.length===3)if(E[2]===1)I=A.ALPHA;else if(E[2]===2)I=A.LUMINANCE_ALPHA;else if(E[2]===3)I=A.RGB;else if(E[2]===4)I=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");z===A.FLOAT&&!A.getExtension("OES_texture_float")&&(z=A.UNSIGNED_BYTE,F=!1);var L,P,O=p.size;if(F)p.offset===0&&p.data.length===O?L=p.data:L=p.data.subarray(p.offset,p.offset+O);else{var U=[E[2],E[2]*E[0],1];P=s.malloc(O,R);var V=l(P,E,U,0);(R==="float32"||R==="float64")&&z===A.UNSIGNED_BYTE?w(V,p):u.assign(V,p),L=P.subarray(0,O)}var K=M(A);return A.texImage2D(A.TEXTURE_2D,0,I,E[0],E[1],0,I,z,L),F||s.free(P),new m(A,K,E[0],E[1],I,z)}function v(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||x(A),typeof arguments[1]=="number")return h(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return h(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var p=arguments[1],R=g(p)?p:p.raw;if(R)return _(A,R,p.width|0,p.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(p.shape&&p.data&&p.stride)return y(A,p)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}}),1433:(function(a){"use strict";function o(i,l,u){l?l.bind():i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null);var s=i.getParameter(i.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>s)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f<u.length;++f){var c=u[f];if(c.buffer){var d=c.buffer,x=c.size||4,g=c.type||i.FLOAT,w=!!c.normalized,T=c.stride||0,m=c.offset||0;d.bind(),i.enableVertexAttribArray(f),i.vertexAttribPointer(f,x,g,w,T,m)}else{if(typeof c=="number")i.vertexAttrib1f(f,c);else if(c.length===1)i.vertexAttrib1f(f,c[0]);else if(c.length===2)i.vertexAttrib2f(f,c[0],c[1]);else if(c.length===3)i.vertexAttrib3f(f,c[0],c[1],c[2]);else if(c.length===4)i.vertexAttrib4f(f,c[0],c[1],c[2],c[3]);else throw new Error("gl-vao: Invalid vertex attribute");i.disableVertexAttribArray(f)}}for(;f<s;++f)i.disableVertexAttribArray(f)}else{i.bindBuffer(i.ARRAY_BUFFER,null);for(var f=0;f<s;++f)i.disableVertexAttribArray(f)}}a.exports=o}),870:(function(a,o,i){"use strict";var l=i(1433);function u(f){this.gl=f,this._elements=null,this._attributes=null,this._elementsType=f.UNSIGNED_SHORT}u.prototype.bind=function(){l(this.gl,this._elements,this._attributes)},u.prototype.update=function(f,c,d){this._elements=c,this._attributes=f,this._elementsType=d||this.gl.UNSIGNED_SHORT},u.prototype.dispose=function(){},u.prototype.unbind=function(){},u.prototype.draw=function(f,c,d){d=d||0;var x=this.gl;this._elements?x.drawElements(f,c,this._elementsType,d):x.drawArrays(f,d,c)};function s(f){return new u(f)}a.exports=s}),7518:(function(a,o,i){"use strict";var l=i(1433);function u(c,d,x,g,w,T){this.location=c,this.dimension=d,this.a=x,this.b=g,this.c=w,this.d=T}u.prototype.bind=function(c){switch(this.dimension){case 1:c.vertexAttrib1f(this.location,this.a);break;case 2:c.vertexAttrib2f(this.location,this.a,this.b);break;case 3:c.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:c.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d);break}};function s(c,d,x){this.gl=c,this._ext=d,this.handle=x,this._attribs=[],this._useElements=!1,this._elementsType=c.UNSIGNED_SHORT}s.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var c=0;c<this._attribs.length;++c)this._attribs[c].bind(this.gl)},s.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},s.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},s.prototype.update=function(c,d,x){if(this.bind(),l(this.gl,d,c),this.unbind(),this._attribs.length=0,c)for(var g=0;g<c.length;++g){var w=c[g];typeof w=="number"?this._attribs.push(new u(g,1,w)):Array.isArray(w)&&this._attribs.push(new u(g,w.length,w[0],w[1],w[2],w[3]))}this._useElements=!!d,this._elementsType=x||this.gl.UNSIGNED_SHORT},s.prototype.draw=function(c,d,x){x=x||0;var g=this.gl;this._useElements?g.drawElements(c,d,this._elementsType,x):g.drawArrays(c,x,d)};function f(c,d){return new s(c,d,d.createVertexArrayOES())}a.exports=f}),8116:(function(a,o,i){"use strict";var l=i(7518),u=i(870);function s(c){this.bindVertexArrayOES=c.bindVertexArray.bind(c),this.createVertexArrayOES=c.createVertexArray.bind(c),this.deleteVertexArrayOES=c.deleteVertexArray.bind(c)}function f(c,d,x,g){var w=c.createVertexArray?new s(c):c.getExtension("OES_vertex_array_object"),T;return w?T=l(c,w):T=u(c),T.update(d,x,g),T}a.exports=f}),5632:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i}}),8192:(function(a,o,i){a.exports=f;var l=i(2825),u=i(3536),s=i(244);function f(c,d){var x=l(c[0],c[1],c[2]),g=l(d[0],d[1],d[2]);u(x,x),u(g,g);var w=s(x,g);return w>1?0:Math.acos(w)}}),9226:(function(a){a.exports=o;function o(i,l){return i[0]=Math.ceil(l[0]),i[1]=Math.ceil(l[1]),i[2]=Math.ceil(l[2]),i}}),3126:(function(a){a.exports=o;function o(i){var l=new Float32Array(3);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l}}),3990:(function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i}}),1091:(function(a){a.exports=o;function o(){var i=new Float32Array(3);return i[0]=0,i[1]=0,i[2]=0,i}}),5911:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],d=u[0],x=u[1],g=u[2];return i[0]=f*g-c*x,i[1]=c*d-s*g,i[2]=s*x-f*d,i}}),5455:(function(a,o,i){a.exports=i(7056)}),7056:(function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return Math.sqrt(u*u+s*s+f*f)}}),4008:(function(a,o,i){a.exports=i(6690)}),6690:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i}}),244:(function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]}}),2613:(function(a){a.exports=1e-6}),9922:(function(a,o,i){a.exports=u;var l=i(2613);function u(s,f){var c=s[0],d=s[1],x=s[2],g=f[0],w=f[1],T=f[2];return Math.abs(c-g)<=l*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(d-w)<=l*Math.max(1,Math.abs(d),Math.abs(w))&&Math.abs(x-T)<=l*Math.max(1,Math.abs(x),Math.abs(T))}}),9265:(function(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}}),2681:(function(a){a.exports=o;function o(i,l){return i[0]=Math.floor(l[0]),i[1]=Math.floor(l[1]),i[2]=Math.floor(l[2]),i}}),5137:(function(a,o,i){a.exports=u;var l=i(1091)();function u(s,f,c,d,x,g){var w,T;for(f||(f=3),c||(c=0),d?T=Math.min(d*f+c,s.length):T=s.length,w=c;w<T;w+=f)l[0]=s[w],l[1]=s[w+1],l[2]=s[w+2],x(l,l,g),s[w]=l[0],s[w+1]=l[1],s[w+2]=l[2];return s}}),2825:(function(a){a.exports=o;function o(i,l,u){var s=new Float32Array(3);return s[0]=i,s[1]=l,s[2]=u,s}}),2931:(function(a,o,i){a.exports={EPSILON:i(2613),create:i(1091),clone:i(3126),angle:i(8192),fromValues:i(2825),copy:i(3990),set:i(1463),equals:i(9922),exactEquals:i(9265),add:i(5632),subtract:i(6843),sub:i(2229),multiply:i(5847),mul:i(4505),divide:i(6690),div:i(4008),min:i(8107),max:i(7417),floor:i(2681),ceil:i(9226),round:i(2447),scale:i(6621),scaleAndAdd:i(8489),distance:i(7056),dist:i(5455),squaredDistance:i(2953),sqrDist:i(6141),length:i(1387),len:i(868),squaredLength:i(3066),sqrLen:i(5486),negate:i(5093),inverse:i(811),normalize:i(3536),dot:i(244),cross:i(5911),lerp:i(6658),random:i(7636),transformMat4:i(5673),transformMat3:i(492),transformQuat:i(264),rotateX:i(6894),rotateY:i(109),rotateZ:i(8692),forEach:i(5137)}}),811:(function(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i}}),868:(function(a,o,i){a.exports=i(1387)}),1387:(function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return Math.sqrt(l*l+u*u+s*s)}}),6658:(function(a){a.exports=o;function o(i,l,u,s){var f=l[0],c=l[1],d=l[2];return i[0]=f+s*(u[0]-f),i[1]=c+s*(u[1]-c),i[2]=d+s*(u[2]-d),i}}),7417:(function(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i}}),8107:(function(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i}}),4505:(function(a,o,i){a.exports=i(5847)}),5847:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i}}),5093:(function(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i}}),3536:(function(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],c=u*u+s*s+f*f;return c>0&&(c=1/Math.sqrt(c),i[0]=l[0]*c,i[1]=l[1]*c,i[2]=l[2]*c),i}}),7636:(function(a){a.exports=o;function o(i,l){l=l||1;var u=Math.random()*2*Math.PI,s=Math.random()*2-1,f=Math.sqrt(1-s*s)*l;return i[0]=Math.cos(u)*f,i[1]=Math.sin(u)*f,i[2]=s*l,i}}),6894:(function(a){a.exports=o;function o(i,l,u,s){var f=u[1],c=u[2],d=l[1]-f,x=l[2]-c,g=Math.sin(s),w=Math.cos(s);return i[0]=l[0],i[1]=f+d*w-x*g,i[2]=c+d*g+x*w,i}}),109:(function(a){a.exports=o;function o(i,l,u,s){var f=u[0],c=u[2],d=l[0]-f,x=l[2]-c,g=Math.sin(s),w=Math.cos(s);return i[0]=f+x*g+d*w,i[1]=l[1],i[2]=c+x*w-d*g,i}}),8692:(function(a){a.exports=o;function o(i,l,u,s){var f=u[0],c=u[1],d=l[0]-f,x=l[1]-c,g=Math.sin(s),w=Math.cos(s);return i[0]=f+d*w-x*g,i[1]=c+d*g+x*w,i[2]=l[2],i}}),2447:(function(a){a.exports=o;function o(i,l){return i[0]=Math.round(l[0]),i[1]=Math.round(l[1]),i[2]=Math.round(l[2]),i}}),6621:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i}}),8489:(function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i}}),1463:(function(a){a.exports=o;function o(i,l,u,s){return i[0]=l,i[1]=u,i[2]=s,i}}),6141:(function(a,o,i){a.exports=i(2953)}),5486:(function(a,o,i){a.exports=i(3066)}),2953:(function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return u*u+s*s+f*f}}),3066:(function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return l*l+u*u+s*s}}),2229:(function(a,o,i){a.exports=i(6843)}),6843:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i}}),492:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2];return i[0]=s*u[0]+f*u[3]+c*u[6],i[1]=s*u[1]+f*u[4]+c*u[7],i[2]=s*u[2]+f*u[5]+c*u[8],i}}),5673:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],d=u[3]*s+u[7]*f+u[11]*c+u[15];return d=d||1,i[0]=(u[0]*s+u[4]*f+u[8]*c+u[12])/d,i[1]=(u[1]*s+u[5]*f+u[9]*c+u[13])/d,i[2]=(u[2]*s+u[6]*f+u[10]*c+u[14])/d,i}}),264:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],d=u[0],x=u[1],g=u[2],w=u[3],T=w*s+x*c-g*f,m=w*f+g*s-d*c,k=w*c+d*f-x*s,S=-d*s-x*f-g*c;return i[0]=T*w+S*-d+m*-g-k*-x,i[1]=m*w+S*-x+k*-d-T*-g,i[2]=k*w+S*-g+T*-x-m*-d,i}}),4361:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i[3]=l[3]+u[3],i}}),2335:(function(a){a.exports=o;function o(i){var l=new Float32Array(4);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}}),2933:(function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i}}),7536:(function(a){a.exports=o;function o(){var i=new Float32Array(4);return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}}),4691:(function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],c=l[3]-i[3];return Math.sqrt(u*u+s*s+f*f+c*c)}}),1373:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i[3]=l[3]/u[3],i}}),3750:(function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3]*l[3]}}),3390:(function(a){a.exports=o;function o(i,l,u,s){var f=new Float32Array(4);return f[0]=i,f[1]=l,f[2]=u,f[3]=s,f}}),9970:(function(a,o,i){a.exports={create:i(7536),clone:i(2335),fromValues:i(3390),copy:i(2933),set:i(4578),add:i(4361),subtract:i(6860),multiply:i(3576),divide:i(1373),min:i(2334),max:i(160),scale:i(9288),scaleAndAdd:i(4844),distance:i(4691),squaredDistance:i(7960),length:i(6808),squaredLength:i(483),negate:i(1498),inverse:i(4494),normalize:i(5177),dot:i(3750),lerp:i(2573),random:i(9131),transformMat4:i(5352),transformQuat:i(4041)}}),4494:(function(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i[3]=1/l[3],i}}),6808:(function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return Math.sqrt(l*l+u*u+s*s+f*f)}}),2573:(function(a){a.exports=o;function o(i,l,u,s){var f=l[0],c=l[1],d=l[2],x=l[3];return i[0]=f+s*(u[0]-f),i[1]=c+s*(u[1]-c),i[2]=d+s*(u[2]-d),i[3]=x+s*(u[3]-x),i}}),160:(function(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i[3]=Math.max(l[3],u[3]),i}}),2334:(function(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i[3]=Math.min(l[3],u[3]),i}}),3576:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i[3]=l[3]*u[3],i}}),1498:(function(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i[3]=-l[3],i}}),5177:(function(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],c=l[3],d=u*u+s*s+f*f+c*c;return d>0&&(d=1/Math.sqrt(d),i[0]=u*d,i[1]=s*d,i[2]=f*d,i[3]=c*d),i}}),9131:(function(a,o,i){var l=i(5177),u=i(9288);a.exports=s;function s(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),l(f,f),u(f,f,c),f}}),9288:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i[3]=l[3]*u,i}}),4844:(function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i[3]=l[3]+u[3]*s,i}}),4578:(function(a){a.exports=o;function o(i,l,u,s,f){return i[0]=l,i[1]=u,i[2]=s,i[3]=f,i}}),7960:(function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],c=l[3]-i[3];return u*u+s*s+f*f+c*c}}),483:(function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return l*l+u*u+s*s+f*f}}),6860:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i[3]=l[3]-u[3],i}}),5352:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],d=l[3];return i[0]=u[0]*s+u[4]*f+u[8]*c+u[12]*d,i[1]=u[1]*s+u[5]*f+u[9]*c+u[13]*d,i[2]=u[2]*s+u[6]*f+u[10]*c+u[14]*d,i[3]=u[3]*s+u[7]*f+u[11]*c+u[15]*d,i}}),4041:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],d=u[0],x=u[1],g=u[2],w=u[3],T=w*s+x*c-g*f,m=w*f+g*s-d*c,k=w*c+d*f-x*s,S=-d*s-x*f-g*c;return i[0]=T*w+S*-d+m*-g-k*-x,i[1]=m*w+S*-x+k*-d-T*-g,i[2]=k*w+S*-g+T*-x-m*-d,i[3]=l[3],i}}),1848:(function(a,o,i){var l=i(4905),u=i(6468);a.exports=s;function s(f){for(var c=Array.isArray(f)?f:l(f),d=0;d<c.length;d++){var x=c[d];if(x.type==="preprocessor"){var g=x.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(g&&g[2]){var w=g[1],T=g[2];return(w?u(T):T).trim()}}}}}),5874:(function(a,o,i){a.exports=p;var l=i(620),u=i(7827),s=i(6852),f=i(7932),c=i(3508),d=999,x=9999,g=0,w=1,T=2,m=3,k=4,S=5,b=6,M=7,h=8,_=9,y=10,v=11,A=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"];function p(R){var E=0,D=0,F=d,z,I,L=[],P=[],O=0,U=0,V=1,K=0,j=0,G=!1,q=!1,J="",te;R=R||{};var Z=s,ie=l;R.version==="300 es"&&(Z=c,ie=f);for(var Q={},re={},E=0;E<Z.length;E++)Q[Z[E]]=!0;for(var E=0;E<ie.length;E++)re[ie[E]]=!0;return function(oe){return P=[],oe!==null?ee(oe):ae()};function se(oe){oe.length&&P.push({type:A[F],data:oe,position:j,line:V,column:K})}function ee(oe){E=0,oe.toString&&(oe=oe.toString()),J+=oe.replace(/\r\n/g,`
`),te=J.length;for(var ve;z=J[E],E<te;){switch(ve=E,F){case g:E=ge();break;case w:E=Se();break;case T:E=ke();break;case m:E=Le();break;case k:E=Y();break;case v:E=le();break;case S:E=$();break;case x:E=pe();break;case _:E=Me();break;case d:E=ce();break}ve!==E&&(J[ve]===`
`?(K=0,++V):++K)}return D+=E,J=J.slice(E),P}function ae(oe){return L.length&&se(L.join("")),F=y,se("(eof)"),P}function ce(){return L=L.length?[]:L,I==="/"&&z==="*"?(j=D+E-1,F=g,I=z,E+1):I==="/"&&z==="/"?(j=D+E-1,F=w,I=z,E+1):z==="#"?(F=T,j=D+E,E):/\s/.test(z)?(F=_,j=D+E,E):(G=/\d/.test(z),q=/[^\w_]/.test(z),j=D+E,F=G?k:q?m:x,E)}function Me(){return/[^\s]/g.test(z)?(se(L.join("")),F=d,E):(L.push(z),I=z,E+1)}function ke(){return(z==="\r"||z===`
`)&&I!=="\\"?(se(L.join("")),F=d,E):(L.push(z),I=z,E+1)}function Se(){return ke()}function ge(){return z==="/"&&I==="*"?(L.push(z),se(L.join("")),F=d,E+1):(L.push(z),I=z,E+1)}function Le(){if(I==="."&&/\d/.test(z))return F=S,E;if(I==="/"&&z==="*")return F=g,E;if(I==="/"&&z==="/")return F=w,E;if(z==="."&&L.length){for(;Ee(L););return F=S,E}if(z===";"||z===")"||z==="("){if(L.length)for(;Ee(L););return se(z),F=d,E+1}var oe=L.length===2&&z!=="=";if(/[\w_\d\s]/.test(z)||oe){for(;Ee(L););return F=d,E}return L.push(z),I=z,E+1}function Ee(oe){var ve=0,he,me;do{if(he=u.indexOf(oe.slice(0,oe.length+ve).join("")),me=u[he],he===-1){if(ve--+oe.length>0)continue;me=oe.slice(0,1).join("")}return se(me),j+=me.length,L=L.slice(me.length),L.length}while(!0)}function le(){return/[^a-fA-F0-9]/.test(z)?(se(L.join("")),F=d,E):(L.push(z),I=z,E+1)}function Y(){return z==="."||/[eE]/.test(z)?(L.push(z),F=S,I=z,E+1):z==="x"&&L.length===1&&L[0]==="0"?(F=v,L.push(z),I=z,E+1):/[^\d]/.test(z)?(se(L.join("")),F=d,E):(L.push(z),I=z,E+1)}function $(){return z==="f"&&(L.push(z),I=z,E+=1),/[eE]/.test(z)||(z==="-"||z==="+")&&/[eE]/.test(I)?(L.push(z),I=z,E+1):/[^\d]/.test(z)?(se(L.join("")),F=d,E):(L.push(z),I=z,E+1)}function pe(){if(/[^\d\w_]/.test(z)){var oe=L.join("");return re[oe]?F=h:Q[oe]?F=M:F=b,se(L.join("")),F=d,E}return L.push(z),I=z,E+1}}}),3508:(function(a,o,i){var l=i(6852);l=l.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),a.exports=l.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])}),6852:(function(a){a.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]}),7932:(function(a,o,i){var l=i(620);a.exports=l.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])}),620:(function(a){a.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]}),7827:(function(a){a.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]}),4905:(function(a,o,i){var l=i(5874);a.exports=u;function u(s,f){var c=l(f),d=[];return d=d.concat(c(s)),d=d.concat(c(null)),d}}),3236:(function(a){a.exports=function(o){typeof o=="string"&&(o=[o]);for(var i=[].slice.call(arguments,1),l=[],u=0;u<o.length-1;u++)l.push(o[u],i[u]||"");return l.push(o[u]),l.join("")}}),7520:(function(a,o,i){"use strict";var l=i(9507);function u(){var s=!1;try{var f=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("test",null,f),window.removeEventListener("test",null,f)}catch(c){s=!1}return s}a.exports=l&&u()}),3778:(function(a,o){o.read=function(i,l,u,s,f){var c,d,x=f*8-s-1,g=(1<<x)-1,w=g>>1,T=-7,m=u?f-1:0,k=u?-1:1,S=i[l+m];for(m+=k,c=S&(1<<-T)-1,S>>=-T,T+=x;T>0;c=c*256+i[l+m],m+=k,T-=8);for(d=c&(1<<-T)-1,c>>=-T,T+=s;T>0;d=d*256+i[l+m],m+=k,T-=8);if(c===0)c=1-w;else{if(c===g)return d?NaN:(S?-1:1)*(1/0);d=d+Math.pow(2,s),c=c-w}return(S?-1:1)*d*Math.pow(2,c-s)},o.write=function(i,l,u,s,f,c){var d,x,g,w=c*8-f-1,T=(1<<w)-1,m=T>>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=s?0:c-1,b=s?1:-1,M=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(x=isNaN(l)?1:0,d=T):(d=Math.floor(Math.log(l)/Math.LN2),l*(g=Math.pow(2,-d))<1&&(d--,g*=2),d+m>=1?l+=k/g:l+=k*Math.pow(2,1-m),l*g>=2&&(d++,g/=2),d+m>=T?(x=0,d=T):d+m>=1?(x=(l*g-1)*Math.pow(2,f),d=d+m):(x=l*Math.pow(2,m-1)*Math.pow(2,f),d=0));f>=8;i[u+S]=x&255,S+=b,x/=256,f-=8);for(d=d<<f|x,w+=f;w>0;i[u+S]=d&255,S+=b,d/=256,w-=8);i[u+S-b]|=M*128}}),8954:(function(a,o,i){"use strict";a.exports=m;var l=i(3250),u=i(6803).Fw;function s(k,S,b){this.vertices=k,this.adjacent=S,this.boundary=b,this.lastVisited=-1}s.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var S=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=S};function f(k,S,b){this.vertices=k,this.cell=S,this.index=b}function c(k,S){return u(k.vertices,S.vertices)}function d(k){return function(){var S=this.tuple;return k.apply(this,S)}}function x(k){var S=l[k+1];return S||(S=l),d(S)}var g=[];function w(k,S,b){this.dimension=k,this.vertices=S,this.simplices=b,this.interior=b.filter(function(_){return!_.boundary}),this.tuple=new Array(k+1);for(var M=0;M<=k;++M)this.tuple[M]=this.vertices[M];var h=g[k];h||(h=g[k]=x(k)),this.orient=h}var T=w.prototype;T.handleBoundaryDegeneracy=function(k,S){var b=this.dimension,M=this.vertices.length-1,h=this.tuple,_=this.vertices,y=[k];for(k.lastVisited=-M;y.length>0;){k=y.pop();for(var v=k.adjacent,A=0;A<=b;++A){var p=v[A];if(!(!p.boundary||p.lastVisited<=-M)){for(var R=p.vertices,E=0;E<=b;++E){var D=R[E];D<0?h[E]=S:h[E]=_[D]}var F=this.orient();if(F>0)return p;p.lastVisited=-M,F===0&&y.push(p)}}}return null},T.walk=function(k,S){var b=this.vertices.length-1,M=this.dimension,h=this.vertices,_=this.tuple,y=S?this.interior.length*Math.random()|0:this.interior.length-1,v=this.interior[y];e:for(;!v.boundary;){for(var A=v.vertices,p=v.adjacent,R=0;R<=M;++R)_[R]=h[A[R]];v.lastVisited=b;for(var R=0;R<=M;++R){var E=p[R];if(!(E.lastVisited>=b)){var D=_[R];_[R]=k;var F=this.orient();if(_[R]=D,F<0){v=E;continue e}else E.boundary?E.lastVisited=-b:E.lastVisited=b}}return}return v},T.addPeaks=function(k,S){var b=this.vertices.length-1,M=this.dimension,h=this.vertices,_=this.tuple,y=this.interior,v=this.simplices,A=[S];S.lastVisited=b,S.vertices[S.vertices.indexOf(-1)]=b,S.boundary=!1,y.push(S);for(var p=[];A.length>0;){var S=A.pop(),R=S.vertices,E=S.adjacent,D=R.indexOf(b);if(!(D<0)){for(var F=0;F<=M;++F)if(F!==D){var z=E[F];if(!(!z.boundary||z.lastVisited>=b)){var I=z.vertices;if(z.lastVisited!==-b){for(var L=0,P=0;P<=M;++P)I[P]<0?(L=P,_[P]=k):_[P]=h[I[P]];var O=this.orient();if(O>0){I[L]=b,z.boundary=!1,y.push(z),A.push(z),z.lastVisited=b;continue}else z.lastVisited=-b}var U=z.adjacent,V=R.slice(),K=E.slice(),j=new s(V,K,!0);v.push(j);var G=U.indexOf(S);if(!(G<0)){U[G]=j,K[D]=z,V[F]=-1,K[F]=S,E[F]=j,j.flip();for(var P=0;P<=M;++P){var q=V[P];if(!(q<0||q===b)){for(var J=new Array(M-1),te=0,Z=0;Z<=M;++Z){var ie=V[Z];ie<0||Z===P||(J[te++]=ie)}p.push(new f(J,j,P))}}}}}}}p.sort(c);for(var F=0;F+1<p.length;F+=2){var Q=p[F],re=p[F+1],se=Q.index,ee=re.index;se<0||ee<0||(Q.cell.adjacent[Q.index]=re.cell,re.cell.adjacent[re.index]=Q.cell)}},T.insert=function(k,S){var b=this.vertices;b.push(k);var M=this.walk(k,S);if(M){for(var h=this.dimension,_=this.tuple,y=0;y<=h;++y){var v=M.vertices[y];v<0?_[y]=k:_[y]=b[v]}var A=this.orient(_);A<0||A===0&&(M=this.handleBoundaryDegeneracy(M,k),!M)||this.addPeaks(k,M)}},T.boundary=function(){for(var k=this.dimension,S=[],b=this.simplices,M=b.length,h=0;h<M;++h){var _=b[h];if(_.boundary){for(var y=new Array(k),v=_.vertices,A=0,p=0,R=0;R<=k;++R)v[R]>=0?y[A++]=v[R]:p=R&1;if(p===(k&1)){var E=y[0];y[0]=y[1],y[1]=E}S.push(y)}}return S};function m(k,S){var b=k.length;if(b===0)throw new Error("Must have at least d+1 points");var M=k[0].length;if(b<=M)throw new Error("Must input at least d+1 points");var h=k.slice(0,M+1),_=l.apply(void 0,h);if(_===0)throw new Error("Input not in general position");for(var y=new Array(M+1),v=0;v<=M;++v)y[v]=v;_<0&&(y[0]=1,y[1]=0);for(var A=new s(y,new Array(M+1),!1),p=A.adjacent,R=new Array(M+2),v=0;v<=M;++v){for(var E=y.slice(),D=0;D<=M;++D)D===v&&(E[D]=-1);var F=E[0];E[0]=E[1],E[1]=F;var z=new s(E,new Array(M+1),!0);p[v]=z,R[v]=z}R[M+1]=A;for(var v=0;v<=M;++v)for(var E=p[v].vertices,I=p[v].adjacent,D=0;D<=M;++D){var L=E[D];if(L<0){I[D]=A;continue}for(var P=0;P<=M;++P)p[P].vertices.indexOf(L)<0&&(I[D]=p[P])}for(var O=new w(M,h,R),U=!!S,v=M+1;v<b;++v)O.insert(k[v],U);return O.boundary()}}),3352:(function(a,o,i){"use strict";var l=i(2478),u=0,s=1,f=2;a.exports=A;function c(p,R,E,D,F){this.mid=p,this.left=R,this.right=E,this.leftPoints=D,this.rightPoints=F,this.count=(R?R.count:0)+(E?E.count:0)+D.length}var d=c.prototype;function x(p,R){p.mid=R.mid,p.left=R.left,p.right=R.right,p.leftPoints=R.leftPoints,p.rightPoints=R.rightPoints,p.count=R.count}function g(p,R){var E=_(R);p.mid=E.mid,p.left=E.left,p.right=E.right,p.leftPoints=E.leftPoints,p.rightPoints=E.rightPoints,p.count=E.count}function w(p,R){var E=p.intervals([]);E.push(R),g(p,E)}function T(p,R){var E=p.intervals([]),D=E.indexOf(R);return D<0?u:(E.splice(D,1),g(p,E),s)}d.intervals=function(p){return p.push.apply(p,this.leftPoints),this.left&&this.left.intervals(p),this.right&&this.right.intervals(p),p},d.insert=function(p){var R=this.count-this.leftPoints.length;if(this.count+=1,p[1]<this.mid)this.left?4*(this.left.count+1)>3*(R+1)?w(this,p):this.left.insert(p):this.left=_([p]);else if(p[0]>this.mid)this.right?4*(this.right.count+1)>3*(R+1)?w(this,p):this.right.insert(p):this.right=_([p]);else{var E=l.ge(this.leftPoints,p,M),D=l.ge(this.rightPoints,p,h);this.leftPoints.splice(E,0,p),this.rightPoints.splice(D,0,p)}},d.remove=function(p){var R=this.count-this.leftPoints;if(p[1]<this.mid){if(!this.left)return u;var E=this.right?this.right.count:0;if(4*E>3*(R-1))return T(this,p);var D=this.left.remove(p);return D===f?(this.left=null,this.count-=1,s):(D===s&&(this.count-=1),D)}else if(p[0]>this.mid){if(!this.right)return u;var F=this.left?this.left.count:0;if(4*F>3*(R-1))return T(this,p);var D=this.right.remove(p);return D===f?(this.right=null,this.count-=1,s):(D===s&&(this.count-=1),D)}else{if(this.count===1)return this.leftPoints[0]===p?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===p){if(this.left&&this.right){for(var z=this,I=this.left;I.right;)z=I,I=I.right;if(z===this)I.right=this.right;else{var L=this.left,D=this.right;z.count-=I.count,z.right=I.left,I.left=L,I.right=D}x(this,I),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?x(this,this.left):x(this,this.right);return s}for(var L=l.ge(this.leftPoints,p,M);L<this.leftPoints.length&&this.leftPoints[L][0]===p[0];++L)if(this.leftPoints[L]===p){this.count-=1,this.leftPoints.splice(L,1);for(var D=l.ge(this.rightPoints,p,h);D<this.rightPoints.length&&this.rightPoints[D][1]===p[1];++D)if(this.rightPoints[D]===p)return this.rightPoints.splice(D,1),s}return u}};function m(p,R,E){for(var D=0;D<p.length&&p[D][0]<=R;++D){var F=E(p[D]);if(F)return F}}function k(p,R,E){for(var D=p.length-1;D>=0&&p[D][1]>=R;--D){var F=E(p[D]);if(F)return F}}function S(p,R){for(var E=0;E<p.length;++E){var D=R(p[E]);if(D)return D}}d.queryPoint=function(p,R){if(p<this.mid){if(this.left){var E=this.left.queryPoint(p,R);if(E)return E}return m(this.leftPoints,p,R)}else if(p>this.mid){if(this.right){var E=this.right.queryPoint(p,R);if(E)return E}return k(this.rightPoints,p,R)}else return S(this.leftPoints,R)},d.queryInterval=function(p,R,E){if(p<this.mid&&this.left){var D=this.left.queryInterval(p,R,E);if(D)return D}if(R>this.mid&&this.right){var D=this.right.queryInterval(p,R,E);if(D)return D}return R<this.mid?m(this.leftPoints,R,E):p>this.mid?k(this.rightPoints,p,E):S(this.leftPoints,E)};function b(p,R){return p-R}function M(p,R){var E=p[0]-R[0];return E||p[1]-R[1]}function h(p,R){var E=p[1]-R[1];return E||p[0]-R[0]}function _(p){if(p.length===0)return null;for(var R=[],E=0;E<p.length;++E)R.push(p[E][0],p[E][1]);R.sort(b);for(var D=R[R.length>>1],F=[],z=[],I=[],E=0;E<p.length;++E){var L=p[E];L[1]<D?F.push(L):D<L[0]?z.push(L):I.push(L)}var P=I,O=I.slice();return P.sort(M),O.sort(h),new c(D,_(F),_(z),P,O)}function y(p){this.root=p}var v=y.prototype;v.insert=function(p){this.root?this.root.insert(p):this.root=new c(p[0],null,null,[p],[p])},v.remove=function(p){if(this.root){var R=this.root.remove(p);return R===f&&(this.root=null),R!==u}return!1},v.queryPoint=function(p,R){if(this.root)return this.root.queryPoint(p,R)},v.queryInterval=function(p,R,E){if(p<=R&&this.root)return this.root.queryInterval(p,R,E)},Object.defineProperty(v,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(v,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});function A(p){return!p||p.length===0?new y(null):new y(_(p))}}),9507:(function(a){a.exports=!0}),7163:(function(a){a.exports=function(l){return l!=null&&(o(l)||i(l)||!!l._isBuffer)};function o(l){return!!l.constructor&&typeof l.constructor.isBuffer=="function"&&l.constructor.isBuffer(l)}function i(l){return typeof l.readFloatLE=="function"&&typeof l.slice=="function"&&o(l.slice(0,0))}}),5219:(function(a){"use strict";a.exports=function(o){for(var i=o.length,l,u=0;u<i;u++)if(l=o.charCodeAt(u),(l<9||l>13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}}),395:(function(a){function o(i,l,u){return i*(1-u)+l*u}a.exports=o}),2652:(function(a,o,i){var l=i(4335),u=i(6864),s=i(1903),f=i(9921),c=i(7608),d=i(5665),x={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},g=u(),w=u(),T=[0,0,0,0],m=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];a.exports=function(_,y,v,A,p,R){if(y||(y=[0,0,0]),v||(v=[0,0,0]),A||(A=[0,0,0]),p||(p=[0,0,0,1]),R||(R=[0,0,0,1]),!l(g,_)||(s(w,g),w[3]=0,w[7]=0,w[11]=0,w[15]=1,Math.abs(f(w)<1e-8)))return!1;var E=g[3],D=g[7],F=g[11],z=g[12],I=g[13],L=g[14],P=g[15];if(E!==0||D!==0||F!==0){T[0]=E,T[1]=D,T[2]=F,T[3]=P;var O=c(w,w);if(!O)return!1;d(w,w),S(p,T,w)}else p[0]=p[1]=p[2]=0,p[3]=1;if(y[0]=z,y[1]=I,y[2]=L,b(m,g),v[0]=x.length(m[0]),x.normalize(m[0],m[0]),A[0]=x.dot(m[0],m[1]),M(m[1],m[1],m[0],1,-A[0]),v[1]=x.length(m[1]),x.normalize(m[1],m[1]),A[0]/=v[1],A[1]=x.dot(m[0],m[2]),M(m[2],m[2],m[0],1,-A[1]),A[2]=x.dot(m[1],m[2]),M(m[2],m[2],m[1],1,-A[2]),v[2]=x.length(m[2]),x.normalize(m[2],m[2]),A[1]/=v[2],A[2]/=v[2],x.cross(k,m[1],m[2]),x.dot(m[0],k)<0)for(var U=0;U<3;U++)v[U]*=-1,m[U][0]*=-1,m[U][1]*=-1,m[U][2]*=-1;return R[0]=.5*Math.sqrt(Math.max(1+m[0][0]-m[1][1]-m[2][2],0)),R[1]=.5*Math.sqrt(Math.max(1-m[0][0]+m[1][1]-m[2][2],0)),R[2]=.5*Math.sqrt(Math.max(1-m[0][0]-m[1][1]+m[2][2],0)),R[3]=.5*Math.sqrt(Math.max(1+m[0][0]+m[1][1]+m[2][2],0)),m[2][1]>m[1][2]&&(R[0]=-R[0]),m[0][2]>m[2][0]&&(R[1]=-R[1]),m[1][0]>m[0][1]&&(R[2]=-R[2]),!0};function S(h,_,y){var v=_[0],A=_[1],p=_[2],R=_[3];return h[0]=y[0]*v+y[4]*A+y[8]*p+y[12]*R,h[1]=y[1]*v+y[5]*A+y[9]*p+y[13]*R,h[2]=y[2]*v+y[6]*A+y[10]*p+y[14]*R,h[3]=y[3]*v+y[7]*A+y[11]*p+y[15]*R,h}function b(h,_){h[0][0]=_[0],h[0][1]=_[1],h[0][2]=_[2],h[1][0]=_[4],h[1][1]=_[5],h[1][2]=_[6],h[2][0]=_[8],h[2][1]=_[9],h[2][2]=_[10]}function M(h,_,y,v,A){h[0]=_[0]*v+y[0]*A,h[1]=_[1]*v+y[1]*A,h[2]=_[2]*v+y[2]*A}}),4335:(function(a){a.exports=function(i,l){var u=l[15];if(u===0)return!1;for(var s=1/u,f=0;f<16;f++)i[f]=l[f]*s;return!0}}),7442:(function(a,o,i){var l=i(6658),u=i(7182),s=i(2652),f=i(9921),c=i(8648),d=T(),x=T(),g=T();a.exports=w;function w(S,b,M,h){if(f(b)===0||f(M)===0)return!1;var _=s(b,d.translate,d.scale,d.skew,d.perspective,d.quaternion),y=s(M,x.translate,x.scale,x.skew,x.perspective,x.quaternion);return!_||!y?!1:(l(g.translate,d.translate,x.translate,h),l(g.skew,d.skew,x.skew,h),l(g.scale,d.scale,x.scale,h),l(g.perspective,d.perspective,x.perspective,h),c(g.quaternion,d.quaternion,x.quaternion,h),u(S,g.translate,g.scale,g.skew,g.perspective,g.quaternion),!0)}function T(){return{translate:m(),scale:m(1),skew:m(),perspective:k(),quaternion:k()}}function m(S){return[S||0,S||0,S||0]}function k(){return[0,0,0,1]}}),7182:(function(a,o,i){var l={identity:i(7894),translate:i(7656),multiply:i(6760),create:i(6864),scale:i(2504),fromRotationTranslation:i(6743)},u=l.create(),s=l.create();a.exports=function(c,d,x,g,w,T){return l.identity(c),l.fromRotationTranslation(c,T,d),c[3]=w[0],c[7]=w[1],c[11]=w[2],c[15]=w[3],l.identity(s),g[2]!==0&&(s[9]=g[2],l.multiply(c,c,s)),g[1]!==0&&(s[9]=0,s[8]=g[1],l.multiply(c,c,s)),g[0]!==0&&(s[8]=0,s[4]=g[0],l.multiply(c,c,s)),l.scale(c,c,x),c}}),1811:(function(a,o,i){"use strict";var l=i(2478),u=i(7442),s=i(7608),f=i(5567),c=i(2408),d=i(7089),x=i(6582),g=i(7656),w=i(2504),T=i(3536),m=[0,0,0];a.exports=M;function k(h){this._components=h.slice(),this._time=[0],this.prevMatrix=h.slice(),this.nextMatrix=h.slice(),this.computedMatrix=h.slice(),this.computedInverse=h.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var S=k.prototype;S.recalcMatrix=function(h){var _=this._time,y=l.le(_,h),v=this.computedMatrix;if(!(y<0)){var A=this._components;if(y===_.length-1)for(var p=16*y,R=0;R<16;++R)v[R]=A[p++];else{for(var E=_[y+1]-_[y],p=16*y,D=this.prevMatrix,F=!0,R=0;R<16;++R)D[R]=A[p++];for(var z=this.nextMatrix,R=0;R<16;++R)z[R]=A[p++],F=F&&D[R]===z[R];if(E<1e-6||F)for(var R=0;R<16;++R)v[R]=D[R];else u(v,D,z,(h-_[y])/E)}var I=this.computedUp;I[0]=v[1],I[1]=v[5],I[2]=v[9],T(I,I);var L=this.computedInverse;s(L,v);var P=this.computedEye,O=L[15];P[0]=L[12]/O,P[1]=L[13]/O,P[2]=L[14]/O;for(var U=this.computedCenter,V=Math.exp(this.computedRadius[0]),R=0;R<3;++R)U[R]=P[R]-v[2+4*R]*V}},S.idle=function(h){if(!(h<this.lastT())){for(var _=this._components,y=_.length-16,v=0;v<16;++v)_.push(_[y++]);this._time.push(h)}},S.flush=function(h){var _=l.gt(this._time,h)-2;_<0||(this._time.splice(0,_),this._components.splice(0,16*_))},S.lastT=function(){return this._time[this._time.length-1]},S.lookAt=function(h,_,y,v){this.recalcMatrix(h),_=_||this.computedEye,y=y||m,v=v||this.computedUp,this.setMatrix(h,x(this.computedMatrix,_,y,v));for(var A=0,p=0;p<3;++p)A+=Math.pow(y[p]-_[p],2);A=Math.log(Math.sqrt(A)),this.computedRadius[0]=A},S.rotate=function(h,_,y,v){this.recalcMatrix(h);var A=this.computedInverse;_&&c(A,A,_),y&&f(A,A,y),v&&d(A,A,v),this.setMatrix(h,s(this.computedMatrix,A))};var b=[0,0,0];S.pan=function(h,_,y,v){b[0]=-(_||0),b[1]=-(y||0),b[2]=-(v||0),this.recalcMatrix(h);var A=this.computedInverse;g(A,A,b),this.setMatrix(h,s(A,A))},S.translate=function(h,_,y,v){b[0]=_||0,b[1]=y||0,b[2]=v||0,this.recalcMatrix(h);var A=this.computedMatrix;g(A,A,b),this.setMatrix(h,A)},S.setMatrix=function(h,_){if(!(h<this.lastT())){this._time.push(h);for(var y=0;y<16;++y)this._components.push(_[y])}},S.setDistance=function(h,_){this.computedRadius[0]=_},S.setDistanceLimits=function(h,_){var y=this._limits;y[0]=h,y[1]=_},S.getDistanceLimits=function(h){var _=this._limits;return h?(h[0]=_[0],h[1]=_[1],h):_};function M(h){h=h||{};var _=h.matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return new k(_)}}),3090:(function(a,o,i){"use strict";a.exports=u;var l=i(3250)[3];function u(s){var f=s.length;if(f<3){for(var k=new Array(f),c=0;c<f;++c)k[c]=c;return f===2&&s[0][0]===s[1][0]&&s[0][1]===s[1][1]?[0]:k}for(var d=new Array(f),c=0;c<f;++c)d[c]=c;d.sort(function(h,_){var y=s[h][0]-s[_][0];return y||s[h][1]-s[_][1]});for(var x=[d[0],d[1]],g=[d[0],d[1]],c=2;c<f;++c){for(var w=d[c],T=s[w],m=x.length;m>1&&l(s[x[m-2]],s[x[m-1]],T)<=0;)m-=1,x.pop();for(x.push(w),m=g.length;m>1&&l(s[g[m-2]],s[g[m-1]],T)>=0;)m-=1,g.pop();g.push(w)}for(var k=new Array(g.length+x.length-2),S=0,c=0,b=x.length;c<b;++c)k[S++]=x[c];for(var M=g.length-2;M>0;--M)k[S++]=g[M];return k}}),351:(function(a,o,i){"use strict";a.exports=u;var l=i(4687);function u(s,f){f||(f=s,s=window);var c=0,d=0,x=0,g={shift:!1,alt:!1,control:!1,meta:!1},w=!1;function T(p){var R=!1;return"altKey"in p&&(R=R||p.altKey!==g.alt,g.alt=!!p.altKey),"shiftKey"in p&&(R=R||p.shiftKey!==g.shift,g.shift=!!p.shiftKey),"ctrlKey"in p&&(R=R||p.ctrlKey!==g.control,g.control=!!p.ctrlKey),"metaKey"in p&&(R=R||p.metaKey!==g.meta,g.meta=!!p.metaKey),R}function m(p,R){var E=l.x(R),D=l.y(R);"buttons"in R&&(p=R.buttons|0),(p!==c||E!==d||D!==x||T(R))&&(c=p|0,d=E||0,x=D||0,f&&f(c,d,x,g))}function k(p){m(0,p)}function S(){(c||d||x||g.shift||g.alt||g.meta||g.control)&&(d=x=0,c=0,g.shift=g.alt=g.control=g.meta=!1,f&&f(0,0,0,g))}function b(p){T(p)&&f&&f(c,d,x,g)}function M(p){l.buttons(p)===0?m(0,p):m(c,p)}function h(p){m(c|l.buttons(p),p)}function _(p){m(c&~l.buttons(p),p)}function y(){w||(w=!0,s.addEventListener("mousemove",M),s.addEventListener("mousedown",h),s.addEventListener("mouseup",_),s.addEventListener("mouseleave",k),s.addEventListener("mouseenter",k),s.addEventListener("mouseout",k),s.addEventListener("mouseover",k),s.addEventListener("blur",S),s.addEventListener("keyup",b),s.addEventListener("keydown",b),s.addEventListener("keypress",b),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",b),window.addEventListener("keydown",b),window.addEventListener("keypress",b)))}function v(){w&&(w=!1,s.removeEventListener("mousemove",M),s.removeEventListener("mousedown",h),s.removeEventListener("mouseup",_),s.removeEventListener("mouseleave",k),s.removeEventListener("mouseenter",k),s.removeEventListener("mouseout",k),s.removeEventListener("mouseover",k),s.removeEventListener("blur",S),s.removeEventListener("keyup",b),s.removeEventListener("keydown",b),s.removeEventListener("keypress",b),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",b),window.removeEventListener("keydown",b),window.removeEventListener("keypress",b)))}y();var A={element:s};return Object.defineProperties(A,{enabled:{get:function(){return w},set:function(p){p?y():v()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return d},enumerable:!0},y:{get:function(){return x},enumerable:!0},mods:{get:function(){return g},enumerable:!0}}),A}}),24:(function(a){var o={left:0,top:0};a.exports=i;function i(u,s,f){s=s||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var c=u.clientX||0,d=u.clientY||0,x=l(s);return f[0]=c-x.left,f[1]=d-x.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}}),4687:(function(a,o){"use strict";function i(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var c=f.which;if(c===2)return 4;if(c===3)return 2;if(c>0)return 1<<c-1}else if("button"in f){var c=f.button;if(c===1)return 4;if(c===2)return 2;if(c>=0)return 1<<c}}return 0}o.buttons=i;function l(f){return f.target||f.srcElement||window}o.element=l;function u(f){if(typeof f=="object"){if("offsetX"in f)return f.offsetX;var c=l(f),d=c.getBoundingClientRect();return f.clientX-d.left}return 0}o.x=u;function s(f){if(typeof f=="object"){if("offsetY"in f)return f.offsetY;var c=l(f),d=c.getBoundingClientRect();return f.clientY-d.top}return 0}o.y=s}),8512:(function(a,o,i){"use strict";var l=i(665);a.exports=u;function u(s,f,c){typeof s=="function"&&(c=!!f,f=s,s=window);var d=l("ex",s),x=function(g){c&&g.preventDefault();var w=g.deltaX||0,T=g.deltaY||0,m=g.deltaZ||0,k=g.deltaMode,S=1;switch(k){case 1:S=d;break;case 2:S=window.innerHeight;break}if(w*=S,T*=S,m*=S,w||T||m)return f(w,T,m,g)};return s.addEventListener("wheel",x),x}}),2640:(function(a,o,i){"use strict";var l=i(1888);a.exports=f;var u={"false,0,1":function(d,x,g,w,T){return function(k,S,b,M){var h=k.shape[0]|0,_=k.shape[1]|0,y=k.data,v=k.offset|0,A=k.stride[0]|0,p=k.stride[1]|0,R=v,E,D=-A|0,F=0,z=-p|0,I=0,L=-A-p|0,P=0,O=A|0,U=p-A*h|0,V=0,K=0,j=0,G=2*h|0,q=w(G),J=w(G),te=0,Z=0,ie=-1,Q=-1,re=0,se=-h|0,ee=h|0,ae=0,ce=-h-1|0,Me=h-1|0,ke=0,Se=0,ge=0;for(V=0;V<h;++V)q[te++]=g(y[R],S,b,M),R+=O;if(R+=U,_>0){if(K=1,q[te++]=g(y[R],S,b,M),R+=O,h>0)for(V=1,E=y[R],Z=q[te]=g(E,S,b,M),re=q[te+ie],ae=q[te+se],ke=q[te+ce],(Z!==re||Z!==ae||Z!==ke)&&(F=y[R+D],I=y[R+z],P=y[R+L],d(V,K,E,F,I,P,Z,re,ae,ke,S,b,M),Se=J[te]=j++),te+=1,R+=O,V=2;V<h;++V)E=y[R],Z=q[te]=g(E,S,b,M),re=q[te+ie],ae=q[te+se],ke=q[te+ce],(Z!==re||Z!==ae||Z!==ke)&&(F=y[R+D],I=y[R+z],P=y[R+L],d(V,K,E,F,I,P,Z,re,ae,ke,S,b,M),Se=J[te]=j++,ke!==re&&x(J[te+ie],Se,P,F,ke,re,S,b,M)),te+=1,R+=O;for(R+=U,te=0,ge=ie,ie=Q,Q=ge,ge=se,se=ee,ee=ge,ge=ce,ce=Me,Me=ge,K=2;K<_;++K){if(q[te++]=g(y[R],S,b,M),R+=O,h>0)for(V=1,E=y[R],Z=q[te]=g(E,S,b,M),re=q[te+ie],ae=q[te+se],ke=q[te+ce],(Z!==re||Z!==ae||Z!==ke)&&(F=y[R+D],I=y[R+z],P=y[R+L],d(V,K,E,F,I,P,Z,re,ae,ke,S,b,M),Se=J[te]=j++,ke!==ae&&x(J[te+se],Se,I,P,ae,ke,S,b,M)),te+=1,R+=O,V=2;V<h;++V)E=y[R],Z=q[te]=g(E,S,b,M),re=q[te+ie],ae=q[te+se],ke=q[te+ce],(Z!==re||Z!==ae||Z!==ke)&&(F=y[R+D],I=y[R+z],P=y[R+L],d(V,K,E,F,I,P,Z,re,ae,ke,S,b,M),Se=J[te]=j++,ke!==ae&&x(J[te+se],Se,I,P,ae,ke,S,b,M),ke!==re&&x(J[te+ie],Se,P,F,ke,re,S,b,M)),te+=1,R+=O;K&1&&(te=0),ge=ie,ie=Q,Q=ge,ge=se,se=ee,ee=ge,ge=ce,ce=Me,Me=ge,R+=U}}T(J),T(q)}},"false,1,0":function(d,x,g,w,T){return function(k,S,b,M){var h=k.shape[0]|0,_=k.shape[1]|0,y=k.data,v=k.offset|0,A=k.stride[0]|0,p=k.stride[1]|0,R=v,E,D=-A|0,F=0,z=-p|0,I=0,L=-A-p|0,P=0,O=p|0,U=A-p*_|0,V=0,K=0,j=0,G=2*_|0,q=w(G),J=w(G),te=0,Z=0,ie=-1,Q=-1,re=0,se=-_|0,ee=_|0,ae=0,ce=-_-1|0,Me=_-1|0,ke=0,Se=0,ge=0;for(K=0;K<_;++K)q[te++]=g(y[R],S,b,M),R+=O;if(R+=U,h>0){if(V=1,q[te++]=g(y[R],S,b,M),R+=O,_>0)for(K=1,E=y[R],Z=q[te]=g(E,S,b,M),ae=q[te+se],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(F=y[R+D],I=y[R+z],P=y[R+L],d(V,K,E,F,I,P,Z,ae,re,ke,S,b,M),Se=J[te]=j++),te+=1,R+=O,K=2;K<_;++K)E=y[R],Z=q[te]=g(E,S,b,M),ae=q[te+se],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(F=y[R+D],I=y[R+z],P=y[R+L],d(V,K,E,F,I,P,Z,ae,re,ke,S,b,M),Se=J[te]=j++,ke!==re&&x(J[te+ie],Se,I,P,re,ke,S,b,M)),te+=1,R+=O;for(R+=U,te=0,ge=se,se=ee,ee=ge,ge=ie,ie=Q,Q=ge,ge=ce,ce=Me,Me=ge,V=2;V<h;++V){if(q[te++]=g(y[R],S,b,M),R+=O,_>0)for(K=1,E=y[R],Z=q[te]=g(E,S,b,M),ae=q[te+se],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(F=y[R+D],I=y[R+z],P=y[R+L],d(V,K,E,F,I,P,Z,ae,re,ke,S,b,M),Se=J[te]=j++,ke!==ae&&x(J[te+se],Se,P,F,ke,ae,S,b,M)),te+=1,R+=O,K=2;K<_;++K)E=y[R],Z=q[te]=g(E,S,b,M),ae=q[te+se],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(F=y[R+D],I=y[R+z],P=y[R+L],d(V,K,E,F,I,P,Z,ae,re,ke,S,b,M),Se=J[te]=j++,ke!==re&&x(J[te+ie],Se,I,P,re,ke,S,b,M),ke!==ae&&x(J[te+se],Se,P,F,ke,ae,S,b,M)),te+=1,R+=O;V&1&&(te=0),ge=se,se=ee,ee=ge,ge=ie,ie=Q,Q=ge,ge=ce,ce=Me,Me=ge,R+=U}}T(J),T(q)}}};function s(c,d,x,g,w,T){var m=[T,w].join(","),k=u[m];return k(c,d,x,l.mallocUint32,l.freeUint32)}function f(c){function d(S){throw new Error("ndarray-extract-contour: "+S)}typeof c!="object"&&d("Must specify arguments");var x=c.order;Array.isArray(x)||d("Must specify order");var g=c.arrayArguments||1;g<1&&d("Must have at least one array argument");var w=c.scalarArguments||0;w<0&&d("Scalar arg count must be > 0"),typeof c.vertex!="function"&&d("Must specify vertex creation function"),typeof c.cell!="function"&&d("Must specify cell creation function"),typeof c.phase!="function"&&d("Must specify phase function");for(var T=c.getters||[],m=new Array(g),k=0;k<g;++k)T.indexOf(k)>=0?m[k]=!0:m[k]=!1;return s(c.vertex,c.cell,c.phase,w,x,m)}}),6199:(function(a,o,i){"use strict";var l=i(1338),u={zero:function(M,h,_,y){var v=M[0],A=_[0];y|=0;var p=0,R=A;for(p=0;p<v;++p)h[y]=0,y+=R},fdTemplate1:function(M,h,_,y,v,A,p){var R=M[0],E=_[0],D=A[0],F=-1*E,z=E;y|=0,p|=0;var I=0,L=E,P=D;for(I=0;I<R;++I)v[p]=.5*(h[y+F]-h[y+z]),y+=L,p+=P},fdTemplate2:function(M,h,_,y,v,A,p,R,E,D){var F=M[0],z=M[1],I=_[0],L=_[1],P=A[0],O=A[1],U=E[0],V=E[1],K=-1*I,j=I,G=-1*L,q=L;y|=0,p|=0,D|=0;var J=0,te=0,Z=L,ie=I-z*L,Q=O,re=P-z*O,se=V,ee=U-z*V;for(te=0;te<F;++te){for(J=0;J<z;++J)v[p]=.5*(h[y+K]-h[y+j]),R[D]=.5*(h[y+G]-h[y+q]),y+=Z,p+=Q,D+=se;y+=ie,p+=re,D+=ee}}},s={cdiff:function(M){var h={};return function(y,v,A){var p=y.dtype,R=y.order,E=v.dtype,D=v.order,F=A.dtype,z=A.order,I=[p,R.join(),E,D.join(),F,z.join()].join(),L=h[I];return L||(h[I]=L=M([p,R,E,D,F,z])),L(y.shape.slice(0),y.data,y.stride,y.offset|0,v.data,v.stride,v.offset|0,A.data,A.stride,A.offset|0)}},zero:function(M){var h={};return function(y){var v=y.dtype,A=y.order,p=[v,A.join()].join(),R=h[p];return R||(h[p]=R=M([v,A])),R(y.shape.slice(0),y.data,y.stride,y.offset|0)}},fdTemplate1:function(M){var h={};return function(y,v){var A=y.dtype,p=y.order,R=v.dtype,E=v.order,D=[A,p.join(),R,E.join()].join(),F=h[D];return F||(h[D]=F=M([A,p,R,E])),F(y.shape.slice(0),y.data,y.stride,y.offset|0,v.data,v.stride,v.offset|0)}},fdTemplate2:function(M){var h={};return function(y,v,A){var p=y.dtype,R=y.order,E=v.dtype,D=v.order,F=A.dtype,z=A.order,I=[p,R.join(),E,D.join(),F,z.join()].join(),L=h[I];return L||(h[I]=L=M([p,R,E,D,F,z])),L(y.shape.slice(0),y.data,y.stride,y.offset|0,v.data,v.stride,v.offset|0,A.data,A.stride,A.offset|0)}}};function f(M){var h=s[M.funcName];return h(c.bind(void 0,M))}function c(M){return u[M.funcName]}function d(M){return f({funcName:M.funcName})}var x={},g={},w={body:"",args:[],thisVars:[],localVars:[]},T=d({funcName:"cdiff"}),m=d({funcName:"zero"});function k(M){return M in x?x[M]:x[M]=d({funcName:"fdTemplate"+M})}function S(M,h,_,y){return function(v,A){var p=A.shape.slice();return p[0]>2&&p[1]>2&&y(A.pick(-1,-1).lo(1,1).hi(p[0]-2,p[1]-2),v.pick(-1,-1,0).lo(1,1).hi(p[0]-2,p[1]-2),v.pick(-1,-1,1).lo(1,1).hi(p[0]-2,p[1]-2)),p[1]>2&&(_(A.pick(0,-1).lo(1).hi(p[1]-2),v.pick(0,-1,1).lo(1).hi(p[1]-2)),h(v.pick(0,-1,0).lo(1).hi(p[1]-2))),p[1]>2&&(_(A.pick(p[0]-1,-1).lo(1).hi(p[1]-2),v.pick(p[0]-1,-1,1).lo(1).hi(p[1]-2)),h(v.pick(p[0]-1,-1,0).lo(1).hi(p[1]-2))),p[0]>2&&(_(A.pick(-1,0).lo(1).hi(p[0]-2),v.pick(-1,0,0).lo(1).hi(p[0]-2)),h(v.pick(-1,0,1).lo(1).hi(p[0]-2))),p[0]>2&&(_(A.pick(-1,p[1]-1).lo(1).hi(p[0]-2),v.pick(-1,p[1]-1,0).lo(1).hi(p[0]-2)),h(v.pick(-1,p[1]-1,1).lo(1).hi(p[0]-2))),v.set(0,0,0,0),v.set(0,0,1,0),v.set(p[0]-1,0,0,0),v.set(p[0]-1,0,1,0),v.set(0,p[1]-1,0,0),v.set(0,p[1]-1,1,0),v.set(p[0]-1,p[1]-1,0,0),v.set(p[0]-1,p[1]-1,1,0),v}}function b(M){var h=M.join(),p=g[h];if(p)return p;for(var _=M.length,y=[T,m],v=1;v<=_;++v)y.push(k(v));var A=S,p=A.apply(void 0,y);return g[h]=p,p}a.exports=function(h,_,y){if(Array.isArray(y)||(typeof y=="string"?y=l(_.dimension,y):y=l(_.dimension,"clamp")),_.size===0)return h;if(_.dimension===0)return h.set(0),h;var v=b(y);return v(h,_)}}),4317:(function(a){"use strict";function o(f,c){var d=Math.floor(c),x=c-d,g=0<=d&&d<f.shape[0],w=0<=d+1&&d+1<f.shape[0],T=g?+f.get(d):0,m=w?+f.get(d+1):0;return(1-x)*T+x*m}function i(f,c,d){var x=Math.floor(c),g=c-x,w=0<=x&&x<f.shape[0],T=0<=x+1&&x+1<f.shape[0],m=Math.floor(d),k=d-m,S=0<=m&&m<f.shape[1],b=0<=m+1&&m+1<f.shape[1],M=w&&S?f.get(x,m):0,h=w&&b?f.get(x,m+1):0,_=T&&S?f.get(x+1,m):0,y=T&&b?f.get(x+1,m+1):0;return(1-k)*((1-g)*M+g*_)+k*((1-g)*h+g*y)}function l(f,c,d,x){var g=Math.floor(c),w=c-g,T=0<=g&&g<f.shape[0],m=0<=g+1&&g+1<f.shape[0],k=Math.floor(d),S=d-k,b=0<=k&&k<f.shape[1],M=0<=k+1&&k+1<f.shape[1],h=Math.floor(x),_=x-h,y=0<=h&&h<f.shape[2],v=0<=h+1&&h+1<f.shape[2],A=T&&b&&y?f.get(g,k,h):0,p=T&&M&&y?f.get(g,k+1,h):0,R=m&&b&&y?f.get(g+1,k,h):0,E=m&&M&&y?f.get(g+1,k+1,h):0,D=T&&b&&v?f.get(g,k,h+1):0,F=T&&M&&v?f.get(g,k+1,h+1):0,z=m&&b&&v?f.get(g+1,k,h+1):0,I=m&&M&&v?f.get(g+1,k+1,h+1):0;return(1-_)*((1-S)*((1-w)*A+w*R)+S*((1-w)*p+w*E))+_*((1-S)*((1-w)*D+w*z)+S*((1-w)*F+w*I))}function u(f){var c=f.shape.length|0,d=new Array(c),x=new Array(c),g=new Array(c),w=new Array(c),T,m;for(T=0;T<c;++T)m=+arguments[T+1],d[T]=Math.floor(m),x[T]=m-d[T],g[T]=0<=d[T]&&d[T]<f.shape[T],w[T]=0<=d[T]+1&&d[T]+1<f.shape[T];var k=0,S,b,M;e:for(T=0;T<1<<c;++T){for(b=1,M=f.offset,S=0;S<c;++S)if(T&1<<S){if(!w[S])continue e;b*=x[S],M+=f.stride[S]*(d[S]+1)}else{if(!g[S])continue e;b*=1-x[S],M+=f.stride[S]*d[S]}k+=b*f.data[M]}return k}function s(f,c,d,x){switch(f.shape.length){case 0:return 0;case 1:return o(f,c);case 2:return i(f,c,d);case 3:return l(f,c,d,x);default:return u.apply(void 0,arguments)}}a.exports=s,a.exports.d1=o,a.exports.d2=i,a.exports.d3=l}),5298:(function(a,o){"use strict";var i={"float64,2,1,0":function(){return function(g,w,T,m,k){var S=g[0],b=g[1],M=g[2],h=T[0],_=T[1],y=T[2];m|=0;var v=0,A=0,p=0,R=y,E=_-M*y,D=h-b*_;for(p=0;p<S;++p){for(A=0;A<b;++A){for(v=0;v<M;++v)w[m]/=k,m+=R;m+=E}m+=D}}},"uint8,2,0,1,float64,2,1,0":function(){return function(g,w,T,m,k,S,b,M){var h=g[0],_=g[1],y=g[2],v=T[0],A=T[1],p=T[2],R=S[0],E=S[1],D=S[2];m|=0,b|=0;for(var F=m,z=b,I=g[0]|0;I>0;){I<64?(h=I,I=0):(h=64,I-=64);for(var L=g[1]|0;L>0;){L<64?(_=L,L=0):(_=64,L-=64),m=F+I*v+L*A,b=z+I*R+L*E;var P=0,O=0,U=0,V=p,K=v-y*p,j=A-h*v,G=D,q=R-y*D,J=E-h*R;for(U=0;U<_;++U){for(O=0;O<h;++O){for(P=0;P<y;++P)w[m]=k[b]*M,m+=V,b+=G;m+=K,b+=q}m+=j,b+=J}}}}},"float32,1,0,float32,1,0":function(){return function(g,w,T,m,k,S,b){var M=g[0],h=g[1],_=T[0],y=T[1],v=S[0],A=S[1];m|=0,b|=0;var p=0,R=0,E=y,D=_-h*y,F=A,z=v-h*A;for(R=0;R<M;++R){for(p=0;p<h;++p)w[m]=k[b],m+=E,b+=F;m+=D,b+=z}}},"float32,1,0,float32,0,1":function(){return function(g,w,T,m,k,S,b){var M=g[0],h=g[1],_=T[0],y=T[1],v=S[0],A=S[1];m|=0,b|=0;for(var p=m,R=b,E=g[1]|0;E>0;){E<64?(h=E,E=0):(h=64,E-=64);for(var D=g[0]|0;D>0;){D<64?(M=D,D=0):(M=64,D-=64),m=p+E*y+D*_,b=R+E*A+D*v;var F=0,z=0,I=y,L=_-h*y,P=A,O=v-h*A;for(z=0;z<M;++z){for(F=0;F<h;++F)w[m]=k[b],m+=I,b+=P;m+=L,b+=O}}}}},"uint8,2,0,1,uint8,1,2,0":function(){return function(g,w,T,m,k,S,b){var M=g[0],h=g[1],_=g[2],y=T[0],v=T[1],A=T[2],p=S[0],R=S[1],E=S[2];m|=0,b|=0;for(var D=m,F=b,z=g[2]|0;z>0;){z<64?(_=z,z=0):(_=64,z-=64);for(var I=g[0]|0;I>0;){I<64?(M=I,I=0):(M=64,I-=64);for(var L=g[1]|0;L>0;){L<64?(h=L,L=0):(h=64,L-=64),m=D+z*A+I*y+L*v,b=F+z*E+I*p+L*R;var P=0,O=0,U=0,V=A,K=y-_*A,j=v-M*y,G=E,q=p-_*E,J=R-M*p;for(U=0;U<h;++U){for(O=0;O<M;++O){for(P=0;P<_;++P)w[m]=k[b],m+=V,b+=G;m+=K,b+=q}m+=j,b+=J}}}}}},"uint8,2,0,1,array,2,0,1":function(){return function(g,w,T,m,k,S,b){var M=g[0],h=g[1],_=g[2],y=T[0],v=T[1],A=T[2],p=S[0],R=S[1],E=S[2];m|=0,b|=0;var D=0,F=0,z=0,I=A,L=y-_*A,P=v-M*y,O=E,U=p-_*E,V=R-M*p;for(z=0;z<h;++z){for(F=0;F<M;++F){for(D=0;D<_;++D)w[m]=k[b],m+=I,b+=O;m+=L,b+=U}m+=P,b+=V}}}};function l(x,g){var w=g.join(","),T=i[w];return T()}var u=l,s={mul:function(x){var g={};return function(T,m,k){var S=T.dtype,b=T.order,M=m.dtype,h=m.order,_=k.dtype,y=k.order,v=[S,b.join(),M,h.join(),_,y.join()].join(),A=g[v];return A||(g[v]=A=x([S,b,M,h,_,y])),A(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0,k.data,k.stride,k.offset|0)}},muls:function(x){var g={};return function(T,m,k){var S=T.dtype,b=T.order,M=m.dtype,h=m.order,_=[S,b.join(),M,h.join()].join(),y=g[_];return y||(g[_]=y=x([S,b,M,h])),y(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0,k)}},mulseq:function(x){var g={};return function(T,m){var k=T.dtype,S=T.order,b=[k,S.join()].join(),M=g[b];return M||(g[b]=M=x([k,S])),M(T.shape.slice(0),T.data,T.stride,T.offset|0,m)}},div:function(x){var g={};return function(T,m,k){var S=T.dtype,b=T.order,M=m.dtype,h=m.order,_=k.dtype,y=k.order,v=[S,b.join(),M,h.join(),_,y.join()].join(),A=g[v];return A||(g[v]=A=x([S,b,M,h,_,y])),A(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0,k.data,k.stride,k.offset|0)}},divs:function(x){var g={};return function(T,m,k){var S=T.dtype,b=T.order,M=m.dtype,h=m.order,_=[S,b.join(),M,h.join()].join(),y=g[_];return y||(g[_]=y=x([S,b,M,h])),y(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0,k)}},divseq:function(x){var g={};return function(T,m){var k=T.dtype,S=T.order,b=[k,S.join()].join(),M=g[b];return M||(g[b]=M=x([k,S])),M(T.shape.slice(0),T.data,T.stride,T.offset|0,m)}},assign:function(x){var g={};return function(T,m){var k=T.dtype,S=T.order,b=m.dtype,M=m.order,h=[k,S.join(),b,M.join()].join(),_=g[h];return _||(g[h]=_=x([k,S,b,M])),_(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0)}}};function f(x){var g=s[x.funcName];return g(u.bind(void 0,x))}function c(x){return f({funcName:x.funcName})}var d={mul:"*",div:"/"};(function(){for(var x in d)o[x]=c({funcName:x}),o[x+"s"]=c({funcName:x+"s"}),o[x+"seq"]=c({funcName:x+"seq"})})(),o.assign=c({funcName:"assign"})}),9994:(function(a,o,i){"use strict";var l=i(9618),u=i(8277);a.exports=function(f,c){for(var d=[],x=f,g=1;Array.isArray(x);)d.push(x.length),g*=x.length,x=x[0];return d.length===0?l():(c||(c=l(new Float64Array(g),d)),u(c,f),c)}}),8277:(function(a){"use strict";function o(){return function(c,d,x,g,w){var T=c[0],m=c[1],k=c[2],S=x[0],b=x[1],M=x[2],h=[0,0,0];g|=0;var _=0,y=0,v=0,A=M,p=b-k*M,R=S-m*b;for(v=0;v<T;++v){for(y=0;y<m;++y){for(_=0;_<k;++_){{var E=w,D;for(D=0;D<h.length-1;++D)E=E[h[D]];d[g]=E[h[h.length-1]]}g+=A,++h[2]}g+=p,h[2]-=k,++h[1]}g+=R,h[1]-=m,++h[0]}}}function i(){return o()}var l=i;function u(c){var d={};return function(g,w){var T=g.dtype,m=g.order,k=[T,m.join()].join(),S=d[k];return S||(d[k]=S=c([T,m])),S(g.shape.slice(0),g.data,g.stride,g.offset|0,w)}}function s(c){return u(l.bind(void 0,c))}function f(c){return s({funcName:c.funcName})}a.exports=f({funcName:"convert"})}),7640:(function(a,o,i){"use strict";var l=i(1888);function u(w){return w==="uint32"?[l.mallocUint32,l.freeUint32]:null}var s={"uint32,1,0":function(w,T){return function(k,S,b,M,h,_,y,v,A,p,R){var E,D,F,z=k*h+M,I,L=w(v),P,O,U,V;for(E=k+1;E<=S;++E){for(D=E,z+=h,F=z,P=0,O=z,I=0;I<v;++I)L[P++]=b[O],O+=A;e:for(;D-- >k;){P=0,O=F-h;r:for(I=0;I<v;++I){if(U=b[O],V=L[P],U<V)break e;if(U>V)break r;O+=p,P+=R}for(P=F,O=F-h,I=0;I<v;++I)b[P]=b[O],P+=A,O+=A;F-=h}for(P=F,O=0,I=0;I<v;++I)b[P]=L[O++],P+=A}T(L)}}};function f(w,T){var m=u(T),k=[T,w].join(","),S=s[k];return m?S(m[0],m[1]):S()}var c={"uint32,1,0":function(w,T,m){return function k(S,b,M,h,_,y,v,A,p,R,E){var D=(b-S+1)/6|0,F=S+D,z=b-D,I=S+b>>1,L=I-D,P=I+D,O=F,U=L,V=I,K=P,j=z,G=S+1,q=b-1,J=!0,te,Z,ie,Q,re,se,ee,ae,ce,Me=0,ke=0,Se=0,ge,Le,Ee,le,Y,$,pe,oe,ve,he,me,be,ye,de,_e,Ae,Ie=A,Pe=T(Ie),Ye=T(Ie);Le=_*O,Ee=_*U,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ee+Ae,Se=M[ee]-M[ae],Se>0){Z=O,O=U,U=Z;break e}if(Se<0)break e;Ae+=R}Le=_*K,Ee=_*j,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ee+Ae,Se=M[ee]-M[ae],Se>0){Z=K,K=j,j=Z;break e}if(Se<0)break e;Ae+=R}Le=_*O,Ee=_*V,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ee+Ae,Se=M[ee]-M[ae],Se>0){Z=O,O=V,V=Z;break e}if(Se<0)break e;Ae+=R}Le=_*U,Ee=_*V,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ee+Ae,Se=M[ee]-M[ae],Se>0){Z=U,U=V,V=Z;break e}if(Se<0)break e;Ae+=R}Le=_*O,Ee=_*K,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ee+Ae,Se=M[ee]-M[ae],Se>0){Z=O,O=K,K=Z;break e}if(Se<0)break e;Ae+=R}Le=_*V,Ee=_*K,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ee+Ae,Se=M[ee]-M[ae],Se>0){Z=V,V=K,K=Z;break e}if(Se<0)break e;Ae+=R}Le=_*U,Ee=_*j,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ee+Ae,Se=M[ee]-M[ae],Se>0){Z=U,U=j,j=Z;break e}if(Se<0)break e;Ae+=R}Le=_*U,Ee=_*V,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ee+Ae,Se=M[ee]-M[ae],Se>0){Z=U,U=V,V=Z;break e}if(Se<0)break e;Ae+=R}Le=_*K,Ee=_*j,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ee+Ae,Se=M[ee]-M[ae],Se>0){Z=K,K=j,j=Z;break e}if(Se<0)break e;Ae+=R}for(Le=_*O,Ee=_*U,le=_*V,Y=_*K,$=_*j,pe=_*F,oe=_*I,ve=_*z,_e=0,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,ce=le+Ae,he=Y+Ae,me=$+Ae,be=pe+Ae,ye=oe+Ae,de=ve+Ae,Pe[_e]=M[ae],Ye[_e]=M[he],J=J&&Pe[_e]===Ye[_e],ie=M[ee],Q=M[ce],re=M[me],M[be]=ie,M[ye]=Q,M[de]=re,++_e,Ae+=p;for(Le=_*L,Ee=_*S,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,M[ee]=M[ae],Ae+=p;for(Le=_*P,Ee=_*b,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,M[ee]=M[ae],Ae+=p;if(J)for(se=G;se<=q;++se){ee=h+se*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=M[ee]-Pe[_e],Se!==0)break e;_e+=E,ee+=R}if(Se!==0)if(Se<0){if(se!==G)for(Le=_*se,Ee=_*G,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,te=M[ee],M[ee]=M[ae],M[ae]=te,Ae+=p;++G}else for(;;){ee=h+q*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=M[ee]-Pe[_e],Se!==0)break e;_e+=E,ee+=R}if(Se>0)q--;else if(Se<0){for(Le=_*se,Ee=_*G,le=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,ce=le+Ae,te=M[ee],M[ee]=M[ae],M[ae]=M[ce],M[ce]=te,Ae+=p;++G,--q;break}else{for(Le=_*se,Ee=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,te=M[ee],M[ee]=M[ae],M[ae]=te,Ae+=p;--q;break}}}else for(se=G;se<=q;++se){ee=h+se*_,_e=0;e:for(ge=0;ge<A;++ge){if(Me=M[ee]-Pe[_e],Me!==0)break e;_e+=E,ee+=R}if(Me<0){if(se!==G)for(Le=_*se,Ee=_*G,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,te=M[ee],M[ee]=M[ae],M[ae]=te,Ae+=p;++G}else{ee=h+se*_,_e=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Ye[_e],ke!==0)break e;_e+=E,ee+=R}if(ke>0)for(;;){ee=h+q*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=M[ee]-Ye[_e],Se!==0)break e;_e+=E,ee+=R}if(Se>0){if(--q<se)break;continue}else{ee=h+q*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=M[ee]-Pe[_e],Se!==0)break e;_e+=E,ee+=R}if(Se<0){for(Le=_*se,Ee=_*G,le=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,ce=le+Ae,te=M[ee],M[ee]=M[ae],M[ae]=M[ce],M[ce]=te,Ae+=p;++G,--q}else{for(Le=_*se,Ee=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,te=M[ee],M[ee]=M[ae],M[ae]=te,Ae+=p;--q}break}}}}for(Le=_*S,Ee=_*(G-1),_e=0,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,M[ee]=M[ae],M[ae]=Pe[_e],++_e,Ae+=p;for(Le=_*b,Ee=_*(q+1),_e=0,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,M[ee]=M[ae],M[ae]=Ye[_e],++_e,Ae+=p;if(G-2-S<=32?w(S,G-2,M,h,_,y,v,A,p,R,E):k(S,G-2,M,h,_,y,v,A,p,R,E),b-(q+2)<=32?w(q+2,b,M,h,_,y,v,A,p,R,E):k(q+2,b,M,h,_,y,v,A,p,R,E),J){m(Pe),m(Ye);return}if(G<F&&q>z){e:for(;;){for(ee=h+G*_,_e=0,Ae=h,ge=0;ge<A;++ge){if(M[ee]!==Pe[_e])break e;++_e,ee+=p}++G}e:for(;;){for(ee=h+q*_,_e=0,Ae=h,ge=0;ge<A;++ge){if(M[ee]!==Ye[_e])break e;++_e,ee+=p}--q}for(se=G;se<=q;++se){ee=h+se*_,_e=0;e:for(ge=0;ge<A;++ge){if(Me=M[ee]-Pe[_e],Me!==0)break e;_e+=E,ee+=R}if(Me===0){if(se!==G)for(Le=_*se,Ee=_*G,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,te=M[ee],M[ee]=M[ae],M[ae]=te,Ae+=p;++G}else{ee=h+se*_,_e=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Ye[_e],ke!==0)break e;_e+=E,ee+=R}if(ke===0)for(;;){ee=h+q*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=M[ee]-Ye[_e],Se!==0)break e;_e+=E,ee+=R}if(Se===0){if(--q<se)break;continue}else{ee=h+q*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=M[ee]-Pe[_e],Se!==0)break e;_e+=E,ee+=R}if(Se<0){for(Le=_*se,Ee=_*G,le=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,ce=le+Ae,te=M[ee],M[ee]=M[ae],M[ae]=M[ce],M[ce]=te,Ae+=p;++G,--q}else{for(Le=_*se,Ee=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ee+Ae,te=M[ee],M[ee]=M[ae],M[ae]=te,Ae+=p;--q}break}}}}}m(Pe),m(Ye),q-G<=32?w(G,q,M,h,_,y,v,A,p,R,E):k(G,q,M,h,_,y,v,A,p,R,E)}}};function d(w,T,m){var k=u(T),S=[T,w].join(","),b=c[S];return w.length>1&&k?b(m,k[0],k[1]):b(m)}var x={"uint32,1,0":function(w,T){return function(m){var k=m.data,S=m.offset|0,b=m.shape,M=m.stride,h=M[0]|0,_=b[0]|0,y=M[1]|0,v=b[1]|0,A=y,p=y,R=1;_<=32?w(0,_-1,k,S,h,y,_,v,A,p,R):T(0,_-1,k,S,h,y,_,v,A,p,R)}}};function g(w,T){var m=[T,w].join(","),k=x[m],S=f(w,T),b=d(w,T,S);return k(S,b)}a.exports=g}),446:(function(a,o,i){"use strict";var l=i(7640),u={};function s(f){var c=f.order,d=f.dtype,x=[c,d],g=x.join(":"),w=u[g];return w||(u[g]=w=l(c,d)),w(f),f}a.exports=s}),9618:(function(a,o,i){var l=i(7163),u=typeof Float64Array!="undefined";function s(T,m){return T[0]-m[0]}function f(){var T=this.stride,m=new Array(T.length),k;for(k=0;k<m.length;++k)m[k]=[Math.abs(T[k]),k];m.sort(s);var S=new Array(m.length);for(k=0;k<S.length;++k)S[k]=m[k][1];return S}var c={T:function(T){function m(S){this.data=S}var k=m.prototype;return k.dtype=T,k.index=function(){return-1},k.size=0,k.dimension=-1,k.shape=k.stride=k.order=[],k.lo=k.hi=k.transpose=k.step=function(){return new m(this.data)},k.get=k.set=function(){},k.pick=function(){return null},function(b){return new m(b)}},0:function(T,m){function k(b,M){this.data=b,this.offset=M}var S=k.prototype;return S.dtype=T,S.index=function(){return this.offset},S.dimension=0,S.size=1,S.shape=S.stride=S.order=[],S.lo=S.hi=S.transpose=S.step=function(){return new k(this.data,this.offset)},S.pick=function(){return m(this.data)},S.valueOf=S.get=function(){return T==="generic"?this.data.get(this.offset):this.data[this.offset]},S.set=function(M){return T==="generic"?this.data.set(this.offset,M):this.data[this.offset]=M},function(M,h,_,y){return new k(M,y)}},1:function(T,m,k){function S(M,h,_,y){this.data=M,this.shape=[h],this.stride=[_],this.offset=y|0}var b=S.prototype;return b.dtype=T,b.dimension=1,Object.defineProperty(b,"size",{get:function(){return this.shape[0]}}),b.order=[0],b.set=function(h,_){return T==="generic"?this.data.set(this.offset+this.stride[0]*h,_):this.data[this.offset+this.stride[0]*h]=_},b.get=function(h){return T==="generic"?this.data.get(this.offset+this.stride[0]*h):this.data[this.offset+this.stride[0]*h]},b.index=function(h){return this.offset+this.stride[0]*h},b.hi=function(h){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,this.stride[0],this.offset)},b.lo=function(h){var _=this.offset,y=0,v=this.shape[0],A=this.stride[0];return typeof h=="number"&&h>=0&&(y=h|0,_+=A*y,v-=y),new S(this.data,v,A,_)},b.step=function(h){var _=this.shape[0],y=this.stride[0],v=this.offset,A=0,p=Math.ceil;return typeof h=="number"&&(A=h|0,A<0?(v+=y*(_-1),_=p(-_/A)):_=p(_/A),y*=A),new S(this.data,_,y,v)},b.transpose=function(h){h=h===void 0?0:h|0;var _=this.shape,y=this.stride;return new S(this.data,_[h],y[h],this.offset)},b.pick=function(h){var _=[],y=[],v=this.offset;typeof h=="number"&&h>=0?v=v+this.stride[0]*h|0:(_.push(this.shape[0]),y.push(this.stride[0]));var A=m[_.length+1];return A(this.data,_,y,v)},function(h,_,y,v){return new S(h,_[0],y[0],v)}},2:function(T,m,k){function S(M,h,_,y,v,A){this.data=M,this.shape=[h,_],this.stride=[y,v],this.offset=A|0}var b=S.prototype;return b.dtype=T,b.dimension=2,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(b,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),b.set=function(h,_,y){return T==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*_,y):this.data[this.offset+this.stride[0]*h+this.stride[1]*_]=y},b.get=function(h,_){return T==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*_):this.data[this.offset+this.stride[0]*h+this.stride[1]*_]},b.index=function(h,_){return this.offset+this.stride[0]*h+this.stride[1]*_},b.hi=function(h,_){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,typeof _!="number"||_<0?this.shape[1]:_|0,this.stride[0],this.stride[1],this.offset)},b.lo=function(h,_){var y=this.offset,v=0,A=this.shape[0],p=this.shape[1],R=this.stride[0],E=this.stride[1];return typeof h=="number"&&h>=0&&(v=h|0,y+=R*v,A-=v),typeof _=="number"&&_>=0&&(v=_|0,y+=E*v,p-=v),new S(this.data,A,p,R,E,y)},b.step=function(h,_){var y=this.shape[0],v=this.shape[1],A=this.stride[0],p=this.stride[1],R=this.offset,E=0,D=Math.ceil;return typeof h=="number"&&(E=h|0,E<0?(R+=A*(y-1),y=D(-y/E)):y=D(y/E),A*=E),typeof _=="number"&&(E=_|0,E<0?(R+=p*(v-1),v=D(-v/E)):v=D(v/E),p*=E),new S(this.data,y,v,A,p,R)},b.transpose=function(h,_){h=h===void 0?0:h|0,_=_===void 0?1:_|0;var y=this.shape,v=this.stride;return new S(this.data,y[h],y[_],v[h],v[_],this.offset)},b.pick=function(h,_){var y=[],v=[],A=this.offset;typeof h=="number"&&h>=0?A=A+this.stride[0]*h|0:(y.push(this.shape[0]),v.push(this.stride[0])),typeof _=="number"&&_>=0?A=A+this.stride[1]*_|0:(y.push(this.shape[1]),v.push(this.stride[1]));var p=m[y.length+1];return p(this.data,y,v,A)},function(h,_,y,v){return new S(h,_[0],_[1],y[0],y[1],v)}},3:function(T,m,k){function S(M,h,_,y,v,A,p,R){this.data=M,this.shape=[h,_,y],this.stride=[v,A,p],this.offset=R|0}var b=S.prototype;return b.dtype=T,b.dimension=3,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(b,"order",{get:function(){var h=Math.abs(this.stride[0]),_=Math.abs(this.stride[1]),y=Math.abs(this.stride[2]);return h>_?_>y?[2,1,0]:h>y?[1,2,0]:[1,0,2]:h>y?[2,0,1]:y>_?[0,1,2]:[0,2,1]}}),b.set=function(h,_,y,v){return T==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y,v):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y]=v},b.get=function(h,_,y){return T==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y]},b.index=function(h,_,y){return this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y},b.hi=function(h,_,y){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof y!="number"||y<0?this.shape[2]:y|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},b.lo=function(h,_,y){var v=this.offset,A=0,p=this.shape[0],R=this.shape[1],E=this.shape[2],D=this.stride[0],F=this.stride[1],z=this.stride[2];return typeof h=="number"&&h>=0&&(A=h|0,v+=D*A,p-=A),typeof _=="number"&&_>=0&&(A=_|0,v+=F*A,R-=A),typeof y=="number"&&y>=0&&(A=y|0,v+=z*A,E-=A),new S(this.data,p,R,E,D,F,z,v)},b.step=function(h,_,y){var v=this.shape[0],A=this.shape[1],p=this.shape[2],R=this.stride[0],E=this.stride[1],D=this.stride[2],F=this.offset,z=0,I=Math.ceil;return typeof h=="number"&&(z=h|0,z<0?(F+=R*(v-1),v=I(-v/z)):v=I(v/z),R*=z),typeof _=="number"&&(z=_|0,z<0?(F+=E*(A-1),A=I(-A/z)):A=I(A/z),E*=z),typeof y=="number"&&(z=y|0,z<0?(F+=D*(p-1),p=I(-p/z)):p=I(p/z),D*=z),new S(this.data,v,A,p,R,E,D,F)},b.transpose=function(h,_,y){h=h===void 0?0:h|0,_=_===void 0?1:_|0,y=y===void 0?2:y|0;var v=this.shape,A=this.stride;return new S(this.data,v[h],v[_],v[y],A[h],A[_],A[y],this.offset)},b.pick=function(h,_,y){var v=[],A=[],p=this.offset;typeof h=="number"&&h>=0?p=p+this.stride[0]*h|0:(v.push(this.shape[0]),A.push(this.stride[0])),typeof _=="number"&&_>=0?p=p+this.stride[1]*_|0:(v.push(this.shape[1]),A.push(this.stride[1])),typeof y=="number"&&y>=0?p=p+this.stride[2]*y|0:(v.push(this.shape[2]),A.push(this.stride[2]));var R=m[v.length+1];return R(this.data,v,A,p)},function(h,_,y,v){return new S(h,_[0],_[1],_[2],y[0],y[1],y[2],v)}},4:function(T,m,k){function S(M,h,_,y,v,A,p,R,E,D){this.data=M,this.shape=[h,_,y,v],this.stride=[A,p,R,E],this.offset=D|0}var b=S.prototype;return b.dtype=T,b.dimension=4,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(b,"order",{get:k}),b.set=function(h,_,y,v,A){return T==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v,A):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v]=A},b.get=function(h,_,y,v){return T==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v]},b.index=function(h,_,y,v){return this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v},b.hi=function(h,_,y,v){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof y!="number"||y<0?this.shape[2]:y|0,typeof v!="number"||v<0?this.shape[3]:v|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},b.lo=function(h,_,y,v){var A=this.offset,p=0,R=this.shape[0],E=this.shape[1],D=this.shape[2],F=this.shape[3],z=this.stride[0],I=this.stride[1],L=this.stride[2],P=this.stride[3];return typeof h=="number"&&h>=0&&(p=h|0,A+=z*p,R-=p),typeof _=="number"&&_>=0&&(p=_|0,A+=I*p,E-=p),typeof y=="number"&&y>=0&&(p=y|0,A+=L*p,D-=p),typeof v=="number"&&v>=0&&(p=v|0,A+=P*p,F-=p),new S(this.data,R,E,D,F,z,I,L,P,A)},b.step=function(h,_,y,v){var A=this.shape[0],p=this.shape[1],R=this.shape[2],E=this.shape[3],D=this.stride[0],F=this.stride[1],z=this.stride[2],I=this.stride[3],L=this.offset,P=0,O=Math.ceil;return typeof h=="number"&&(P=h|0,P<0?(L+=D*(A-1),A=O(-A/P)):A=O(A/P),D*=P),typeof _=="number"&&(P=_|0,P<0?(L+=F*(p-1),p=O(-p/P)):p=O(p/P),F*=P),typeof y=="number"&&(P=y|0,P<0?(L+=z*(R-1),R=O(-R/P)):R=O(R/P),z*=P),typeof v=="number"&&(P=v|0,P<0?(L+=I*(E-1),E=O(-E/P)):E=O(E/P),I*=P),new S(this.data,A,p,R,E,D,F,z,I,L)},b.transpose=function(h,_,y,v){h=h===void 0?0:h|0,_=_===void 0?1:_|0,y=y===void 0?2:y|0,v=v===void 0?3:v|0;var A=this.shape,p=this.stride;return new S(this.data,A[h],A[_],A[y],A[v],p[h],p[_],p[y],p[v],this.offset)},b.pick=function(h,_,y,v){var A=[],p=[],R=this.offset;typeof h=="number"&&h>=0?R=R+this.stride[0]*h|0:(A.push(this.shape[0]),p.push(this.stride[0])),typeof _=="number"&&_>=0?R=R+this.stride[1]*_|0:(A.push(this.shape[1]),p.push(this.stride[1])),typeof y=="number"&&y>=0?R=R+this.stride[2]*y|0:(A.push(this.shape[2]),p.push(this.stride[2])),typeof v=="number"&&v>=0?R=R+this.stride[3]*v|0:(A.push(this.shape[3]),p.push(this.stride[3]));var E=m[A.length+1];return E(this.data,A,p,R)},function(h,_,y,v){return new S(h,_[0],_[1],_[2],_[3],y[0],y[1],y[2],y[3],v)}},5:function(m,k,S){function b(h,_,y,v,A,p,R,E,D,F,z,I){this.data=h,this.shape=[_,y,v,A,p],this.stride=[R,E,D,F,z],this.offset=I|0}var M=b.prototype;return M.dtype=m,M.dimension=5,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(M,"order",{get:S}),M.set=function(_,y,v,A,p,R){return m==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p,R):this.data[this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p]=R},M.get=function(_,y,v,A,p){return m==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p):this.data[this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p]},M.index=function(_,y,v,A,p){return this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p},M.hi=function(_,y,v,A,p){return new b(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof y!="number"||y<0?this.shape[1]:y|0,typeof v!="number"||v<0?this.shape[2]:v|0,typeof A!="number"||A<0?this.shape[3]:A|0,typeof p!="number"||p<0?this.shape[4]:p|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(_,y,v,A,p){var R=this.offset,E=0,D=this.shape[0],F=this.shape[1],z=this.shape[2],I=this.shape[3],L=this.shape[4],P=this.stride[0],O=this.stride[1],U=this.stride[2],V=this.stride[3],K=this.stride[4];return typeof _=="number"&&_>=0&&(E=_|0,R+=P*E,D-=E),typeof y=="number"&&y>=0&&(E=y|0,R+=O*E,F-=E),typeof v=="number"&&v>=0&&(E=v|0,R+=U*E,z-=E),typeof A=="number"&&A>=0&&(E=A|0,R+=V*E,I-=E),typeof p=="number"&&p>=0&&(E=p|0,R+=K*E,L-=E),new b(this.data,D,F,z,I,L,P,O,U,V,K,R)},M.step=function(_,y,v,A,p){var R=this.shape[0],E=this.shape[1],D=this.shape[2],F=this.shape[3],z=this.shape[4],I=this.stride[0],L=this.stride[1],P=this.stride[2],O=this.stride[3],U=this.stride[4],V=this.offset,K=0,j=Math.ceil;return typeof _=="number"&&(K=_|0,K<0?(V+=I*(R-1),R=j(-R/K)):R=j(R/K),I*=K),typeof y=="number"&&(K=y|0,K<0?(V+=L*(E-1),E=j(-E/K)):E=j(E/K),L*=K),typeof v=="number"&&(K=v|0,K<0?(V+=P*(D-1),D=j(-D/K)):D=j(D/K),P*=K),typeof A=="number"&&(K=A|0,K<0?(V+=O*(F-1),F=j(-F/K)):F=j(F/K),O*=K),typeof p=="number"&&(K=p|0,K<0?(V+=U*(z-1),z=j(-z/K)):z=j(z/K),U*=K),new b(this.data,R,E,D,F,z,I,L,P,O,U,V)},M.transpose=function(_,y,v,A,p){_=_===void 0?0:_|0,y=y===void 0?1:y|0,v=v===void 0?2:v|0,A=A===void 0?3:A|0,p=p===void 0?4:p|0;var R=this.shape,E=this.stride;return new b(this.data,R[_],R[y],R[v],R[A],R[p],E[_],E[y],E[v],E[A],E[p],this.offset)},M.pick=function(_,y,v,A,p){var R=[],E=[],D=this.offset;typeof _=="number"&&_>=0?D=D+this.stride[0]*_|0:(R.push(this.shape[0]),E.push(this.stride[0])),typeof y=="number"&&y>=0?D=D+this.stride[1]*y|0:(R.push(this.shape[1]),E.push(this.stride[1])),typeof v=="number"&&v>=0?D=D+this.stride[2]*v|0:(R.push(this.shape[2]),E.push(this.stride[2])),typeof A=="number"&&A>=0?D=D+this.stride[3]*A|0:(R.push(this.shape[3]),E.push(this.stride[3])),typeof p=="number"&&p>=0?D=D+this.stride[4]*p|0:(R.push(this.shape[4]),E.push(this.stride[4]));var F=k[R.length+1];return F(this.data,R,E,D)},function(_,y,v,A){return new b(_,y[0],y[1],y[2],y[3],y[4],v[0],v[1],v[2],v[3],v[4],A)}}};function d(T,m){var k=m===-1?"T":String(m),S=c[k];return m===-1?S(T):m===0?S(T,g[T][0]):S(T,g[T],f)}function x(T){if(l(T))return"buffer";if(u)switch(Object.prototype.toString.call(T)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(T)?"array":"generic"}var g={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function w(T,m,k,S){if(T===void 0){var v=g.array[0];return v([])}else typeof T=="number"&&(T=[T]);m===void 0&&(m=[T.length]);var b=m.length;if(k===void 0){k=new Array(b);for(var M=b-1,h=1;M>=0;--M)k[M]=h,h*=m[M]}if(S===void 0){S=0;for(var M=0;M<b;++M)k[M]<0&&(S-=(m[M]-1)*k[M])}for(var _=x(T),y=g[_];y.length<=b+1;)y.push(d(_,y.length-1));var v=y[b+1];return v(T,m,k,S)}a.exports=w}),1278:(function(a,o,i){"use strict";var l=i(2361),u=Math.pow(2,-1074),s=-1>>>0;a.exports=f;function f(c,d){if(isNaN(c)||isNaN(d))return NaN;if(c===d)return c;if(c===0)return d<0?-u:u;var x=l.hi(c),g=l.lo(c);return d>c==c>0?g===s?(x+=1,g=0):g+=1:g===0?(g=s,x-=1):g-=1,l.pack(g,x)}}),8406:(function(a,o){var i=1e-6,l=1e-6;o.vertexNormals=function(u,s,f){for(var c=s.length,d=new Array(c),x=f===void 0?i:f,g=0;g<c;++g)d[g]=[0,0,0];for(var g=0;g<u.length;++g)for(var w=u[g],T=0,m=w[w.length-1],k=w[0],S=0;S<w.length;++S){T=m,m=k,k=w[(S+1)%w.length];for(var b=s[T],M=s[m],h=s[k],_=new Array(3),y=0,v=new Array(3),A=0,p=0;p<3;++p)_[p]=b[p]-M[p],y+=_[p]*_[p],v[p]=h[p]-M[p],A+=v[p]*v[p];if(y*A>x)for(var R=d[m],E=1/Math.sqrt(y*A),p=0;p<3;++p){var D=(p+1)%3,F=(p+2)%3;R[p]+=E*(v[D]*_[F]-v[F]*_[D])}}for(var g=0;g<c;++g){for(var R=d[g],z=0,p=0;p<3;++p)z+=R[p]*R[p];if(z>x)for(var E=1/Math.sqrt(z),p=0;p<3;++p)R[p]*=E;else for(var p=0;p<3;++p)R[p]=0}return d},o.faceNormals=function(u,s,f){for(var c=u.length,d=new Array(c),x=f===void 0?l:f,g=0;g<c;++g){for(var w=u[g],T=new Array(3),m=0;m<3;++m)T[m]=s[w[m]];for(var k=new Array(3),S=new Array(3),m=0;m<3;++m)k[m]=T[1][m]-T[0][m],S[m]=T[2][m]-T[0][m];for(var b=new Array(3),M=0,m=0;m<3;++m){var h=(m+1)%3,_=(m+2)%3;b[m]=k[h]*S[_]-k[_]*S[h],M+=b[m]*b[m]}M>x?M=1/Math.sqrt(M):M=0;for(var m=0;m<3;++m)b[m]*=M;d[g]=b}return d}}),4081:(function(a){"use strict";a.exports=o;function o(i,l,u,s,f,c,d,x,g,w){var T=l+c+w;if(m>0){var m=Math.sqrt(T+1);i[0]=.5*(d-g)/m,i[1]=.5*(x-s)/m,i[2]=.5*(u-c)/m,i[3]=.5*m}else{var k=Math.max(l,c,w),m=Math.sqrt(2*k-T+1);l>=k?(i[0]=.5*m,i[1]=.5*(f+u)/m,i[2]=.5*(x+s)/m,i[3]=.5*(d-g)/m):c>=k?(i[0]=.5*(u+f)/m,i[1]=.5*m,i[2]=.5*(g+d)/m,i[3]=.5*(x-s)/m):(i[0]=.5*(s+x)/m,i[1]=.5*(d+g)/m,i[2]=.5*m,i[3]=.5*(u-f)/m)}return i}}),9977:(function(a,o,i){"use strict";a.exports=m;var l=i(9215),u=i(6582),s=i(7399),f=i(7608),c=i(4081);function d(k,S,b){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(b,2))}function x(k,S,b,M){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(b,2)+Math.pow(M,2))}function g(k,S){var b=S[0],M=S[1],h=S[2],_=S[3],y=x(b,M,h,_);y>1e-6?(k[0]=b/y,k[1]=M/y,k[2]=h/y,k[3]=_/y):(k[0]=k[1]=k[2]=0,k[3]=1)}function w(k,S,b){this.radius=l([b]),this.center=l(S),this.rotation=l(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var T=w.prototype;T.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},T.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var S=this.computedRotation;g(S,S);var b=this.computedMatrix;s(b,S);var M=this.computedCenter,h=this.computedEye,_=this.computedUp,y=Math.exp(this.computedRadius[0]);h[0]=M[0]+y*b[2],h[1]=M[1]+y*b[6],h[2]=M[2]+y*b[10],_[0]=b[1],_[1]=b[5],_[2]=b[9];for(var v=0;v<3;++v){for(var A=0,p=0;p<3;++p)A+=b[v+4*p]*h[p];b[12+v]=-A}},T.getMatrix=function(k,S){this.recalcMatrix(k);var b=this.computedMatrix;if(S){for(var M=0;M<16;++M)S[M]=b[M];return S}return b},T.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},T.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},T.pan=function(k,S,b,M){S=S||0,b=b||0,M=M||0,this.recalcMatrix(k);var h=this.computedMatrix,_=h[1],y=h[5],v=h[9],A=d(_,y,v);_/=A,y/=A,v/=A;var p=h[0],R=h[4],E=h[8],D=p*_+R*y+E*v;p-=_*D,R-=y*D,E-=v*D;var F=d(p,R,E);p/=F,R/=F,E/=F;var z=h[2],I=h[6],L=h[10],P=z*_+I*y+L*v,O=z*p+I*R+L*E;z-=P*_+O*p,I-=P*y+O*R,L-=P*v+O*E;var U=d(z,I,L);z/=U,I/=U,L/=U;var V=p*S+_*b,K=R*S+y*b,j=E*S+v*b;this.center.move(k,V,K,j);var G=Math.exp(this.computedRadius[0]);G=Math.max(1e-4,G+M),this.radius.set(k,Math.log(G))},T.rotate=function(k,S,b,M){this.recalcMatrix(k),S=S||0,b=b||0;var h=this.computedMatrix,_=h[0],y=h[4],v=h[8],A=h[1],p=h[5],R=h[9],E=h[2],D=h[6],F=h[10],z=S*_+b*A,I=S*y+b*p,L=S*v+b*R,P=-(D*L-F*I),O=-(F*z-E*L),U=-(E*I-D*z),V=Math.sqrt(Math.max(0,1-Math.pow(P,2)-Math.pow(O,2)-Math.pow(U,2))),K=x(P,O,U,V);K>1e-6?(P/=K,O/=K,U/=K,V/=K):(P=O=U=0,V=1);var j=this.computedRotation,G=j[0],q=j[1],J=j[2],te=j[3],Z=G*V+te*P+q*U-J*O,ie=q*V+te*O+J*P-G*U,Q=J*V+te*U+G*O-q*P,re=te*V-G*P-q*O-J*U;if(M){P=E,O=D,U=F;var se=Math.sin(M)/d(P,O,U);P*=se,O*=se,U*=se,V=Math.cos(S),Z=Z*V+re*P+ie*U-Q*O,ie=ie*V+re*O+Q*P-Z*U,Q=Q*V+re*U+Z*O-ie*P,re=re*V-Z*P-ie*O-Q*U}var ee=x(Z,ie,Q,re);ee>1e-6?(Z/=ee,ie/=ee,Q/=ee,re/=ee):(Z=ie=Q=0,re=1),this.rotation.set(k,Z,ie,Q,re)},T.lookAt=function(k,S,b,M){this.recalcMatrix(k),b=b||this.computedCenter,S=S||this.computedEye,M=M||this.computedUp;var h=this.computedMatrix;u(h,S,b,M);var _=this.computedRotation;c(_,h[0],h[1],h[2],h[4],h[5],h[6],h[8],h[9],h[10]),g(_,_),this.rotation.set(k,_[0],_[1],_[2],_[3]);for(var y=0,v=0;v<3;++v)y+=Math.pow(b[v]-S[v],2);this.radius.set(k,.5*Math.log(Math.max(y,1e-6))),this.center.set(k,b[0],b[1],b[2])},T.translate=function(k,S,b,M){this.center.move(k,S||0,b||0,M||0)},T.setMatrix=function(k,S){var b=this.computedRotation;c(b,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),g(b,b),this.rotation.set(k,b[0],b[1],b[2],b[3]);var M=this.computedMatrix;f(M,S);var h=M[15];if(Math.abs(h)>1e-6){var _=M[12]/h,y=M[13]/h,v=M[14]/h;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,_-M[2]*A,y-M[6]*A,v-M[10]*A),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},T.setDistance=function(k,S){S>0&&this.radius.set(k,Math.log(S))},T.setDistanceLimits=function(k,S){k>0?k=Math.log(k):k=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=S},T.getDistanceLimits=function(k){var S=this.radius.bounds;return k?(k[0]=Math.exp(S[0][0]),k[1]=Math.exp(S[1][0]),k):[Math.exp(S[0][0]),Math.exp(S[1][0])]},T.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},T.fromJSON=function(k){var S=this.lastT(),b=k.center;b&&this.center.set(S,b[0],b[1],b[2]);var M=k.rotation;M&&this.rotation.set(S,M[0],M[1],M[2],M[3]);var h=k.distance;h&&h>0&&this.radius.set(S,Math.log(h)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function m(k){k=k||{};var S=k.center||[0,0,0],b=k.rotation||[0,0,0,1],M=k.radius||1;S=[].slice.call(S,0,3),b=[].slice.call(b,0,4),g(b,b);var h=new w(b,S,Math.log(M));return h.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&h.lookAt(0,k.eye,k.center,k.up),h}}),1371:(function(a,o,i){"use strict";var l=i(3233);a.exports=function(s,f,c){return c=typeof c!="undefined"?c+"":" ",l(c,f)+s}}),3202:(function(a){a.exports=function(i,l){l||(l=[0,""]),i=String(i);var u=parseFloat(i,10);return l[0]=u,l[1]=i.match(/[\d.\-\+]*\s*(.*)/)[1]||"",l}}),3088:(function(a,o,i){"use strict";a.exports=u;var l=i(3140);function u(s,f){for(var c=f.length|0,d=s.length,x=[new Array(c),new Array(c)],g=0;g<c;++g)x[0][g]=[],x[1][g]=[];for(var g=0;g<d;++g){var w=s[g];x[0][w[0]].push(w),x[1][w[1]].push(w)}for(var T=[],g=0;g<c;++g)x[0][g].length+x[1][g].length===0&&T.push([g]);function m(v,A){var p=x[A][v[A]];p.splice(p.indexOf(v),1)}function k(v,A,p){for(var R,E,D,F=0;F<2;++F)if(x[F][A].length>0){R=x[F][A][0],D=F;break}E=R[D^1];for(var z=0;z<2;++z)for(var I=x[z][A],L=0;L<I.length;++L){var P=I[L],O=P[z^1],U=l(f[v],f[A],f[E],f[O]);U>0&&(R=P,E=O,D=z)}return p||R&&m(R,D),E}function S(v,A){var p=x[A][v][0],R=[v];m(p,A);for(var E=p[A^1],D=A;;){for(;E!==v;)R.push(E),E=k(R[R.length-2],E,!1);if(x[0][v].length+x[1][v].length===0)break;var F=R[R.length-1],z=v,I=R[1],L=k(F,z,!0);if(l(f[F],f[z],f[I],f[L])<0)break;R.push(v),E=k(F,z)}return R}function b(v,A){return A[1]===A[A.length-1]}for(var g=0;g<c;++g)for(var M=0;M<2;++M){for(var h=[];x[M][g].length>0;){var _=x[0][g].length,y=S(g,M);b(h,y)?h.push.apply(h,y):(h.length>0&&T.push(h),h=y)}h.length>0&&T.push(h)}return T}}),5609:(function(a,o,i){"use strict";a.exports=u;var l=i(3134);function u(s,f){for(var c=l(s,f.length),d=new Array(f.length),x=new Array(f.length),g=[],w=0;w<f.length;++w){var T=c[w].length;x[w]=T,d[w]=!0,T<=1&&g.push(w)}for(;g.length>0;){var m=g.pop();d[m]=!1;for(var k=c[m],w=0;w<k.length;++w){var S=k[w];--x[S]===0&&g.push(S)}}for(var b=new Array(f.length),M=[],w=0;w<f.length;++w)if(d[w]){var m=M.length;b[w]=m,M.push(f[w])}else b[w]=-1;for(var h=[],w=0;w<s.length;++w){var _=s[w];d[_[0]]&&d[_[1]]&&h.push([b[_[0]],b[_[1]]])}return[h,M]}}),2095:(function(a,o,i){"use strict";a.exports=T;var l=i(3134),u=i(3088),s=i(5085),f=i(5250),c=i(8210),d=i(1682),x=i(5609);function g(m,k){for(var S=new Array(m),b=0;b<m;++b)S[b]=k;return S}function w(m){for(var k=new Array(m),S=0;S<m;++S)k[S]=[];return k}function T(m,k){var se=x(m,k);m=se[0],k=se[1];for(var S=k.length,b=m.length,M=l(m,k.length),h=0;h<S;++h)if(M[h].length%2===1)throw new Error("planar-graph-to-polyline: graph must be manifold");var _=u(m,k);function y(ge){for(var Le=ge.length,Ee=[0],le=0;le<Le;++le){var Y=k[ge[le]],$=k[ge[(le+1)%Le]],pe=f(-Y[0],Y[1]),oe=f(-Y[0],$[1]),ve=f($[0],Y[1]),he=f($[0],$[1]);Ee=c(Ee,c(c(pe,oe),c(ve,he)))}return Ee[Ee.length-1]>0}_=_.filter(y);for(var v=_.length,A=new Array(v),p=new Array(v),h=0;h<v;++h){A[h]=h;var R=new Array(v),E=_[h].map(function(Le){return k[Le]}),D=s([E]),F=0;e:for(var z=0;z<v;++z)if(R[z]=0,h!==z){for(var I=_[z],L=I.length,P=0;P<L;++P){var O=D(k[I[P]]);if(O!==0){O<0&&(R[z]=1,F+=1);continue e}}R[z]=1,F+=1}p[h]=[F,h,R]}p.sort(function(ge,Le){return Le[0]-ge[0]});for(var h=0;h<v;++h)for(var R=p[h],U=R[1],V=R[2],z=0;z<v;++z)V[z]&&(A[z]=U);for(var K=w(v),h=0;h<v;++h)K[h].push(A[h]),K[A[h]].push(h);for(var j={},G=g(S,!1),h=0;h<v;++h)for(var I=_[h],L=I.length,z=0;z<L;++z){var q=I[z],J=I[(z+1)%L],te=Math.min(q,J)+":"+Math.max(q,J);if(te in j){var Z=j[te];K[Z].push(h),K[h].push(Z),G[q]=G[J]=!0}else j[te]=h}function ie(ge){for(var Le=ge.length,Ee=0;Ee<Le;++Ee)if(!G[ge[Ee]])return!1;return!0}for(var Q=[],re=g(v,-1),h=0;h<v;++h)A[h]===h&&!ie(_[h])?(Q.push(h),re[h]=0):re[h]=-1;for(var se=[];Q.length>0;){var ee=Q.pop(),ae=K[ee];d(ae,function(ge,Le){return ge-Le});var ce=ae.length,Me=re[ee],ke;if(Me===0){var I=_[ee];ke=[I]}for(var h=0;h<ce;++h){var Se=ae[h];if(!(re[Se]>=0)&&(re[Se]=Me^1,Q.push(Se),Me===0)){var I=_[Se];ie(I)||(I.reverse(),ke.push(I))}}Me===0&&se.push(ke)}return se}}),5085:(function(a,o,i){a.exports=k;var l=i(3250)[3],u=i(4209),s=i(3352),f=i(2478);function c(){return!0}function d(S){return function(b,M){var h=S[b];return h?!!h.queryPoint(M,c):!1}}function x(S){for(var b={},M=0;M<S.length;++M){var h=S[M],_=h[0][0],y=h[0][1],v=h[1][1],A=[Math.min(y,v),Math.max(y,v)];_ in b?b[_].push(A):b[_]=[A]}for(var p={},R=Object.keys(b),M=0;M<R.length;++M){var E=b[R[M]];p[R[M]]=s(E)}return d(p)}function g(S,b){return function(M){var h=f.le(b,M[0]);if(h<0)return 1;var _=S[h];if(!_)if(h>0&&b[h]===M[0])_=S[h-1];else return 1;for(var y=1;_;){var v=_.key,A=l(M,v[0],v[1]);if(v[0][0]<v[1][0])if(A<0)_=_.left;else if(A>0)y=-1,_=_.right;else return 0;else if(A>0)_=_.left;else if(A<0)y=1,_=_.right;else return 0}return y}}function w(S){return 1}function T(S){return function(M){return S(M[0],M[1])?0:1}}function m(S,b){return function(h){return S(h[0],h[1])?0:b(h)}}function k(S){for(var b=S.length,M=[],h=[],_=0,y=0;y<b;++y)for(var v=S[y],A=v.length,p=A-1,R=0;R<A;p=R++){var E=v[p],D=v[R];E[0]===D[0]?h.push([E,D]):M.push([E,D])}if(M.length===0)return h.length===0?w:T(x(h));var F=u(M),z=g(F.slabs,F.coordinates);return h.length===0?z:m(x(h),z)}}),9346:(function(a){"use strict";var o=new Float64Array(4),i=new Float64Array(4),l=new Float64Array(4);function u(s,f,c,d,x){o.length<d.length&&(o=new Float64Array(d.length),i=new Float64Array(d.length),l=new Float64Array(d.length));for(var g=0;g<d.length;++g)o[g]=s[g]-d[g],i[g]=f[g]-s[g],l[g]=c[g]-s[g];for(var w=0,T=0,m=0,k=0,S=0,b=0,g=0;g<d.length;++g){var M=i[g],h=l[g],_=o[g];w+=M*M,T+=M*h,m+=h*h,k+=_*M,S+=_*h,b+=_*_}var y=Math.abs(w*m-T*T),v=T*S-m*k,A=T*k-w*S,p;if(v+A<=y)if(v<0)A<0&&k<0?(A=0,-k>=w?(v=1,p=w+2*k+b):(v=-k/w,p=k*v+b)):(v=0,S>=0?(A=0,p=b):-S>=m?(A=1,p=m+2*S+b):(A=-S/m,p=S*A+b));else if(A<0)A=0,k>=0?(v=0,p=b):-k>=w?(v=1,p=w+2*k+b):(v=-k/w,p=k*v+b);else{var R=1/y;v*=R,A*=R,p=v*(w*v+T*A+2*k)+A*(T*v+m*A+2*S)+b}else{var E,D,F,z;v<0?(E=T+k,D=m+S,D>E?(F=D-E,z=w-2*T+m,F>=z?(v=1,A=0,p=w+2*k+b):(v=F/z,A=1-v,p=v*(w*v+T*A+2*k)+A*(T*v+m*A+2*S)+b)):(v=0,D<=0?(A=1,p=m+2*S+b):S>=0?(A=0,p=b):(A=-S/m,p=S*A+b))):A<0?(E=T+S,D=w+k,D>E?(F=D-E,z=w-2*T+m,F>=z?(A=1,v=0,p=m+2*S+b):(A=F/z,v=1-A,p=v*(w*v+T*A+2*k)+A*(T*v+m*A+2*S)+b)):(A=0,D<=0?(v=1,p=w+2*k+b):k>=0?(v=0,p=b):(v=-k/w,p=k*v+b))):(F=m+S-T-k,F<=0?(v=0,A=1,p=m+2*S+b):(z=w-2*T+m,F>=z?(v=1,A=0,p=w+2*k+b):(v=F/z,A=1-v,p=v*(w*v+T*A+2*k)+A*(T*v+m*A+2*S)+b)))}for(var I=1-v-A,g=0;g<d.length;++g)x[g]=I*s[g]+v*f[g]+A*c[g];return p<0?0:p}a.exports=u}),8648:(function(a,o,i){a.exports=i(783)}),2653:(function(a,o,i){"use strict";var l=i(3865);a.exports=u;function u(s,f){for(var c=s.length,d=new Array(c),x=0;x<c;++x)d[x]=l(s[x],f[x]);return d}}),5838:(function(a,o,i){"use strict";a.exports=u;var l=i(7842);function u(s){for(var f=new Array(s.length),c=0;c<s.length;++c)f[c]=l(s[c]);return f}}),8987:(function(a,o,i){"use strict";var l=i(7842),u=i(6504);a.exports=s;function s(f,c){for(var d=l(c),x=f.length,g=new Array(x),w=0;w<x;++w)g[w]=u(f[w],d);return g}}),544:(function(a,o,i){"use strict";var l=i(5572);a.exports=u;function u(s,f){for(var c=s.length,d=new Array(c),x=0;x<c;++x)d[x]=l(s[x],f[x]);return d}}),5771:(function(a,o,i){"use strict";var l=i(8507),u=i(3788),s=i(2419);a.exports=f;function f(c){c.sort(u);for(var d=c.length,x=0,g=0;g<d;++g){var w=c[g],T=s(w);if(T!==0){if(x>0){var m=c[x-1];if(l(w,m)===0&&s(m)!==T){x-=1;continue}}c[x++]=w}}return c.length=x,c}}),3233:(function(a){"use strict";var o="",i;a.exports=l;function l(u,s){if(typeof u!="string")throw new TypeError("expected a string");if(s===1)return u;if(s===2)return u+u;var f=u.length*s;if(i!==u||typeof i=="undefined")i=u,o="";else if(o.length>=f)return o.substr(0,f);for(;f>o.length&&s>1;)s&1&&(o+=u),s>>=1,u+=u;return o+=u,o=o.substr(0,f),o}}),3025:(function(a,o,i){a.exports=i.g.performance&&i.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}),7004:(function(a){"use strict";a.exports=o;function o(i){for(var l=i.length,u=i[i.length-1],s=l,f=l-2;f>=0;--f){var c=u,d=i[f];u=c+d;var x=u-c,g=d-x;g&&(i[--s]=u,u=g)}for(var w=0,f=s;f<l;++f){var c=i[f],d=u;u=c+d;var x=u-c,g=d-x;g&&(i[w++]=g)}return i[w++]=u,i.length=w,i}}),2962:(function(a,o,i){"use strict";var l=i(5250),u=i(8210),s=i(3012),f=i(7004),c=6;function d(b,M,h,_){return function(v){return _(b(h(v[0][0],v[1][1]),h(-v[0][1],v[1][0])))}}function x(b,M,h,_){return function(v){return _(b(M(b(h(v[1][1],v[2][2]),h(-v[1][2],v[2][1])),v[0][0]),b(M(b(h(v[1][0],v[2][2]),h(-v[1][2],v[2][0])),-v[0][1]),M(b(h(v[1][0],v[2][1]),h(-v[1][1],v[2][0])),v[0][2]))))}}function g(b,M,h,_){return function(v){return _(b(b(M(b(M(b(h(v[2][2],v[3][3]),h(-v[2][3],v[3][2])),v[1][1]),b(M(b(h(v[2][1],v[3][3]),h(-v[2][3],v[3][1])),-v[1][2]),M(b(h(v[2][1],v[3][2]),h(-v[2][2],v[3][1])),v[1][3]))),v[0][0]),M(b(M(b(h(v[2][2],v[3][3]),h(-v[2][3],v[3][2])),v[1][0]),b(M(b(h(v[2][0],v[3][3]),h(-v[2][3],v[3][0])),-v[1][2]),M(b(h(v[2][0],v[3][2]),h(-v[2][2],v[3][0])),v[1][3]))),-v[0][1])),b(M(b(M(b(h(v[2][1],v[3][3]),h(-v[2][3],v[3][1])),v[1][0]),b(M(b(h(v[2][0],v[3][3]),h(-v[2][3],v[3][0])),-v[1][1]),M(b(h(v[2][0],v[3][1]),h(-v[2][1],v[3][0])),v[1][3]))),v[0][2]),M(b(M(b(h(v[2][1],v[3][2]),h(-v[2][2],v[3][1])),v[1][0]),b(M(b(h(v[2][0],v[3][2]),h(-v[2][2],v[3][0])),-v[1][1]),M(b(h(v[2][0],v[3][1]),h(-v[2][1],v[3][0])),v[1][2]))),-v[0][3]))))}}function w(b,M,h,_){return function(v){return _(b(b(M(b(b(M(b(M(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][2]),b(M(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),-v[2][3]),M(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][4]))),v[1][1]),M(b(M(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][1]),b(M(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][3]),M(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][4]))),-v[1][2])),b(M(b(M(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][1]),b(M(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][2]),M(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][4]))),v[1][3]),M(b(M(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][1]),b(M(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),-v[2][2]),M(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][3]))),-v[1][4]))),v[0][0]),M(b(b(M(b(M(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][2]),b(M(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),-v[2][3]),M(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][4]))),v[1][0]),M(b(M(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][0]),b(M(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][3]),M(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),v[2][4]))),-v[1][2])),b(M(b(M(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][0]),b(M(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][2]),M(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][4]))),v[1][3]),M(b(M(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][0]),b(M(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][2]),M(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][3]))),-v[1][4]))),-v[0][1])),b(M(b(b(M(b(M(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][1]),b(M(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][3]),M(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][4]))),v[1][0]),M(b(M(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][0]),b(M(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][3]),M(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),v[2][4]))),-v[1][1])),b(M(b(M(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),v[2][0]),b(M(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][1]),M(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][4]))),v[1][3]),M(b(M(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][0]),b(M(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][1]),M(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][3]))),-v[1][4]))),v[0][2]),b(M(b(b(M(b(M(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][1]),b(M(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][2]),M(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][4]))),v[1][0]),M(b(M(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][0]),b(M(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][2]),M(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][4]))),-v[1][1])),b(M(b(M(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),v[2][0]),b(M(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][1]),M(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][4]))),v[1][2]),M(b(M(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][0]),b(M(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),-v[2][1]),M(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][2]))),-v[1][4]))),-v[0][3]),M(b(b(M(b(M(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][1]),b(M(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),-v[2][2]),M(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][3]))),v[1][0]),M(b(M(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][0]),b(M(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][2]),M(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][3]))),-v[1][1])),b(M(b(M(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][0]),b(M(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][1]),M(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][3]))),v[1][2]),M(b(M(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][0]),b(M(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),-v[2][1]),M(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][2]))),-v[1][3]))),v[0][4])))))}}function T(b){var M=b===2?d:b===3?x:b===4?g:b===5?w:void 0;return M(u,s,l,f)}var m=[function(){return[0]},function(M){return[M[0][0]]}];function k(b,M,h,_,y,v,A,p){return function(E){switch(E.length){case 0:return b(E);case 1:return M(E);case 2:return h(E);case 3:return _(E);case 4:return y(E);case 5:return v(E)}var D=A[E.length];return D||(D=A[E.length]=p(E.length)),D(E)}}function S(){for(;m.length<c;)m.push(T(m.length));a.exports=k.apply(void 0,m.concat([m,T]));for(var b=0;b<m.length;++b)a.exports[b]=m[b]}S()}),1944:(function(a,o,i){"use strict";var l=i(5250),u=i(8210);a.exports=s;function s(f,c){for(var d=l(f[0],c[0]),x=1;x<f.length;++x)d=u(d,l(f[x],c[x]));return d}}),2646:(function(a,o,i){"use strict";var l=i(5250),u=i(8210),s=i(8545),f=i(3012),c=6;function d(y){var v=y===3?T:y===4?m:y===5?k:S;return v(u,s,l,f)}function x(){return 0}function g(){return 0}function w(){return 0}function T(y,v,A,p){function R(E,D,F){var z=A(E[0],E[0]),I=p(z,D[0]),L=p(z,F[0]),P=A(D[0],D[0]),O=p(P,E[0]),U=p(P,F[0]),V=A(F[0],F[0]),K=p(V,E[0]),j=p(V,D[0]),G=y(v(j,U),v(O,I)),q=v(K,L),J=v(G,q);return J[J.length-1]}return R}function m(y,v,A,p){function R(E,D,F,z){var I=y(A(E[0],E[0]),A(E[1],E[1])),L=p(I,D[0]),P=p(I,F[0]),O=p(I,z[0]),U=y(A(D[0],D[0]),A(D[1],D[1])),V=p(U,E[0]),K=p(U,F[0]),j=p(U,z[0]),G=y(A(F[0],F[0]),A(F[1],F[1])),q=p(G,E[0]),J=p(G,D[0]),te=p(G,z[0]),Z=y(A(z[0],z[0]),A(z[1],z[1])),ie=p(Z,E[0]),Q=p(Z,D[0]),re=p(Z,F[0]),se=y(y(p(v(re,te),D[1]),y(p(v(Q,j),-F[1]),p(v(J,K),z[1]))),y(p(v(Q,j),E[1]),y(p(v(ie,O),-D[1]),p(v(V,L),z[1])))),ee=y(y(p(v(re,te),E[1]),y(p(v(ie,O),-F[1]),p(v(q,P),z[1]))),y(p(v(J,K),E[1]),y(p(v(q,P),-D[1]),p(v(V,L),F[1])))),ae=v(se,ee);return ae[ae.length-1]}return R}function k(y,v,A,p){function R(E,D,F,z,I){var L=y(A(E[0],E[0]),y(A(E[1],E[1]),A(E[2],E[2]))),P=p(L,D[0]),O=p(L,F[0]),U=p(L,z[0]),V=p(L,I[0]),K=y(A(D[0],D[0]),y(A(D[1],D[1]),A(D[2],D[2]))),j=p(K,E[0]),G=p(K,F[0]),q=p(K,z[0]),J=p(K,I[0]),te=y(A(F[0],F[0]),y(A(F[1],F[1]),A(F[2],F[2]))),Z=p(te,E[0]),ie=p(te,D[0]),Q=p(te,z[0]),re=p(te,I[0]),se=y(A(z[0],z[0]),y(A(z[1],z[1]),A(z[2],z[2]))),ee=p(se,E[0]),ae=p(se,D[0]),ce=p(se,F[0]),Me=p(se,I[0]),ke=y(A(I[0],I[0]),y(A(I[1],I[1]),A(I[2],I[2]))),Se=p(ke,E[0]),ge=p(ke,D[0]),Le=p(ke,F[0]),Ee=p(ke,z[0]),le=y(y(y(p(y(p(v(Ee,Me),F[1]),y(p(v(Le,re),-z[1]),p(v(ce,Q),I[1]))),D[2]),y(p(y(p(v(Ee,Me),D[1]),y(p(v(ge,J),-z[1]),p(v(ae,q),I[1]))),-F[2]),p(y(p(v(Le,re),D[1]),y(p(v(ge,J),-F[1]),p(v(ie,G),I[1]))),z[2]))),y(p(y(p(v(ce,Q),D[1]),y(p(v(ae,q),-F[1]),p(v(ie,G),z[1]))),-I[2]),y(p(y(p(v(Ee,Me),D[1]),y(p(v(ge,J),-z[1]),p(v(ae,q),I[1]))),E[2]),p(y(p(v(Ee,Me),E[1]),y(p(v(Se,V),-z[1]),p(v(ee,U),I[1]))),-D[2])))),y(y(p(y(p(v(ge,J),E[1]),y(p(v(Se,V),-D[1]),p(v(j,P),I[1]))),z[2]),y(p(y(p(v(ae,q),E[1]),y(p(v(ee,U),-D[1]),p(v(j,P),z[1]))),-I[2]),p(y(p(v(ce,Q),D[1]),y(p(v(ae,q),-F[1]),p(v(ie,G),z[1]))),E[2]))),y(p(y(p(v(ce,Q),E[1]),y(p(v(ee,U),-F[1]),p(v(Z,O),z[1]))),-D[2]),y(p(y(p(v(ae,q),E[1]),y(p(v(ee,U),-D[1]),p(v(j,P),z[1]))),F[2]),p(y(p(v(ie,G),E[1]),y(p(v(Z,O),-D[1]),p(v(j,P),F[1]))),-z[2]))))),Y=y(y(y(p(y(p(v(Ee,Me),F[1]),y(p(v(Le,re),-z[1]),p(v(ce,Q),I[1]))),E[2]),p(y(p(v(Ee,Me),E[1]),y(p(v(Se,V),-z[1]),p(v(ee,U),I[1]))),-F[2])),y(p(y(p(v(Le,re),E[1]),y(p(v(Se,V),-F[1]),p(v(Z,O),I[1]))),z[2]),p(y(p(v(ce,Q),E[1]),y(p(v(ee,U),-F[1]),p(v(Z,O),z[1]))),-I[2]))),y(y(p(y(p(v(Le,re),D[1]),y(p(v(ge,J),-F[1]),p(v(ie,G),I[1]))),E[2]),p(y(p(v(Le,re),E[1]),y(p(v(Se,V),-F[1]),p(v(Z,O),I[1]))),-D[2])),y(p(y(p(v(ge,J),E[1]),y(p(v(Se,V),-D[1]),p(v(j,P),I[1]))),F[2]),p(y(p(v(ie,G),E[1]),y(p(v(Z,O),-D[1]),p(v(j,P),F[1]))),-I[2])))),$=v(le,Y);return $[$.length-1]}return R}function S(y,v,A,p){function R(E,D,F,z,I,L){var P=y(y(A(E[0],E[0]),A(E[1],E[1])),y(A(E[2],E[2]),A(E[3],E[3]))),O=p(P,D[0]),U=p(P,F[0]),V=p(P,z[0]),K=p(P,I[0]),j=p(P,L[0]),G=y(y(A(D[0],D[0]),A(D[1],D[1])),y(A(D[2],D[2]),A(D[3],D[3]))),q=p(G,E[0]),J=p(G,F[0]),te=p(G,z[0]),Z=p(G,I[0]),ie=p(G,L[0]),Q=y(y(A(F[0],F[0]),A(F[1],F[1])),y(A(F[2],F[2]),A(F[3],F[3]))),re=p(Q,E[0]),se=p(Q,D[0]),ee=p(Q,z[0]),ae=p(Q,I[0]),ce=p(Q,L[0]),Me=y(y(A(z[0],z[0]),A(z[1],z[1])),y(A(z[2],z[2]),A(z[3],z[3]))),ke=p(Me,E[0]),Se=p(Me,D[0]),ge=p(Me,F[0]),Le=p(Me,I[0]),Ee=p(Me,L[0]),le=y(y(A(I[0],I[0]),A(I[1],I[1])),y(A(I[2],I[2]),A(I[3],I[3]))),Y=p(le,E[0]),$=p(le,D[0]),pe=p(le,F[0]),oe=p(le,z[0]),ve=p(le,L[0]),he=y(y(A(L[0],L[0]),A(L[1],L[1])),y(A(L[2],L[2]),A(L[3],L[3]))),me=p(he,E[0]),be=p(he,D[0]),ye=p(he,F[0]),de=p(he,z[0]),_e=p(he,I[0]),Ae=y(y(y(p(y(y(p(y(p(v(_e,ve),z[1]),y(p(v(de,Ee),-I[1]),p(v(oe,Le),L[1]))),F[2]),p(y(p(v(_e,ve),F[1]),y(p(v(ye,ce),-I[1]),p(v(pe,ae),L[1]))),-z[2])),y(p(y(p(v(de,Ee),F[1]),y(p(v(ye,ce),-z[1]),p(v(ge,ee),L[1]))),I[2]),p(y(p(v(oe,Le),F[1]),y(p(v(pe,ae),-z[1]),p(v(ge,ee),I[1]))),-L[2]))),D[3]),y(p(y(y(p(y(p(v(_e,ve),z[1]),y(p(v(de,Ee),-I[1]),p(v(oe,Le),L[1]))),D[2]),p(y(p(v(_e,ve),D[1]),y(p(v(be,ie),-I[1]),p(v($,Z),L[1]))),-z[2])),y(p(y(p(v(de,Ee),D[1]),y(p(v(be,ie),-z[1]),p(v(Se,te),L[1]))),I[2]),p(y(p(v(oe,Le),D[1]),y(p(v($,Z),-z[1]),p(v(Se,te),I[1]))),-L[2]))),-F[3]),p(y(y(p(y(p(v(_e,ve),F[1]),y(p(v(ye,ce),-I[1]),p(v(pe,ae),L[1]))),D[2]),p(y(p(v(_e,ve),D[1]),y(p(v(be,ie),-I[1]),p(v($,Z),L[1]))),-F[2])),y(p(y(p(v(ye,ce),D[1]),y(p(v(be,ie),-F[1]),p(v(se,J),L[1]))),I[2]),p(y(p(v(pe,ae),D[1]),y(p(v($,Z),-F[1]),p(v(se,J),I[1]))),-L[2]))),z[3]))),y(y(p(y(y(p(y(p(v(de,Ee),F[1]),y(p(v(ye,ce),-z[1]),p(v(ge,ee),L[1]))),D[2]),p(y(p(v(de,Ee),D[1]),y(p(v(be,ie),-z[1]),p(v(Se,te),L[1]))),-F[2])),y(p(y(p(v(ye,ce),D[1]),y(p(v(be,ie),-F[1]),p(v(se,J),L[1]))),z[2]),p(y(p(v(ge,ee),D[1]),y(p(v(Se,te),-F[1]),p(v(se,J),z[1]))),-L[2]))),-I[3]),p(y(y(p(y(p(v(oe,Le),F[1]),y(p(v(pe,ae),-z[1]),p(v(ge,ee),I[1]))),D[2]),p(y(p(v(oe,Le),D[1]),y(p(v($,Z),-z[1]),p(v(Se,te),I[1]))),-F[2])),y(p(y(p(v(pe,ae),D[1]),y(p(v($,Z),-F[1]),p(v(se,J),I[1]))),z[2]),p(y(p(v(ge,ee),D[1]),y(p(v(Se,te),-F[1]),p(v(se,J),z[1]))),-I[2]))),L[3])),y(p(y(y(p(y(p(v(_e,ve),z[1]),y(p(v(de,Ee),-I[1]),p(v(oe,Le),L[1]))),D[2]),p(y(p(v(_e,ve),D[1]),y(p(v(be,ie),-I[1]),p(v($,Z),L[1]))),-z[2])),y(p(y(p(v(de,Ee),D[1]),y(p(v(be,ie),-z[1]),p(v(Se,te),L[1]))),I[2]),p(y(p(v(oe,Le),D[1]),y(p(v($,Z),-z[1]),p(v(Se,te),I[1]))),-L[2]))),E[3]),p(y(y(p(y(p(v(_e,ve),z[1]),y(p(v(de,Ee),-I[1]),p(v(oe,Le),L[1]))),E[2]),p(y(p(v(_e,ve),E[1]),y(p(v(me,j),-I[1]),p(v(Y,K),L[1]))),-z[2])),y(p(y(p(v(de,Ee),E[1]),y(p(v(me,j),-z[1]),p(v(ke,V),L[1]))),I[2]),p(y(p(v(oe,Le),E[1]),y(p(v(Y,K),-z[1]),p(v(ke,V),I[1]))),-L[2]))),-D[3])))),y(y(y(p(y(y(p(y(p(v(_e,ve),D[1]),y(p(v(be,ie),-I[1]),p(v($,Z),L[1]))),E[2]),p(y(p(v(_e,ve),E[1]),y(p(v(me,j),-I[1]),p(v(Y,K),L[1]))),-D[2])),y(p(y(p(v(be,ie),E[1]),y(p(v(me,j),-D[1]),p(v(q,O),L[1]))),I[2]),p(y(p(v($,Z),E[1]),y(p(v(Y,K),-D[1]),p(v(q,O),I[1]))),-L[2]))),z[3]),p(y(y(p(y(p(v(de,Ee),D[1]),y(p(v(be,ie),-z[1]),p(v(Se,te),L[1]))),E[2]),p(y(p(v(de,Ee),E[1]),y(p(v(me,j),-z[1]),p(v(ke,V),L[1]))),-D[2])),y(p(y(p(v(be,ie),E[1]),y(p(v(me,j),-D[1]),p(v(q,O),L[1]))),z[2]),p(y(p(v(Se,te),E[1]),y(p(v(ke,V),-D[1]),p(v(q,O),z[1]))),-L[2]))),-I[3])),y(p(y(y(p(y(p(v(oe,Le),D[1]),y(p(v($,Z),-z[1]),p(v(Se,te),I[1]))),E[2]),p(y(p(v(oe,Le),E[1]),y(p(v(Y,K),-z[1]),p(v(ke,V),I[1]))),-D[2])),y(p(y(p(v($,Z),E[1]),y(p(v(Y,K),-D[1]),p(v(q,O),I[1]))),z[2]),p(y(p(v(Se,te),E[1]),y(p(v(ke,V),-D[1]),p(v(q,O),z[1]))),-I[2]))),L[3]),p(y(y(p(y(p(v(de,Ee),F[1]),y(p(v(ye,ce),-z[1]),p(v(ge,ee),L[1]))),D[2]),p(y(p(v(de,Ee),D[1]),y(p(v(be,ie),-z[1]),p(v(Se,te),L[1]))),-F[2])),y(p(y(p(v(ye,ce),D[1]),y(p(v(be,ie),-F[1]),p(v(se,J),L[1]))),z[2]),p(y(p(v(ge,ee),D[1]),y(p(v(Se,te),-F[1]),p(v(se,J),z[1]))),-L[2]))),E[3]))),y(y(p(y(y(p(y(p(v(de,Ee),F[1]),y(p(v(ye,ce),-z[1]),p(v(ge,ee),L[1]))),E[2]),p(y(p(v(de,Ee),E[1]),y(p(v(me,j),-z[1]),p(v(ke,V),L[1]))),-F[2])),y(p(y(p(v(ye,ce),E[1]),y(p(v(me,j),-F[1]),p(v(re,U),L[1]))),z[2]),p(y(p(v(ge,ee),E[1]),y(p(v(ke,V),-F[1]),p(v(re,U),z[1]))),-L[2]))),-D[3]),p(y(y(p(y(p(v(de,Ee),D[1]),y(p(v(be,ie),-z[1]),p(v(Se,te),L[1]))),E[2]),p(y(p(v(de,Ee),E[1]),y(p(v(me,j),-z[1]),p(v(ke,V),L[1]))),-D[2])),y(p(y(p(v(be,ie),E[1]),y(p(v(me,j),-D[1]),p(v(q,O),L[1]))),z[2]),p(y(p(v(Se,te),E[1]),y(p(v(ke,V),-D[1]),p(v(q,O),z[1]))),-L[2]))),F[3])),y(p(y(y(p(y(p(v(ye,ce),D[1]),y(p(v(be,ie),-F[1]),p(v(se,J),L[1]))),E[2]),p(y(p(v(ye,ce),E[1]),y(p(v(me,j),-F[1]),p(v(re,U),L[1]))),-D[2])),y(p(y(p(v(be,ie),E[1]),y(p(v(me,j),-D[1]),p(v(q,O),L[1]))),F[2]),p(y(p(v(se,J),E[1]),y(p(v(re,U),-D[1]),p(v(q,O),F[1]))),-L[2]))),-z[3]),p(y(y(p(y(p(v(ge,ee),D[1]),y(p(v(Se,te),-F[1]),p(v(se,J),z[1]))),E[2]),p(y(p(v(ge,ee),E[1]),y(p(v(ke,V),-F[1]),p(v(re,U),z[1]))),-D[2])),y(p(y(p(v(Se,te),E[1]),y(p(v(ke,V),-D[1]),p(v(q,O),z[1]))),F[2]),p(y(p(v(se,J),E[1]),y(p(v(re,U),-D[1]),p(v(q,O),F[1]))),-z[2]))),L[3]))))),Ie=y(y(y(p(y(y(p(y(p(v(_e,ve),z[1]),y(p(v(de,Ee),-I[1]),p(v(oe,Le),L[1]))),F[2]),p(y(p(v(_e,ve),F[1]),y(p(v(ye,ce),-I[1]),p(v(pe,ae),L[1]))),-z[2])),y(p(y(p(v(de,Ee),F[1]),y(p(v(ye,ce),-z[1]),p(v(ge,ee),L[1]))),I[2]),p(y(p(v(oe,Le),F[1]),y(p(v(pe,ae),-z[1]),p(v(ge,ee),I[1]))),-L[2]))),E[3]),y(p(y(y(p(y(p(v(_e,ve),z[1]),y(p(v(de,Ee),-I[1]),p(v(oe,Le),L[1]))),E[2]),p(y(p(v(_e,ve),E[1]),y(p(v(me,j),-I[1]),p(v(Y,K),L[1]))),-z[2])),y(p(y(p(v(de,Ee),E[1]),y(p(v(me,j),-z[1]),p(v(ke,V),L[1]))),I[2]),p(y(p(v(oe,Le),E[1]),y(p(v(Y,K),-z[1]),p(v(ke,V),I[1]))),-L[2]))),-F[3]),p(y(y(p(y(p(v(_e,ve),F[1]),y(p(v(ye,ce),-I[1]),p(v(pe,ae),L[1]))),E[2]),p(y(p(v(_e,ve),E[1]),y(p(v(me,j),-I[1]),p(v(Y,K),L[1]))),-F[2])),y(p(y(p(v(ye,ce),E[1]),y(p(v(me,j),-F[1]),p(v(re,U),L[1]))),I[2]),p(y(p(v(pe,ae),E[1]),y(p(v(Y,K),-F[1]),p(v(re,U),I[1]))),-L[2]))),z[3]))),y(y(p(y(y(p(y(p(v(de,Ee),F[1]),y(p(v(ye,ce),-z[1]),p(v(ge,ee),L[1]))),E[2]),p(y(p(v(de,Ee),E[1]),y(p(v(me,j),-z[1]),p(v(ke,V),L[1]))),-F[2])),y(p(y(p(v(ye,ce),E[1]),y(p(v(me,j),-F[1]),p(v(re,U),L[1]))),z[2]),p(y(p(v(ge,ee),E[1]),y(p(v(ke,V),-F[1]),p(v(re,U),z[1]))),-L[2]))),-I[3]),p(y(y(p(y(p(v(oe,Le),F[1]),y(p(v(pe,ae),-z[1]),p(v(ge,ee),I[1]))),E[2]),p(y(p(v(oe,Le),E[1]),y(p(v(Y,K),-z[1]),p(v(ke,V),I[1]))),-F[2])),y(p(y(p(v(pe,ae),E[1]),y(p(v(Y,K),-F[1]),p(v(re,U),I[1]))),z[2]),p(y(p(v(ge,ee),E[1]),y(p(v(ke,V),-F[1]),p(v(re,U),z[1]))),-I[2]))),L[3])),y(p(y(y(p(y(p(v(_e,ve),F[1]),y(p(v(ye,ce),-I[1]),p(v(pe,ae),L[1]))),D[2]),p(y(p(v(_e,ve),D[1]),y(p(v(be,ie),-I[1]),p(v($,Z),L[1]))),-F[2])),y(p(y(p(v(ye,ce),D[1]),y(p(v(be,ie),-F[1]),p(v(se,J),L[1]))),I[2]),p(y(p(v(pe,ae),D[1]),y(p(v($,Z),-F[1]),p(v(se,J),I[1]))),-L[2]))),E[3]),p(y(y(p(y(p(v(_e,ve),F[1]),y(p(v(ye,ce),-I[1]),p(v(pe,ae),L[1]))),E[2]),p(y(p(v(_e,ve),E[1]),y(p(v(me,j),-I[1]),p(v(Y,K),L[1]))),-F[2])),y(p(y(p(v(ye,ce),E[1]),y(p(v(me,j),-F[1]),p(v(re,U),L[1]))),I[2]),p(y(p(v(pe,ae),E[1]),y(p(v(Y,K),-F[1]),p(v(re,U),I[1]))),-L[2]))),-D[3])))),y(y(y(p(y(y(p(y(p(v(_e,ve),D[1]),y(p(v(be,ie),-I[1]),p(v($,Z),L[1]))),E[2]),p(y(p(v(_e,ve),E[1]),y(p(v(me,j),-I[1]),p(v(Y,K),L[1]))),-D[2])),y(p(y(p(v(be,ie),E[1]),y(p(v(me,j),-D[1]),p(v(q,O),L[1]))),I[2]),p(y(p(v($,Z),E[1]),y(p(v(Y,K),-D[1]),p(v(q,O),I[1]))),-L[2]))),F[3]),p(y(y(p(y(p(v(ye,ce),D[1]),y(p(v(be,ie),-F[1]),p(v(se,J),L[1]))),E[2]),p(y(p(v(ye,ce),E[1]),y(p(v(me,j),-F[1]),p(v(re,U),L[1]))),-D[2])),y(p(y(p(v(be,ie),E[1]),y(p(v(me,j),-D[1]),p(v(q,O),L[1]))),F[2]),p(y(p(v(se,J),E[1]),y(p(v(re,U),-D[1]),p(v(q,O),F[1]))),-L[2]))),-I[3])),y(p(y(y(p(y(p(v(pe,ae),D[1]),y(p(v($,Z),-F[1]),p(v(se,J),I[1]))),E[2]),p(y(p(v(pe,ae),E[1]),y(p(v(Y,K),-F[1]),p(v(re,U),I[1]))),-D[2])),y(p(y(p(v($,Z),E[1]),y(p(v(Y,K),-D[1]),p(v(q,O),I[1]))),F[2]),p(y(p(v(se,J),E[1]),y(p(v(re,U),-D[1]),p(v(q,O),F[1]))),-I[2]))),L[3]),p(y(y(p(y(p(v(oe,Le),F[1]),y(p(v(pe,ae),-z[1]),p(v(ge,ee),I[1]))),D[2]),p(y(p(v(oe,Le),D[1]),y(p(v($,Z),-z[1]),p(v(Se,te),I[1]))),-F[2])),y(p(y(p(v(pe,ae),D[1]),y(p(v($,Z),-F[1]),p(v(se,J),I[1]))),z[2]),p(y(p(v(ge,ee),D[1]),y(p(v(Se,te),-F[1]),p(v(se,J),z[1]))),-I[2]))),E[3]))),y(y(p(y(y(p(y(p(v(oe,Le),F[1]),y(p(v(pe,ae),-z[1]),p(v(ge,ee),I[1]))),E[2]),p(y(p(v(oe,Le),E[1]),y(p(v(Y,K),-z[1]),p(v(ke,V),I[1]))),-F[2])),y(p(y(p(v(pe,ae),E[1]),y(p(v(Y,K),-F[1]),p(v(re,U),I[1]))),z[2]),p(y(p(v(ge,ee),E[1]),y(p(v(ke,V),-F[1]),p(v(re,U),z[1]))),-I[2]))),-D[3]),p(y(y(p(y(p(v(oe,Le),D[1]),y(p(v($,Z),-z[1]),p(v(Se,te),I[1]))),E[2]),p(y(p(v(oe,Le),E[1]),y(p(v(Y,K),-z[1]),p(v(ke,V),I[1]))),-D[2])),y(p(y(p(v($,Z),E[1]),y(p(v(Y,K),-D[1]),p(v(q,O),I[1]))),z[2]),p(y(p(v(Se,te),E[1]),y(p(v(ke,V),-D[1]),p(v(q,O),z[1]))),-I[2]))),F[3])),y(p(y(y(p(y(p(v(pe,ae),D[1]),y(p(v($,Z),-F[1]),p(v(se,J),I[1]))),E[2]),p(y(p(v(pe,ae),E[1]),y(p(v(Y,K),-F[1]),p(v(re,U),I[1]))),-D[2])),y(p(y(p(v($,Z),E[1]),y(p(v(Y,K),-D[1]),p(v(q,O),I[1]))),F[2]),p(y(p(v(se,J),E[1]),y(p(v(re,U),-D[1]),p(v(q,O),F[1]))),-I[2]))),-z[3]),p(y(y(p(y(p(v(ge,ee),D[1]),y(p(v(Se,te),-F[1]),p(v(se,J),z[1]))),E[2]),p(y(p(v(ge,ee),E[1]),y(p(v(ke,V),-F[1]),p(v(re,U),z[1]))),-D[2])),y(p(y(p(v(Se,te),E[1]),y(p(v(ke,V),-D[1]),p(v(q,O),z[1]))),F[2]),p(y(p(v(se,J),E[1]),y(p(v(re,U),-D[1]),p(v(q,O),F[1]))),-z[2]))),I[3]))))),Pe=v(Ae,Ie);return Pe[Pe.length-1]}return R}var b=[x,g,w];function M(y){var v=b[y.length];return v||(v=b[y.length]=d(y.length)),v.apply(void 0,y)}function h(y,v,A,p,R,E,D,F){function z(I,L,P,O,U,V){switch(arguments.length){case 0:case 1:return 0;case 2:return p(I,L);case 3:return R(I,L,P);case 4:return E(I,L,P,O);case 5:return D(I,L,P,O,U);case 6:return F(I,L,P,O,U,V)}for(var K=new Array(arguments.length),j=0;j<arguments.length;++j)K[j]=arguments[j];return y(K)}return z}function _(){for(;b.length<=c;)b.push(d(b.length));a.exports=h.apply(void 0,[M].concat(b));for(var y=0;y<=c;++y)a.exports[y]=b[y]}_()}),727:(function(a,o,i){"use strict";var l=i(2962),u=6;function s(b){var M=b===2?d:b===3?x:b===4?g:b===5?w:T;return b<6?M(l[b]):M(l)}function f(){return[[0]]}function c(b,M){return[[M[0]],[b[0][0]]]}function d(b){return function(h,_){return[b([[+_[0],+h[0][1]],[+_[1],+h[1][1]]]),b([[+h[0][0],+_[0]],[+h[1][0],+_[1]]]),b(h)]}}function x(b){return function(h,_){return[b([[+_[0],+h[0][1],+h[0][2]],[+_[1],+h[1][1],+h[1][2]],[+_[2],+h[2][1],+h[2][2]]]),b([[+h[0][0],+_[0],+h[0][2]],[+h[1][0],+_[1],+h[1][2]],[+h[2][0],+_[2],+h[2][2]]]),b([[+h[0][0],+h[0][1],+_[0]],[+h[1][0],+h[1][1],+_[1]],[+h[2][0],+h[2][1],+_[2]]]),b(h)]}}function g(b){return function(h,_){return[b([[+_[0],+h[0][1],+h[0][2],+h[0][3]],[+_[1],+h[1][1],+h[1][2],+h[1][3]],[+_[2],+h[2][1],+h[2][2],+h[2][3]],[+_[3],+h[3][1],+h[3][2],+h[3][3]]]),b([[+h[0][0],+_[0],+h[0][2],+h[0][3]],[+h[1][0],+_[1],+h[1][2],+h[1][3]],[+h[2][0],+_[2],+h[2][2],+h[2][3]],[+h[3][0],+_[3],+h[3][2],+h[3][3]]]),b([[+h[0][0],+h[0][1],+_[0],+h[0][3]],[+h[1][0],+h[1][1],+_[1],+h[1][3]],[+h[2][0],+h[2][1],+_[2],+h[2][3]],[+h[3][0],+h[3][1],+_[3],+h[3][3]]]),b([[+h[0][0],+h[0][1],+h[0][2],+_[0]],[+h[1][0],+h[1][1],+h[1][2],+_[1]],[+h[2][0],+h[2][1],+h[2][2],+_[2]],[+h[3][0],+h[3][1],+h[3][2],+_[3]]]),b(h)]}}function w(b){return function(h,_){return[b([[+_[0],+h[0][1],+h[0][2],+h[0][3],+h[0][4]],[+_[1],+h[1][1],+h[1][2],+h[1][3],+h[1][4]],[+_[2],+h[2][1],+h[2][2],+h[2][3],+h[2][4]],[+_[3],+h[3][1],+h[3][2],+h[3][3],+h[3][4]],[+_[4],+h[4][1],+h[4][2],+h[4][3],+h[4][4]]]),b([[+h[0][0],+_[0],+h[0][2],+h[0][3],+h[0][4]],[+h[1][0],+_[1],+h[1][2],+h[1][3],+h[1][4]],[+h[2][0],+_[2],+h[2][2],+h[2][3],+h[2][4]],[+h[3][0],+_[3],+h[3][2],+h[3][3],+h[3][4]],[+h[4][0],+_[4],+h[4][2],+h[4][3],+h[4][4]]]),b([[+h[0][0],+h[0][1],+_[0],+h[0][3],+h[0][4]],[+h[1][0],+h[1][1],+_[1],+h[1][3],+h[1][4]],[+h[2][0],+h[2][1],+_[2],+h[2][3],+h[2][4]],[+h[3][0],+h[3][1],+_[3],+h[3][3],+h[3][4]],[+h[4][0],+h[4][1],+_[4],+h[4][3],+h[4][4]]]),b([[+h[0][0],+h[0][1],+h[0][2],+_[0],+h[0][4]],[+h[1][0],+h[1][1],+h[1][2],+_[1],+h[1][4]],[+h[2][0],+h[2][1],+h[2][2],+_[2],+h[2][4]],[+h[3][0],+h[3][1],+h[3][2],+_[3],+h[3][4]],[+h[4][0],+h[4][1],+h[4][2],+_[4],+h[4][4]]]),b([[+h[0][0],+h[0][1],+h[0][2],+h[0][3],+_[0]],[+h[1][0],+h[1][1],+h[1][2],+h[1][3],+_[1]],[+h[2][0],+h[2][1],+h[2][2],+h[2][3],+_[2]],[+h[3][0],+h[3][1],+h[3][2],+h[3][3],+_[3]],[+h[4][0],+h[4][1],+h[4][2],+h[4][3],+_[4]]]),b(h)]}}function T(b){return function(h,_){return[b([[+_[0],+h[0][1],+h[0][2],+h[0][3],+h[0][4],+h[0][5]],[+_[1],+h[1][1],+h[1][2],+h[1][3],+h[1][4],+h[1][5]],[+_[2],+h[2][1],+h[2][2],+h[2][3],+h[2][4],+h[2][5]],[+_[3],+h[3][1],+h[3][2],+h[3][3],+h[3][4],+h[3][5]],[+_[4],+h[4][1],+h[4][2],+h[4][3],+h[4][4],+h[4][5]],[+_[5],+h[5][1],+h[5][2],+h[5][3],+h[5][4],+h[5][5]]]),b([[+h[0][0],+_[0],+h[0][2],+h[0][3],+h[0][4],+h[0][5]],[+h[1][0],+_[1],+h[1][2],+h[1][3],+h[1][4],+h[1][5]],[+h[2][0],+_[2],+h[2][2],+h[2][3],+h[2][4],+h[2][5]],[+h[3][0],+_[3],+h[3][2],+h[3][3],+h[3][4],+h[3][5]],[+h[4][0],+_[4],+h[4][2],+h[4][3],+h[4][4],+h[4][5]],[+h[5][0],+_[5],+h[5][2],+h[5][3],+h[5][4],+h[5][5]]]),b([[+h[0][0],+h[0][1],+_[0],+h[0][3],+h[0][4],+h[0][5]],[+h[1][0],+h[1][1],+_[1],+h[1][3],+h[1][4],+h[1][5]],[+h[2][0],+h[2][1],+_[2],+h[2][3],+h[2][4],+h[2][5]],[+h[3][0],+h[3][1],+_[3],+h[3][3],+h[3][4],+h[3][5]],[+h[4][0],+h[4][1],+_[4],+h[4][3],+h[4][4],+h[4][5]],[+h[5][0],+h[5][1],+_[5],+h[5][3],+h[5][4],+h[5][5]]]),b([[+h[0][0],+h[0][1],+h[0][2],+_[0],+h[0][4],+h[0][5]],[+h[1][0],+h[1][1],+h[1][2],+_[1],+h[1][4],+h[1][5]],[+h[2][0],+h[2][1],+h[2][2],+_[2],+h[2][4],+h[2][5]],[+h[3][0],+h[3][1],+h[3][2],+_[3],+h[3][4],+h[3][5]],[+h[4][0],+h[4][1],+h[4][2],+_[4],+h[4][4],+h[4][5]],[+h[5][0],+h[5][1],+h[5][2],+_[5],+h[5][4],+h[5][5]]]),b([[+h[0][0],+h[0][1],+h[0][2],+h[0][3],+_[0],+h[0][5]],[+h[1][0],+h[1][1],+h[1][2],+h[1][3],+_[1],+h[1][5]],[+h[2][0],+h[2][1],+h[2][2],+h[2][3],+_[2],+h[2][5]],[+h[3][0],+h[3][1],+h[3][2],+h[3][3],+_[3],+h[3][5]],[+h[4][0],+h[4][1],+h[4][2],+h[4][3],+_[4],+h[4][5]],[+h[5][0],+h[5][1],+h[5][2],+h[5][3],+_[5],+h[5][5]]]),b([[+h[0][0],+h[0][1],+h[0][2],+h[0][3],+h[0][4],+_[0]],[+h[1][0],+h[1][1],+h[1][2],+h[1][3],+h[1][4],+_[1]],[+h[2][0],+h[2][1],+h[2][2],+h[2][3],+h[2][4],+_[2]],[+h[3][0],+h[3][1],+h[3][2],+h[3][3],+h[3][4],+_[3]],[+h[4][0],+h[4][1],+h[4][2],+h[4][3],+h[4][4],+_[4]],[+h[5][0],+h[5][1],+h[5][2],+h[5][3],+h[5][4],+_[5]]]),b(h)]}}var m=[f,c];function k(b,M,h,_,y,v,A,p){return function(E,D){switch(E.length){case 0:return b(E,D);case 1:return M(E,D);case 2:return h(E,D);case 3:return _(E,D);case 4:return y(E,D);case 5:return v(E,D)}var F=A[E.length];return F||(F=A[E.length]=p(E.length)),F(E,D)}}function S(){for(;m.length<u;)m.push(s(m.length));a.exports=k.apply(void 0,m.concat([m,s]));for(var b=0;b<u;++b)a.exports[b]=m[b]}S()}),3250:(function(a,o,i){"use strict";var l=i(5250),u=i(8210),s=i(3012),f=i(8545),c=5,d=11102230246251565e-32,x=(3+16*d)*d,g=(7+56*d)*d;function w(v,A,p,R){return function(D,F,z){var I=v(v(A(F[1],z[0]),A(-z[1],F[0])),v(A(D[1],F[0]),A(-F[1],D[0]))),L=v(A(D[1],z[0]),A(-z[1],D[0])),P=R(I,L);return P[P.length-1]}}function T(v,A,p,R){return function(D,F,z,I){var L=v(v(p(v(A(z[1],I[0]),A(-I[1],z[0])),F[2]),v(p(v(A(F[1],I[0]),A(-I[1],F[0])),-z[2]),p(v(A(F[1],z[0]),A(-z[1],F[0])),I[2]))),v(p(v(A(F[1],I[0]),A(-I[1],F[0])),D[2]),v(p(v(A(D[1],I[0]),A(-I[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),I[2])))),P=v(v(p(v(A(z[1],I[0]),A(-I[1],z[0])),D[2]),v(p(v(A(D[1],I[0]),A(-I[1],D[0])),-z[2]),p(v(A(D[1],z[0]),A(-z[1],D[0])),I[2]))),v(p(v(A(F[1],z[0]),A(-z[1],F[0])),D[2]),v(p(v(A(D[1],z[0]),A(-z[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),z[2])))),O=R(L,P);return O[O.length-1]}}function m(v,A,p,R){return function(D,F,z,I,L){var P=v(v(v(p(v(p(v(A(I[1],L[0]),A(-L[1],I[0])),z[2]),v(p(v(A(z[1],L[0]),A(-L[1],z[0])),-I[2]),p(v(A(z[1],I[0]),A(-I[1],z[0])),L[2]))),F[3]),v(p(v(p(v(A(I[1],L[0]),A(-L[1],I[0])),F[2]),v(p(v(A(F[1],L[0]),A(-L[1],F[0])),-I[2]),p(v(A(F[1],I[0]),A(-I[1],F[0])),L[2]))),-z[3]),p(v(p(v(A(z[1],L[0]),A(-L[1],z[0])),F[2]),v(p(v(A(F[1],L[0]),A(-L[1],F[0])),-z[2]),p(v(A(F[1],z[0]),A(-z[1],F[0])),L[2]))),I[3]))),v(p(v(p(v(A(z[1],I[0]),A(-I[1],z[0])),F[2]),v(p(v(A(F[1],I[0]),A(-I[1],F[0])),-z[2]),p(v(A(F[1],z[0]),A(-z[1],F[0])),I[2]))),-L[3]),v(p(v(p(v(A(I[1],L[0]),A(-L[1],I[0])),F[2]),v(p(v(A(F[1],L[0]),A(-L[1],F[0])),-I[2]),p(v(A(F[1],I[0]),A(-I[1],F[0])),L[2]))),D[3]),p(v(p(v(A(I[1],L[0]),A(-L[1],I[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-I[2]),p(v(A(D[1],I[0]),A(-I[1],D[0])),L[2]))),-F[3])))),v(v(p(v(p(v(A(F[1],L[0]),A(-L[1],F[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),L[2]))),I[3]),v(p(v(p(v(A(F[1],I[0]),A(-I[1],F[0])),D[2]),v(p(v(A(D[1],I[0]),A(-I[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),I[2]))),-L[3]),p(v(p(v(A(z[1],I[0]),A(-I[1],z[0])),F[2]),v(p(v(A(F[1],I[0]),A(-I[1],F[0])),-z[2]),p(v(A(F[1],z[0]),A(-z[1],F[0])),I[2]))),D[3]))),v(p(v(p(v(A(z[1],I[0]),A(-I[1],z[0])),D[2]),v(p(v(A(D[1],I[0]),A(-I[1],D[0])),-z[2]),p(v(A(D[1],z[0]),A(-z[1],D[0])),I[2]))),-F[3]),v(p(v(p(v(A(F[1],I[0]),A(-I[1],F[0])),D[2]),v(p(v(A(D[1],I[0]),A(-I[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),I[2]))),z[3]),p(v(p(v(A(F[1],z[0]),A(-z[1],F[0])),D[2]),v(p(v(A(D[1],z[0]),A(-z[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),z[2]))),-I[3]))))),O=v(v(v(p(v(p(v(A(I[1],L[0]),A(-L[1],I[0])),z[2]),v(p(v(A(z[1],L[0]),A(-L[1],z[0])),-I[2]),p(v(A(z[1],I[0]),A(-I[1],z[0])),L[2]))),D[3]),p(v(p(v(A(I[1],L[0]),A(-L[1],I[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-I[2]),p(v(A(D[1],I[0]),A(-I[1],D[0])),L[2]))),-z[3])),v(p(v(p(v(A(z[1],L[0]),A(-L[1],z[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-z[2]),p(v(A(D[1],z[0]),A(-z[1],D[0])),L[2]))),I[3]),p(v(p(v(A(z[1],I[0]),A(-I[1],z[0])),D[2]),v(p(v(A(D[1],I[0]),A(-I[1],D[0])),-z[2]),p(v(A(D[1],z[0]),A(-z[1],D[0])),I[2]))),-L[3]))),v(v(p(v(p(v(A(z[1],L[0]),A(-L[1],z[0])),F[2]),v(p(v(A(F[1],L[0]),A(-L[1],F[0])),-z[2]),p(v(A(F[1],z[0]),A(-z[1],F[0])),L[2]))),D[3]),p(v(p(v(A(z[1],L[0]),A(-L[1],z[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-z[2]),p(v(A(D[1],z[0]),A(-z[1],D[0])),L[2]))),-F[3])),v(p(v(p(v(A(F[1],L[0]),A(-L[1],F[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),L[2]))),z[3]),p(v(p(v(A(F[1],z[0]),A(-z[1],F[0])),D[2]),v(p(v(A(D[1],z[0]),A(-z[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),z[2]))),-L[3])))),U=R(P,O);return U[U.length-1]}}function k(v){var A=v===3?w:v===4?T:m;return A(u,l,s,f)}var S=k(3),b=k(4),M=[function(){return 0},function(){return 0},function(A,p){return p[0]-A[0]},function(A,p,R){var E=(A[1]-R[1])*(p[0]-R[0]),D=(A[0]-R[0])*(p[1]-R[1]),F=E-D,z;if(E>0){if(D<=0)return F;z=E+D}else if(E<0){if(D>=0)return F;z=-(E+D)}else return F;var I=x*z;return F>=I||F<=-I?F:S(A,p,R)},function(A,p,R,E){var D=A[0]-E[0],F=p[0]-E[0],z=R[0]-E[0],I=A[1]-E[1],L=p[1]-E[1],P=R[1]-E[1],O=A[2]-E[2],U=p[2]-E[2],V=R[2]-E[2],K=F*P,j=z*L,G=z*I,q=D*P,J=D*L,te=F*I,Z=O*(K-j)+U*(G-q)+V*(J-te),ie=(Math.abs(K)+Math.abs(j))*Math.abs(O)+(Math.abs(G)+Math.abs(q))*Math.abs(U)+(Math.abs(J)+Math.abs(te))*Math.abs(V),Q=g*ie;return Z>Q||-Z>Q?Z:b(A,p,R,E)}];function h(v){var A=M[v.length];return A||(A=M[v.length]=k(v.length)),A.apply(void 0,v)}function _(v,A,p,R,E,D,F){return function(I,L,P,O,U){switch(arguments.length){case 0:case 1:return 0;case 2:return R(I,L);case 3:return E(I,L,P);case 4:return D(I,L,P,O);case 5:return F(I,L,P,O,U)}for(var V=new Array(arguments.length),K=0;K<arguments.length;++K)V[K]=arguments[K];return v(V)}}function y(){for(;M.length<=c;)M.push(k(M.length));a.exports=_.apply(void 0,[h].concat(M));for(var v=0;v<=c;++v)a.exports[v]=M[v]}y()}),5382:(function(a,o,i){"use strict";var l=i(8210),u=i(3012);a.exports=s;function s(f,c){if(f.length===1)return u(c,f[0]);if(c.length===1)return u(f,c[0]);if(f.length===0||c.length===0)return[0];var d=[0];if(f.length<c.length)for(var x=0;x<f.length;++x)d=l(d,u(c,f[x]));else for(var x=0;x<c.length;++x)d=l(d,u(f,c[x]));return d}}),3012:(function(a,o,i){"use strict";var l=i(5250),u=i(9362);a.exports=s;function s(f,c){var d=f.length;if(d===1){var x=l(f[0],c);return x[0]?x:[x[1]]}var g=new Array(2*d),w=[.1,.1],T=[.1,.1],m=0;l(f[0],c,w),w[0]&&(g[m++]=w[0]);for(var k=1;k<d;++k){l(f[k],c,T);var S=w[1];u(S,T[0],w),w[0]&&(g[m++]=w[0]);var b=T[1],M=w[1],h=b+M,_=h-b,y=M-_;w[1]=h,y&&(g[m++]=y)}return w[1]&&(g[m++]=w[1]),m===0&&(g[m++]=0),g.length=m,g}}),1125:(function(a,o,i){"use strict";a.exports=s;var l=i(3250)[3];function u(f,c,d,x){for(var g=0;g<2;++g){var w=f[g],T=c[g],m=Math.min(w,T),k=Math.max(w,T),S=d[g],b=x[g],M=Math.min(S,b),h=Math.max(S,b);if(h<m||k<M)return!1}return!0}function s(f,c,d,x){var g=l(f,d,x),w=l(c,d,x);if(g>0&&w>0||g<0&&w<0)return!1;var T=l(d,f,c),m=l(x,f,c);return T>0&&m>0||T<0&&m<0?!1:g===0&&w===0&&T===0&&m===0?u(f,c,d,x):!0}}),8545:(function(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,c=s-f,d=u-f,x=l-c,g=x+d;return g?[g,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],-u[0]);var c=s+f,d=new Array(c),x=0,g=0,w=0,T=Math.abs,m=l[g],k=T(m),S=-u[w],b=T(S),M,h;k<b?(h=m,g+=1,g<s&&(m=l[g],k=T(m))):(h=S,w+=1,w<f&&(S=-u[w],b=T(S))),g<s&&k<b||w>=f?(M=m,g+=1,g<s&&(m=l[g],k=T(m))):(M=S,w+=1,w<f&&(S=-u[w],b=T(S)));for(var _=M+h,y=_-M,v=h-y,A=v,p=_,R,E,D,F,z;g<s&&w<f;)k<b?(M=m,g+=1,g<s&&(m=l[g],k=T(m))):(M=S,w+=1,w<f&&(S=-u[w],b=T(S))),h=A,_=M+h,y=_-M,v=h-y,v&&(d[x++]=v),R=p+_,E=R-p,D=R-E,F=_-E,z=p-D,A=z+F,p=R;for(;g<s;)M=m,h=A,_=M+h,y=_-M,v=h-y,v&&(d[x++]=v),R=p+_,E=R-p,D=R-E,F=_-E,z=p-D,A=z+F,p=R,g+=1,g<s&&(m=l[g]);for(;w<f;)M=S,h=A,_=M+h,y=_-M,v=h-y,v&&(d[x++]=v),R=p+_,E=R-p,D=R-E,F=_-E,z=p-D,A=z+F,p=R,w+=1,w<f&&(S=-u[w]);return A&&(d[x++]=A),p&&(d[x++]=p),x||(d[x++]=0),d.length=x,d}}),8210:(function(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,c=s-f,d=u-f,x=l-c,g=x+d;return g?[g,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],u[0]);var c=s+f,d=new Array(c),x=0,g=0,w=0,T=Math.abs,m=l[g],k=T(m),S=u[w],b=T(S),M,h;k<b?(h=m,g+=1,g<s&&(m=l[g],k=T(m))):(h=S,w+=1,w<f&&(S=u[w],b=T(S))),g<s&&k<b||w>=f?(M=m,g+=1,g<s&&(m=l[g],k=T(m))):(M=S,w+=1,w<f&&(S=u[w],b=T(S)));for(var _=M+h,y=_-M,v=h-y,A=v,p=_,R,E,D,F,z;g<s&&w<f;)k<b?(M=m,g+=1,g<s&&(m=l[g],k=T(m))):(M=S,w+=1,w<f&&(S=u[w],b=T(S))),h=A,_=M+h,y=_-M,v=h-y,v&&(d[x++]=v),R=p+_,E=R-p,D=R-E,F=_-E,z=p-D,A=z+F,p=R;for(;g<s;)M=m,h=A,_=M+h,y=_-M,v=h-y,v&&(d[x++]=v),R=p+_,E=R-p,D=R-E,F=_-E,z=p-D,A=z+F,p=R,g+=1,g<s&&(m=l[g]);for(;w<f;)M=S,h=A,_=M+h,y=_-M,v=h-y,v&&(d[x++]=v),R=p+_,E=R-p,D=R-E,F=_-E,z=p-D,A=z+F,p=R,w+=1,w<f&&(S=u[w]);return A&&(d[x++]=A),p&&(d[x++]=p),x||(d[x++]=0),d.length=x,d}}),9127:(function(a,o,i){"use strict";a.exports=s;var l=i(6204),u=i(5771);function s(f){return u(l(f))}}),7765:(function(a,o,i){"use strict";a.exports=m;var l=i(9618),u=i(1888),s=i(446),f=i(1570);function c(k){for(var S=k.length,b=0,M=0;M<S;++M)b=Math.max(b,k[M].length)|0;return b-1}function d(k,S){for(var b=k.length,M=u.mallocUint8(b),h=0;h<b;++h)M[h]=k[h]<S|0;return M}function x(k,S){for(var b=k.length,M=S*(S+1)/2*b|0,h=u.mallocUint32(M*2),_=0,y=0;y<b;++y)for(var v=k[y],S=v.length,A=0;A<S;++A)for(var p=0;p<A;++p){var R=v[p],E=v[A];h[_++]=Math.min(R,E)|0,h[_++]=Math.max(R,E)|0}var D=_/2|0;s(l(h,[D,2]));for(var F=2,y=2;y<_;y+=2)h[y-2]===h[y]&&h[y-1]===h[y+1]||(h[F++]=h[y],h[F++]=h[y+1]);return l(h,[F/2|0,2])}function g(k,S,b,M){for(var h=k.data,_=k.shape[0],y=u.mallocDouble(_),v=0,A=0;A<_;++A){var p=h[2*A],R=h[2*A+1];if(b[p]!==b[R]){var E=S[p],D=S[R];h[2*v]=p,h[2*v+1]=R,y[v++]=(D-M)/(D-E)}}return k.shape[0]=v,l(y,[v])}function w(k,S){var b=u.mallocInt32(S*2),M=k.shape[0],h=k.data;b[0]=0;for(var _=0,y=0;y<M;++y){var v=h[2*y];if(v!==_){for(b[2*_+1]=y;++_<v;)b[2*_]=y,b[2*_+1]=y;b[2*_]=y}}for(b[2*_+1]=M;++_<S;)b[2*_]=b[2*_+1]=M;return b}function T(k){for(var S=k.shape[0]|0,b=k.data,M=new Array(S),h=0;h<S;++h)M[h]=[b[2*h],b[2*h+1]];return M}function m(k,S,b,M){b=b||0,typeof M=="undefined"&&(M=c(k));var h=k.length;if(h===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var _=d(S,+b),y=x(k,M),v=g(y,S,_,+b),A=w(y,S.length|0),p=f(M)(k,y.data,A,_),R=T(y),E=[].slice.call(v.data,0,v.shape[0]);return u.free(_),u.free(y.data),u.free(v.data),u.free(A),{cells:p,vertexIds:R,vertexWeights:E}}}),1570:(function(a){"use strict";a.exports=i;var o=[function(){function u(f,c,d,x){for(var g=Math.min(d,x)|0,w=Math.max(d,x)|0,T=f[2*g],m=f[2*g+1];T<m;){var k=T+m>>1,S=c[2*k+1];if(S===w)return k;w<S?m=k:T=k+1}return T}function s(f,c,d,x){for(var g=f.length,w=[],T=0;T<g;++T)var m=f[T],k=m.length;return w}return s},function(){function u(f,c,d,x){for(var g=Math.min(d,x)|0,w=Math.max(d,x)|0,T=f[2*g],m=f[2*g+1];T<m;){var k=T+m>>1,S=c[2*k+1];if(S===w)return k;w<S?m=k:T=k+1}return T}function s(f,c,d,x){for(var g=f.length,w=[],T=0;T<g;++T){var m=f[T],k=m.length;if(k===2){var S=(x[m[0]]<<0)+(x[m[1]]<<1);if(S===0||S===3)continue;switch(S){case 0:break;case 1:w.push([u(d,c,m[0],m[1])]);break;case 2:w.push([u(d,c,m[1],m[0])]);break;case 3:break}}}return w}return s},function(){function u(f,c,d,x){for(var g=Math.min(d,x)|0,w=Math.max(d,x)|0,T=f[2*g],m=f[2*g+1];T<m;){var k=T+m>>1,S=c[2*k+1];if(S===w)return k;w<S?m=k:T=k+1}return T}function s(f,c,d,x){for(var g=f.length,w=[],T=0;T<g;++T){var m=f[T],k=m.length;if(k===3){var S=(x[m[0]]<<0)+(x[m[1]]<<1)+(x[m[2]]<<2);if(S===0||S===7)continue;switch(S){case 0:break;case 1:w.push([u(d,c,m[0],m[2]),u(d,c,m[0],m[1])]);break;case 2:w.push([u(d,c,m[1],m[0]),u(d,c,m[1],m[2])]);break;case 3:w.push([u(d,c,m[0],m[2]),u(d,c,m[1],m[2])]);break;case 4:w.push([u(d,c,m[2],m[1]),u(d,c,m[2],m[0])]);break;case 5:w.push([u(d,c,m[2],m[1]),u(d,c,m[0],m[1])]);break;case 6:w.push([u(d,c,m[1],m[0]),u(d,c,m[2],m[0])]);break;case 7:break}}else if(k===2){var S=(x[m[0]]<<0)+(x[m[1]]<<1);if(S===0||S===3)continue;switch(S){case 0:break;case 1:w.push([u(d,c,m[0],m[1])]);break;case 2:w.push([u(d,c,m[1],m[0])]);break;case 3:break}}}return w}return s},function(){function u(f,c,d,x){for(var g=Math.min(d,x)|0,w=Math.max(d,x)|0,T=f[2*g],m=f[2*g+1];T<m;){var k=T+m>>1,S=c[2*k+1];if(S===w)return k;w<S?m=k:T=k+1}return T}function s(f,c,d,x){for(var g=f.length,w=[],T=0;T<g;++T){var m=f[T],k=m.length;if(k===4){var S=(x[m[0]]<<0)+(x[m[1]]<<1)+(x[m[2]]<<2)+(x[m[3]]<<3);if(S===0||S===15)continue;switch(S){case 0:break;case 1:w.push([u(d,c,m[0],m[1]),u(d,c,m[0],m[2]),u(d,c,m[0],m[3])]);break;case 2:w.push([u(d,c,m[1],m[2]),u(d,c,m[1],m[0]),u(d,c,m[1],m[3])]);break;case 3:w.push([u(d,c,m[1],m[2]),u(d,c,m[0],m[2]),u(d,c,m[0],m[3])],[u(d,c,m[1],m[3]),u(d,c,m[1],m[2]),u(d,c,m[0],m[3])]);break;case 4:w.push([u(d,c,m[2],m[0]),u(d,c,m[2],m[1]),u(d,c,m[2],m[3])]);break;case 5:w.push([u(d,c,m[0],m[1]),u(d,c,m[2],m[1]),u(d,c,m[0],m[3])],[u(d,c,m[2],m[1]),u(d,c,m[2],m[3]),u(d,c,m[0],m[3])]);break;case 6:w.push([u(d,c,m[2],m[0]),u(d,c,m[1],m[0]),u(d,c,m[1],m[3])],[u(d,c,m[2],m[3]),u(d,c,m[2],m[0]),u(d,c,m[1],m[3])]);break;case 7:w.push([u(d,c,m[0],m[3]),u(d,c,m[1],m[3]),u(d,c,m[2],m[3])]);break;case 8:w.push([u(d,c,m[3],m[1]),u(d,c,m[3],m[0]),u(d,c,m[3],m[2])]);break;case 9:w.push([u(d,c,m[3],m[1]),u(d,c,m[0],m[1]),u(d,c,m[0],m[2])],[u(d,c,m[3],m[2]),u(d,c,m[3],m[1]),u(d,c,m[0],m[2])]);break;case 10:w.push([u(d,c,m[1],m[0]),u(d,c,m[3],m[0]),u(d,c,m[1],m[2])],[u(d,c,m[3],m[0]),u(d,c,m[3],m[2]),u(d,c,m[1],m[2])]);break;case 11:w.push([u(d,c,m[1],m[2]),u(d,c,m[0],m[2]),u(d,c,m[3],m[2])]);break;case 12:w.push([u(d,c,m[3],m[0]),u(d,c,m[2],m[0]),u(d,c,m[2],m[1])],[u(d,c,m[3],m[1]),u(d,c,m[3],m[0]),u(d,c,m[2],m[1])]);break;case 13:w.push([u(d,c,m[0],m[1]),u(d,c,m[2],m[1]),u(d,c,m[3],m[1])]);break;case 14:w.push([u(d,c,m[2],m[0]),u(d,c,m[1],m[0]),u(d,c,m[3],m[0])]);break;case 15:break}}else if(k===3){var S=(x[m[0]]<<0)+(x[m[1]]<<1)+(x[m[2]]<<2);if(S===0||S===7)continue;switch(S){case 0:break;case 1:w.push([u(d,c,m[0],m[2]),u(d,c,m[0],m[1])]);break;case 2:w.push([u(d,c,m[1],m[0]),u(d,c,m[1],m[2])]);break;case 3:w.push([u(d,c,m[0],m[2]),u(d,c,m[1],m[2])]);break;case 4:w.push([u(d,c,m[2],m[1]),u(d,c,m[2],m[0])]);break;case 5:w.push([u(d,c,m[2],m[1]),u(d,c,m[0],m[1])]);break;case 6:w.push([u(d,c,m[1],m[0]),u(d,c,m[2],m[0])]);break;case 7:break}}else if(k===2){var S=(x[m[0]]<<0)+(x[m[1]]<<1);if(S===0||S===3)continue;switch(S){case 0:break;case 1:w.push([u(d,c,m[0],m[1])]);break;case 2:w.push([u(d,c,m[1],m[0])]);break;case 3:break}}}return w}return s}];function i(l){return o[l]()}}),6803:(function(a,o,i){"use strict";var l,u=i(8828),s=i(1755);function f(A){for(var p=0,R=Math.max,E=0,D=A.length;E<D;++E)p=R(p,A[E].length);return p-1}l=f;function c(A){for(var p=-1,R=Math.max,E=0,D=A.length;E<D;++E)for(var F=A[E],z=0,I=F.length;z<I;++z)p=R(p,F[z]);return p+1}l=c;function d(A){for(var p=new Array(A.length),R=0,E=A.length;R<E;++R)p[R]=A[R].slice(0);return p}l=d;function x(A,p){var R=A.length,E=A.length-p.length,D=Math.min;if(E)return E;switch(R){case 0:return 0;case 1:return A[0]-p[0];case 2:var P=A[0]+A[1]-p[0]-p[1];return P||D(A[0],A[1])-D(p[0],p[1]);case 3:var F=A[0]+A[1],z=p[0]+p[1];if(P=F+A[2]-(z+p[2]),P)return P;var I=D(A[0],A[1]),L=D(p[0],p[1]),P=D(I,A[2])-D(L,p[2]);return P||D(I+A[2],F)-D(L+p[2],z);default:var O=A.slice(0);O.sort();var U=p.slice(0);U.sort();for(var V=0;V<R;++V)if(E=O[V]-U[V],E)return E;return 0}}o.Fw=x;function g(A,p){return x(A[0],p[0])}function w(A,p){if(p){for(var R=A.length,E=new Array(R),D=0;D<R;++D)E[D]=[A[D],p[D]];E.sort(g);for(var D=0;D<R;++D)A[D]=E[D][0],p[D]=E[D][1];return A}else return A.sort(x),A}l=w;function T(A){if(A.length===0)return[];for(var p=1,R=A.length,E=1;E<R;++E){var D=A[E];if(x(D,A[E-1])){if(E===p){p++;continue}A[p++]=D}}return A.length=p,A}l=T;function m(A,p){for(var R=0,E=A.length-1,D=-1;R<=E;){var F=R+E>>1,z=x(A[F],p);z<=0?(z===0&&(D=F),R=F+1):z>0&&(E=F-1)}return D}l=m;function k(A,p){for(var R=new Array(A.length),E=0,D=R.length;E<D;++E)R[E]=[];for(var F=[],E=0,z=p.length;E<z;++E)for(var I=p[E],L=I.length,P=1,O=1<<L;P<O;++P){F.length=u.popCount(P);for(var U=0,V=0;V<L;++V)P&1<<V&&(F[U++]=I[V]);var K=m(A,F);if(!(K<0))for(;R[K++].push(E),!(K>=A.length||x(A[K],F)!==0););}return R}l=k;function S(A,p){if(!p)return k(T(M(A,0)),A,0);for(var R=new Array(p),E=0;E<p;++E)R[E]=[];for(var E=0,D=A.length;E<D;++E)for(var F=A[E],z=0,I=F.length;z<I;++z)R[F[z]].push(E);return R}l=S;function b(A){for(var p=[],R=0,E=A.length;R<E;++R)for(var D=A[R],F=D.length|0,z=1,I=1<<F;z<I;++z){for(var L=[],P=0;P<F;++P)z>>>P&1&&L.push(D[P]);p.push(L)}return w(p)}l=b;function M(A,p){if(p<0)return[];for(var R=[],E=(1<<p+1)-1,D=0;D<A.length;++D)for(var F=A[D],z=E;z<1<<F.length;z=u.nextCombination(z)){for(var I=new Array(p+1),L=0,P=0;P<F.length;++P)z&1<<P&&(I[L++]=F[P]);R.push(I)}return w(R)}l=M;function h(A){for(var p=[],R=0,E=A.length;R<E;++R)for(var D=A[R],F=0,z=D.length;F<z;++F){for(var I=new Array(D.length-1),L=0,P=0;L<z;++L)L!==F&&(I[P++]=D[L]);p.push(I)}return w(p)}l=h;function _(A,p){for(var R=new s(p),E=0;E<A.length;++E)for(var D=A[E],F=0;F<D.length;++F)for(var z=F+1;z<D.length;++z)R.link(D[F],D[z]);for(var I=[],L=R.ranks,E=0;E<L.length;++E)L[E]=-1;for(var E=0;E<A.length;++E){var P=R.find(A[E][0]);L[P]<0?(L[P]=I.length,I.push([A[E].slice(0)])):I[L[P]].push(A[E].slice(0))}return I}function y(A){for(var p=T(w(M(A,0))),R=new s(p.length),E=0;E<A.length;++E)for(var D=A[E],F=0;F<D.length;++F)for(var z=m(p,[D[F]]),I=F+1;I<D.length;++I)R.link(z,m(p,[D[I]]));for(var L=[],P=R.ranks,E=0;E<P.length;++E)P[E]=-1;for(var E=0;E<A.length;++E){var O=R.find(m(p,[A[E][0]]));P[O]<0?(P[O]=L.length,L.push([A[E].slice(0)])):L[P[O]].push(A[E].slice(0))}return L}function v(A,p){return p?_(A,p):y(A)}l=v}),3105:(function(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<<i-1,o.sign=function(s){return(s>0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s<f)},o.max=function(s,f){return s^(s^f)&-(s<f)},o.isPow2=function(s){return!(s&s-1)&&!!s},o.log2=function(s){var f,c;return f=(s>65535)<<4,s>>>=f,c=(s>255)<<3,s>>>=c,f|=c,c=(s>15)<<2,s>>>=c,f|=c,c=(s>3)<<1,s>>>=c,f|=c,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var c=f,d=f,x=7;for(c>>>=1;c;c>>>=1)d<<=1,d|=c&1,--x;s[f]=d<<x&255}})(u),o.reverse=function(s){return u[s&255]<<24|u[s>>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,c){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,s|c<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}}),2014:(function(a,o,i){"use strict";"use restrict";var l=i(3105),u=i(4623);function s(v){for(var A=0,p=Math.max,R=0,E=v.length;R<E;++R)A=p(A,v[R].length);return A-1}o.dimension=s;function f(v){for(var A=-1,p=Math.max,R=0,E=v.length;R<E;++R)for(var D=v[R],F=0,z=D.length;F<z;++F)A=p(A,D[F]);return A+1}o.countVertices=f;function c(v){for(var A=new Array(v.length),p=0,R=v.length;p<R;++p)A[p]=v[p].slice(0);return A}o.cloneCells=c;function d(v,A){var p=v.length,R=v.length-A.length,E=Math.min;if(R)return R;switch(p){case 0:return 0;case 1:return v[0]-A[0];case 2:var L=v[0]+v[1]-A[0]-A[1];return L||E(v[0],v[1])-E(A[0],A[1]);case 3:var D=v[0]+v[1],F=A[0]+A[1];if(L=D+v[2]-(F+A[2]),L)return L;var z=E(v[0],v[1]),I=E(A[0],A[1]),L=E(z,v[2])-E(I,A[2]);return L||E(z+v[2],D)-E(I+A[2],F);default:var P=v.slice(0);P.sort();var O=A.slice(0);O.sort();for(var U=0;U<p;++U)if(R=P[U]-O[U],R)return R;return 0}}o.compareCells=d;function x(v,A){return d(v[0],A[0])}function g(v,A){if(A){for(var p=v.length,R=new Array(p),E=0;E<p;++E)R[E]=[v[E],A[E]];R.sort(x);for(var E=0;E<p;++E)v[E]=R[E][0],A[E]=R[E][1];return v}else return v.sort(d),v}o.normalize=g;function w(v){if(v.length===0)return[];for(var A=1,p=v.length,R=1;R<p;++R){var E=v[R];if(d(E,v[R-1])){if(R===A){A++;continue}v[A++]=E}}return v.length=A,v}o.unique=w;function T(v,A){for(var p=0,R=v.length-1,E=-1;p<=R;){var D=p+R>>1,F=d(v[D],A);F<=0?(F===0&&(E=D),p=D+1):F>0&&(R=D-1)}return E}o.findCell=T;function m(v,A){for(var p=new Array(v.length),R=0,E=p.length;R<E;++R)p[R]=[];for(var D=[],R=0,F=A.length;R<F;++R)for(var z=A[R],I=z.length,L=1,P=1<<I;L<P;++L){D.length=l.popCount(L);for(var O=0,U=0;U<I;++U)L&1<<U&&(D[O++]=z[U]);var V=T(v,D);if(!(V<0))for(;p[V++].push(R),!(V>=v.length||d(v[V],D)!==0););}return p}o.incidence=m;function k(v,A){if(!A)return m(w(b(v,0)),v,0);for(var p=new Array(A),R=0;R<A;++R)p[R]=[];for(var R=0,E=v.length;R<E;++R)for(var D=v[R],F=0,z=D.length;F<z;++F)p[D[F]].push(R);return p}o.dual=k;function S(v){for(var A=[],p=0,R=v.length;p<R;++p)for(var E=v[p],D=E.length|0,F=1,z=1<<D;F<z;++F){for(var I=[],L=0;L<D;++L)F>>>L&1&&I.push(E[L]);A.push(I)}return g(A)}o.explode=S;function b(v,A){if(A<0)return[];for(var p=[],R=(1<<A+1)-1,E=0;E<v.length;++E)for(var D=v[E],F=R;F<1<<D.length;F=l.nextCombination(F)){for(var z=new Array(A+1),I=0,L=0;L<D.length;++L)F&1<<L&&(z[I++]=D[L]);p.push(z)}return g(p)}o.skeleton=b;function M(v){for(var A=[],p=0,R=v.length;p<R;++p)for(var E=v[p],D=0,F=E.length;D<F;++D){for(var z=new Array(E.length-1),I=0,L=0;I<F;++I)I!==D&&(z[L++]=E[I]);A.push(z)}return g(A)}o.boundary=M;function h(v,A){for(var p=new u(A),R=0;R<v.length;++R)for(var E=v[R],D=0;D<E.length;++D)for(var F=D+1;F<E.length;++F)p.link(E[D],E[F]);for(var z=[],I=p.ranks,R=0;R<I.length;++R)I[R]=-1;for(var R=0;R<v.length;++R){var L=p.find(v[R][0]);I[L]<0?(I[L]=z.length,z.push([v[R].slice(0)])):z[I[L]].push(v[R].slice(0))}return z}function _(v){for(var A=w(g(b(v,0))),p=new u(A.length),R=0;R<v.length;++R)for(var E=v[R],D=0;D<E.length;++D)for(var F=T(A,[E[D]]),z=D+1;z<E.length;++z)p.link(F,T(A,[E[z]]));for(var I=[],L=p.ranks,R=0;R<L.length;++R)L[R]=-1;for(var R=0;R<v.length;++R){var P=p.find(T(A,[v[R][0]]));L[P]<0?(L[P]=I.length,I.push([v[R].slice(0)])):I[L[P]].push(v[R].slice(0))}return I}function y(v,A){return A?h(v,A):_(v)}o.connectedComponents=y}),4623:(function(a){"use strict";"use restrict";a.exports=o;function o(i){this.roots=new Array(i),this.ranks=new Array(i);for(var l=0;l<i;++l)this.roots[l]=l,this.ranks[l]=0}o.prototype.length=function(){return this.roots.length},o.prototype.makeSet=function(){var i=this.roots.length;return this.roots.push(i),this.ranks.push(0),i},o.prototype.find=function(i){for(var l=this.roots;l[i]!==i;){var u=l[i];l[i]=l[u],i=u}return i},o.prototype.link=function(i,l){var u=this.find(i),s=this.find(l);if(u!==s){var f=this.ranks,c=this.roots,d=f[u],x=f[s];d<x?c[u]=s:x<d?c[s]=u:(c[s]=u,++f[u])}}}),5878:(function(a,o,i){"use strict";a.exports=f;var l=i(3250),u=i(2014);function s(c,d,x){var g=Math.abs(l(c,d,x)),w=Math.sqrt(Math.pow(d[0]-x[0],2)+Math.pow(d[1]-x[1],2));return g/w}function f(c,d,x){for(var g=d.length,w=c.length,T=new Array(g),m=new Array(g),k=new Array(g),S=new Array(g),b=0;b<g;++b)T[b]=m[b]=-1,k[b]=1/0,S[b]=!1;for(var b=0;b<w;++b){var M=c[b];if(M.length!==2)throw new Error("Input must be a graph");var h=M[1],_=M[0];m[_]!==-1?m[_]=-2:m[_]=h,T[h]!==-1?T[h]=-2:T[h]=_}function y(q){if(S[q])return 1/0;var J=T[q],te=m[q];return J<0||te<0?1/0:s(d[q],d[J],d[te])}function v(q,J){var te=I[q],Z=I[J];I[q]=Z,I[J]=te,L[te]=J,L[Z]=q}function A(q){return k[I[q]]}function p(q){return q&1?q-1>>1:(q>>1)-1}function R(q){for(var J=A(q);;){var te=J,Z=2*q+1,ie=2*(q+1),Q=q;if(Z<O){var re=A(Z);re<te&&(Q=Z,te=re)}if(ie<O){var se=A(ie);se<te&&(Q=ie)}if(Q===q)return q;v(q,Q),q=Q}}function E(q){for(var J=A(q);q>0;){var te=p(q);if(te>=0){var Z=A(te);if(J<Z){v(q,te),q=te;continue}}return q}}function D(){if(O>0){var q=I[0];return v(0,O-1),O-=1,R(0),q}return-1}function F(q,J){var te=I[q];return k[te]===J?q:(k[te]=-1/0,E(q),D(),k[te]=J,O+=1,E(O-1))}function z(q){if(!S[q]){S[q]=!0;var J=T[q],te=m[q];T[te]>=0&&(T[te]=J),m[J]>=0&&(m[J]=te),L[J]>=0&&F(L[J],y(J)),L[te]>=0&&F(L[te],y(te))}}for(var I=[],L=new Array(g),b=0;b<g;++b){var P=k[b]=y(b);P<1/0?(L[b]=I.length,I.push(b)):L[b]=-1}for(var O=I.length,b=O>>1;b>=0;--b)R(b);for(;;){var U=D();if(U<0||k[U]>x)break;z(U)}for(var V=[],b=0;b<g;++b)S[b]||(L[b]=V.length,V.push(d[b].slice()));var K=V.length;function j(q,J){if(q[J]<0)return J;var te=J,Z=J;do{var ie=q[Z];if(!S[Z]||ie<0||ie===Z||(Z=ie,ie=q[Z],!S[Z]||ie<0||ie===Z))break;Z=ie,te=q[te]}while(te!==Z);for(var Q=J;Q!==Z;Q=q[Q])q[Q]=Z;return Z}var G=[];return c.forEach(function(q){var J=j(T,q[0]),te=j(m,q[1]);if(J>=0&&te>=0&&J!==te){var Z=L[J],ie=L[te];Z!==ie&&G.push([Z,ie])}}),u.unique(u.normalize(G)),{positions:V,edges:G}}}),1303:(function(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,c){var d,x;if(c[0][0]<c[1][0])d=c[0],x=c[1];else if(c[0][0]>c[1][0])d=c[1],x=c[0];else{var g=Math.min(f[0][1],f[1][1]),w=Math.max(f[0][1],f[1][1]),T=Math.min(c[0][1],c[1][1]),m=Math.max(c[0][1],c[1][1]);return w<T?w-T:g>m?g-m:w-m}var k,S;f[0][1]<f[1][1]?(k=f[0],S=f[1]):(k=f[1],S=f[0]);var b=l(x,d,k);return b||(b=l(x,d,S),b)?b:S-x}function s(f,c){var d,x;if(c[0][0]<c[1][0])d=c[0],x=c[1];else if(c[0][0]>c[1][0])d=c[1],x=c[0];else return u(c,f);var g,w;if(f[0][0]<f[1][0])g=f[0],w=f[1];else if(f[0][0]>f[1][0])g=f[1],w=f[0];else return-u(f,c);var T=l(d,x,w),m=l(d,x,g);if(T<0){if(m<=0)return T}else if(T>0){if(m>=0)return T}else if(m)return m;if(T=l(w,g,x),m=l(w,g,d),T<0){if(m<=0)return T}else if(T>0){if(m>=0)return T}else if(m)return m;return x[0]-w[0]}}),4209:(function(a,o,i){"use strict";a.exports=m;var l=i(2478),u=i(3840),s=i(3250),f=i(1303);function c(k,S,b){this.slabs=k,this.coordinates=S,this.horizontal=b}var d=c.prototype;function x(k,S){return k.y-S}function g(k,S){for(var b=null;k;){var M=k.key,h,_;M[0][0]<M[1][0]?(h=M[0],_=M[1]):(h=M[1],_=M[0]);var y=s(h,_,S);if(y<0)k=k.left;else if(y>0)if(S[0]!==M[1][0])b=k,k=k.right;else{var v=g(k.right,S);if(v)return v;k=k.left}else{if(S[0]!==M[1][0])return k;var v=g(k.right,S);if(v)return v;k=k.left}}return b}d.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var b=this.slabs[S],M=g(this.slabs[S],k),h=-1;if(M&&(h=M.value),this.coordinates[S]===k[0]){var _=null;if(M&&(_=M.key),S>0){var y=g(this.slabs[S-1],k);y&&(_?f(y.key,_)>0&&(_=y.key,h=y.value):(h=y.value,_=y.key))}var v=this.horizontal[S];if(v.length>0){var A=l.ge(v,k[1],x);if(A<v.length){var p=v[A];if(k[1]===p.y){if(p.closed)return p.index;for(;A<v.length-1&&v[A+1].y===k[1];)if(A=A+1,p=v[A],p.closed)return p.index;if(p.y===k[1]&&!p.start){if(A=A+1,A>=v.length)return h;p=v[A]}}if(p.start)if(_){var R=s(_[0],_[1],[k[0],p.y]);_[0][0]>_[1][0]&&(R=-R),R>0&&(h=p.index)}else h=p.index;else p.y!==k[1]&&(h=p.index)}}}return h};function w(k,S,b,M){this.y=k,this.index=S,this.start=b,this.closed=M}function T(k,S,b,M){this.x=k,this.segment=S,this.create=b,this.index=M}function m(k){for(var S=k.length,b=2*S,M=new Array(b),h=0;h<S;++h){var _=k[h],y=_[0][0]<_[1][0];M[2*h]=new T(_[0][0],_,y,h),M[2*h+1]=new T(_[1][0],_,!y,h)}M.sort(function(I,L){var P=I.x-L.x;return P||(P=I.create-L.create,P)?P:Math.min(I.segment[0][1],I.segment[1][1])-Math.min(L.segment[0][1],L.segment[1][1])});for(var v=u(f),A=[],p=[],R=[],E=-1/0,h=0;h<b;){for(var D=M[h].x,F=[];h<b;){var z=M[h];if(z.x!==D)break;h+=1,z.segment[0][0]===z.x&&z.segment[1][0]===z.x?z.create&&(z.segment[0][1]<z.segment[1][1]?(F.push(new w(z.segment[0][1],z.index,!0,!0)),F.push(new w(z.segment[1][1],z.index,!1,!1))):(F.push(new w(z.segment[1][1],z.index,!0,!1)),F.push(new w(z.segment[0][1],z.index,!1,!0)))):z.create?v=v.insert(z.segment,z.index):v=v.remove(z.segment)}A.push(v.root),p.push(D),R.push(F)}return new c(A,p,R)}}),5202:(function(a,o,i){"use strict";var l=i(1944),u=i(8210);a.exports=c,a.exports.positive=d,a.exports.negative=x;function s(g,w){var T=u(l(g,w),[w[w.length-1]]);return T[T.length-1]}function f(g,w,T,m){var k=m-w,S=-w/k;S<0?S=0:S>1&&(S=1);for(var b=1-S,M=g.length,h=new Array(M),_=0;_<M;++_)h[_]=S*g[_]+b*T[_];return h}function c(g,w){for(var T=[],m=[],k=s(g[g.length-1],w),S=g[g.length-1],b=g[0],M=0;M<g.length;++M,S=b){b=g[M];var h=s(b,w);if(k<0&&h>0||k>0&&h<0){var _=f(S,h,b,k);T.push(_),m.push(_.slice())}h<0?m.push(b.slice()):h>0?T.push(b.slice()):(T.push(b.slice()),m.push(b.slice())),k=h}return{positive:T,negative:m}}function d(g,w){for(var T=[],m=s(g[g.length-1],w),k=g[g.length-1],S=g[0],b=0;b<g.length;++b,k=S){S=g[b];var M=s(S,w);(m<0&&M>0||m>0&&M<0)&&T.push(f(k,M,S,m)),M>=0&&T.push(S.slice()),m=M}return T}function x(g,w){for(var T=[],m=s(g[g.length-1],w),k=g[g.length-1],S=g[0],b=0;b<g.length;++b,k=S){S=g[b];var M=s(S,w);(m<0&&M>0||m>0&&M<0)&&T.push(f(k,M,S,m)),M<=0&&T.push(S.slice()),m=M}return T}}),3387:(function(a,o,i){var l;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function s(g){return c(x(g),arguments)}function f(g,w){return s.apply(null,[g].concat(w||[]))}function c(g,w){var T=1,m=g.length,k,S="",b,M,h,_,y,v,A,p;for(b=0;b<m;b++)if(typeof g[b]=="string")S+=g[b];else if(typeof g[b]=="object"){if(h=g[b],h.keys)for(k=w[T],M=0;M<h.keys.length;M++){if(k==null)throw new Error(s('[sprintf] Cannot access property "%s" of undefined value "%s"',h.keys[M],h.keys[M-1]));k=k[h.keys[M]]}else h.param_no?k=w[h.param_no]:k=w[T++];if(u.not_type.test(h.type)&&u.not_primitive.test(h.type)&&k instanceof Function&&(k=k()),u.numeric_arg.test(h.type)&&typeof k!="number"&&isNaN(k))throw new TypeError(s("[sprintf] expecting number but found %T",k));switch(u.number.test(h.type)&&(A=k>=0),h.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,h.width?parseInt(h.width):0);break;case"e":k=h.precision?parseFloat(k).toExponential(h.precision):parseFloat(k).toExponential();break;case"f":k=h.precision?parseFloat(k).toFixed(h.precision):parseFloat(k);break;case"g":k=h.precision?String(Number(k.toPrecision(h.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=h.precision?k.substring(0,h.precision):k;break;case"t":k=String(!!k),k=h.precision?k.substring(0,h.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=h.precision?k.substring(0,h.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=h.precision?k.substring(0,h.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(h.type)?S+=k:(u.number.test(h.type)&&(!A||h.sign)?(p=A?"+":"-",k=k.toString().replace(u.sign,"")):p="",y=h.pad_char?h.pad_char==="0"?"0":h.pad_char.charAt(1):" ",v=h.width-(p+k).length,_=h.width&&v>0?y.repeat(v):"",S+=h.align?p+k+_:y==="0"?p+_+k:_+p+k)}return S}var d=Object.create(null);function x(g){if(d[g])return d[g];for(var w=g,T,m=[],k=0;w;){if((T=u.text.exec(w))!==null)m.push(T[0]);else if((T=u.modulo.exec(w))!==null)m.push("%");else if((T=u.placeholder.exec(w))!==null){if(T[2]){k|=1;var S=[],b=T[2],M=[];if((M=u.key.exec(b))!==null)for(S.push(M[1]);(b=b.substring(M[0].length))!=="";)if((M=u.key_access.exec(b))!==null)S.push(M[1]);else if((M=u.index_access.exec(b))!==null)S.push(M[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");T[2]=S}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");m.push({placeholder:T[0],param_no:T[1],keys:T[2],sign:T[3],pad_char:T[4],align:T[5],width:T[6],precision:T[7],type:T[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");w=w.substring(T[0].length)}return d[g]=m}o.sprintf=s,o.vsprintf=f,typeof window!="undefined"&&(window.sprintf=s,window.vsprintf=f,l=(function(){return{sprintf:s,vsprintf:f}}).call(o,i,o,a),l!==void 0&&(a.exports=l))})()}),3711:(function(a,o,i){"use strict";a.exports=x;var l=i(2640),u=i(781),s={"2d":function(g,w,T){var m=g({order:w,scalarArguments:3,getters:T==="generic"?[0]:void 0,phase:function(S,b,M,h){return S>h|0},vertex:function(S,b,M,h,_,y,v,A,p,R,E,D,F){var z=(v<<0)+(A<<1)+(p<<2)+(R<<3)|0;if(!(z===0||z===15))switch(z){case 0:E.push([S-.5,b-.5]);break;case 1:E.push([S-.25-.25*(h+M-2*F)/(M-h),b-.25-.25*(_+M-2*F)/(M-_)]);break;case 2:E.push([S-.75-.25*(-h-M+2*F)/(h-M),b-.25-.25*(y+h-2*F)/(h-y)]);break;case 3:E.push([S-.5,b-.5-.5*(_+M+y+h-4*F)/(M-_+h-y)]);break;case 4:E.push([S-.25-.25*(y+_-2*F)/(_-y),b-.75-.25*(-_-M+2*F)/(_-M)]);break;case 5:E.push([S-.5-.5*(h+M+y+_-4*F)/(M-h+_-y),b-.5]);break;case 6:E.push([S-.5-.25*(-h-M+y+_)/(h-M+_-y),b-.5-.25*(-_-M+y+h)/(_-M+h-y)]);break;case 7:E.push([S-.75-.25*(y+_-2*F)/(_-y),b-.75-.25*(y+h-2*F)/(h-y)]);break;case 8:E.push([S-.75-.25*(-y-_+2*F)/(y-_),b-.75-.25*(-y-h+2*F)/(y-h)]);break;case 9:E.push([S-.5-.25*(h+M+-y-_)/(M-h+y-_),b-.5-.25*(_+M+-y-h)/(M-_+y-h)]);break;case 10:E.push([S-.5-.5*(-h-M+-y-_+4*F)/(h-M+y-_),b-.5]);break;case 11:E.push([S-.25-.25*(-y-_+2*F)/(y-_),b-.75-.25*(_+M-2*F)/(M-_)]);break;case 12:E.push([S-.5,b-.5-.5*(-_-M+-y-h+4*F)/(_-M+y-h)]);break;case 13:E.push([S-.75-.25*(h+M-2*F)/(M-h),b-.25-.25*(-y-h+2*F)/(y-h)]);break;case 14:E.push([S-.25-.25*(-h-M+2*F)/(h-M),b-.25-.25*(-_-M+2*F)/(_-M)]);break;case 15:E.push([S-.5,b-.5]);break}},cell:function(S,b,M,h,_,y,v,A,p){_?A.push([S,b]):A.push([b,S])}});return function(k,S){var b=[],M=[];return m(k,b,M,S),{positions:b,cells:M}}}};function f(g,w){var T=g.length+"d",m=s[T];if(m)return m(l,g,w)}function c(g,w){for(var T=u(g,w),m=T.length,k=new Array(m),S=new Array(m),b=0;b<m;++b)k[b]=[T[b]],S[b]=[b];return{positions:k,cells:S}}var d={};function x(g,k){if(g.dimension<=0)return{positions:[],cells:[]};if(g.dimension===1)return c(g,k);var T=g.order.join()+"-"+g.dtype,m=d[T],k=+k||0;return m||(m=d[T]=f(g.order,g.dtype)),m(g,k)}}),665:(function(a,o,i){"use strict";var l=i(3202);a.exports=c;var u=96;function s(d,x){var g=l(getComputedStyle(d).getPropertyValue(x));return g[0]*c(g[1],d)}function f(d,x){var g=document.createElement("div");g.style["font-size"]="128"+d,x.appendChild(g);var w=s(g,"font-size")/128;return x.removeChild(g),w}function c(d,x){switch(x=x||document.body,d=(d||"px").trim().toLowerCase(),(x===window||x===document)&&(x=document.body),d){case"%":return x.clientHeight/100;case"ch":case"ex":return f(d,x);case"em":return s(x,"font-size");case"rem":return s(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return u;case"cm":return u/2.54;case"mm":return u/25.4;case"pt":return u/72;case"pc":return u/6}return 1}}),7261:(function(a,o,i){"use strict";a.exports=S;var l=i(9215),u=i(7608),s=i(6079),f=i(5911),c=i(3536),d=i(244);function x(b,M,h){return Math.sqrt(Math.pow(b,2)+Math.pow(M,2)+Math.pow(h,2))}function g(b){return Math.min(1,Math.max(-1,b))}function w(b){var M=Math.abs(b[0]),h=Math.abs(b[1]),_=Math.abs(b[2]),y=[0,0,0];M>Math.max(h,_)?y[2]=1:h>Math.max(M,_)?y[0]=1:y[1]=1;for(var v=0,A=0,p=0;p<3;++p)v+=b[p]*b[p],A+=y[p]*b[p];for(var p=0;p<3;++p)y[p]-=A/v*b[p];return c(y,y),y}function T(b,M,h,_,y,v,A,p){this.center=l(h),this.up=l(_),this.right=l(y),this.radius=l([v]),this.angle=l([A,p]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(b,M),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var R=0;R<16;++R)this.computedMatrix[R]=.5;this.recalcMatrix(0)}var m=T.prototype;m.setDistanceLimits=function(b,M){b>0?b=Math.log(b):b=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,b),this.radius.bounds[0][0]=b,this.radius.bounds[1][0]=M},m.getDistanceLimits=function(b){var M=this.radius.bounds[0];return b?(b[0]=Math.exp(M[0][0]),b[1]=Math.exp(M[1][0]),b):[Math.exp(M[0][0]),Math.exp(M[1][0])]},m.recalcMatrix=function(b){this.center.curve(b),this.up.curve(b),this.right.curve(b),this.radius.curve(b),this.angle.curve(b);for(var M=this.computedUp,h=this.computedRight,_=0,y=0,v=0;v<3;++v)y+=M[v]*h[v],_+=M[v]*M[v];for(var A=Math.sqrt(_),p=0,v=0;v<3;++v)h[v]-=M[v]*y/_,p+=h[v]*h[v],M[v]/=A;for(var R=Math.sqrt(p),v=0;v<3;++v)h[v]/=R;var E=this.computedToward;f(E,M,h),c(E,E);for(var D=Math.exp(this.computedRadius[0]),F=this.computedAngle[0],z=this.computedAngle[1],I=Math.cos(F),L=Math.sin(F),P=Math.cos(z),O=Math.sin(z),U=this.computedCenter,V=I*P,K=L*P,j=O,G=-I*O,q=-L*O,J=P,te=this.computedEye,Z=this.computedMatrix,v=0;v<3;++v){var ie=V*h[v]+K*E[v]+j*M[v];Z[4*v+1]=G*h[v]+q*E[v]+J*M[v],Z[4*v+2]=ie,Z[4*v+3]=0}var Q=Z[1],re=Z[5],se=Z[9],ee=Z[2],ae=Z[6],ce=Z[10],Me=re*ce-se*ae,ke=se*ee-Q*ce,Se=Q*ae-re*ee,ge=x(Me,ke,Se);Me/=ge,ke/=ge,Se/=ge,Z[0]=Me,Z[4]=ke,Z[8]=Se;for(var v=0;v<3;++v)te[v]=U[v]+Z[2+4*v]*D;for(var v=0;v<3;++v){for(var p=0,Le=0;Le<3;++Le)p+=Z[v+4*Le]*te[Le];Z[12+v]=-p}Z[15]=1},m.getMatrix=function(b,M){this.recalcMatrix(b);var h=this.computedMatrix;if(M){for(var _=0;_<16;++_)M[_]=h[_];return M}return h};var k=[0,0,0];m.rotate=function(b,M,h,_){if(this.angle.move(b,M,h),_){this.recalcMatrix(b);var y=this.computedMatrix;k[0]=y[2],k[1]=y[6],k[2]=y[10];for(var v=this.computedUp,A=this.computedRight,p=this.computedToward,R=0;R<3;++R)y[4*R]=v[R],y[4*R+1]=A[R],y[4*R+2]=p[R];s(y,y,_,k);for(var R=0;R<3;++R)v[R]=y[4*R],A[R]=y[4*R+1];this.up.set(b,v[0],v[1],v[2]),this.right.set(b,A[0],A[1],A[2])}},m.pan=function(b,M,h,_){M=M||0,h=h||0,_=_||0,this.recalcMatrix(b);var y=this.computedMatrix,v=Math.exp(this.computedRadius[0]),A=y[1],p=y[5],R=y[9],E=x(A,p,R);A/=E,p/=E,R/=E;var D=y[0],F=y[4],z=y[8],I=D*A+F*p+z*R;D-=A*I,F-=p*I,z-=R*I;var L=x(D,F,z);D/=L,F/=L,z/=L;var P=D*M+A*h,O=F*M+p*h,U=z*M+R*h;this.center.move(b,P,O,U);var V=Math.exp(this.computedRadius[0]);V=Math.max(1e-4,V+_),this.radius.set(b,Math.log(V))},m.translate=function(b,M,h,_){this.center.move(b,M||0,h||0,_||0)},m.setMatrix=function(b,M,h,_){var y=1;typeof h=="number"&&(y=h|0),(y<0||y>3)&&(y=1);var v=(y+2)%3,A=(y+1)%3;M||(this.recalcMatrix(b),M=this.computedMatrix);var p=M[y],R=M[y+4],E=M[y+8];if(_){var F=Math.abs(p),z=Math.abs(R),I=Math.abs(E),L=Math.max(F,z,I);F===L?(p=p<0?-1:1,R=E=0):I===L?(E=E<0?-1:1,p=R=0):(R=R<0?-1:1,p=E=0)}else{var D=x(p,R,E);p/=D,R/=D,E/=D}var P=M[v],O=M[v+4],U=M[v+8],V=P*p+O*R+U*E;P-=p*V,O-=R*V,U-=E*V;var K=x(P,O,U);P/=K,O/=K,U/=K;var j=R*U-E*O,G=E*P-p*U,q=p*O-R*P,J=x(j,G,q);j/=J,G/=J,q/=J,this.center.jump(b,pe,oe,ve),this.radius.idle(b),this.up.jump(b,p,R,E),this.right.jump(b,P,O,U);var te,Z;if(y===2){var ie=M[1],Q=M[5],re=M[9],se=ie*P+Q*O+re*U,ee=ie*j+Q*G+re*q;ke<0?te=-Math.PI/2:te=Math.PI/2,Z=Math.atan2(ee,se)}else{var ae=M[2],ce=M[6],Me=M[10],ke=ae*p+ce*R+Me*E,Se=ae*P+ce*O+Me*U,ge=ae*j+ce*G+Me*q;te=Math.asin(g(ke)),Z=Math.atan2(ge,Se)}this.angle.jump(b,Z,te),this.recalcMatrix(b);var Le=M[2],Ee=M[6],le=M[10],Y=this.computedMatrix;u(Y,M);var $=Y[15],pe=Y[12]/$,oe=Y[13]/$,ve=Y[14]/$,he=Math.exp(this.computedRadius[0]);this.center.jump(b,pe-Le*he,oe-Ee*he,ve-le*he)},m.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},m.idle=function(b){this.center.idle(b),this.up.idle(b),this.right.idle(b),this.radius.idle(b),this.angle.idle(b)},m.flush=function(b){this.center.flush(b),this.up.flush(b),this.right.flush(b),this.radius.flush(b),this.angle.flush(b)},m.setDistance=function(b,M){M>0&&this.radius.set(b,Math.log(M))},m.lookAt=function(b,M,h,_){this.recalcMatrix(b),M=M||this.computedEye,h=h||this.computedCenter,_=_||this.computedUp;var y=_[0],v=_[1],A=_[2],p=x(y,v,A);if(!(p<1e-6)){y/=p,v/=p,A/=p;var R=M[0]-h[0],E=M[1]-h[1],D=M[2]-h[2],F=x(R,E,D);if(!(F<1e-6)){R/=F,E/=F,D/=F;var z=this.computedRight,I=z[0],L=z[1],P=z[2],O=y*I+v*L+A*P;I-=O*y,L-=O*v,P-=O*A;var U=x(I,L,P);if(!(U<.01&&(I=v*D-A*E,L=A*R-y*D,P=y*E-v*R,U=x(I,L,P),U<1e-6))){I/=U,L/=U,P/=U,this.up.set(b,y,v,A),this.right.set(b,I,L,P),this.center.set(b,h[0],h[1],h[2]),this.radius.set(b,Math.log(F));var V=v*P-A*L,K=A*I-y*P,j=y*L-v*I,G=x(V,K,j);V/=G,K/=G,j/=G;var q=y*R+v*E+A*D,J=I*R+L*E+P*D,te=V*R+K*E+j*D,Z=Math.asin(g(q)),ie=Math.atan2(te,J),Q=this.angle._state,re=Q[Q.length-1],se=Q[Q.length-2];re=re%(2*Math.PI);var ee=Math.abs(re+2*Math.PI-ie),ae=Math.abs(re-ie),ce=Math.abs(re-2*Math.PI-ie);ee<ae&&(re+=2*Math.PI),ce<ae&&(re-=2*Math.PI),this.angle.jump(this.angle.lastT(),re,se),this.angle.set(b,ie,Z)}}}};function S(b){b=b||{};var M=b.center||[0,0,0],h=b.up||[0,1,0],_=b.right||w(h),y=b.radius||1,v=b.theta||0,A=b.phi||0;if(M=[].slice.call(M,0,3),h=[].slice.call(h,0,3),c(h,h),_=[].slice.call(_,0,3),c(_,_),"eye"in b){var p=b.eye,R=[p[0]-M[0],p[1]-M[1],p[2]-M[2]];f(_,R,h),x(_[0],_[1],_[2])<1e-6?_=w(h):c(_,_),y=x(R[0],R[1],R[2]);var E=d(h,R)/y,D=d(_,R)/y;A=Math.acos(E),v=Math.acos(D)}return y=Math.log(y),new T(b.zoomMin,b.zoomMax,M,h,_,y,v,A)}}),5250:(function(a){"use strict";a.exports=i;var o=+(Math.pow(2,27)+1);function i(l,u,s){var f=l*u,c=o*l,d=c-l,x=c-d,g=l-x,w=o*u,T=w-u,m=w-T,k=u-m,S=f-x*m,b=S-g*m,M=b-x*k,h=g*k-M;return s?(s[0]=h,s[1]=f,s):[h,f]}}),9362:(function(a){"use strict";a.exports=o;function o(i,l,u){var s=i+l,f=s-i,c=s-f,d=l-f,x=i-c;return u?(u[0]=x+d,u[1]=s,u):[x+d,s]}}),1888:(function(a,o,i){"use strict";var l=i(8828),u=i(1338),s=i(4793).hp;i.g.__TYPEDARRAY_POOL||(i.g.__TYPEDARRAY_POOL={UINT8:u([32,0]),UINT16:u([32,0]),UINT32:u([32,0]),BIGUINT64:u([32,0]),INT8:u([32,0]),INT16:u([32,0]),INT32:u([32,0]),BIGINT64:u([32,0]),FLOAT:u([32,0]),DOUBLE:u([32,0]),DATA:u([32,0]),UINT8C:u([32,0]),BUFFER:u([32,0])});var f=typeof Uint8ClampedArray!="undefined",c=typeof BigUint64Array!="undefined",d=typeof BigInt64Array!="undefined",x=i.g.__TYPEDARRAY_POOL;x.UINT8C||(x.UINT8C=u([32,0])),x.BIGUINT64||(x.BIGUINT64=u([32,0])),x.BIGINT64||(x.BIGINT64=u([32,0])),x.BUFFER||(x.BUFFER=u([32,0]));var g=x.DATA,w=x.BUFFER;o.free=function(I){if(s.isBuffer(I))w[l.log2(I.length)].push(I);else{if(Object.prototype.toString.call(I)!=="[object ArrayBuffer]"&&(I=I.buffer),!I)return;var L=I.length||I.byteLength,P=l.log2(L)|0;g[P].push(I)}};function T(z){if(z){var I=z.length||z.byteLength,L=l.log2(I);g[L].push(z)}}function m(z){T(z.buffer)}o.freeUint8=o.freeUint16=o.freeUint32=o.freeBigUint64=o.freeInt8=o.freeInt16=o.freeInt32=o.freeBigInt64=o.freeFloat32=o.freeFloat=o.freeFloat64=o.freeDouble=o.freeUint8Clamped=o.freeDataView=m,o.freeArrayBuffer=T,o.freeBuffer=function(I){w[l.log2(I.length)].push(I)},o.malloc=function(I,L){if(L===void 0||L==="arraybuffer")return k(I);switch(L){case"uint8":return S(I);case"uint16":return b(I);case"uint32":return M(I);case"int8":return h(I);case"int16":return _(I);case"int32":return y(I);case"float":case"float32":return v(I);case"double":case"float64":return A(I);case"uint8_clamped":return p(I);case"bigint64":return E(I);case"biguint64":return R(I);case"buffer":return F(I);case"data":case"dataview":return D(I);default:return null}return null};function k(I){var I=l.nextPow2(I),L=l.log2(I),P=g[L];return P.length>0?P.pop():new ArrayBuffer(I)}o.mallocArrayBuffer=k;function S(z){return new Uint8Array(k(z),0,z)}o.mallocUint8=S;function b(z){return new Uint16Array(k(2*z),0,z)}o.mallocUint16=b;function M(z){return new Uint32Array(k(4*z),0,z)}o.mallocUint32=M;function h(z){return new Int8Array(k(z),0,z)}o.mallocInt8=h;function _(z){return new Int16Array(k(2*z),0,z)}o.mallocInt16=_;function y(z){return new Int32Array(k(4*z),0,z)}o.mallocInt32=y;function v(z){return new Float32Array(k(4*z),0,z)}o.mallocFloat32=o.mallocFloat=v;function A(z){return new Float64Array(k(8*z),0,z)}o.mallocFloat64=o.mallocDouble=A;function p(z){return f?new Uint8ClampedArray(k(z),0,z):S(z)}o.mallocUint8Clamped=p;function R(z){return c?new BigUint64Array(k(8*z),0,z):null}o.mallocBigUint64=R;function E(z){return d?new BigInt64Array(k(8*z),0,z):null}o.mallocBigInt64=E;function D(z){return new DataView(k(z),0,z)}o.mallocDataView=D;function F(z){z=l.nextPow2(z);var I=l.log2(z),L=w[I];return L.length>0?L.pop():new s(z)}o.mallocBuffer=F,o.clearCache=function(){for(var I=0;I<32;++I)x.UINT8[I].length=0,x.UINT16[I].length=0,x.UINT32[I].length=0,x.INT8[I].length=0,x.INT16[I].length=0,x.INT32[I].length=0,x.FLOAT[I].length=0,x.DOUBLE[I].length=0,x.BIGUINT64[I].length=0,x.BIGINT64[I].length=0,x.UINT8C[I].length=0,g[I].length=0,w[I].length=0}}),1755:(function(a){"use strict";"use restrict";a.exports=o;function o(l){this.roots=new Array(l),this.ranks=new Array(l);for(var u=0;u<l;++u)this.roots[u]=u,this.ranks[u]=0}var i=o.prototype;Object.defineProperty(i,"length",{get:function(){return this.roots.length}}),i.makeSet=function(){var l=this.roots.length;return this.roots.push(l),this.ranks.push(0),l},i.find=function(l){for(var u=l,s=this.roots;s[l]!==l;)l=s[l];for(;s[u]!==l;){var f=s[u];s[u]=l,u=f}return l},i.link=function(l,u){var s=this.find(l),f=this.find(u);if(s!==f){var c=this.ranks,d=this.roots,x=c[s],g=c[f];x<g?d[s]=f:g<x?d[f]=s:(d[f]=s,++c[s])}}}),1682:(function(a){"use strict";function o(u,s){for(var f=1,c=u.length,d=u[0],x=u[0],g=1;g<c;++g)if(x=d,d=u[g],s(d,x)){if(g===f){f++;continue}u[f++]=d}return u.length=f,u}function i(u){for(var s=1,f=u.length,c=u[0],d=u[0],x=1;x<f;++x,d=c)if(d=c,c=u[x],c!==d){if(x===s){s++;continue}u[s++]=c}return u.length=s,u}function l(u,s,f){return u.length===0?u:s?(f||u.sort(s),o(u,s)):(f||u.sort(),i(u))}a.exports=l}),4359:(function(a,o,i){"use strict";a.exports=f;var l=i(7718),u=null,s=null;typeof document!="undefined"&&(u=document.createElement("canvas"),u.width=8192,u.height=1024,s=u.getContext("2d"));function f(c,d){return(typeof d!="object"||d===null)&&(d={}),l(c,d.canvas||u,d.context||s,d)}}),7718:(function(a,o,i){a.exports=E,a.exports.processPixels=R;var l=i(3711),u=i(9618),s=i(5878),f=i(332),c=i(2538),d=i(2095),x="b",g="b|",w="i",T="i|",m="sup",k="+",S="+1",b="sub",M="-",h="-1";function _(D,F,z,I){for(var L="<"+D+">",P="</"+D+">",O=L.length,U=P.length,V=F[0]===k||F[0]===M,K=0,j=-U;K>-1&&(K=z.indexOf(L,K),!(K===-1||(j=z.indexOf(P,K+O),j===-1)||j<=K));){for(var G=K;G<j+U;++G)if(G<K+O||G>=j)I[G]=null,z=z.substr(0,G)+" "+z.substr(G+1);else if(I[G]!==null){var q=I[G].indexOf(F[0]);q===-1?I[G]+=F:V&&(I[G]=I[G].substr(0,q+1)+(1+parseInt(I[G][q+1]))+I[G].substr(q+2))}var J=K+O,te=z.substr(J,j-J),Z=te.indexOf(L);Z!==-1?K=Z:K=j+U}return I}function y(D,F,z){for(var I=F.textAlign||"start",L=F.textBaseline||"alphabetic",P=[1<<30,1<<30],O=[0,0],U=D.length,V=0;V<U;++V)for(var K=D[V],j=0;j<2;++j)P[j]=Math.min(P[j],K[j])|0,O[j]=Math.max(O[j],K[j])|0;var G=0;switch(I){case"center":G=-.5*(P[0]+O[0]);break;case"right":case"end":G=-O[0];break;case"left":case"start":G=-P[0];break;default:throw new Error("vectorize-text: Unrecognized textAlign: '"+I+"'")}var q=0;switch(L){case"hanging":case"top":q=-P[1];break;case"middle":q=-.5*(P[1]+O[1]);break;case"alphabetic":case"ideographic":q=-3*z;break;case"bottom":q=-O[1];break;default:throw new Error("vectorize-text: Unrecoginized textBaseline: '"+L+"'")}var J=1/z;return"lineHeight"in F?J*=+F.lineHeight:"width"in F?J=F.width/(O[0]-P[0]):"height"in F&&(J=F.height/(O[1]-P[1])),D.map(function(te){return[J*(te[0]+G),J*(te[1]+q)]})}function v(D,F,z,I,L,P){z=z.replace(/\n/g,""),P.breaklines===!0?z=z.replace(/\<br\>/g,`
`):z=z.replace(/\<br\>/g," ");var O="",U=[];for(re=0;re<z.length;++re)U[re]=O;P.bolds===!0&&(U=_(x,g,z,U)),P.italics===!0&&(U=_(w,T,z,U)),P.superscripts===!0&&(U=_(m,S,z,U)),P.subscripts===!0&&(U=_(b,h,z,U));var V=[],K="";for(re=0;re<z.length;++re)U[re]!==null&&(K+=z[re],V.push(U[re]));var j=K.split(`
`),G=j.length,q=Math.round(L*I),J=I,te=I*2,Z=0,ie=G*q+te;D.height<ie&&(D.height=ie),F.fillStyle="#000",F.fillRect(0,0,D.width,D.height),F.fillStyle="#fff";var Q,re,se,ee,ae,ce=0,Me="";function ke(){if(Me!==""){var oe=F.measureText(Me).width;F.fillText(Me,J+se,te+ee),se+=oe}}function Se(){return""+Math.round(ae)+"px "}function ge(oe,ve){var he=""+F.font;if(P.subscripts===!0){var me=oe.indexOf(M),be=ve.indexOf(M),ye=me>-1?parseInt(oe[1+me]):0,de=be>-1?parseInt(ve[1+be]):0;ye!==de&&(he=he.replace(Se(),"?px "),ae*=Math.pow(.75,de-ye),he=he.replace("?px ",Se())),ee+=.25*q*(de-ye)}if(P.superscripts===!0){var _e=oe.indexOf(k),Ae=ve.indexOf(k),Ie=_e>-1?parseInt(oe[1+_e]):0,Pe=Ae>-1?parseInt(ve[1+Ae]):0;Ie!==Pe&&(he=he.replace(Se(),"?px "),ae*=Math.pow(.75,Pe-Ie),he=he.replace("?px ",Se())),ee-=.25*q*(Pe-Ie)}if(P.bolds===!0){var Ye=oe.indexOf(g)>-1,qe=ve.indexOf(g)>-1;!Ye&&qe&&(Oe?he=he.replace("italic ","italic bold "):he="bold "+he),Ye&&!qe&&(he=he.replace("bold ",""))}if(P.italics===!0){var Oe=oe.indexOf(T)>-1,Be=ve.indexOf(T)>-1;!Oe&&Be&&(he="italic "+he),Oe&&!Be&&(he=he.replace("italic ",""))}F.font=he}for(Q=0;Q<G;++Q){var Le=j[Q]+`
`;for(se=0,ee=Q*q,ae=I,Me="",re=0;re<Le.length;++re){var Ee=re+ce<V.length?V[re+ce]:V[V.length-1];O===Ee?Me+=Le[re]:(ke(),Me=Le[re],Ee!==void 0&&(ge(O,Ee),O=Ee))}ke(),ce+=Le.length;var le=Math.round(se+2*J)|0;Z<le&&(Z=le)}var Y=Z,$=te+q*G,pe=u(F.getImageData(0,0,Y,$).data,[$,Y,4]);return pe.pick(-1,-1,0).transpose(1,0)}function A(D,F){var z=l(D,128);return F?s(z.cells,z.positions,.25):{edges:z.cells,positions:z.positions}}function p(D,F,z,I){var L=A(D,I),P=y(L.positions,F,z),O=L.edges,U=F.orientation==="ccw";if(f(P,O),F.polygons||F.polygon||F.polyline){for(var V=d(O,P),K=new Array(V.length),j=0;j<V.length;++j){for(var G=V[j],q=new Array(G.length),J=0;J<G.length;++J){for(var te=G[J],Z=new Array(te.length),ie=0;ie<te.length;++ie)Z[ie]=P[te[ie]].slice();U&&Z.reverse(),q[J]=Z}K[j]=q}return K}else return F.triangles||F.triangulate||F.triangle?{cells:c(P,O,{delaunay:!1,exterior:!1,interior:!0}),positions:P}:{edges:O,positions:P}}function R(D,F,z){try{return p(D,F,z,!0)}catch(I){}try{return p(D,F,z,!1)}catch(I){}return F.polygons||F.polyline||F.polygon?[]:F.triangles||F.triangulate||F.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function E(D,F,z,I){var L=64,P=1.25,O={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};I&&(I.size&&I.size>0&&(L=I.size),I.lineSpacing&&I.lineSpacing>0&&(P=I.lineSpacing),I.styletags&&I.styletags.breaklines&&(O.breaklines=!!I.styletags.breaklines),I.styletags&&I.styletags.bolds&&(O.bolds=!!I.styletags.bolds),I.styletags&&I.styletags.italics&&(O.italics=!!I.styletags.italics),I.styletags&&I.styletags.subscripts&&(O.subscripts=!!I.styletags.subscripts),I.styletags&&I.styletags.superscripts&&(O.superscripts=!!I.styletags.superscripts)),z.font=[I.fontStyle,I.fontVariant,I.fontWeight,L+"px",I.font].filter(function(V){return V}).join(" "),z.textAlign="start",z.textBaseline="alphabetic",z.direction="ltr";var U=v(F,z,D,L,P,O);return R(U,I,L)}}),1538:(function(a){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function i(p){p.permitHostObjects___&&p.permitHostObjects___(i)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=i);var l=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var s=new u,f=Object.freeze({});if(s.set(f,1),s.get(f)!==1)l=!0;else{a.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,d=Object.getOwnPropertyNames,x=Object.defineProperty,g=Object.isExtensible,w="weakmap:",T=w+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var m=new ArrayBuffer(25),k=new Uint8Array(m);crypto.getRandomValues(k),T=w+"rand:"+Array.prototype.map.call(k,function(p){return(p%36).toString(36)}).join("")+"___"}function S(p){return!(p.substr(0,w.length)==w&&p.substr(p.length-3)==="___")}if(x(Object,"getOwnPropertyNames",{value:function(R){return d(R).filter(S)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;x(Object,"getPropertyNames",{value:function(R){return b(R).filter(S)}})}function M(p){if(p!==Object(p))throw new TypeError("Not an object: "+p);var R=p[T];if(R&&R.key===p)return R;if(g(p)){R={key:p};try{return x(p,T,{value:R,writable:!1,enumerable:!1,configurable:!1}),R}catch(E){return}}}(function(){var p=Object.freeze;x(Object,"freeze",{value:function(F){return M(F),p(F)}});var R=Object.seal;x(Object,"seal",{value:function(F){return M(F),R(F)}});var E=Object.preventExtensions;x(Object,"preventExtensions",{value:function(F){return M(F),E(F)}})})();function h(p){return p.prototype=null,Object.freeze(p)}var _=!1;function y(){!_&&typeof console!="undefined"&&(_=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var v=0,A=function(){this instanceof A||y();var p=[],R=[],E=v++;function D(L,P){var O,U=M(L);return U?E in U?U[E]:P:(O=p.indexOf(L),O>=0?R[O]:P)}function F(L){var P=M(L);return P?E in P:p.indexOf(L)>=0}function z(L,P){var O,U=M(L);return U?U[E]=P:(O=p.indexOf(L),O>=0?R[O]=P:(O=p.length,R[O]=P,p[O]=L)),this}function I(L){var P=M(L),O,U;return P?E in P&&delete P[E]:(O=p.indexOf(L),O<0?!1:(U=p.length-1,p[O]=void 0,R[O]=R[U],p[O]=p[U],p.length=U,R.length=U,!0))}return Object.create(A.prototype,{get___:{value:h(D)},has___:{value:h(F)},set___:{value:h(z)},delete___:{value:h(I)}})};A.prototype=Object.create(Object.prototype,{get:{value:function(R,E){return this.get___(R,E)},writable:!0,configurable:!0},has:{value:function(R){return this.has___(R)},writable:!0,configurable:!0},set:{value:function(R,E){return this.set___(R,E)},writable:!0,configurable:!0},delete:{value:function(R){return this.delete___(R)},writable:!0,configurable:!0}}),typeof u=="function"?(function(){l&&typeof Proxy!="undefined"&&(Proxy=void 0);function p(){this instanceof A||y();var R=new u,E=void 0,D=!1;function F(P,O){return E?R.has(P)?R.get(P):E.get___(P,O):R.get(P,O)}function z(P){return R.has(P)||(E?E.has___(P):!1)}var I;l?I=function(P,O){return R.set(P,O),R.has(P)||(E||(E=new A),E.set(P,O)),this}:I=function(P,O){if(D)try{R.set(P,O)}catch(U){E||(E=new A),E.set___(P,O)}else R.set(P,O);return this};function L(P){var O=!!R.delete(P);return E&&E.delete___(P)||O}return Object.create(A.prototype,{get___:{value:h(F)},has___:{value:h(z)},set___:{value:h(I)},delete___:{value:h(L)},permitHostObjects___:{value:h(function(P){if(P===i)D=!0;else throw new Error("bogus call to permitHostObjects___")})}})}p.prototype=A.prototype,a.exports=p,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy!="undefined"&&(Proxy=void 0),a.exports=A)})()}),236:(function(a,o,i){var l=i(8284);a.exports=u;function u(){var s={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var c=f.valueOf(s);return c&&c.identity===s?c:l(f,s)}}}),8284:(function(a){a.exports=o;function o(i,l){var u={identity:l},s=i.valueOf;return Object.defineProperty(i,"valueOf",{value:function(f){return f!==l?s.apply(this,arguments):u},writable:!0}),u}}),606:(function(a,o,i){var l=i(236);a.exports=u;function u(){var s=l();return{get:function(f,c){var d=s(f);return d.hasOwnProperty("value")?d.value:c},set:function(f,c){return s(f).value=c,this},has:function(f){return"value"in s(f)},delete:function(f){return delete s(f).value}}}}),3349:(function(a){"use strict";function o(){return function(c,d,x,g,w,T){var m=c[0],k=x[0],S=[0],b=k;g|=0;var M=0,h=k;for(M=0;M<m;++M){{var _=d[g]-T,y=d[g+b]-T;_>=0!=y>=0&&w.push(S[0]+.5+.5*(_+y)/(_-y))}g+=h,++S[0]}}}function i(){return o()}var l=i;function u(c){var d={};return function(g,w,T){var m=g.dtype,k=g.order,S=[m,k.join()].join(),b=d[S];return b||(d[S]=b=c([m,k])),b(g.shape.slice(0),g.data,g.stride,g.offset|0,w,T)}}function s(c){return u(l.bind(void 0,c))}function f(c){return s({funcName:c.funcName})}a.exports=f({funcName:"zeroCrossings"})}),781:(function(a,o,i){"use strict";a.exports=u;var l=i(3349);function u(s,f){var c=[];return f=+f||0,l(s.hi(s.shape[0]-1),c,f),c}}),7790:(function(){})},r={};function t(a){var o=r[a];if(o!==void 0)return o.exports;var i=r[a]={id:a,loaded:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}(function(){t.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}})()})(),(function(){t.nmd=function(a){return a.paths=[],a.children||(a.children=[]),a}})();var n=t(1964);UO.exports=n})()});var Vo=xe((v6e,HO)=>{"use strict";var{normalize:G1e}=Xr();function Y1e(e){return e?G1e(e):[0,0,0,1]}HO.exports=Y1e});var Ol=xe((h6e,ZO)=>{"use strict";var XO=it(),Yp=ji(),zf=Xr(),X1e=Zi().defaultLine,VO=sa().isArrayOrTypedArray,Ox=zf.normalize(X1e),WO=1;function GO(e,r){return[e[0],e[1],e[2],e[3]*r]}function qx(e){return XO(e)||!zf.isChannelArray(e)&&!zf.isValid(e)?Ox:zf.normalize(e)}function YO(e){return XO(e)?e:WO}function W1e(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=VO(n),o=VO(r),i=Yp.extractOpts(e),l=[],u,s,f,c,d;if(i.colorscale!==void 0?u=Yp.makeColorScaleFuncFromTrace(e):u=qx,a?s=(g,w)=>g[w]===void 0?Ox:i.colorscale===void 0?u(g[w]):zf.normalize(u(g[w])):s=qx,o?f=function(g,w){return g[w]===void 0?WO:YO(g[w])}:f=YO,a||o)for(var x=0;x<t;x++)c=s(n,x),d=f(r,x),l[x]=GO(c,d);else l=GO(qx(n),r);return l}function Z1e(e){var r=Yp.extractOpts(e),t=r.colorscale;return r.reversescale&&(t=Yp.flipScale(r.colorscale)),t.map(function(n){return{index:n[0],rgb:zf.rgbaArray(n[1])}})}ZO.exports={formatColor:W1e,parseColorScale:Z1e}});var Bx=xe((d6e,JO)=>{"use strict";JO.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var Xp=xe((p6e,$O)=>{"use strict";$O.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var QO=xe((g6e,KO)=>{"use strict";var J1e=Cr();function Ux(e,r,t,n){if(!r||!r.visible)return null;for(var a=J1e.getComponentMethod("errorbars","makeComputeError")(r),o=new Array(e.length),i=0;i<e.length;i++){var l=a(+e[i],i);if(n.type==="log"){var u=n.c2l(e[i]),s=e[i]-l[0],f=e[i]+l[1];if(o[i]=[(n.c2l(s,!0)-u)*t,(n.c2l(f,!0)-u)*t],s>0){var c=n.c2l(s);n._lowerLogErrorBound||(n._lowerLogErrorBound=c),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,c)}}else o[i]=[-l[0]*t,l[1]*t]}return o}function $1e(e){for(var r=0;r<e.length;r++)if(e[r])return e[r].length;return 0}function K1e(e,r,t){var n=[Ux(e.x,e.error_x,r[0],t.xaxis),Ux(e.y,e.error_y,r[1],t.yaxis),Ux(e.z,e.error_z,r[2],t.zaxis)],a=$1e(n);if(a===0)return null;for(var o=new Array(a),i=0;i<a;i++){for(var l=[[0,0,0],[0,0,0]],u=0;u<3;u++)if(n[u])for(var s=0;s<2;s++)l[s][u]=n[u][i][s];o[i]=l}return o}KO.exports=K1e});var lB=xe((y6e,oB)=>{"use strict";var Q1e=kn().gl_line3d,jO=kn().gl_scatter3d,j1e=kn().gl_error3d,ede=kn().gl_mesh3d,rde=kn().delaunay_triangulate,Go=rr(),aB=Vo(),Wp=Ol().formatColor,tde=Nm(),Hx=Bx(),nde=Xp(),ade=Ot(),ide=eo().appendArrayPointValue,ode=QO();function iB(e,r){this.scene=e,this.uid=r,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var Gx=iB.prototype;Gx.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var r=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Go.isArrayOrTypedArray(this.textLabels)?(this.textLabels[r]||this.textLabels[r]===0)&&(e.textLabel=this.textLabels[r]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]],!0}};function lde(e,r,t){var n=(t+1)%3,a=(t+2)%3,o=[],i=[],l;for(l=0;l<e.length;++l){var u=e[l];isNaN(u[n])||!isFinite(u[n])||isNaN(u[a])||!isFinite(u[a])||(o.push([u[n],u[a]]),i.push(l))}var s=rde(o);for(l=0;l<s.length;++l)for(var f=s[l],c=0;c<f.length;++c)f[c]=i[f[c]];return{positions:e,cells:s,meshColor:r}}function sde(e){for(var r=[0,0,0],t=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],a=0;a<3;a++){var o=e[a];o&&o.copy_zstyle!==!1&&e[2].visible!==!1&&(o=e[2]),!(!o||!o.visible)&&(r[a]=o.width/2,t[a]=aB(o.color),n[a]=o.thickness)}return{capSize:r,color:t,lineWidth:n}}function eB(e){return e==null?0:e.indexOf("left")>-1?-1:e.indexOf("right")>-1?1:0}function rB(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function ude(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a<e.length;a++)n[a]=[r,t],e[a]&&(n[a][0]=eB(e[a]),n[a][1]=rB(e[a]));else n[0]=eB(e),n[1]=rB(e);return n}function fde(e,r){return r(e*4)}function cde(e){return nde[e]}function Vx(e,r,t,n,a){var o=null;if(Go.isArrayOrTypedArray(e)){o=[];for(var i=0;i<r;i++)e[i]===void 0?o[i]=n:o[i]=t(e[i],a)}else o=t(e,Go.identity);return o}function vde(e,r){var t=[],n=e.fullSceneLayout,a=e.dataScale,o=n.xaxis,i=n.yaxis,l=n.zaxis,u=r.marker,s=r.line,f=r.x||[],c=r.y||[],d=r.z||[],x=f.length,g=r.xcalendar,w=r.ycalendar,T=r.zcalendar,m,k,S,b,M,h;for(M=0;M<x;M++)m=o.d2l(f[M],0,g)*a[0],k=i.d2l(c[M],0,w)*a[1],S=l.d2l(d[M],0,T)*a[2],t[M]=[m,k,S];if(Array.isArray(r.text))h=r.text;else if(Go.isTypedArray(r.text))h=Array.from(r.text);else if(r.text!==void 0)for(h=new Array(x),M=0;M<x;M++)h[M]=r.text;function _(U,V){var K=n[U];return ade.tickText(K,K.d2l(V),!0).text}var y=r.texttemplate;if(y){var v=e.fullLayout,A=v._d3locale,p=Array.isArray(y),R=p?Math.min(y.length,x):x,E=p?function(U){return y[U]}:function(){return y};for(h=new Array(R),M=0;M<R;M++){var D={x:f[M],y:c[M],z:d[M]},F={xLabel:_("xaxis",f[M]),yLabel:_("yaxis",c[M]),zLabel:_("zaxis",d[M])},z={};ide(z,r,M),h[M]=Go.texttemplateString({data:[z,D,r._meta],fallback:r.texttemplatefallback,labels:F,locale:A,template:E(M)})}}if(b={position:t,mode:r.mode,text:h},"line"in r&&(b.lineColor=Wp(s,1,x),b.lineWidth=s.width,b.lineDashes=s.dash),"marker"in r){var I=tde(r);b.scatterColor=Wp(u,1,x),b.scatterSize=Vx(u.size,x,fde,20,I),b.scatterMarker=Vx(u.symbol,x,cde,"\u25CF"),b.scatterLineWidth=u.line.width,b.scatterLineColor=Wp(u.line,1,x),b.scatterAngle=0}"textposition"in r&&(b.textOffset=ude(r.textposition),b.textColor=Wp(r.textfont,1,x),b.textSize=Vx(r.textfont.size,x,Go.identity,12),b.textFontFamily=r.textfont.family,b.textFontWeight=r.textfont.weight,b.textFontStyle=r.textfont.style,b.textFontVariant=r.textfont.variant,b.textAngle=0);var L=["x","y","z"];for(b.project=[!1,!1,!1],b.projectScale=[1,1,1],b.projectOpacity=[1,1,1],M=0;M<3;++M){var P=r.projection[L[M]];(b.project[M]=P.show)&&(b.projectOpacity[M]=P.opacity,b.projectScale[M]=P.scale)}b.errorBounds=ode(r,a,n);var O=sde([r.error_x,r.error_y,r.error_z]);return b.errorColor=O.color,b.errorLineWidth=O.lineWidth,b.errorCapSize=O.capSize,b.delaunayAxis=r.surfaceaxis,b.delaunayColor=aB(r.surfacecolor),b}function tB(e){if(Go.isArrayOrTypedArray(e)){var r=e[0];return Go.isArrayOrTypedArray(r)&&(e=r),"rgb("+e.slice(0,3).map(function(t){return Math.round(t*255)})+")"}return null}function nB(e){return Go.isArrayOrTypedArray(e)?e.length===4&&typeof e[0]=="number"?tB(e):e.map(tB):null}Gx.update=function(e){var r=this.scene.glplot.gl,t,n,a,o,i=Hx.solid;this.data=e;var l=vde(this.scene,e);"mode"in l&&(this.mode=l.mode),"lineDashes"in l&&l.lineDashes in Hx&&(i=Hx[l.lineDashes]),this.color=nB(l.scatterColor)||nB(l.lineColor),this.dataPoints=l.position,t={gl:this.scene.glplot.gl,position:l.position,color:l.lineColor,lineWidth:l.lineWidth||1,dashes:i[0],dashScale:i[1],opacity:e.opacity,connectGaps:e.connectgaps},this.mode.indexOf("lines")!==-1?this.linePlot?this.linePlot.update(t):(this.linePlot=Q1e(t),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var u=e.opacity;if(e.marker&&e.marker.opacity!==void 0&&(u*=e.marker.opacity),n={gl:this.scene.glplot.gl,position:l.position,color:l.scatterColor,size:l.scatterSize,glyph:l.scatterMarker,opacity:u,orthographic:!0,lineWidth:l.scatterLineWidth,lineColor:l.scatterLineColor,project:l.project,projectScale:l.projectScale,projectOpacity:l.projectOpacity},this.mode.indexOf("markers")!==-1?this.scatterPlot?this.scatterPlot.update(n):(this.scatterPlot=jO(n),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),o={gl:this.scene.glplot.gl,position:l.position,glyph:l.text,color:l.textColor,size:l.textSize,angle:l.textAngle,alignment:l.textOffset,font:l.textFontFamily,fontWeight:l.textFontWeight,fontStyle:l.textFontStyle,fontVariant:l.textFontVariant,orthographic:!0,lineWidth:0,project:!1,opacity:e.opacity},this.textLabels=e.hovertext||e.text,this.mode.indexOf("text")!==-1?this.textMarkers?this.textMarkers.update(o):(this.textMarkers=jO(o),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),a={gl:this.scene.glplot.gl,position:l.position,color:l.errorColor,error:l.errorBounds,lineWidth:l.errorLineWidth,capSize:l.errorCapSize,opacity:e.opacity},this.errorBars?l.errorBounds?this.errorBars.update(a):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):l.errorBounds&&(this.errorBars=j1e(a),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),l.delaunayAxis>=0){var s=lde(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=ede(s),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};Gx.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function hde(e,r){var t=new iB(e,r.uid);return t.update(r),t}oB.exports=hde});var Jx=xe((m6e,cB)=>{"use strict";var Yo=Bs(),dde=Nn(),Zx=wi(),Yx=Do().axisHoverFormat,{hovertemplateAttrs:pde,texttemplateAttrs:gde,templatefallbackAttrs:sB}=mi(),uB=qn(),yde=Bx(),mde=Xp(),Ni=Dt().extendFlat,bde=ea().overrideAll,fB=(Ih(),Kn(Ph)).default,xde=Yo.line,js=Yo.marker,_de=js.line,wde=Ni({width:xde.width,dash:{valType:"enumerated",values:fB(yde),dflt:"solid"}},Zx("line"));function Xx(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var Wx=cB.exports=bde({x:Yo.x,y:Yo.y,z:{valType:"data_array"},text:Ni({},Yo.text,{}),texttemplate:gde(),texttemplatefallback:sB({editType:"calc"}),hovertext:Ni({},Yo.hovertext,{}),hovertemplate:pde(),hovertemplatefallback:sB(),xhoverformat:Yx("x"),yhoverformat:Yx("y"),zhoverformat:Yx("z"),mode:Ni({},Yo.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:Xx("x"),y:Xx("y"),z:Xx("z")},connectgaps:Yo.connectgaps,line:wde,marker:Ni({symbol:{valType:"enumerated",values:fB(mde),dflt:"circle",arrayOk:!0},size:Ni({},js.size,{dflt:8}),sizeref:js.sizeref,sizemin:js.sizemin,sizemode:js.sizemode,opacity:Ni({},js.opacity,{arrayOk:!1}),colorbar:js.colorbar,line:Ni({width:Ni({},_de.width,{arrayOk:!1})},Zx("marker.line"))},Zx("marker")),textposition:Ni({},Yo.textposition,{dflt:"top center"}),textfont:dde({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:uB.opacity,hoverinfo:Ni({},uB.hoverinfo)},"calc","nested");Wx.x.editType=Wx.y.editType=Wx.z.editType="calc+clearAxisTypes"});var dB=xe((b6e,hB)=>{"use strict";var vB=Cr(),Mde=rr(),$x=wa(),Tde=db(),Ade=pb(),kde=gb(),Sde=Jx();hB.exports=function(r,t,n,a){function o(x,g){return Mde.coerce(r,t,Sde,x,g)}var i=Cde(r,t,o,a);if(!i){t.visible=!1;return}o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),o("mode"),$x.hasMarkers(t)&&Tde(r,t,n,a,o,{noAngle:!0,noLineDash:!0,noSelect:!0}),$x.hasLines(t)&&(o("connectgaps"),Ade(r,t,n,a,o)),$x.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),kde(r,t,a,o,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var l=(t.line||{}).color,u=(t.marker||{}).color;o("surfaceaxis")>=0&&o("surfacecolor",l||u);for(var s=["x","y","z"],f=0;f<3;++f){var c="projection."+s[f];o(c+".show")&&(o(c+".opacity"),o(c+".scale"))}var d=vB.getComponentMethod("errorbars","supplyDefaults");d(r,t,l||u||n,{axis:"z"}),d(r,t,l||u||n,{axis:"y",inherit:"z"}),d(r,t,l||u||n,{axis:"x",inherit:"z"})};function Cde(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=vB.getComponentMethod("calendars","handleTraceDefaults");return u(e,r,["x","y","z"],n),o&&i&&l&&(a=Math.min(o.length,i.length,l.length),r._length=r._xlength=r._ylength=r._zlength=a),a}});var gB=xe((x6e,pB)=>{"use strict";var Ede=tp(),Lde=bb();pB.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return Ede(n,t),Lde(r,t),n}});var mB=xe((_6e,yB)=>{yB.exports=Rde;function Rde(e,r){if(typeof e!="string")throw new TypeError("must specify type string");if(r=r||{},typeof document=="undefined"&&!r.canvas)return null;var t=r.canvas||document.createElement("canvas");typeof r.width=="number"&&(t.width=r.width),typeof r.height=="number"&&(t.height=r.height);var n=r,a;try{var o=[e];e.indexOf("webgl")===0&&o.push("experimental-"+e);for(var i=0;i<o.length;i++)if(a=t.getContext(o[i],n),a)return a}catch(l){a=null}return a||null}});var xB=xe((w6e,bB)=>{var Dde=mB();bB.exports=function(r){return Dde("webgl",r)}});var MB=xe((M6e,wB)=>{"use strict";var _B=Xr(),Pde=function(){};wB.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=Pde);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=_B.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=_B.lightLine,n.style["z-index"]=30;var a=document.createElement("p");return a.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",a.style.position="relative",a.style.top="50%",a.style.left="50%",a.style.height="30%",a.style.width="50%",a.style.margin="-15% 0 0 -25%",n.appendChild(a),r.container.appendChild(n),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var kB=xe((T6e,AB)=>{"use strict";var eu=Vo(),Ide=rr(),zde=["xaxis","yaxis","zaxis"];function TB(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var Fde=TB.prototype;Fde.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[zde[n]];if(!a.visible){t.tickEnable[n]=!1,t.labelEnable[n]=!1,t.lineEnable[n]=!1,t.lineTickEnable[n]=!1,t.gridEnable[n]=!1,t.zeroEnable[n]=!1,t.backgroundEnable[n]=!1;continue}t.labels[n]=e._meta?Ide.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=eu(a.title.font.color)),a.title.font.family&&(t.labelFont[n]=a.title.font.family),a.title.font.size&&(t.labelSize[n]=a.title.font.size),a.title.font.weight&&(t.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(t.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(t.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(t.lineEnable[n]=a.showline),"linecolor"in a&&(t.lineColor[n]=eu(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=eu(a.gridcolor)),"gridwidth"in a&&(t.gridWidth[n]=a.gridwidth),a.type==="log"?t.zeroEnable[n]=!1:"zeroline"in a&&(t.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(t.zeroLineColor[n]=eu(a.zerolinecolor)),"zerolinewidth"in a&&(t.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?t.lineTickEnable[n]=!0:t.lineTickEnable[n]=!1,"ticklen"in a&&(t.lineTickLength[n]=t._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(t.lineTickColor[n]=eu(a.tickcolor)),"tickwidth"in a&&(t.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(t.tickAngle[n]=a.tickangle==="auto"?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(t.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(t.tickColor[n]=eu(a.tickfont.color)),a.tickfont.family&&(t.tickFont[n]=a.tickfont.family),a.tickfont.size&&(t.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(t.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(t.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(t.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?["ticks","all","allticks"].indexOf(a.mirror)!==-1?(t.lineTickMirror[n]=!0,t.lineMirror[n]=!0):a.mirror===!0?(t.lineTickMirror[n]=!1,t.lineMirror[n]=!0):(t.lineTickMirror[n]=!1,t.lineMirror[n]=!1):t.lineMirror[n]=!1,"showbackground"in a&&a.showbackground!==!1?(t.backgroundEnable[n]=!0,t.backgroundColor[n]=eu(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function Nde(e,r){var t=new TB;return t.merge(e,r),t}AB.exports=Nde});var EB=xe((A6e,CB)=>{"use strict";var qde=Vo(),Ode=["xaxis","yaxis","zaxis"];function SB(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var Bde=SB.prototype;Bde.merge=function(e){for(var r=0;r<3;++r){var t=e[Ode[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=qde(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function Ude(e){var r=new SB;return r.merge(e),r}CB.exports=Ude});var DB=xe((k6e,RB)=>{"use strict";RB.exports=Xde;var LB=Ot(),Hde=rr(),Vde=["xaxis","yaxis","zaxis"],Gde=[0,0,0];function Yde(e){for(var r=new Array(3),t=0;t<3;++t){for(var n=e[t],a=new Array(n.length),o=0;o<n.length;++o)a[o]=n[o].x;r[t]=a}return r}function Xde(e){for(var r=e.axesOptions,t=e.glplot.axesPixels,n=e.fullSceneLayout,a=[[],[],[]],o=0;o<3;++o){var i=n[Vde[o]];if(i._length=(t[o].hi-t[o].lo)*t[o].pixelsPerDataUnit/e.dataScale[o],Math.abs(i._length)===1/0||isNaN(i._length))a[o]=[];else{i._input_range=i.range.slice(),i.range[0]=t[o].lo/e.dataScale[o],i.range[1]=t[o].hi/e.dataScale[o],i._m=1/(e.dataScale[o]*t[o].pixelsPerDataUnit),i.range[0]===i.range[1]&&(i.range[0]-=1,i.range[1]+=1);var l=i.tickmode;if(i.tickmode==="auto"){i.tickmode="linear";var u=i.nticks||Hde.constrain(i._length/40,4,9);LB.autoTicks(i,Math.abs(i.range[1]-i.range[0])/u)}for(var s=LB.calcTicks(i,{msUTC:!0}),f=0;f<s.length;++f)s[f].x=s[f].x*e.dataScale[o],i.type==="date"&&(s[f].text=s[f].text.replace(/\<br\>/g," "));a[o]=s,i.tickmode=l}}r.ticks=a;for(var o=0;o<3;++o){Gde[o]=.5*(e.glplot.bounds[0][o]+e.glplot.bounds[1][o]);for(var f=0;f<2;++f)r.bounds[f][o]=e.glplot.bounds[f][o]}e.contourLevels=Yde(a)}});var OB=xe((S6e,qB)=>{"use strict";var zB=kn().gl_plot3d,Wde=zB.createCamera,PB=zB.createScene,Zde=xB(),Jde=z1(),$p=Cr(),va=rr(),Jp=va.preserveDrawingBuffer(),Kp=Ot(),qi=so(),$de=Vo(),Kde=MB(),Qde=tx(),jde=kB(),epe=EB(),rpe=DB(),tpe=Ku().applyAutorangeOptions,av,Zp,FB=!1;function NB(e,r){var t=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",t.appendChild(a),this.svgContainer=a,t.id=e.id,t.style.position="absolute",t.style.top=t.style.left="0px",t.style.width=t.style.height="100%",n.appendChild(t),this.fullLayout=r,this.id=e.id||"scene",this.fullSceneLayout=r[this.id],this.plotArgs=[[],{},{}],this.axesOptions=jde(r,r[this.id]),this.spikeOptions=epe(r[this.id]),this.container=t,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=$p.getComponentMethod("annotations3d","convert"),this.drawAnnotations=$p.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Gn=NB.prototype;Gn.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:Jp,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!Zp&&(av=document.createElement("canvas"),Zp=Zde({canvas:av,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!Zp))throw new Error("error creating static canvas/context for image server");r.gl=Zp,r.canvas=av}return r};var IB=!0;Gn.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=PB(r)}catch(n){if(e.staticMode||!IB||Jp)t=!1;else{va.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{Jp=r.glOptions.preserveDrawingBuffer=!0,e.glplot=PB(r)}catch(a){Jp=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return IB=!1,t};Gn.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=Wde(e.container,{center:[r.center.x,r.center.y,r.center.z],eye:[r.eye.x,r.eye.y,r.eye.z],up:[r.up.x,r.up.y,r.up.z],_ortho:t,zoomMin:.01,zoomMax:100,mode:"orbit"})};Gn.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return Kde(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,a=function(){var i={};return e.isCameraChanged(n)&&(i[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(i[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=i[e.id+".aspectmode"]="manual")),i},o=function(i){if(i.fullSceneLayout.dragmode!==!1){var l=a();i.saveLayout(n),i.graphDiv.emit("plotly_relayout",l)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){o(e)}),e.glplot.canvas.addEventListener("touchstart",function(){FB=!0}),e.glplot.canvas.addEventListener("wheel",function(i){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var l=i.deltaX>i.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:l*u.x,y:l*u.y,z:l*u.z})}o(e)}},Jde?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var i=a();e.graphDiv.emit("plotly_relayouting",i)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(i){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:i,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Gn.render=function(){var e=this,r=e.graphDiv,t,n=e.svgContainer,a=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var o=r._fullLayout._invScaleX,i=r._fullLayout._invScaleY,l=a.width*o,u=a.height*i;n.setAttributeNS(null,"viewBox","0 0 "+l+" "+u),n.setAttributeNS(null,"width",l),n.setAttributeNS(null,"height",u),rpe(e),e.glplot.axes.update(e.axesOptions);for(var s=Object.keys(e.traces),f=null,c=e.glplot.selection,d=0;d<s.length;++d)t=e.traces[s[d]],t.data.hoverinfo!=="skip"&&t.handlePick(c)&&(f=t),t.setContourLevels&&t.setContourLevels();function x(A,p,R){var E=e.fullSceneLayout[A+"axis"];return E.type!=="log"&&(p=E.d2l(p)),Kp.hoverLabelText(E,p,R)}if(f!==null){var g=Qde(e.glplot.cameraParams,c.dataCoordinate);t=f.data;var w=r._fullData[t.index],T=c.index,m={xLabel:x("x",c.traceCoordinate[0],t.xhoverformat),yLabel:x("y",c.traceCoordinate[1],t.yhoverformat),zLabel:x("z",c.traceCoordinate[2],t.zhoverformat)},k=qi.castHoverinfo(w,e.fullLayout,T),S=(k||"").split("+"),b=k&&k==="all";!w.hovertemplate&&!b&&(S.indexOf("x")===-1&&(m.xLabel=void 0),S.indexOf("y")===-1&&(m.yLabel=void 0),S.indexOf("z")===-1&&(m.zLabel=void 0),S.indexOf("text")===-1&&(c.textLabel=void 0),S.indexOf("name")===-1&&(f.name=void 0));var M,h=[];t.type==="cone"||t.type==="streamtube"?(m.uLabel=x("x",c.traceCoordinate[3],t.uhoverformat),(b||S.indexOf("u")!==-1)&&h.push("u: "+m.uLabel),m.vLabel=x("y",c.traceCoordinate[4],t.vhoverformat),(b||S.indexOf("v")!==-1)&&h.push("v: "+m.vLabel),m.wLabel=x("z",c.traceCoordinate[5],t.whoverformat),(b||S.indexOf("w")!==-1)&&h.push("w: "+m.wLabel),m.normLabel=c.traceCoordinate[6].toPrecision(3),(b||S.indexOf("norm")!==-1)&&h.push("norm: "+m.normLabel),t.type==="streamtube"&&(m.divergenceLabel=c.traceCoordinate[7].toPrecision(3),(b||S.indexOf("divergence")!==-1)&&h.push("divergence: "+m.divergenceLabel)),c.textLabel&&h.push(c.textLabel),M=h.join("<br>")):t.type==="isosurface"||t.type==="volume"?(m.valueLabel=Kp.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),t.valuehoverformat),h.push("value: "+m.valueLabel),c.textLabel&&h.push(c.textLabel),M=h.join("<br>")):M=c.textLabel;var _={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};qi.appendArrayPointValue(_,w,T),t._module.eventData&&(_=w._module.eventData(_,c,w,{},T));var y={points:[_]};if(e.fullSceneLayout.hovermode){var v=[];qi.loneHover({trace:w,x:(.5+.5*g[0]/g[3])*l,y:(.5-.5*g[1]/g[3])*u,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:M,name:f.name,color:qi.castHoverOption(w,T,"bgcolor")||f.color,borderColor:qi.castHoverOption(w,T,"bordercolor"),fontFamily:qi.castHoverOption(w,T,"font.family"),fontSize:qi.castHoverOption(w,T,"font.size"),fontColor:qi.castHoverOption(w,T,"font.color"),nameLength:qi.castHoverOption(w,T,"namelength"),textAlign:qi.castHoverOption(w,T,"align"),hovertemplate:va.castOption(w,T,"hovertemplate"),hovertemplateLabels:va.extendFlat({},_,m),eventData:[_]},{container:n,gd:r,inOut_bbox:v}),_.bbox=v[0]}c.distance<5&&(c.buttons||FB)?r.emit("plotly_click",y):r.emit("plotly_hover",y),this.oldEventData=y}else qi.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Gn.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){va.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var iv=["xaxis","yaxis","zaxis"];function npe(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=iv[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!va.isArrayOrTypedArray(u))t[0][a]=Math.min(t[0][a],0),t[1][a]=Math.max(t[1][a],f-1);else for(var c,d=0;d<(f||u.length);d++)if(va.isArrayOrTypedArray(u[d]))for(var x=0;x<u[d].length;++x)c=l.d2l(u[d][x],0,s),!isNaN(c)&&isFinite(c)&&(t[0][a]=Math.min(t[0][a],c),t[1][a]=Math.max(t[1][a],c));else c=l.d2l(u[d],0,s),!isNaN(c)&&isFinite(c)&&(t[0][a]=Math.min(t[0][a],c),t[1][a]=Math.max(t[1][a],c))}}function ape(e,r){for(var t=e.fullSceneLayout,n=t.annotations||[],a=0;a<3;a++)for(var o=iv[a],i=o.charAt(0),l=t[o],u=0;u<n.length;u++){var s=n[u];if(s.visible){var f=l.r2l(s[i]);!isNaN(f)&&isFinite(f)&&(r[0][a]=Math.min(r[0][a],f),r[1][a]=Math.max(r[1][a],f))}}}Gn.plot=function(e,r,t){var n=this;if(n.plotArgs=[e,r,t],!n.glplot.contextLost){var a,o,i,l,u,s,f=r[n.id],c=t[n.id];n.fullLayout=r,n.fullSceneLayout=f,n.axesOptions.merge(r,f),n.spikeOptions.merge(f),n.setViewport(f),n.updateFx(f.dragmode,f.hovermode),n.camera.enableWheel=n.graphDiv._context._scrollZoom.gl3d,n.glplot.setClearColor($de(f.bgcolor)),n.setConvert(u),e?Array.isArray(e)||(e=[e]):e=[];var d=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(i=0;i<e.length;++i)a=e[i],!(a.visible!==!0||a._length===0)&&npe(this,a,d);ape(this,d);var x=[1,1,1];for(l=0;l<3;++l)d[1][l]===d[0][l]?x[l]=1:x[l]=1/(d[1][l]-d[0][l]);for(n.dataScale=x,n.convertAnnotations(this),i=0;i<e.length;++i)a=e[i],!(a.visible!==!0||a._length===0)&&(o=n.traces[a.uid],o?o.data.type===a.type?o.update(a):(o.dispose(),o=a._module.plot(this,a),n.traces[a.uid]=o):(o=a._module.plot(this,a),n.traces[a.uid]=o),o.name=a.name);var g=Object.keys(n.traces);e:for(i=0;i<g.length;++i){for(l=0;l<e.length;++l)if(e[l].uid===g[i]&&e[l].visible===!0&&e[l]._length!==0)continue e;o=n.traces[g[i]],o.dispose(),delete n.traces[g[i]]}n.glplot.objects.sort(function(U,V){return U._trace.data.index-V._trace.data.index});var w=[[0,0,0],[0,0,0]],T=[],m={};for(i=0;i<3;++i){u=f[iv[i]],s=u.type,s in m?(m[s].acc*=x[i],m[s].count+=1):m[s]={acc:x[i],count:1};var k;if(u.autorange){w[0][i]=1/0,w[1][i]=-1/0;var S=n.glplot.objects,b=n.fullSceneLayout.annotations||[],M=u._name.charAt(0);for(l=0;l<S.length;l++){var h=S[l],_=h.bounds,y=h._trace.data._pad||0;h.constructor.name==="ErrorBars"&&u._lowerLogErrorBound?w[0][i]=Math.min(w[0][i],u._lowerLogErrorBound):w[0][i]=Math.min(w[0][i],_[0][i]/x[i]-y),w[1][i]=Math.max(w[1][i],_[1][i]/x[i]+y)}for(l=0;l<b.length;l++){var v=b[l];if(v.visible){var A=u.r2l(v[M]);w[0][i]=Math.min(w[0][i],A),w[1][i]=Math.max(w[1][i],A)}}if("rangemode"in u&&u.rangemode==="tozero"&&(w[0][i]=Math.min(w[0][i],0),w[1][i]=Math.max(w[1][i],0)),w[0][i]>w[1][i])w[0][i]=-1,w[1][i]=1;else{var p=w[1][i]-w[0][i];w[0][i]-=p/32,w[1][i]+=p/32}if(k=[w[0][i],w[1][i]],k=tpe(k,u),w[0][i]=k[0],w[1][i]=k[1],u.isReversed()){var R=w[0][i];w[0][i]=w[1][i],w[1][i]=R}}else k=u.range,w[0][i]=u.r2l(k[0]),w[1][i]=u.r2l(k[1]);w[0][i]===w[1][i]&&(w[0][i]-=1,w[1][i]+=1),T[i]=w[1][i]-w[0][i],u.range=[w[0][i],w[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*x[i],max:u.range[1]*x[i]})}var E,D=f.aspectmode;if(D==="cube")E=[1,1,1];else if(D==="manual"){var F=f.aspectratio;E=[F.x,F.y,F.z]}else if(D==="auto"||D==="data"){var z=[1,1,1];for(i=0;i<3;++i){u=f[iv[i]],s=u.type;var I=m[s];z[i]=Math.pow(I.acc,1/I.count)/x[i]}D==="data"||Math.max.apply(null,z)/Math.min.apply(null,z)<=4?E=z:E=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=E[0],f.aspectratio.y=c.aspectratio.y=E[1],f.aspectratio.z=c.aspectratio.z=E[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var L=f.domain||null,P=r._size||null;if(L&&P){var O=n.container.style;O.position="absolute",O.left=P.l+L.x[0]*P.w+"px",O.top=P.t+(1-L.y[1])*P.h+"px",O.width=P.w*(L.x[1]-L.x[0])+"px",O.height=P.h*(L.y[1]-L.y[0])+"px"}n.glplot.redraw()}};Gn.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function ipe(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function ope(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Gn.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),ope(e.camera)};Gn.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,ipe(t)),r.glplot.setAspectratio(e.aspectratio);var n=t.projection.type==="orthographic",a=r.camera._ortho;n!==a&&(r.glplot.redraw(),r.glplot.clearRGBA(),r.glplot.dispose(),r.initializeGLPlot())};Gn.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=va.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,c,d){var x=["up","center","eye"],g=["x","y","z"];return f[x[c]]&&s[x[c]][g[d]]===f[x[c]][g[d]]}var i=!1;if(a===void 0)i=!0;else{for(var l=0;l<3;l++)for(var u=0;u<3;u++)if(!o(t,a,l,u)){i=!0;break}(!a.projection||t.projection&&t.projection.type!==a.projection.type)&&(i=!0)}return i};Gn.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=va.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};Gn.saveLayout=function(e){var r=this,t=r.fullLayout,n,a,o,i,l,u,s=r.isCameraChanged(e),f=r.isAspectChanged(e),c=s||f;if(c){var d={};if(s&&(n=r.getCamera(),a=va.nestedProperty(e,r.id+".camera"),o=a.get(),d[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=va.nestedProperty(e,r.id+".aspectratio"),u=l.get(),d[r.id+".aspectratio"]=u),$p.call("_storeDirectGUIEdit",e,t._preGUI,d),s){a.set(n);var x=va.nestedProperty(t,r.id+".camera");x.set(n)}if(f){l.set(i);var g=va.nestedProperty(t,r.id+".aspectratio");g.set(i),r.glplot.redraw()}}return c};Gn.updateFx=function(e,r){var t=this,n=t.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var a=t.graphDiv,o=a._fullLayout,i=t.fullSceneLayout.camera,l=i.up.x,u=i.up.y,s=i.up.z;if(s/Math.sqrt(l*l+u*u+s*s)<.999){var f=t.id+".camera.up",c={x:0,y:0,z:1},d={};d[f]=c;var x=a.layout;$p.call("_storeDirectGUIEdit",x,o._preGUI,d),i.up=c,va.nestedProperty(x,f).set(c)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function lpe(e,r,t){for(var n=0,a=t-1;n<a;++n,--a)for(var o=0;o<r;++o)for(var i=0;i<4;++i){var l=4*(r*n+o)+i,u=4*(r*a+o)+i,s=e[l];e[l]=e[u],e[u]=s}}function spe(e,r,t){for(var n=0;n<t;++n)for(var a=0;a<r;++a){var o=4*(r*n+a),i=e[o+3];if(i>0)for(var l=255/i,u=0;u<3;++u)e[o+u]=Math.min(l*e[o+u],255)}}Gn.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(av),r.glplot.redraw();var t=r.glplot.gl,n=t.drawingBufferWidth,a=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*a*4);t.readPixels(0,0,n,a,t.RGBA,t.UNSIGNED_BYTE,o),lpe(o,n,a),spe(o,n,a);var i=document.createElement("canvas");i.width=n,i.height=a;var l=i.getContext("2d",{willReadFrequently:!0}),u=l.createImageData(n,a);u.data.set(o),l.putImageData(u,0,0);var s;switch(e){case"jpeg":s=i.toDataURL("image/jpeg");break;case"webp":s=i.toDataURL("image/webp");break;default:s=i.toDataURL("image/png")}return r.staticMode&&r.container.removeChild(av),s};Gn.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[iv[r]];Kp.setConvert(t,e.fullLayout),t.setScale=va.noop}};Gn.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},Kp.setConvert(e._mockAxis,t)};qB.exports=NB});var UB=xe((C6e,BB)=>{"use strict";BB.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var Qx=xe((E6e,HB)=>{"use strict";var upe=Xr(),Or=Ja(),Kx=Dt().extendFlat,fpe=ea().overrideAll;HB.exports=fpe({visible:Or.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:upe.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Or.color,categoryorder:Or.categoryorder,categoryarray:Or.categoryarray,title:{text:Or.title.text,font:Or.title.font},type:Kx({},Or.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Or.autotypenumbers,autorange:Or.autorange,autorangeoptions:{minallowed:Or.autorangeoptions.minallowed,maxallowed:Or.autorangeoptions.maxallowed,clipmin:Or.autorangeoptions.clipmin,clipmax:Or.autorangeoptions.clipmax,include:Or.autorangeoptions.include,editType:"plot"},rangemode:Or.rangemode,minallowed:Or.minallowed,maxallowed:Or.maxallowed,range:Kx({},Or.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Or.minor.tickmode,nticks:Or.nticks,tick0:Or.tick0,dtick:Or.dtick,tickvals:Or.tickvals,ticktext:Or.ticktext,ticks:Or.ticks,mirror:Or.mirror,ticklen:Or.ticklen,tickwidth:Or.tickwidth,tickcolor:Or.tickcolor,showticklabels:Or.showticklabels,labelalias:Or.labelalias,tickfont:Or.tickfont,tickangle:Or.tickangle,tickprefix:Or.tickprefix,showtickprefix:Or.showtickprefix,ticksuffix:Or.ticksuffix,showticksuffix:Or.showticksuffix,showexponent:Or.showexponent,exponentformat:Or.exponentformat,minexponent:Or.minexponent,separatethousands:Or.separatethousands,tickformat:Or.tickformat,tickformatstops:Or.tickformatstops,hoverformat:Or.hoverformat,showline:Or.showline,linecolor:Or.linecolor,linewidth:Or.linewidth,showgrid:Or.showgrid,gridcolor:Kx({},Or.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Or.gridwidth,zeroline:Or.zeroline,zerolinecolor:Or.zerolinecolor,zerolinewidth:Or.zerolinewidth},"plot","from-root")});var t4=xe((L6e,VB)=>{"use strict";var jx=Qx(),cpe=Op().attributes,e4=Dt().extendFlat,vpe=rr().counterRegex;function r4(e,r,t){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}VB.exports={_arrayAttrRegexps:[vpe("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:e4(r4(0,0,1),{}),center:e4(r4(0,0,0),{}),eye:e4(r4(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:cpe({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:jx,yaxis:jx,zaxis:jx,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var YB=xe((R6e,GB)=>{"use strict";var hpe=rr(),dpe=wt(),ppe=Op().defaults;GB.exports=function(r,t,n,a){var o=a.type,i=a.attributes,l=a.handleDefaults,u=a.partition||"x",s=t._subplots[o],f=s.length,c=f&&s[0].replace(/\d+$/,""),d,x;function g(k,S){return hpe.coerce(d,x,i,k,S)}for(var w=0;w<f;w++){var T=s[w];r[T]?d=r[T]:d=r[T]={},x=dpe.newContainer(t,T,c),a.noUirevision||g("uirevision",t.uirevision);var m={};m[u]=[w/f,(w+1)/f],ppe(x,t,g,m),a.id=T,l(d,x,g,a)}}});var JB=xe((D6e,ZB)=>{"use strict";var gpe=Xr(),XB=rr(),ype=wt(),mpe=Qx(),bpe=qb(),xpe=cp(),WB=["xaxis","yaxis","zaxis"],_pe=13600/187;ZB.exports=function(r,t,n){var a,o;function i(s,f){return XB.coerce(a,o,mpe,s,f)}for(var l=0;l<WB.length;l++){var u=WB[l];a=r[u]||{},o=ype.newContainer(t,u),o._id=u[0]+n.scene,o._name=u,bpe(a,o,i,n),xpe(a,o,i,{font:n.font,letter:u[0],data:n.data,showGrid:!0,noAutotickangles:!0,noMinorloglabels:!0,noTicklabelindex:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,noUnifiedhovertitle:!0,bgColor:n.bgColor,calendar:n.calendar},n.fullLayout),i("gridcolor",gpe.mix(o.color,n.bgColor,_pe)),i("title.text",u[0]),o.setScale=XB.noop,i("showspikes")&&(i("spikesides"),i("spikethickness"),i("spikecolor",o.color)),i("showaxeslabels"),i("showbackground")&&i("backgroundcolor")}}});var jB=xe((P6e,QB)=>{"use strict";var wpe=rr(),Mpe=Xr(),Tpe=Cr(),Ape=YB(),kpe=JB(),$B=t4(),Spe=B0().getSubplotData,KB="gl3d";QB.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=wpe.validate(r[i],$B[i]);if(l)return r[i]}}Ape(r,t,n,{type:KB,attributes:$B,handleDefaults:Cpe,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function Cpe(e,r,t,n){for(var a=t("bgcolor"),o=Mpe.combine(a,n.paper_bgcolor),i=["up","center","eye"],l=0;l<i.length;l++)t("camera."+i[l]+".x"),t("camera."+i[l]+".y"),t("camera."+i[l]+".z");t("camera.projection.type");var u=!!t("aspectratio.x")&&!!t("aspectratio.y")&&!!t("aspectratio.z"),s=u?"manual":"auto",f=t("aspectmode",s);u||(e.aspectratio=r.aspectratio={x:1,y:1,z:1},f==="manual"&&(r.aspectmode="auto"),e.aspectmode=r.aspectmode);var c=Spe(n.fullData,KB,n.id);kpe(e,r,{font:n.font,scene:n.id,data:c,bgColor:o,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),Tpe.getComponentMethod("annotations3d","handleDefaults")(e,r,n);var d=n.getDfltFromLayout("dragmode");if(d!==!1&&!d)if(d="orbit",e.camera&&e.camera.up){var x=e.camera.up.x,g=e.camera.up.y,w=e.camera.up.z;w!==0&&(!x||!g||!w||w/Math.sqrt(x*x+g*g+w*w)>.999)&&(d="turntable")}else d="turntable";t("dragmode",d),t("hovermode",n.getDfltFromLayout("hovermode"))}});var Bl=xe(ha=>{"use strict";var Epe=ea().overrideAll,Lpe=ts(),Rpe=OB(),Dpe=B0().getSubplotData,Ppe=rr(),Ipe=hl(),Ff="gl3d",n4="scene";ha.name=Ff;ha.attr=n4;ha.idRoot=n4;ha.idRegex=ha.attrRegex=Ppe.counterRegex("scene");ha.attributes=UB();ha.layoutAttributes=t4();ha.baseLayoutAttrOverrides=Epe({hoverlabel:Lpe.hoverlabel},"plot","nested");ha.supplyLayoutDefaults=jB();ha.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[Ff],o=0;o<a.length;o++){var i=a[o],l=Dpe(n,Ff,i),u=t[i],s=u.camera,f=u._scene;f||(f=new Rpe({id:i,graphDiv:r,container:r.querySelector(".gl-container"),staticPlot:r._context.staticPlot,plotGlPixelRatio:r._context.plotGlPixelRatio,camera:s},t),u._scene=f),f.viewInitial||(f.viewInitial={up:{x:s.up.x,y:s.up.y,z:s.up.z},eye:{x:s.eye.x,y:s.eye.y,z:s.eye.z},center:{x:s.center.x,y:s.center.y,z:s.center.z}}),f.plot(l,t,r.layout)}};ha.clean=function(e,r,t,n){for(var a=n._subplots[Ff]||[],o=0;o<a.length;o++){var i=a[o];!r[i]&&n[i]._scene&&(n[i]._scene.destroy(),n._infolayer&&n._infolayer.selectAll(".annotation-"+i).remove())}};ha.toSVG=function(e){for(var r=e._fullLayout,t=r._subplots[Ff],n=r._size,a=0;a<t.length;a++){var o=r[t[a]],i=o.domain,l=o._scene,u=l.toImage("png"),s=r._glimages.append("svg:image");s.attr({xmlns:Ipe.svg,"xlink:href":u,x:n.l+n.w*i.x[0],y:n.t+n.h*(1-i.y[1]),width:n.w*(i.x[1]-i.x[0]),height:n.h*(i.y[1]-i.y[0]),preserveAspectRatio:"none"}),l.destroy()}};ha.cleanId=function(r){if(r.match(/^scene[0-9]*$/)){var t=r.slice(5);return t==="1"&&(t=""),n4+t}};ha.updateFx=function(e){for(var r=e._fullLayout,t=r._subplots[Ff],n=0;n<t.length;n++){var a=r[t[n]]._scene;a.updateFx(r.dragmode,r.hovermode)}}});var rU=xe((z6e,eU)=>{"use strict";eU.exports={plot:lB(),attributes:Jx(),markerSymbols:Xp(),supplyDefaults:dB(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:gB(),moduleType:"trace",name:"scatter3d",basePlotModule:Bl(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var nU=xe((F6e,tU)=>{"use strict";tU.exports=rU()});var ov=xe((N6e,oU)=>{"use strict";var aU=Xr(),zpe=wi(),a4=Do().axisHoverFormat,{hovertemplateAttrs:Fpe,templatefallbackAttrs:Npe}=mi(),iU=qn(),i4=Dt().extendFlat,qpe=ea().overrideAll;function o4(e){return{valType:"boolean",dflt:!1}}function l4(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:o4("x"),y:o4("y"),z:o4("z")},color:{valType:"color",dflt:aU.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:aU.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var s4=oU.exports=qpe(i4({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Fpe(),hovertemplatefallback:Npe(),xhoverformat:a4("x"),yhoverformat:a4("y"),zhoverformat:a4("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},zpe("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:l4("x"),y:l4("y"),z:l4("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:i4({},iU.hoverinfo),showlegend:i4({},iU.showlegend,{dflt:!1})}),"calc","nested");s4.x.editType=s4.y.editType=s4.z.editType="calc+clearAxisTypes"});var f4=xe((q6e,uU)=>{"use strict";var Ope=Cr(),lU=rr(),Bpe=Qi(),Upe=ov(),u4=.1;function Hpe(e,r){for(var t=[],n=32,a=0;a<n;a++){var o=a/(n-1),i=r+(1-r)*(1-Math.pow(Math.sin(e*o*Math.PI),2));t.push([o,Math.max(0,Math.min(1,i))])}return t}function Vpe(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 n=e[t];if(n.length!==2||+n[0]<r)return!1;r=+n[0]}return!0}function Gpe(e,r,t,n){var a,o;function i(T,m){return lU.coerce(e,r,Upe,T,m)}var l=i("x"),u=i("y"),s=i("z");if(!s||!s.length||l&&l.length<1||u&&u.length<1){r.visible=!1;return}r._xlength=Array.isArray(l)&&lU.isArrayOrTypedArray(l[0])?s.length:s[0].length,r._ylength=s.length;var f=Ope.getComponentMethod("calendars","handleTraceDefaults");f(e,r,["x","y","z"],n),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat"),i("zhoverformat"),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lightposition.x","lightposition.y","lightposition.z","hidesurface","connectgaps","opacity"].forEach(function(T){i(T)});var c=i("surfacecolor"),d=["x","y","z"];for(a=0;a<3;++a){var x="contours."+d[a],g=i(x+".show"),w=i(x+".highlight");if(g||w)for(o=0;o<3;++o)i(x+".project."+d[o]);g&&(i(x+".color"),i(x+".width"),i(x+".usecolormap")),w&&(i(x+".highlightcolor"),i(x+".highlightwidth")),i(x+".start"),i(x+".end"),i(x+".size")}Bpe(e,r,n,i,{prefix:"",cLetter:"c"}),sU(e,r,n,i),r._length=null}function sU(e,r,t,n){var a=n("opacityscale");a==="max"?r.opacityscale=[[0,u4],[1,1]]:a==="min"?r.opacityscale=[[0,1],[1,u4]]:a==="extremes"?r.opacityscale=Hpe(1,u4):Vpe(a)||(r.opacityscale=void 0)}uU.exports={supplyDefaults:Gpe,opacityscaleDefaults:sU}});var vU=xe((O6e,cU)=>{"use strict";var fU=pl();cU.exports=function(r,t){t.surfacecolor?fU(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):fU(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var gU=xe((B6e,pU)=>{"use strict";var Ype=rr(),hU=.01,Xpe=[[-1,0],[1,0],[0,-1],[0,1]];function Wpe(e){return .5-.25*Math.min(1,e*.5)}pU.exports=function(r,t){var n=1,a;for(dU(r,t),a=0;a<t.length&&!(t[a][2]<4);a++);for(t=t.slice(a),a=0;a<100&&n>hU;a++)n=dU(r,t,Wpe(n));return n>hU&&Ype.log("interp2d didn't converge quickly",n),r};function dU(e,r,t){var n=0,a,o,i,l,u,s,f,c,d,x,g,w,T;for(l=0;l<r.length;l++){for(a=r[l],o=a[0],i=a[1],g=e[o][i],x=0,d=0,u=0;u<4;u++)s=Xpe[u],f=e[o+s[0]],f&&(c=f[i+s[1]],c!==void 0&&(x===0?w=T=c:(w=Math.min(w,c),T=Math.max(T,c)),d++,x+=c));if(d===0)throw"iterateInterp2d order is wrong: no defined neighbors";e[o][i]=x/d,g===void 0?d<4&&(n=1):(e[o][i]=(1+t)*e[o][i]-t*g,T>w&&(n=Math.max(n,Math.abs(e[o][i]-g)/(T-w))))}return n}});var mU=xe((U6e,yU)=>{"use strict";var Zpe=rr().maxRowLength;yU.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=Zpe(r),s,f,c,d,x,g,w,T;for(f=0;f<r.length;f++)for(s=i,i=o,o=r[f+1]||[],c=0;c<u;c++)i[c]===void 0&&(g=(i[c-1]!==void 0?1:0)+(i[c+1]!==void 0?1:0)+(s[c]!==void 0?1:0)+(o[c]!==void 0?1:0),g?(f===0&&g++,c===0&&g++,f===r.length-1&&g++,c===i.length-1&&g++,g<4&&(n[[f,c]]=[f,c,g]),t.push([f,c,g])):a.push([f,c]));for(;a.length;){for(w={},T=!1,x=a.length-1;x>=0;x--)d=a[x],f=d[0],c=d[1],g=((n[[f-1,c]]||l)[2]+(n[[f+1,c]]||l)[2]+(n[[f,c-1]]||l)[2]+(n[[f,c+1]]||l)[2])/20,g&&(w[d]=[f,c,g],a.splice(x,1),T=!0);if(!T)throw"findEmpties iterated with no new neighbors";for(d in w)n[d]=w[d],t.push(w[d])}return t.sort(function(m,k){return k[2]-m[2]})}});var TU=xe((H6e,MU)=>{"use strict";var Jpe=kn().gl_surface3d,Nf=kn().ndarray,$pe=kn().ndarray_linear_interpolate.d2,Kpe=gU(),Qpe=mU(),lv=rr().isArrayOrTypedArray,jpe=Ol().parseColorScale,bU=Vo(),ege=ji().extractOpts;function _U(e,r,t){this.scene=e,this.uid=t,this.surface=r,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var Oi=_U.prototype;Oi.getXat=function(e,r,t,n){var a=lv(this.data.x)?lv(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};Oi.getYat=function(e,r,t,n){var a=lv(this.data.y)?lv(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};Oi.getZat=function(e,r,t,n){var a=this.data.z[r][e];return a===null&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[r][e]),t===void 0?a:n.d2l(a,0,t)};Oi.handlePick=function(e){if(e.object===this.surface){var r=(e.data.index[0]-1)/this.dataScaleX-1,t=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(r),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(t),this.data._ylength-1),0);e.index=[n,a],e.traceCoordinate=[this.getXat(n,a),this.getYat(n,a),this.getZat(n,a)],e.dataCoordinate=[this.getXat(n,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var o=0;o<3;o++){var i=e.dataCoordinate[o];i!=null&&(e.dataCoordinate[o]*=this.scene.dataScale[o])}var l=this.data.hovertext||this.data.text;return lv(l)&&l[a]&&l[a][n]!==void 0?e.textLabel=l[a][n]:l?e.textLabel=l:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function rge(e){var r=e[0].rgb,t=e[e.length-1].rgb;return r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2]&&r[3]===t[3]}var qf=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function tge(e,r){if(e<r)return 0;for(var t=0;Math.floor(e%r)===0;)e/=r,t++;return t}function c4(e){for(var r=[],t=0;t<qf.length;t++){var n=qf[t];r.push(tge(e,n))}return r}function nge(e){for(var r=c4(e),t=e,n=0;n<qf.length;n++)if(r[n]>0){t=qf[n];break}return t}function age(e,r){if(!(e<1||r<1)){for(var t=c4(e),n=c4(r),a=1,o=0;o<qf.length;o++)a*=Math.pow(qf[o],Math.max(t[o],n[o]));return a}}function ige(e){if(e.length!==0){for(var r=1,t=0;t<e.length;t++)r=age(r,e[t]);return r}}Oi.calcXnums=function(e){var r,t=[];for(r=1;r<e;r++){var n=this.getXat(r-1,0),a=this.getXat(r,0);a!==n&&n!==void 0&&n!==null&&a!==void 0&&a!==null?t[r-1]=Math.abs(a-n):t[r-1]=0}var o=0;for(r=1;r<e;r++)o+=t[r-1];for(r=1;r<e;r++)t[r-1]===0?t[r-1]=1:t[r-1]=Math.round(o/t[r-1]);return t};Oi.calcYnums=function(e){var r,t=[];for(r=1;r<e;r++){var n=this.getYat(0,r-1),a=this.getYat(0,r);a!==n&&n!==void 0&&n!==null&&a!==void 0&&a!==null?t[r-1]=Math.abs(a-n):t[r-1]=0}var o=0;for(r=1;r<e;r++)o+=t[r-1];for(r=1;r<e;r++)t[r-1]===0?t[r-1]=1:t[r-1]=Math.round(o/t[r-1]);return t};var wU=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],xU=wU[9],Qp=wU[13];Oi.estimateScale=function(e,r){for(var t=r===0?this.calcXnums(e):this.calcYnums(e),n=1+ige(t);n<xU;)n*=2;for(;n>Qp;)n--,n/=nge(n),n++,n<xU&&(n=Qp);var a=Math.round(n/e);return a>1?a:1};function oge(e,r,t){var n=t[8]+t[2]*r[0]+t[5]*r[1];return e[0]=(t[6]+t[0]*r[0]+t[3]*r[1])/n,e[1]=(t[7]+t[1]*r[0]+t[4]*r[1])/n,e}function lge(e,r,t){return sge(e,r,oge,t),e}function sge(e,r,t,n){for(var a=[0,0],o=e.shape[0],i=e.shape[1],l=0;l<o;l++)for(var u=0;u<i;u++)t(a,[l,u],n),e.set(l,u,$pe(r,a[0],a[1]));return e}Oi.refineCoords=function(e){for(var r=this.dataScaleX,t=this.dataScaleY,n=e[0].shape[0],a=e[0].shape[1],o=Math.floor(e[0].shape[0]*r+1)|0,i=Math.floor(e[0].shape[1]*t+1)|0,l=1+n+1,u=1+a+1,s=Nf(new Float32Array(l*u),[l,u]),f=[1/r,0,0,0,1/t,0,0,0,1],c=0;c<e.length;++c){this.surface.padField(s,e[c]);var d=Nf(new Float32Array(o*i),[o,i]);lge(d,s,f),e[c]=d}};function uge(e,r){for(var t=!1,n=0;n<e.length;n++)if(r===e[n]){t=!0;break}t===!1&&e.push(r)}Oi.setContourLevels=function(){var e=[[],[],[]],r=[!1,!1,!1],t=!1,n,a,o;for(n=0;n<3;++n)if(this.showContour[n]&&(t=!0,this.contourSize[n]>0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(r[n]=!0,a=this.contourStart[n];a<this.contourEnd[n];a+=this.contourSize[n])o=a*this.scene.dataScale[n],uge(e[n],o);if(t){var i=[[],[],[]];for(n=0;n<3;++n)this.showContour[n]&&(i[n]=r[n]?e[n]:this.scene.contourLevels[n]);this.surface.update({levels:i})}};Oi.update=function(e){var r=this.scene,t=r.fullSceneLayout,n=this.surface,a=jpe(e),o=r.dataScale,i=e.z[0].length,l=e._ylength,u=r.contourLevels;this.data=e;var s,f,c,d,x=[];for(s=0;s<3;s++)for(x[s]=[],f=0;f<i;f++)x[s][f]=[];for(f=0;f<i;f++)for(c=0;c<l;c++)x[0][f][c]=this.getXat(f,c,e.xcalendar,t.xaxis),x[1][f][c]=this.getYat(f,c,e.ycalendar,t.yaxis),x[2][f][c]=this.getZat(f,c,e.zcalendar,t.zaxis);if(e.connectgaps)for(e._emptypoints=Qpe(x[2]),Kpe(x[2],e._emptypoints),e._interpolatedZ=[],f=0;f<i;f++)for(e._interpolatedZ[f]=[],c=0;c<l;c++)e._interpolatedZ[f][c]=x[2][f][c];for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)d=x[s][f][c],d==null?x[s][f][c]=NaN:d=x[s][f][c]*=o[s];for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)d=x[s][f][c],d!=null&&(this.minValues[s]>d&&(this.minValues[s]=d),this.maxValues[s]<d&&(this.maxValues[s]=d));for(s=0;s<3;s++)this.objectOffset[s]=.5*(this.minValues[s]+this.maxValues[s]);for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)d=x[s][f][c],d!=null&&(x[s][f][c]-=this.objectOffset[s]);var g=[Nf(new Float32Array(i*l),[i,l]),Nf(new Float32Array(i*l),[i,l]),Nf(new Float32Array(i*l),[i,l])];for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)g[s].set(f,c,x[s][f][c]);x=[];var w={colormap:a,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!e.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:e.opacityscale,opacity:e.opacity},T=ege(e);if(w.intensityBounds=[T.min,T.max],e.surfacecolor){var m=Nf(new Float32Array(i*l),[i,l]);for(f=0;f<i;f++)for(c=0;c<l;c++)m.set(f,c,e.surfacecolor[c][f]);g.push(m)}else w.intensityBounds[0]*=o[2],w.intensityBounds[1]*=o[2];(Qp<g[0].shape[0]||Qp<g[0].shape[1])&&(this.refineData=!1),this.refineData===!0&&(this.dataScaleX=this.estimateScale(g[0].shape[0],0),this.dataScaleY=this.estimateScale(g[0].shape[1],1),(this.dataScaleX!==1||this.dataScaleY!==1)&&this.refineCoords(g)),e.surfacecolor&&(w.intensity=g.pop());var k=[!0,!0,!0],S=["x","y","z"];for(s=0;s<3;++s){var b=e.contours[S[s]];k[s]=b.highlight,w.showContour[s]=b.show||b.highlight,w.showContour[s]&&(w.contourProject[s]=[b.project.x,b.project.y,b.project.z],b.show?(this.showContour[s]=!0,w.levels[s]=u[s],n.highlightColor[s]=w.contourColor[s]=bU(b.color),b.usecolormap?n.highlightTint[s]=w.contourTint[s]=0:n.highlightTint[s]=w.contourTint[s]=1,w.contourWidth[s]=b.width,this.contourStart[s]=b.start,this.contourEnd[s]=b.end,this.contourSize[s]=b.size):(this.showContour[s]=!1,this.contourStart[s]=null,this.contourEnd[s]=null,this.contourSize[s]=0),b.highlight&&(w.dynamicColor[s]=bU(b.highlightcolor),w.dynamicWidth[s]=b.highlightwidth))}rge(a)&&(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=g,n.update(w),n.visible=e.visible,n.enableDynamic=k,n.enableHighlight=k,n.snapToData=!0,"lighting"in e&&(n.ambientLight=e.lighting.ambient,n.diffuseLight=e.lighting.diffuse,n.specularLight=e.lighting.specular,n.roughness=e.lighting.roughness,n.fresnel=e.lighting.fresnel),"lightposition"in e&&(n.lightPosition=[e.lightposition.x,e.lightposition.y,e.lightposition.z])};Oi.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()};function fge(e,r){var t=e.glplot.gl,n=Jpe({gl:t}),a=new _U(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}MU.exports=fge});var kU=xe((V6e,AU)=>{"use strict";AU.exports={attributes:ov(),supplyDefaults:f4().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:vU(),plot:TU(),moduleType:"trace",name:"surface",basePlotModule:Bl(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var CU=xe((G6e,SU)=>{"use strict";SU.exports=kU()});var Of=xe((Y6e,LU)=>{"use strict";var cge=wi(),v4=Do().axisHoverFormat,{hovertemplateAttrs:vge,templatefallbackAttrs:hge}=mi(),Ul=ov(),EU=qn(),Hl=Dt().extendFlat;LU.exports=Hl({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:vge({editType:"calc"}),hovertemplatefallback:hge({editType:"calc"}),xhoverformat:v4("x"),yhoverformat:v4("y"),zhoverformat:v4("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},cge("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Ul.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:Hl({},Ul.contours.x.show,{}),color:Ul.contours.x.color,width:Ul.contours.x.width,editType:"calc"},lightposition:{x:Hl({},Ul.lightposition.x,{dflt:1e5}),y:Hl({},Ul.lightposition.y,{dflt:1e5}),z:Hl({},Ul.lightposition.z,{dflt:0}),editType:"calc"},lighting:Hl({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},Ul.lighting),hoverinfo:Hl({},EU.hoverinfo,{editType:"calc"}),showlegend:Hl({},EU.showlegend,{dflt:!1})})});var eg=xe((X6e,DU)=>{"use strict";var dge=wi(),jp=Do().axisHoverFormat,{hovertemplateAttrs:pge,templatefallbackAttrs:gge}=mi(),sv=Of(),RU=qn(),h4=Dt().extendFlat,yge=ea().overrideAll;function d4(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function p4(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Bf=DU.exports=yge(h4({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:d4("x"),y:d4("y"),z:d4("z")},caps:{x:p4("x"),y:p4("y"),z:p4("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:pge(),hovertemplatefallback:gge(),xhoverformat:jp("x"),yhoverformat:jp("y"),zhoverformat:jp("z"),valuehoverformat:jp("value",1),showlegend:h4({},RU.showlegend,{dflt:!1})},dge("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:sv.opacity,lightposition:sv.lightposition,lighting:sv.lighting,flatshading:sv.flatshading,contour:sv.contour,hoverinfo:h4({},RU.hoverinfo)}),"calc","nested");Bf.flatshading.dflt=!0;Bf.lighting.facenormalsepsilon.dflt=0;Bf.x.editType=Bf.y.editType=Bf.z.editType=Bf.value.editType="calc+clearAxisTypes"});var g4=xe((W6e,IU)=>{"use strict";var mge=rr(),bge=Cr(),xge=eg(),_ge=Qi();function wge(e,r,t,n){function a(o,i){return mge.coerce(e,r,xge,o,i)}PU(e,r,t,n,a)}function PU(e,r,t,n,a){var o=a("isomin"),i=a("isomax");i!=null&&o!==void 0&&o!==null&&o>i&&(r.isomin=null,r.isomax=null);var l=a("x"),u=a("y"),s=a("z"),f=a("value");if(!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length){r.visible=!1;return}var c=bge.getComponentMethod("calendars","handleTraceDefaults");c(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(w){a(w+"hoverformat");var T="caps."+w,m=a(T+".show");m&&a(T+".fill");var k="slices."+w,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var d=a("spaceframe.show");d&&a("spaceframe.fill");var x=a("surface.show");x&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var g=a("contour.show");g&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(w){a(w)}),_ge(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}IU.exports={supplyDefaults:wge,supplyIsoDefaults:PU}});var rg=xe((Z6e,FU)=>{"use strict";var m4=rr(),Mge=pl();function Tge(e,r){r._len=Math.min(r.u.length,r.v.length,r.w.length,r.x.length,r.y.length,r.z.length),r._u=mo(r.u,r._len),r._v=mo(r.v,r._len),r._w=mo(r.w,r._len),r._x=mo(r.x,r._len),r._y=mo(r.y,r._len),r._z=mo(r.z,r._len);var t=zU(r);r._gridFill=t.fill,r._Xs=t.Xs,r._Ys=t.Ys,r._Zs=t.Zs,r._len=t.len;var n=0,a,o,i;r.starts&&(a=mo(r.starts.x||[]),o=mo(r.starts.y||[]),i=mo(r.starts.z||[]),n=Math.min(a.length,o.length,i.length)),r._startsX=a||[],r._startsY=o||[],r._startsZ=i||[];var l=0,u=1/0,s;for(s=0;s<r._len;s++){var f=r._u[s],c=r._v[s],d=r._w[s],x=Math.sqrt(f*f+c*c+d*d);l=Math.max(l,x),u=Math.min(u,x)}for(Mge(e,r,{vals:[u,l],containerStr:"",cLetter:"c"}),s=0;s<n;s++){var g=a[s];t.xMax=Math.max(t.xMax,g),t.xMin=Math.min(t.xMin,g);var w=o[s];t.yMax=Math.max(t.yMax,w),t.yMin=Math.min(t.yMin,w);var T=i[s];t.zMax=Math.max(t.zMax,T),t.zMin=Math.min(t.zMin,T)}r._slen=n,r._normMax=l,r._xbnds=[t.xMin,t.xMax],r._ybnds=[t.yMin,t.yMax],r._zbnds=[t.zMin,t.zMax]}function zU(e){var r=e._x,t=e._y,n=e._z,a=e._len,o,i,l,u=-1/0,s=1/0,f=-1/0,c=1/0,d=-1/0,x=1/0,g="",w,T,m,k,S,b,M,h,_;for(a&&(k=r[0],b=t[0],h=n[0]),a>1&&(S=r[a-1],M=t[a-1],_=n[a-1]),o=0;o<a;o++)u=Math.max(u,r[o]),s=Math.min(s,r[o]),f=Math.max(f,t[o]),c=Math.min(c,t[o]),d=Math.max(d,n[o]),x=Math.min(x,n[o]),!w&&r[o]!==k&&(w=!0,g+="x"),!T&&t[o]!==b&&(T=!0,g+="y"),!m&&n[o]!==h&&(m=!0,g+="z");w||(g+="x"),T||(g+="y"),m||(g+="z");var y=y4(e._x),v=y4(e._y),A=y4(e._z);g=g.replace("x",(k>S?"-":"+")+"x"),g=g.replace("y",(b>M?"-":"+")+"y"),g=g.replace("z",(h>_?"-":"+")+"z");var p=function(){a=0,y=[],v=[],A=[]};(!a||a<y.length*v.length*A.length)&&p();var R=function(ie){return ie==="x"?r:ie==="y"?t:n},E=function(ie){return ie==="x"?y:ie==="y"?v:A},D=function(ie){return ie[a-1]<ie[0]?-1:1},F=R(g[1]),z=R(g[3]),I=R(g[5]),L=E(g[1]).length,P=E(g[3]).length,O=E(g[5]).length,U=!1,V=function(ie,Q,re){return L*(P*ie+Q)+re},K=D(R(g[1])),j=D(R(g[3])),G=D(R(g[5]));for(o=0;o<O-1;o++){for(i=0;i<P-1;i++){for(l=0;l<L-1;l++){var q=V(o,i,l),J=V(o,i,l+1),te=V(o,i+1,l),Z=V(o+1,i,l);if((!(F[q]*K<F[J]*K)||!(z[q]*j<z[te]*j)||!(I[q]*G<I[Z]*G))&&(U=!0),U)break}if(U)break}if(U)break}return U&&(m4.warn("Encountered arbitrary coordinates! Unable to input data grid."),p()),{xMin:s,yMin:c,zMin:x,xMax:u,yMax:f,zMax:d,Xs:y,Ys:v,Zs:A,len:a,fill:g}}function y4(e){return m4.distinctVals(e).vals}function mo(e,r){if(r===void 0&&(r=e.length),m4.isTypedArray(e))return e.subarray(0,r);for(var t=[],n=0;n<r;n++)t[n]=+e[n];return t}FU.exports={calc:Tge,filter:mo,processGrid:zU}});var b4=xe((J6e,NU)=>{"use strict";var Age=pl(),kge=rg().processGrid,tg=rg().filter;NU.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=tg(t.x,t._len),t._y=tg(t.y,t._len),t._z=tg(t.z,t._len),t._value=tg(t.value,t._len);var n=kge(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;for(var a=1/0,o=-1/0,i=0;i<t._len;i++){var l=t._value[i];a=Math.min(a,l),o=Math.max(o,l)}t._minValues=a,t._maxValues=o,t._vMin=t.isomin===void 0||t.isomin===null?a:t.isomin,t._vMax=t.isomax===void 0||t.isomax===null?o:t.isomax,Age(r,t,{vals:[t._vMin,t._vMax],containerStr:"",cLetter:"c"})}});var Uf=xe(($6e,qU)=>{"use strict";qU.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i<a;i++)o[i]=[r[i],t[i],n[i]];return o}});var ng=xe((K6e,HU)=>{"use strict";var Sge=kn().gl_mesh3d,Cge=Ol().parseColorScale,Ege=rr().isArrayOrTypedArray,Lge=Vo(),Rge=ji().extractOpts,OU=Uf(),uv=function(e,r){for(var t=r.length-1;t>0;t--){var n=Math.min(r[t],r[t-1]),a=Math.max(r[t],r[t-1]);if(a>n&&n<e&&e<=a)return{id:t,distRatio:(a-e)/(a-n)}}return{id:0,distRatio:0}};function BU(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var x4=BU.prototype;x4.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=uv(t,this.data._Xs).id,u=uv(n,this.data._Ys).id,s=uv(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return Ege(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};x4.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=UU(e);function n(u,s,f,c){return s.map(function(d){return u.d2l(d,0,c)*f})}var a=OU(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=OU(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:Lge(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=Rge(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=Cge(e),this.mesh.update(i)};x4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var Dge=["xyz","xzy","yxz","yzx","zxy","zyx"];function UU(e){e._meshI=[],e._meshJ=[],e._meshK=[];var r=e.surface.show,t=e.spaceframe.show,n=e.surface.fill,a=e.spaceframe.fill,o=!1,i=!1,l=0,u,s,f=e._Xs,c=e._Ys,d=e._Zs,x=f.length,g=c.length,w=d.length,T=Dge.indexOf(e._gridFill.replace(/-/g,"").replace(/\+/g,"")),m=function(he,me,be){switch(T){case 5:return be+w*me+w*g*he;case 4:return be+w*he+w*x*me;case 3:return me+g*be+g*w*he;case 2:return me+g*he+g*x*be;case 1:return he+x*be+x*w*me;default:return he+x*me+x*g*be}},k=e._minValues,S=e._maxValues,b=e._vMin,M=e._vMax,h,_,y,v;function A(he,me,be){for(var ye=v.length,de=s;de<ye;de++)if(he===h[de]&&me===_[de]&&be===y[de])return de;return-1}function p(){s=u}function R(){h=[],_=[],y=[],v=[],u=0,p()}function E(he,me,be,ye){return h.push(he),_.push(me),y.push(be),v.push(ye),u++,u-1}function D(he,me,be){return e._meshI.push(he),e._meshJ.push(me),e._meshK.push(be),l++,l-1}function F(he,me,be){for(var ye=[],de=0;de<he.length;de++)ye[de]=(he[de]+me[de]+be[de])/3;return ye}function z(he,me,be){for(var ye=[],de=0;de<he.length;de++)ye[de]=he[de]*(1-be)+be*me[de];return ye}var I;function L(he){I=he}function P(he,me){var be=he[0],ye=he[1],de=he[2],_e=F(be,ye,de),Ae=Math.sqrt(1-I),Ie=z(_e,be,Ae),Pe=z(_e,ye,Ae),Ye=z(_e,de,Ae),qe=me[0],Oe=me[1],Be=me[2];return{xyzv:[[be,ye,Pe],[Pe,Ie,be],[ye,de,Ye],[Ye,Pe,ye],[de,be,Ie],[Ie,Ye,de]],abc:[[qe,Oe,-1],[-1,-1,qe],[Oe,Be,-1],[-1,-1,Oe],[Be,qe,-1],[-1,-1,Be]]}}function O(he,me){return he==="all"||he===null?!0:he.indexOf(me)>-1}function U(he,me){return he===null?me:he}function V(he,me,be){p();var ye=[me],de=[be];if(I>=1)ye=[me],de=[be];else if(I>0){var _e=P(me,be);ye=_e.xyzv,de=_e.abc}for(var Ae=0;Ae<ye.length;Ae++){me=ye[Ae],be=de[Ae];for(var Ie=[],Pe=0;Pe<3;Pe++){var Ye=me[Pe][0],qe=me[Pe][1],Oe=me[Pe][2],Be=me[Pe][3],We=be[Pe]>-1?be[Pe]:A(Ye,qe,Oe);We>-1?Ie[Pe]=We:Ie[Pe]=E(Ye,qe,Oe,U(he,Be))}D(Ie[0],Ie[1],Ie[2])}}function K(he,me,be){var ye=function(de,_e,Ae){V(he,[me[de],me[_e],me[Ae]],[be[de],be[_e],be[Ae]])};ye(0,1,2),ye(2,3,0)}function j(he,me,be){var ye=function(de,_e,Ae){V(he,[me[de],me[_e],me[Ae]],[be[de],be[_e],be[Ae]])};ye(0,1,2),ye(3,0,1),ye(2,3,0),ye(1,2,3)}function G(he,me,be,ye){var de=he[3];de<be&&(de=be),de>ye&&(de=ye);for(var _e=(he[3]-de)/(he[3]-me[3]+1e-9),Ae=[],Ie=0;Ie<4;Ie++)Ae[Ie]=(1-_e)*he[Ie]+_e*me[Ie];return Ae}function q(he,me,be){return he>=me&&he<=be}function J(he){var me=.001*(M-b);return he>=b-me&&he<=M+me}function te(he){for(var me=[],be=0;be<4;be++){var ye=he[be];me.push([e._x[ye],e._y[ye],e._z[ye],e._value[ye]])}return me}var Z=3;function ie(he,me,be,ye,de,_e){_e||(_e=1),be=[-1,-1,-1];var Ae=!1,Ie=[q(me[0][3],ye,de),q(me[1][3],ye,de),q(me[2][3],ye,de)];if(!Ie[0]&&!Ie[1]&&!Ie[2])return!1;var Pe=function(qe,Oe,Be){return J(Oe[0][3])&&J(Oe[1][3])&&J(Oe[2][3])?(V(qe,Oe,Be),!0):_e<Z?ie(qe,Oe,Be,b,M,++_e):!1};if(Ie[0]&&Ie[1]&&Ie[2])return Pe(he,me,be)||Ae;var Ye=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach(function(qe){if(Ie[qe[0]]&&Ie[qe[1]]&&!Ie[qe[2]]){var Oe=me[qe[0]],Be=me[qe[1]],We=me[qe[2]],Xe=G(We,Oe,ye,de),tr=G(We,Be,ye,de);Ae=Pe(he,[tr,Xe,Oe],[-1,-1,be[qe[0]]])||Ae,Ae=Pe(he,[Oe,Be,tr],[be[qe[0]],be[qe[1]],-1])||Ae,Ye=!0}}),Ye||[[0,1,2],[1,2,0],[2,0,1]].forEach(function(qe){if(Ie[qe[0]]&&!Ie[qe[1]]&&!Ie[qe[2]]){var Oe=me[qe[0]],Be=me[qe[1]],We=me[qe[2]],Xe=G(Be,Oe,ye,de),tr=G(We,Oe,ye,de);Ae=Pe(he,[tr,Xe,Oe],[-1,-1,be[qe[0]]])||Ae,Ye=!0}}),Ae}function Q(he,me,be,ye){var de=!1,_e=te(me),Ae=[q(_e[0][3],be,ye),q(_e[1][3],be,ye),q(_e[2][3],be,ye),q(_e[3][3],be,ye)];if(!Ae[0]&&!Ae[1]&&!Ae[2]&&!Ae[3])return de;if(Ae[0]&&Ae[1]&&Ae[2]&&Ae[3])return i&&(de=j(he,_e,me)||de),de;var Ie=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach(function(Pe){if(Ae[Pe[0]]&&Ae[Pe[1]]&&Ae[Pe[2]]&&!Ae[Pe[3]]){var Ye=_e[Pe[0]],qe=_e[Pe[1]],Oe=_e[Pe[2]],Be=_e[Pe[3]];if(i)de=V(he,[Ye,qe,Oe],[me[Pe[0]],me[Pe[1]],me[Pe[2]]])||de;else{var We=G(Be,Ye,be,ye),Xe=G(Be,qe,be,ye),tr=G(Be,Oe,be,ye);de=V(null,[We,Xe,tr],[-1,-1,-1])||de}Ie=!0}}),Ie||([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach(function(Pe){if(Ae[Pe[0]]&&Ae[Pe[1]]&&!Ae[Pe[2]]&&!Ae[Pe[3]]){var Ye=_e[Pe[0]],qe=_e[Pe[1]],Oe=_e[Pe[2]],Be=_e[Pe[3]],We=G(Oe,Ye,be,ye),Xe=G(Oe,qe,be,ye),tr=G(Be,qe,be,ye),ir=G(Be,Ye,be,ye);i?(de=V(he,[Ye,ir,We],[me[Pe[0]],-1,-1])||de,de=V(he,[qe,Xe,tr],[me[Pe[1]],-1,-1])||de):de=K(null,[We,Xe,tr,ir],[-1,-1,-1,-1])||de,Ie=!0}}),Ie)||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach(function(Pe){if(Ae[Pe[0]]&&!Ae[Pe[1]]&&!Ae[Pe[2]]&&!Ae[Pe[3]]){var Ye=_e[Pe[0]],qe=_e[Pe[1]],Oe=_e[Pe[2]],Be=_e[Pe[3]],We=G(qe,Ye,be,ye),Xe=G(Oe,Ye,be,ye),tr=G(Be,Ye,be,ye);i?(de=V(he,[Ye,We,Xe],[me[Pe[0]],-1,-1])||de,de=V(he,[Ye,Xe,tr],[me[Pe[0]],-1,-1])||de,de=V(he,[Ye,tr,We],[me[Pe[0]],-1,-1])||de):de=V(null,[We,Xe,tr],[-1,-1,-1])||de,Ie=!0}}),de}function re(he,me,be,ye,de,_e,Ae,Ie,Pe,Ye,qe){var Oe=!1;return o&&(O(he,"A")&&(Oe=Q(null,[me,be,ye,_e],Ye,qe)||Oe),O(he,"B")&&(Oe=Q(null,[be,ye,de,Pe],Ye,qe)||Oe),O(he,"C")&&(Oe=Q(null,[be,_e,Ae,Pe],Ye,qe)||Oe),O(he,"D")&&(Oe=Q(null,[ye,_e,Ie,Pe],Ye,qe)||Oe),O(he,"E")&&(Oe=Q(null,[be,ye,_e,Pe],Ye,qe)||Oe)),i&&(Oe=Q(he,[be,ye,_e,Pe],Ye,qe)||Oe),Oe}function se(he,me,be,ye,de,_e,Ae,Ie){return[Ie[0]===!0?!0:ie(he,te([me,be,ye]),[me,be,ye],_e,Ae),Ie[1]===!0?!0:ie(he,te([ye,de,me]),[ye,de,me],_e,Ae)]}function ee(he,me,be,ye,de,_e,Ae,Ie,Pe){return Ie?se(he,me,be,de,ye,_e,Ae,Pe):se(he,be,de,ye,me,_e,Ae,Pe)}function ae(he,me,be,ye,de,_e,Ae){var Ie=!1,Pe,Ye,qe,Oe,Be=function(){Ie=ie(he,[Pe,Ye,qe],[-1,-1,-1],de,_e)||Ie,Ie=ie(he,[qe,Oe,Pe],[-1,-1,-1],de,_e)||Ie},We=Ae[0],Xe=Ae[1],tr=Ae[2];return We&&(Pe=z(te([m(me,be-0,ye-0)])[0],te([m(me-1,be-0,ye-0)])[0],We),Ye=z(te([m(me,be-0,ye-1)])[0],te([m(me-1,be-0,ye-1)])[0],We),qe=z(te([m(me,be-1,ye-1)])[0],te([m(me-1,be-1,ye-1)])[0],We),Oe=z(te([m(me,be-1,ye-0)])[0],te([m(me-1,be-1,ye-0)])[0],We),Be()),Xe&&(Pe=z(te([m(me-0,be,ye-0)])[0],te([m(me-0,be-1,ye-0)])[0],Xe),Ye=z(te([m(me-0,be,ye-1)])[0],te([m(me-0,be-1,ye-1)])[0],Xe),qe=z(te([m(me-1,be,ye-1)])[0],te([m(me-1,be-1,ye-1)])[0],Xe),Oe=z(te([m(me-1,be,ye-0)])[0],te([m(me-1,be-1,ye-0)])[0],Xe),Be()),tr&&(Pe=z(te([m(me-0,be-0,ye)])[0],te([m(me-0,be-0,ye-1)])[0],tr),Ye=z(te([m(me-0,be-1,ye)])[0],te([m(me-0,be-1,ye-1)])[0],tr),qe=z(te([m(me-1,be-1,ye)])[0],te([m(me-1,be-1,ye-1)])[0],tr),Oe=z(te([m(me-1,be-0,ye)])[0],te([m(me-1,be-0,ye-1)])[0],tr),Be()),Ie}function ce(he,me,be,ye,de,_e,Ae,Ie,Pe,Ye,qe,Oe){var Be=he;return Oe?(o&&he==="even"&&(Be=null),re(Be,me,be,ye,de,_e,Ae,Ie,Pe,Ye,qe)):(o&&he==="odd"&&(Be=null),re(Be,Pe,Ie,Ae,_e,de,ye,be,me,Ye,qe))}function Me(he,me,be,ye,de){for(var _e=[],Ae=0,Ie=0;Ie<me.length;Ie++)for(var Pe=me[Ie],Ye=1;Ye<w;Ye++)for(var qe=1;qe<g;qe++)_e.push(ee(he,m(Pe,qe-1,Ye-1),m(Pe,qe-1,Ye),m(Pe,qe,Ye-1),m(Pe,qe,Ye),be,ye,(Pe+qe+Ye)%2,de&&de[Ae]?de[Ae]:[])),Ae++;return _e}function ke(he,me,be,ye,de){for(var _e=[],Ae=0,Ie=0;Ie<me.length;Ie++)for(var Pe=me[Ie],Ye=1;Ye<x;Ye++)for(var qe=1;qe<w;qe++)_e.push(ee(he,m(Ye-1,Pe,qe-1),m(Ye,Pe,qe-1),m(Ye-1,Pe,qe),m(Ye,Pe,qe),be,ye,(Ye+Pe+qe)%2,de&&de[Ae]?de[Ae]:[])),Ae++;return _e}function Se(he,me,be,ye,de){for(var _e=[],Ae=0,Ie=0;Ie<me.length;Ie++)for(var Pe=me[Ie],Ye=1;Ye<g;Ye++)for(var qe=1;qe<x;qe++)_e.push(ee(he,m(qe-1,Ye-1,Pe),m(qe-1,Ye,Pe),m(qe,Ye-1,Pe),m(qe,Ye,Pe),be,ye,(qe+Ye+Pe)%2,de&&de[Ae]?de[Ae]:[])),Ae++;return _e}function ge(he,me,be){for(var ye=1;ye<w;ye++)for(var de=1;de<g;de++)for(var _e=1;_e<x;_e++)ce(he,m(_e-1,de-1,ye-1),m(_e-1,de-1,ye),m(_e-1,de,ye-1),m(_e-1,de,ye),m(_e,de-1,ye-1),m(_e,de-1,ye),m(_e,de,ye-1),m(_e,de,ye),me,be,(_e+de+ye)%2)}function Le(he,me,be){i=!0,ge(he,me,be),i=!1}function Ee(he,me,be){o=!0,ge(he,me,be),o=!1}function le(he,me,be,ye,de,_e){for(var Ae=[],Ie=0,Pe=0;Pe<me.length;Pe++)for(var Ye=me[Pe],qe=1;qe<w;qe++)for(var Oe=1;Oe<g;Oe++)Ae.push(ae(he,Ye,Oe,qe,be,ye,de[Pe],_e&&_e[Ie]?_e[Ie]:[])),Ie++;return Ae}function Y(he,me,be,ye,de,_e){for(var Ae=[],Ie=0,Pe=0;Pe<me.length;Pe++)for(var Ye=me[Pe],qe=1;qe<x;qe++)for(var Oe=1;Oe<w;Oe++)Ae.push(ae(he,qe,Ye,Oe,be,ye,de[Pe],_e&&_e[Ie]?_e[Ie]:[])),Ie++;return Ae}function $(he,me,be,ye,de,_e){for(var Ae=[],Ie=0,Pe=0;Pe<me.length;Pe++)for(var Ye=me[Pe],qe=1;qe<g;qe++)for(var Oe=1;Oe<x;Oe++)Ae.push(ae(he,Oe,qe,Ye,be,ye,de[Pe],_e&&_e[Ie]?_e[Ie]:[])),Ie++;return Ae}function pe(he,me){for(var be=[],ye=he;ye<me;ye++)be.push(ye);return be}function oe(){for(var he=0;he<x;he++)for(var me=0;me<g;me++)for(var be=0;be<w;be++){var ye=m(he,me,be);E(e._x[ye],e._y[ye],e._z[ye],e._value[ye])}}function ve(){R(),oe();var he=null;if(t&&a&&(L(a),Le(he,b,M)),r&&n){L(n);for(var me=e.surface.pattern,be=e.surface.count,ye=0;ye<be;ye++){var de=be===1?.5:ye/(be-1),_e=(1-de)*b+de*M,Ae=Math.abs(_e-k),Ie=Math.abs(_e-S),Pe=Ae>Ie?[k,_e]:[_e,S];Ee(me,Pe[0],Pe[1])}}var Ye=[[Math.min(b,S),Math.max(b,S)],[Math.min(k,M),Math.max(k,M)]];["x","y","z"].forEach(function(qe){for(var Oe=[],Be=0;Be<Ye.length;Be++){var We=0,Xe=Ye[Be][0],tr=Ye[Be][1],ir=e.slices[qe];if(ir.show&&ir.fill){L(ir.fill);var je=[],Ke=[],Ce=[];if(ir.locations.length)for(var Fe=0;Fe<ir.locations.length;Fe++){var Qe=uv(ir.locations[Fe],qe==="x"?f:qe==="y"?c:d);Qe.distRatio===0?je.push(Qe.id):Qe.id>0&&(Ke.push(Qe.id),qe==="x"?Ce.push([Qe.distRatio,0,0]):qe==="y"?Ce.push([0,Qe.distRatio,0]):Ce.push([0,0,Qe.distRatio]))}else qe==="x"?je=pe(1,x-1):qe==="y"?je=pe(1,g-1):je=pe(1,w-1);Ke.length>0&&(qe==="x"?Oe[We]=le(he,Ke,Xe,tr,Ce,Oe[We]):qe==="y"?Oe[We]=Y(he,Ke,Xe,tr,Ce,Oe[We]):Oe[We]=$(he,Ke,Xe,tr,Ce,Oe[We]),We++),je.length>0&&(qe==="x"?Oe[We]=Me(he,je,Xe,tr,Oe[We]):qe==="y"?Oe[We]=ke(he,je,Xe,tr,Oe[We]):Oe[We]=Se(he,je,Xe,tr,Oe[We]),We++)}var er=e.caps[qe];er.show&&er.fill&&(L(er.fill),qe==="x"?Oe[We]=Me(he,[0,x-1],Xe,tr,Oe[We]):qe==="y"?Oe[We]=ke(he,[0,g-1],Xe,tr,Oe[We]):Oe[We]=Se(he,[0,w-1],Xe,tr,Oe[We]),We++)}}),l===0&&R(),e._meshX=h,e._meshY=_,e._meshZ=y,e._meshIntensity=v,e._Xs=f,e._Ys=c,e._Zs=d}return ve(),e}function Pge(e,r){var t=e.glplot.gl,n=Sge({gl:t}),a=new BU(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}HU.exports={findNearestOnAxis:uv,generateIsoMeshes:UU,createIsosurfaceTrace:Pge}});var GU=xe((Q6e,VU)=>{"use strict";VU.exports={attributes:eg(),supplyDefaults:g4().supplyDefaults,calc:b4(),colorbar:{min:"cmin",max:"cmax"},plot:ng().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Bl(),categories:["gl3d","showLegend"],meta:{}}});var XU=xe((j6e,YU)=>{"use strict";YU.exports=GU()});var w4=xe((e_e,ZU)=>{"use strict";var Ige=wi(),nn=eg(),zge=ov(),WU=qn(),_4=Dt().extendFlat,Fge=ea().overrideAll,ag=ZU.exports=Fge(_4({x:nn.x,y:nn.y,z:nn.z,value:nn.value,isomin:nn.isomin,isomax:nn.isomax,surface:nn.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:nn.slices,caps:nn.caps,text:nn.text,hovertext:nn.hovertext,xhoverformat:nn.xhoverformat,yhoverformat:nn.yhoverformat,zhoverformat:nn.zhoverformat,valuehoverformat:nn.valuehoverformat,hovertemplate:nn.hovertemplate,hovertemplatefallback:nn.hovertemplatefallback},Ige("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:nn.colorbar,opacity:nn.opacity,opacityscale:zge.opacityscale,lightposition:nn.lightposition,lighting:nn.lighting,flatshading:nn.flatshading,contour:nn.contour,hoverinfo:_4({},WU.hoverinfo),showlegend:_4({},WU.showlegend,{dflt:!1})}),"calc","nested");ag.x.editType=ag.y.editType=ag.z.editType=ag.value.editType="calc+clearAxisTypes"});var $U=xe((r_e,JU)=>{"use strict";var Nge=rr(),qge=w4(),Oge=g4().supplyIsoDefaults,Bge=f4().opacityscaleDefaults;JU.exports=function(r,t,n,a){function o(i,l){return Nge.coerce(r,t,qge,i,l)}Oge(r,t,n,a,o),Bge(r,t,a,o)}});var eH=xe((t_e,jU)=>{"use strict";var Uge=kn().gl_mesh3d,Hge=Ol().parseColorScale,Vge=rr().isArrayOrTypedArray,Gge=Vo(),Yge=ji().extractOpts,KU=Uf(),M4=ng().findNearestOnAxis,Xge=ng().generateIsoMeshes;function QU(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var T4=QU.prototype;T4.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=M4(t,this.data._Xs).id,u=M4(n,this.data._Ys).id,s=M4(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return Vge(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};T4.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=Xge(e);function n(u,s,f,c){return s.map(function(d){return u.d2l(d,0,c)*f})}var a=KU(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=KU(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:Gge(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=Yge(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=Hge(e),this.mesh.update(i)};T4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Wge(e,r){var t=e.glplot.gl,n=Uge({gl:t}),a=new QU(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}jU.exports=Wge});var tH=xe((n_e,rH)=>{"use strict";rH.exports={attributes:w4(),supplyDefaults:$U(),calc:b4(),colorbar:{min:"cmin",max:"cmax"},plot:eH(),moduleType:"trace",name:"volume",basePlotModule:Bl(),categories:["gl3d","showLegend"],meta:{}}});var aH=xe((a_e,nH)=>{"use strict";nH.exports=tH()});var lH=xe((i_e,oH)=>{"use strict";var Zge=Cr(),iH=rr(),Jge=Qi(),$ge=Of();oH.exports=function(r,t,n,a){function o(f,c){return iH.coerce(r,t,$ge,f,c)}function i(f){var c=f.map(function(d){var x=o(d);return x&&iH.isArrayOrTypedArray(x)?x:null});return c.every(function(d){return d&&d.length===c[0].length})&&c}var l=i(["x","y","z"]);if(!l){t.visible=!1;return}if(i(["i","j","k"]),t.i&&(!t.j||!t.k)||t.j&&(!t.k||!t.i)||t.k&&(!t.i||!t.j)){t.visible=!1;return}var u=Zge.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y","z"],a),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){o(f)});var s=o("contour.show");s&&(o("contour.color"),o("contour.width")),"intensity"in r?(o("intensity"),o("intensitymode"),Jge(r,t,a,o,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in r?o("facecolor"):"vertexcolor"in r?o("vertexcolor"):o("color",n)),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var uH=xe((o_e,sH)=>{"use strict";var Kge=pl();sH.exports=function(r,t){t.intensity&&Kge(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var dH=xe((l_e,hH)=>{"use strict";var Qge=kn().gl_mesh3d,jge=kn().delaunay_triangulate,e2e=kn().alpha_shape,r2e=kn().convex_hull,t2e=Ol().parseColorScale,n2e=rr().isArrayOrTypedArray,C4=Vo(),a2e=ji().extractOpts,fH=Uf();function vH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var E4=vH.prototype;E4.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]];var t=this.data.hovertext||this.data.text;return n2e(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function cH(e){for(var r=[],t=e.length,n=0;n<t;n++)r[n]=C4(e[n]);return r}function A4(e,r,t,n){for(var a=[],o=r.length,i=0;i<o;i++)a[i]=e.d2l(r[i],0,n)*t;return a}function k4(e){for(var r=[],t=e.length,n=0;n<t;n++)r[n]=Math.round(e[n]);return r}function i2e(e,r){for(var t=["x","y","z"].indexOf(e),n=[],a=r.length,o=0;o<a;o++)n[o]=[r[o][(t+1)%3],r[o][(t+2)%3]];return jge(n)}function S4(e,r){for(var t=e.length,n=0;n<t;n++)if(e[n]<=-.5||e[n]>=r-.5)return!1;return!0}E4.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=fH(A4(t.xaxis,e.x,r.dataScale[0],e.xcalendar),A4(t.yaxis,e.y,r.dataScale[1],e.ycalendar),A4(t.zaxis,e.z,r.dataScale[2],e.zcalendar)),o;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!S4(e.i,n)||!S4(e.j,n)||!S4(e.k,n))return;o=fH(k4(e.i),k4(e.j),k4(e.k))}else e.alphahull===0?o=r2e(a):e.alphahull>0?o=e2e(e.alphahull,a):o=i2e(e.delaunayaxis,a);var i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:C4(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=a2e(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=t2e(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=cH(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=cH(e.facecolor)):(this.color=e.color,i.meshColor=C4(e.color));this.mesh.update(i)};E4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function o2e(e,r){var t=e.glplot.gl,n=Qge({gl:t}),a=new vH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}hH.exports=o2e});var gH=xe((s_e,pH)=>{"use strict";pH.exports={attributes:Of(),supplyDefaults:lH(),calc:uH(),colorbar:{min:"cmin",max:"cmax"},plot:dH(),moduleType:"trace",name:"mesh3d",basePlotModule:Bl(),categories:["gl3d","showLegend"],meta:{}}});var mH=xe((u_e,yH)=>{"use strict";yH.exports=gH()});var R4=xe((f_e,xH)=>{"use strict";var l2e=wi(),Hf=Do().axisHoverFormat,{hovertemplateAttrs:s2e,templatefallbackAttrs:u2e}=mi(),f2e=Of(),bH=qn(),L4=Dt().extendFlat,ig={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:s2e({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:u2e({editType:"calc"}),uhoverformat:Hf("u",1),vhoverformat:Hf("v",1),whoverformat:Hf("w",1),xhoverformat:Hf("x"),yhoverformat:Hf("y"),zhoverformat:Hf("z"),showlegend:L4({},bH.showlegend,{dflt:!1})};L4(ig,l2e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var c2e=["opacity","lightposition","lighting"];c2e.forEach(function(e){ig[e]=f2e[e]});ig.hoverinfo=L4({},bH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});xH.exports=ig});var wH=xe((c_e,_H)=>{"use strict";var v2e=rr(),h2e=Qi(),d2e=R4();_H.exports=function(r,t,n,a){function o(x,g){return v2e.coerce(r,t,d2e,x,g)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),c=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!c||!c.length){t.visible=!1;return}var d=o("sizemode");o("sizeref",d==="raw"?1:.5),o("anchor"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),h2e(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var TH=xe((v_e,MH)=>{"use strict";var p2e=pl();MH.exports=function(r,t){for(var n=t.u,a=t.v,o=t.w,i=Math.min(t.x.length,t.y.length,t.z.length,n.length,a.length,o.length),l=-1/0,u=1/0,s=0;s<i;s++){var f=n[s],c=a[s],d=o[s],x=Math.sqrt(f*f+c*c+d*d);l=Math.max(l,x),u=Math.min(u,x)}t._len=i,t._normMax=l,p2e(r,t,{vals:[u,l],containerStr:"",cLetter:"c"})}});var EH=xe((h_e,CH)=>{"use strict";var g2e=kn().gl_cone3d,y2e=kn().gl_cone3d.createConeMesh,m2e=rr().simpleMap,b2e=Ol().parseColorScale,x2e=ji().extractOpts,_2e=rr().isArrayOrTypedArray,AH=Uf();function kH(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var D4=kH.prototype;D4.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index,t=this.data.x[r],n=this.data.y[r],a=this.data.z[r],o=this.data.u[r],i=this.data.v[r],l=this.data.w[r];e.traceCoordinate=[t,n,a,o,i,l,Math.sqrt(o*o+i*i+l*l)];var u=this.data.hovertext||this.data.text;return _2e(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var w2e={xaxis:0,yaxis:1,zaxis:2},M2e={tip:1,tail:0,cm:.25,center:.5},T2e={tip:1,tail:1,cm:.75,center:.5};function SH(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,c){var d=t[c],x=n[w2e[c]];return m2e(f,function(g){return d.d2l(g)*x})}a.vectors=AH(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=AH(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=x2e(r);a.colormap=b2e(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=M2e[r.anchor];var l=r.sizemode;l==="scaled"?a.coneSize=r.sizeref||.5:l==="absolute"?a.coneSize=r.sizeref&&r._normMax?r.sizeref/r._normMax:.5:l==="raw"&&(a.coneSize=r.sizeref),a.coneSizemode=l;var u=g2e(a),s=r.lightposition;return u.lightPosition=[s.x,s.y,s.z],u.ambient=r.lighting.ambient,u.diffuse=r.lighting.diffuse,u.specular=r.lighting.specular,u.roughness=r.lighting.roughness,u.fresnel=r.lighting.fresnel,u.opacity=r.opacity,r._pad=T2e[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}D4.update=function(e){this.data=e;var r=SH(this.scene,e);this.mesh.update(r)};D4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function A2e(e,r){var t=e.glplot.gl,n=SH(e,r),a=y2e(t,n),o=new kH(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}CH.exports=A2e});var RH=xe((d_e,LH)=>{"use strict";LH.exports={moduleType:"trace",name:"cone",basePlotModule:Bl(),categories:["gl3d","showLegend"],attributes:R4(),supplyDefaults:wH(),colorbar:{min:"cmin",max:"cmax"},calc:TH(),plot:EH(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var PH=xe((p_e,DH)=>{"use strict";DH.exports=RH()});var I4=xe((g_e,zH)=>{"use strict";var k2e=wi(),Vf=Do().axisHoverFormat,{hovertemplateAttrs:S2e,templatefallbackAttrs:C2e}=mi(),E2e=Of(),IH=qn(),P4=Dt().extendFlat,og={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:S2e({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:C2e({editType:"calc"}),uhoverformat:Vf("u",1),vhoverformat:Vf("v",1),whoverformat:Vf("w",1),xhoverformat:Vf("x"),yhoverformat:Vf("y"),zhoverformat:Vf("z"),showlegend:P4({},IH.showlegend,{dflt:!1})};P4(og,k2e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var L2e=["opacity","lightposition","lighting"];L2e.forEach(function(e){og[e]=E2e[e]});og.hoverinfo=P4({},IH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});zH.exports=og});var NH=xe((y_e,FH)=>{"use strict";var R2e=rr(),D2e=Qi(),P2e=I4();FH.exports=function(r,t,n,a){function o(d,x){return R2e.coerce(r,t,P2e,d,x)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),c=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!c||!c.length){t.visible=!1;return}o("starts.x"),o("starts.y"),o("starts.z"),o("maxdisplayed"),o("sizeref"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),D2e(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var YH=xe((m_e,GH)=>{"use strict";var BH=kn().gl_streamtube3d,I2e=BH.createTubeMesh,z2e=rr(),F2e=Ol().parseColorScale,N2e=ji().extractOpts,qH=Uf(),UH={xaxis:0,yaxis:1,zaxis:2};function HH(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var F4=HH.prototype;F4.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[UH[l]];return u.l2c(i)/s}if(e.object===this.mesh){var a=e.data.position,o=e.data.velocity;return e.traceCoordinate=[n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),n(o[0],"xaxis"),n(o[1],"yaxis"),n(o[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function OH(e){var r=e.length,t;return r>2?t=e.slice(1,r-1):r===2?t=[(e[0]+e[1])/2]:t=e,t}function z4(e){var r=e.length;return r===1?[.5,.5]:[e[1]-e[0],e[r-1]-e[r-2]]}function VH(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(R,E){var D=t[E],F=n[UH[E]];return z2e.simpleMap(R,function(z){return D.d2l(z)*F})}if(o.vectors=qH(i(r._u,"xaxis"),i(r._v,"yaxis"),i(r._w,"zaxis"),a),!a)return{positions:[],cells:[]};var l=i(r._Xs,"xaxis"),u=i(r._Ys,"yaxis"),s=i(r._Zs,"zaxis");o.meshgrid=[l,u,s],o.gridFill=r._gridFill;var f=r._slen;if(f)o.startingPositions=qH(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var c=u[0],d=OH(l),x=OH(s),g=new Array(d.length*x.length),w=0,T=0;T<d.length;T++)for(var m=0;m<x.length;m++)g[w++]=[d[T],c,x[m]];o.startingPositions=g}o.colormap=F2e(r),o.tubeSize=r.sizeref,o.maxLength=r.maxdisplayed;var k=i(r._xbnds,"xaxis"),S=i(r._ybnds,"yaxis"),b=i(r._zbnds,"zaxis"),M=z4(l),h=z4(u),_=z4(s),y=[[k[0]-M[0],S[0]-h[0],b[0]-_[0]],[k[1]+M[1],S[1]+h[1],b[1]+_[1]]],v=BH(o,y),A=N2e(r);v.vertexIntensityBounds=[A.min/r._normMax,A.max/r._normMax];var p=r.lightposition;return v.lightPosition=[p.x,p.y,p.z],v.ambient=r.lighting.ambient,v.diffuse=r.lighting.diffuse,v.specular=r.lighting.specular,v.roughness=r.lighting.roughness,v.fresnel=r.lighting.fresnel,v.opacity=r.opacity,r._pad=v.tubeScale*r.sizeref*2,v}F4.update=function(e){this.data=e;var r=VH(this.scene,e);this.mesh.update(r)};F4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function q2e(e,r){var t=e.glplot.gl,n=VH(e,r),a=I2e(t,n),o=new HH(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}GH.exports=q2e});var WH=xe((b_e,XH)=>{"use strict";XH.exports={moduleType:"trace",name:"streamtube",basePlotModule:Bl(),categories:["gl3d","showLegend"],attributes:I4(),supplyDefaults:NH(),colorbar:{min:"cmin",max:"cmax"},calc:rg().calc,plot:YH(),eventData:function(e,r){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=r.traceCoordinate[3],e.tubev=r.traceCoordinate[4],e.tubew=r.traceCoordinate[5],e.norm=r.traceCoordinate[6],e.divergence=r.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var JH=xe((x_e,ZH)=>{"use strict";ZH.exports=WH()});var Yn=xe((__e,KH)=>{"use strict";var $H=Object.getOwnPropertySymbols,O2e=Object.prototype.hasOwnProperty,B2e=Object.prototype.propertyIsEnumerable;function U2e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function H2e(){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 n=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}KH.exports=H2e()?Object.assign:function(e,r){for(var t,n=U2e(e),a,o=1;o<arguments.length;o++){t=Object(arguments[o]);for(var i in t)O2e.call(t,i)&&(n[i]=t[i]);if($H){a=$H(t);for(var l=0;l<a.length;l++)B2e.call(t,a[l])&&(n[a[l]]=t[a[l]])}}return n}});var Xn=xe((w_e,jH)=>{var sg=Yn();function QH(){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={}}sg(QH.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,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.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 n="",a=0;t>0;){var o=t%10;n=(o===0?"":e[o]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function N4(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function lg(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}sg(N4.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(Zr.local.invalidDate||Zr.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(Zr.local.differentCalendars||Zr.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?"-":"")+lg(Math.abs(this.year()),4)+"-"+lg(this.month(),2)+"-"+lg(this.day(),2)}});function q4(){this.shortYearCutoff="+10"}sg(q4.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new N4(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zr.local.invalidYear||Zr.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,Zr.local.invalidYear||Zr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+lg(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zr.local.invalidYear||Zr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Zr.local.invalidMonth||Zr.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,Zr.local.invalidMonth||Zr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zr.local.invalidYear||Zr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Zr.local.invalidDate||Zr.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 n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var o=e.year()+(t==="y"?r:0),i=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;i<f.minMonth;)o--,i+=f.monthsInYear(o);for(var c=f.monthsInYear(o);i>c-1+f.minMonth;)o++,i-=c,c=f.monthsInYear(o)};t==="y"?(e.month()!==this.fromMonthOfYear(o,i)&&(i=this.newDate(o,e.month(),this.minDay).monthOfYear()),i=Math.min(i,this.monthsInYear(o)),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i))));var u=[o,this.fromMonthOfYear(o,i),a];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],o=t<0?-1:1;r=this._add(e,t*a[0]+o*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),o=t==="d"?r:e.day();return(t==="y"||t==="m")&&(o=Math.min(o,this.daysInMonth(n,a))),e.date(n,a,o)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth<this.monthsInYear(a)&&t>=this.minDay&&t-this.minDay<this.daysInMonth(a)}return this._validateLevel--,n},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate);return Zr.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(e){return this.fromJD(Zr.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,n){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Zr.local.differentCalendars||Zr.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 n.replace(/\{0\}/,this.local.name);var a=this.newDate(e,r,t);return this._validateLevel--,a}catch(o){throw this._validateLevel--,o}}});function O4(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}O4.prototype=new q4;sg(O4.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,Zr.local.invalidYear||Zr.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 n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Zr.local.invalidMonth||Zr.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 n=this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate);e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<3&&(r+=12,e--);var a=Math.floor(e/100),o=2-a+Math.floor(a/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t+o-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 n=t+1524,a=Math.floor((n-122.1)/365.25),o=Math.floor(365.25*a),i=Math.floor((n-o)/30.6001),l=n-o-Math.floor(i*30.6001),u=i-(i>13.5?13:1),s=a-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Zr=jH.exports=new QH;Zr.cdate=N4;Zr.baseCalendar=q4;Zr.calendars.gregorian=O4});var eV=xe(()=>{var B4=Yn(),Sn=Xn();B4(Sn.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"});Sn.local=Sn.regionalOptions[""];B4(Sn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});B4(Sn.baseCalendar.prototype,{UNIX_EPOCH:Sn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Sn.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 Sn.local.invalidFormat||Sn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,o=t.monthNumbers||this.local.monthNumbers,i=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,u=t.calculateWeek||this.local.calculateWeek,s=function(b,M){for(var h=1;S+h<e.length&&e.charAt(S+h)===b;)h++;return S+=h-1,Math.floor(h/(M||1))>1},f=function(b,M,h,_){var y=""+M;if(s(b,_))for(;y.length<h;)y="0"+y;return y},c=function(b,M,h,_){return s(b)?_[M]:h[M]},d=this,x=function(b){return typeof o=="function"?o.call(d,b,s("m")):T(f("m",b.month(),2))},g=function(b,M){return M?typeof l=="function"?l.call(d,b):l[b.month()-d.minMonth]:typeof i=="function"?i.call(d,b):i[b.month()-d.minMonth]},w=this.local.digits,T=function(b){return t.localNumbers&&w?w(b):b},m="",k=!1,S=0;S<e.length;S++)if(k)e.charAt(S)==="'"&&!s("'")?k=!1:m+=e.charAt(S);else switch(e.charAt(S)){case"d":m+=T(f("d",r.day(),2));break;case"D":m+=c("D",r.dayOfWeek(),n,a);break;case"o":m+=f("o",r.dayOfYear(),3);break;case"w":m+=f("w",r.weekOfYear(),2);break;case"m":m+=x(r);break;case"M":m+=g(r,s("M"));break;case"y":m+=s("y",2)?r.year():(r.year()%100<10?"0":"")+r.year()%100;break;case"Y":s("Y",2),m+=r.formatYear();break;case"J":m+=r.toJD();break;case"@":m+=(r.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":m+=(r.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":s("'")?m+="'":k=!0;break;default:m+=e.charAt(S)}return m},parseDate:function(e,r,t){if(r==null)throw Sn.local.invalidArguments||Sn.regionalOptions[""].invalidArguments;if(r=typeof r=="object"?r.toString():r+"",r==="")return null;e=e||this.local.dateFormat,t=t||{};var n=t.shortYearCutoff||this.shortYearCutoff;n=typeof n!="string"?n:this.today().year()%100+parseInt(n,10);for(var a=t.dayNamesShort||this.local.dayNamesShort,o=t.dayNames||this.local.dayNames,i=t.parseMonth||this.local.parseMonth,l=t.monthNumbers||this.local.monthNumbers,u=t.monthNamesShort||this.local.monthNamesShort,s=t.monthNames||this.local.monthNames,f=-1,c=-1,d=-1,x=-1,g=-1,w=!1,T=!1,m=function(R,E){for(var D=1;v+D<e.length&&e.charAt(v+D)===R;)D++;return v+=D-1,Math.floor(D/(E||1))>1},k=function(R,E){var D=m(R,E),F=[2,3,D?4:2,D?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],z=new RegExp("^-?\\d{1,"+F+"}"),I=r.substring(y).match(z);if(!I)throw(Sn.local.missingNumberAt||Sn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,y);return y+=I[0].length,parseInt(I[0],10)},S=this,b=function(){if(typeof l=="function"){m("m");var R=l.call(S,r.substring(y));return y+=R.length,R}return k("m")},M=function(R,E,D,F){for(var z=m(R,F)?D:E,I=0;I<z.length;I++)if(r.substr(y,z[I].length).toLowerCase()===z[I].toLowerCase())return y+=z[I].length,I+S.minMonth;throw(Sn.local.unknownNameAt||Sn.regionalOptions[""].unknownNameAt).replace(/\{0\}/,y)},h=function(){if(typeof s=="function"){var R=m("M")?s.call(S,r.substring(y)):u.call(S,r.substring(y));return y+=R.length,R}return M("M",u,s)},_=function(){if(r.charAt(y)!==e.charAt(v))throw(Sn.local.unexpectedLiteralAt||Sn.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,y);y++},y=0,v=0;v<e.length;v++)if(T)e.charAt(v)==="'"&&!m("'")?T=!1:_();else switch(e.charAt(v)){case"d":x=k("d");break;case"D":M("D",a,o);break;case"o":g=k("o");break;case"w":k("w");break;case"m":d=b();break;case"M":d=h();break;case"y":var A=v;w=!m("y",2),v=A,c=k("y",2);break;case"Y":c=k("Y",2);break;case"J":f=k("J")+.5,r.charAt(y)==="."&&(y++,k("J"));break;case"@":f=k("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=k("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":y=r.length;break;case"'":m("'")?_():T=!0;break;default:_()}if(y<r.length)throw Sn.local.unexpectedText||Sn.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&w&&(c+=n===-1?1900:this.today().year()-this.today().year()%100-(c<=n?0:100)),typeof d=="string"&&(d=i.call(this,c,d)),g>-1){d=1,x=g;for(var p=this.daysInMonth(c,d);x>p;p=this.daysInMonth(c,d))d++,x-=p}return f>-1?this.fromJD(f):this.newDate(c,d,x)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var o=this,i=function(l){try{return o.parseDate(n,l,a)}catch(c){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||o.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?i(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:o.today().add(e,"d"):o.newDate(e),e}})});var rV=xe(()=>{var Vl=Xn(),V2e=Yn(),U4=Vl.instance();function ug(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ug.prototype=new Vl.baseCalendar;V2e(ug.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(Y2e);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(n,a);return r&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(n,a)&&(o+="i"),o},monthNames:function(e){if(typeof e=="string"){var r=e.match(X2e);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\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"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(W2e);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!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 a=r[r.length-1];n=a==="i"||a==="I"}var o=this.toMonthIndex(e,t,n);return o},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 n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw Vl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o;return n?!t&&r<=n?o=r-1:o=r:o=r-1,o},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw Vl.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r<t?a=r+1:a=r:a=r+1,a},intercalaryMonth:function(e){e=this._validateYear(e);var r=Gl[e-Gl[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 n=this._validateYear(e,Vl.local.invalidyear),a=Yl[n-Yl[0]],o=a>>9&4095,i=a>>5&15,l=a&31,u;u=U4.newDate(o,i,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/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=Gl[e-Gl[0]],n=t>>13,a=n?12:11;if(r>a)throw Vl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o=t&1<<12-r?30:29;return o},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,o,t,Vl.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),o=this.toChineseMonth(e,r),i=J2e(e,o,t,a);return U4.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=U4.fromJD(e),t=Z2e(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(G2e),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],o=this.toMonthIndex(t,n,a),i=+r[4];return this.newDate(t,o,i)},add:function(e,r,t){var n=e.year(),a=e.month(),o=this.isIntercalaryMonth(n,a),i=this.toChineseMonth(n,a),l=Object.getPrototypeOf(ug.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,i),c=o&&f?this.toMonthIndex(u,i,!0):this.toMonthIndex(u,i,!1);c!==s&&l.month(c)}return l}});var G2e=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Y2e=/^\d?\d[iI]?/m,X2e=/^闰?十?[一二三四五六七八九]?月/m,W2e=/^闰?十?[一二三四五六七八九]?/m;Vl.calendars.chinese=ug;var Gl=[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],Yl=[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 Z2e(e,r,t,n){var a,o;if(typeof e=="object")a=e,o=r||{};else{var i=typeof e=="number"&&e>=1888&&e<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},o=n||{}}var s=Yl[a.year-Yl[0]],f=a.year<<9|a.month<<5|a.day;o.year=f>=s?a.year:a.year-1,s=Yl[o.year-Yl[0]];var c=s>>9&4095,d=s>>5&15,x=s&31,g,w=new Date(c,d-1,x),T=new Date(a.year,a.month-1,a.day);g=Math.round((T-w)/(24*3600*1e3));var m=Gl[o.year-Gl[0]],k;for(k=0;k<13;k++){var S=m&1<<12-k?30:29;if(g<S)break;g-=S}var b=m>>13;return!b||k<b?(o.isIntercalary=!1,o.month=1+k):k===b?(o.isIntercalary=!0,o.month=k):(o.isIntercalary=!1,o.month=k),o.day=1+g,o}function J2e(e,r,t,n,a){var o,i;if(typeof e=="object")i=e,o=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,o=n):(f=!!n,o=a||{}),i={year:e,month:r,day:t,isIntercalary:f}}var c;c=i.day-1;var d=Gl[i.year-Gl[0]],x=d>>13,g;x&&(i.month>x||i.isIntercalary)?g=i.month:g=i.month-1;for(var w=0;w<g;w++){var T=d&1<<12-w?30:29;c+=T}var m=Yl[i.year-Yl[0]],k=m>>9&4095,S=m>>5&15,b=m&31,M=new Date(k,S-1,b+c);return o.year=M.getFullYear(),o.month=1+M.getMonth(),o.day=M.getDate(),o}});var tV=xe(()=>{var ru=Xn(),$2e=Yn();function H4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H4.prototype=new ru.baseCalendar;$2e(H4.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,ru.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,ru.local.invalidYear||ru.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ru.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 n=this._validate(e,r,t,ru.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.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 n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});ru.calendars.coptic=H4});var nV=xe(()=>{var Xo=Xn(),K2e=Yn();function V4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V4.prototype=new Xo.baseCalendar;K2e(V4.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,Xo.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xo.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xo.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xo.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Xo.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Xo.local.invalidDate);return{century:Q2e[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,Xo.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.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,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var Q2e={20:"Fruitbat",21:"Anchovy"};Xo.calendars.discworld=V4});var aV=xe(()=>{var tu=Xn(),j2e=Yn();function G4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G4.prototype=new tu.baseCalendar;j2e(G4.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,tu.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,tu.local.invalidYear||tu.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,tu.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 n=this._validate(e,r,t,tu.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.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 n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});tu.calendars.ethiopian=G4});var iV=xe(()=>{var Xl=Xn(),eye=Yn();function Y4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y4.prototype=new Xl.baseCalendar;eye(Y4.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,Xl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,fg(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Xl.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,Xl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&fg(this.daysInYear(e),10)===5?30:r===9&&fg(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 n=this._validate(e,r,t,Xl.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,Xl.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var i=7;i<=this.monthsInYear(e);i++)o+=this.daysInMonth(e,i);for(var i=1;i<r;i++)o+=this.daysInMonth(e,i)}else for(var i=7;i<r;i++)o+=this.daysInMonth(e,i);return o},_delay1:function(e){var r=Math.floor((235*e-234)/19),t=12084+13753*r,n=r*29+Math.floor(t/25920);return fg(3*(n+1),7)<3&&n++,n},_delay2:function(e){var r=this._delay1(e-1),t=this._delay1(e),n=this._delay1(e+1);return n-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 n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function fg(e,r){return e-r*Math.floor(e/r)}Xl.calendars.hebrew=Y4});var oV=xe(()=>{var fv=Xn(),rye=Yn();function X4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X4.prototype=new fv.baseCalendar;rye(X4.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,fv.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.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,fv.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 n=this._validate(e,r,t,fv.local.invalidDate);return e=n.year(),r=n.month(),t=n.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),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});fv.calendars.islamic=X4});var lV=xe(()=>{var cv=Xn(),tye=Yn();function W4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W4.prototype=new cv.baseCalendar;tye(W4.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,cv.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cv.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 n=this._validate(e,r,t,cv.local.invalidDate);return e=n.year(),r=n.month(),t=n.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,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),o=Math.floor((t-a)/30.6001),i=o-Math.floor(o<14?1:13),l=n-Math.floor(i>2?4716:4715),u=t-a-Math.floor(30.6001*o);return l<=0&&l--,this.newDate(l,i,u)}});cv.calendars.julian=W4});var uV=xe(()=>{var vi=Xn(),nye=Yn();function J4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J4.prototype=new vi.baseCalendar;nye(J4.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,vi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,vi.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+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 n=parseInt(e[t],10);if(Math.abs(n)>19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,vi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,vi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,vi.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,vi.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,vi.local.invalidDate),a=n.toJD(),o=this._toHaab(a),i=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[i[0]-1],tzolkinDay:i[0],tzolkinTrecena:i[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=Z4(e+8+340,365);return[Math.floor(r/20)+1,Z4(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[sV(e+20,20),sV(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,vi.local.invalidDate);return n.day()+n.month()*20+n.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),n=e%20;return this.newDate(r,t,n)}});function Z4(e,r){return e-r*Math.floor(e/r)}function sV(e,r){return Z4(e-1,r)+1}vi.calendars.mayan=J4});var cV=xe(()=>{var nu=Xn(),aye=Yn();function $4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$4.prototype=new nu.baseCalendar;var fV=nu.instance("gregorian");aye($4.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,nu.local.invalidYear||nu.regionalOptions[""].invalidYear);return fV.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,nu.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(a,r,t){var n=this._validate(a,r,t,nu.local.invalidMonth),a=n.year();a<0&&a++;for(var o=n.day(),i=1;i<n.month();i++)o+=this.daysPerMonth[i-1];return o+fV.toJD(a+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,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});nu.calendars.nanakshahi=$4});var vV=xe(()=>{var au=Xn(),iye=Yn();function K4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K4.prototype=new au.baseCalendar;iye(K4.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 n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,au.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,au.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 n=this._validate(e,r,t,au.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=au.instance(),o=0,i=r,l=e;this._createMissingCalendarData(e);var u=e-(i>9||i===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(o=t,i--);i!==9;)i<=0&&(i=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][i],i--;return r===9?(o+=t-this.NEPALI_CALENDAR_DATA[l][0],o<0&&(o+=a.daysInYear(u))):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,"d").toJD()},fromJD:function(e){var r=au.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var i=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][i]-l+1;a>u;)i++,i>12&&(i=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][i];var s=this.NEPALI_CALENDAR_DATA[o][i]-(u-a);return this.newDate(o,i,s)},_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]}});au.calendars.nepali=K4});var hV=xe(()=>{var Gf=Xn(),oye=Yn();function vg(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function cg(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),o=n-Math.floor(n),i=a-Math.floor(a);return o>i}vg.prototype=new Gf.baseCalendar;oye(vg.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,Gf.local.invalidYear);return cg(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Gf.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 n=this._validate(e,r,t,Gf.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o<e;o++)cg(o)&&a++;else if(e<0)for(var o=e;o<0;o++)cg(o)&&a--;return t+(r<=7?(r-1)*31:(r-1)*30+6)+(e>0?e-1:e)*365+a+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,cg(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),o=e-this.toJD(t,a,1)+1;return this.newDate(t,a,o)}});Gf.calendars.persian=vg;Gf.calendars.jalali=vg});var dV=xe(()=>{var iu=Xn(),lye=Yn(),hg=iu.instance();function Q4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Q4.prototype=new iu.baseCalendar;lye(Q4.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,iu.local.invalidYear),t=this._t2gYear(r.year());return hg.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,iu.local.invalidYear),a=this._t2gYear(n.year());return hg.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,iu.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(a,r,t){var n=this._validate(a,r,t,iu.local.invalidDate),a=this._t2gYear(n.year());return hg.toJD(a,n.month(),n.day())},fromJD:function(e){var r=hg.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)}});iu.calendars.taiwan=Q4});var pV=xe(()=>{var ou=Xn(),sye=Yn(),dg=ou.instance();function j4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}j4.prototype=new ou.baseCalendar;sye(j4.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,ou.local.invalidYear),t=this._t2gYear(r.year());return dg.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,ou.local.invalidYear),a=this._t2gYear(n.year());return dg.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ou.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(a,r,t){var n=this._validate(a,r,t,ou.local.invalidDate),a=this._t2gYear(n.year());return dg.toJD(a,n.month(),n.day())},fromJD:function(e){var r=dg.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)}});ou.calendars.thai=j4});var gV=xe(()=>{var lu=Xn(),uye=Yn();function e6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}e6.prototype=new lu.baseCalendar;uye(e6.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,lu.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.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,lu.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,o=0;o<Wl.length;o++){if(Wl[o]>n)return Wl[a]-Wl[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,lu.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,o=n.day()+Wl[a-1]-1;return o+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;n<Wl.length&&!(Wl[n]>r);n++)t++;var a=t+15292,o=Math.floor((a-1)/12),i=o+1,l=a-12*o,u=r-Wl[t-1]+1;return this.newDate(i,l,u)},isValid:function(e,r,t){var n=lu.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=lu.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});lu.calendars.ummalqura=e6;var Wl=[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 mV=xe((j_e,yV)=>{"use strict";yV.exports=Xn();eV();rV();tV();nV();aV();iV();oV();lV();uV();cV();vV();hV();dV();pV();gV()});var AV=xe((e7e,TV)=>{"use strict";var xV=mV(),vv=rr(),_V=pn(),fye=_V.EPOCHJD,cye=_V.ONEDAY,n6={valType:"enumerated",values:vv.sortObjectKeys(xV.calendars),editType:"calc",dflt:"gregorian"},wV=function(e,r,t,n){var a={};return a[t]=n6,vv.coerce(e,r,a,t,n)},vye=function(e,r,t,n){for(var a=0;a<t.length;a++)wV(e,r,t[a]+"calendar",n.calendar)},hye={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"},dye={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"},pye={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"]},pg="##",gye={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:pg,w:pg,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function yye(e,r,t){for(var n=Math.floor((r+.05)/cye)+fye,a=MV(t).fromJD(n),o=0,i,l,u,s,f;(o=e.indexOf("%",o))!==-1;)i=e.charAt(o+1),i==="0"||i==="-"||i==="_"?(u=3,l=e.charAt(o+2),i==="_"&&(i="-")):(l=i,i="0",u=2),s=gye[l],s?(s===pg?f=pg:f=a.formatDate(s[i]),e=e.slice(0,o)+f+e.slice(o+u),o+=f.length):o+=u;return e}var bV={};function MV(e){var r=bV[e];return r||(r=bV[e]=xV.instance(e),r)}function hv(e){return vv.extendFlat({},n6,{description:e})}function a6(e){return"Sets the calendar system to use with `"+e+"` date data."}var t6={xcalendar:hv(a6("x"))},bo=vv.extendFlat({},t6,{ycalendar:hv(a6("y"))}),r6=vv.extendFlat({},bo,{zcalendar:hv(a6("z"))}),Yf=hv(["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(" "));TV.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:bo,bar:bo,box:bo,heatmap:bo,contour:bo,histogram:bo,histogram2d:bo,histogram2dcontour:bo,scatter3d:r6,surface:r6,mesh3d:r6,scattergl:bo,ohlc:t6,candlestick:t6},layout:{calendar:hv(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:Yf},yaxis:{calendar:Yf},scene:{xaxis:{calendar:Yf},yaxis:{calendar:Yf},zaxis:{calendar:Yf}},polar:{radialaxis:{calendar:Yf}}}},layoutAttributes:n6,handleDefaults:wV,handleTraceDefaults:vye,CANONICAL_SUNDAY:dye,CANONICAL_TICK:hye,DFLTRANGE:pye,getCal:MV,worldCalFmt:yye}});var SV=xe((r7e,kV)=>{"use strict";kV.exports=AV()});var mye=xe((t7e,EV)=>{var CV=BO();CV.register([nU(),CU(),XU(),aH(),mH(),PH(),JH(),SV()]);EV.exports=CV});return mye();})();
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
/*!
* pad-left <https://github.com/jonschlinkert/pad-left>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT license.
*/
/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
/*! 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;
}));