You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
2.0 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

define((function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./node_modules/@splunk/swc-mltk/dist/build_tools/web_loaders/splunk-public-path-injection-loader.js?/static/app/Splunk_ML_Toolkit/!./src/main/webapp/visualizations/Scatter3dViz/visualization.es")}({"./node_modules/@plotly/d3/d3.js":function(e,t,n){var r,o;(function(){var i={version:"3.8.2"},a=[].slice,s=function(e){return a.call(e)},l=self.document;function c(e){return e&&(e.ownerDocument||e.document||e).documentElement}function u(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(l)try{s(l.documentElement.childNodes)[0].nodeType}catch(e){s=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),l)try{l.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var d=this.Element.prototype,f=d.setAttribute,h=d.setAttributeNS,p=this.CSSStyleDeclaration.prototype,m=p.setProperty;d.setAttribute=function(e,t){f.call(this,e,t+"")},d.setAttributeNS=function(e,t,n){h.call(this,e,t,n+"")},p.setProperty=function(e,t,n){m.call(this,e,t+"",n)}}function g(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function v(e){return null===e?NaN:+e}function y(e){return!isNaN(e)}function b(e){return{left:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}i.ascending=g,i.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},i.min=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o<i;)if(null!=(r=e[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=e[o])&&n>r&&(n=r)}else{for(;++o<i;)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=r;break}for(;++o<i;)null!=(r=t.call(e,e[o],o))&&n>r&&(n=r)}return n},i.max=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o<i;)if(null!=(r=e[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=e[o])&&r>n&&(n=r)}else{for(;++o<i;)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=r;break}for(;++o<i;)null!=(r=t.call(e,e[o],o))&&r>n&&(n=r)}return n},i.extent=function(e,t){var n,r,o,i=-1,a=e.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=e[i])&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=e[i])&&(n>r&&(n=r),o<r&&(o=r))}else{for(;++i<a;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=t.call(e,e[i],i))&&(n>r&&(n=r),o<r&&(o=r))}return[n,o]},i.sum=function(e,t){var n,r=0,o=e.length,i=-1;if(1===arguments.length)for(;++i<o;)y(n=+e[i])&&(r+=n);else for(;++i<o;)y(n=+t.call(e,e[i],i))&&(r+=n);return r},i.mean=function(e,t){var n,r=0,o=e.length,i=-1,a=o;if(1===arguments.length)for(;++i<o;)y(n=v(e[i]))?r+=n:--a;else for(;++i<o;)y(n=v(t.call(e,e[i],i)))?r+=n:--a;if(a)return r/a},i.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),o=+e[r-1],i=n-r;return i?o+i*(e[r]-o):o},i.median=function(e,t){var n,r=[],o=e.length,a=-1;if(1===arguments.length)for(;++a<o;)y(n=v(e[a]))&&r.push(n);else for(;++a<o;)y(n=v(t.call(e,e[a],a)))&&r.push(n);if(r.length)return i.quantile(r.sort(g),.5)},i.variance=function(e,t){var n,r,o=e.length,i=0,a=0,s=-1,l=0;if(1===arguments.length)for(;++s<o;)y(n=v(e[s]))&&(a+=(r=n-i)*(n-(i+=r/++l)));else for(;++s<o;)y(n=v(t.call(e,e[s],s)))&&(a+=(r=n-i)*(n-(i+=r/++l)));if(l>1)return a/(l-1)},i.deviation=function(){var e=i.variance.apply(this,arguments);return e?Math.sqrt(e):e};var x=b(g);function _(e){return e.length}i.bisectLeft=x.left,i.bisect=i.bisectRight=x.right,i.bisector=function(e){return b(1===e.length?function(t,n){return g(e(t),n)}:e)},i.shuffle=function(e,t,n){(i=arguments.length)<3&&(n=e.length,i<2&&(t=0));for(var r,o,i=n-t;i;)o=Math.random()*i--|0,r=e[i+t],e[i+t]=e[o+t],e[o+t]=r;return e},i.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},i.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],o=new Array(n<0?0:n);t<n;)o[t]=[r,r=e[++t]];return o},i.transpose=function(e){if(!(o=e.length))return[];for(var t=-1,n=i.min(e,_),r=new Array(n);++t<n;)for(var o,a=-1,s=r[t]=new Array(o);++a<o;)s[a]=e[a][t];return r},i.zip=function(){return i.transpose(arguments)},i.keys=function(e){var t=[];for(var n in e)t.push(n);return t},i.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},i.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},i.merge=function(e){for(var t,n,r,o=e.length,i=-1,a=0;++i<o;)a+=e[i].length;for(n=new Array(a);--o>=0;)for(t=(r=e[o]).length;--t>=0;)n[--a]=r[t];return n};var w=Math.abs;function j(e){for(var t=1;e*t%1;)t*=10;return t}function k(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function T(){this._=Object.create(null)}i.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,o=[],i=j(w(n)),a=-1;if(e*=i,t*=i,(n*=i)<0)for(;(r=e+n*++a)>t;)o.push(r/i);else for(;(r=e+n*++a)<t;)o.push(r/i);return o},i.map=function(e,t){var n=new T;if(e instanceof T)e.forEach((function(e,t){n.set(e,t)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(1===arguments.length)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t.call(e,r=e[o],o),r)}else for(var a in e)n.set(a,e[a]);return n};function A(e){return"__proto__"==(e+="")||"\0"===e[0]?"\0"+e:e}function M(e){return"\0"===(e+="")[0]?e.slice(1):e}function S(e){return A(e)in this._}function C(e){return(e=A(e))in this._&&delete this._[e]}function E(){var e=[];for(var t in this._)e.push(M(t));return e}function L(){var e=0;for(var t in this._)++e;return e}function O(){for(var e in this._)return!1;return!0}function R(){this._=Object.create(null)}function I(e){return e}function P(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function D(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=z.length;n<r;++n){var o=z[n]+t;if(o in e)return o}}k(T,{has:S,get:function(e){return this._[A(e)]},set:function(e,t){return this._[A(e)]=t},remove:C,keys:E,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:M(t),value:this._[t]});return e},size:L,empty:O,forEach:function(e){for(var t in this._)e.call(this,M(t),this._[t])}}),i.nest=function(){var e,t,n={},r=[],o=[];function a(o,i,s){if(s>=r.length)return t?t.call(n,i):e?i.sort(e):i;for(var l,c,u,d,f=-1,h=i.length,p=r[s++],m=new T;++f<h;)(d=m.get(l=p(c=i[f])))?d.push(c):m.set(l,[c]);return o?(c=o(),u=function(e,t){c.set(e,a(o,t,s))}):(c={},u=function(e,t){c[e]=a(o,t,s)}),m.forEach(u),c}return n.map=function(e,t){return a(t,e,0)},n.entries=function(e){return function e(t,n){if(n>=r.length)return t;var i=[],a=o[n++];return t.forEach((function(t,r){i.push({key:t,values:e(r,n)})})),a?i.sort((function(e,t){return a(e.key,t.key)})):i}(a(i.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return o[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},i.set=function(e){var t=new R;if(e)for(var n=0,r=e.length;n<r;++n)t.add(e[n]);return t},k(R,{has:S,add:function(e){return this._[A(e+="")]=!0,e},remove:C,values:E,size:L,empty:O,forEach:function(e){for(var t in this._)e.call(this,M(t))}}),i.behavior={},i.rebind=function(e,t){for(var n,r=1,o=arguments.length;++r<o;)e[n=arguments[r]]=P(e,t,t[n]);return e};var z=["webkit","ms","moz","Moz","o","O"];function N(){}function F(){}function B(e){var t=[],n=new T;function r(){for(var n,r=t,o=-1,i=r.length;++o<i;)(n=r[o].on)&&n.apply(this,arguments);return e}return r.on=function(r,o){var i,a=n.get(r);return arguments.length<2?a&&a.on:(a&&(a.on=null,t=t.slice(0,i=t.indexOf(a)).concat(t.slice(i+1)),n.remove(r)),o&&t.push(n.set(r,{on:o})),e)},r}function U(){i.event.preventDefault()}function H(){for(var e,t=i.event;e=t.sourceEvent;)t=e;return t}function V(e){for(var t=new F,n=0,r=arguments.length;++n<r;)t[arguments[n]]=B(t);return t.of=function(n,r){return function(o){try{var a=o.sourceEvent=i.event;o.target=e,i.event=o,t[o.type].apply(n,r)}finally{i.event=a}}},t}i.dispatch=function(){for(var e=new F,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=B(e);return e},F.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},i.event=null,i.requote=function(e){return e.replace(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,q={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function W(e){return q(e,$),e}var Y=function(e,t){return t.querySelector(e)},X=function(e,t){return t.querySelectorAll(e)},Z=function(e,t){var n=e.matches||e[D(e,"matchesSelector")];return(Z=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(Y=function(e,t){return Sizzle(e,t)[0]||null},X=Sizzle,Z=Sizzle.matchesSelector),i.selection=function(){return i.select(l.documentElement)};var $=i.selection.prototype=[];function K(e){return"function"==typeof e?e:function(){return Y(e,this)}}function J(e){return"function"==typeof e?e:function(){return X(e,this)}}$.select=function(e){var t,n,r,o,i=[];e=K(e);for(var a=-1,s=this.length;++a<s;){i.push(t=[]),t.parentNode=(r=this[a]).parentNode;for(var l=-1,c=r.length;++l<c;)(o=r[l])?(t.push(n=e.call(o,o.__data__,l,a)),n&&"__data__"in o&&(n.__data__=o.__data__)):t.push(null)}return W(i)},$.selectAll=function(e){var t,n,r=[];e=J(e);for(var o=-1,i=this.length;++o<i;)for(var a=this[o],l=-1,c=a.length;++l<c;)(n=a[l])&&(r.push(t=s(e.call(n,n.__data__,l,o))),t.parentNode=n);return W(r)};var Q="http://www.w3.org/1999/xhtml",ee={svg:"http://www.w3.org/2000/svg",xhtml:Q,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function te(e,t){return e=i.ns.qualify(e),null==t?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:"function"==typeof t?e.local?function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}:function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}:e.local?function(){this.setAttributeNS(e.space,e.local,t)}:function(){this.setAttribute(e,t)}}function ne(e){return e.trim().replace(/\s+/g," ")}function re(e){return new RegExp("(?:^|\\s+)"+i.requote(e)+"(?:\\s+|$)","g")}function oe(e){return(e+"").trim().split(/^|\s+/)}function ie(e,t){var n=(e=oe(e).map(ae)).length;return"function"==typeof t?function(){for(var r=-1,o=t.apply(this,arguments);++r<n;)e[r](this,o)}:function(){for(var r=-1;++r<n;)e[r](this,t)}}function ae(e){var t=re(e);return function(n,r){if(o=n.classList)return r?o.add(e):o.remove(e);var o=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(o)||n.setAttribute("class",ne(o+" "+e))):n.setAttribute("class",ne(o.replace(t," ")))}}function se(e,t,n){return null==t?function(){this.style.removeProperty(e)}:"function"==typeof t?function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}:function(){this.style.setProperty(e,t,n)}}function le(e,t){return null==t?function(){delete this[e]}:"function"==typeof t?function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}:function(){this[e]=t}}function ce(e){return"function"==typeof e?e:(e=i.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Q&&t.documentElement.namespaceURI===Q?t.createElement(e):t.createElementNS(n,e)}}function ue(){var e=this.parentNode;e&&e.removeChild(this)}function de(e){return{__data__:e}}function fe(e){return function(){return Z(this,e)}}function he(e){return arguments.length||(e=g),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function pe(e,t){for(var n=0,r=e.length;n<r;n++)for(var o,i=e[n],a=0,s=i.length;a<s;a++)(o=i[a])&&t(o,a,n);return e}function me(e){return q(e,ge),e}i.ns={prefix:ee,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),ee.hasOwnProperty(n)?{space:ee[n],local:e}:e}},$.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=i.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(te(t,e[t]));return this}return this.each(te(e,t))},$.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=oe(e)).length,o=-1;if(t=n.classList){for(;++o<r;)if(!t.contains(e[o]))return!1}else for(t=n.getAttribute("class");++o<r;)if(!re(e[o]).test(t))return!1;return!0}for(t in e)this.each(ie(t,e[t]));return this}return this.each(ie(e,t))},$.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=""),e)this.each(se(n,e[n],t));return this}if(r<2){var o=this.node();return u(o).getComputedStyle(o,null).getPropertyValue(e)}n=""}return this.each(se(e,t,n))},$.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(le(t,e[t]));return this}return this.each(le(e,t))},$.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},$.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},$.append=function(e){return e=ce(e),this.select((function(){return this.appendChild(e.apply(this,arguments))}))},$.insert=function(e,t){return e=ce(e),t=K(t),this.select((function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)}))},$.remove=function(){return this.each(ue)},$.data=function(e,t){var n,r,o=-1,i=this.length;if(!arguments.length){for(e=new Array(i=(n=this[0]).length);++o<i;)(r=n[o])&&(e[o]=r.__data__);return e}function a(e,n){var r,o,i,a=e.length,u=n.length,d=Math.min(a,u),f=new Array(u),h=new Array(u),p=new Array(a);if(t){var m,g=new T,v=new Array(a);for(r=-1;++r<a;)(o=e[r])&&(g.has(m=t.call(o,o.__data__,r))?p[r]=o:g.set(m,o),v[r]=m);for(r=-1;++r<u;)(o=g.get(m=t.call(n,i=n[r],r)))?!0!==o&&(f[r]=o,o.__data__=i):h[r]=de(i),g.set(m,!0);for(r=-1;++r<a;)r in v&&!0!==g.get(v[r])&&(p[r]=e[r])}else{for(r=-1;++r<d;)o=e[r],i=n[r],o?(o.__data__=i,f[r]=o):h[r]=de(i);for(;r<u;++r)h[r]=de(n[r]);for(;r<a;++r)p[r]=e[r]}h.update=f,h.parentNode=f.parentNode=p.parentNode=e.parentNode,s.push(h),l.push(f),c.push(p)}var s=me([]),l=W([]),c=W([]);if("function"==typeof e)for(;++o<i;)a(n=this[o],e.call(n,n.parentNode.__data__,o));else for(;++o<i;)a(n=this[o],e);return l.enter=function(){return s},l.exit=function(){return c},l},$.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},$.filter=function(e){var t,n,r,o=[];"function"!=typeof e&&(e=fe(e));for(var i=0,a=this.length;i<a;i++){o.push(t=[]),t.parentNode=(n=this[i]).parentNode;for(var s=0,l=n.length;s<l;s++)(r=n[s])&&e.call(r,r.__data__,s,i)&&t.push(r)}return W(o)},$.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],o=r.length-1,i=r[o];--o>=0;)(n=r[o])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},$.sort=function(e){e=he.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},$.each=function(e){return pe(this,(function(t,n,r){e.call(t,t.__data__,n,r)}))},$.call=function(e){var t=s(arguments);return e.apply(t[0]=this,t),this},$.empty=function(){return!this.node()},$.node=function(){for(var e=0,t=this.length;e<t;e++)for(var n=this[e],r=0,o=n.length;r<o;r++){var i=n[r];if(i)return i}return null},$.size=function(){var e=0;return pe(this,(function(){++e})),e};var ge=[];function ve(e){var t,n;return function(r,o,i){var a,s=e[i].update,l=s.length;for(i!=n&&(n=i,t=0),o>=t&&(t=o+1);!(a=s[t])&&++t<l;);return a}}function ye(e,t,n){var r="__on"+e,o=e.indexOf("."),a=xe;o>0&&(e=e.slice(0,o));var l=be.get(e);function c(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}return l&&(e=l,a=_e),o?t?function(){var o=a(t,s(arguments));c.call(this),this.addEventListener(e,this[r]=o,o.$=n),o._=t}:c:t?N:function(){var t,n=new RegExp("^__on([^.]+)"+i.requote(e)+"$");for(var r in this)if(t=r.match(n)){var o=this[r];this.removeEventListener(t[1],o,o.$),delete this[r]}}}i.selection.enter=me,i.selection.enter.prototype=ge,ge.append=$.append,ge.empty=$.empty,ge.node=$.node,ge.call=$.call,ge.size=$.size,ge.select=function(e){for(var t,n,r,o,i,a=[],s=-1,l=this.length;++s<l;){r=(o=this[s]).update,a.push(t=[]),t.parentNode=o.parentNode;for(var c=-1,u=o.length;++c<u;)(i=o[c])?(t.push(r[c]=n=e.call(o.parentNode,i.__data__,c,s)),n.__data__=i.__data__):t.push(null)}return W(a)},ge.insert=function(e,t){return arguments.length<2&&(t=ve(this)),$.insert.call(this,e,t)},i.select=function(e){var t;return"string"==typeof e?(t=[Y(e,l)]).parentNode=l.documentElement:(t=[e]).parentNode=c(e),W([t])},i.selectAll=function(e){var t;return"string"==typeof e?(t=s(X(e,l))).parentNode=l.documentElement:(t=s(e)).parentNode=null,W([t])},$.on=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=!1),e)this.each(ye(n,e[n],t));return this}if(r<2)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(ye(e,t,n))};var be=i.map({mouseenter:"mouseover",mouseleave:"mouseout"});function xe(e,t){return function(n){var r=i.event;i.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{i.event=r}}}function _e(e,t){var n=xe(e,t);return function(e){var t=e.relatedTarget;t&&(t===this||8&t.compareDocumentPosition(this))||n.call(this,e)}}l&&be.forEach((function(e){"on"+e in l&&be.remove(e)}));var we,je=0;function ke(e){var t=".dragsuppress-"+ ++je,n="click"+t,r=i.select(u(e)).on("touchmove"+t,U).on("dragstart"+t,U).on("selectstart"+t,U);if(null==we&&(we=!("onselectstart"in e)&&D(e.style,"userSelect")),we){var o=c(e).style,a=o[we];o[we]="none"}return function(e){if(r.on(t,null),we&&(o[we]=a),e){var i=function(){r.on(n,null)};r.on(n,(function(){U(),i()}),!0),setTimeout(i,0)}}}i.mouse=function(e){return Ae(e,H())};var Te=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ae(e,t){t.changedTouches&&(t=t.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();if(Te<0){var o=u(e);if(o.scrollX||o.scrollY){var a=(n=i.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();Te=!(a.f||a.e),n.remove()}}return Te?(r.x=t.pageX,r.y=t.pageY):(r.x=t.clientX,r.y=t.clientY),[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}function Me(){return i.event.changedTouches[0].identifier}i.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=H().changedTouches),t)for(var r,o=0,i=t.length;o<i;++o)if((r=t[o]).identifier===n)return Ae(e,r)},i.behavior.drag=function(){var e=V(o,"drag","dragstart","dragend"),t=null,n=a(N,i.mouse,u,"mousemove","mouseup"),r=a(Me,i.touch,I,"touchmove","touchend");function o(){this.on("mousedown.drag",n).on("touchstart.drag",r)}function a(n,r,o,a,s){return function(){var l,c=this,u=i.event.target.correspondingElement||i.event.target,d=c.parentNode,f=e.of(c,arguments),h=0,p=n(),m=".drag"+(null==p?"":"-"+p),g=i.select(o(u)).on(a+m,b).on(s+m,x),v=ke(u),y=r(d,p);function b(){var e,t,n=r(d,p);n&&(e=n[0]-y[0],t=n[1]-y[1],h|=e|t,y=n,f({type:"drag",x:n[0]+l[0],y:n[1]+l[1],dx:e,dy:t}))}function x(){r(d,p)&&(g.on(a+m,null).on(s+m,null),v(h),f({type:"dragend"}))}l=t?[(l=t.apply(c,arguments)).x-y[0],l.y-y[1]]:[0,0],f({type:"dragstart"})}}return o.origin=function(e){return arguments.length?(t=e,o):t},i.rebind(o,e,"on")},i.touches=function(e,t){return arguments.length<2&&(t=H().touches),t?s(t).map((function(t){var n=Ae(e,t);return n.identifier=t.identifier,n})):[]};var Se=1e-6,Ce=Math.PI,Ee=2*Ce,Le=Ee-Se,Oe=Ce/2,Re=Ce/180,Ie=180/Ce;function Pe(e){return e>1?Oe:e<-1?-Oe:Math.asin(e)}function De(e){return((e=Math.exp(e))+1/e)/2}var ze=Math.SQRT2;i.interpolateZoom=function(e,t){var n,r,o=e[0],i=e[1],a=e[2],s=t[0],l=t[1],c=t[2],u=s-o,d=l-i,f=u*u+d*d;if(f<1e-12)r=Math.log(c/a)/ze,n=function(e){return[o+e*u,i+e*d,a*Math.exp(ze*e*r)]};else{var h=Math.sqrt(f),p=(c*c-a*a+4*f)/(2*a*2*h),m=(c*c-a*a-4*f)/(2*c*2*h),g=Math.log(Math.sqrt(p*p+1)-p),v=Math.log(Math.sqrt(m*m+1)-m);r=(v-g)/ze,n=function(e){var t,n=e*r,s=De(g),l=a/(2*h)*(s*(t=ze*n+g,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(g));return[o+l*u,i+l*d,a*s/De(ze*n+g)]}}return n.duration=1e3*r,n},i.behavior.zoom=function(){var e,t,n,r,o,a,s,c,d,f={x:0,y:0,k:1},h=[960,500],p=Be,m=250,g=0,v="mousedown.zoom",y="mousemove.zoom",b="mouseup.zoom",x="touchstart.zoom",_=V(w,"zoomstart","zoom","zoomend");function w(e){e.on(v,L).on(Fe+".zoom",R).on("dblclick.zoom",I).on(x,O)}function j(e){return[(e[0]-f.x)/f.k,(e[1]-f.y)/f.k]}function k(e){f.k=Math.max(p[0],Math.min(p[1],e))}function T(e,t){t=function(e){return[e[0]*f.k+f.x,e[1]*f.k+f.y]}(t),f.x+=e[0]-t[0],f.y+=e[1]-t[1]}function A(e,n,r,o){e.__chart__={x:f.x,y:f.y,k:f.k},k(Math.pow(2,o)),T(t=n,r),e=i.select(e),m>0&&(e=e.transition().duration(m)),e.call(w.event)}function M(){s&&s.domain(a.range().map((function(e){return(e-f.x)/f.k})).map(a.invert)),d&&d.domain(c.range().map((function(e){return(e-f.y)/f.k})).map(c.invert))}function S(e){g++||e({type:"zoomstart"})}function C(e){M(),e({type:"zoom",scale:f.k,translate:[f.x,f.y]})}function E(e){--g||(e({type:"zoomend"}),t=null)}function L(){var e=this,t=_.of(e,arguments),n=0,r=i.select(u(e)).on(y,s).on(b,l),o=j(i.mouse(e)),a=ke(e);function s(){n=1,T(i.mouse(e),o),C(t)}function l(){r.on(y,null).on(b,null),a(n),E(t)}Bo.call(e),S(t)}function O(){var e,t=this,n=_.of(t,arguments),r={},a=0,s=".zoom-"+i.event.changedTouches[0].identifier,l="touchmove"+s,c="touchend"+s,u=[],d=i.select(t),h=ke(t);function p(){var n=i.touches(t);return e=f.k,n.forEach((function(e){e.identifier in r&&(r[e.identifier]=j(e))})),n}function m(){var e=i.event.target;i.select(e).on(l,g).on(c,y),u.push(e);for(var n=i.event.changedTouches,s=0,d=n.length;s<d;++s)r[n[s].identifier]=null;var h=p(),m=Date.now();if(1===h.length){if(m-o<500){var v=h[0];A(t,v,r[v.identifier],Math.floor(Math.log(f.k)/Math.LN2)+1),U()}o=m}else if(h.length>1){v=h[0];var b=h[1],x=v[0]-b[0],_=v[1]-b[1];a=x*x+_*_}}function g(){var s,l,c,u,d=i.touches(t);Bo.call(t);for(var f=0,h=d.length;f<h;++f,u=null)if(c=d[f],u=r[c.identifier]){if(l)break;s=c,l=u}if(u){var p=(p=c[0]-s[0])*p+(p=c[1]-s[1])*p,m=a&&Math.sqrt(p/a);s=[(s[0]+c[0])/2,(s[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],k(m*e)}o=null,T(s,l),C(n)}function y(){if(i.event.touches.length){for(var e=i.event.changedTouches,t=0,o=e.length;t<o;++t)delete r[e[t].identifier];for(var a in r)return void p()}i.selectAll(u).on(s,null),d.on(v,L).on(x,O),h(),E(n)}m(),S(n),d.on(v,null).on(x,m)}function R(){var o=_.of(this,arguments);r?clearTimeout(r):(Bo.call(this),e=j(t=n||i.mouse(this)),S(o)),r=setTimeout((function(){r=null,E(o)}),50),U(),k(Math.pow(2,.002*Ne())*f.k),T(t,e),C(o)}function I(){var e=i.mouse(this),t=Math.log(f.k)/Math.LN2;A(this,e,j(e),i.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}return Fe||(Fe="onwheel"in l?(Ne=function(){return-i.event.deltaY*(i.event.deltaMode?120:1)},"wheel"):"onmousewheel"in l?(Ne=function(){return i.event.wheelDelta},"mousewheel"):(Ne=function(){return-i.event.detail},"MozMousePixelScroll")),w.event=function(e){e.each((function(){var e=_.of(this,arguments),n=f;Vo?i.select(this).transition().each("start.zoom",(function(){f=this.__chart__||{x:0,y:0,k:1},S(e)})).tween("zoom:zoom",(function(){var r=h[0],o=h[1],a=t?t[0]:r/2,s=t?t[1]:o/2,l=i.interpolateZoom([(a-f.x)/f.k,(s-f.y)/f.k,r/f.k],[(a-n.x)/n.k,(s-n.y)/n.k,r/n.k]);return function(t){var n=l(t),o=r/n[2];this.__chart__=f={x:a-n[0]*o,y:s-n[1]*o,k:o},C(e)}})).each("interrupt.zoom",(function(){E(e)})).each("end.zoom",(function(){E(e)})):(this.__chart__=f,S(e),C(e),E(e))}))},w.translate=function(e){return arguments.length?(f={x:+e[0],y:+e[1],k:f.k},M(),w):[f.x,f.y]},w.scale=function(e){return arguments.length?(f={x:f.x,y:f.y,k:null},k(+e),M(),w):f.k},w.scaleExtent=function(e){return arguments.length?(p=null==e?Be:[+e[0],+e[1]],w):p},w.center=function(e){return arguments.length?(n=e&&[+e[0],+e[1]],w):n},w.size=function(e){return arguments.length?(h=e&&[+e[0],+e[1]],w):h},w.duration=function(e){return arguments.length?(m=+e,w):m},w.x=function(e){return arguments.length?(s=e,a=e.copy(),f={x:0,y:0,k:1},w):s},w.y=function(e){return arguments.length?(d=e,c=e.copy(),f={x:0,y:0,k:1},w):d},i.rebind(w,_,"on")};var Ne,Fe,Be=[0,1/0];function Ue(){}function He(e,t,n){return this instanceof He?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof He?new He(e.h,e.s,e.l):st(""+e,lt,He):new He(e,t,n)}i.color=Ue,Ue.prototype.toString=function(){return this.rgb()+""},i.hsl=He;var Ve=He.prototype=new Ue;function Ge(e,t,n){var r,o;function i(e){return Math.round(255*function(e){return e>360?e-=360:e<0&&(e+=360),e<60?r+(o-r)*e/60:e<180?o:e<240?r+(o-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(o=n<=.5?n*(1+t):n+t-n*t),new nt(i(e+120),i(e),i(e-120))}function qe(e,t,n){return this instanceof qe?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof qe?new qe(e.h,e.c,e.l):Je(e instanceof Xe?e.l:(e=ct((e=i.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new qe(e,t,n)}Ve.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new He(this.h,this.s,this.l/e)},Ve.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new He(this.h,this.s,e*this.l)},Ve.rgb=function(){return Ge(this.h,this.s,this.l)},i.hcl=qe;var We=qe.prototype=new Ue;function Ye(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Xe(n,Math.cos(e*=Re)*t,Math.sin(e)*t)}function Xe(e,t,n){return this instanceof Xe?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Xe?new Xe(e.l,e.a,e.b):e instanceof qe?Ye(e.h,e.c,e.l):ct((e=nt(e)).r,e.g,e.b):new Xe(e,t,n)}We.brighter=function(e){return new qe(this.h,this.c,Math.min(100,this.l+Ze*(arguments.length?e:1)))},We.darker=function(e){return new qe(this.h,this.c,Math.max(0,this.l-Ze*(arguments.length?e:1)))},We.rgb=function(){return Ye(this.h,this.c,this.l).rgb()},i.lab=Xe;var Ze=18,$e=Xe.prototype=new Ue;function Ke(e,t,n){var r=(e+16)/116,o=r+t/500,i=r-n/200;return new nt(tt(3.2404542*(o=.95047*Qe(o))-1.5371385*(r=1*Qe(r))-.4985314*(i=1.08883*Qe(i))),tt(-.969266*o+1.8760108*r+.041556*i),tt(.0556434*o-.2040259*r+1.0572252*i))}function Je(e,t,n){return e>0?new qe(Math.atan2(n,t)*Ie,Math.sqrt(t*t+n*n),e):new qe(NaN,NaN,e)}function Qe(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function et(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function tt(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function nt(e,t,n){return this instanceof nt?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof nt?new nt(e.r,e.g,e.b):st(""+e,nt,Ge):new nt(e,t,n)}function rt(e){return new nt(e>>16,e>>8&255,255&e)}function ot(e){return rt(e)+""}$e.brighter=function(e){return new Xe(Math.min(100,this.l+Ze*(arguments.length?e:1)),this.a,this.b)},$e.darker=function(e){return new Xe(Math.max(0,this.l-Ze*(arguments.length?e:1)),this.a,this.b)},$e.rgb=function(){return Ke(this.l,this.a,this.b)},i.rgb=nt;var it=nt.prototype=new Ue;function at(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function st(e,t,n){var r,o,i,a=0,s=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(o=r[2].split(","),r[1]){case"hsl":return n(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return t(dt(o[0]),dt(o[1]),dt(o[2]))}return(i=ft.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&i)>>4,a|=a>>4,s=240&i,s|=s>>4,l=15&i,l|=l<<4):7===e.length&&(a=(16711680&i)>>16,s=(65280&i)>>8,l=255&i)),t(a,s,l))}function lt(e,t,n){var r,o,i=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-i,l=(a+i)/2;return s?(o=l<.5?s/(a+i):s/(2-a-i),r=e==a?(t-n)/s+(t<n?6:0):t==a?(n-e)/s+2:(e-t)/s+4,r*=60):(r=NaN,o=l>0&&l<1?0:r),new He(r,o,l)}function ct(e,t,n){var r=et((.4124564*(e=ut(e))+.3575761*(t=ut(t))+.1804375*(n=ut(n)))/.95047),o=et((.2126729*e+.7151522*t+.072175*n)/1);return Xe(116*o-16,500*(r-o),200*(o-et((.0193339*e+.119192*t+.9503041*n)/1.08883)))}function ut(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function dt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}it.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,o=30;return t||n||r?(t&&t<o&&(t=o),n&&n<o&&(n=o),r&&r<o&&(r=o),new nt(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new nt(o,o,o)},it.darker=function(e){return new nt((e=Math.pow(.7,arguments.length?e:1))*this.r,e*this.g,e*this.b)},it.hsl=function(){return lt(this.r,this.g,this.b)},it.toString=function(){return"#"+at(this.r)+at(this.g)+at(this.b)};var ft=i.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});function ht(e){return"function"==typeof e?e:function(){return e}}function pt(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),mt(t,n,e,r)}}function mt(e,t,n,r){var o={},a=i.dispatch("beforesend","progress","load","error"),l={},c=new XMLHttpRequest,u=null;function d(){var e,t=c.status;if(!t&&function(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}(c)||t>=200&&t<300||304===t){try{e=n.call(o,c)}catch(e){return void a.error.call(o,e)}a.load.call(o,e)}else a.error.call(o,c)}return self.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(e)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=d:c.onreadystatechange=function(){c.readyState>3&&d()},c.onprogress=function(e){var t=i.event;i.event=e;try{a.progress.call(o,c)}finally{i.event=t}},o.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?l[e]:(null==t?delete l[e]:l[e]=t+"",o)},o.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",o):t},o.responseType=function(e){return arguments.length?(u=e,o):u},o.response=function(e){return n=e,o},["get","post"].forEach((function(e){o[e]=function(){return o.send.apply(o,[e].concat(s(arguments)))}})),o.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),c.open(n,e,!0),null==t||"accept"in l||(l.accept=t+",*/*"),c.setRequestHeader)for(var s in l)c.setRequestHeader(s,l[s]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=u&&(c.responseType=u),null!=i&&o.on("error",i).on("load",(function(e){i(null,e)})),a.beforesend.call(o,c),c.send(null==r?null:r),o},o.abort=function(){return c.abort(),o},i.rebind(o,a,"on"),null==r?o:o.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(r))}ft.forEach((function(e,t){ft.set(e,rt(t))})),i.functor=ht,i.xhr=pt(I),i.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function o(e,n,r){arguments.length<3&&(r=n,n=null);var o=mt(e,t,null==n?i:a(n),r);return o.row=function(e){return arguments.length?o.response(null==(n=e)?i:a(e)):n},o}function i(e){return o.parse(e.responseText)}function a(e){return function(t){return o.parse(t.responseText,e)}}function s(t){return t.map(l).join(e)}function l(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return o.parse=function(e,t){var n;return o.parseRows(e,(function(e,r){if(n)return n(e,r-1);var o=function(t){for(var n={},r=e.length,o=0;o<r;++o)n[e[o]]=t[o];return n};n=t?function(e,n){return t(o(e),n)}:o}))},o.parseRows=function(e,t){var n,o,i={},a={},s=[],l=e.length,c=0,u=0;function d(){if(c>=l)return a;if(o)return o=!1,i;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++<l;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}return c=n+2,13===(s=e.charCodeAt(n+1))?(o=!0,10===e.charCodeAt(n+2)&&++c):10===s&&(o=!0),e.slice(t+1,n).replace(/""/g,'"')}for(;c<l;){var s,u=1;if(10===(s=e.charCodeAt(c++)))o=!0;else if(13===s)o=!0,10===e.charCodeAt(c)&&(++c,++u);else if(s!==r)continue;return e.slice(t,c-u)}return e.slice(t)}for(;(n=d())!==a;){for(var f=[];n!==i&&n!==a;)f.push(n),n=d();t&&null==(f=t(f,u++))||s.push(f)}return s},o.format=function(t){if(Array.isArray(t[0]))return o.formatRows(t);var n=new R,r=[];return t.forEach((function(e){for(var t in e)n.has(t)||r.push(n.add(t))})),[r.map(l).join(e)].concat(t.map((function(t){return r.map((function(e){return l(t[e])})).join(e)}))).join("\n")},o.formatRows=function(e){return e.map(s).join("\n")},o},i.csv=i.dsv(",","text/csv"),i.tsv=i.dsv("\t","text/tab-separated-values");var gt,vt,yt,bt,xt=this[D(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function _t(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var o=n+t,i={c:e,t:o,n:null};return vt?vt.n=i:gt=i,vt=i,yt||(bt=clearTimeout(bt),yt=1,xt(wt)),i}function wt(){var e=jt(),t=kt()-e;t>24?(isFinite(t)&&(clearTimeout(bt),bt=setTimeout(wt,t)),yt=0):(yt=1,xt(wt))}function jt(){for(var e=Date.now(),t=gt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function kt(){for(var e,t=gt,n=1/0;t;)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:gt=t.n;return vt=e,n}function Tt(e){return e[0]}function At(e){return e[1]}function Mt(e){for(var t,n,r,o=e.length,i=[0,1],a=2,s=2;s<o;s++){for(;a>1&&(t=e[i[a-2]],n=e[i[a-1]],r=e[s],(n[0]-t[0])*(r[1]-t[1])-(n[1]-t[1])*(r[0]-t[0])<=0);)--a;i[a++]=s}return i.slice(0,a)}function St(e,t){return e[0]-t[0]||e[1]-t[1]}i.timer=function(){_t.apply(this,arguments)},i.timer.flush=function(){jt(),kt()},i.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},i.geom={},i.geom.hull=function(e){var t=Tt,n=At;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,o=ht(t),i=ht(n),a=e.length,s=[],l=[];for(r=0;r<a;r++)s.push([+o.call(this,e[r],r),+i.call(this,e[r],r),r]);for(s.sort(St),r=0;r<a;r++)l.push([s[r][0],-s[r][1]]);var c=Mt(s),u=Mt(l),d=u[0]===c[0],f=u[u.length-1]===c[c.length-1],h=[];for(r=c.length-1;r>=0;--r)h.push(e[s[c[r]][2]]);for(r=+d;r<u.length-f;++r)h.push(e[s[u[r]][2]]);return h}return r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(e){return arguments.length?(n=e,r):n},r},i.geom.polygon=function(e){return q(e,Ct),e};var Ct=i.geom.polygon.prototype=[];function Et(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Lt(e,t,n,r){var o=e[0],i=n[0],a=t[0]-o,s=r[0]-i,l=e[1],c=n[1],u=t[1]-l,d=r[1]-c,f=(s*(l-c)-d*(o-i))/(d*a-s*u);return[o+f*a,l+f*u]}function Ot(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}Ct.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],o=0;++t<n;)e=r,r=this[t],o+=e[1]*r[0]-e[0]*r[1];return.5*o},Ct.centroid=function(e){var t,n,r=-1,o=this.length,i=0,a=0,s=this[o-1];for(arguments.length||(e=-1/(6*this.area()));++r<o;)t=s,s=this[r],n=t[0]*s[1]-s[0]*t[1],i+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[i*e,a*e]},Ct.clip=function(e){for(var t,n,r,o,i,a,s=Ot(e),l=-1,c=this.length-Ot(this),u=this[c-1];++l<c;){for(t=e.slice(),e.length=0,o=this[l],i=t[(r=t.length-s)-1],n=-1;++n<r;)Et(a=t[n],u,o)?(Et(i,u,o)||e.push(Lt(i,a,u,o)),e.push(a)):Et(i,u,o)&&e.push(Lt(i,a,u,o)),i=a;s&&e.push(e[0]),u=o}return e};var Rt,It,Pt,Dt,zt,Nt=[],Ft=[];function Bt(){an(this),this.edge=this.site=this.circle=null}function Ut(e){var t=Nt.pop()||new Bt;return t.site=e,t}function Ht(e){Kt(e),Pt.remove(e),Nt.push(e),an(e)}function Vt(e){var t=e.circle,n=t.x,r=t.cy,o={x:n,y:r},i=e.P,a=e.N,s=[e];Ht(e);for(var l=i;l.circle&&w(n-l.circle.x)<Se&&w(r-l.circle.cy)<Se;)i=l.P,s.unshift(l),Ht(l),l=i;s.unshift(l),Kt(l);for(var c=a;c.circle&&w(n-c.circle.x)<Se&&w(r-c.circle.cy)<Se;)a=c.N,s.push(c),Ht(c),c=a;s.push(c),Kt(c);var u,d=s.length;for(u=1;u<d;++u)c=s[u],l=s[u-1],nn(c.edge,l.site,c.site,o);l=s[0],(c=s[d-1]).edge=en(l.site,c.site,null,o),$t(l),$t(c)}function Gt(e){for(var t,n,r,o,i=e.x,a=e.y,s=Pt._;s;)if((r=qt(s,a)-i)>Se)s=s.L;else{if(!((o=i-Wt(s,a))>Se)){r>-Se?(t=s.P,n=s):o>-Se?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var l=Ut(e);if(Pt.insert(t,l),t||n){if(t===n)return Kt(t),n=Ut(t.site),Pt.insert(l,n),l.edge=n.edge=en(t.site,l.site),$t(t),void $t(n);if(n){Kt(t),Kt(n);var c=t.site,u=c.x,d=c.y,f=e.x-u,h=e.y-d,p=n.site,m=p.x-u,g=p.y-d,v=2*(f*g-h*m),y=f*f+h*h,b=m*m+g*g,x={x:(g*y-h*b)/v+u,y:(f*b-m*y)/v+d};nn(n.edge,c,p,x),l.edge=en(c,e,null,x),n.edge=en(e,p,null,x),$t(t),$t(n)}else l.edge=en(t.site,l.site)}}function qt(e,t){var n=e.site,r=n.x,o=n.y,i=o-t;if(!i)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site).x,l=n.y,c=l-t;if(!c)return s;var u=s-r,d=1/i-1/c,f=u/c;return d?(-f+Math.sqrt(f*f-2*d*(u*u/(-2*c)-l+c/2+o-i/2)))/d+r:(r+s)/2}function Wt(e,t){var n=e.N;if(n)return qt(n,t);var r=e.site;return r.y===t?r.x:1/0}function Yt(e){this.site=e,this.edges=[]}function Xt(e,t){return t.angle-e.angle}function Zt(){an(this),this.x=this.y=this.arc=this.site=this.cy=null}function $t(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,o=e.site,i=n.site;if(r!==i){var a=o.x,s=o.y,l=r.x-a,c=r.y-s,u=i.x-a,d=2*(l*(g=i.y-s)-c*u);if(!(d>=-1e-12)){var f=l*l+c*c,h=u*u+g*g,p=(g*f-c*h)/d,m=(l*h-u*f)/d,g=m+s,v=Ft.pop()||new Zt;v.arc=e,v.site=o,v.x=p+a,v.y=g+Math.sqrt(p*p+m*m),v.cy=g,e.circle=v;for(var y=null,b=zt._;b;)if(v.y<b.y||v.y===b.y&&v.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}zt.insert(y,v),y||(Dt=v)}}}}function Kt(e){var t=e.circle;t&&(t.P||(Dt=t.N),zt.remove(t),Ft.push(t),an(t),e.circle=null)}function Jt(e,t){var n=e.b;if(n)return!0;var r,o,i=e.a,a=t[0][0],s=t[1][0],l=t[0][1],c=t[1][1],u=e.l,d=e.r,f=u.x,h=u.y,p=d.x,m=d.y,g=(f+p)/2,v=(h+m)/2;if(m===h){if(g<a||g>=s)return;if(f>p){if(i){if(i.y>=c)return}else i={x:g,y:l};n={x:g,y:c}}else{if(i){if(i.y<l)return}else i={x:g,y:c};n={x:g,y:l}}}else if(o=v-(r=(f-p)/(m-h))*g,r<-1||r>1)if(f>p){if(i){if(i.y>=c)return}else i={x:(l-o)/r,y:l};n={x:(c-o)/r,y:c}}else{if(i){if(i.y<l)return}else i={x:(c-o)/r,y:c};n={x:(l-o)/r,y:l}}else if(h<m){if(i){if(i.x>=s)return}else i={x:a,y:r*a+o};n={x:s,y:r*s+o}}else{if(i){if(i.x<a)return}else i={x:s,y:r*s+o};n={x:a,y:r*a+o}}return e.a=i,e.b=n,!0}function Qt(e,t){this.l=e,this.r=t,this.a=this.b=null}function en(e,t,n,r){var o=new Qt(e,t);return Rt.push(o),n&&nn(o,e,t,n),r&&nn(o,t,e,r),It[e.i].edges.push(new rn(o,e,t)),It[t.i].edges.push(new rn(o,t,e)),o}function tn(e,t,n){var r=new Qt(e,null);return r.a=t,r.b=n,Rt.push(r),r}function nn(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function rn(e,t,n){var r=e.a,o=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(o.x-r.x,r.y-o.y):Math.atan2(r.x-o.x,o.y-r.y)}function on(){this._=null}function an(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function sn(e,t){var n=t,r=t.R,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function ln(e,t){var n=t,r=t.L,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function cn(e){for(;e.L;)e=e.L;return e}function un(e,t){var n,r,o,i=e.sort(dn).pop();for(Rt=[],It=new Array(e.length),Pt=new on,zt=new on;;)if(o=Dt,i&&(!o||i.y<o.y||i.y===o.y&&i.x<o.x))i.x===n&&i.y===r||(It[i.i]=new Yt(i),Gt(i),n=i.x,r=i.y),i=e.pop();else{if(!o)break;Vt(o.arc)}t&&(function(e){for(var t,n,r,o,i,a=Rt,s=(n=e[0][0],r=e[0][1],o=e[1][0],i=e[1][1],function(e){var t,a=e.a,s=e.b,l=a.x,c=a.y,u=0,d=1,f=s.x-l,h=s.y-c;if(t=n-l,f||!(t>0)){if(t/=f,f<0){if(t<u)return;t<d&&(d=t)}else if(f>0){if(t>d)return;t>u&&(u=t)}if(t=o-l,f||!(t<0)){if(t/=f,f<0){if(t>d)return;t>u&&(u=t)}else if(f>0){if(t<u)return;t<d&&(d=t)}if(t=r-c,h||!(t>0)){if(t/=h,h<0){if(t<u)return;t<d&&(d=t)}else if(h>0){if(t>d)return;t>u&&(u=t)}if(t=i-c,h||!(t<0)){if(t/=h,h<0){if(t>d)return;t>u&&(u=t)}else if(h>0){if(t<u)return;t<d&&(d=t)}return u>0&&(e.a={x:l+u*f,y:c+u*h}),d<1&&(e.b={x:l+d*f,y:c+d*h}),e}}}}}),l=a.length;l--;)(!Jt(t=a[l],e)||!s(t)||w(t.a.x-t.b.x)<Se&&w(t.a.y-t.b.y)<Se)&&(t.a=t.b=null,a.splice(l,1))}(t),function(e){for(var t,n,r,o,i,a,s,l,c,u,d=e[0][0],f=e[1][0],h=e[0][1],p=e[1][1],m=It,g=m.length;g--;)if((i=m[g])&&i.prepare())for(l=(s=i.edges).length,a=0;a<l;)r=(u=s[a].end()).x,o=u.y,t=(c=s[++a%l].start()).x,n=c.y,(w(r-t)>Se||w(o-n)>Se)&&(s.splice(a,0,new rn(tn(i.site,u,w(r-d)<Se&&p-o>Se?{x:d,y:w(t-d)<Se?n:p}:w(o-p)<Se&&f-r>Se?{x:w(n-p)<Se?t:f,y:p}:w(r-f)<Se&&o-h>Se?{x:f,y:w(t-f)<Se?n:h}:w(o-h)<Se&&r-d>Se?{x:w(n-h)<Se?t:d,y:h}:null),i.site,null)),++l)}(t));var a={cells:It,edges:Rt};return Pt=zt=Rt=It=null,a}function dn(e,t){return t.y-e.y||t.x-e.x}Yt.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)(e=t[n].edge).b&&e.a||t.splice(n,1);return t.sort(Xt),t.length},rn.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}},on.prototype={insert:function(e,t){var n,r,o;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=cn(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(o=r.R)&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.R&&(sn(this,n),n=(e=n).U),n.C=!1,r.C=!0,ln(this,r)):(o=r.L)&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.L&&(ln(this,n),n=(e=n).U),n.C=!1,r.C=!0,sn(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,o=e.U,i=e.L,a=e.R;if(n=i?a?cn(a):i:a,o?o.L===e?o.L=n:o.R=n:this._=n,i&&a?(r=n.C,n.C=e.C,n.L=i,i.U=n,n!==a?(o=n.U,n.U=e.U,e=n.R,o.L=e,n.R=a,a.U=n):(n.U=o,o=n,e=n.R)):(r=e.C,e=n),e&&(e.U=o),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===o.L){if((t=o.R).C&&(t.C=!1,o.C=!0,sn(this,o),t=o.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ln(this,t),t=o.R),t.C=o.C,o.C=t.R.C=!1,sn(this,o),e=this._;break}}else if((t=o.L).C&&(t.C=!1,o.C=!0,ln(this,o),t=o.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,sn(this,t),t=o.L),t.C=o.C,o.C=t.L.C=!1,ln(this,o),e=this._;break}t.C=!0,e=o,o=o.U}while(!e.C);e&&(e.C=!1)}}},i.geom.voronoi=function(e){var t=Tt,n=At,r=t,o=n,i=fn;if(e)return a(e);function a(e){var t=new Array(e.length),n=i[0][0],r=i[0][1],o=i[1][0],a=i[1][1];return un(s(e),i).cells.forEach((function(i,s){var l=i.edges,c=i.site;(t[s]=l.length?l.map((function(e){var t=e.start();return[t.x,t.y]})):c.x>=n&&c.x<=o&&c.y>=r&&c.y<=a?[[n,a],[o,a],[o,r],[n,r]]:[]).point=e[s]})),t}function s(e){return e.map((function(e,t){return{x:Math.round(r(e,t)/Se)*Se,y:Math.round(o(e,t)/Se)*Se,i:t}}))}return a.links=function(e){return un(s(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},a.triangles=function(e){var t=[];return un(s(e)).cells.forEach((function(n,r){for(var o,i,a,s,l=n.site,c=n.edges.sort(Xt),u=-1,d=c.length,f=c[d-1].edge,h=f.l===l?f.r:f.l;++u<d;)f,o=h,h=(f=c[u].edge).l===l?f.r:f.l,r<o.i&&r<h.i&&(a=o,s=h,((i=l).x-s.x)*(a.y-i.y)-(i.x-a.x)*(s.y-i.y)<0)&&t.push([e[r],e[o.i],e[h.i]])})),t},a.x=function(e){return arguments.length?(r=ht(t=e),a):t},a.y=function(e){return arguments.length?(o=ht(n=e),a):n},a.clipExtent=function(e){return arguments.length?(i=null==e?fn:e,a):i===fn?null:i},a.size=function(e){return arguments.length?a.clipExtent(e&&[[0,0],e]):i===fn?null:i&&i[1]},a};var fn=[[-1e6,-1e6],[1e6,1e6]];function hn(e){return e.x}function pn(e){return e.y}function mn(e,t,n,r,o,i){if(!e(t,n,r,o,i)){var a=.5*(n+o),s=.5*(r+i),l=t.nodes;l[0]&&mn(e,l[0],n,r,a,s),l[1]&&mn(e,l[1],a,r,o,s),l[2]&&mn(e,l[2],n,s,a,i),l[3]&&mn(e,l[3],a,s,o,i)}}function gn(e,t,n,r,o,i,a){var s,l=1/0;return function e(c,u,d,f,h){if(!(u>i||d>a||f<r||h<o)){if(p=c.point){var p,m=t-c.x,g=n-c.y,v=m*m+g*g;if(v<l){var y=Math.sqrt(l=v);r=t-y,o=n-y,i=t+y,a=n+y,s=p}}for(var b=c.nodes,x=.5*(u+f),_=.5*(d+h),w=(n>=_)<<1|t>=x,j=w+4;w<j;++w)if(c=b[3&w])switch(3&w){case 0:e(c,u,d,x,_);break;case 1:e(c,x,d,f,_);break;case 2:e(c,u,_,x,h);break;case 3:e(c,x,_,f,h)}}}(e,r,o,i,a),s}function vn(e,t){e=i.rgb(e),t=i.rgb(t);var n=e.r,r=e.g,o=e.b,a=t.r-n,s=t.g-r,l=t.b-o;return function(e){return"#"+at(Math.round(n+a*e))+at(Math.round(r+s*e))+at(Math.round(o+l*e))}}function yn(e,t){var n,r={},o={};for(n in e)n in t?r[n]=jn(e[n],t[n]):o[n]=e[n];for(n in t)n in e||(o[n]=t[n]);return function(e){for(n in r)o[n]=r[n](e);return o}}function bn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function xn(e,t){var n,r,o,i=_n.lastIndex=wn.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=_n.exec(e))&&(r=wn.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:bn(n,r)})),i=wn.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?(t=l[0].x,function(e){return t(e)+""}):function(){return t}:(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}i.geom.delaunay=function(e){return i.geom.voronoi().triangles(e)},i.geom.quadtree=function(e,t,n,r,o){var i,a=Tt,s=At;if(i=arguments.length)return a=hn,s=pn,3===i&&(o=n,r=t,n=t=0),l(e);function l(e){var l,c,u,d,f,h,p,m,g,v=ht(a),y=ht(s);if(null!=t)h=t,p=n,m=r,g=o;else if(m=g=-(h=p=1/0),c=[],u=[],f=e.length,i)for(d=0;d<f;++d)(l=e[d]).x<h&&(h=l.x),l.y<p&&(p=l.y),l.x>m&&(m=l.x),l.y>g&&(g=l.y),c.push(l.x),u.push(l.y);else for(d=0;d<f;++d){var b=+v(l=e[d],d),x=+y(l,d);b<h&&(h=b),x<p&&(p=x),b>m&&(m=b),x>g&&(g=x),c.push(b),u.push(x)}var _=m-h,j=g-p;function k(e,t,n,r,o,i,a,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var l=e.x,c=e.y;if(null!=l)if(w(l-n)+w(c-r)<.01)T(e,t,n,r,o,i,a,s);else{var u=e.point;e.x=e.y=e.point=null,T(e,u,l,c,o,i,a,s),T(e,t,n,r,o,i,a,s)}else e.x=n,e.y=r,e.point=t}else T(e,t,n,r,o,i,a,s)}function T(e,t,n,r,o,i,a,s){var l=.5*(o+a),c=.5*(i+s),u=n>=l,d=r>=c,f=d<<1|u;e.leaf=!1,u?o=l:a=l,d?i=c:s=c,k(e=e.nodes[f]||(e.nodes[f]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,n,r,o,i,a,s)}_>j?g=p+_:m=h+j;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){k(A,e,+v(e,++d),+y(e,d),h,p,m,g)},visit:function(e){mn(e,A,h,p,m,g)},find:function(e){return gn(A,e[0],e[1],h,p,m,g)}};if(d=-1,null==t){for(;++d<f;)k(A,e[d],c[d],u[d],h,p,m,g);--d}else e.forEach(A.add);return c=u=e=l=null,A}return l.x=function(e){return arguments.length?(a=e,l):a},l.y=function(e){return arguments.length?(s=e,l):s},l.extent=function(e){return arguments.length?(null==e?t=n=r=o=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],o=+e[1][1]),l):null==t?null:[[t,n],[r,o]]},l.size=function(e){return arguments.length?(null==e?t=n=r=o=null:(t=n=0,r=+e[0],o=+e[1]),l):null==t?null:[r-t,o-n]},l},i.interpolateRgb=vn,i.interpolateObject=yn,i.interpolateNumber=bn,i.interpolateString=xn;var _n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wn=new RegExp(_n.source,"g");function jn(e,t){for(var n,r=i.interpolators.length;--r>=0&&!(n=i.interpolators[r](e,t)););return n}function kn(e,t){var n,r=[],o=[],i=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;n<s;++n)r.push(jn(e[n],t[n]));for(;n<i;++n)o[n]=e[n];for(;n<a;++n)o[n]=t[n];return function(e){for(n=0;n<s;++n)o[n]=r[n](e);return o}}i.interpolate=jn,i.interpolators=[function(e,t){var n=typeof t;return("string"===n?ft.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?vn:xn:t instanceof Ue?vn:Array.isArray(t)?kn:"object"===n&&isNaN(t)?yn:bn)(e,t)}],i.interpolateArray=kn;var Tn=function(){return I},An=i.map({linear:Tn,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return Ln},cubic:function(){return On},sin:function(){return In},exp:function(){return Pn},circle:function(){return Dn},elastic:function(e,t){var n;arguments.length<2&&(t=.45);arguments.length?n=t/Ee*Math.asin(1/e):(e=1,n=t/4);return function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ee/t)}},back:function(e){e||(e=1.70158);return function(t){return t*t*((e+1)*t-e)}},bounce:function(){return zn}}),Mn=i.map({in:I,out:Cn,"in-out":En,"out-in":function(e){return En(Cn(e))}});function Sn(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function Cn(e){return function(t){return 1-e(1-t)}}function En(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function Ln(e){return e*e}function On(e){return e*e*e}function Rn(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function In(e){return 1-Math.cos(e*Oe)}function Pn(e){return Math.pow(2,10*(e-1))}function Dn(e){return 1-Math.sqrt(1-e*e)}function zn(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Nn(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Fn(e){var t,n,r,o=[e.a,e.b],i=[e.c,e.d],a=Un(o),s=Bn(o,i),l=Un(((t=i)[0]+=(r=-s)*(n=o)[0],t[1]+=r*n[1],t))||0;o[0]*i[1]<i[0]*o[1]&&(o[0]*=-1,o[1]*=-1,a*=-1,s*=-1),this.rotate=(a?Math.atan2(o[1],o[0]):Math.atan2(-i[0],i[1]))*Ie,this.translate=[e.e,e.f],this.scale=[a,l],this.skew=l?Math.atan2(s,l)*Ie:0}function Bn(e,t){return e[0]*t[0]+e[1]*t[1]}function Un(e){var t=Math.sqrt(Bn(e,e));return t&&(e[0]/=t,e[1]/=t),t}i.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=An.get(n)||Tn,Sn((r=Mn.get(r)||I)(n.apply(null,a.call(arguments,1))))},i.interpolateHcl=function(e,t){e=i.hcl(e),t=i.hcl(t);var n=e.h,r=e.c,o=e.l,a=t.h-n,s=t.c-r,l=t.l-o;isNaN(s)&&(s=0,r=isNaN(r)?t.c:r);isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360);return function(e){return Ye(n+a*e,r+s*e,o+l*e)+""}},i.interpolateHsl=function(e,t){e=i.hsl(e),t=i.hsl(t);var n=e.h,r=e.s,o=e.l,a=t.h-n,s=t.s-r,l=t.l-o;isNaN(s)&&(s=0,r=isNaN(r)?t.s:r);isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360);return function(e){return Ge(n+a*e,r+s*e,o+l*e)+""}},i.interpolateLab=function(e,t){e=i.lab(e),t=i.lab(t);var n=e.l,r=e.a,o=e.b,a=t.l-n,s=t.a-r,l=t.b-o;return function(e){return Ke(n+a*e,r+s*e,o+l*e)+""}},i.interpolateRound=Nn,i.transform=function(e){var t=l.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Fn(n?n.matrix:Hn)})(e)},Fn.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Hn={a:1,b:0,c:0,d:1,e:0,f:0};function Vn(e){return e.length?e.pop()+",":""}function Gn(e,t){var n=[],r=[];return e=i.transform(e),t=i.transform(t),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push("translate(",null,",",null,")");r.push({i:o-4,x:bn(e[0],t[0])},{i:o-2,x:bn(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(e.translate,t.translate,n,r),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Vn(n)+"rotate(",null,")")-2,x:bn(e,t)})):t&&n.push(Vn(n)+"rotate("+t+")")}(e.rotate,t.rotate,n,r),function(e,t,n,r){e!==t?r.push({i:n.push(Vn(n)+"skewX(",null,")")-2,x:bn(e,t)}):t&&n.push(Vn(n)+"skewX("+t+")")}(e.skew,t.skew,n,r),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push(Vn(n)+"scale(",null,",",null,")");r.push({i:o-4,x:bn(e[0],t[0])},{i:o-2,x:bn(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(Vn(n)+"scale("+t+")")}(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,o=-1,i=r.length;++o<i;)n[(t=r[o]).i]=t.x(e);return n.join("")}}function qn(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function Wn(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function Yn(e){for(var t=e.source,n=e.target,r=function(e,t){if(e===t)return e;var n=Xn(e),r=Xn(t),o=n.pop(),i=r.pop(),a=null;for(;o===i;)a=o,o=n.pop(),i=r.pop();return a}(t,n),o=[t];t!==r;)t=t.parent,o.push(t);for(var i=o.length;n!==r;)o.splice(i,0,n),n=n.parent;return o}function Xn(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function Zn(e){e.fixed|=2}function $n(e){e.fixed&=-7}function Kn(e){e.fixed|=4,e.px=e.x,e.py=e.y}function Jn(e){e.fixed&=-5}i.interpolateTransform=Gn,i.layout={},i.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push(Yn(e[n]));return t}},i.layout.chord=function(){var e,t,n,r,o,a,s,l={},c=0;function u(){var l,u,f,h,p,m={},g=[],v=i.range(r),y=[];for(e=[],t=[],l=0,h=-1;++h<r;){for(u=0,p=-1;++p<r;)u+=n[h][p];g.push(u),y.push(i.range(r)),l+=u}for(o&&v.sort((function(e,t){return o(g[e],g[t])})),a&&y.forEach((function(e,t){e.sort((function(e,r){return a(n[t][e],n[t][r])}))})),l=(Ee-c*r)/l,u=0,h=-1;++h<r;){for(f=u,p=-1;++p<r;){var b=v[h],x=y[b][p],_=n[b][x],w=u,j=u+=_*l;m[b+"-"+x]={index:b,subindex:x,startAngle:w,endAngle:j,value:_}}t[b]={index:b,startAngle:f,endAngle:u,value:g[b]},u+=c}for(h=-1;++h<r;)for(p=h-1;++p<r;){var k=m[h+"-"+p],T=m[p+"-"+h];(k.value||T.value)&&e.push(k.value<T.value?{source:T,target:k}:{source:k,target:T})}s&&d()}function d(){e.sort((function(e,t){return s((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)}))}return l.matrix=function(o){return arguments.length?(r=(n=o)&&n.length,e=t=null,l):n},l.padding=function(n){return arguments.length?(c=n,e=t=null,l):c},l.sortGroups=function(n){return arguments.length?(o=n,e=t=null,l):o},l.sortSubgroups=function(t){return arguments.length?(a=t,e=null,l):a},l.sortChords=function(t){return arguments.length?(s=t,e&&d(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return t||u(),t},l},i.layout.force=function(){var e,t,n,r,o,a,s={},l=i.dispatch("start","tick","end"),c=[1,1],u=.9,d=Qn,f=er,h=-30,p=tr,m=.1,g=.64,v=[],y=[];function b(e){return function(t,n,r,o){if(t.point!==e){var i=t.cx-e.x,a=t.cy-e.y,s=o-n,l=i*i+a*a;if(s*s/g<l){if(l<p){var c=t.charge/l;e.px-=i*c,e.py-=a*c}return!0}if(t.point&&l&&l<p){c=t.pointCharge/l;e.px-=i*c,e.py-=a*c}}return!t.charge}}function x(e){e.px=i.event.x,e.py=i.event.y,s.resume()}return s.tick=function(){if((n*=.99)<.005)return e=null,l.end({type:"end",alpha:n=0}),!0;var t,s,d,f,p,g,x,_,w,j=v.length,k=y.length;for(s=0;s<k;++s)f=(d=y[s]).source,(g=(_=(p=d.target).x-f.x)*_+(w=p.y-f.y)*w)&&(_*=g=n*o[s]*((g=Math.sqrt(g))-r[s])/g,w*=g,p.x-=_*(x=f.weight+p.weight?f.weight/(f.weight+p.weight):.5),p.y-=w*x,f.x+=_*(x=1-x),f.y+=w*x);if((x=n*m)&&(_=c[0]/2,w=c[1]/2,s=-1,x))for(;++s<j;)(d=v[s]).x+=(_-d.x)*x,d.y+=(w-d.y)*x;if(h)for(!function e(t,n,r){var o=0,i=0;if(t.charge=0,!t.leaf)for(var a,s=t.nodes,l=s.length,c=-1;++c<l;)null!=(a=s[c])&&(e(a,n,r),t.charge+=a.charge,o+=a.charge*a.cx,i+=a.charge*a.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var u=n*r[t.point.index];t.charge+=t.pointCharge=u,o+=u*t.point.x,i+=u*t.point.y}t.cx=o/t.charge,t.cy=i/t.charge}(t=i.geom.quadtree(v),n,a),s=-1;++s<j;)(d=v[s]).fixed||t.visit(b(d));for(s=-1;++s<j;)(d=v[s]).fixed?(d.x=d.px,d.y=d.py):(d.x-=(d.px-(d.px=d.x))*u,d.y-=(d.py-(d.py=d.y))*u);l.tick({type:"tick",alpha:n})},s.nodes=function(e){return arguments.length?(v=e,s):v},s.links=function(e){return arguments.length?(y=e,s):y},s.size=function(e){return arguments.length?(c=e,s):c},s.linkDistance=function(e){return arguments.length?(d="function"==typeof e?e:+e,s):d},s.distance=s.linkDistance,s.linkStrength=function(e){return arguments.length?(f="function"==typeof e?e:+e,s):f},s.friction=function(e){return arguments.length?(u=+e,s):u},s.charge=function(e){return arguments.length?(h="function"==typeof e?e:+e,s):h},s.chargeDistance=function(e){return arguments.length?(p=e*e,s):Math.sqrt(p)},s.gravity=function(e){return arguments.length?(m=+e,s):m},s.theta=function(e){return arguments.length?(g=e*e,s):Math.sqrt(g)},s.alpha=function(t){return arguments.length?(t=+t,n?t>0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:"end",alpha:n=0})):t>0&&(l.start({type:"start",alpha:n=t}),e=_t(s.tick)),s):n},s.start=function(){var e,t,n,i=v.length,l=y.length,u=c[0],p=c[1];for(e=0;e<i;++e)(n=v[e]).index=e,n.weight=0;for(e=0;e<l;++e)"number"==typeof(n=y[e]).source&&(n.source=v[n.source]),"number"==typeof n.target&&(n.target=v[n.target]),++n.source.weight,++n.target.weight;for(e=0;e<i;++e)n=v[e],isNaN(n.x)&&(n.x=m("x",u)),isNaN(n.y)&&(n.y=m("y",p)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(r=[],"function"==typeof d)for(e=0;e<l;++e)r[e]=+d.call(this,y[e],e);else for(e=0;e<l;++e)r[e]=d;if(o=[],"function"==typeof f)for(e=0;e<l;++e)o[e]=+f.call(this,y[e],e);else for(e=0;e<l;++e)o[e]=f;if(a=[],"function"==typeof h)for(e=0;e<i;++e)a[e]=+h.call(this,v[e],e);else for(e=0;e<i;++e)a[e]=h;function m(n,r){if(!t){for(t=new Array(i),c=0;c<i;++c)t[c]=[];for(c=0;c<l;++c){var o=y[c];t[o.source.index].push(o.target),t[o.target.index].push(o.source)}}for(var a,s=t[e],c=-1,u=s.length;++c<u;)if(!isNaN(a=s[c][n]))return a;return Math.random()*r}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(t||(t=i.behavior.drag().origin(I).on("dragstart.force",Zn).on("drag.force",x).on("dragend.force",$n)),!arguments.length)return t;this.on("mouseover.force",Kn).on("mouseout.force",Jn).call(t)},i.rebind(s,l,"on")};var Qn=20,er=1,tr=1/0;function nr(e,t){return i.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=lr,e}function rr(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(o=e.children)&&(r=o.length))for(var r,o;--r>=0;)n.push(o[r])}function or(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(i=e.children)&&(o=i.length))for(var o,i,a=-1;++a<o;)n.push(i[a]);for(;null!=(e=r.pop());)t(e)}function ir(e){return e.children}function ar(e){return e.value}function sr(e,t){return t.value-e.value}function lr(e){return i.merge(e.map((function(e){return(e.children||[]).map((function(t){return{source:e,target:t}}))})))}i.layout.hierarchy=function(){var e=sr,t=ir,n=ar;function r(o){var i,a=[o],s=[];for(o.depth=0;null!=(i=a.pop());)if(s.push(i),(c=t.call(r,i,i.depth))&&(l=c.length)){for(var l,c,u;--l>=0;)a.push(u=c[l]),u.parent=i,u.depth=i.depth+1;n&&(i.value=0),i.children=c}else n&&(i.value=+n.call(r,i,i.depth)||0),delete i.children;return or(o,(function(t){var r,o;e&&(r=t.children)&&r.sort(e),n&&(o=t.parent)&&(o.value+=t.value)})),s}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(rr(e,(function(e){e.children&&(e.value=0)})),or(e,(function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},r},i.layout.partition=function(){var e=i.layout.hierarchy(),t=[1,1];function n(n,r){var o=e.call(this,n,r);return function e(t,n,r,o){var i=t.children;if(t.x=n,t.y=t.depth*o,t.dx=r,t.dy=o,i&&(a=i.length)){var a,s,l,c=-1;for(r=t.value?r/t.value:0;++c<a;)e(s=i[c],n,l=s.value*r,o),n+=l}}(o[0],0,t[0],t[1]/function e(t){var n=t.children,r=0;if(n&&(o=n.length))for(var o,i=-1;++i<o;)r=Math.max(r,e(n[i]));return 1+r}(o[0])),o}return n.size=function(e){return arguments.length?(t=e,n):t},nr(n,e)},i.layout.pie=function(){var e=Number,t=cr,n=0,r=Ee,o=0;function a(s){var l,c=s.length,u=s.map((function(t,n){return+e.call(a,t,n)})),d=+("function"==typeof n?n.apply(this,arguments):n),f=("function"==typeof r?r.apply(this,arguments):r)-d,h=Math.min(Math.abs(f)/c,+("function"==typeof o?o.apply(this,arguments):o)),p=h*(f<0?-1:1),m=i.sum(u),g=m?(f-c*p)/m:0,v=i.range(c),y=[];return null!=t&&v.sort(t===cr?function(e,t){return u[t]-u[e]}:function(e,n){return t(s[e],s[n])}),v.forEach((function(e){y[e]={data:s[e],value:l=u[e],startAngle:d,endAngle:d+=l*g+p,padAngle:h}})),y}return a.value=function(t){return arguments.length?(e=t,a):e},a.sort=function(e){return arguments.length?(t=e,a):t},a.startAngle=function(e){return arguments.length?(n=e,a):n},a.endAngle=function(e){return arguments.length?(r=e,a):r},a.padAngle=function(e){return arguments.length?(o=e,a):o},a};var cr={};function ur(e){return e.x}function dr(e){return e.y}function fr(e,t,n){e.y0=t,e.y=n}i.layout.stack=function(){var e=I,t=mr,n=gr,r=fr,o=ur,a=dr;function s(l,c){if(!(h=l.length))return l;var u=l.map((function(t,n){return e.call(s,t,n)})),d=u.map((function(e){return e.map((function(e,t){return[o.call(s,e,t),a.call(s,e,t)]}))})),f=t.call(s,d,c);u=i.permute(u,f),d=i.permute(d,f);var h,p,m,g,v=n.call(s,d,c),y=u[0].length;for(m=0;m<y;++m)for(r.call(s,u[0][m],g=v[m],d[0][m][1]),p=1;p<h;++p)r.call(s,u[p][m],g+=d[p-1][m][1],d[p][m][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(e){return arguments.length?(t="function"==typeof e?e:hr.get(e)||mr,s):t},s.offset=function(e){return arguments.length?(n="function"==typeof e?e:pr.get(e)||gr,s):n},s.x=function(e){return arguments.length?(o=e,s):o},s.y=function(e){return arguments.length?(a=e,s):a},s.out=function(e){return arguments.length?(r=e,s):r},s};var hr=i.map({"inside-out":function(e){var t,n,r=e.length,o=e.map(vr),a=e.map(yr),s=i.range(r).sort((function(e,t){return o[e]-o[t]})),l=0,c=0,u=[],d=[];for(t=0;t<r;++t)n=s[t],l<c?(l+=a[n],u.push(n)):(c+=a[n],d.push(n));return d.reverse().concat(u)},reverse:function(e){return i.range(e.length).reverse()},default:mr}),pr=i.map({silhouette:function(e){var t,n,r,o=e.length,i=e[0].length,a=[],s=0,l=[];for(n=0;n<i;++n){for(t=0,r=0;t<o;t++)r+=e[t][n][1];r>s&&(s=r),a.push(r)}for(n=0;n<i;++n)l[n]=(s-a[n])/2;return l},wiggle:function(e){var t,n,r,o,i,a,s,l,c,u=e.length,d=e[0],f=d.length,h=[];for(h[0]=l=c=0,n=1;n<f;++n){for(t=0,o=0;t<u;++t)o+=e[t][n][1];for(t=0,i=0,s=d[n][0]-d[n-1][0];t<u;++t){for(r=0,a=(e[t][n][1]-e[t][n-1][1])/(2*s);r<t;++r)a+=(e[r][n][1]-e[r][n-1][1])/s;i+=a*e[t][n][1]}h[n]=l-=o?i/o*s:0,l<c&&(c=l)}for(n=0;n<f;++n)h[n]-=c;return h},expand:function(e){var t,n,r,o=e.length,i=e[0].length,a=1/o,s=[];for(n=0;n<i;++n){for(t=0,r=0;t<o;t++)r+=e[t][n][1];if(r)for(t=0;t<o;t++)e[t][n][1]/=r;else for(t=0;t<o;t++)e[t][n][1]=a}for(n=0;n<i;++n)s[n]=0;return s},zero:gr});function mr(e){return i.range(e.length)}function gr(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function vr(e){for(var t,n=1,r=0,o=e[0][1],i=e.length;n<i;++n)(t=e[n][1])>o&&(r=n,o=t);return r}function yr(e){return e.reduce(br,0)}function br(e,t){return e+t[1]}function xr(e,t){return _r(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function _r(e,t){for(var n=-1,r=+e[0],o=(e[1]-r)/t,i=[];++n<=t;)i[n]=o*n+r;return i}function wr(e){return[i.min(e),i.max(e)]}function jr(e,t){return e.value-t.value}function kr(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Tr(e,t){e._pack_next=t,t._pack_prev=e}function Ar(e,t){var n=t.x-e.x,r=t.y-e.y,o=e.r+t.r;return.999*o*o>n*n+r*r}function Mr(e){if((t=e.children)&&(l=t.length)){var t,n,r,o,i,a,s,l,c=1/0,u=-1/0,d=1/0,f=-1/0;if(t.forEach(Sr),(n=t[0]).x=-n.r,n.y=0,b(n),l>1&&((r=t[1]).x=r.r,r.y=0,b(r),l>2))for(Er(n,r,o=t[2]),b(o),kr(n,o),n._pack_prev=o,kr(o,r),r=n._pack_next,i=3;i<l;i++){Er(n,r,o=t[i]);var h=0,p=1,m=1;for(a=r._pack_next;a!==r;a=a._pack_next,p++)if(Ar(a,o)){h=1;break}if(1==h)for(s=n._pack_prev;s!==a._pack_prev&&!Ar(s,o);s=s._pack_prev,m++);h?(p<m||p==m&&r.r<n.r?Tr(n,r=a):Tr(n=s,r),i--):(kr(n,o),r=o,b(o))}var g=(c+u)/2,v=(d+f)/2,y=0;for(i=0;i<l;i++)(o=t[i]).x-=g,o.y-=v,y=Math.max(y,o.r+Math.sqrt(o.x*o.x+o.y*o.y));e.r=y,t.forEach(Cr)}function b(e){c=Math.min(e.x-e.r,c),u=Math.max(e.x+e.r,u),d=Math.min(e.y-e.r,d),f=Math.max(e.y+e.r,f)}}function Sr(e){e._pack_next=e._pack_prev=e}function Cr(e){delete e._pack_next,delete e._pack_prev}function Er(e,t,n){var r=e.r+n.r,o=t.x-e.x,i=t.y-e.y;if(r&&(o||i)){var a=t.r+n.r,s=o*o+i*i,l=.5+((r*=r)-(a*=a))/(2*s),c=Math.sqrt(Math.max(0,2*a*(r+s)-(r-=s)*r-a*a))/(2*s);n.x=e.x+l*o+c*i,n.y=e.y+l*i-c*o}else n.x=e.x+r,n.y=e.y}function Lr(e,t){return e.parent==t.parent?1:2}function Or(e){var t=e.children;return t.length?t[0]:e.t}function Rr(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function Ir(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Pr(e,t,n){return e.a.parent===t.parent?e.a:n}function Dr(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function zr(e,t){var n=e.x+t[3],r=e.y+t[0],o=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return o<0&&(n+=o/2,o=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:o,dy:i}}function Nr(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function Fr(e){return e.rangeExtent?e.rangeExtent():Nr(e.range())}function Br(e,t,n,r){var o=n(e[0],e[1]),i=r(t[0],t[1]);return function(e){return i(o(e))}}function Ur(e,t){var n,r=0,o=e.length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function Hr(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Vr}i.layout.histogram=function(){var e=!0,t=Number,n=wr,r=xr;function o(o,a){for(var s,l,c=[],u=o.map(t,this),d=n.call(this,u,a),f=r.call(this,d,u,a),h=(a=-1,u.length),p=f.length-1,m=e?1:1/h;++a<p;)(s=c[a]=[]).dx=f[a+1]-(s.x=f[a]),s.y=0;if(p>0)for(a=-1;++a<h;)(l=u[a])>=d[0]&&l<=d[1]&&((s=c[i.bisect(f,l,1,p)-1]).y+=m,s.push(o[a]));return c}return o.value=function(e){return arguments.length?(t=e,o):t},o.range=function(e){return arguments.length?(n=ht(e),o):n},o.bins=function(e){return arguments.length?(r="number"==typeof e?function(t){return _r(t,e)}:ht(e),o):r},o.frequency=function(t){return arguments.length?(e=!!t,o):e},o},i.layout.pack=function(){var e,t=i.layout.hierarchy().sort(jr),n=0,r=[1,1];function o(o,i){var a=t.call(this,o,i),s=a[0],l=r[0],c=r[1],u=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,or(s,(function(e){e.r=+u(e.value)})),or(s,Mr),n){var d=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;or(s,(function(e){e.r+=d})),or(s,Mr),or(s,(function(e){e.r-=d}))}return function e(t,n,r,o){var i=t.children;if(t.x=n+=o*t.x,t.y=r+=o*t.y,t.r*=o,i)for(var a=-1,s=i.length;++a<s;)e(i[a],n,r,o)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),a}return o.size=function(e){return arguments.length?(r=e,o):r},o.radius=function(t){return arguments.length?(e=null==t||"function"==typeof t?t:+t,o):e},o.padding=function(e){return arguments.length?(n=+e,o):n},nr(o,t)},i.layout.tree=function(){var e=i.layout.hierarchy().sort(null).value(null),t=Lr,n=[1,1],r=null;function o(o,i){var c=e.call(this,o,i),u=c[0],d=function(e){var t,n={A:null,children:[e]},r=[n];for(;null!=(t=r.pop());)for(var o,i=t.children,a=0,s=i.length;a<s;++a)r.push((i[a]=o={_:i[a],parent:t,children:(o=i[a].children)&&o.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=o);return n.children[0]}(u);if(or(d,a),d.parent.m=-d.z,rr(d,s),r)rr(u,l);else{var f=u,h=u,p=u;rr(u,(function(e){e.x<f.x&&(f=e),e.x>h.x&&(h=e),e.depth>p.depth&&(p=e)}));var m=t(f,h)/2-f.x,g=n[0]/(h.x+t(h,f)/2+m),v=n[1]/(p.depth||1);rr(u,(function(e){e.x=(e.x+m)*g,e.y=e.depth*v}))}return c}function a(e){var n=e.children,r=e.parent.children,o=e.i?r[e.i-1]:null;if(n.length){!function(e){var t,n=0,r=0,o=e.children,i=o.length;for(;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var i=(n[0].z+n[n.length-1].z)/2;o?(e.z=o.z+t(e._,o._),e.m=e.z-i):e.z=i}else o&&(e.z=o.z+t(e._,o._));e.parent.A=function(e,n,r){if(n){for(var o,i=e,a=e,s=n,l=i.parent.children[0],c=i.m,u=a.m,d=s.m,f=l.m;s=Rr(s),i=Or(i),s&&i;)l=Or(l),(a=Rr(a)).a=e,(o=s.z+d-i.z-c+t(s._,i._))>0&&(Ir(Pr(s,e,r),e,o),c+=o,u+=o),d+=s.m,c+=i.m,f+=l.m,u+=a.m;s&&!Rr(a)&&(a.t=s,a.m+=d-u),i&&!Or(l)&&(l.t=i,l.m+=c-f,r=e)}return r}(e,o,e.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function l(e){e.x*=n[0],e.y=e.depth*n[1]}return o.separation=function(e){return arguments.length?(t=e,o):t},o.size=function(e){return arguments.length?(r=null==(n=e)?l:null,o):r?null:n},o.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:l,o):r?n:null},nr(o,e)},i.layout.cluster=function(){var e=i.layout.hierarchy().sort(null).value(null),t=Lr,n=[1,1],r=!1;function o(o,a){var s,l=e.call(this,o,a),c=l[0],u=0;or(c,(function(e){var n=e.children;n&&n.length?(e.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(n),e.y=function(e){return 1+i.max(e,(function(e){return e.y}))}(n)):(e.x=s?u+=t(e,s):0,e.y=0,s=e)}));var d=function e(t){var n=t.children;return n&&n.length?e(n[0]):t}(c),f=function e(t){var n,r=t.children;return r&&(n=r.length)?e(r[n-1]):t}(c),h=d.x-t(d,f)/2,p=f.x+t(f,d)/2;return or(c,r?function(e){e.x=(e.x-c.x)*n[0],e.y=(c.y-e.y)*n[1]}:function(e){e.x=(e.x-h)/(p-h)*n[0],e.y=(1-(c.y?e.y/c.y:1))*n[1]}),l}return o.separation=function(e){return arguments.length?(t=e,o):t},o.size=function(e){return arguments.length?(r=null==(n=e),o):r?null:n},o.nodeSize=function(e){return arguments.length?(r=null!=(n=e),o):r?n:null},nr(o,e)},i.layout.treemap=function(){var e,t=i.layout.hierarchy(),n=Math.round,r=[1,1],o=null,a=Dr,s=!1,l="squarify",c=.5*(1+Math.sqrt(5));function u(e,t){for(var n,r,o=-1,i=e.length;++o<i;)r=(n=e[o]).value*(t<0?0:t),n.area=isNaN(r)||r<=0?0:r}function d(e){var t=e.children;if(t&&t.length){var n,r,o,i=a(e),s=[],c=t.slice(),f=1/0,m="slice"===l?i.dx:"dice"===l?i.dy:"slice-dice"===l?1&e.depth?i.dy:i.dx:Math.min(i.dx,i.dy);for(u(c,i.dx*i.dy/e.value),s.area=0;(o=c.length)>0;)s.push(n=c[o-1]),s.area+=n.area,"squarify"!==l||(r=h(s,m))<=f?(c.pop(),f=r):(s.area-=s.pop().area,p(s,m,i,!1),m=Math.min(i.dx,i.dy),s.length=s.area=0,f=1/0);s.length&&(p(s,m,i,!0),s.length=s.area=0),t.forEach(d)}}function f(e){var t=e.children;if(t&&t.length){var n,r=a(e),o=t.slice(),i=[];for(u(o,r.dx*r.dy/e.value),i.area=0;n=o.pop();)i.push(n),i.area+=n.area,null!=n.z&&(p(i,n.z?r.dx:r.dy,r,!o.length),i.length=i.area=0);t.forEach(f)}}function h(e,t){for(var n,r=e.area,o=0,i=1/0,a=-1,s=e.length;++a<s;)(n=e[a].area)&&(n<i&&(i=n),n>o&&(o=n));return t*=t,(r*=r)?Math.max(t*o*c/r,r/(t*i*c)):1/0}function p(e,t,r,o){var i,a=-1,s=e.length,l=r.x,c=r.y,u=t?n(e.area/t):0;if(t==r.dx){for((o||u>r.dy)&&(u=r.dy);++a<s;)(i=e[a]).x=l,i.y=c,i.dy=u,l+=i.dx=Math.min(r.x+r.dx-l,u?n(i.area/u):0);i.z=!0,i.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((o||u>r.dx)&&(u=r.dx);++a<s;)(i=e[a]).x=l,i.y=c,i.dx=u,c+=i.dy=Math.min(r.y+r.dy-c,u?n(i.area/u):0);i.z=!1,i.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function m(n){var o=e||t(n),i=o[0];return i.x=i.y=0,i.value?(i.dx=r[0],i.dy=r[1]):i.dx=i.dy=0,e&&t.revalue(i),u([i],i.dx*i.dy/i.value),(e?f:d)(i),s&&(e=o),o}return m.size=function(e){return arguments.length?(r=e,m):r},m.padding=function(e){if(!arguments.length)return o;function t(t){var n=e.call(m,t,t.depth);return null==n?Dr(t):zr(t,"number"==typeof n?[n,n,n,n]:n)}function n(t){return zr(t,e)}var r;return a=null==(o=e)?Dr:"function"==(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,m},m.round=function(e){return arguments.length?(n=e?Math.round:Number,m):n!=Number},m.sticky=function(t){return arguments.length?(s=t,e=null,m):s},m.ratio=function(e){return arguments.length?(c=e,m):c},m.mode=function(e){return arguments.length?(l=e+"",m):l},nr(m,t)},i.random={normal:function(e,t){var n=arguments.length;return n<2&&(t=1),n<1&&(e=0),function(){var n,r,o;do{o=(n=2*Math.random()-1)*n+(r=2*Math.random()-1)*r}while(!o||o>1);return e+t*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var e=i.random.normal.apply(i,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=i.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n<e;n++)t+=Math.random();return t}}},i.scale={};var Vr={floor:I,ceil:I};function Gr(e,t,n,r){var o=[],a=[],s=0,l=Math.min(e.length,t.length)-1;for(e[l]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<=l;)o.push(n(e[s-1],e[s])),a.push(r(t[s-1],t[s]));return function(t){var n=i.bisect(e,t,1,l)-1;return a[n](o[n](t))}}function qr(e,t){return i.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Wr(e,t){return Ur(e,Hr(Yr(e,t)[2])),Ur(e,Hr(Yr(e,t)[2])),e}function Yr(e,t){null==t&&(t=10);var n=Nr(e),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*o;return i<=.15?o*=10:i<=.35?o*=5:i<=.75&&(o*=2),n[0]=Math.ceil(n[0]/o)*o,n[1]=Math.floor(n[1]/o)*o+.5*o,n[2]=o,n}function Xr(e,t){return i.range.apply(i,Yr(e,t))}i.scale.linear=function(){return function e(t,n,r,o){var i,a;function s(){var e=Math.min(t.length,n.length)>2?Gr:Br,s=o?Wn:qn;return i=e(t,n,s,r),a=e(n,t,s,jn),l}function l(e){return i(e)}return l.invert=function(e){return a(e)},l.domain=function(e){return arguments.length?(t=e.map(Number),s()):t},l.range=function(e){return arguments.length?(n=e,s()):n},l.rangeRound=function(e){return l.range(e).interpolate(Nn)},l.clamp=function(e){return arguments.length?(o=e,s()):o},l.interpolate=function(e){return arguments.length?(r=e,s()):r},l.ticks=function(e){return Xr(t,e)},l.tickFormat=function(e,n){return d3_scale_linearTickFormat(t,e,n)},l.nice=function(e){return Wr(t,e),s()},l.copy=function(){return e(t,n,r,o)},s()}([0,1],[0,1],jn,!1)};i.scale.log=function(){return function e(t,n,r,o){function i(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(n)}function a(e){return r?Math.pow(n,e):-Math.pow(n,-e)}function s(e){return t(i(e))}return s.invert=function(e){return a(t.invert(e))},s.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((o=e.map(Number)).map(i)),s):o},s.base=function(e){return arguments.length?(n=+e,t.domain(o.map(i)),s):n},s.nice=function(){var e=Ur(o.map(i),r?Math:Zr);return t.domain(e),o=e.map(a),s},s.ticks=function(){var e=Nr(o),t=[],s=e[0],l=e[1],c=Math.floor(i(s)),u=Math.ceil(i(l)),d=n%1?2:n;if(isFinite(u-c)){if(r){for(;c<u;c++)for(var f=1;f<d;f++)t.push(a(c)*f);t.push(a(c))}else for(t.push(a(c));c++<u;)for(f=d-1;f>0;f--)t.push(a(c)*f);for(c=0;t[c]<s;c++);for(u=t.length;t[u-1]>l;u--);t=t.slice(c,u)}return t},s.copy=function(){return e(t.copy(),n,r,o)},qr(s,t)}(i.scale.linear().domain([0,1]),10,!0,[1,10])};var Zr={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function $r(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}i.scale.pow=function(){return function e(t,n,r){var o=$r(n),i=$r(1/n);function a(e){return t(o(e))}return a.invert=function(e){return i(t.invert(e))},a.domain=function(e){return arguments.length?(t.domain((r=e.map(Number)).map(o)),a):r},a.ticks=function(e){return Xr(r,e)},a.tickFormat=function(e,t){return d3_scale_linearTickFormat(r,e,t)},a.nice=function(e){return a.domain(Wr(r,e))},a.exponent=function(e){return arguments.length?(o=$r(n=e),i=$r(1/n),t.domain(r.map(o)),a):n},a.copy=function(){return e(t.copy(),n,r)},qr(a,t)}(i.scale.linear(),1,[0,1])},i.scale.sqrt=function(){return i.scale.pow().exponent(.5)},i.scale.ordinal=function(){return function e(t,n){var r,o,a;function s(e){return o[((r.get(e)||("range"===n.t?r.set(e,t.push(e)):NaN))-1)%o.length]}function l(e,n){return i.range(t.length).map((function(t){return e+n*t}))}return s.domain=function(e){if(!arguments.length)return t;t=[],r=new T;for(var o,i=-1,a=e.length;++i<a;)r.has(o=e[i])||r.set(o,t.push(o));return s[n.t].apply(s,n.a)},s.range=function(e){return arguments.length?(o=e,a=0,n={t:"range",a:arguments},s):o},s.rangePoints=function(e,r){arguments.length<2&&(r=0);var i=e[0],c=e[1],u=t.length<2?(i=(i+c)/2,0):(c-i)/(t.length-1+r);return o=l(i+u*r/2,u),a=0,n={t:"rangePoints",a:arguments},s},s.rangeRoundPoints=function(e,r){arguments.length<2&&(r=0);var i=e[0],c=e[1],u=t.length<2?(i=c=Math.round((i+c)/2),0):(c-i)/(t.length-1+r)|0;return o=l(i+Math.round(u*r/2+(c-i-(t.length-1+r)*u)/2),u),a=0,n={t:"rangeRoundPoints",a:arguments},s},s.rangeBands=function(e,r,i){arguments.length<2&&(r=0),arguments.length<3&&(i=r);var c=e[1]<e[0],u=e[c-0],d=e[1-c],f=(d-u)/(t.length-r+2*i);return o=l(u+f*i,f),c&&o.reverse(),a=f*(1-r),n={t:"rangeBands",a:arguments},s},s.rangeRoundBands=function(e,r,i){arguments.length<2&&(r=0),arguments.length<3&&(i=r);var c=e[1]<e[0],u=e[c-0],d=e[1-c],f=Math.floor((d-u)/(t.length-r+2*i));return o=l(u+Math.round((d-u-(t.length-r)*f)/2),f),c&&o.reverse(),a=Math.round(f*(1-r)),n={t:"rangeRoundBands",a:arguments},s},s.rangeBand=function(){return a},s.rangeExtent=function(){return Nr(n.a[0])},s.copy=function(){return e(t,n)},s.domain(t)}([],{t:"range",a:[[]]})},i.scale.category10=function(){return i.scale.ordinal().range(Kr)},i.scale.category20=function(){return i.scale.ordinal().range(Jr)},i.scale.category20b=function(){return i.scale.ordinal().range(Qr)},i.scale.category20c=function(){return i.scale.ordinal().range(eo)};var Kr=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ot),Jr=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ot),Qr=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ot),eo=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ot);function to(){return 0}i.scale.quantile=function(){return function e(t,n){var r;function o(){var e=0,o=n.length;for(r=[];++e<o;)r[e-1]=i.quantile(t,e/o);return a}function a(e){if(!isNaN(e=+e))return n[i.bisect(r,e)]}return a.domain=function(e){return arguments.length?(t=e.map(v).filter(y).sort(g),o()):t},a.range=function(e){return arguments.length?(n=e,o()):n},a.quantiles=function(){return r},a.invertExtent=function(e){return(e=n.indexOf(e))<0?[NaN,NaN]:[e>0?r[e-1]:t[0],e<r.length?r[e]:t[t.length-1]]},a.copy=function(){return e(t,n)},o()}([],[])},i.scale.quantize=function(){return function e(t,n,r){var o,i;function a(e){return r[Math.max(0,Math.min(i,Math.floor(o*(e-t))))]}function s(){return o=r.length/(n-t),i=r.length-1,a}return a.domain=function(e){return arguments.length?(t=+e[0],n=+e[e.length-1],s()):[t,n]},a.range=function(e){return arguments.length?(r=e,s()):r},a.invertExtent=function(e){return[e=(e=r.indexOf(e))<0?NaN:e/o+t,e+1/o]},a.copy=function(){return e(t,n,r)},s()}(0,1,[0,1])},i.scale.threshold=function(){return function e(t,n){function r(e){if(e<=e)return n[i.bisect(t,e)]}return r.domain=function(e){return arguments.length?(t=e,r):t},r.range=function(e){return arguments.length?(n=e,r):n},r.invertExtent=function(e){return e=n.indexOf(e),[t[e-1],t[e]]},r.copy=function(){return e(t,n)},r}([.5],[0,1])},i.scale.identity=function(){return function e(t){function n(e){return+e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=e.map(n),n):t},n.ticks=function(e){return Xr(t,e)},n.tickFormat=function(e,n){return d3_scale_linearTickFormat(t,e,n)},n.copy=function(){return e(t)},n}([0,1])},i.svg={},i.svg.arc=function(){var e=ro,t=oo,n=to,r=no,o=io,i=ao,a=so;function s(){var s=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+t.apply(this,arguments)),u=o.apply(this,arguments)-Oe,d=i.apply(this,arguments)-Oe,f=Math.abs(d-u),h=u>d?0:1;if(c<s&&(p=c,c=s,s=p),f>=Le)return l(c,h)+(s?l(s,1-h):"")+"Z";var p,m,g,v,y,b,x,_,w,j,k,T,A=0,M=0,S=[];if((v=(+a.apply(this,arguments)||0)/2)&&(g=r===no?Math.sqrt(s*s+c*c):+r.apply(this,arguments),h||(M*=-1),c&&(M=Pe(g/c*Math.sin(v))),s&&(A=Pe(g/s*Math.sin(v)))),c){y=c*Math.cos(u+M),b=c*Math.sin(u+M),x=c*Math.cos(d-M),_=c*Math.sin(d-M);var C=Math.abs(d-u-2*M)<=Ce?0:1;if(M&&lo(y,b,x,_)===h^C){var E=(u+d)/2;y=c*Math.cos(E),b=c*Math.sin(E),x=_=null}}else y=b=0;if(s){w=s*Math.cos(d-A),j=s*Math.sin(d-A),k=s*Math.cos(u+A),T=s*Math.sin(u+A);var L=Math.abs(u-d+2*A)<=Ce?0:1;if(A&&lo(w,j,k,T)===1-h^L){var O=(u+d)/2;w=s*Math.cos(O),j=s*Math.sin(O),k=T=null}}else w=j=0;if(f>Se&&(p=Math.min(Math.abs(c-s)/2,+n.apply(this,arguments)))>.001){m=s<c^h?0:1;var R=p,I=p;if(f<Ce){var P=null==k?[w,j]:null==x?[y,b]:Lt([y,b],[k,T],[x,_],[w,j]),D=y-P[0],z=b-P[1],N=x-P[0],F=_-P[1],B=1/Math.sin(Math.acos((D*N+z*F)/(Math.sqrt(D*D+z*z)*Math.sqrt(N*N+F*F)))/2),U=Math.sqrt(P[0]*P[0]+P[1]*P[1]);I=Math.min(p,(s-U)/(B-1)),R=Math.min(p,(c-U)/(B+1))}if(null!=x){var H=co(null==k?[w,j]:[k,T],[y,b],c,R,h),V=co([x,_],[w,j],c,R,h);p===R?S.push("M",H[0],"A",R,",",R," 0 0,",m," ",H[1],"A",c,",",c," 0 ",1-h^lo(H[1][0],H[1][1],V[1][0],V[1][1]),",",h," ",V[1],"A",R,",",R," 0 0,",m," ",V[0]):S.push("M",H[0],"A",R,",",R," 0 1,",m," ",V[0])}else S.push("M",y,",",b);if(null!=k){var G=co([y,b],[k,T],s,-I,h),q=co([w,j],null==x?[y,b]:[x,_],s,-I,h);p===I?S.push("L",q[0],"A",I,",",I," 0 0,",m," ",q[1],"A",s,",",s," 0 ",h^lo(q[1][0],q[1][1],G[1][0],G[1][1]),",",1-h," ",G[1],"A",I,",",I," 0 0,",m," ",G[0]):S.push("L",q[0],"A",I,",",I," 0 0,",m," ",G[0])}else S.push("L",w,",",j)}else S.push("M",y,",",b),null!=x&&S.push("A",c,",",c," 0 ",C,",",h," ",x,",",_),S.push("L",w,",",j),null!=k&&S.push("A",s,",",s," 0 ",L,",",1-h," ",k,",",T);return S.push("Z"),S.join("")}function l(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return s.innerRadius=function(t){return arguments.length?(e=ht(t),s):e},s.outerRadius=function(e){return arguments.length?(t=ht(e),s):t},s.cornerRadius=function(e){return arguments.length?(n=ht(e),s):n},s.padRadius=function(e){return arguments.length?(r=e==no?no:ht(e),s):r},s.startAngle=function(e){return arguments.length?(o=ht(e),s):o},s.endAngle=function(e){return arguments.length?(i=ht(e),s):i},s.padAngle=function(e){return arguments.length?(a=ht(e),s):a},s.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-Oe;return[Math.cos(r)*n,Math.sin(r)*n]},s};var no="auto";function ro(e){return e.innerRadius}function oo(e){return e.outerRadius}function io(e){return e.startAngle}function ao(e){return e.endAngle}function so(e){return e&&e.padAngle}function lo(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function co(e,t,n,r,o){var i=e[0]-t[0],a=e[1]-t[1],s=(o?r:-r)/Math.sqrt(i*i+a*a),l=s*a,c=-s*i,u=e[0]+l,d=e[1]+c,f=t[0]+l,h=t[1]+c,p=(u+f)/2,m=(d+h)/2,g=f-u,v=h-d,y=g*g+v*v,b=n-r,x=u*h-f*d,_=(v<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-x*x)),w=(x*v-g*_)/y,j=(-x*g-v*_)/y,k=(x*v+g*_)/y,T=(-x*g+v*_)/y,A=w-p,M=j-m,S=k-p,C=T-m;return A*A+M*M>S*S+C*C&&(w=k,j=T),[[w-l,j-c],[w*n/b,j*n/b]]}function uo(){return!0}function fo(e){var t=Tt,n=At,r=uo,o=po,i=o.key,a=.7;function s(i){var s,l=[],c=[],u=-1,d=i.length,f=ht(t),h=ht(n);function p(){l.push("M",o(e(c),a))}for(;++u<d;)r.call(this,s=i[u],u)?c.push([+f.call(this,s,u),+h.call(this,s,u)]):c.length&&(p(),c=[]);return c.length&&p(),l.length?l.join(""):null}return s.x=function(e){return arguments.length?(t=e,s):t},s.y=function(e){return arguments.length?(n=e,s):n},s.defined=function(e){return arguments.length?(r=e,s):r},s.interpolate=function(e){return arguments.length?(i="function"==typeof e?o=e:(o=ho.get(e)||po).key,s):i},s.tension=function(e){return arguments.length?(a=e,s):a},s}i.svg.line=function(){return fo(I)};var ho=i.map({linear:po,"linear-closed":mo,step:function(e){var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];for(;++t<n;)o.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);n>1&&o.push("H",r[0]);return o.join("")},"step-before":go,"step-after":vo,basis:xo,"basis-open":function(e){if(e.length<4)return po(e);var t,n=[],r=-1,o=e.length,i=[0],a=[0];for(;++r<3;)t=e[r],i.push(t[0]),a.push(t[1]);n.push(_o(ko,i)+","+_o(ko,a)),--r;for(;++r<o;)t=e[r],i.shift(),i.push(t[0]),a.shift(),a.push(t[1]),To(n,i,a);return n.join("")},"basis-closed":function(e){var t,n,r=-1,o=e.length,i=o+4,a=[],s=[];for(;++r<4;)n=e[r%o],a.push(n[0]),s.push(n[1]);t=[_o(ko,a),",",_o(ko,s)],--r;for(;++r<i;)n=e[r%o],a.shift(),a.push(n[0]),s.shift(),s.push(n[1]),To(t,a,s);return t.join("")},bundle:function(e,t){var n=e.length-1;if(n)for(var r,o,i=e[0][0],a=e[0][1],s=e[n][0]-i,l=e[n][1]-a,c=-1;++c<=n;)r=e[c],o=c/n,r[0]=t*r[0]+(1-t)*(i+o*s),r[1]=t*r[1]+(1-t)*(a+o*l);return xo(e)},cardinal:function(e,t){return e.length<3?po(e):e[0]+yo(e,bo(e,t))},"cardinal-open":function(e,t){return e.length<4?po(e):e[1]+yo(e.slice(1,-1),bo(e,t))},"cardinal-closed":function(e,t){return e.length<3?mo(e):e[0]+yo((e.push(e[0]),e),bo([e[e.length-2]].concat(e,[e[1]]),t))},monotone:function(e){return e.length<3?po(e):e[0]+yo(e,function(e){var t,n,r,o,i=[],a=function(e){var t=0,n=e.length-1,r=[],o=e[0],i=e[1],a=r[0]=Ao(o,i);for(;++t<n;)r[t]=(a+(a=Ao(o=i,i=e[t+1])))/2;return r[t]=a,r}(e),s=-1,l=e.length-1;for(;++s<l;)t=Ao(e[s],e[s+1]),w(t)<Se?a[s]=a[s+1]=0:(n=a[s]/t,r=a[s+1]/t,(o=n*n+r*r)>9&&(o=3*t/Math.sqrt(o),a[s]=o*n,a[s+1]=o*r));s=-1;for(;++s<=l;)o=(e[Math.min(l,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),i.push([o||0,a[s]*o||0]);return i}(e))}});function po(e){return e.length>1?e.join("L"):e+"Z"}function mo(e){return e.join("L")+"Z"}function go(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t<n;)o.push("V",(r=e[t])[1],"H",r[0]);return o.join("")}function vo(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t<n;)o.push("H",(r=e[t])[0],"V",r[1]);return o.join("")}function yo(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return po(e);var n=e.length!=t.length,r="",o=e[0],i=e[1],a=t[0],s=a,l=1;if(n&&(r+="Q"+(i[0]-2*a[0]/3)+","+(i[1]-2*a[1]/3)+","+i[0]+","+i[1],o=e[1],l=2),t.length>1){s=t[1],i=e[l],l++,r+="C"+(o[0]+a[0])+","+(o[1]+a[1])+","+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,l++)i=e[l],s=t[c],r+="S"+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1]}if(n){var u=e[l];r+="Q"+(i[0]+2*s[0]/3)+","+(i[1]+2*s[1]/3)+","+u[0]+","+u[1]}return r}function bo(e,t){for(var n,r=[],o=(1-t)/2,i=e[0],a=e[1],s=1,l=e.length;++s<l;)n=i,i=a,a=e[s],r.push([o*(a[0]-n[0]),o*(a[1]-n[1])]);return r}function xo(e){if(e.length<3)return po(e);var t=1,n=e.length,r=e[0],o=r[0],i=r[1],a=[o,o,o,(r=e[1])[0]],s=[i,i,i,r[1]],l=[o,",",i,"L",_o(ko,a),",",_o(ko,s)];for(e.push(e[n-1]);++t<=n;)r=e[t],a.shift(),a.push(r[0]),s.shift(),s.push(r[1]),To(l,a,s);return e.pop(),l.push("L",r),l.join("")}function _o(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}ho.forEach((function(e,t){t.key=e,t.closed=/-closed$/.test(e)}));var wo=[0,2/3,1/3,0],jo=[0,1/3,2/3,0],ko=[0,1/6,2/3,1/6];function To(e,t,n){e.push("C",_o(wo,t),",",_o(wo,n),",",_o(jo,t),",",_o(jo,n),",",_o(ko,t),",",_o(ko,n))}function Ao(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Mo(e){for(var t,n,r,o=-1,i=e.length;++o<i;)n=(t=e[o])[0],r=t[1]-Oe,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function So(e){var t=Tt,n=Tt,r=0,o=At,i=uo,a=po,s=a.key,l=a,c="L",u=.7;function d(s){var d,f,h,p=[],m=[],g=[],v=-1,y=s.length,b=ht(t),x=ht(r),_=t===n?function(){return f}:ht(n),w=r===o?function(){return h}:ht(o);function j(){p.push("M",a(e(g),u),c,l(e(m.reverse()),u),"Z")}for(;++v<y;)i.call(this,d=s[v],v)?(m.push([f=+b.call(this,d,v),h=+x.call(this,d,v)]),g.push([+_.call(this,d,v),+w.call(this,d,v)])):m.length&&(j(),m=[],g=[]);return m.length&&j(),p.length?p.join(""):null}return d.x=function(e){return arguments.length?(t=n=e,d):n},d.x0=function(e){return arguments.length?(t=e,d):t},d.x1=function(e){return arguments.length?(n=e,d):n},d.y=function(e){return arguments.length?(r=o=e,d):o},d.y0=function(e){return arguments.length?(r=e,d):r},d.y1=function(e){return arguments.length?(o=e,d):o},d.defined=function(e){return arguments.length?(i=e,d):i},d.interpolate=function(e){return arguments.length?(s="function"==typeof e?a=e:(a=ho.get(e)||po).key,l=a.reverse||a,c=a.closed?"M":"L",d):s},d.tension=function(e){return arguments.length?(u=e,d):u},d}function Co(e){return e.source}function Eo(e){return e.target}function Lo(e){return e.radius}function Oo(e){return[e.x,e.y]}function Ro(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Oe;return[n*Math.cos(r),n*Math.sin(r)]}}function Io(){return 64}function Po(){return"circle"}function Do(e){var t=Math.sqrt(e/Ce);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}i.svg.line.radial=function(){var e=fo(Mo);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},go.reverse=vo,vo.reverse=go,i.svg.area=function(){return So(I)},i.svg.area.radial=function(){var e=So(Mo);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},i.svg.chord=function(){var e=Co,t=Eo,n=Lo,r=io,o=ao;function i(n,r){var o,i,c=a(this,e,n,r),u=a(this,t,n,r);return"M"+c.p0+s(c.r,c.p1,c.a1-c.a0)+(i=u,((o=c).a0==i.a0&&o.a1==i.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+"Z")}function a(e,t,i,a){var s=t.call(e,i,a),l=n.call(e,s,a),c=r.call(e,s,a)-Oe,u=o.call(e,s,a)-Oe;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Ce)+",1 "+t}function l(e,t,n,r){return"Q 0,0 "+r}return i.radius=function(e){return arguments.length?(n=ht(e),i):n},i.source=function(t){return arguments.length?(e=ht(t),i):e},i.target=function(e){return arguments.length?(t=ht(e),i):t},i.startAngle=function(e){return arguments.length?(r=ht(e),i):r},i.endAngle=function(e){return arguments.length?(o=ht(e),i):o},i},i.svg.diagonal=function(){var e=Co,t=Eo,n=Oo;function r(r,o){var i=e.call(this,r,o),a=t.call(this,r,o),s=(i.y+a.y)/2,l=[i,{x:i.x,y:s},{x:a.x,y:s},a];return"M"+(l=l.map(n))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return r.source=function(t){return arguments.length?(e=ht(t),r):e},r.target=function(e){return arguments.length?(t=ht(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},i.svg.diagonal.radial=function(){var e=i.svg.diagonal(),t=Oo,n=e.projection;return e.projection=function(e){return arguments.length?n(Ro(t=e)):t},e},i.svg.symbol=function(){var e=Po,t=Io;function n(n,r){return(zo.get(e.call(this,n,r))||Do)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=ht(t),n):e},n.size=function(e){return arguments.length?(t=ht(e),n):t},n};var zo=i.map({circle:Do,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Fo)),n=t*Fo;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/No),n=t*No/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/No),n=t*No/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});i.svg.symbolTypes=zo.keys();var No=Math.sqrt(3),Fo=Math.tan(30*Re);$.transition=function(e){for(var t,n,r=Vo||++Wo,o=Zo(e),i=[],a=Go||{time:Date.now(),ease:Rn,delay:0,duration:250},s=-1,l=this.length;++s<l;){i.push(t=[]);for(var c=this[s],u=-1,d=c.length;++u<d;)(n=c[u])&&$o(n,u,o,r,a),t.push(n)}return Ho(i,o,r)},$.interrupt=function(e){return this.each(null==e?Bo:Uo(Zo(e)))};var Bo=Uo(Zo());function Uo(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Ho(e,t,n){return q(e,qo),e.namespace=t,e.id=n,e}var Vo,Go,qo=[],Wo=0;function Yo(e,t,n,r){var o=e.id,i=e.namespace;return pe(e,"function"==typeof n?function(e,a,s){e[i][o].tween.set(t,r(n.call(e,e.__data__,a,s)))}:(n=r(n),function(e){e[i][o].tween.set(t,n)}))}function Xo(e){return null==e&&(e=""),function(){this.textContent=e}}function Zo(e){return null==e?"__transition__":"__transition_"+e+"__"}function $o(e,t,n,r,o){var i,a,s,l,c,u=e[n]||(e[n]={active:0,count:0}),d=u[r];function f(n){var o=u.active,f=u[o];for(var p in f&&(f.timer.c=null,f.timer.t=NaN,--u.count,delete u[o],f.event&&f.event.interrupt.call(e,e.__data__,f.index)),u)if(+p<r){var m=u[p];m.timer.c=null,m.timer.t=NaN,--u.count,delete u[p]}a.c=h,_t((function(){return a.c&&h(n||1)&&(a.c=null,a.t=NaN),1}),0,i),u.active=r,d.event&&d.event.start.call(e,e.__data__,t),c=[],d.tween.forEach((function(n,r){(r=r.call(e,e.__data__,t))&&c.push(r)})),l=d.ease,s=d.duration}function h(o){for(var i=o/s,a=l(i),f=c.length;f>0;)c[--f].call(e,a);if(i>=1)return d.event&&d.event.end.call(e,e.__data__,t),--u.count?delete u[r]:delete e[n],1}d||(i=o.time,a=_t((function(e){var t=d.delay;if(a.t=t+i,t<=e)return f(e-t);a.c=f}),0,i),d=u[r]={tween:new T,time:i,timer:a,delay:o.delay,duration:o.duration,ease:o.ease,index:t},o=null,++u.count)}qo.call=$.call,qo.empty=$.empty,qo.node=$.node,qo.size=$.size,i.transition=function(e,t){return e&&e.transition?Vo?e.transition(t):e:i.selection().transition(e)},i.transition.prototype=qo,qo.select=function(e){var t,n,r,o=this.id,i=this.namespace,a=[];e=K(e);for(var s=-1,l=this.length;++s<l;){a.push(t=[]);for(var c=this[s],u=-1,d=c.length;++u<d;)(r=c[u])&&(n=e.call(r,r.__data__,u,s))?("__data__"in r&&(n.__data__=r.__data__),$o(n,u,i,o,r[i][o]),t.push(n)):t.push(null)}return Ho(a,i,o)},qo.selectAll=function(e){var t,n,r,o,i,a=this.id,s=this.namespace,l=[];e=J(e);for(var c=-1,u=this.length;++c<u;)for(var d=this[c],f=-1,h=d.length;++f<h;)if(r=d[f]){i=r[s][a],n=e.call(r,r.__data__,f,c),l.push(t=[]);for(var p=-1,m=n.length;++p<m;)(o=n[p])&&$o(o,p,s,a,i),t.push(o)}return Ho(l,s,a)},qo.filter=function(e){var t,n,r=[];"function"!=typeof e&&(e=fe(e));for(var o=0,i=this.length;o<i;o++){r.push(t=[]);for(var a,s=0,l=(a=this[o]).length;s<l;s++)(n=a[s])&&e.call(n,n.__data__,s,o)&&t.push(n)}return Ho(r,this.namespace,this.id)},qo.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):pe(this,null==t?function(t){t[r][n].tween.remove(e)}:function(o){o[r][n].tween.set(e,t)})},qo.attr=function(e,t){if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var n="transform"==e?Gn:jn,r=i.ns.qualify(e);function o(){this.removeAttribute(r)}function a(){this.removeAttributeNS(r.space,r.local)}function s(e){return null==e?o:(e+="",function(){var t,o=this.getAttribute(r);return o!==e&&(t=n(o,e),function(e){this.setAttribute(r,t(e))})})}function l(e){return null==e?a:(e+="",function(){var t,o=this.getAttributeNS(r.space,r.local);return o!==e&&(t=n(o,e),function(e){this.setAttributeNS(r.space,r.local,t(e))})})}return Yo(this,"attr."+e,t,r.local?l:s)},qo.attrTween=function(e,t){var n=i.ns.qualify(e);return this.tween("attr."+e,n.local?function(e,r){var o=t.call(this,e,r,this.getAttributeNS(n.space,n.local));return o&&function(e){this.setAttributeNS(n.space,n.local,o(e))}}:function(e,r){var o=t.call(this,e,r,this.getAttribute(n));return o&&function(e){this.setAttribute(n,o(e))}})},qo.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=""),e)this.style(n,e[n],t);return this}n=""}function o(){this.style.removeProperty(e)}function i(t){return null==t?o:(t+="",function(){var r,o=u(this).getComputedStyle(this,null).getPropertyValue(e);return o!==t&&(r=jn(o,t),function(t){this.style.setProperty(e,r(t),n)})})}return Yo(this,"style."+e,t,i)},qo.styleTween=function(e,t,n){function r(r,o){var i=t.call(this,r,o,u(this).getComputedStyle(this,null).getPropertyValue(e));return i&&function(t){this.style.setProperty(e,i(t),n)}}return arguments.length<3&&(n=""),this.tween("style."+e,r)},qo.text=function(e){return Yo(this,"text",e,Xo)},qo.remove=function(){var e=this.namespace;return this.each("end.transition",(function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)}))},qo.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!=typeof e&&(e=i.ease.apply(i,arguments)),pe(this,(function(r){r[n][t].ease=e})))},qo.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:pe(this,"function"==typeof e?function(r,o,i){r[n][t].delay=+e.call(r,r.__data__,o,i)}:(e=+e,function(r){r[n][t].delay=e}))},qo.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:pe(this,"function"==typeof e?function(r,o,i){r[n][t].duration=Math.max(1,e.call(r,r.__data__,o,i))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},qo.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var o=Go,a=Vo;try{Vo=n,pe(this,(function(t,o,i){Go=t[r][n],e.call(t,t.__data__,o,i)}))}finally{Go=o,Vo=a}}else pe(this,(function(o){var a=o[r][n];(a.event||(a.event=i.dispatch("start","end","interrupt"))).on(e,t)}));return this},qo.transition=function(){for(var e,t,n,r=this.id,o=++Wo,i=this.namespace,a=[],s=0,l=this.length;s<l;s++){a.push(e=[]);for(var c,u=0,d=(c=this[s]).length;u<d;u++)(t=c[u])&&$o(t,u,i,o,{time:(n=t[i][r]).time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration}),e.push(t)}return Ho(a,i,o)},i.svg.axis=function(){var e,t=i.scale.linear(),n=Ko,r=6,o=6,a=3,l=[10],c=null;function u(s){s.each((function(){var s,u=i.select(this),d=this.__chart__||t,f=this.__chart__=t.copy(),h=null==c?f.ticks?f.ticks.apply(f,l):f.domain():c,p=null==e?f.tickFormat?f.tickFormat.apply(f,l):I:e,m=u.selectAll(".tick").data(h,f),g=m.enter().insert("g",".domain").attr("class","tick").style("opacity",Se),v=i.transition(m.exit()).style("opacity",Se).remove(),y=i.transition(m.order()).style("opacity",1),b=Math.max(r,0)+a,x=Fr(f),_=u.selectAll(".domain").data([0]),w=(_.enter().append("path").attr("class","domain"),i.transition(_));g.append("line"),g.append("text");var j,k,T,A,M=g.select("line"),S=y.select("line"),C=m.select("text").text(p),E=g.select("text"),L=y.select("text"),O="top"===n||"left"===n?-1:1;if("bottom"===n||"top"===n?(s=Qo,j="x",T="y",k="x2",A="y2",C.attr("dy",O<0?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+x[0]+","+O*o+"V0H"+x[1]+"V"+O*o)):(s=ei,j="y",T="x",k="y2",A="x2",C.attr("dy",".32em").style("text-anchor",O<0?"end":"start"),w.attr("d","M"+O*o+","+x[0]+"H0V"+x[1]+"H"+O*o)),M.attr(A,O*r),E.attr(T,O*b),S.attr(k,0).attr(A,O*r),L.attr(j,0).attr(T,O*b),f.rangeBand){var R=f,P=R.rangeBand()/2;d=f=function(e){return R(e)+P}}else d.rangeBand?d=f:v.call(s,f,d);g.call(s,d,f),y.call(s,f,f)}))}return u.scale=function(e){return arguments.length?(t=e,u):t},u.orient=function(e){return arguments.length?(n=e in Jo?e+"":Ko,u):n},u.ticks=function(){return arguments.length?(l=s(arguments),u):l},u.tickValues=function(e){return arguments.length?(c=e,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(e){var t=arguments.length;return t?(r=+e,o=+arguments[t-1],u):r},u.innerTickSize=function(e){return arguments.length?(r=+e,u):r},u.outerTickSize=function(e){return arguments.length?(o=+e,u):o},u.tickPadding=function(e){return arguments.length?(a=+e,u):a},u.tickSubdivide=function(){return arguments.length&&u},u};var Ko="bottom",Jo={top:1,right:1,bottom:1,left:1};function Qo(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"}))}function ei(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"}))}i.svg.brush=function(){var e,t,n=V(f,"brushstart","brush","brushend"),r=null,o=null,a=[0,0],s=[0,0],l=!0,c=!0,d=ni[0];function f(e){e.each((function(){var e=i.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",g).on("touchstart.brush",g),t=e.selectAll(".background").data([0]);t.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var n=e.selectAll(".resize").data(d,I);n.exit().remove(),n.enter().append("g").attr("class",(function(e){return"resize "+e})).style("cursor",(function(e){return ti[e]})).append("rect").attr("x",(function(e){return/[ew]$/.test(e)?-3:null})).attr("y",(function(e){return/^[ns]/.test(e)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),n.style("display",f.empty()?"none":null);var a,s=i.transition(e),l=i.transition(t);r&&(a=Fr(r),l.attr("x",a[0]).attr("width",a[1]-a[0]),p(s)),o&&(a=Fr(o),l.attr("y",a[0]).attr("height",a[1]-a[0]),m(s)),h(s)}))}function h(e){e.selectAll(".resize").attr("transform",(function(e){return"translate("+a[+/e$/.test(e)]+","+s[+/^s/.test(e)]+")"}))}function p(e){e.select(".extent").attr("x",a[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",a[1]-a[0])}function m(e){e.select(".extent").attr("y",s[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function g(){var d,g,v=this,y=i.select(i.event.target),b=n.of(v,arguments),x=i.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&&r,j=!/^(e|w)$/.test(_)&&o,k=y.classed("extent"),T=ke(v),A=i.mouse(v),M=i.select(u(v)).on("keydown.brush",E).on("keyup.brush",L);if(i.event.changedTouches?M.on("touchmove.brush",O).on("touchend.brush",I):M.on("mousemove.brush",O).on("mouseup.brush",I),x.interrupt().selectAll("*").interrupt(),k)A[0]=a[0]-A[0],A[1]=s[0]-A[1];else if(_){var S=+/w$/.test(_),C=+/^n/.test(_);g=[a[1-S]-A[0],s[1-C]-A[1]],A[0]=a[S],A[1]=s[C]}else i.event.altKey&&(d=A.slice());function E(){32==i.event.keyCode&&(k||(d=null,A[0]-=a[1],A[1]-=s[1],k=2),U())}function L(){32==i.event.keyCode&&2==k&&(A[0]+=a[1],A[1]+=s[1],k=0,U())}function O(){var e=i.mouse(v),t=!1;g&&(e[0]+=g[0],e[1]+=g[1]),k||(i.event.altKey?(d||(d=[(a[0]+a[1])/2,(s[0]+s[1])/2]),A[0]=a[+(e[0]<d[0])],A[1]=s[+(e[1]<d[1])]):d=null),w&&R(e,r,0)&&(p(x),t=!0),j&&R(e,o,1)&&(m(x),t=!0),t&&(h(x),b({type:"brush",mode:k?"move":"resize"}))}function R(n,r,o){var i,u,f=Fr(r),h=f[0],p=f[1],m=A[o],g=o?s:a,v=g[1]-g[0];if(k&&(h-=m,p-=v+m),i=(o?c:l)?Math.max(h,Math.min(p,n[o])):n[o],k?u=(i+=m)+v:(d&&(m=Math.max(h,Math.min(p,2*d[o]-i))),m<i?(u=i,i=m):u=m),g[0]!=i||g[1]!=u)return o?t=null:e=null,g[0]=i,g[1]=u,!0}function I(){O(),x.style("pointer-events","all").selectAll(".resize").style("display",f.empty()?"none":null),i.select("body").style("cursor",null),M.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),T(),b({type:"brushend"})}x.style("pointer-events","none").selectAll(".resize").style("display",null),i.select("body").style("cursor",y.style("cursor")),b({type:"brushstart"}),O()}return f.event=function(r){r.each((function(){var r=n.of(this,arguments),o={x:a,y:s,i:e,j:t},l=this.__chart__||o;this.__chart__=o,Vo?i.select(this).transition().each("start.brush",(function(){e=l.i,t=l.j,a=l.x,s=l.y,r({type:"brushstart"})})).tween("brush:brush",(function(){var n=kn(a,o.x),i=kn(s,o.y);return e=t=null,function(e){a=o.x=n(e),s=o.y=i(e),r({type:"brush",mode:"resize"})}})).each("end.brush",(function(){e=o.i,t=o.j,r({type:"brush",mode:"resize"}),r({type:"brushend"})})):(r({type:"brushstart"}),r({type:"brush",mode:"resize"}),r({type:"brushend"}))}))},f.x=function(e){return arguments.length?(d=ni[!(r=e)<<1|!o],f):r},f.y=function(e){return arguments.length?(d=ni[!r<<1|!(o=e)],f):o},f.clamp=function(e){return arguments.length?(r&&o?(l=!!e[0],c=!!e[1]):r?l=!!e:o&&(c=!!e),f):r&&o?[l,c]:r?l:o?c:null},f.extent=function(n){var i,l,c,u,d;return arguments.length?(r&&(i=n[0],l=n[1],o&&(i=i[0],l=l[0]),e=[i,l],r.invert&&(i=r(i),l=r(l)),l<i&&(d=i,i=l,l=d),i==a[0]&&l==a[1]||(a=[i,l])),o&&(c=n[0],u=n[1],r&&(c=c[1],u=u[1]),t=[c,u],o.invert&&(c=o(c),u=o(u)),u<c&&(d=c,c=u,u=d),c==s[0]&&u==s[1]||(s=[c,u])),f):(r&&(e?(i=e[0],l=e[1]):(i=a[0],l=a[1],r.invert&&(i=r.invert(i),l=r.invert(l)),l<i&&(d=i,i=l,l=d))),o&&(t?(c=t[0],u=t[1]):(c=s[0],u=s[1],o.invert&&(c=o.invert(c),u=o.invert(u)),u<c&&(d=c,c=u,u=d))),r&&o?[[i,c],[l,u]]:r?[i,l]:o&&[c,u])},f.clear=function(){return f.empty()||(a=[0,0],s=[0,0],e=t=null),f},f.empty=function(){return!!r&&a[0]==a[1]||!!o&&s[0]==s[1]},i.rebind(f,n,"on")};var ti={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ni=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];function ri(e){return JSON.parse(e.responseText)}function oi(e){var t=l.createRange();return t.selectNode(l.body),t.createContextualFragment(e.responseText)}i.text=pt((function(e){return e.responseText})),i.json=function(e,t){return mt(e,"application/json",ri,t)},i.html=function(e,t){return mt(e,"text/html",oi,t)},i.xml=pt((function(e){return e.responseXML})),void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)}).apply(self)},"./node_modules/@splunk/splunk-utils/config.js":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getCSRFToken=function(){return(0,i.getEntry)("splunkweb_csrf_token_".concat(s("MRSPARKLE_PORT_NUMBER")))},t.extractAppName=u,t.versionLabel=t.username=t.splunkdPath=t.serverTimezoneInfo=t.rootPath=t.portNumber=t.locale=t.config=t.buildPushNumber=t.buildNumber=t.appBuild=t.app=t.isAvailable=t.CSRFToken=void 0;var r,o=(r=n("./node_modules/lodash/get.js"))&&r.__esModule?r:{default:r},i=n("./node_modules/@splunk/ui-utils/cookie.js");var a="undefined"==typeof window?e:window;function s(e){return(0,o.default)(a,["$C",e])}var l=(0,i.getEntry)("splunkweb_csrf_token_".concat(s("MRSPARKLE_PORT_NUMBER")));t.CSRFToken=l;var c=!!s("SPLUNKD_PATH");function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.default)(a,["document","location","pathname"],""),t=e.match(/\w\w.\w\w\/(app|manager)\/([^/]+)/);return t?t[2]:void 0}t.isAvailable=c;var d=u();t.app=d;var f=s("APP_BUILD");t.appBuild=f;var h=s("BUILD_NUMBER");t.buildNumber=h;var p=s("BUILD_PUSH_NUMBER");t.buildPushNumber=p;var m=(0,o.default)(a,"$C");t.config=m;var g=s("LOCALE");t.locale=g;var v=s("MRSPARKLE_PORT_NUMBER");t.portNumber=v;var y=s("MRSPARKLE_ROOT_PATH");t.rootPath=y;var b=s("SERVER_ZONEINFO");t.serverTimezoneInfo=b;var x=s("SPLUNKD_PATH");t.splunkdPath=x;var _=s("USERNAME");t.username=_;var w=s("VERSION_LABEL");t.versionLabel=w}).call(this,n("./node_modules/@splunk/swc-mltk/node_modules/webpack/buildin/global.js"))},"./node_modules/@splunk/swc-mltk/dist/build_tools/web_loaders/splunk-public-path-injection-loader.js?/static/app/Splunk_ML_Toolkit/!./src/main/webapp/visualizations/Scatter3dViz/visualization.es":function(e,t,n){var r,o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.p=function(){function e(e,t){if(window.$C&&window.$C.hasOwnProperty(e))return window.$C[e];if(void 0!==t)return t;throw new Error("getConfigValue - "+e+" not set, no default provided")}return function(){for(var t,n,r="",o=0,i=arguments.length;o<i;o++)(n=(t=arguments[o].toString()).length)>1&&"/"==t.charAt(n-1)&&(t=t.substring(0,n-1)),"/"!=t.charAt(0)?r+="/"+t:r+=t;if("/"!=r){var a=r.split("/"),s=a[1];if("static"==s||"modules"==s){var l=r.substring(s.length+2,r.length);r="/"+s,window.$C.BUILD_NUMBER&&(r+="/@"+window.$C.BUILD_NUMBER),window.$C.BUILD_PUSH_NUMBER&&(r+="."+window.$C.BUILD_PUSH_NUMBER),"app"==a[2]&&(r+=":"+e("APP_BUILD",0)),r+="/"+l}}var c=e("MRSPARKLE_ROOT_PATH","/"),u=e("LOCALE","en-US"),d="/"+u+r;return""==c||"/"==c?d:c+d}("/static/app/Splunk_ML_Toolkit/")+"/"}(),n("./node_modules/core-js/modules/es.symbol.js"),n("./node_modules/core-js/modules/es.symbol.description.js"),n("./node_modules/core-js/modules/es.symbol.iterator.js"),n("./node_modules/core-js/modules/es.symbol.to-primitive.js"),n("./node_modules/core-js/modules/es.date.to-primitive.js"),n("./node_modules/core-js/modules/es.number.constructor.js"),n("./node_modules/core-js/modules/es.regexp.to-string.js"),r=[t,n("./node_modules/core-js/modules/es.array.concat.js"),n("./node_modules/core-js/modules/es.array.filter.js"),n("./node_modules/core-js/modules/es.array.from.js"),n("./node_modules/core-js/modules/es.array.iterator.js"),n("./node_modules/core-js/modules/es.array.join.js"),n("./node_modules/core-js/modules/es.array.map.js"),n("./node_modules/core-js/modules/es.array.slice.js"),n("./node_modules/core-js/modules/es.array.sort.js"),n("./node_modules/core-js/modules/es.function.name.js"),n("./node_modules/core-js/modules/es.object.keys.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.regexp.exec.js"),n("./node_modules/core-js/modules/es.string.iterator.js"),n("./node_modules/core-js/modules/es.string.match.js"),n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),n("./node_modules/regenerator-runtime/runtime.js"),n("./node_modules/lodash.has/index.js"),n("./node_modules/@splunk/ui-utils/i18n.js"),n("./node_modules/@splunk/ui-utils/format.js"),n("./node_modules/css-color-names/css-color-names.json"),n("./node_modules/@splunk/swc-mltk/dist/splunkvisualizationbase.js"),n("./node_modules/@splunk/themes/enterpriseDark.js"),n("./src/main/webapp/contrib_shim/Plotly/Plotly.es"),n("./src/main/webapp/util/colorPalette.es"),n("./src/main/webapp/util/options.es"),n("./src/main/webapp/util/visualizationUtil.es"),n("shared/controls/Messages")],void 0===(o=function(n,r,o,a,s,l,c,u,d,f,h,p,m,g,v,y,b,x,_,w,j,k,T,A,M,S,C,E,L){"use strict";function O(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,_=O(_),k=O(k),A=O(A),M=O(M),C=O(C);n.default=T.SplunkVisualizationBase.extend({initialize:function(){T.SplunkVisualizationBase.prototype.initialize.apply(this,arguments),this.rowLimit=5e4},displayDataWarningMessage:function(e){(0,L.setAlert)(this.warningMessageEl,e,"warning","alert-inline")},getInitialDataParams:function(){return{count:this.rowLimit,outputMode:T.SplunkVisualizationBase.ROW_MAJOR_OUTPUT_MODE}},setupView:function(){var e=this,t=(new Date).valueOf();this.id="scatter3d".concat(t),this.vizContainerEl=document.createElement("div"),this.vizContainerEl.classList.add("mltk-scatter3d-container"),this.warningMessageEl=document.createElement("div"),this.warningMessageEl.classList.add("mltk-scatter3d-warning"),this.vizEl=document.createElement("div"),this.vizEl.classList.add("splunk-scatter3d"),this.vizEl.setAttribute("id",this.id),this.vizContainerEl.appendChild(this.vizEl),this.vizContainerEl.appendChild(this.warningMessageEl),this.el.appendChild(this.vizContainerEl),M.default.newPlot(this.vizEl,[],{},{showLink:!1,displaylogo:!1,modeBarButtonsToRemove:["sendDataToCloud","resetCameraLastSave3d"]}).then((function(){var t=e.vizEl.getElementsByClassName("traces"),n=I(Array(t.length).keys());t.forEach((function(t,r){t.addEventListener("mouseenter",(function(t){e._data.clusterData[r].hidden||(n.forEach((function(t){r!==t&&(e._data.clusterData[t].marker.color=A.default.gray80)})),e.invalidateUpdateView())})),t.addEventListener("mouseleave",(function(t){e._data.clusterData[r].hidden||(n.forEach((function(t){r!==t&&(e._data.clusterData[t].marker.color=e._data.clusterData[t].originalColorList[e._data.clusterData[t].name])})),e.invalidateUpdateView())}))})),e.vizEl.on("plotly_legendclick",(function(t){e._data.clusterData[t.curveNumber].hidden=!e._data.clusterData[t.curveNumber].hidden,e._data.clusterData[t.curveNumber].hidden?e._data.clusterData.forEach((function(t,n){e._data.clusterData[n].marker.color=t.originalColorList[t.name]})):e._data.clusterData.forEach((function(n,r){t.curveNumber===r?e._data.clusterData[r].marker.color=n.originalColorList[n.name]:e._data.clusterData[r].marker.color=A.default.gray80}))}))})),this.vizEl.on("plotly_click",(function(t){if(null!==t&&t.points[0]){var n=t.points[0],r=n.x,o=n.y,i=n.z,a=(0,E.getVisualizationConfig)(e,e.config,"xAxisField","x"),s=(0,E.getVisualizationConfig)(e,e.config,"yAxisField","y"),l=(0,E.getVisualizationConfig)(e,e.config,"zAxisField","z"),c=(0,E.getVisualizationConfig)(e,e.config,"onPlotlyClick");"function"==typeof c?c.call(e,r,o,i):e.drilldown({action:T.SplunkVisualizationBase.FIELD_VALUE_DRILLDOWN,data:R(R(R({},a,r),s,o),l,i)},e)}}))},formatData:function(e,t){var n=[],r={},o=e.rows.length,i=e.fields,a=e.rows,s={},l=(0,E.getVisualizationConfig)(this,t,"xAxisField","x"),c=(0,E.getVisualizationConfig)(this,t,"yAxisField","y"),u=(0,E.getVisualizationConfig)(this,t,"zAxisField","z");i.forEach((function(e,t){"clusterId"===e.name?r.clusterId=t:"clusterColor"===e.name?r.clusterColor=t:e.name===l?r.x=t:e.name===c?r.y=t:e.name===u&&(r.z=t)}));var d=C.default.getOptionByName("maxSeriesThreshold"),f=parseInt((0,E.getVisualizationConfig)(this,t,"catLimit",d),10);if(0!==o&&[parseFloat(e.rows[0][r.x]),parseFloat(e.rows[0][r.y]),parseFloat(e.rows[0][r.z])].some(isNaN))throw new T.SplunkVisualizationBase.VisualizationError("The second, third, and fourth columns must be named x, y, and z, respectively. Column values must be numeric.");var h={},p={},m=[];a.forEach((function(e,t){var n=e[r.clusterId],o=e[r.x],i=e[r.y],a=e[r.z],s=e[r.clusterColor];n in h?(s!==p[e[r.clusterId]]&&-1===m.indexOf(n)&&m.push(n),h[n].x.push(o),h[n].y.push(i),h[n].z.push(a)):(h[n]={x:[o],y:[i],z:[a]},p[n]=s)}));var g=m.length>5?"...":"";0!==m.length&&n.push("Clusters ".concat(m.slice(0,5).join(", ")).concat(g," have more than one color set; using the first color for each cluster."));var v=(0,E.getVisualizationConfig)(this,t,"legendOrder","numeric"),y=Object.keys(p);"numeric"===v&&y.sort(E.sortLegendLabels);var b=(0,S.getColors)(),x=0,M=[];y.forEach((function(e){var t=p[e];null!=t?(0,_.default)(k.default,t.toLowerCase())?s[e]=k.default[t.toLowerCase()]:t.match(/^#[A-Z0-9]{6}$/i)?s[e]=t:(M.push(t),s[e]=b[x],x+=1):(s[e]=b[x],x+=1)})),0!==M.length&&n.push("The colors ".concat(M.join(", ")," are invalid. Please provide hex color codes or refer to the documentation for a list of supported color names."));var L={clusterData:[],msg:n},O=Object.keys(h);return"numeric"===v&&O.sort(E.sortLegendLabels),O.length>f&&(O=O.slice(0,f),n.push((0,j.sprintf)((0,w.gettext)("These results may be truncated. This visualization is configured to display a maximum of %s series, and that limit has been reached."),f))),O.forEach((function(e,t){var n={hidden:!1,hoverlabel:{bgcolor:A.default.gray98,bordercolor:s[e],font:{color:A.default.black}},hovertemplate:"".concat(e,"<br>x: %{x}<br>y: %{y}<br>z: %{z}<br><extra></extra>"),name:e,x:h[e].x,y:h[e].y,z:h[e].z,mode:"markers",marker:{color:s[e]},originalColorList:s,type:"scatter3d"};L.clusterData.push(n)})),L},updateView:function(e,t){var n=this;this.config=t;var r=e.msg,o=e.clusterData;(0,L.removeAlert)(this.warningMessageEl),r.forEach((function(e){n.displayDataWarningMessage(e)}));var i,a,s,l,c=(0,E.getVisualizationConfig)(this,t,"bgColor","auto");"auto"===c&&(c="dark"===(0,E.getCurrentTheme)()?"black":"white"),"black"===c?(c=A.default.gray20,i=A.default.white,a=A.default.gray92,s=A.default.gray30,l=A.default.gray92):(i=A.default.black,a=A.default.gray80,s=A.default.gray60,l=A.default.gray80);var u={font:{family:"Splunk Platform Sans"},showlegend:"0"!==(0,E.getVisualizationConfig)(this,t,"showLegend"),margin:{l:15,r:15,b:15,t:15},height:this.vizContainerEl?this.vizContainerEl.getBoundingClientRect().height-this.warningMessageEl.getBoundingClientRect().height:this.el.getBoundingClientRect().height,width:this.el.getBoundingClientRect().width,paper_bgcolor:c,legend:{font:{size:12,family:"Splunk Platform Sans",color:i}},scene:{aspectmode:(0,E.getVisualizationConfig)(this,t,"aspectMode")||"auto",aspectratio:{x:(0,E.getVisualizationConfig)(this,t,"xAspectRatio"),y:(0,E.getVisualizationConfig)(this,t,"yAspectRatio"),z:(0,E.getVisualizationConfig)(this,t,"zAspectRatio")},bgcolor:c,xaxis:{color:i,gridcolor:a,spikecolor:s,title:(0,E.getVisualizationConfig)(this,t,"xTitle")||"x",zerolinecolor:l},yaxis:{color:i,gridcolor:a,spikecolor:s,title:(0,E.getVisualizationConfig)(this,t,"yTitle")||"y",zerolinecolor:l},zaxis:{color:i,gridcolor:a,spikecolor:s,title:(0,E.getVisualizationConfig)(this,t,"zTitle")||"z",zerolinecolor:l}},uirevision:!0};o.length&&o.forEach((function(e,r){o[r].marker.size=parseFloat((0,E.getVisualizationConfig)(n,t,"size"))||6,o[r].marker.opacity=parseFloat((0,E.getVisualizationConfig)(n,t,"opacity"))||.5,o[r].marker.symbol=(0,E.getVisualizationConfig)(n,t,"symbol")||"circle",o[r].marker.line={color:(0,E.getVisualizationConfig)(n,t,"lineColor")||A.default.black,width:parseFloat((0,E.getVisualizationConfig)(n,t,"lineWidth"))||0}}));var d=Array.from(this.vizContainerEl.children).filter((function(e){return e.classList.contains("splunk-scatter3d")}));M.default.react(d[0],o,u)},reflow:function(){if(this.el&&this.vizEl){var e=Array.from(this.vizEl.children).map((function(e){return Array.from(e.children).filter((function(e){return e.classList.contains("svg-container")}))}))[0][0],t=this.el.getBoundingClientRect().width,n=this.el.getBoundingClientRect().height;this.vizEl.getBoundingClientRect().height===n&&e.getBoundingClientRect().width===t||(this.vizEl.style.height=n,e.style.width=t,this.invalidateUpdateView())}}});e.exports=t.default}.apply(t,r))||(e.exports=o)},"./node_modules/@splunk/swc-mltk/dist/splunkvisualizationbase.js":function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1456)}({1456:function(e,t,n){"use strict";n.r(t);var r=n("api/SplunkVisualizationBase"),o=n.n(r);n.d(t,"SplunkVisualizationBase",(function(){return o.a}));var i=n("contrib/jg_lib/graphics/Color"),a=n.n(i);n.d(t,"JGColor",(function(){return a.a}))},291:function(e,t,n){var r;
/*!
* jQuery JavaScript Library v3.5.0
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2020-04-10T15:07Z
*/!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,o){"use strict";var i=[],a=Object.getPrototypeOf,s=i.slice,l=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,u=i.indexOf,d={},f=d.toString,h=d.hasOwnProperty,p=h.toString,m=p.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},b=n.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var r,o,i=(n=n||b).createElement("script");if(i.text=e,t)for(r in x)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var j=function(e,t){return new j.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}j.fn=j.prototype={jquery:"3.5.0",constructor:j,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=j.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return j.each(this,e)},map:function(e){return this.pushStack(j.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(j.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(j.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},j.extend=j.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(c&&r&&(j.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||j.isPlainObject(n)?n:{},o=!1,a[t]=j.extend(c,i,r)):void 0!==r&&(a[t]=r));return a},j.extend({expando:"jQuery"+("3.5.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e)||(t=a(e))&&("function"!=typeof(n=h.call(t,"constructor")&&t.constructor)||p.call(n)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(k(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?j.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(k(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return l(a)},guid:1,support:g}),"function"==typeof Symbol&&(j.fn[Symbol.iterator]=i[Symbol.iterator]),j.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var T=
/*!
* Sizzle CSS Selector Engine v2.3.5
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://js.foundation/
*
* Date: 2020-03-14
*/
function(e){var t,n,r,o,i,a,s,l,c,u,d,f,h,p,m,g,v,y,b,x="sizzle"+1*new Date,_=e.document,w=0,j=0,k=le(),T=le(),A=le(),M=le(),S=function(e,t){return e===t&&(d=!0),0},C={}.hasOwnProperty,E=[],L=E.pop,O=E.push,R=E.push,I=E.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},D="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",z="[\\x20\\t\\r\\n\\f]",N="(?:\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+z+"*("+N+")(?:"+z+"*([*^$|!~]?=)"+z+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+z+"*\\]",B=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",U=new RegExp(z+"+","g"),H=new RegExp("^"+z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+z+"+$","g"),V=new RegExp("^"+z+"*,"+z+"*"),G=new RegExp("^"+z+"*([>+~]|"+z+")"+z+"*"),q=new RegExp(z+"|>"),W=new RegExp(B),Y=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,$=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},ae=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{R.apply(E=I.call(_.childNodes),_.childNodes),E[_.childNodes.length].nodeType}catch(e){R={apply:E.length?function(e,t){O.apply(e,I.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,o){var i,s,c,u,d,p,v,y=t&&t.ownerDocument,_=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return r;if(!o&&(f(t),t=t||h,m)){if(11!==_&&(d=Q.exec(e)))if(i=d[1]){if(9===_){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(y&&(c=y.getElementById(i))&&b(t,c)&&c.id===i)return r.push(c),r}else{if(d[2])return R.apply(r,t.getElementsByTagName(e)),r;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return R.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!M[e+" "]&&(!g||!g.test(e))&&(1!==_||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===_&&(q.test(e)||G.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=x)),s=(p=a(e)).length;s--;)p[s]=(u?"#"+u:":scope")+" "+be(p[s]);v=p.join(",")}try{return R.apply(r,y.querySelectorAll(v)),r}catch(t){M(e,!0)}finally{u===x&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[x]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Z.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:_;return a!=h&&9===a.nodeType&&a.documentElement?(p=(h=a).documentElement,m=!i(h),_!=h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.scope=ue((function(e){return p.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=x,!h.getElementsByName||!h.getElementsByName(x).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(h.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+z+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+z+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+z+"*name"+z+"*="+z+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+z+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",B)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(p.compareDocumentPosition),b=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==_&&b(_,e)?-1:t==h||t.ownerDocument==_&&b(_,t)?1:u?P(u,e)-P(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e==h?-1:t==h?1:o?-1:i?1:u?P(u,e)-P(u,t):0;if(o===i)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]==_?-1:s[r]==_?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&m&&!M[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){M(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&f(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&f(e);var o=r.attrHandle[t.toLowerCase()],i=o&&C.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,i=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(S),d){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+z+")"+e+"("+z+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,h,p,m=i!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(i){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(b=(h=(c=(u=(d=(f=g)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===w&&c[1])&&c[2],f=h&&g.childNodes[h];f=++h&&f&&f[m]||(b=h=0)||p.pop();)if(1===f.nodeType&&++b&&f===t){u[e]=[w,h,b];break}}else if(y&&(b=h=(c=(u=(d=(f=t)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===w&&c[1]),!1===b)for(;(f=++h&&f&&f[m]||(b=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((u=(d=f[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[w,b]),f!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=P(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(H,"$1"));return r[x]?ce((function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return Y.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=j++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,l){var c,u,d,f=[w,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[i])&&c[0]===w&&c[1]===s)return f[2]=c[2];if(u[i]=f,f[2]=e(t,n,l))return!0}return!1}}function _e(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,o){for(var i,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(s)));return a}function je(e,t,n,r,o,i){return r&&!r[x]&&(r=je(r)),o&&!o[x]&&(o=je(o,i)),ce((function(i,a,s,l){var c,u,d,f=[],h=[],p=a.length,m=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!i&&t?m:we(m,f,e,s,l),v=n?o||(i?e:p||r)?[]:a:g;if(n&&n(g,v,s,l),r)for(c=we(v,h),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[h[u]]=!(g[h[u]]=d));if(i){if(o||e){if(o){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);o(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=o?P(i,d):f[u])>-1&&(i[c]=!(a[c]=d))}}else v=we(v===a?v.splice(p,v.length):v),o?o(null,a,v,l):R.apply(a,v)}))}function ke(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=xe((function(e){return e===t}),s,!0),d=xe((function(e){return P(t,e)>-1}),s,!0),f=[function(e,n,r){var o=!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,o}];l<i;l++)if(n=r.relative[e[l].type])f=[xe(_e(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[x]){for(o=++l;o<i&&!r.relative[e[o].type];o++);return je(l>1&&_e(f),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),n,l<o&&ke(e.slice(l,o)),o<i&&ke(e=e.slice(o)),o<i&&be(e))}f.push(n)}return _e(f)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,o,i,a,s,l,c,u=T[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(a in n&&!(o=V.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(i=[])),n=!1,(o=G.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(H," ")}),s=s.slice(n.length)),r.filter)!(o=X[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):T(e,l).slice(0)},s=se.compile=function(e,t){var n,o=[],i=[],s=A[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=ke(t[n]))[x]?o.push(s):i.push(s);(s=A(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,l,u){var d,p,g,v=0,y="0",b=i&&[],x=[],_=c,j=i||o&&r.find.TAG("*",u),k=w+=null==_?1:Math.random()||.1,T=j.length;for(u&&(c=a==h||a||u);y!==T&&null!=(d=j[y]);y++){if(o&&d){for(p=0,a||d.ownerDocument==h||(f(d),s=!m);g=e[p++];)if(g(d,a||h,s)){l.push(d);break}u&&(w=k)}n&&((d=!g&&d)&&v--,i&&b.push(d))}if(v+=y,n&&y!==v){for(p=0;g=t[p++];)g(b,x,a,s);if(i){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=L.call(l));x=we(x)}R.apply(l,x),u&&!i&&x.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(w=k,c=_),b};return n?ce(i):i}(i,o))).selector=e}return s},l=se.select=function(e,t,n,o){var i,l,c,u,d,f="function"==typeof e&&e,h=!o&&a(e=f.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=X.needsContext.test(e)?0:l.length;i--&&(c=l[i],!r.relative[u=c.type]);)if((d=r.find[u])&&(o=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(i,1),!(e=o.length&&be(l)))return R.apply(n,o),n;break}}return(f||s(e,h))(o,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=x.split("").sort(S).join("")===x,n.detectDuplicates=!!d,f(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(D,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);j.find=T,j.expr=T.selectors,j.expr[":"]=j.expr.pseudos,j.uniqueSort=j.unique=T.uniqueSort,j.text=T.getText,j.isXMLDoc=T.isXML,j.contains=T.contains,j.escapeSelector=T.escape;var A=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&j(e).is(n))break;r.push(e)}return r},M=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=j.expr.match.needsContext;function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return v(t)?j.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?j.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?j.grep(e,(function(e){return u.call(t,e)>-1!==n})):j.filter(t,e,n)}j.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?j.find.matchesSelector(r,e)?[r]:[]:j.find.matches(e,j.grep(t,(function(e){return 1===e.nodeType})))},j.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(j(e).filter((function(){for(t=0;t<r;t++)if(j.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)j.find(e,o[t],n);return r>1?j.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&S.test(e)?j(e):e||[],!1).length}});var O,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(j.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof j?t[0]:t,j.merge(this,j.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),E.test(r[1])&&j.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=b.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(j):j.makeArray(e,this)}).prototype=j.fn,O=j(b);var I=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function D(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}j.fn.extend({has:function(e){var t=j(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(j.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&j(e);if(!S.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&j.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?j.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(j(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(j.uniqueSort(j.merge(this.get(),j(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),j.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return A(e,"parentNode")},parentsUntil:function(e,t,n){return A(e,"parentNode",n)},next:function(e){return D(e,"nextSibling")},prev:function(e){return D(e,"previousSibling")},nextAll:function(e){return A(e,"nextSibling")},prevAll:function(e){return A(e,"previousSibling")},nextUntil:function(e,t,n){return A(e,"nextSibling",n)},prevUntil:function(e,t,n){return A(e,"previousSibling",n)},siblings:function(e){return M((e.parentNode||{}).firstChild,e)},children:function(e){return M(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),j.merge([],e.childNodes))}},(function(e,t){j.fn[e]=function(n,r){var o=j.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=j.filter(r,o)),this.length>1&&(P[e]||j.uniqueSort(o),I.test(e)&&o.reverse()),this.pushStack(o)}}));var z=/[^\x20\t\r\n\f]+/g;function N(e){return e}function F(e){throw e}function B(e,t,n,r){var o;try{e&&v(o=e.promise)?o.call(e).done(t).fail(n):e&&v(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}j.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return j.each(e.match(z)||[],(function(e,n){t[n]=!0})),t}(e):j.extend({},e);var t,n,r,o,i=[],a=[],s=-1,l=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){j.each(n,(function(n,r){v(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==w(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return j.each(arguments,(function(e,t){for(var n;(n=j.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?j.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},j.extend({Deferred:function(e){var t=[["notify","progress",j.Callbacks("memory"),j.Callbacks("memory"),2],["resolve","done",j.Callbacks("once memory"),j.Callbacks("once memory"),0,"resolved"],["reject","fail",j.Callbacks("once memory"),j.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return j.Deferred((function(n){j.each(t,(function(t,r){var o=v(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,o){var i=0;function a(e,t,r,o){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<i)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(c)?o?c.call(n,a(i,t,N,o),a(i,t,F,o)):(i++,c.call(n,a(i,t,N,o),a(i,t,F,o),a(i,t,N,t.notifyWith))):(r!==N&&(s=void 0,l=[n]),(o||t.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(n){j.Deferred.exceptionHook&&j.Deferred.exceptionHook(n,u.stackTrace),e+1>=i&&(r!==F&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(j.Deferred.getStackHook&&(u.stackTrace=j.Deferred.getStackHook()),n.setTimeout(u))}}return j.Deferred((function(n){t[0][3].add(a(0,n,v(o)?o:N,n.notifyWith)),t[1][3].add(a(0,n,v(e)?e:N)),t[2][3].add(a(0,n,v(r)?r:F))})).promise()},promise:function(e){return null!=e?j.extend(e,o):o}},i={};return j.each(t,(function(e,n){var a=n[2],s=n[5];o[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith})),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=s.call(arguments),i=j.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?s.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(B(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||v(o[n]&&o[n].then)))return i.then();for(;n--;)B(o[n],a(n),i.reject);return i.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;j.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&U.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},j.readyException=function(e){n.setTimeout((function(){throw e}))};var H=j.Deferred();function V(){b.removeEventListener("DOMContentLoaded",V),n.removeEventListener("load",V),j.ready()}j.fn.ready=function(e){return H.then(e).catch((function(e){j.readyException(e)})),this},j.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--j.readyWait:j.isReady)||(j.isReady=!0,!0!==e&&--j.readyWait>0||H.resolveWith(b,[j]))}}),j.ready.then=H.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(j.ready):(b.addEventListener("DOMContentLoaded",V),n.addEventListener("load",V));var G=function(e,t,n,r,o,i,a){var s=0,l=e.length,c=null==n;if("object"===w(n))for(s in o=!0,n)G(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,v(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(j(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):i},q=/^-ms-/,W=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function X(e){return e.replace(q,"ms-").replace(W,Y)}var Z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function $(){this.expando=j.expando+$.uid++}$.uid=1,$.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),Z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[X(t)]=n;else for(r in t)o[X(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(z)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||j.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!j.isEmptyObject(t)}};var K=new $,J=new $,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Q.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}j.extend({hasData:function(e){return J.hasData(e)||K.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),j.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=J.get(i),1===i.nodeType&&!K.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=X(r.slice(5)),te(i,r,o[r]));K.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){J.set(this,e)})):G(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=J.get(i,e))||void 0!==(n=te(i,e))?n:void 0;this.each((function(){J.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),j.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=K.get(e,t),n&&(!r||Array.isArray(n)?r=K.access(e,t,j.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=j.queue(e,t),r=n.length,o=n.shift(),i=j._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){j.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:j.Callbacks("once memory").add((function(){K.remove(e,[t+"queue",n])}))})}}),j.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?j.queue(this[0],e):void 0===t?this:this.each((function(){var n=j.queue(this,e,t);j._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&j.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){j.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=j.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=K.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],ie=b.documentElement,ae=function(e){return j.contains(e.ownerDocument,e)},se={composed:!0};ie.getRootNode&&(ae=function(e){return j.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===j.css(e,"display")};function ce(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return j.css(e,t,"")},l=s(),c=n&&n[3]||(j.cssNumber[t]?"":"px"),u=e.nodeType&&(j.cssNumber[t]||"px"!==c&&+l)&&re.exec(j.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)j.style(e,t,u+c),(1-i)*(1-(i=s()/l||.5))<=0&&(a=0),u/=i;u*=2,j.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=o)),o}var ue={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,o=ue[r];return o||(t=n.body.appendChild(n.createElement(r)),o=j.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),ue[r]=o,o)}function fe(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=K.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&le(r)&&(o[i]=de(r))):"none"!==n&&(o[i]="none",K.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}j.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?j(this).show():j(this).hide()}))}});var he,pe,me=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;he=b.createDocumentFragment().appendChild(b.createElement("div")),(pe=b.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),he.appendChild(pe),g.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",g.option=!!he.lastChild;var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?j.merge([e],n):n}function xe(e,t){for(var n=0,r=e.length;n<r;n++)K.set(e[n],"globalEval",!t||K.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,g.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var _e=/<|&#?\w+;/;function we(e,t,n,r,o){for(var i,a,s,l,c,u,d=t.createDocumentFragment(),f=[],h=0,p=e.length;h<p;h++)if((i=e[h])||0===i)if("object"===w(i))j.merge(f,i.nodeType?[i]:i);else if(_e.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(ge.exec(i)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,a.innerHTML=l[1]+j.htmlPrefilter(i)+l[2],u=l[0];u--;)a=a.lastChild;j.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(i));for(d.textContent="",h=0;i=f[h++];)if(r&&j.inArray(i,r)>-1)o&&o.push(i);else if(c=ae(i),a=be(d.appendChild(i),"script"),c&&xe(a),n)for(u=0;i=a[u++];)ve.test(i.type||"")&&n.push(i);return d}var je=/^key/,ke=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Me(){return!1}function Se(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Ce(e,t,n,r,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ce(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Me;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return j().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=j.guid++)),e.each((function(){j.event.add(this,t,o,r,n)}))}function Ee(e,t,n){n?(K.set(e,t,!1),j.event.add(e,t,{namespace:!1,handler:function(e){var r,o,i=K.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(j.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),K.set(this,t,i),r=n(this,t),this[t](),i!==(o=K.get(this,t))||r?K.set(this,t,!1):o={},i!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else i.length&&(K.set(this,t,{value:j.event.trigger(j.extend(i[0],j.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&j.event.add(e,t,Ae)}j.event={global:{},add:function(e,t,n,r,o){var i,a,s,l,c,u,d,f,h,p,m,g=K.get(e);if(Z(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&j.find.matchesSelector(ie,o),n.guid||(n.guid=j.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==j&&j.event.triggered!==t.type?j.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(z)||[""]).length;c--;)h=m=(s=Te.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),h&&(d=j.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=j.event.special[h]||{},u=j.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&j.expr.match.needsContext.test(o),namespace:p.join(".")},i),(f=l[h])||((f=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),j.event.global[h]=!0)},remove:function(e,t,n,r,o){var i,a,s,l,c,u,d,f,h,p,m,g=K.hasData(e)&&K.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(z)||[""]).length;c--;)if(h=m=(s=Te.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),h){for(d=j.event.special[h]||{},f=l[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=f.length;i--;)u=f[i],!o&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(i,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||j.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)j.event.remove(e,h+t[c],n,r,!0);j.isEmptyObject(l)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=new Array(arguments.length),l=j.event.fix(e),c=(K.get(this,"events")||Object.create(null))[l.type]||[],u=j.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=j.event.handlers.call(this,l,c),t=0;(o=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(r=((j.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,o,i,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},n=0;n<l;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?j(o,this).index(c)>-1:j.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(j.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[j.expando]?e:new j.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&C(t,"input")&&Ee(t,"click",Ae),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&C(t,"input")&&Ee(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&C(t,"input")&&K.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},j.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},j.Event=function(e,t){if(!(this instanceof j.Event))return new j.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&j.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[j.expando]=!0},j.Event.prototype={constructor:j.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},j.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&je.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ke.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},j.event.addProp),j.each({focus:"focusin",blur:"focusout"},(function(e,t){j.event.special[e]={setup:function(){return Ee(this,e,Se),!1},trigger:function(){return Ee(this,e),!0},delegateType:t}})),j.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){j.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return o&&(o===r||j.contains(r,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),j.fn.extend({on:function(e,t,n,r){return Ce(this,e,t,n,r)},one:function(e,t,n,r){return Ce(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,j(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each((function(){j.event.remove(this,e,n,t)}))}});var Le=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ie(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&j(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function De(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ze(e,t){var n,r,o,i,a,s;if(1===t.nodeType){if(K.hasData(e)&&(s=K.get(e).events))for(o in K.remove(t,"handle events"),s)for(n=0,r=s[o].length;n<r;n++)j.event.add(t,o,s[o][n]);J.hasData(e)&&(i=J.access(e),a=j.extend({},i),J.set(t,a))}}function Ne(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Fe(e,t,n,r){t=l(t);var o,i,a,s,c,u,d=0,f=e.length,h=f-1,p=t[0],m=v(p);if(m||f>1&&"string"==typeof p&&!g.checkClone&&Oe.test(p))return e.each((function(o){var i=e.eq(o);m&&(t[0]=p.call(this,o,i.html())),Fe(i,t,n,r)}));if(f&&(i=(o=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=j.map(be(o,"script"),Pe)).length;d<f;d++)c=o,d!==h&&(c=j.clone(c,!0,!0),s&&j.merge(a,be(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,j.map(a,De),d=0;d<s;d++)c=a[d],ve.test(c.type||"")&&!K.access(c,"globalEval")&&j.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?j._evalUrl&&!c.noModule&&j._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):_(c.textContent.replace(Re,""),c,u))}return e}function Be(e,t,n){for(var r,o=t?j.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||j.cleanData(be(r)),r.parentNode&&(n&&ae(r)&&xe(be(r,"script")),r.parentNode.removeChild(r));return e}j.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),l=ae(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||j.isXMLDoc(e)))for(a=be(s),r=0,o=(i=be(e)).length;r<o;r++)Ne(i[r],a[r]);if(t)if(n)for(i=i||be(e),a=a||be(s),r=0,o=i.length;r<o;r++)ze(i[r],a[r]);else ze(e,s);return(a=be(s,"script")).length>0&&xe(a,!l&&be(e,"script")),s},cleanData:function(e){for(var t,n,r,o=j.event.special,i=0;void 0!==(n=e[i]);i++)if(Z(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)o[r]?j.event.remove(n,r):j.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),j.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return G(this,(function(e){return void 0===e?j.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Fe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ie(this,e).appendChild(e)}))},prepend:function(){return Fe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(j.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return j.clone(this,e,t)}))},html:function(e){return G(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=j.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(j.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,(function(t){var n=this.parentNode;j.inArray(this,e)<0&&(j.cleanData(be(this)),n&&n.replaceChild(t,this))}),e)}}),j.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){j.fn[e]=function(e){for(var n,r=[],o=j(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),j(o[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Ue=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),He=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ve=function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=i[o];return r},Ge=new RegExp(oe.join("|"),"i");function qe(e,t,n){var r,o,i,a,s=e.style;return(n=n||He(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ae(e)||(a=j.style(e,t)),!g.pixelBoxStyles()&&Ue.test(a)&&Ge.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),o=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),ie.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var r,o,i,a,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,j.extend(g,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,r,o;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),r=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",ie.appendChild(e).appendChild(t).appendChild(r),o=n.getComputedStyle(t),s=parseInt(o.height)>3,ie.removeChild(e)),s}}))}();var Ye=["Webkit","Moz","ms"],Xe=b.createElement("div").style,Ze={};function $e(e){return j.cssProps[e]||Ze[e]||(e in Xe?e:Ze[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ye.length;n--;)if((e=Ye[n]+t)in Xe)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Qe={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,o,i){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=j.css(e,n+oe[a],!0,o)),r?("content"===n&&(l-=j.css(e,"padding"+oe[a],!0,o)),"margin"!==n&&(l-=j.css(e,"border"+oe[a]+"Width",!0,o))):(l+=j.css(e,"padding"+oe[a],!0,o),"padding"!==n?l+=j.css(e,"border"+oe[a]+"Width",!0,o):s+=j.css(e,"border"+oe[a]+"Width",!0,o));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l}function rt(e,t,n){var r=He(e),o=(!g.boxSizingReliable()||n)&&"border-box"===j.css(e,"boxSizing",!1,r),i=o,a=qe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&C(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===j.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===j.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+nt(e,t,n||(o?"border":"content"),i,r,a)+"px"}function ot(e,t,n,r,o){return new ot.prototype.init(e,t,n,r,o)}j.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=X(t),l=Je.test(t),c=e.style;if(l||(t=$e(s)),a=j.cssHooks[t]||j.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:c[t];"string"==(i=typeof n)&&(o=re.exec(n))&&o[1]&&(n=ce(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=o&&o[3]||(j.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var o,i,a,s=X(t);return Je.test(t)||(t=$e(s)),(a=j.cssHooks[t]||j.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=qe(e,t,r)),"normal"===o&&t in et&&(o=et[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),j.each(["height","width"],(function(e,t){j.cssHooks[t]={get:function(e,n,r){if(n)return!Ke.test(j.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):Ve(e,Qe,(function(){return rt(e,t,r)}))},set:function(e,n,r){var o,i=He(e),a=!g.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===j.css(e,"boxSizing",!1,i),l=r?nt(e,t,r,s,i):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-nt(e,t,"border",!1,i)-.5)),l&&(o=re.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=j.css(e,t)),tt(0,n,l)}}})),j.cssHooks.marginLeft=We(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),j.each({margin:"",padding:"",border:"Width"},(function(e,t){j.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+oe[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(j.cssHooks[e+t].set=tt)})),j.fn.extend({css:function(e,t){return G(this,(function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=He(e),o=t.length;a<o;a++)i[t[a]]=j.css(e,t[a],!1,r);return i}return void 0!==n?j.style(e,t,n):j.css(e,t)}),e,t,arguments.length>1)}}),j.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||j.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(j.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=j.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=j.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){j.fx.step[e.prop]?j.fx.step[e.prop](e):1!==e.elem.nodeType||!j.cssHooks[e.prop]&&null==e.elem.style[$e(e.prop)]?e.elem[e.prop]=e.now:j.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},j.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},j.fx=ot.prototype.init,j.fx.step={};var it,at,st=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function ct(){at&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ct):n.setTimeout(ct,j.fx.interval),j.fx.tick())}function ut(){return n.setTimeout((function(){it=void 0})),it=Date.now()}function dt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=oe[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ft(e,t,n){for(var r,o=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function ht(e,t,n){var r,o,i=0,a=ht.prefilters.length,s=j.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var t=it||ut(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:j.extend({},t),opts:j.extend(!0,{specialEasing:{},easing:j.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=j.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=X(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=j.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(u,c.opts.specialEasing);i<a;i++)if(r=ht.prefilters[i].call(c,e,u,c.opts))return v(r.stop)&&(j._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return j.map(u,ft,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),j.fx.timer(j.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}j.Animation=j.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(z);for(var n,r=0,o=e.length;r<o;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,l,c,u,d="width"in t||"height"in t,f=this,h={},p=e.style,m=e.nodeType&&le(e),g=K.get(e,"fxshow");for(r in n.queue||(null==(a=j._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,j.queue(e,"fx").length||a.empty.fire()}))}))),t)if(o=t[r],st.test(o)){if(delete t[r],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[r])continue;m=!0}h[r]=g&&g[r]||j.style(e,r)}if((l=!j.isEmptyObject(t))||!j.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=K.get(e,"display")),"none"===(u=j.css(e,"display"))&&(c?u=c:(fe([e],!0),c=e.style.display||c,u=j.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===j.css(e,"float")&&(l||(f.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,h)l||(g?"hidden"in g&&(m=g.hidden):g=K.access(e,"fxshow",{display:c}),i&&(g.hidden=!m),m&&fe([e],!0),f.done((function(){for(r in m||fe([e]),K.remove(e,"fxshow"),h)j.style(e,r,h[r])}))),l=ft(m?g[r]:0,r,f),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),j.speed=function(e,t,n){var r=e&&"object"==typeof e?j.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return j.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in j.fx.speeds?r.duration=j.fx.speeds[r.duration]:r.duration=j.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&j.dequeue(this,r.queue)},r},j.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=j.isEmptyObject(e),i=j.speed(t,n,r),a=function(){var t=ht(this,j.extend({},e),i);(o||K.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",i=j.timers,a=K.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&lt.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||j.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=K.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=j.timers,a=r?r.length:0;for(n.finish=!0,j.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),j.each(["toggle","show","hide"],(function(e,t){var n=j.fn[t];j.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,r,o)}})),j.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){j.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),j.timers=[],j.fx.tick=function(){var e,t=0,n=j.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||j.fx.stop(),it=void 0},j.fx.timer=function(e){j.timers.push(e),j.fx.start()},j.fx.interval=13,j.fx.start=function(){at||(at=!0,ct())},j.fx.stop=function(){at=null},j.fx.speeds={slow:600,fast:200,_default:400},j.fn.delay=function(e,t){return e=j.fx&&j.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var pt,mt=j.expr.attrHandle;j.fn.extend({attr:function(e,t){return G(this,j.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){j.removeAttr(this,e)}))}}),j.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?j.prop(e,t,n):(1===i&&j.isXMLDoc(e)||(o=j.attrHooks[t.toLowerCase()]||(j.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void j.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=j.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(z);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?j.removeAttr(e,n):e.setAttribute(n,n),n}},j.each(j.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||j.find.attr;mt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=mt[a],mt[a]=o,o=null!=n(e,t,r)?a:null,mt[a]=i),o}}));var gt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function yt(e){return(e.match(z)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}j.fn.extend({prop:function(e,t){return G(this,j.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[j.propFix[e]||e]}))}}),j.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&j.isXMLDoc(e)||(t=j.propFix[t]||t,o=j.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=j.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(j.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),j.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){j.propFix[this.toLowerCase()]=this})),j.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,l=0;if(v(e))return this.each((function(t){j(this).addClass(e.call(this,t,bt(this)))}));if((t=xt(e)).length)for(;n=this[l++];)if(o=bt(n),r=1===n.nodeType&&" "+yt(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=yt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,l=0;if(v(e))return this.each((function(t){j(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)for(;n=this[l++];)if(o=bt(n),r=1===n.nodeType&&" "+yt(o)+" "){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(s=yt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):v(e)?this.each((function(n){j(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,o,i,a;if(r)for(o=0,i=j(this),a=xt(e);t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(bt(n))+" ").indexOf(t)>-1)return!0;return!1}});var _t=/\r/g;j.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=v(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,j(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=j.map(o,(function(e){return null==e?"":e+""}))),(t=j.valHooks[this.type]||j.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=j.valHooks[o.type]||j.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(_t,""):null==n?"":n:void 0}}),j.extend({valHooks:{option:{get:function(e){var t=j.find.attr(e,"value");return null!=t?t:yt(j.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?i+1:o.length;for(r=i<0?l:a?i:0;r<l;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(t=j(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=j.makeArray(t),a=o.length;a--;)((r=o[a]).selected=j.inArray(j.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),j.each(["radio","checkbox"],(function(){j.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=j.inArray(j(e).val(),t)>-1}},g.checkOn||(j.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in n;var wt=/^(?:focusinfocus|focusoutblur)$/,jt=function(e){e.stopPropagation()};j.extend(j.event,{trigger:function(e,t,r,o){var i,a,s,l,c,u,d,f,p=[r||b],m=h.call(e,"type")?e.type:e,g=h.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!wt.test(m+j.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[j.expando]?e:new j.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:j.makeArray(t,[e]),d=j.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(r,t))){if(!o&&!d.noBubble&&!y(r)){for(l=d.delegateType||m,wt.test(l+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||n)}for(i=0;(a=p[i++])&&!e.isPropagationStopped();)f=a,e.type=i>1?l:d.bindType||m,(u=(K.get(a,"events")||Object.create(null))[e.type]&&K.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&Z(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!Z(r)||c&&v(r[m])&&!y(r)&&((s=r[c])&&(r[c]=null),j.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,jt),r[m](),e.isPropagationStopped()&&f.removeEventListener(m,jt),j.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,n){var r=j.extend(new j.Event,n,{type:e,isSimulated:!0});j.event.trigger(r,null,t)}}),j.fn.extend({trigger:function(e,t){return this.each((function(){j.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return j.event.trigger(e,t,n,!0)}}),g.focusin||j.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){j.event.simulate(t,e.target,j.event.fix(e))};j.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=K.access(r,t);o||r.addEventListener(e,n,!0),K.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=K.access(r,t)-1;o?K.access(r,t,o):(r.removeEventListener(e,n,!0),K.remove(r,t))}}}));var kt=n.location,Tt={guid:Date.now()},At=/\?/;j.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||j.error("Invalid XML: "+e),t};var Mt=/\[\]$/,St=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,n,r){var o;if(Array.isArray(t))j.each(t,(function(t,o){n||Mt.test(e)?r(e,o):Lt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==w(t))r(e,t);else for(o in t)Lt(e+"["+o+"]",t[o],n,r)}j.param=function(e,t){var n,r=[],o=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!j.isPlainObject(e))j.each(e,(function(){o(this.name,this.value)}));else for(n in e)Lt(n,e[n],t,o);return r.join("&")},j.fn.extend({serialize:function(){return j.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=j.prop(this,"elements");return e?j.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!j(this).is(":disabled")&&Et.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=j(this).val();return null==n?null:Array.isArray(n)?j.map(n,(function(e){return{name:t.name,value:e.replace(St,"\r\n")}})):{name:t.name,value:n.replace(St,"\r\n")}})).get()}});var Ot=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Dt=/^(?:GET|HEAD)$/,zt=/^\/\//,Nt={},Ft={},Bt="*/".concat("*"),Ut=b.createElement("a");function Ht(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(z)||[];if(v(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Vt(e,t,n,r){var o={},i=e===Ft;function a(s){var l;return o[s]=!0,j.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||i||o[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Gt(e,t){var n,r,o=j.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&j.extend(!0,e,r),e}Ut.href=kt.href,j.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":j.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,j.ajaxSettings),t):Gt(j.ajaxSettings,e)},ajaxPrefilter:Ht(Nt),ajaxTransport:Ht(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,a,s,l,c,u,d,f,h=j.ajaxSetup({},t),p=h.context||h,m=h.context&&(p.nodeType||p.jquery)?j(p):j.event,g=j.Deferred(),v=j.Callbacks("once memory"),y=h.statusCode||{},x={},_={},w="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Pt.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||w;return r&&r.abort(t),T(0,t),this}};if(g.promise(k),h.url=((e||h.url||kt.href)+"").replace(zt,kt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(z)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Ut.protocol+"//"+Ut.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=j.param(h.data,h.traditional)),Vt(Nt,h,t,k),c)return k;for(d in(u=j.event&&h.global)&&0==j.active++&&j.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Dt.test(h.type),o=h.url.replace(Rt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ot,"+")):(f=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(At.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(It,"$1"),f=(At.test(o)?"&":"?")+"_="+Tt.guid+++f),h.url=o+f),h.ifModified&&(j.lastModified[o]&&k.setRequestHeader("If-Modified-Since",j.lastModified[o]),j.etag[o]&&k.setRequestHeader("If-None-Match",j.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Bt+"; q=0.01":""):h.accepts["*"]),h.headers)k.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(p,k,h)||c))return k.abort();if(w="abort",v.add(h.complete),k.done(h.success),k.fail(h.error),r=Vt(Ft,h,t,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,h]),c)return k;h.async&&h.timeout>0&&(s=n.setTimeout((function(){k.abort("timeout")}),h.timeout));try{c=!1,r.send(x,T)}catch(e){if(c)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,a,l){var d,f,b,x,_,w=t;c||(c=!0,s&&n.clearTimeout(s),r=void 0,i=l||"",k.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var r,o,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in n)i=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]}(h,k,a)),!d&&j.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),x=function(e,t,n,r){var o,i,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(o in c)if((s=o.split(" "))[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(h,x,k,d),d?(h.ifModified&&((_=k.getResponseHeader("Last-Modified"))&&(j.lastModified[o]=_),(_=k.getResponseHeader("etag"))&&(j.etag[o]=_)),204===e||"HEAD"===h.type?w="nocontent":304===e?w="notmodified":(w=x.state,f=x.data,d=!(b=x.error))):(b=w,!e&&w||(w="error",e<0&&(e=0))),k.status=e,k.statusText=(t||w)+"",d?g.resolveWith(p,[f,w,k]):g.rejectWith(p,[k,w,b]),k.statusCode(y),y=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,h,d?f:b]),v.fireWith(p,[k,w]),u&&(m.trigger("ajaxComplete",[k,h]),--j.active||j.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return j.get(e,t,n,"json")},getScript:function(e,t){return j.get(e,void 0,t,"script")}}),j.each(["get","post"],(function(e,t){j[t]=function(e,n,r,o){return v(n)&&(o=o||r,r=n,n=void 0),j.ajax(j.extend({url:e,type:t,dataType:o,data:n,success:r},j.isPlainObject(e)&&e))}})),j.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),j._evalUrl=function(e,t,n){return j.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){j.globalEval(e,t,n)}})},j.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=j(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){j(this).wrapInner(e.call(this,t))})):this.each((function(){var t=j(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){j(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){j(this).replaceWith(this.childNodes)})),this}}),j.expr.pseudos.hidden=function(e){return!j.expr.pseudos.visible(e)},j.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},j.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var qt={0:200,1223:204},Wt=j.ajaxSettings.xhr();g.cors=!!Wt&&"withCredentials"in Wt,g.ajax=Wt=!!Wt,j.ajaxTransport((function(e){var t,r;if(g.cors||Wt&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),j.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),j.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return j.globalEval(e),e}}}),j.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),j.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=j("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Yt,Xt=[],Zt=/(=)\?(?=&|$)|\?\?/;j.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||j.expando+"_"+Tt.guid++;return this[e]=!0,e}}),j.ajaxPrefilter("json jsonp",(function(e,t,r){var o,i,a,s=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Zt,"$1"+o):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||j.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=n[o],n[o]=function(){a=arguments},r.always((function(){void 0===i?j(n).removeProp(o):n[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(o)),a&&v(i)&&i(a[0]),a=i=void 0})),"script"})),g.createHTMLDocument=((Yt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Yt.childNodes.length),j.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),i=!n&&[],(o=E.exec(e))?[t.createElement(o[1])]:(o=we([e],t,i),i&&i.length&&j(i).remove(),j.merge([],o.childNodes)));var r,o,i},j.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=yt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&j.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){i=arguments,a.html(r?j("<div>").append(j.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},j.expr.pseudos.animated=function(e){return j.grep(j.timers,(function(t){return e===t.elem})).length},j.offset={setOffset:function(e,t,n){var r,o,i,a,s,l,c=j.css(e,"position"),u=j(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),i=j.css(e,"top"),l=j.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(a=(r=u.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(l)||0),v(t)&&(t=t.call(e,n,j.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},j.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){j.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===j.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===j.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=j(e).offset()).top+=j.css(e,"borderTopWidth",!0),o.left+=j.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-j.css(r,"marginTop",!0),left:t.left-o.left-j.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===j.css(e,"position");)e=e.offsetParent;return e||ie}))}}),j.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;j.fn[e]=function(r){return G(this,(function(e,r,o){var i;if(y(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o}),e,r,arguments.length)}})),j.each(["top","left"],(function(e,t){j.cssHooks[t]=We(g.pixelPosition,(function(e,n){if(n)return n=qe(e,t),Ue.test(n)?j(e).position()[t]+"px":n}))})),j.each({Height:"height",Width:"width"},(function(e,t){j.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){j.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return G(this,(function(t,n,o){var i;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?j.css(t,n,s):j.style(t,n,o,s)}),t,a?o:void 0,a)}}))})),j.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){j.fn[t]=function(e){return this.on(t,e)}})),j.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),j.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){j.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var $t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;j.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||j.guid++,o},j.holdReady=function(e){e?j.readyWait++:j.ready(!0)},j.isArray=Array.isArray,j.parseJSON=JSON.parse,j.nodeName=C,j.isFunction=v,j.isWindow=y,j.camelCase=X,j.type=w,j.now=Date.now,j.isNumeric=function(e){var t=j.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},j.trim=function(e){return null==e?"":(e+"").replace($t,"")},void 0===(r=function(){return j}.apply(t,[]))||(e.exports=r);var Kt=n.jQuery,Jt=n.$;return j.noConflict=function(e){return n.$===j&&(n.$=Jt),e&&n.jQuery===j&&(n.jQuery=Kt),j},void 0===o&&(n.jQuery=n.$=j),j}))},292:function(e,t){(function(){var e;void 0!==(e=this).Splunk&&e.Splunk||(e.Splunk={}),e.Splunk.namespace=function(e){for(var t=e.split("."),n=Splunk,r="Splunk"==t[0]?1:0;r<t.length;r+=1)n[t[r]]=n[t[r]]||{},n=n[t[r]];return n}}).call(window)},293:function(e,t){e.exports=function(){var e=/%%|%(\d+\$)?(\([^)]+\))?([-+#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g,t=arguments,n=0,r=t[n++],o=function(e,t,n,r){var o=e.length>=t?"":Array(1+t-e.length>>>0).join(n);return r?e+o:o+e},i=function(e,t,n,r,i){var a=r-e.length;return a>0&&(e=n||!i?o(e,r," ",n):e.slice(0,t.length)+o("",a,"0",!0)+e.slice(t.length)),e},a=function(e,t,n,r,a,s,l){var c=e>>>0;return e=(n=n&&c&&{2:"0b",8:"0",16:"0x"}[t]||"")+o(c.toString(t),s||0,"0",!1),i(e,n,r,a,l)},s=function(e,t,n,r,o){return null!=r&&(e=e.slice(0,r)),i(e,"",t,n,o)},l=function(e,r,l,c,u,d,f,h){if("%%"==e)return"%";for(var p=!1,m="",g=!1,v=!1,y=c.length,b=0;c&&b<y;b++)switch(c.charAt(b)){case" ":m=" ";break;case"+":m="+";break;case"-":p=!0;break;case"0":g=!0;break;case"#":v=!0}if((u=u?"*"==u?+t[n++]:"*"==u.charAt(0)?+t[u.slice(1,-1)]:+u:0)<0&&(u=-u,p=!0),!isFinite(u))throw new Error("sprintf: (minimum-)width must be finite");if(f=f?"*"==f?+t[n++]:"*"==f.charAt(0)?+t[f.slice(1,-1)]:+f:"fFeE".indexOf(h)>-1?6:"d"==h?0:void 0,l){l=l.substr(1,l.length-2);var x=t[1][l]}else x=r?t[r.slice(0,-1)]:t[n++];switch(h){case"s":return s(String(x),p,u,f,g);case"c":return s(String.fromCharCode(+x),p,u,f,g);case"b":return a(x,2,v,p,u,f,g);case"o":return a(x,8,v,p,u,f,g);case"x":return a(x,16,v,p,u,f,g);case"X":return a(x,16,v,p,u,f,g).toUpperCase();case"u":return a(x,10,v,p,u,f,g);case"i":case"d":return x=(w=(_=parseInt(+x))<0?"-":m)+o(String(Math.abs(_)),f,"0",!1),i(x,w,p,u,g);case"e":case"E":case"f":case"F":case"g":case"G":var _,w=(_=+x)<0?"-":m,j=["toExponential","toFixed","toPrecision"]["efg".indexOf(h.toLowerCase())],k=["toString","toUpperCase"]["eEfFgG".indexOf(h)%2];return x=w+Math.abs(_)[j](f),i(x,w,p,u,g)[k]();default:return e}};return r.replace(e,l)}},294:function(e,t,n){var r=n("shim/jquery");(function(){!function(e){if(Splunk.namespace("util"),Splunk.util={logger:{info:function(){},log:function(){},debug:function(){},warn:function(){},error:function(){}},propToQueryString:function(e){var t,n=[];for(var r in e)Array.isArray(e[r])?e[r].forEach((function(e){n.push(encodeURIComponent(r)+"="+encodeURIComponent(e))})):(t=e[r],n.push(encodeURIComponent(r)+"="+encodeURIComponent(t)));return n.join("&")},queryStringToProp:function(e){if(!(e=this.trim(e,"&?#"))||0==e.length)return{};for(var t,n,r,o=e.split("&"),i={},a=0;a<o.length;a++){r=o[a].split("=");try{t=decodeURIComponent(r.shift()),n=decodeURIComponent(r.join("=").replace(/\+/g," "))}catch(e){continue}if(i.hasOwnProperty(t))if(Array.isArray(i[t]))i[t].push(n);else{var s=[];s.push(i[t]),s.push(n),i[t]=s}else i[t]=n}return i},getHash:function(){var e=window.location.href.indexOf("#");if(-1==e)return"";var t=window.location.href.indexOf("?",e);return-1!=t?window.location.href.substr(t):window.location.href.substr(e)},parseDate:function(e,t){if(!e||!e.indexOf||0==e.indexOf("mm"))return null;var n=0,r=-1,o=0,i=e.split(/\W+/),a=t.match(/%./g),s=0,l=0,c=0,u=0;for(s=0;s<i.length;++s)if(i[s])switch(a[s]){case"%d":o=parseInt(i[s],10);break;case"%m":r=parseInt(i[s],10)-1;break;case"%Y":case"%y":(n=parseInt(i[s],10))<100&&(n+=n>29?1900:2e3);break;case"%H":l=parseInt(i[s],10);break;case"%M":c=parseInt(i[s],10);break;case"%S":u=parseInt(i[s],10)}return 0!=n&&-1!=r&&0!=o&&new Date(n,r,o,l,c,u)},getTimezoneOffsetDelta:function(e,t){return Splunk.util.isInt(e)?1e3*((e*=-60)-60*t.getTimezoneOffset()):0},getEpochTimeFromISO:function(e){this._isoTimeRegex||(this._isoTimeRegex=/([\+\-])?(\d{4,})(?:(?:\-(\d{2}))(?:(?:\-(\d{2}))(?:(?:[T ](\d{2}))(?:(?:\:(\d{2}))(?:(?:\:(\d{2}(?:\.\d+)?)))?)?(?:(Z)|([\+\-])(\d{2})[:]*(\d{2})?)?)?)?)?/);var t,r,o=this._isoTimeRegex.exec(e);o[7]?(t=o[7].substring(0,2),r=o[7].substring(2)):r="";var i=o[9]+(60*o[10]+parseInt(o[11]||0,10)),a=n("%s/%s/%s %s:%s:%s",o[3],o[4],o[2],o[5],o[6],t),s=new Date(a);return s.setTime(s.getTime()+this.getTimezoneOffsetDelta(i,s)),s.getTime()/1e3+r},getConfigValue:function(e,t){if(window.$C&&window.$C.hasOwnProperty(e))return window.$C[e];if("FORM_KEY"===e)return this.getFormKey();if(void 0!==t)return t;throw new Error("getConfigValue - "+e+" not set, no default provided")},getCookie:function(e){var t=null;if(document.cookie&&""!=document.cookie)for(var n=document.cookie.split(";"),o=0;o<n.length;o++){var i=r.trim(n[o]);if(i.substring(0,e.length+1)==e+"="){t=decodeURIComponent(i.substring(e.length+1));break}}return t},deleteCookie:function(e){var t=new Date;t.setTime(t.getTime()+-864e5),t.toUTCString(),document.cookie=n("%s=;expires=%s;path=/",e,t)},getFormKey:function(){var e="splunkweb_csrf_token_"+Splunk.util.getConfigValue("MRSPARKLE_PORT_NUMBER","");return Splunk.util.getCookie(e)||""},loginCheck:function(){return Splunk.util.getCookie("login")},getPlatform:function(){return window.navigator.platform},isWindowsPlatform:function(){return!!this.getPlatform()&&this.getPlatform().toLocaleLowerCase().indexOf("win")>=0},isLinuxPlatform:function(){return!!this.getPlatform()&&this.getPlatform().toLocaleLowerCase().indexOf("linux")>=0},isMacPlatform:function(){return!!this.getPlatform()&&this.getPlatform().toLocaleLowerCase().indexOf("mac")>=0},make_url:function(){for(var e,t,n="",r=0,o=arguments.length;r<o;r++)(t=(e=arguments[r].toString()).length)>1&&"/"==e.charAt(t-1)&&(e=e.substring(0,t-1)),"/"!=e.charAt(0)?n+="/"+e:n+=e;if("/"!=n){var i=n.split("/"),a=i[1];if("static"==a||"modules"==a){var s=n.substring(a.length+2,n.length);n="/"+a+"/@"+window.$C.BUILD_NUMBER,window.$C.BUILD_PUSH_NUMBER&&(n+="."+window.$C.BUILD_PUSH_NUMBER),"app"==i[2]&&(n+=":"+this.getConfigValue("APP_BUILD",0)),n+="/"+s}}var l=Splunk.util.getConfigValue("MRSPARKLE_ROOT_PATH","/"),c=Splunk.util.getConfigValue("LOCALE","en-US"),u="/"+c+n;return""==l||"/"==l?u:l+u},make_full_url:function(e,t){return e=this.make_url(e),t&&(e=e+"?"+this.propToQueryString(t)),e},redirect_to:function(e,t,n,r){e=this.make_full_url(e,t),n||(n=window),n.document.location=e,r&&n.focus&&n.focus()},getCurrentApp:function(){return r(document.body).attr("s:app")||"UNKNOWN_APP"},getCurrentView:function(){return r(document.body).attr("s:view")||"UNKNOWN_VIEW"},getCurrentDisplayView:function(){return r(document.body).attr("s:displayview")||this.getCurrentView()},getAutoCancelInterval:function(){var e=r(document.body).attr("s:autoCancelInterval");return e||(this.logger.error("no autoCancelInterval found. Returning 0"),e=0),e},getCurrentViewConfig:function(){return r.extend({},Splunk.ViewConfig)},getPath:function(e){void 0===e&&(e=document.location.pathname);var t=this.getConfigValue("LOCALE").toString();if(!this.getConfigValue("LOCALE")||-1==e.indexOf(t))return e;var n=t.length+e.indexOf(t);return e.slice(n)},getCumlativeOffsetTop:function(e){return e?e.offsetTop+this.getCumlativeOffsetTop(e.offsetParent):0},getCumlativeOffsetLeft:function(e){return e?e.offsetLeft+this.getCumlativeOffsetLeft(e.offsetParent):0},getPageYOffset:function(){var e=0;return window.pageYOffset?e=window.pageYOffset:document.documentElement&&document.documentElement.scrollTop&&(e=document.documentElement.scrollTop),e},getWindowDimensions:function(){return{width:isNaN(window.innerWidth)?document.documentElement.clientWidth||0:window.innerWidth,height:isNaN(window.innerHeight)?document.documentElement.clientHeight||0:window.innerHeight}},getComputedStyleHelper:function(e,t){if(e.currentStyle)return e.currentStyle[t];if(window.getComputedStyle){var n=t.replace(/([A-Z])/g,"-$1").toLowerCase();return window.getComputedStyle(e,"").getPropertyValue(n)}return""},getParameter:function(e,t){return(t=t||window.location.search)&&t.indexOf(e+"=")+1?t.split(e+"=")[1].split("&")[0]:null},getHEX:function(e){var t=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),n=(t[1]<<16|t[2]<<8|t[3]).toString(16);return"#"+Array(6-n.length).concat([n]).toString().replace(/,/g,0)},normalizeColor:function(e){if(normalizedColor=null,"#"===e.charAt(0))4===e.length?normalizedColor=e+e.charAt(1)+e.charAt(2)+e.charAt(3):normalizedColor=e;else try{normalizedColor=this.getHEX(e)}catch(e){}return normalizedColor},validateCronString:function(e){return!!/^((0*([0-9]|[1-5][0-9])|\*)(-0*([0-9]|[1-5][0-9]))?(\/\d+)?,)*(0*([0-9]|[1-5][0-9])|\*)(-0*([0-9]|[1-5][0-9]))?(\/\d+)?\s((0*([0-9]|1[0-9]|2[0-3])|\*)(-0*([0-9]|1[0-9]|2[0-3]))?(\/\d+)?,)*(0*([0-9]|1[0-9]|2[0-3])|\*)(-0*([0-9]|1[0-9]|2[0-3]))?(\/\d+)?\s((0*([1-9]|[1-2][0-9]|3[0-1])|\*)(-0*([1-9]|[1-2][0-9]|3[0-1]))?(\/\d+)?,)*(0*([1-9]|[1-2][0-9]|3[0-1])|\*)(-0*([1-9]|[1-2][0-9]|3[0-1]))?(\/\d+)?\s((0*([1-9]|1[0-2])|\*)(-0*([1-9]|1[0-2]))?(\/\d+)?,)*(0*([1-9]|1[0-2])|\*)(-0*([1-9]|1[0-2]))?(\/\d+)?\s((0*[0-7]|\*)(-0*[0-7])?(\/\d+)?,)*(0*[0-7]|\*)(-0*[0-7])?(\/\d+)?$/.test(e)},turboInnerHTML:function(e,t){
/* @cc_on //innerHTML is faster for IE
target.innerHTML = innerHTML;
return target;
@ */
var n=e.cloneNode(!1);return n.innerHTML=t,e.parentNode.replaceChild(n,e),n},normalizeBoolean:function(e,t){switch("string"==typeof e&&(e=e.toLowerCase()),e){case!0:case 1:case"1":case"yes":case"on":case"true":return!0;case!1:case 0:case"0":case"no":case"off":case"false":return!1;default:if(t)throw TypeError("Unable to cast value into boolean: "+e);return e}},getCommaFormattedNumber:function(e){for(var t=(e+="").split("."),n=t[0],r=t.length>1?"."+t[1]:"",o=/(\d+)(\d{3})/;o.test(n);)n=n.replace(o,"$1,$2");return n+r},reLTrim:/^[\s\t\r\n]+/,reLTrimCommand:/^[\s\t\r\n\|]+/,reRNormalize:/[\s\t\r\n]+$/,addLeadingSearchCommand:function(e,t){var n=""+e;return"|"==(n=n.replace(this.reLTrim,"").replace(this.reRNormalize," ")).substring(0,1)||!t&&"search "==n.substring(0,7)&&n.length>7?e:"search "+n},stripLeadingSearchCommand:function(e){var t=""+e;return"search "==(t=t.replace(this.reLTrimCommand,"")).substring(0,7)?t.substring(7).replace(this.reLTrimCommand,""):e},stringToFieldList:function(e){if("string"!=typeof e||!e)return[];for(var t=[],n=[],o=!1,i=r.trim(e),a=0,s=i.length;a<s;a++)if("\\"!=i.charAt(a))if('"'!=i.charAt(a))" "!=i.charAt(a)&&","!=i.charAt(a)||o?n.push(i.charAt(a)):(n.length>0&&t.push(n.join("")),n=[]);else{if(o){o=!1,t.push(n.join("")),n=[];continue}o=!0}else{var l=a+1;if(s>l&&("\\"==i.charAt(l)||'"'==i.charAt(l))){n.push(i.charAt(l)),a++;continue}n.push(i.charAt(a))}return n.length>0&&t.push(n.join("")),t},_sflQuotable:/([\\",\s])/,_sflEscapable:/([\\"])/g,fieldListToString:function(e){if(!e)return"";for(var t=[],n=0,o=e.length;n<o;n++){var i=r.trim(e[n]);""!=i&&(i.search(this._sflEscapable)>-1&&(i=i.replace(this._sflEscapable,"\\$1")),i.search(this._sflQuotable)>-1&&(i=['"',i,'"'].join("")),t.push(i))}return t.join(",")},searchEscape:function(e,t={}){return t.rexEscape||e.match(/[\s\,=|\[\]\"]/)?`"${e.replace(/(\"|\\)/g,"\\$1")}"`:t.forceQuotes?`"${e}"`:e},searchUnescape:function(e){return'"'!==e[0]||'"'!==e[e.length-1]?e:e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")},objectSimilarity:function(e,t){if(e instanceof Array&&t instanceof Array){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!this.objectSimilarity(e[n],t[n]))return!1}else if(e instanceof Object&&t instanceof Object){if(e!=t){for(var r in t)if(!e.hasOwnProperty(r))return!1;for(var o in e)if(e.hasOwnProperty(o)){if(!t.hasOwnProperty(o))return!1;if(!this.objectSimilarity(e[o],t[o]))return!1}}}else if("function"==typeof e&&"function"==typeof t){if(e.toString()!==t.toString())return!1}else if(e!==t)return!1;return!0},StopWatch:function(){var e=this,t=null,n=null,r=[],o=function(e){return null!=e},a=function(){return o(t)},s=function(){return o(n)},l=function(){t=null,n=null};e.start=function(){if(a())throw new Error("cannot call start, start already invoked.");t=new Date},e.stop=function(){if(!a())throw new Error("cannot call stop, start not invoked.");if(s())throw new Error("cannot call stop, stop already invoked.");n=new Date,time=n-t,r.push(time)},e.pause=function(){if(!a())throw new Error("cannot call pause, start not invoked.");if(s())throw new Error("cannot call pause, stop already invoked.");e.stop(),l()},e.reset=function(){l(),r=[]},e.time=function(){var e=0;for(i=0;i<r.length;i++)e+=r[i];return a()&&!s()&&(e+=new Date-t),e/1e3}},isInt:function(e){return""!==e&&!isNaN(parseInt(e,10))&&parseInt(e,10)==e/1},smartTrim:function(e,t){if(!e)return e;if(t<1)return e;if(e.length<=t)return e;if(1==t)return e.substring(0,1)+"...";var n=Math.ceil(e.length/2),r=e.length-t,o=Math.ceil(r/2),i=r-o;return e.substring(0,n-o)+"..."+e.substring(n+i)},_tokenDiscoverer:/\$([^$]+)\$/g,discoverReplacementTokens:function(e){var t,n=[],r=Splunk.util._tokenDiscoverer;if("string"==typeof e){if(e.match(r)){t=e.match(r);for(var o=0;o<t.length;o++)t[o]=t[o].substring(1,t[o].length-1);return t}return[]}if("function"==typeof e)return[];for(var i in e){t=[],t=Splunk.util.discoverReplacementTokens(e[i]);for(var a=i.match(r)||[],s=0;s<a.length;s++)t.push(a[s].substring(1,a[s].length-1));for(var l=0;l<t.length;l++)-1==n.indexOf(t[l])&&n.push(t[l])}return n},replaceTokens:function(e,t,n){if("string"==typeof e)return e.match(t)&&(e=e.replace(t,n)),e;if("function"==typeof e)return e;var r={};for(var o in e)"object"==typeof e[o]?Splunk.util.replaceTokens(e[o],t,n):"string"==typeof e[o]&&e[o].match(t)&&(e[o]=e[o].replace(t,n)),o.match(t)&&(r[o]=o.replace(t,n));for(var i in r)e[r[i]]=e[i],delete e[i];return e},getServerTimezoneOffset:function(){return Splunk.util.getConfigValue("SERVER_TIMEZONE_OFFSET")},moduleLoadStates:{WAITING_FOR_INITIALIZATION:1,WAITING_FOR_HIERARCHY:2,WAITING_FOR_CONTEXT:6,HAS_CONTEXT:7},getRetryInterval:function(e,t,n,r){return e>=r?parseFloat(n):Math.min(n*Math.pow(e/parseFloat(r),3)+t,n)},escapeHtml:function(e){return(""+e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},escapeBackslash:function(e){return(""+e).replace(/\\/g,"\\\\")},escapeQuotes:function(e){return(""+e).replace('"','\\"')},escapeRegex:function(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},escapeSelector:function(e){return(""+e).replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1")},trimToAlphaNumeric:function(e){return(""+e).replace(/([\s;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=<>`\/\|\\])/g,"")},trim:function(e,t){return t?e.replace(new RegExp("^[\\s"+t+"]+"),"").replace(new RegExp("[\\s"+t+"]+$"),""):e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},lowerTrimStr:function(e,t){return e?this.trim(e).toLowerCase():t||e},focusFirstField:function(e){var t=r(":input:visible:enabled:first",e),n=r("select:visible:enabled:first",e);t.is(":button")&&t.hasClass("splButton-secondary")&&r(":input:button.splButton-primary:first",e).length&&(t=r(":input:button.splButton-primary:first",e));var o=!!t.length&&t.offset().top,i=!!n.length&&n.offset().top,a=t;o&&i&&i<o&&(a=n),a.focus(),a.is(":focus")||setTimeout((function(){a.focus()}),10)},getWikiTransform:function(e){var t=Splunk.util.escapeHtml(e);return(t=(t=(t=t.replace(/\[(\!?)(\w+\:\/\/[^\s]+)\s+([^\]]+)\]/g,'<a href="$2" #~#$1#~#>$3</a>')).replace(/\[\[(\!?)([^\|]+)\|([^\]]+)\]\]/g,Splunk.util._generateInternalLink)).replace(/#~#!#~#/g,'target="_blank" rel="noopener noreferrer"')).replace(/\s*#~##~#/g,"")},_generateInternalLink:function(e,t,n,r){return'<a href="'+(n=Splunk.util.make_url(n))+'"#~#'+t+"#~#>"+r+"</a>"},findMatchIndices:function(e,t){for(var n=t.match(e),r=0,o=[],i=n.length,a=0;a<i;a++){var s=n[a];-1!=(r=t.indexOf(s,r))&&o.push({match:s,start:r,end:r+s.length-1}),r++}return o},isRainmakr:function(e,t){return!e&&t},isStackmakr:function(e,t){return e&&t},getIEVersion:function(){var e=navigator.userAgent.toLowerCase();return-1!=e.indexOf("msie")?parseInt(e.split("msie")[1],10):-1!=e.indexOf("trident")?parseInt(e.split(" rv:")[1],10):-1},restart_server:function(e){var t,n,o,i=!1,a=0,s=!1,l=!1,c=[],u=function(e){Splunk.Messenger.System.getInstance().send("error","restart_server",e),r(document).trigger("restart_failed")},d=function(){var t;l||(l=!0,alert(_("Restart successful - close this dialog to redirect back to login page")),t=e?n+this.make_full_url("/account/login",{return_to:e}):n+this.make_url("/"),window.location.href=t)}.bind(this),f=function(){s||(a++>=180?u(_("Timed out waiting for restart")):(r.ajax({type:"GET",dataType:"json",cache:!1,url:n+this.make_url("/api/config/UI_UNIX_START_TIME"),success:function(e){e.start_time>t&&(s=!0,clearTimeout(i),d())}}),i=setTimeout(f,2e3)))}.bind(this),h=function(){s=!0,clearTimeout(i),d()},p=function(){if(!s){var e=new Image;e.onload=h,e.src=n+this.make_url("/config/img?proto="+o+"&_="+Math.random()),e.alt=_("Restart check status"),c.push(e),i=setTimeout(p,2e3)}}.bind(this);r.post(this.make_url("/api/manager/control"),{operation:"restart_server"},function(e){if("OK"==e.status){t=e.start_time,"window"==e.ssl&&(e.ssl="https:"==window.location.protocol),o=e.ssl?"https":"http",n=(e.ssl?"https://":"http://")+window.location.hostname+(80==e.port||e.ssl&&443==e.port?"":":"+e.port),Splunk.Logger.mode.Default=Splunk.Logger.mode.None,Splunk.Messenger&&(Splunk.Messenger.System.getInstance().abortRequests=!0),Splunk.Session.getInstance().signalRestart(),a=0;var i=window.location.port||("http:"==window.location.protocol?80:443),s="https:"==window.location.protocol;if(!s&&e.ssl||e.ssl&&i!=e.port)return void r(document).trigger({type:"restart_ssl",sslBase:n});e.ssl!=s||i!=e.port?p():f()}else"PERMS"==e.status?u(_("Permission Denied - You are not authorized to restart the server")):"AUTH"==e.status?u(_("Restart failed")):"FAIL"==e.status?u(_("Restart failed: "+e.reason)):u(_("Restart failed"))}.bind(this),"json")},trackEvent:function(e){window._splunk_metrics_events&&"object"==typeof e&&window._splunk_metrics_events.push(e)},assemblePageInteractionData:function(e,t,n){return{type:"page.interact",data:{app:e,action:t,custom:n||{}}}},trackPageInteraction:function(e,t,n){try{this.trackEvent(this.assemblePageInteractionData(e,t,n))}catch(e){console.log("Error in trackPageInteration. Error: "+e)}},debounce:function(e,t){let n=null;return r=>{clearTimeout(n),n=setTimeout(()=>e(r),t)}},constructNewSearchQuery:function({isIndexFieldSelected:e,indexValueFromEvent:t}){if(e)return"*";const n=t||[];return n.length?`index="${n[0]}"`:""}},!Function.prototype.bind){var t=function(e){if(!e)return[];if(e.toArray)return e.toArray();for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n]);return t};Function.prototype.bind=function(){var e=this,n=t(arguments),r=n.shift();return function(){return e.apply(r,n.concat(t(arguments)))}}}String.prototype.repeat||(String.prototype.repeat=function(e){return new Array(e+1).join(this)}),String.prototype.reverse||(String.prototype.reverse=function(){return this.split("").reverse().join("")}),String.prototype.rsplit||(String.prototype.rsplit=function(e,t){var n=this.split(e);if(t&&n.length>t){for(var r=[],o=0;o<t;o++)r[o]=n[n.length-t+o];return r}return n}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){t||(t=0);for(var n=0;n<this.length;n++)if(this[n]===e)return n;return-1}),Array.prototype.extend||(Array.prototype.extend=function(e){for(var t=0;t<e.length;t++)this.push(e[t])});var n=e.sprintf=function(){var e=/%%|%(\d+\$)?(\([^)]+\))?([-+#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g,t=arguments,n=0,r=t[n];n++;var o=function(e,t,n,r){var o=e.length>=t?"":Array(1+t-e.length>>>0).join(n);return r?e+o:o+e},i=function(e,t,n,r,i){var a=r-e.length;return a>0&&(e=n||!i?o(e,r," ",n):e.slice(0,t.length)+o("",a,"0",!0)+e.slice(t.length)),e},a=function(e,t,n,r,a,s,l){var c=e>>>0;return e=(n=n&&c&&{2:"0b",8:"0",16:"0x"}[t]||"")+o(c.toString(t),s||0,"0",!1),i(e,n,r,a,l)},s=function(e,t,n,r,o){return null!=r&&(e=e.slice(0,r)),i(e,"",t,n,o)},l=function(e,r,l,c,u,d,f,h){if("%%"==e)return"%";for(var p,m,g,v=!1,y="",b=!1,x=!1,_=c.length,w=0;c&&w<_;w++)switch(c.charAt(w)){case" ":y=" ";break;case"+":y="+";break;case"-":v=!0;break;case"0":b=!0;break;case"#":x=!0}if(u?"*"==u?(u=+t[n],n++):u="*"==u.charAt(0)?+t[u.slice(1,-1)]:+u:u=0,u<0&&(u=-u,v=!0),!isFinite(u))throw new Error("sprintf: (minimum-)width must be finite");switch(f?"*"==f?(f=+t[n],n++):f="*"==f.charAt(0)?+t[f.slice(1,-1)]:+f:f="fFeE".indexOf(h)>-1?6:"d"==h?0:void 0,l?(l=l.substr(1,l.length-2),p=t[1].__getitem__?t[1].__getitem__(l):t[1][l]):r?p=t[r.slice(0,-1)]:(p=t[n],n++),h){case"s":return s(String(p),v,u,f,b);case"c":return s(String.fromCharCode(+p),v,u,f,b);case"b":return a(p,2,x,v,u,f,b);case"o":return a(p,8,x,v,u,f,b);case"x":return a(p,16,x,v,u,f,b);case"X":return a(p,16,x,v,u,f,b).toUpperCase();case"u":return a(p,10,x,v,u,f,b);case"i":case"d":return p=(g=(m=parseInt(+p,10))<0?"-":y)+o(String(Math.abs(m)),f,"0",!1),i(p,g,v,u,b);case"e":case"E":case"f":case"F":case"g":case"G":g=(m=+p)<0?"-":y;var j=["toExponential","toFixed","toPrecision"]["efg".indexOf(h.toLowerCase())],k=["toString","toUpperCase"]["eEfFgG".indexOf(h)%2];return p=g+Math.abs(m)[j](f),i(p,g,v,u,b)[k]();default:return e}};return r.replace(e,l)}}(this)}).call(window)},"api/SplunkVisualizationBase":function(e,t,n){var r,o;r=[n("require/underscore"),n("require/backbone")],void 0===(o=function(e,t){const n=function(e){this.name="SplunkVisualizationError",this.message=e||"",Error.apply(this,arguments)};n.prototype=new Error;const r=function(e,t,n,r){this.el=e,this._config=null,this._data=null,this._appName=t,this._vizName=n,this._dataSources=r||[],this.initialize()};return e.extend(r.prototype,t.Events,{initialize:function(){},getInitialDataParams:function(e){return{}},onConfigChange:function(e,t){this.invalidateFormatData()},combineData:function(e,t){if(this._dataSources.length>1)throw new Error("implement combineData to support multiple data sources");return e.primary||{}},formatData:function(e,t){return e},setupView:function(){},updateView:function(e,t,n){},onRefresh:function(){},reflow:function(){},remove:function(){},updateDataParams:function(e){this.trigger("updateDataParams",e)},drilldown:function(e,t){this.trigger("drilldown",e,t)},invalidateFormatData:function(){this.trigger("invalidateFormatData")},invalidateUpdateView:function(){this.trigger("invalidateUpdateView")},invalidateReflow:function(){this.trigger("invalidateReflow")},getCurrentData:function(){return this._data},getCurrentConfig:function(){return this._config},getPropertyNamespaceInfo:function(){return{appName:this._appName,vizName:this._vizName,propertyNamespace:"display.visualizations.custom."+this._appName+"."+this._vizName+"."}},setCurrentData:function(e){this._data=e},setCurrentConfig:function(e){this._config=e}}),e.extend(r,{extend:t.View.extend,COLUMN_MAJOR_OUTPUT_MODE:"json_cols",ROW_MAJOR_OUTPUT_MODE:"json_rows",RAW_OUTPUT_MODE:"json",FIELD_VALUE_DRILLDOWN:"fieldvalue",GEOSPATIAL_DRILLDOWN:"geoviz",SORT_ASCENDING:"asc",SORT_DESCENDING:"desc",VisualizationError:n}),r}.apply(t,r))||(e.exports=o)},"contrib/backbone":function(e,t,n){var r,o,i;i=this,r=[n("require/underscore"),n("shim/jquery"),t],void 0===(o=function(e,t,n){i.Backbone=function(e,t,n,r){var o=e.Backbone,i=[].slice;t.VERSION="1.1.2",t.$=r,t.noConflict=function(){return e.Backbone=o,this},t.emulateHTTP=!1,t.emulateJSON=!1;var a=t.Events={on:function(e,t,n){return l(this,"on",e,[t,n])&&t?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function(e,t,r){if(!l(this,"once",e,[t,r])||!t)return this;var o=this,i=n.once((function(){o.off(e,i),t.apply(this,arguments)}));return i._callback=t,this.on(e,i,r)},off:function(e,t,r){var o,i,a,s,c,u,d,f;if(!this._events||!l(this,"off",e,[t,r]))return this;if(!e&&!t&&!r)return this._events=void 0,this;for(c=0,u=(s=e?[e]:n.keys(this._events)).length;c<u;c++)if(e=s[c],a=this._events[e]){if(this._events[e]=o=[],t||r)for(d=0,f=a.length;d<f;d++)i=a[d],(t&&t!==i.callback&&t!==i.callback._callback||r&&r!==i.context)&&o.push(i);o.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=i.call(arguments,1);if(!l(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&c(n,t),r&&c(r,arguments),this},stopListening:function(e,t,r){var o=this._listeningTo;if(!o)return this;var i=!t&&!r;for(var a in r||"object"!=typeof t||(r=this),e&&((o={})[e._listenId]=e),o)(e=o[a]).off(t,r,this),(i||n.isEmpty(e._events))&&delete this._listeningTo[a];return this}},s=/\s+/,l=function(e,t,n,r){if(!n)return!0;if("object"==typeof n){for(var o in n)e[t].apply(e,[o,n[o]].concat(r));return!1}if(s.test(n)){for(var i=n.split(s),a=0,l=i.length;a<l;a++)e[t].apply(e,[i[a]].concat(r));return!1}return!0},c=function(e,t){var n,r=-1,o=e.length,i=t[0],a=t[1],s=t[2];switch(t.length){case 0:for(;++r<o;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<o;)(n=e[r]).callback.call(n.ctx,i);return;case 2:for(;++r<o;)(n=e[r]).callback.call(n.ctx,i,a);return;case 3:for(;++r<o;)(n=e[r]).callback.call(n.ctx,i,a,s);return;default:for(;++r<o;)(n=e[r]).callback.apply(n.ctx,t);return}};n.each({listenTo:"on",listenToOnce:"once"},(function(e,t){a[t]=function(t,r,o){return(this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=n.uniqueId("l"))]=t,o||"object"!=typeof r||(o=this),t[e](r,o,this),this}})),a.bind=a.on,a.unbind=a.off,n.extend(t,a);var u=t.Model=function(e,t){var r=e||{};t||(t={}),this.cid=n.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(r=this.parse(r,t)||{}),r=n.defaults({},r,n.result(this,"defaults")),this.set(r,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(u.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,r){var o,i,a,s,l,c,u,d;if(null==e)return this;if("object"==typeof e?(i=e,r=t):(i={})[e]=t,r||(r={}),!this._validate(i,r))return!1;for(o in a=r.unset,l=r.silent,s=[],c=this._changing,this._changing=!0,c||(this._previousAttributes=n.clone(this.attributes),this.changed={}),d=this.attributes,u=this._previousAttributes,this.idAttribute in i&&(this.id=i[this.idAttribute]),i)t=i[o],n.isEqual(d[o],t)||s.push(o),n.isEqual(u[o],t)?delete this.changed[o]:this.changed[o]=t,a?delete d[o]:d[o]=t;if(!l){s.length&&(this._pending=r);for(var f=0,h=s.length;f<h;f++)this.trigger("change:"+s[f],this,d[s[f]],r)}if(c)return this;if(!l)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t,r=!1,o=this._changing?this._previousAttributes:this.attributes;for(var i in e)n.isEqual(o[i],t=e[i])||((r||(r={}))[i]=t);return r},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=this,r=e.success;return e.success=function(n){if(!t.set(t.parse(n,e),e))return!1;r&&r(t,n,e),t.trigger("sync",t,n,e)},L(this,e),this.sync("read",this,e)},save:function(e,t,r){var o,i,a,s=this.attributes;if(null==e||"object"==typeof e?(o=e,r=t):(o={})[e]=t,r=n.extend({validate:!0},r),o&&!r.wait){if(!this.set(o,r))return!1}else if(!this._validate(o,r))return!1;o&&r.wait&&(this.attributes=n.extend({},s,o)),void 0===r.parse&&(r.parse=!0);var l=this,c=r.success;return r.success=function(e){l.attributes=s;var t=l.parse(e,r);if(r.wait&&(t=n.extend(o||{},t)),n.isObject(t)&&!l.set(t,r))return!1;c&&c(l,e,r),l.trigger("sync",l,e,r)},L(this,r),"patch"==(i=this.isNew()?"create":r.patch?"patch":"update")&&(r.attrs=o),a=this.sync(i,this,r),o&&r.wait&&(this.attributes=s),a},destroy:function(e){e=e?n.clone(e):{};var t=this,r=e.success,o=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(n){(e.wait||t.isNew())&&o(),r&&r(t,n,e),t.isNew()||t.trigger("sync",t,n,e)},this.isNew())return e.success(),!1;L(this,e);var i=this.sync("delete",this,e);return e.wait||o(),i},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||E();return this.isNew()?e:e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return!r||(this.trigger("invalid",this,r,n.extend(t,{validationError:r})),!1)}}),n.each(["keys","values","pairs","invert","pick","omit"],(function(e){u.prototype[e]=function(){var t=i.call(arguments);return t.unshift(this.attributes),n[e].apply(n,t)}}));var d=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},f={add:!0,remove:!0,merge:!0},h={add:!0,remove:!1};n.extend(d.prototype,a,{model:u,initialize:function(){},toJSON:function(e){return this.map((function(t){return t.toJSON(e)}))},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,h))},remove:function(e,t){var r,o,i,a,s=!n.isArray(e);for(t||(t={}),r=0,o=(e=s?[e]:n.clone(e)).length;r<o;r++)(a=e[r]=this.get(e[r]))&&(delete this._byId[a.id],delete this._byId[a.cid],i=this.indexOf(a),this.models.splice(i,1),this.length--,t.silent||(t.index=i,a.trigger("remove",a,this,t)),this._removeReference(a,t));return s?e[0]:e},set:function(e,t){(t=n.defaults({},t,f)).parse&&(e=this.parse(e,t));var r,o,i,a,s,l,c,d=!n.isArray(e);e=d?e?[e]:[]:n.clone(e);var h=t.at,p=this.model,m=this.comparator&&null==h&&!1!==t.sort,g=n.isString(this.comparator)?this.comparator:null,v=[],y=[],b={},x=t.add,_=t.merge,w=t.remove,j=!(m||!x||!w)&&[];for(r=0,o=e.length;r<o;r++){if(i=(s=e[r]||{})instanceof u?a=s:s[p.prototype.idAttribute||"id"],l=this.get(i))w&&(b[l.cid]=!0),_&&(s=s===a?a.attributes:s,t.parse&&(s=l.parse(s,t)),l.set(s,t),m&&!c&&l.hasChanged(g)&&(c=!0)),e[r]=l;else if(x){if(!(a=e[r]=this._prepareModel(s,t)))continue;v.push(a),this._addReference(a,t)}a=l||a,!j||!a.isNew()&&b[a.id]||j.push(a),b[a.id]=!0}if(w){for(r=0,o=this.length;r<o;++r)b[(a=this.models[r]).cid]||y.push(a);y.length&&this.remove(y,t)}if(v.length||j&&j.length)if(m&&(c=!0),this.length+=v.length,null!=h)for(r=0,o=v.length;r<o;r++)this.models.splice(h+r,0,v[r]);else{j&&(this.models.length=0);var k=j||v;for(r=0,o=k.length;r<o;r++)this.models.push(k[r])}if(c&&this.sort({silent:!0}),!t.silent){for(r=0,o=v.length;r<o;r++)(a=v[r]).trigger("add",a,this,t);(c||j&&j.length)&&this.trigger("sort",this,t)}return d?e[0]:e},reset:function(e,t){t||(t={});for(var r=0,o=this.models.length;r<o;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return i.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[e.id]||this._byId[e.cid]},at:function(e){return this.models[e]},where:function(e,t){return n.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"]((function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0}))},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return n.invoke(this.models,"get",e)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=e.success,r=this;return e.success=function(n){var o=e.reset?"reset":"set";r[o](n,e),t&&t(r,n,e),r.trigger("sync",r,n,e)},L(this,e),this.sync("read",this,e)},create:function(e,t){if(t=t?n.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var r=this,o=t.success;return t.success=function(e,n){t.wait&&r.add(e,t),o&&o(e,n,t)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof u)return e;(t=t?n.clone(t):{}).collection=this;var r=new this.model(e,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_addReference:function(e,t){this._byId[e.cid]=e,null!=e.id&&(this._byId[e.id]=e),e.collection||(e.collection=this),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){("add"!==e&&"remove"!==e||n===this)&&("destroy"===e&&this.remove(t,r),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}}),n.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"],(function(e){d.prototype[e]=function(){var t=i.call(arguments);return t.unshift(this.models),n[e].apply(n,t)}})),n.each(["groupBy","countBy","sortBy","indexBy"],(function(e){d.prototype[e]=function(t,r){var o=n.isFunction(t)?t:function(e){return e.get(t)};return n[e](this.models,o,r)}}));var p=t.View=function(e){this.cid=n.uniqueId("view"),e||(e={}),n.extend(this,n.pick(e,g)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},m=/^(\S+)\s*(.*)$/,g=["model","collection","el","id","attributes","className","tagName","events"];n.extend(p.prototype,a,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,n){return this.$el&&this.undelegateEvents(),this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0],!1!==n&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=n.result(this,"events")))return this;for(var t in this.undelegateEvents(),e){var r=e[t];if(n.isFunction(r)||(r=this[e[t]]),r){var o=t.match(m),i=o[1],a=o[2];r=n.bind(r,this),i+=".delegateEvents"+this.cid,""===a?this.$el.on(i,r):this.$el.on(i,a,r)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className"));var r=t.$("<"+n.result(this,"tagName")+">").attr(e);this.setElement(r,!1)}}}),t.sync=function(e,r,o){var i=y[e];n.defaults(o||(o={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var a={type:i,dataType:"json"};if(o.url||(a.url=n.result(r,"url")||E()),null!=o.data||!r||"create"!==e&&"update"!==e&&"patch"!==e||(a.contentType="application/json",a.data=JSON.stringify(o.attrs||r.toJSON(o))),o.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),o.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){a.type="POST",o.emulateJSON&&(a.data._method=i);var s=o.beforeSend;o.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",i),s)return s.apply(this,arguments)}}"GET"===a.type||o.emulateJSON||(a.processData=!1),"PATCH"===a.type&&v&&(a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=o.xhr=t.ajax(n.extend(a,o));return r.trigger("request",r,l,o),l};var v=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),y={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var b=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},x=/\((.*?)\)/g,_=/(\(\?)?:\w+/g,w=/\*\w+/g,j=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(b.prototype,a,{initialize:function(){},route:function(e,r,o){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(r)&&(o=r,r=""),o||(o=this[r]);var i=this;return t.history.route(e,(function(n){var a=i._extractParameters(e,n);i.execute(o,a),i.trigger.apply(i,["route:"+r].concat(a)),i.trigger("route",r,a),t.history.trigger("route",i,r,a)})),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(j,"\\$&").replace(x,"(?:$1)?").replace(_,(function(e,t){return t?e:"([^/?]+)"})).replace(w,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var r=e.exec(t).slice(1);return n.map(r,(function(e,t){return t===r.length-1?e||null:e?decodeURIComponent(e):null}))}});var k=t.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},T=/^[#\/]|\s+$/g,A=/^\/+|\/+$/g,M=/msie [\w.]+/,S=/\/$/,C=/#.*$/;k.started=!1,n.extend(k.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(S,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(T,"")},start:function(e){if(k.started)throw new Error("Backbone.history has already been started");k.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment(),o=document.documentMode,i=M.exec(navigator.userAgent.toLowerCase())&&(!o||o<=7);if(this.root=("/"+this.root+"/").replace(A,"/"),i&&this._wantsHashChange){var a=t.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=a.hide().appendTo("body")[0].contentWindow,this.navigate(r)}this._hasPushState?t.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!i?t.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=r;var s=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&s.hash&&(this.fragment=this.getHash().replace(T,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){t.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),k.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),n.any(this.handlers,(function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(e,t){if(!k.started)return!1;t&&!0!==t||(t={trigger:!!t});var n=this.root+(e=this.getFragment(e||""));if(e=e.replace(C,""),this.fragment!==e){if(this.fragment=e,""===e&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new k,u.extend=d.extend=b.extend=p.extend=k.extend=function(e,t){var r,o=this;r=e&&n.has(e,"constructor")?e.constructor:function(){return o.apply(this,arguments)},n.extend(r,o,t);var i=function(){this.constructor=r};return i.prototype=o.prototype,r.prototype=new i,e&&n.extend(r.prototype,e),r.__super__=o.prototype,r};var E=function(){throw new Error('A "url" property or function must be specified')},L=function(e,t){var n=t.error;t.error=function(r){n&&n(e,r,t),t.manuallyHandleErrorTrigger||e.trigger("error",e,r,t)}};return t}(i,n,e,t)}.apply(t,r))||(e.exports=o)},"contrib/jg_lib/Class":function(e,t,n){var r;
/*!
* Copyright (c) 2007-2016 Jason Gatt
*
* Released under the MIT license:
* http://opensource.org/licenses/MIT
*/void 0===(r=function(e,t,n){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=[],a=[],s={},l=0,c=function(e,t,n){i.push(e),a.push(t),r.call(s,t)||(s[t]=e),n&&l++},u=function(e,t,n){if(null!=n){if(null==e)throw new Error("Parameter name must be non-null.");if(!u.isString(e))throw new Error("Parameter name must be of type String.");if(null==t)throw new Error("Parameter baseClass must be non-null.");if(!u.isFunction(t))throw new Error("Parameter baseClass must be of type Function.");if(!u.isFunction(n))throw new Error("Parameter callback must be of type Function.")}else if(null!=t){if(n=t,t=e,null==e)throw new Error("Parameter 0 must be non-null.");if(u.isString(e))t=null;else{if(!u.isFunction(e))throw new Error("Parameter 0 must be of type String or Function.");e=null}if(!u.isFunction(n))throw new Error("Parameter callback must be of type Function.")}else{if(null==e)throw new Error("Expecting at least 1 parameter.");if(n=e,t=null,e=null,!u.isFunction(n))throw new Error("Parameter callback must be of type Function.")}if(null!=t){var r=t,o=function(){if(r!==t)return r.apply(this,arguments);r.apply(this,arguments)},i=function(){},a=i.prototype=t.prototype,s=o.prototype=new i;return s.constructor=o,n.call(s,o,a,s),s.constructor!==o&&(r=s.constructor,s.constructor=o),e&&c(o,e),o}var l={};return n.call(l,l),e&&c(l,e),l};return u.mixin=function(e,t){if(null==e)throw new Error("Parameter target must be non-null.");if(null==t)throw new Error("Parameter source must be non-null.");for(var n,o=1,i=arguments.length;o<i;o++){if(null==(t=arguments[o]))throw new Error("Parameter source must be non-null.");for(n in t)r.call(t,n)&&(e[n]=t[n])}return e},u.fromName=function(e){if(null==e)throw new Error("Parameter name must be non-null.");return r.call(s,e)?s[e]:null},u.getName=function(e){if(null==e)throw new Error("Parameter cls must be non-null.");for(var t=0,n=i.length;t<n;t++)if(i[t]===e)return a[t];return null},u.getClassList=function(){return i.slice(l)},u.getClassNameList=function(){return a.slice(l)},u.getTypeChecker=function(e){if(null==e)throw new Error("Parameter cls must be non-null.");switch(e){case Array:return u.isArray;case Boolean:return u.isBoolean;case Date:return u.isDate;case Function:return u.isFunction;case Number:return u.isNumber;case Object:return u.isObject;case RegExp:return u.isRegExp;case String:return u.isString;default:return function(t){return t instanceof e}}},u.getBaseClass=function(e){if(null==e)throw new Error("Parameter cls must be non-null.");if(e===Object)return null;var t=e.prototype;if(null==t)return null;var n=t.constructor;if(r.call(t,"constructor")){var o=n;delete t.constructor,n=t.constructor,t.constructor=o}return null==n||n===e?null:n},u.isSubclassOf=function(e,t){if(null==e)throw new Error("Parameter cls must be non-null.");if(null==t)throw new Error("Parameter baseClass must be non-null.");if(e===t)return!1;var n=e.prototype;return null!=n&&n instanceof t},u.isArray=function(e){return e instanceof Array||"[object Array]"===o.call(e)},u.isBoolean=function(e){return"boolean"==typeof e||"[object Boolean]"===o.call(e)},u.isDate=function(e){return e instanceof Date||"[object Date]"===o.call(e)},u.isFunction=function(e){return"function"==typeof e||!1},u.isNumber=function(e){return"number"==typeof e||"[object Number]"===o.call(e)},u.isObject=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)},u.isRegExp=function(e){return e instanceof RegExp||"[object RegExp]"===o.call(e)},u.isString=function(e){return"string"==typeof e||"[object String]"===o.call(e)},c(Array,"Array",!0),c(Boolean,"Boolean",!0),c(Date,"Date",!0),c(Function,"Function",!0),c(Math,"Math",!0),c(Number,"Number",!0),c(Object,"Object",!0),c(RegExp,"RegExp",!0),c(String,"String",!0),c(u,n.i),u}.call(t,n,t,e))||(e.exports=r)},"contrib/jg_lib/graphics/Color":function(e,t,n){var r;
/*!
* Copyright (c) 2007-2016 Jason Gatt
*
* Released under the MIT license:
* http://opensource.org/licenses/MIT
*/void 0===(r=function(e,t,r){var o=n("contrib/jg_lib/Class"),i=n("contrib/jg_lib/utils/NumberUtil");return o(r.i,Object,(function(e,t){var n=/^\s*(?:(?:(?:#|0x)([0-9A-F]*))|([^\(\)]+)|(?:(?:(?:rgba|(rgb))\s*)?\(([^\(\)]*)\)))\s*$/i,r=/([^%]*)%\s*$/;e.interpolate=function(t,n,r){var o=i.interpolate(t.r,n.r,r),a=i.interpolate(t.g,n.g,r),s=i.interpolate(t.b,n.b,r),l=i.interpolate(t.a,n.a,r);return new e(o,a,s,l).normalize()},e.fromNumber=function(t){return t=(t=+t)>0?Math.min(Math.floor(t),16777215):0,new e(t>>16&255,t>>8&255,255&t)},e.fromArray=function(t){var n=t.length,r=n>0?t[0]:0,o=n>1?t[1]:0,i=n>2?t[2]:0,a=n>3?t[3]:1;return new e(r,o,i,a)},e.fromString=function(t){var r=(""+t).match(n);return r?null!=r[1]?e.fromNumber(o(r[1])):null!=r[2]?e.fromArray(a(r[2])):null!=r[4]?e.fromArray(a(r[4],null!=r[3])):new e:new e};var o=function(e){if(!e)return 0;if(3===e.length){var t=e.split("");t[0]=t[0]+t[0],t[1]=t[1]+t[1],t[2]=t[2]+t[2],e=t.join("")}return parseInt(e,16)},a=function(e,t){var n,o=e.split(","),i=o.length,a=!0===t?3:4;i>a&&(o.splice(a,i-a),i=a);for(var s=0;s<i;s++)n=(e=o[s]).match(r),o[s]=n?s<3?Math.round(n[1]/100*255):n[1]/100:+e;return o};this.r=0,this.g=0,this.b=0,this.a=1,this.constructor=function(e,t,n,r){this.r=null!=e?+e:0,this.g=null!=t?+t:0,this.b=null!=n?+n:0,this.a=null!=r?+r:1},this.lighten=function(e){e=Math.max(e,0);var t=i.interpolate(this.r,255,e),n=i.interpolate(this.g,255,e),r=i.interpolate(this.b,255,e);return this.r=t>0?Math.min(Math.round(t),255):0,this.g=n>0?Math.min(Math.round(n),255):0,this.b=r>0?Math.min(Math.round(r),255):0,this},this.darken=function(e){e=Math.max(e,0);var t=i.interpolate(this.r,0,e),n=i.interpolate(this.g,0,e),r=i.interpolate(this.b,0,e);return this.r=t>0?Math.min(Math.round(t),255):0,this.g=n>0?Math.min(Math.round(n),255):0,this.b=r>0?Math.min(Math.round(r),255):0,this},this.invert=function(){var e=255-this.r,t=255-this.g,n=255-this.b;return this.r=e>0?Math.min(Math.round(e),255):0,this.g=t>0?Math.min(Math.round(t),255):0,this.b=n>0?Math.min(Math.round(n),255):0,this},this.normalize=function(){var e=+this.r,t=+this.g,n=+this.b,r=+this.a;return this.r=e>0?Math.min(Math.round(e),255):0,this.g=t>0?Math.min(Math.round(t),255):0,this.b=n>0?Math.min(Math.round(n),255):0,this.a=r>0?Math.min(r,1):0,this},this.hasNaN=function(){return isNaN(this.r)||isNaN(this.g)||isNaN(this.b)||isNaN(this.a)},this.hasInfinity=function(){return this.r==1/0||this.r==-1/0||this.g==1/0||this.g==-1/0||this.b==1/0||this.b==-1/0||this.a==1/0||this.a==-1/0},this.isFinite=function(){return this.r-this.r==0&&this.g-this.g==0&&this.b-this.b==0&&this.a-this.a==0},this.approxEquals=function(e,t){return i.approxEqual(this.r,e.r,t)&&i.approxEqual(this.g,e.g,t)&&i.approxEqual(this.b,e.b,t)&&i.approxEqual(this.a,e.a,t)},this.equals=function(e){return this.r==e.r&&this.g==e.g&&this.b==e.b&&this.a==e.a},this.clone=function(){return new e(this.r,this.g,this.b,this.a)},this.toNumber=function(){var e=+this.r,t=+this.g,n=+this.b;return(e=e>0?Math.min(Math.round(e),255):0)<<16|(t=t>0?Math.min(Math.round(t),255):0)<<8|(n>0?Math.min(Math.round(n),255):0)},this.toArray=function(e){var t=+this.r,n=+this.g,r=+this.b,o=+this.a;return!0===e&&(t=t>0?Math.min(Math.round(t),255):0,n=n>0?Math.min(Math.round(n),255):0,r=r>0?Math.min(Math.round(r),255):0,o=o>0?Math.min(o,1):0),[t,n,r,o]},this.toString=function(e,t){if("hex"===e){for(var n=this.toNumber().toString(16).toUpperCase(),r=n.length;r<6;r++)n="0"+n;return"#"+n}var o=+this.r,i=+this.g,a=+this.b,s=+this.a;return!0!==e&&!0!==t||(o=o>0?Math.min(Math.round(o),255):0,i=i>0?Math.min(Math.round(i),255):0,a=a>0?Math.min(Math.round(a),255):0,s=s>0?Math.min(s,1):0),"rgba"===e?"rgba("+o+","+i+","+a+","+s+")":"rgb"===e?"rgb("+o+","+i+","+a+")":"("+o+","+i+","+a+","+s+")"}}))}.call(t,n,t,e))||(e.exports=r)},"contrib/jg_lib/utils/NumberUtil":function(e,t,n){var r;
/*!
* Copyright (c) 2007-2016 Jason Gatt
*
* Released under the MIT license:
* http://opensource.org/licenses/MIT
*/void 0===(r=function(e,t,r){return n("contrib/jg_lib/Class")(r.i,(function(e){e.PRECISION=function(){for(var e=0,t=9,n=0;t%10==9&&(e++,t=10*t+9,!(++n>100)););return e}(),e.EPSILON=function(){for(var e=1,t=1,n=0;1+t>1&&(e=t,t/=2,!(++n>100)););return e}(),e.interpolate=function(e,t,n){return e*(1-n)+t*n},e.minMax=function(e,t,n){return(e=+e)<(t=+t)&&(e=t),e>(n=+n)&&(e=n),e},e.maxMin=function(e,t,n){return(e=+e)>(t=+t)&&(e=t),e<(n=+n)&&(e=n),e},e.roundTo=function(t,n){return t=+t,(n=null!=n?+n:1)>0&&(t=Math.round(t/n)*n),e.toPrecision(t)},e.floorTo=function(t,n){return t=+t,(n=null!=n?+n:1)>0&&(t=Math.floor(t/n)*n),e.toPrecision(t)},e.ceilTo=function(t,n){return t=+t,(n=null!=n?+n:1)>0&&(t=Math.ceil(t/n)*n),e.toPrecision(t)},e.toPrecision=function(t,n){return t=+t,(n=(n=null!=n?+n:0)>0?Math.floor(n):n<0?e.PRECISION+Math.ceil(n):e.PRECISION)<1?n=1:n>21&&(n=21),+t.toPrecision(n)},e.approxZero=function(t,n){return 0==(t=+t)||(n=null!=n?+n:e.EPSILON,t<0?-t<n:t<n)},e.approxOne=function(t,n){return 1==(t=+t)||(n=null!=n?+n:e.EPSILON,(t-=1)<0?-t<n:t<n)},e.approxEqual=function(t,n,r){return(t=+t)==(n=+n)||(r=null!=r?+r:e.EPSILON,(t-=n)<0?-t<r:t<r)},e.approxLessThan=function(t,n,r){return(t=+t)<(n=+n)&&!e.approxEqual(t,n,r)},e.approxLessThanOrEqual=function(t,n,r){return(t=+t)<(n=+n)||e.approxEqual(t,n,r)},e.approxGreaterThan=function(t,n,r){return(t=+t)>(n=+n)&&!e.approxEqual(t,n,r)},e.approxGreaterThanOrEqual=function(t,n,r){return(t=+t)>(n=+n)||e.approxEqual(t,n,r)}}))}.call(t,n,t,e))||(e.exports=r)},"contrib/strftime":function(e,t){Number.prototype.pad=function(e,t){var n=""+this;for(t=t||"0";n.length<e;)n=t+n;return n},Date.prototype.months=["January","February","March","April","May","June","July","August","September","October","November","December"],Date.prototype.weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Date.prototype.dpm=[31,28,31,30,31,30,31,31,30,31,30,31],Date.prototype.strftime_f={A:function(e){return e.weekdays[e.getDay()]},a:function(e){return e.weekdays[e.getDay()].substring(0,3)},B:function(e){return e.months[e.getMonth()]},b:function(e){return e.months[e.getMonth()].substring(0,3)},C:function(e){return Math.floor(e.getFullYear()/100)},c:function(e){return e.toString()},D:function(e){return e.strftime_f.m(e)+"/"+e.strftime_f.d(e)+"/"+e.strftime_f.y(e)},d:function(e){return e.getDate().pad(2,"0")},e:function(e){return e.getDate()},F:function(e){return e.strftime_f.Y(e)+"-"+e.strftime_f.m(e)+"-"+e.strftime_f.d(e)},H:function(e){return e.getHours().pad(2,"0")},I:function(e){return(e.getHours()%12||12).pad(2)},j:function(e){var t=e.getDate(),n=e.getMonth()-1;if(n>1){var r=e.getYear();(r%100==0&&r%400==0||r%4==0)&&++t}for(;n>-1;)t+=e.dpm[n--];return t.pad(3,"0")},k:function(e){return e.getHours().pad(2," ")},l:function(e){return e.getHours()%12||12},M:function(e){return e.getMinutes().pad(2,"0")},m:function(e){return(e.getMonth()+1).pad(2,"0")},n:function(e){return"\n"},p:function(e){return e.getHours()>11?"PM":"AM"},Q:function(e){return 0==e.getMilliseconds()?"000":e.getMilliseconds().pad(3,"0")},R:function(e){return e.strftime_f.H(e)+":"+e.strftime_f.M(e)},r:function(e){return e.strftime_f.I(e)+":"+e.strftime_f.M(e)+":"+e.strftime_f.S(e)+" "+e.strftime_f.p(e)},S:function(e){return e.getSeconds().pad(2,"0")},s:function(e){return Math.floor(e.getTime()/1e3)},T:function(e){return e.strftime_f.H(e)+":"+e.strftime_f.M(e)+":"+e.strftime_f.S(e)},t:function(e){return"\t"},u:function(e){return e.getDay()||7},v:function(e){return e.strftime_f.e(e)+"-"+e.strftime_f.b(e)+"-"+e.strftime_f.Y(e)},w:function(e){return e.getDay()},X:function(e){return e.toTimeString()},x:function(e){return e.toDateString()},Y:function(e){return e.getFullYear()},y:function(e){return(e.getYear()%100).pad(2)},z:function(e){return""},Z:function(e){return""},"%":function(e){return"%"}},Date.prototype.strftime_f["+"]=Date.prototype.strftime_f.c,Date.prototype.strftime_f.h=Date.prototype.strftime_f.b,Date.prototype.strftime=function(e){var t;if(t=this[e])return t;for(var n=[],r=0;r<e.length;){var o=e.charAt(r);"%"==o?(o=e.charAt(++r),n.push(this.strftime_f[o]?this.strftime_f[o](this):o)):n.push(o),++r}return this[e]=n.join("")}},"contrib/underscore":function(e,t,n){var r;(function(){var n=this,o=n._,i={},a=Array.prototype,s=Object.prototype,l=Function.prototype,c=a.push,u=a.slice,d=a.concat,f=s.toString,h=s.hasOwnProperty,p=a.forEach,m=a.map,g=a.reduce,v=a.reduceRight,y=a.filter,b=a.every,x=a.some,_=a.indexOf,w=a.lastIndexOf,j=Array.isArray,k=Object.keys,T=l.bind,A=function(e){return e instanceof A?e:this instanceof A?void(this._wrapped=e):new A(e)};e.exports&&(t=e.exports=A),t._=A,A.VERSION="1.6.0";var M=A.each=A.forEach=function(e,t,n){if(null==e)return e;if(p&&e.forEach===p)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e)===i)return}else{var a=A.keys(e);for(r=0,o=a.length;r<o;r++)if(t.call(n,e[a[r]],a[r],e)===i)return}return e};A.map=A.collect=function(e,t,n){var r=[];return null==e?r:m&&e.map===m?e.map(t,n):(M(e,(function(e,o,i){r.push(t.call(n,e,o,i))})),r)};var S="Reduce of empty array with no initial value";A.reduce=A.foldl=A.inject=function(e,t,n,r){var o=arguments.length>2;if(null==e&&(e=[]),g&&e.reduce===g)return r&&(t=A.bind(t,r)),o?e.reduce(t,n):e.reduce(t);if(M(e,(function(e,i,a){o?n=t.call(r,n,e,i,a):(n=e,o=!0)})),!o)throw new TypeError(S);return n},A.reduceRight=A.foldr=function(e,t,n,r){var o=arguments.length>2;if(null==e&&(e=[]),v&&e.reduceRight===v)return r&&(t=A.bind(t,r)),o?e.reduceRight(t,n):e.reduceRight(t);var i=e.length;if(i!==+i){var a=A.keys(e);i=a.length}if(M(e,(function(s,l,c){l=a?a[--i]:--i,o?n=t.call(r,n,e[l],l,c):(n=e[l],o=!0)})),!o)throw new TypeError(S);return n},A.find=A.detect=function(e,t,n){var r;return C(e,(function(e,o,i){if(t.call(n,e,o,i))return r=e,!0})),r},A.filter=A.select=function(e,t,n){var r=[];return null==e?r:y&&e.filter===y?e.filter(t,n):(M(e,(function(e,o,i){t.call(n,e,o,i)&&r.push(e)})),r)},A.reject=function(e,t,n){return A.filter(e,(function(e,r,o){return!t.call(n,e,r,o)}),n)},A.every=A.all=function(e,t,n){t||(t=A.identity);var r=!0;return null==e?r:b&&e.every===b?e.every(t,n):(M(e,(function(e,o,a){if(!(r=r&&t.call(n,e,o,a)))return i})),!!r)};var C=A.some=A.any=function(e,t,n){t||(t=A.identity);var r=!1;return null==e?r:x&&e.some===x?e.some(t,n):(M(e,(function(e,o,a){if(r||(r=t.call(n,e,o,a)))return i})),!!r)};A.contains=A.include=function(e,t){return null!=e&&(_&&e.indexOf===_?-1!=e.indexOf(t):C(e,(function(e){return e===t})))},A.invoke=function(e,t){var n=u.call(arguments,2),r=A.isFunction(t);return A.map(e,(function(e){return(r?t:e[t]).apply(e,n)}))},A.pluck=function(e,t){return A.map(e,A.property(t))},A.where=function(e,t){return A.filter(e,A.matches(t))},A.findWhere=function(e,t){return A.find(e,A.matches(t))},A.max=function(e,t,n){if(!t&&A.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.max.apply(Math,e);var r=-1/0,o=-1/0;return M(e,(function(e,i,a){var s=t?t.call(n,e,i,a):e;s>o&&(r=e,o=s)})),r},A.min=function(e,t,n){if(!t&&A.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.min.apply(Math,e);var r=1/0,o=1/0;return M(e,(function(e,i,a){var s=t?t.call(n,e,i,a):e;s<o&&(r=e,o=s)})),r},A.shuffle=function(e){var t,n=0,r=[];return M(e,(function(e){t=A.random(n++),r[n-1]=r[t],r[t]=e})),r},A.sample=function(e,t,n){return null==t||n?(e.length!==+e.length&&(e=A.values(e)),e[A.random(e.length-1)]):A.shuffle(e).slice(0,Math.max(0,t))};var E=function(e){return null==e?A.identity:A.isFunction(e)?e:A.property(e)};A.sortBy=function(e,t,n){return t=E(t),A.pluck(A.map(e,(function(e,r,o){return{value:e,index:r,criteria:t.call(n,e,r,o)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")};var L=function(e){return function(t,n,r){var o={};return n=E(n),M(t,(function(i,a){var s=n.call(r,i,a,t);e(o,s,i)})),o}};A.groupBy=L((function(e,t,n){A.has(e,t)?e[t].push(n):e[t]=[n]})),A.indexBy=L((function(e,t,n){e[t]=n})),A.countBy=L((function(e,t){A.has(e,t)?e[t]++:e[t]=1})),A.sortedIndex=function(e,t,n,r){for(var o=(n=E(n)).call(r,t),i=0,a=e.length;i<a;){var s=i+a>>>1;n.call(r,e[s])<o?i=s+1:a=s}return i},A.toArray=function(e){return e?A.isArray(e)?u.call(e):e.length===+e.length?A.map(e,A.identity):A.values(e):[]},A.size=function(e){return null==e?0:e.length===+e.length?e.length:A.keys(e).length},A.first=A.head=A.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:t<0?[]:u.call(e,0,t)},A.initial=function(e,t,n){return u.call(e,0,e.length-(null==t||n?1:t))},A.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:u.call(e,Math.max(e.length-t,0))},A.rest=A.tail=A.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},A.compact=function(e){return A.filter(e,A.identity)};var O=function(e,t,n){return t&&A.every(e,A.isArray)?d.apply(n,e):(M(e,(function(e){A.isArray(e)||A.isArguments(e)?t?c.apply(n,e):O(e,t,n):n.push(e)})),n)};A.flatten=function(e,t){return O(e,t,[])},A.without=function(e){return A.difference(e,u.call(arguments,1))},A.partition=function(e,t,n){t=E(t);var r=[],o=[];return M(e,(function(e){(t.call(n,e)?r:o).push(e)})),[r,o]},A.uniq=A.unique=function(e,t,n,r){A.isFunction(t)&&(r=n,n=t,t=!1);var o=n?A.map(e,n,r):e,i=[],a=[];return M(o,(function(n,r){(t?r&&a[a.length-1]===n:A.contains(a,n))||(a.push(n),i.push(e[r]))})),i},A.union=function(){return A.uniq(A.flatten(arguments,!0))},A.intersection=function(e){var t=u.call(arguments,1);return A.filter(A.uniq(e),(function(e){return A.every(t,(function(t){return A.contains(t,e)}))}))},A.difference=function(e){var t=d.apply(a,u.call(arguments,1));return A.filter(e,(function(e){return!A.contains(t,e)}))},A.zip=function(){for(var e=A.max(A.pluck(arguments,"length").concat(0)),t=new Array(e),n=0;n<e;n++)t[n]=A.pluck(arguments,""+n);return t},A.object=function(e,t){if(null==e)return{};for(var n={},r=0,o=e.length;r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},A.indexOf=function(e,t,n){if(null==e)return-1;var r=0,o=e.length;if(n){if("number"!=typeof n)return e[r=A.sortedIndex(e,t)]===t?r:-1;r=n<0?Math.max(0,o+n):n}if(_&&e.indexOf===_)return e.indexOf(t,n);for(;r<o;r++)if(e[r]===t)return r;return-1},A.lastIndexOf=function(e,t,n){if(null==e)return-1;var r=null!=n;if(w&&e.lastIndexOf===w)return r?e.lastIndexOf(t,n):e.lastIndexOf(t);for(var o=r?n:e.length;o--;)if(e[o]===t)return o;return-1},A.range=function(e,t,n){arguments.length<=1&&(t=e||0,e=0),n=arguments[2]||1;for(var r=Math.max(Math.ceil((t-e)/n),0),o=0,i=new Array(r);o<r;)i[o++]=e,e+=n;return i};var R=function(){};A.bind=function(e,t){var n,r;if(T&&e.bind===T)return T.apply(e,u.call(arguments,1));if(!A.isFunction(e))throw new TypeError;return n=u.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(u.call(arguments)));R.prototype=e.prototype;var o=new R;R.prototype=null;var i=e.apply(o,n.concat(u.call(arguments)));return Object(i)===i?i:o}},A.partial=function(e){var t=u.call(arguments,1);return function(){for(var n=0,r=t.slice(),o=0,i=r.length;o<i;o++)r[o]===A&&(r[o]=arguments[n++]);for(;n<arguments.length;)r.push(arguments[n++]);return e.apply(this,r)}},A.bindAll=function(e){var t=u.call(arguments,1);if(0===t.length)throw new Error("bindAll must be passed function names");return M(t,(function(t){e[t]=A.bind(e[t],e)})),e},A.memoize=function(e,t){var n={};return t||(t=A.identity),function(){var r=t.apply(this,arguments);return A.has(n,r)?n[r]:n[r]=e.apply(this,arguments)}},A.delay=function(e,t){var n=u.call(arguments,2);return setTimeout((function(){return e.apply(null,n)}),t)},A.defer=function(e){return A.delay.apply(A,[e,1].concat(u.call(arguments,1)))},A.throttle=function(e,t,n){var r,o,i,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:A.now(),a=null,i=e.apply(r,o),r=o=null};return function(){var c=A.now();s||!1!==n.leading||(s=c);var u=t-(c-s);return r=this,o=arguments,u<=0?(clearTimeout(a),a=null,s=c,i=e.apply(r,o),r=o=null):a||!1===n.trailing||(a=setTimeout(l,u)),i}},A.debounce=function(e,t,n){var r,o,i,a,s,l=function(){var c=A.now()-a;c<t?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(i,o),i=o=null))};return function(){i=this,o=arguments,a=A.now();var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(s=e.apply(i,o),i=o=null),s}},A.once=function(e){var t,n=!1;return function(){return n||(n=!0,t=e.apply(this,arguments),e=null),t}},A.wrap=function(e,t){return A.partial(t,e)},A.compose=function(){var e=arguments;return function(){for(var t=arguments,n=e.length-1;n>=0;n--)t=[e[n].apply(this,t)];return t[0]}},A.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},A.keys=function(e){if(!A.isObject(e))return[];if(k)return k(e);var t=[];for(var n in e)A.has(e,n)&&t.push(n);return t},A.values=function(e){for(var t=A.keys(e),n=t.length,r=new Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r},A.pairs=function(e){for(var t=A.keys(e),n=t.length,r=new Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r},A.invert=function(e){for(var t={},n=A.keys(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t},A.functions=A.methods=function(e){var t=[];for(var n in e)A.isFunction(e[n])&&t.push(n);return t.sort()},A.extend=function(e){return M(u.call(arguments,1),(function(t){if(t)for(var n in t)e[n]=t[n]})),e},A.pick=function(e){var t={},n=d.apply(a,u.call(arguments,1));return M(n,(function(n){n in e&&(t[n]=e[n])})),t},A.omit=function(e){var t={},n=d.apply(a,u.call(arguments,1));for(var r in e)A.contains(n,r)||(t[r]=e[r]);return t},A.defaults=function(e){return M(u.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e},A.clone=function(e){return A.isObject(e)?A.isArray(e)?e.slice():A.extend({},e):e},A.tap=function(e,t){return t(e),e};var I=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof A&&(e=e._wrapped),t instanceof A&&(t=t._wrapped);var o=f.call(e);if(o!=f.call(t))return!1;switch(o){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if("object"!=typeof e||"object"!=typeof t)return!1;for(var i=n.length;i--;)if(n[i]==e)return r[i]==t;var a=e.constructor,s=t.constructor;if(a!==s&&!(A.isFunction(a)&&a instanceof a&&A.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1;n.push(e),r.push(t);var l=0,c=!0;if("[object Array]"==o){if(c=(l=e.length)==t.length)for(;l--&&(c=I(e[l],t[l],n,r)););}else{for(var u in e)if(A.has(e,u)&&(l++,!(c=A.has(t,u)&&I(e[u],t[u],n,r))))break;if(c){for(u in t)if(A.has(t,u)&&!l--)break;c=!l}}return n.pop(),r.pop(),c};A.isEqual=function(e,t){return I(e,t,[],[])},A.isEmpty=function(e){if(null==e)return!0;if(A.isArray(e)||A.isString(e))return 0===e.length;for(var t in e)if(A.has(e,t))return!1;return!0},A.isElement=function(e){return!(!e||1!==e.nodeType)},A.isArray=j||function(e){return"[object Array]"==f.call(e)},A.isObject=function(e){return e===Object(e)},M(["Arguments","Function","String","Number","Date","RegExp"],(function(e){A["is"+e]=function(t){return f.call(t)=="[object "+e+"]"}})),A.isArguments(arguments)||(A.isArguments=function(e){return!(!e||!A.has(e,"callee"))}),A.isFunction=function(e){return"function"==typeof e},A.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},A.isNaN=function(e){return A.isNumber(e)&&e!=+e},A.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"==f.call(e)},A.isNull=function(e){return null===e},A.isUndefined=function(e){return void 0===e},A.has=function(e,t){return h.call(e,t)},A.noConflict=function(){return n._=o,this},A.identity=function(e){return e},A.constant=function(e){return function(){return e}},A.property=function(e){return function(t){return t[e]}},A.matches=function(e){return function(t){if(t===e)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0}},A.times=function(e,t,n){for(var r=Array(Math.max(0,e)),o=0;o<e;o++)r[o]=t.call(n,o);return r},A.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},A.now=Date.now||function(){return(new Date).getTime()};var P={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};P.unescape=A.invert(P.escape);var D={escape:new RegExp("["+A.keys(P.escape).join("")+"]","g"),unescape:new RegExp("("+A.keys(P.unescape).join("|")+")","g")};A.each(["escape","unescape"],(function(e){A[e]=function(t){return null==t?"":(""+t).replace(D[e],(function(t){return P[e][t]}))}})),A.result=function(e,t){if(null!=e){var n=e[t];return A.isFunction(n)?n.call(e):n}},A.mixin=function(e){M(A.functions(e),(function(t){var n=A[t]=e[t];A.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),H.call(this,n.apply(A,e))}}))};var z=0;A.uniqueId=function(e){var t=++z+"";return e?e+t:t},A.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var N=/(.)^/,F={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},B=/\\|'|\r|\n|\t|\u2028|\u2029/g,U=/^\s*(\w|\$)+\s*$/;A.template=function(e,t,n){var r;n=A.defaults({},n,A.templateSettings);var o=new RegExp([(n.escape||N).source,(n.interpolate||N).source,(n.evaluate||N).source].join("|")+"|$","g"),i=0,a="__p+='";e.replace(o,(function(t,n,r,o,s){return a+=e.slice(i,s).replace(B,(function(e){return"\\"+F[e]})),n&&(a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),r&&(a+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),o&&(a+="';\n"+o+"\n__p+='"),i=s+t.length,t})),a+="';\n";var s=n.variable;if(s){if(!U.test(s))throw new Error("variable is not a bare identifier: "+s)}else a="with(obj||{}){\n"+a+"}\n",s="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(s,"_",a)}catch(e){throw e.source=a,e}if(t)return r(t,A);var l=function(e){return r.call(this,e,A)};return l.source="function("+s+"){\n"+a+"}",l},A.chain=function(e){return A(e).chain()};var H=function(e){return this._chain?A(e).chain():e};A.mixin(A),M(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=a[e];A.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!=e&&"splice"!=e||0!==n.length||delete n[0],H.call(this,n)}})),M(["concat","join","slice"],(function(e){var t=a[e];A.prototype[e]=function(){return H.call(this,t.apply(this._wrapped,arguments))}})),A.extend(A.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),void 0===(r=function(){return A}.apply(t,[]))||(e.exports=r)}).call(this)},"require/backbone":function(e,t,n){var r,o;r=[n("shim/jquery"),n("require/underscore"),n("contrib/backbone")],void 0===(o=function(e,t,n){return n.$=e,n.noConflict()}.apply(t,r))||(e.exports=o)},"require/underscore":function(e,t,n){var r,o;r=[n("contrib/underscore"),n("stubs/i18n")],void 0===(o=function(e,t){return e.mixin({t:function(e){return t._(e)}}),e.noConflict()}.apply(t,r))||(e.exports=o)},"shim/jquery":function(e,t,n){var r,o;r=[n(291)],void 0===(o=function(e){window.$||(window.$=e,window.jQuery=e);var t=setInterval((function(){window._splunk_metrics_events&&!Array.isArray(window._splunk_metrics_events)&&(clearInterval(t),window._splunk_metrics_events.push({type:"jquery",data:{library:"jquery-"+e.fn.jquery}}))}),500);return e}.apply(t,r))||(e.exports=o)},"shim/splunk":function(e,t,n){var r,o;r=[n(292)],void 0===(o=function(){return window.Splunk}.apply(t,r))||(e.exports=o)},"shim/splunk.util":function(e,t,n){var r,o;r=[n("shim/splunk"),n("util/sprintf"),n("shim/jquery"),n("stubs/splunk.config"),n(294)],void 0===(o=function(e,t){return e.util.sprintf=t,e.util}.apply(t,r))||(e.exports=o)},"stubs/i18n":function(e,t,n){var r,o;r=[n("contrib/strftime"),n("shim/splunk.util")],void 0===(o=function(){window.locale_name()in{ko_KR:!0,zh_CN:!0,zh_TW:!0}&&(window._i18n_locale.date_formats.short={pattern:"yy/MM/dd",format:"%(yy)s/%(MM)s/%(dd)s"},window._i18n_locale.date_formats.medium={pattern:"yyyy/MM/dd",format:"%(yyyy)s/%(MM)s/%(dd)s"},window._i18n_locale.time_formats.short={pattern:"H:mm",format:"%(H)s:%(mm)s"},window._i18n_locale.time_formats.medium={pattern:"H:mm:ss",format:"%(H)s:%(mm)s:%(ss)s"});var e=[[/^ccc MMM d$/,"M/d (ccc)"],[/^YYYY-MM/,"YYYY/MM"],[/MM-dd/,"MM/dd"]],t={ja_JP:e,ko_KR:e,zh_CN:e,zh_TW:e},n=[["MMM d","d MMM"]],r=window.format_date;return window.format_date=function(e,o){var i,a;o=o||"medium";var s=window.locale_name();if(o&&"string"==typeof o&&window.locale_uses_day_before_month())for(a=n,i=0;i<a.length;i++)o=o.replace(a[i][0],a[i][1]);if(o&&"string"==typeof o&&s in t)for(a=t[s],i=0;i<a.length;i++){var l=a[i];o=o.replace(l[0],l[1])}return r(e,o)},{_:window.gettext,ungettext:window.ungettext,format_decimal:window.format_decimal,format_number:window.format_number,format_percent:window.format_percent,format_scientific:window.format_scientific,format_date:window.format_date,format_datetime:window.format_datetime,format_time:window.format_time,format_datetime_microseconds:window.format_datetime_microseconds,format_time_microseconds:window.format_time_microseconds,locale_uses_day_before_month:window.locale_uses_day_before_month,format_datetime_range:window.format_datetime_range,locale_name:window.locale_name,DateTime:window.DateTime,moment_install:window.moment_install,numeral_install:window.numeral_install,jQuery_ui_datepicker_install:window.jQuery_ui_datepicker_install}}.apply(t,r))||(e.exports=o)},"stubs/splunk.config":function(e,t,n){var r;void 0===(r=function(){return window.$C}.call(t,n,t,e))||(e.exports=r)},"util/sprintf":function(e,t,n){var r,o;r=[n(293)],void 0===(o=function(e){return e}.apply(t,r))||(e.exports=o)}})},"./node_modules/@splunk/swc-mltk/node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/@splunk/themes/base.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n("./node_modules/tinycolor2/cjs/tinycolor.js"))&&r.__esModule?r:{default:r};function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={white:"#ffffff",gray98:"#f7f8fa",gray96:"#f2f4f5",gray92:"#e1e6eb",gray80:"#c3cbd4",gray60:"#818d99",gray45:"#5c6773",gray30:"#3c444d",gray25:"#31373e",gray22:"#2b3033",gray20:"#171d21",black:"#000000"},s={accentColorL50:"#ecf8ff",accentColorL40:"#bfe9ff",accentColorL30:"#7ed2ff",accentColorL20:"#3ebcff",accentColorL10:"#00a4fd",accentColor:"#007abd",accentColorD10:"#006eaa",accentColorD20:"#006297",accentColorD30:"#005684",accentColorD40:"#004a71",accentColorD50:"#003d5e"},l={textColor:a.gray30,textGray:"#6b7785",textDisabledColor:a.gray80,linkColor:s.accentColorD10,linkColorHover:s.accentColor,borderLightColor:a.gray92,borderColor:a.gray80,focusColor:s.accentColorL10,backgroundColorHover:a.gray96,backgroundColor:a.white},c={focusShadow:"0 0 1px 2px ".concat((0,o.default)(l.focusColor).setAlpha(.6).toRgbString()),focusShadowInset:"inset 0 0 2px 1px ".concat(a.white,", inset 0 0 0 2px ").concat(l.focusColor),overlayShadow:"0 4px 8px rgba(0, 0, 0, 0.2)"},u="'Splunk Platform Sans', 'Proxima Nova', Roboto, Droid, 'Helvetica Neue', Helvetica, Arial, sans-serif",d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}({},a,s,{errorColorL50:"#fcedec",errorColorL40:"#f8dcd9",errorColorL30:"#f1b9b3",errorColorL20:"#ea958d",errorColorL10:"#e37267",errorColor:"#dc4e41",errorColorD10:"#c84535",errorColorD20:"#b23d30",errorColorD30:"#9c3529",errorColorD40:"#852d24",errorColorD50:"#6f261d"},{alertColorL50:"#fef3ec",alertColorL40:"#fde6d9",alertColorL30:"#facdb3",alertColorL20:"#f7b48c",alertColorL10:"#f49b66",alertColor:"#f1813f",alertColorD10:"#da742e",alertColorD20:"#c2672a",alertColorD30:"#aa5a25",alertColorD40:"#914d1f",alertColorD50:"#79401a"},{warningColorL50:"#fff9eb",warningColorL40:"#fef2d7",warningColorL30:"#fde5ae",warningColorL20:"#fbd886",warningColorL10:"#facb5d",warningColor:"#f8be34",warningColorD10:"#e0ac16",warningColorD20:"#c79915",warningColorD30:"#ae8613",warningColorD40:"#957312",warningColorD50:"#7d600f"},{successColorL50:"#eef6ee",successColorL40:"#ddecdd",successColorL30:"#bbd9ba",successColorL20:"#98c697",successColorL10:"#76b374",successColor:"#53a051",successColorD10:"#479144",successColorD20:"#40813d",successColorD30:"#387135",successColorD40:"#2f612e",successColorD50:"#275126"},{infoColorL50:"#e5f0f5",infoColorL40:"#cce2eb",infoColorL30:"#99c5d7",infoColorL20:"#66a7c4",infoColorL10:"#338ab0",infoColor:"#006d9c",infoColorD10:"#00577c",infoColorD20:"#004c6c",infoColorD30:"#00415d",infoColorD40:"#00364d",infoColorD50:"#002b3e"},{cat1Color:"#297ba5",cat1ColorL:"#78b9d6",cat2Color:"#4fa484",cat2ColorL:"#74d5c2",cat3Color:"#b6c75a",cat3ColorL:"#dce6a5",cat4Color:"#3c6188",cat4ColorL:"#a0b2ca",cat5Color:"#ec9960",cat5ColorL:"#fac9a7",cat6Color:"#a65c7d",cat6ColorL:"#d3a7ba",cat7Color:"#708794",cat7ColorL:"#b2c0c8",cat8Color:"#38b8bf",cat8ColorL:"#92dde2",cat9Color:"#ffde63",cat9ColorL:"#ffeeae",cat10Color:"#c19975",cat10ColorL:"#d7bfab",cat11Color:"#5a4575",cat11ColorL:"#b7acca",cat12Color:"#7ea77b",cat12ColorL:"#b2cab0",cat13Color:"#576d83",cat13ColorL:"#a5b2bf",cat14Color:"#d7c6b7",cat14ColorL:"#e9ddd4",cat15Color:"#339bb2",cat15ColorL:"#66c3d0",cat16Color:"#236d9b",cat16ColorL:"#66a7c2",cat17Color:"#e5dc80",cat17ColorL:"#f1eab7",cat18Color:"#96907f",cat18ColorL:"#c1bcb3",cat19Color:"#87bc65",cat19ColorL:"#b6d7a3",cat20Color:"#cf7e60",cat20ColorL:"#e1b2a1",cat21Color:"#7b5547",cat21ColorL:"#dec4ba",cat22Color:"#77d6d8",cat22ColorL:"#abe6e8",cat23Color:"#4a7f2c",cat23ColorL:"#91b282",cat24Color:"#f589ad",cat24ColorL:"#f8b7ce",cat25Color:"#6a2c5d",cat25ColorL:"#cba3c2",cat26Color:"#aaabae",cat26ColorL:"#cccdce",cat27Color:"#9a7438",cat27ColorL:"#c3ab89",cat28Color:"#a4d563",cat28ColorL:"#c7e6a3",cat29Color:"#7672a4",cat29ColorL:"#ada9c8",cat30Color:"#184b81",cat30ColorL:"#a4bbe0"},{diverging1ColorA:"#006d9c",diverging1ColorB:"#ec9960",diverging2ColorA:"#af575a",diverging2ColorB:"#62b3b2",diverging3ColorA:"#4fa484",diverging3ColorB:"#f8be34",diverging4ColorA:"#5a4575",diverging4ColorB:"#708794",diverging5ColorA:"#294e70",diverging5ColorB:"#b6c75a"},{syntaxBlue:"#2662fc",syntaxBlueLight:"#006d9c",syntaxBrown:"#a67f59",syntaxGray:"#8293a7",syntaxGreen:"#5ca300",syntaxGreenLight:"#5ba383",syntaxOrange:"#f58220",syntaxPink:"#cf00cf",syntaxPurple:"#7738ff",syntaxPurpleLight:"#b19cd9",syntaxRed:"#d90700",syntaxRedLight:"#af575a",syntaxTeal:"#00a8ab"},{spacing:"20px",spacingHalf:"10px",spacingQuarter:"5px",fontSize:"14px",fontSizeXSmall:"11px",fontSizeSmall:"12px",fontSizeLarge:"16px",fontSizeXLarge:"18px",fontSizeXXLarge:"24px",lineHeight:"20px",inputHeight:"32px",inputHeightSmall:"28px",inputHeightLarge:"38px",toastContainerWidth:"500px"},{sansFontFamily:u,serifFontFamily:"Georgia, 'Times New Roman', Times, serif",monoFontFamily:"'Splunk Platform Mono', Inconsolata, Consolas, 'Droid Sans Mono', Monaco, 'Courier New', Courier, monospace",fontFamily:u,fontWeightBold:"700",fontWeightSemiBold:"500"},l,{draggableBackground:"url('data:image/png;base64,".concat("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAG0lEQVR4AWMAgioUjAoIyg9xAxBgFIymg1EAAD/iHoHfZJ8OAAAAAElFTkSuQmCC","') 0 0 / 8px 8px repeat")},c,{borderRadius:"3px",border:"1px solid ".concat(l.borderColor)},{zindexFixedNavbar:1030,zindexModalBackdrop:1040,zindexModal:1050,zindexPopover:1060,zindexToastMessages:2e3});t.default=d},"./node_modules/@splunk/themes/enterprise.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n("./node_modules/@splunk/themes/base.js"))&&r.__esModule?r:{default:r},i=n("./node_modules/@splunk/themes/mixins.js");function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=a({},o.default,{brandColorL50:"#f5fbf5",brandColorL40:"#dff2df",brandColorL30:"#bee6be",brandColorL20:"#9ed99e",brandColorL10:"#7ecd7e",brandColor:"#5cc05c",brandColorD10:"#49b849",brandColorD20:"#40a540",brandColorD30:"#389038",brandColorD40:"#307b30",brandColorD50:"#286728"}),c=a({},l,{mixins:{reset:(0,i.createReset)(l),clearfix:i.clearfix,ellipsis:i.ellipsis,printWidth100Percent:i.printWidth100Percent,printHide:i.printHide,printNoBackground:i.printNoBackground,printWrapAll:i.printWrapAll,screenReaderContent:i.screenReaderContent}});t.default=c},"./node_modules/@splunk/themes/enterpriseDark.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n("./node_modules/@splunk/themes/enterprise.js"))&&r.__esModule?r:{default:r},i=n("./node_modules/@splunk/themes/mixins.js");function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l={backgroundColor:o.default.gray25,backgroundColorHover:o.default.gray30,borderColor:o.default.gray22,borderDarkColor:o.default.black,borderLightColor:o.default.gray60,textColor:o.default.white,textGray:o.default.gray92,textDisabledColor:o.default.gray45,linkColor:o.default.accentColorL10,linkColorHover:o.default.accentColorL20,border:"1px solid ".concat(o.default.gray22),borderDark:"1px solid ".concat(o.default.black),borderLight:"1px solid ".concat(o.default.gray60),focusShadowInset:"inset 0 0 2px 1px ".concat(o.default.gray25,", inset 0 0 0 2px ").concat(o.default.focusColor),draggableBackground:"url('data:image/png;base64,".concat("iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAXEgAAFxIBZ5/SUgAAAW5pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIj4KICAgICAgICAgPGRjOnN1YmplY3Q+CiAgICAgICAgICAgIDxyZGY6QmFnLz4KICAgICAgICAgPC9kYzpzdWJqZWN0PgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4K72CKvQAAADdJREFUOBFj/PDp00cGJCDAx8ePxGUgJM+ErJgc9sAbQI6rh5seRkLxTEh+4KORYhcMtzglxz8AtKEQD3hiWXMAAAAASUVORK5CYII=","') 0 0 / 8px 8px repeat")},c=a({},o.default,l),u=a({},c,{mixins:a({},c.mixins,{reset:(0,i.createReset)(c)})});t.default=u},"./node_modules/@splunk/themes/mixins.js":function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.createReset=function(e){var t={animation:"none 0s ease 0s 1 normal none running",backfaceVisibility:"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor",borderCollapse:"separate",borderImage:"none",borderRadius:0,borderSpacing:0,bottom:"auto",boxShadow:"none",captionSide:"top",clear:"none",clip:"auto",columns:"auto",columnCount:"auto",columnFill:"balance",columnGap:"normal",columnRule:"medium none currentColor",columnSpan:1,columnWidth:"auto",content:"normal",counterIncrement:"none",counterReset:"none",cursor:"auto",emptyCells:"show",float:"none",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",fontStretch:"normal",height:"auto",hyphens:"none",left:"auto",letterSpacing:"normal",listStyle:"disc outside none",margin:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,opacity:1,orphans:2,overflow:"visible",overflowX:"visible",overflowY:"visible",padding:0,pageBreakAfter:"auto",pageBreakBefore:"auto",pageBreakInside:"auto",perspective:"none",perspectiveOrigin:"50% 50%",pointerEvents:"auto",position:"static",right:"auto",tabSize:8,tableLayout:"auto",textAlign:"left",textAlignLast:"auto",textDecoration:"none",textIndent:0,textShadow:"none",textTransform:"none",top:"auto",transform:"none",transformOrigin:"50% 50% 0",transformStyle:"flat",transition:"none 0s ease 0s",userSelect:"auto",verticalAlign:"baseline",whiteSpace:"normal",widows:2,width:"auto",wordSpacing:"normal",zIndex:"auto"};return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"inline",o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r({},o?t:{},i?{all:i}:{},{fontFamily:e.fontFamily,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.textColor,boxSizing:"border-box",display:n,borderWidth:"1px",visibility:"inherit",outline:"medium none ".concat(e.focusColor)})}},t.clearfix=function(){return{"&::after":{display:"table",content:'""',clear:"both"}}},t.ellipsis=function(){return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},t.printWidth100Percent=function(){return{maxWidth:"100% !important",width:"100% !important",overflow:"hidden !important"}},t.printHide=function(){return{display:"none !important"}},t.printNoBackground=function(){return{background:"none !important"}},t.printWrapAll=function(){return{wordBreak:"break-all !important",wordWrap:"break-word !important",overflowWrap:"break-word !important",whiteSpace:"normal !important"}},t.screenReaderContent=function(){return{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",height:"1px",width:"1px",margin:"-1px",padding:0,border:0}}},"./node_modules/@splunk/ui-utils/cookie.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEntry=function(e){if("undefined"==typeof document)return null;var t=new RegExp("(^|; ?)".concat(e,"=([^;]+)")),n=null;try{var r=document.cookie.match(t);n=r?r[2]:null}catch(e){}return n}},"./node_modules/@splunk/ui-utils/format.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sprintf=l,t.abbreviateNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-us",n=(0,o.default)(e);if(n<=1e3)return n.toLocaleString(t);if(n<1e4)return l((0,i._)("%sK"),(0,a.roundToDecimal)(n/1e3,-2).toLocaleString(t));if(n<1e5)return l((0,i._)("%sK"),(0,a.roundToDecimal)(n/1e3,-1).toLocaleString(t));if(n<999500)return l((0,i._)("%sK"),(0,a.roundToDecimal)(n/1e3,0).toLocaleString(t));if(n<1e7)return l((0,i._)("%sM"),(0,a.roundToDecimal)(n/1e6,-2).toLocaleString(t));if(n<1e8)return l((0,i._)("%sM"),(0,a.roundToDecimal)(n/1e6,-1).toLocaleString(t));if(n<9995e5)return l((0,i._)("%sM"),(0,a.roundToDecimal)(n/1e6,0).toLocaleString(t));if(n<1e10)return l((0,i._)("%sB"),(0,a.roundToDecimal)(n/1e9,-2).toLocaleString(t));if(n<1e11)return l((0,i._)("%sB"),(0,a.roundToDecimal)(n/1e9,-1).toLocaleString(t));return l((0,i._)("%sB"),(0,a.roundToDecimal)(n/1e9,0).toLocaleString(t))},t.bytesToFileSize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-us",n=(e||0)/1024;if(n<0)throw new RangeError("bytes must be >= 0");if(0===Math.floor(n))return l((0,i._)("%s B"),e.toLocaleString(t));var r=n/1024;if(0===Math.floor(r))return l((0,i._)("%s KB"),(0,a.roundToDecimal)(n,-2).toLocaleString(t));var o=r/1024;if(0===Math.floor(o))return l((0,i._)("%s MB"),(0,a.roundToDecimal)(r,-2).toLocaleString(t));var s=o/1024;if(0===Math.floor(s))return l((0,i._)("%s GB"),(0,a.roundToDecimal)(o,-2).toLocaleString(t));return l((0,i._)("%s TB"),(0,a.roundToDecimal)(s,-2).toLocaleString(t))},t.smartTrim=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.precomposed,o=void 0!==r&&r;if(!e||t<1||e.length<=t)return e;var i=o?"…":"...";if(1===t)return"".concat(e[0]).concat(i);var a=Math.ceil(e.length/2),s=e.length-t,l=Math.ceil(s/2),c=s-l;return"".concat(e.substring(0,a-l)).concat(i).concat(e.substring(a+c))};var r,o=(r=n("./node_modules/lodash/toNumber.js"))&&r.__esModule?r:{default:r},i=n("./node_modules/@splunk/ui-utils/i18n.js"),a=n("./node_modules/@splunk/ui-utils/math.js"),s=n("./node_modules/@splunk/ui-utils/sprintf.js");function l(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,s.sprintfFormat)((0,s.sprintfParse)(e),[e].concat(n))}},"./node_modules/@splunk/ui-utils/i18n.js":function(e,t,n){"use strict";var r;function o(e){r=e}function i(){o("undefined"!=typeof window&&window.gettext||function(e){return e})}Object.defineProperty(t,"__esModule",{value:!0}),t.gettext=function(){return r.apply(void 0,arguments)},t._=function(){return r.apply(void 0,arguments)},t.setSharedTranslator=o,t.resetSharedTranslator=i,i()},"./node_modules/@splunk/ui-utils/math.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.strictParseFloat=function(e){return a.test(e)?parseFloat(e):NaN},t.roundToDecimal=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,o.default)(e,-1*t)},t.floorPowerOfTen=function(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))},t.isLessThanMinSafeInt=function(e){if(!(0,r.default)(e))return!1;return e<=-9007199254740991},t.isGreaterThanMaxSafeInt=function(e){if(!(0,r.default)(e))return!1;return e>=9007199254740991};var r=i(n("./node_modules/lodash/isNumber.js")),o=i(n("./node_modules/lodash/round.js"));function i(e){return e&&e.__esModule?e:{default:e}}var a=/(^[-+]?[0-9]*[.]?[0-9]*$)|(^[-+]?[0-9][.]?[0-9]*e[-+]?[0-9][0-9]*$)/i},"./node_modules/@splunk/ui-utils/sprintf.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sprintfFormat=c,t.sprintfParse=d;var r=i(n("./node_modules/lodash/has.js")),o=i(n("./node_modules/lodash/repeat.js"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s={notType:/[^T]/,notPrimitive:/[^v]/,number:/[diefg]/,numericArg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,keyAccess:/^\.([a-z_][a-z_\d]*)/i,indexAccess:/^\[(\d+)\]/,sign:/^[+-]/};function l(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return c(d(e),[e].concat(n))}function c(e,t){var n,i,c,u,d,f,h,p,m,g=e.length,v=1,y="";for(i=0;i<g;i+=1)if("string"==typeof e[i])y+=e[i];else if("object"===a(e[i])){if((u=e[i]).keys)for(n=t[v],c=0;c<u.keys.length;c+=1){if(!(0,r.default)(n,u.keys[c]))throw new Error(l('[sprintf] property "%s" does not exist',u.keys[c]));n=n[u.keys[c]]}else u.paramNo?n=t[u.paramNo]:(n=t[v],v+=1);if(s.notType.test(u.type)&&s.notPrimitive.test(u.type)&&n instanceof Function&&(n=n()),s.numericArg.test(u.type)&&"number"!=typeof n&&Number.isNaN(Number(n)))throw new TypeError(l("[sprintf] expecting number but found %T",n));switch(s.number.test(u.type)&&(p=n>=0),u.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,u.width?parseInt(u.width,10):0);break;case"e":n=u.precision?parseFloat(n).toExponential(u.precision):parseFloat(n).toExponential();break;case"f":n=u.precision?parseFloat(n).toFixed(u.precision):parseFloat(n);break;case"g":n=u.precision?String(Number(n.toPrecision(u.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=u.precision?n.substring(0,u.precision):n;break;case"t":n=String(!!n),n=u.precision?n.substring(0,u.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=u.precision?n.substring(0,u.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=u.precision?n.substring(0,u.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}s.json.test(u.type)?y+=n:(!s.number.test(u.type)||p&&!u.sign?m="":(m=p?"+":"-",n=n.toString().replace(s.sign,"")),f=u.padChar?"0"===u.padChar?"0":u.padChar.charAt(1):" ",h=u.width-(m+n).length,d=u.width&&h>0?(0,o.default)(f,h):"",y+=u.align?m+n+d:"0"===f?m+d+n:d+m+n)}return y}var u=Object.create(null);function d(e){if(u[e])return u[e];for(var t,n=e,r=0,o=[];n;){if(null!==(t=s.text.exec(n)))o.push(t[0]);else if(null!==(t=s.modulo.exec(n)))o.push("%");else{if(null===(t=s.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){r|=1;var i=t[2],a=[],l=[];if(null===(a=s.key.exec(i)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(l.push(a[1]);""!==(i=i.substring(a[0].length));)if(null!==(a=s.keyAccess.exec(i)))l.push(a[1]);else{if(null===(a=s.indexAccess.exec(i)))throw new SyntaxError("[sprintf] failed to parse named argument key");l.push(a[1])}t[2]=l}else r|=2;if(3===r)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");o.push({placeholder:t[0],paramNo:t[1],keys:t[2],sign:t[3],padChar:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return u[e]=o,u[e]}},"./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js":function(e,t,n){"use strict";n.r(t),n.d(t,"decode",(function(){return s})),n.d(t,"encode",(function(){return a}));for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i=0;i<r.length;i++)o[r.charCodeAt(i)]=i;var a=function(e){var t,n=new Uint8Array(e),o=n.length,i="";for(t=0;t<o;t+=3)i+=r[n[t]>>2],i+=r[(3&n[t])<<4|n[t+1]>>4],i+=r[(15&n[t+1])<<2|n[t+2]>>6],i+=r[63&n[t+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},s=function(e){var t,n,r,i,a,s=.75*e.length,l=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var u=new ArrayBuffer(s),d=new Uint8Array(u);for(t=0;t<l;t+=4)n=o[e.charCodeAt(t)],r=o[e.charCodeAt(t+1)],i=o[e.charCodeAt(t+2)],a=o[e.charCodeAt(t+3)],d[c++]=n<<2|r>>4,d[c++]=(15&r)<<4|i>>2,d[c++]=(3&i)<<6|63&a;return u}},"./node_modules/base64-js/index.js":function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(u(e,a,a+16383>s?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"./node_modules/clamp/index.js":function(e,t){e.exports=function(e,t,n){return t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e}},"./node_modules/color-name/index.js":function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},"./node_modules/core-js/internals/a-callable.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-callable.js"),o=n("./node_modules/core-js/internals/try-to-string.js"),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},"./node_modules/core-js/internals/a-possible-prototype.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-possible-prototype.js"),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},"./node_modules/core-js/internals/a-weak-map.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/weak-map-helpers.js").has;e.exports=function(e){return r(e),e}},"./node_modules/core-js/internals/add-to-unscopables.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/well-known-symbol.js"),o=n("./node_modules/core-js/internals/object-create.js"),i=n("./node_modules/core-js/internals/object-define-property.js").f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},"./node_modules/core-js/internals/advance-string-index.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/string-multibyte.js").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"./node_modules/core-js/internals/an-instance.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/object-is-prototype-of.js"),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},"./node_modules/core-js/internals/an-object.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-object.js"),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},"./node_modules/core-js/internals/array-buffer-non-extensible.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},"./node_modules/core-js/internals/array-for-each.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/array-iteration.js").forEach,o=n("./node_modules/core-js/internals/array-method-is-strict.js")("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-from.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-context.js"),o=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/to-object.js"),a=n("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),s=n("./node_modules/core-js/internals/is-array-iterator-method.js"),l=n("./node_modules/core-js/internals/is-constructor.js"),c=n("./node_modules/core-js/internals/length-of-array-like.js"),u=n("./node_modules/core-js/internals/create-property.js"),d=n("./node_modules/core-js/internals/get-iterator.js"),f=n("./node_modules/core-js/internals/get-iterator-method.js"),h=Array;e.exports=function(e){var t=i(e),n=l(this),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m;g&&(m=r(m,p>2?arguments[2]:void 0));var v,y,b,x,_,w,j=f(t),k=0;if(!j||this===h&&s(j))for(v=c(t),y=n?new this(v):h(v);v>k;k++)w=g?m(t[k],k):t[k],u(y,k,w);else for(y=n?new this:[],_=(x=d(t,j)).next;!(b=o(_,x)).done;k++)w=g?a(x,m,[b.value,k],!0):b.value,u(y,k,w);return y.length=k,y}},"./node_modules/core-js/internals/array-includes.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-indexed-object.js"),o=n("./node_modules/core-js/internals/to-absolute-index.js"),i=n("./node_modules/core-js/internals/length-of-array-like.js"),a=function(e){return function(t,n,a){var s=r(t),l=i(s);if(0===l)return!e&&-1;var c,u=o(a,l);if(e&&n!=n){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-context.js"),o=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/indexed-object.js"),a=n("./node_modules/core-js/internals/to-object.js"),s=n("./node_modules/core-js/internals/length-of-array-like.js"),l=n("./node_modules/core-js/internals/array-species-create.js"),c=o([].push),u=function(e){var t=1===e,n=2===e,o=3===e,u=4===e,d=6===e,f=7===e,h=5===e||d;return function(p,m,g,v){for(var y,b,x=a(p),_=i(x),w=s(_),j=r(m,g),k=0,T=v||l,A=t?T(p,w):n||f?T(p,0):void 0;w>k;k++)if((h||k in _)&&(b=j(y=_[k],k,x),e))if(t)A[k]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:c(A,y)}else switch(e){case 4:return!1;case 7:c(A,y)}return d?-1:o||u?u:A}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js"),i=n("./node_modules/core-js/internals/engine-v8-version.js"),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"./node_modules/core-js/internals/array-method-is-strict.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},"./node_modules/core-js/internals/array-slice.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=r([].slice)},"./node_modules/core-js/internals/array-sort.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/array-slice.js"),o=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l<n;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var c=o(n/2),u=i(r(e,0,c),t),d=i(r(e,c),t),f=u.length,h=d.length,p=0,m=0;p<f||m<h;)e[p+m]=p<f&&m<h?t(u[p],d[m])<=0?u[p++]:d[m++]:p<f?u[p++]:d[m++];return e};e.exports=i},"./node_modules/core-js/internals/array-species-constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-array.js"),o=n("./node_modules/core-js/internals/is-constructor.js"),i=n("./node_modules/core-js/internals/is-object.js"),a=n("./node_modules/core-js/internals/well-known-symbol.js")("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},"./node_modules/core-js/internals/array-species-create.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/array-species-constructor.js");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/an-object.js"),o=n("./node_modules/core-js/internals/iterator-close.js");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/well-known-symbol.js")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},"./node_modules/core-js/internals/classof-raw.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},"./node_modules/core-js/internals/classof.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-string-tag-support.js"),o=n("./node_modules/core-js/internals/is-callable.js"),i=n("./node_modules/core-js/internals/classof-raw.js"),a=n("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},"./node_modules/core-js/internals/collection-weak.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/define-built-ins.js"),i=n("./node_modules/core-js/internals/internal-metadata.js").getWeakData,a=n("./node_modules/core-js/internals/an-instance.js"),s=n("./node_modules/core-js/internals/an-object.js"),l=n("./node_modules/core-js/internals/is-null-or-undefined.js"),c=n("./node_modules/core-js/internals/is-object.js"),u=n("./node_modules/core-js/internals/iterate.js"),d=n("./node_modules/core-js/internals/array-iteration.js"),f=n("./node_modules/core-js/internals/has-own-property.js"),h=n("./node_modules/core-js/internals/internal-state.js"),p=h.set,m=h.getterFor,g=d.find,v=d.findIndex,y=r([].splice),b=0,x=function(e){return e.frozen||(e.frozen=new _)},_=function(){this.entries=[]},w=function(e,t){return g(e.entries,(function(e){return e[0]===t}))};_.prototype={get:function(e){var t=w(this,e);if(t)return t[1]},has:function(e){return!!w(this,e)},set:function(e,t){var n=w(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e((function(e,o){a(e,h),p(e,{type:t,id:b++,frozen:void 0}),l(o)||u(o,e[r],{that:e,AS_ENTRIES:n})})),h=d.prototype,g=m(t),v=function(e,t,n){var r=g(e),o=i(s(t),!0);return!0===o?x(r).set(t,n):o[r.id]=n,e};return o(h,{delete:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return!0===n?x(t).delete(e):n&&f(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!c(e))return!1;var n=i(e);return!0===n?x(t).has(e):n&&f(n,t.id)}}),o(h,n?{get:function(e){var t=g(this);if(c(e)){var n=i(e);return!0===n?x(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),d}}},"./node_modules/core-js/internals/collection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/function-uncurry-this.js"),a=n("./node_modules/core-js/internals/is-forced.js"),s=n("./node_modules/core-js/internals/define-built-in.js"),l=n("./node_modules/core-js/internals/internal-metadata.js"),c=n("./node_modules/core-js/internals/iterate.js"),u=n("./node_modules/core-js/internals/an-instance.js"),d=n("./node_modules/core-js/internals/is-callable.js"),f=n("./node_modules/core-js/internals/is-null-or-undefined.js"),h=n("./node_modules/core-js/internals/is-object.js"),p=n("./node_modules/core-js/internals/fails.js"),m=n("./node_modules/core-js/internals/check-correctness-of-iteration.js"),g=n("./node_modules/core-js/internals/set-to-string-tag.js"),v=n("./node_modules/core-js/internals/inherit-if-required.js");e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),x=y?"set":"add",_=o[e],w=_&&_.prototype,j=_,k={},T=function(e){var t=i(w[e]);s(w,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!h(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(_)||!(b||w.forEach&&!p((function(){(new _).entries().next()})))))j=n.getConstructor(t,e,y,x),l.enable();else if(a(e,!0)){var A=new j,M=A[x](b?{}:-0,1)!==A,S=p((function(){A.has(1)})),C=m((function(e){new _(e)})),E=!b&&p((function(){for(var e=new _,t=5;t--;)e[x](t,t);return!e.has(-0)}));C||((j=t((function(e,t){u(e,w);var n=v(new _,e,j);return f(t)||c(t,n[x],{that:n,AS_ENTRIES:y}),n}))).prototype=w,w.constructor=j),(S||E)&&(T("delete"),T("has"),y&&T("get")),(E||M)&&T(x),b&&w.clear&&delete w.clear}return k[e]=j,r({global:!0,constructor:!0,forced:j!==_},k),g(j,e),b||n.setStrong(j,e,y),j}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/has-own-property.js"),o=n("./node_modules/core-js/internals/own-keys.js"),i=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=n("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t,n){for(var s=o(t),l=a.f,c=i.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"./node_modules/core-js/internals/create-iter-result-object.js":function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),o=n("./node_modules/core-js/internals/object-define-property.js"),i=n("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"./node_modules/core-js/internals/create-property-descriptor.js":function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"./node_modules/core-js/internals/create-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),o=n("./node_modules/core-js/internals/object-define-property.js"),i=n("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,t,n){r?o.f(e,t,i(0,n)):e[t]=n}},"./node_modules/core-js/internals/date-to-primitive.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/an-object.js"),o=n("./node_modules/core-js/internals/ordinary-to-primitive.js"),i=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},"./node_modules/core-js/internals/define-built-in-accessor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/make-built-in.js"),o=n("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},"./node_modules/core-js/internals/define-built-in.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-callable.js"),o=n("./node_modules/core-js/internals/object-define-property.js"),i=n("./node_modules/core-js/internals/make-built-in.js"),a=n("./node_modules/core-js/internals/define-global-property.js");e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},"./node_modules/core-js/internals/define-built-ins.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/define-built-in.js");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},"./node_modules/core-js/internals/define-global-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global.js"),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},"./node_modules/core-js/internals/delete-property-or-throw.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/try-to-string.js"),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+r(t)+" of "+r(e))}},"./node_modules/core-js/internals/descriptors.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"./node_modules/core-js/internals/document-create-element.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global.js"),o=n("./node_modules/core-js/internals/is-object.js"),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},"./node_modules/core-js/internals/does-not-exceed-safe-integer.js":function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}},"./node_modules/core-js/internals/dom-iterables.js":function(e,t,n){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/dom-token-list-prototype.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/document-create-element.js")("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},"./node_modules/core-js/internals/engine-ff-version.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/engine-user-agent.js").match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},"./node_modules/core-js/internals/engine-is-ie-or-edge.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/engine-user-agent.js");e.exports=/MSIE|Trident/.test(r)},"./node_modules/core-js/internals/engine-user-agent.js":function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},"./node_modules/core-js/internals/engine-v8-version.js":function(e,t,n){"use strict";var r,o,i=n("./node_modules/core-js/internals/global.js"),a=n("./node_modules/core-js/internals/engine-user-agent.js"),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(o=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},"./node_modules/core-js/internals/engine-webkit-version.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/engine-user-agent.js").match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},"./node_modules/core-js/internals/enum-bug-keys.js":function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global.js"),o=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,i=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=n("./node_modules/core-js/internals/define-built-in.js"),s=n("./node_modules/core-js/internals/define-global-property.js"),l=n("./node_modules/core-js/internals/copy-constructor-properties.js"),c=n("./node_modules/core-js/internals/is-forced.js");e.exports=function(e,t){var n,u,d,f,h,p=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[p]||s(p,{}):r[p]&&r[p].prototype)for(u in t){if(f=t[u],d=e.dontCallGetSet?(h=o(n,u))&&h.value:n[u],!c(m?u:p+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(n,u,f,e)}}},"./node_modules/core-js/internals/fails.js":function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},"./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es.regexp.exec.js");var r=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/define-built-in.js"),i=n("./node_modules/core-js/internals/regexp-exec.js"),a=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),l=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var f=s(e),h=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!h||!p||n){var m=/./[f],g=t(f,""[e],(function(e,t,n,o,a){var s=t.exec;return s===i||s===u.exec?h&&!a?{done:!0,value:r(m,t,n,o)}:{done:!0,value:r(e,n,t,o)}:{done:!1}}));o(String.prototype,e,g[0]),o(u,f,g[1])}d&&l(u[f],"sham",!0)}},"./node_modules/core-js/internals/freezing.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},"./node_modules/core-js/internals/function-apply.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},"./node_modules/core-js/internals/function-bind-context.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this-clause.js"),o=n("./node_modules/core-js/internals/a-callable.js"),i=n("./node_modules/core-js/internals/function-bind-native.js"),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},"./node_modules/core-js/internals/function-bind-native.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"./node_modules/core-js/internals/function-call.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},"./node_modules/core-js/internals/function-name.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),o=n("./node_modules/core-js/internals/has-own-property.js"),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},"./node_modules/core-js/internals/function-uncurry-this-accessor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/a-callable.js");e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},"./node_modules/core-js/internals/function-uncurry-this-clause.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/classof-raw.js"),o=n("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=function(e){if("Function"===r(e))return o(e)}},"./node_modules/core-js/internals/function-uncurry-this.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-native.js"),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global.js"),o=n("./node_modules/core-js/internals/is-callable.js"),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},"./node_modules/core-js/internals/get-iterator-method.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/classof.js"),o=n("./node_modules/core-js/internals/get-method.js"),i=n("./node_modules/core-js/internals/is-null-or-undefined.js"),a=n("./node_modules/core-js/internals/iterators.js"),s=n("./node_modules/core-js/internals/well-known-symbol.js")("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[r(e)]}},"./node_modules/core-js/internals/get-iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/a-callable.js"),i=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/try-to-string.js"),s=n("./node_modules/core-js/internals/get-iterator-method.js"),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw new l(a(e)+" is not iterable")}},"./node_modules/core-js/internals/get-json-replacer-function.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/is-array.js"),i=n("./node_modules/core-js/internals/is-callable.js"),a=n("./node_modules/core-js/internals/classof-raw.js"),s=n("./node_modules/core-js/internals/to-string.js"),l=r([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r<t;r++){var c=e[r];"string"==typeof c?l(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(n,s(c))}var u=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var r=0;r<u;r++)if(n[r]===e)return t}}}},"./node_modules/core-js/internals/get-method.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/a-callable.js"),o=n("./node_modules/core-js/internals/is-null-or-undefined.js");e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},"./node_modules/core-js/internals/get-substitution.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/to-object.js"),i=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var h=n+e.length,p=r.length,m=u;return void 0!==d&&(d=o(d),m=c),s(f,m,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,h);case"<":c=d[l(s,1,-1)];break;default:var u=+s;if(0===u)return o;if(u>p){var f=i(u/10);return 0===f?o:f<=p?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):o}c=r[u-1]}return void 0===c?"":c}))}},"./node_modules/core-js/internals/global.js":function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("./node_modules/@splunk/swc-mltk/node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has-own-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/to-object.js"),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},"./node_modules/core-js/internals/hidden-keys.js":function(e,t,n){"use strict";e.exports={}},"./node_modules/core-js/internals/html.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/get-built-in.js");e.exports=r("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),o=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/document-create-element.js");e.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/internals/indexed-object.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/classof-raw.js"),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},"./node_modules/core-js/internals/inherit-if-required.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-callable.js"),o=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/object-set-prototype-of.js");e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},"./node_modules/core-js/internals/inspect-source.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/is-callable.js"),i=n("./node_modules/core-js/internals/shared-store.js"),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},"./node_modules/core-js/internals/internal-metadata.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/hidden-keys.js"),a=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/has-own-property.js"),l=n("./node_modules/core-js/internals/object-define-property.js").f,c=n("./node_modules/core-js/internals/object-get-own-property-names.js"),u=n("./node_modules/core-js/internals/object-get-own-property-names-external.js"),d=n("./node_modules/core-js/internals/object-is-extensible.js"),f=n("./node_modules/core-js/internals/uid.js"),h=n("./node_modules/core-js/internals/freezing.js"),p=!1,m=f("meta"),g=0,v=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},p=!0;var e=c.f,t=o([].splice),n={};n[m]=1,e(n).length&&(c.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===m){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";v(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;v(e)}return e[m].weakData},onFreeze:function(e){return h&&p&&d(e)&&!s(e,m)&&v(e),e}};i[m]=!0},"./node_modules/core-js/internals/internal-state.js":function(e,t,n){"use strict";var r,o,i,a=n("./node_modules/core-js/internals/weak-map-basic-detection.js"),s=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/is-object.js"),c=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),u=n("./node_modules/core-js/internals/has-own-property.js"),d=n("./node_modules/core-js/internals/shared-store.js"),f=n("./node_modules/core-js/internals/shared-key.js"),h=n("./node_modules/core-js/internals/hidden-keys.js"),p=s.TypeError,m=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new p("Object already initialized");return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=f("state");h[v]=!0,r=function(e,t){if(u(e,v))throw new p("Object already initialized");return t.facade=e,c(e,v,t),t},o=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},"./node_modules/core-js/internals/is-array-iterator-method.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/well-known-symbol.js"),o=n("./node_modules/core-js/internals/iterators.js"),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},"./node_modules/core-js/internals/is-array.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/classof-raw.js");e.exports=Array.isArray||function(e){return"Array"===r(e)}},"./node_modules/core-js/internals/is-callable.js":function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},"./node_modules/core-js/internals/is-constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/is-callable.js"),a=n("./node_modules/core-js/internals/classof.js"),s=n("./node_modules/core-js/internals/get-built-in.js"),l=n("./node_modules/core-js/internals/inspect-source.js"),c=function(){},u=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),h=!d.test(c),p=function(e){if(!i(e))return!1;try{return u(c,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!u||o((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?m:p},"./node_modules/core-js/internals/is-forced.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),o=n("./node_modules/core-js/internals/is-callable.js"),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===u||n!==c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},"./node_modules/core-js/internals/is-null-or-undefined.js":function(e,t,n){"use strict";e.exports=function(e){return null==e}},"./node_modules/core-js/internals/is-object.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},"./node_modules/core-js/internals/is-possible-prototype.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-object.js");e.exports=function(e){return r(e)||null===e}},"./node_modules/core-js/internals/is-pure.js":function(e,t,n){"use strict";e.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/get-built-in.js"),o=n("./node_modules/core-js/internals/is-callable.js"),i=n("./node_modules/core-js/internals/object-is-prototype-of.js"),a=n("./node_modules/core-js/internals/use-symbol-as-uid.js"),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},"./node_modules/core-js/internals/iterate.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-bind-context.js"),o=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/try-to-string.js"),s=n("./node_modules/core-js/internals/is-array-iterator-method.js"),l=n("./node_modules/core-js/internals/length-of-array-like.js"),c=n("./node_modules/core-js/internals/object-is-prototype-of.js"),u=n("./node_modules/core-js/internals/get-iterator.js"),d=n("./node_modules/core-js/internals/get-iterator-method.js"),f=n("./node_modules/core-js/internals/iterator-close.js"),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var g,v,y,b,x,_,w,j=n&&n.that,k=!(!n||!n.AS_ENTRIES),T=!(!n||!n.IS_RECORD),A=!(!n||!n.IS_ITERATOR),M=!(!n||!n.INTERRUPTED),S=r(t,j),C=function(e){return g&&f(g,"normal",e),new p(!0,e)},E=function(e){return k?(i(e),M?S(e[0],e[1],C):S(e[0],e[1])):M?S(e,C):S(e)};if(T)g=e.iterator;else if(A)g=e;else{if(!(v=d(e)))throw new h(a(e)+" is not iterable");if(s(v)){for(y=0,b=l(e);b>y;y++)if((x=E(e[y]))&&c(m,x))return x;return new p(!1)}g=u(e,v)}for(_=T?e.next:g.next;!(w=o(_,g)).done;){try{x=E(w.value)}catch(e){f(g,"throw",e)}if("object"==typeof x&&x&&c(m,x))return x}return new p(!1)}},"./node_modules/core-js/internals/iterator-close.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/an-object.js"),i=n("./node_modules/core-js/internals/get-method.js");e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},"./node_modules/core-js/internals/iterator-create-constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,o=n("./node_modules/core-js/internals/object-create.js"),i=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/set-to-string-tag.js"),s=n("./node_modules/core-js/internals/iterators.js"),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=o(r,{next:i(+!c,n)}),a(e,u,!1,!0),s[u]=l,e}},"./node_modules/core-js/internals/iterator-define.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/is-pure.js"),a=n("./node_modules/core-js/internals/function-name.js"),s=n("./node_modules/core-js/internals/is-callable.js"),l=n("./node_modules/core-js/internals/iterator-create-constructor.js"),c=n("./node_modules/core-js/internals/object-get-prototype-of.js"),u=n("./node_modules/core-js/internals/object-set-prototype-of.js"),d=n("./node_modules/core-js/internals/set-to-string-tag.js"),f=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),h=n("./node_modules/core-js/internals/define-built-in.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),m=n("./node_modules/core-js/internals/iterators.js"),g=n("./node_modules/core-js/internals/iterators-core.js"),v=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,x=g.BUGGY_SAFARI_ITERATORS,_=p("iterator"),w=function(){return this};e.exports=function(e,t,n,a,p,g,j){l(n,t,a);var k,T,A,M=function(e){if(e===p&&O)return O;if(!x&&e&&e in E)return E[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},S=t+" Iterator",C=!1,E=e.prototype,L=E[_]||E["@@iterator"]||p&&E[p],O=!x&&L||M(p),R="Array"===t&&E.entries||L;if(R&&(k=c(R.call(new e)))!==Object.prototype&&k.next&&(i||c(k)===b||(u?u(k,b):s(k[_])||h(k,_,w)),d(k,S,!0,!0),i&&(m[S]=w)),v&&"values"===p&&L&&"values"!==L.name&&(!i&&y?f(E,"name","values"):(C=!0,O=function(){return o(L,this)})),p)if(T={values:M("values"),keys:g?O:M("keys"),entries:M("entries")},j)for(A in T)(x||C||!(A in E))&&h(E,A,T[A]);else r({target:t,proto:!0,forced:x||C},T);return i&&!j||E[_]===O||h(E,_,O,{name:p}),m[t]=O,T}},"./node_modules/core-js/internals/iterators-core.js":function(e,t,n){"use strict";var r,o,i,a=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/is-callable.js"),l=n("./node_modules/core-js/internals/is-object.js"),c=n("./node_modules/core-js/internals/object-create.js"),u=n("./node_modules/core-js/internals/object-get-prototype-of.js"),d=n("./node_modules/core-js/internals/define-built-in.js"),f=n("./node_modules/core-js/internals/well-known-symbol.js"),h=n("./node_modules/core-js/internals/is-pure.js"),p=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):m=!0),!l(r)||a((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=c(r)),s(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},"./node_modules/core-js/internals/iterators.js":function(e,t,n){"use strict";e.exports={}},"./node_modules/core-js/internals/length-of-array-like.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-length.js");e.exports=function(e){return r(e.length)}},"./node_modules/core-js/internals/make-built-in.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/is-callable.js"),a=n("./node_modules/core-js/internals/has-own-property.js"),s=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/function-name.js").CONFIGURABLE,c=n("./node_modules/core-js/internals/inspect-source.js"),u=n("./node_modules/core-js/internals/internal-state.js"),d=u.enforce,f=u.get,h=String,p=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=s&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=e.exports=function(e,t,n){"Symbol("===m(h(t),0,7)&&(t="["+g(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return i(this)&&f(this).source||c(this)}),"toString")},"./node_modules/core-js/internals/math-trunc.js":function(e,t,n){"use strict";var r=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?o:r)(t)}},"./node_modules/core-js/internals/object-create.js":function(e,t,n){"use strict";var r,o=n("./node_modules/core-js/internals/an-object.js"),i=n("./node_modules/core-js/internals/object-define-properties.js"),a=n("./node_modules/core-js/internals/enum-bug-keys.js"),s=n("./node_modules/core-js/internals/hidden-keys.js"),l=n("./node_modules/core-js/internals/html.js"),c=n("./node_modules/core-js/internals/document-create-element.js"),u=n("./node_modules/core-js/internals/shared-key.js"),d=u("IE_PROTO"),f=function(){},h=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&r?p(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):p(r);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[d]=e):n=m(),void 0===t?n:i.f(n,t)}},"./node_modules/core-js/internals/object-define-properties.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),o=n("./node_modules/core-js/internals/v8-prototype-define-bug.js"),i=n("./node_modules/core-js/internals/object-define-property.js"),a=n("./node_modules/core-js/internals/an-object.js"),s=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/object-keys.js");t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=l(t),c=o.length,u=0;c>u;)i.f(e,n=o[u++],r[n]);return e}},"./node_modules/core-js/internals/object-define-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),o=n("./node_modules/core-js/internals/ie8-dom-define.js"),i=n("./node_modules/core-js/internals/v8-prototype-define-bug.js"),a=n("./node_modules/core-js/internals/an-object.js"),s=n("./node_modules/core-js/internals/to-property-key.js"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor;t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=u(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),o=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=n("./node_modules/core-js/internals/create-property-descriptor.js"),s=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/to-property-key.js"),c=n("./node_modules/core-js/internals/has-own-property.js"),u=n("./node_modules/core-js/internals/ie8-dom-define.js"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/classof-raw.js"),o=n("./node_modules/core-js/internals/to-indexed-object.js"),i=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,a=n("./node_modules/core-js/internals/array-slice.js"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/object-keys-internal.js"),o=n("./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/has-own-property.js"),o=n("./node_modules/core-js/internals/is-callable.js"),i=n("./node_modules/core-js/internals/to-object.js"),a=n("./node_modules/core-js/internals/shared-key.js"),s=n("./node_modules/core-js/internals/correct-prototype-getter.js"),l=a("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},"./node_modules/core-js/internals/object-is-extensible.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),o=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/classof-raw.js"),a=n("./node_modules/core-js/internals/array-buffer-non-extensible.js"),s=Object.isExtensible,l=r((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},"./node_modules/core-js/internals/object-is-prototype-of.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=r({}.isPrototypeOf)},"./node_modules/core-js/internals/object-keys-internal.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/has-own-property.js"),i=n("./node_modules/core-js/internals/to-indexed-object.js"),a=n("./node_modules/core-js/internals/array-includes.js").indexOf,s=n("./node_modules/core-js/internals/hidden-keys.js"),l=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&l(u,n);for(;t.length>c;)o(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},"./node_modules/core-js/internals/object-keys.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/object-keys-internal.js"),o=n("./node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return r(e,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this-accessor.js"),o=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/require-object-coercible.js"),a=n("./node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),a(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-string-tag-support.js"),o=n("./node_modules/core-js/internals/classof.js");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/is-callable.js"),i=n("./node_modules/core-js/internals/is-object.js"),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/get-built-in.js"),o=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/object-get-own-property-names.js"),a=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=n("./node_modules/core-js/internals/an-object.js"),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},"./node_modules/core-js/internals/path.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global.js");e.exports=r},"./node_modules/core-js/internals/regexp-exec-abstract.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/an-object.js"),i=n("./node_modules/core-js/internals/is-callable.js"),a=n("./node_modules/core-js/internals/classof-raw.js"),s=n("./node_modules/core-js/internals/regexp-exec.js"),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=r(n,e,t);return null!==c&&o(c),c}if("RegExp"===a(e))return r(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},"./node_modules/core-js/internals/regexp-exec.js":function(e,t,n){"use strict";var r,o,i=n("./node_modules/core-js/internals/function-call.js"),a=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/to-string.js"),l=n("./node_modules/core-js/internals/regexp-flags.js"),c=n("./node_modules/core-js/internals/regexp-sticky-helpers.js"),u=n("./node_modules/core-js/internals/shared.js"),d=n("./node_modules/core-js/internals/object-create.js"),f=n("./node_modules/core-js/internals/internal-state.js").get,h=n("./node_modules/core-js/internals/regexp-unsupported-dot-all.js"),p=n("./node_modules/core-js/internals/regexp-unsupported-ncg.js"),m=u("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,y=a("".charAt),b=a("".indexOf),x=a("".replace),_=a("".slice),w=(o=/b*/g,i(g,r=/a/,"a"),i(g,o,"a"),0!==r.lastIndex||0!==o.lastIndex),j=c.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(w||k||j||h||p)&&(v=function(e){var t,n,r,o,a,c,u,h=this,p=f(h),T=s(e),A=p.raw;if(A)return A.lastIndex=h.lastIndex,t=i(v,A,T),h.lastIndex=A.lastIndex,t;var M=p.groups,S=j&&h.sticky,C=i(l,h),E=h.source,L=0,O=T;if(S&&(C=x(C,"y",""),-1===b(C,"g")&&(C+="g"),O=_(T,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==y(T,h.lastIndex-1))&&(E="(?: "+E+")",O=" "+O,L++),n=new RegExp("^(?:"+E+")",C)),k&&(n=new RegExp("^"+E+"$(?!\\s)",C)),w&&(r=h.lastIndex),o=i(g,S?n:h,O),S?o?(o.input=_(o.input,L),o[0]=_(o[0],L),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:w&&o&&(h.lastIndex=h.global?o.index+o[0].length:r),k&&o&&o.length>1&&i(m,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&M)for(o.groups=c=d(null),a=0;a<M.length;a++)c[(u=M[a])[0]]=o[u[1]];return o}),e.exports=v},"./node_modules/core-js/internals/regexp-flags.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/an-object.js");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/regexp-get-flags.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/has-own-property.js"),i=n("./node_modules/core-js/internals/object-is-prototype-of.js"),a=n("./node_modules/core-js/internals/regexp-flags.js"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:r(a,e)}},"./node_modules/core-js/internals/regexp-sticky-helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),o=n("./node_modules/core-js/internals/global.js").RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),s=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},"./node_modules/core-js/internals/regexp-unsupported-dot-all.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),o=n("./node_modules/core-js/internals/global.js").RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},"./node_modules/core-js/internals/regexp-unsupported-ncg.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js"),o=n("./node_modules/core-js/internals/global.js").RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},"./node_modules/core-js/internals/require-object-coercible.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-null-or-undefined.js"),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},"./node_modules/core-js/internals/set-to-string-tag.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/object-define-property.js").f,o=n("./node_modules/core-js/internals/has-own-property.js"),i=n("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},"./node_modules/core-js/internals/shared-key.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/shared.js"),o=n("./node_modules/core-js/internals/uid.js"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},"./node_modules/core-js/internals/shared-store.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/is-pure.js"),o=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/define-global-property.js"),a=e.exports=o["__core-js_shared__"]||i("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"./node_modules/core-js/internals/shared.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/shared-store.js");e.exports=function(e,t){return r[e]||(r[e]=t||{})}},"./node_modules/core-js/internals/string-multibyte.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/to-integer-or-infinity.js"),i=n("./node_modules/core-js/internals/to-string.js"),a=n("./node_modules/core-js/internals/require-object-coercible.js"),s=r("".charAt),l=r("".charCodeAt),c=r("".slice),u=function(e){return function(t,n){var r,u,d=i(a(t)),f=o(n),h=d.length;return f<0||f>=h?e?"":void 0:(r=l(d,f))<55296||r>56319||f+1===h||(u=l(d,f+1))<56320||u>57343?e?s(d,f):r:e?c(d,f,f+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},"./node_modules/core-js/internals/string-trim.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=n("./node_modules/core-js/internals/require-object-coercible.js"),i=n("./node_modules/core-js/internals/to-string.js"),a=n("./node_modules/core-js/internals/whitespaces.js"),s=r("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},"./node_modules/core-js/internals/symbol-constructor-detection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/engine-v8-version.js"),o=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/global.js").String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"./node_modules/core-js/internals/symbol-define-to-primitive.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/get-built-in.js"),i=n("./node_modules/core-js/internals/well-known-symbol.js"),a=n("./node_modules/core-js/internals/define-built-in.js");e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},"./node_modules/core-js/internals/symbol-registry-detection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/symbol-constructor-detection.js");e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},"./node_modules/core-js/internals/this-number-value.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=r(1..valueOf)},"./node_modules/core-js/internals/to-absolute-index.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},"./node_modules/core-js/internals/to-indexed-object.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/indexed-object.js"),o=n("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return r(o(e))}},"./node_modules/core-js/internals/to-integer-or-infinity.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},"./node_modules/core-js/internals/to-length.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/require-object-coercible.js"),o=Object;e.exports=function(e){return o(r(e))}},"./node_modules/core-js/internals/to-primitive.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/is-symbol.js"),a=n("./node_modules/core-js/internals/get-method.js"),s=n("./node_modules/core-js/internals/ordinary-to-primitive.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},"./node_modules/core-js/internals/to-property-key.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-primitive.js"),o=n("./node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},"./node_modules/core-js/internals/to-string-tag-support.js":function(e,t,n){"use strict";var r={};r[n("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag")]="z",e.exports="[object z]"===String(r)},"./node_modules/core-js/internals/to-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/classof.js"),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},"./node_modules/core-js/internals/try-to-string.js":function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},"./node_modules/core-js/internals/uid.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/symbol-constructor-detection.js");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"./node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),o=n("./node_modules/core-js/internals/fails.js");e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},"./node_modules/core-js/internals/weak-map-basic-detection.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global.js"),o=n("./node_modules/core-js/internals/is-callable.js"),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},"./node_modules/core-js/internals/weak-map-helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-uncurry-this.js"),o=WeakMap.prototype;e.exports={WeakMap:WeakMap,set:r(o.set),get:r(o.get),has:r(o.has),remove:r(o.delete)}},"./node_modules/core-js/internals/well-known-symbol-define.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/path.js"),o=n("./node_modules/core-js/internals/has-own-property.js"),i=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),a=n("./node_modules/core-js/internals/object-define-property.js").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/well-known-symbol.js");t.f=r},"./node_modules/core-js/internals/well-known-symbol.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global.js"),o=n("./node_modules/core-js/internals/shared.js"),i=n("./node_modules/core-js/internals/has-own-property.js"),a=n("./node_modules/core-js/internals/uid.js"),s=n("./node_modules/core-js/internals/symbol-constructor-detection.js"),l=n("./node_modules/core-js/internals/use-symbol-as-uid.js"),c=r.Symbol,u=o("wks"),d=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(u,e)||(u[e]=s&&i(c,e)?c[e]:d("Symbol."+e)),u[e]}},"./node_modules/core-js/internals/whitespaces.js":function(e,t,n){"use strict";e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},"./node_modules/core-js/modules/es.array.concat.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/is-array.js"),a=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/to-object.js"),l=n("./node_modules/core-js/internals/length-of-array-like.js"),c=n("./node_modules/core-js/internals/does-not-exceed-safe-integer.js"),u=n("./node_modules/core-js/internals/create-property.js"),d=n("./node_modules/core-js/internals/array-species-create.js"),f=n("./node_modules/core-js/internals/array-method-has-species-support.js"),h=n("./node_modules/core-js/internals/well-known-symbol.js"),p=n("./node_modules/core-js/internals/engine-v8-version.js"),m=h("isConcatSpreadable"),g=p>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,n,r,o,i,a=s(this),f=d(a,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(v(i=-1===t?a:arguments[t]))for(o=l(i),c(h+o),n=0;n<o;n++,h++)n in i&&u(f,h,i[n]);else c(h+1),u(f,h++,i);return f.length=h,f}})},"./node_modules/core-js/modules/es.array.filter.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/array-iteration.js").filter;r({target:"Array",proto:!0,forced:!n("./node_modules/core-js/internals/array-method-has-species-support.js")("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.from.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/array-from.js");r({target:"Array",stat:!0,forced:!n("./node_modules/core-js/internals/check-correctness-of-iteration.js")((function(e){Array.from(e)}))},{from:o})},"./node_modules/core-js/modules/es.array.iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-indexed-object.js"),o=n("./node_modules/core-js/internals/add-to-unscopables.js"),i=n("./node_modules/core-js/internals/iterators.js"),a=n("./node_modules/core-js/internals/internal-state.js"),s=n("./node_modules/core-js/internals/object-define-property.js").f,l=n("./node_modules/core-js/internals/iterator-define.js"),c=n("./node_modules/core-js/internals/create-iter-result-object.js"),u=n("./node_modules/core-js/internals/is-pure.js"),d=n("./node_modules/core-js/internals/descriptors.js"),f=a.set,h=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!u&&d&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},"./node_modules/core-js/modules/es.array.join.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/indexed-object.js"),a=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/array-method-is-strict.js"),l=o([].join);r({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},"./node_modules/core-js/modules/es.array.map.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/array-iteration.js").map;r({target:"Array",proto:!0,forced:!n("./node_modules/core-js/internals/array-method-has-species-support.js")("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/is-array.js"),i=n("./node_modules/core-js/internals/is-constructor.js"),a=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/to-absolute-index.js"),l=n("./node_modules/core-js/internals/length-of-array-like.js"),c=n("./node_modules/core-js/internals/to-indexed-object.js"),u=n("./node_modules/core-js/internals/create-property.js"),d=n("./node_modules/core-js/internals/well-known-symbol.js"),f=n("./node_modules/core-js/internals/array-method-has-species-support.js"),h=n("./node_modules/core-js/internals/array-slice.js"),p=f("slice"),m=d("species"),g=Array,v=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,d,f=c(this),p=l(f),y=s(e,p),b=s(void 0===t?p:t,p);if(o(f)&&(n=f.constructor,(i(n)&&(n===g||o(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===g||void 0===n))return h(f,y,b);for(r=new(void 0===n?g:n)(v(b-y,0)),d=0;y<b;y++,d++)y in f&&u(r,d,f[y]);return r.length=d,r}})},"./node_modules/core-js/modules/es.array.sort.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/function-uncurry-this.js"),i=n("./node_modules/core-js/internals/a-callable.js"),a=n("./node_modules/core-js/internals/to-object.js"),s=n("./node_modules/core-js/internals/length-of-array-like.js"),l=n("./node_modules/core-js/internals/delete-property-or-throw.js"),c=n("./node_modules/core-js/internals/to-string.js"),u=n("./node_modules/core-js/internals/fails.js"),d=n("./node_modules/core-js/internals/array-sort.js"),f=n("./node_modules/core-js/internals/array-method-is-strict.js"),h=n("./node_modules/core-js/internals/engine-ff-version.js"),p=n("./node_modules/core-js/internals/engine-is-ie-or-edge.js"),m=n("./node_modules/core-js/internals/engine-v8-version.js"),g=n("./node_modules/core-js/internals/engine-webkit-version.js"),v=[],y=o(v.sort),b=o(v.push),x=u((function(){v.sort(void 0)})),_=u((function(){v.sort(null)})),w=f("sort"),j=!u((function(){if(m)return m<70;if(!(h&&h>3)){if(p)return!0;if(g)return g<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:x||!_||!w||!j},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(j)return void 0===e?y(t):y(t,e);var n,r,o=[],u=s(t);for(r=0;r<u;r++)r in t&&b(o,t[r]);for(d(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=s(o),r=0;r<n;)t[r]=o[r++];for(;r<u;)l(t,r++);return t}})},"./node_modules/core-js/modules/es.date.to-primitive.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/has-own-property.js"),o=n("./node_modules/core-js/internals/define-built-in.js"),i=n("./node_modules/core-js/internals/date-to-primitive.js"),a=n("./node_modules/core-js/internals/well-known-symbol.js")("toPrimitive"),s=Date.prototype;r(s,a)||o(s,a,i)},"./node_modules/core-js/modules/es.function.name.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),o=n("./node_modules/core-js/internals/function-name.js").EXISTS,i=n("./node_modules/core-js/internals/function-uncurry-this.js"),a=n("./node_modules/core-js/internals/define-built-in-accessor.js"),s=Function.prototype,l=i(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=i(c.exec);r&&!o&&a(s,"name",{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(e){return""}}})},"./node_modules/core-js/modules/es.json.stringify.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/get-built-in.js"),i=n("./node_modules/core-js/internals/function-apply.js"),a=n("./node_modules/core-js/internals/function-call.js"),s=n("./node_modules/core-js/internals/function-uncurry-this.js"),l=n("./node_modules/core-js/internals/fails.js"),c=n("./node_modules/core-js/internals/is-callable.js"),u=n("./node_modules/core-js/internals/is-symbol.js"),d=n("./node_modules/core-js/internals/array-slice.js"),f=n("./node_modules/core-js/internals/get-json-replacer-function.js"),h=n("./node_modules/core-js/internals/symbol-constructor-detection.js"),p=String,m=o("JSON","stringify"),g=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),b=s("".replace),x=s(1..toString),_=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,k=!h||l((function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),T=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),A=function(e,t){var n=d(arguments),r=f(t);if(c(r)||void 0!==e&&!u(e))return n[1]=function(e,t){if(c(r)&&(t=a(r,this,p(e),t)),!u(t))return t},i(m,null,n)},M=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return g(w,e)&&!g(j,o)||g(j,e)&&!g(w,r)?"\\u"+x(y(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:k||T},{stringify:function(e,t,n){var r=d(arguments),o=i(k?A:m,null,r);return T&&"string"==typeof o?b(o,_,M):o}})},"./node_modules/core-js/modules/es.number.constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/is-pure.js"),i=n("./node_modules/core-js/internals/descriptors.js"),a=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/path.js"),l=n("./node_modules/core-js/internals/function-uncurry-this.js"),c=n("./node_modules/core-js/internals/is-forced.js"),u=n("./node_modules/core-js/internals/has-own-property.js"),d=n("./node_modules/core-js/internals/inherit-if-required.js"),f=n("./node_modules/core-js/internals/object-is-prototype-of.js"),h=n("./node_modules/core-js/internals/is-symbol.js"),p=n("./node_modules/core-js/internals/to-primitive.js"),m=n("./node_modules/core-js/internals/fails.js"),g=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,v=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,y=n("./node_modules/core-js/internals/object-define-property.js").f,b=n("./node_modules/core-js/internals/this-number-value.js"),x=n("./node_modules/core-js/internals/string-trim.js").trim,_=a.Number,w=s.Number,j=_.prototype,k=a.TypeError,T=l("".slice),A=l("".charCodeAt),M=function(e){var t=p(e,"number");return"bigint"==typeof t?t:S(t)},S=function(e){var t,n,r,o,i,a,s,l,c=p(e,"number");if(h(c))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(t=A(c,0))||45===t){if(88===(n=A(c,2))||120===n)return NaN}else if(48===t){switch(A(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=T(c,2)).length,s=0;s<a;s++)if((l=A(i,s))<48||l>o)return NaN;return parseInt(i,r)}return+c},C=c("Number",!_(" 0o1")||!_("0b1")||_("+0x1")),E=function(e){return f(j,e)&&m((function(){b(e)}))},L=function(e){var t=arguments.length<1?0:_(M(e));return E(this)?d(Object(t),this,L):t};L.prototype=j,C&&!o&&(j.constructor=L),r({global:!0,constructor:!0,wrap:!0,forced:C},{Number:L});var O=function(e,t){for(var n,r=i?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)u(t,n=r[o])&&!u(e,n)&&y(e,n,v(t,n))};o&&w&&O(s.Number,w),(C||o)&&O(s.Number,_)},"./node_modules/core-js/modules/es.object.get-own-property-descriptor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/to-indexed-object.js"),a=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=n("./node_modules/core-js/internals/descriptors.js");r({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},"./node_modules/core-js/modules/es.object.get-own-property-descriptors.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/own-keys.js"),a=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=n("./node_modules/core-js/internals/create-property.js");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=o(r,t=c[d++]))&&l(u,t,n);return u}})},"./node_modules/core-js/modules/es.object.get-own-property-symbols.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/symbol-constructor-detection.js"),i=n("./node_modules/core-js/internals/fails.js"),a=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=n("./node_modules/core-js/internals/to-object.js");r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},"./node_modules/core-js/modules/es.object.keys.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/to-object.js"),i=n("./node_modules/core-js/internals/object-keys.js");r({target:"Object",stat:!0,forced:n("./node_modules/core-js/internals/fails.js")((function(){i(1)}))},{keys:function(e){return i(o(e))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-string-tag-support.js"),o=n("./node_modules/core-js/internals/define-built-in.js"),i=n("./node_modules/core-js/internals/object-to-string.js");r||o(Object.prototype,"toString",i,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.exec.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/regexp-exec.js");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-name.js").PROPER,o=n("./node_modules/core-js/internals/define-built-in.js"),i=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/to-string.js"),s=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/regexp-get-flags.js"),c=RegExp.prototype,u=c.toString,d=s((function(){return"/a/b"!==u.call({source:"a",flags:"b"})})),f=r&&"toString"!==u.name;(d||f)&&o(c,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/string-multibyte.js").charAt,o=n("./node_modules/core-js/internals/to-string.js"),i=n("./node_modules/core-js/internals/internal-state.js"),a=n("./node_modules/core-js/internals/iterator-define.js"),s=n("./node_modules/core-js/internals/create-iter-result-object.js"),l=i.set,c=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},"./node_modules/core-js/modules/es.string.match.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-call.js"),o=n("./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),i=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/is-null-or-undefined.js"),s=n("./node_modules/core-js/internals/to-length.js"),l=n("./node_modules/core-js/internals/to-string.js"),c=n("./node_modules/core-js/internals/require-object-coercible.js"),u=n("./node_modules/core-js/internals/get-method.js"),d=n("./node_modules/core-js/internals/advance-string-index.js"),f=n("./node_modules/core-js/internals/regexp-exec-abstract.js");o("match",(function(e,t,n){return[function(t){var n=c(this),o=a(t)?void 0:u(t,e);return o?r(o,t,n):new RegExp(t)[e](l(n))},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;if(!r.global)return f(r,o);var c=r.unicode;r.lastIndex=0;for(var u,h=[],p=0;null!==(u=f(r,o));){var m=l(u[0]);h[p]=m,""===m&&(r.lastIndex=d(o,s(r.lastIndex),c)),p++}return 0===p?null:h}]}))},"./node_modules/core-js/modules/es.string.replace.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/function-apply.js"),o=n("./node_modules/core-js/internals/function-call.js"),i=n("./node_modules/core-js/internals/function-uncurry-this.js"),a=n("./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),s=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/an-object.js"),c=n("./node_modules/core-js/internals/is-callable.js"),u=n("./node_modules/core-js/internals/is-null-or-undefined.js"),d=n("./node_modules/core-js/internals/to-integer-or-infinity.js"),f=n("./node_modules/core-js/internals/to-length.js"),h=n("./node_modules/core-js/internals/to-string.js"),p=n("./node_modules/core-js/internals/require-object-coercible.js"),m=n("./node_modules/core-js/internals/advance-string-index.js"),g=n("./node_modules/core-js/internals/get-method.js"),v=n("./node_modules/core-js/internals/get-substitution.js"),y=n("./node_modules/core-js/internals/regexp-exec-abstract.js"),b=n("./node_modules/core-js/internals/well-known-symbol.js")("replace"),x=Math.max,_=Math.min,w=i([].concat),j=i([].push),k=i("".indexOf),T=i("".slice),A="$0"==="a".replace(/./,"$0"),M=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,n){var i=M?"$":"$0";return[function(e,n){var r=p(this),i=u(e)?void 0:g(e,b);return i?o(i,e,r,n):o(t,h(r),e,n)},function(e,o){var a=l(this),s=h(e);if("string"==typeof o&&-1===k(o,i)&&-1===k(o,"$<")){var u=n(t,a,s,o);if(u.done)return u.value}var p=c(o);p||(o=h(o));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);for(var A,M=[];null!==(A=y(a,s))&&(j(M,A),b);){""===h(A[0])&&(a.lastIndex=m(s,f(a.lastIndex),g))}for(var S,C="",E=0,L=0;L<M.length;L++){for(var O,R=h((A=M[L])[0]),I=x(_(d(A.index),s.length),0),P=[],D=1;D<A.length;D++)j(P,void 0===(S=A[D])?S:String(S));var z=A.groups;if(p){var N=w([R],P,I,s);void 0!==z&&j(N,z),O=h(r(o,void 0,N))}else O=v(R,s,I,P,z,o);I>=E&&(C+=T(s,E,I)+O,E=I+R.length)}return C+T(s,E)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!A||M)},"./node_modules/core-js/modules/es.symbol.constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/function-call.js"),a=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/is-pure.js"),l=n("./node_modules/core-js/internals/descriptors.js"),c=n("./node_modules/core-js/internals/symbol-constructor-detection.js"),u=n("./node_modules/core-js/internals/fails.js"),d=n("./node_modules/core-js/internals/has-own-property.js"),f=n("./node_modules/core-js/internals/object-is-prototype-of.js"),h=n("./node_modules/core-js/internals/an-object.js"),p=n("./node_modules/core-js/internals/to-indexed-object.js"),m=n("./node_modules/core-js/internals/to-property-key.js"),g=n("./node_modules/core-js/internals/to-string.js"),v=n("./node_modules/core-js/internals/create-property-descriptor.js"),y=n("./node_modules/core-js/internals/object-create.js"),b=n("./node_modules/core-js/internals/object-keys.js"),x=n("./node_modules/core-js/internals/object-get-own-property-names.js"),_=n("./node_modules/core-js/internals/object-get-own-property-names-external.js"),w=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),j=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),k=n("./node_modules/core-js/internals/object-define-property.js"),T=n("./node_modules/core-js/internals/object-define-properties.js"),A=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),M=n("./node_modules/core-js/internals/define-built-in.js"),S=n("./node_modules/core-js/internals/define-built-in-accessor.js"),C=n("./node_modules/core-js/internals/shared.js"),E=n("./node_modules/core-js/internals/shared-key.js"),L=n("./node_modules/core-js/internals/hidden-keys.js"),O=n("./node_modules/core-js/internals/uid.js"),R=n("./node_modules/core-js/internals/well-known-symbol.js"),I=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),P=n("./node_modules/core-js/internals/well-known-symbol-define.js"),D=n("./node_modules/core-js/internals/symbol-define-to-primitive.js"),z=n("./node_modules/core-js/internals/set-to-string-tag.js"),N=n("./node_modules/core-js/internals/internal-state.js"),F=n("./node_modules/core-js/internals/array-iteration.js").forEach,B=E("hidden"),U=N.set,H=N.getterFor("Symbol"),V=Object.prototype,G=o.Symbol,q=G&&G.prototype,W=o.RangeError,Y=o.TypeError,X=o.QObject,Z=j.f,$=k.f,K=_.f,J=A.f,Q=a([].push),ee=C("symbols"),te=C("op-symbols"),ne=C("wks"),re=!X||!X.prototype||!X.prototype.findChild,oe=function(e,t,n){var r=Z(V,t);r&&delete V[t],$(e,t,n),r&&e!==V&&$(V,t,r)},ie=l&&u((function(){return 7!==y($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?oe:$,ae=function(e,t){var n=ee[e]=y(q);return U(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},se=function(e,t,n){e===V&&se(te,t,n),h(e);var r=m(t);return h(n),d(ee,r)?(n.enumerable?(d(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,B)||$(e,B,v(1,y(null))),e[B][r]=!0),ie(e,r,n)):$(e,r,n)},le=function(e,t){h(e);var n=p(t),r=b(n).concat(fe(n));return F(r,(function(t){l&&!i(ce,n,t)||se(e,t,n[t])})),e},ce=function(e){var t=m(e),n=i(J,this,t);return!(this===V&&d(ee,t)&&!d(te,t))&&(!(n||!d(this,t)||!d(ee,t)||d(this,B)&&this[B][t])||n)},ue=function(e,t){var n=p(e),r=m(t);if(n!==V||!d(ee,r)||d(te,r)){var o=Z(n,r);return!o||!d(ee,r)||d(n,B)&&n[B][r]||(o.enumerable=!0),o}},de=function(e){var t=K(p(e)),n=[];return F(t,(function(e){d(ee,e)||d(L,e)||Q(n,e)})),n},fe=function(e){var t=e===V,n=K(t?te:p(e)),r=[];return F(n,(function(e){!d(ee,e)||t&&!d(V,e)||Q(r,ee[e])})),r};c||(M(q=(G=function(){if(f(q,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=O(e),n=function(e){var r=void 0===this?o:this;r===V&&i(n,te,e),d(r,B)&&d(r[B],t)&&(r[B][t]=!1);var a=v(1,e);try{ie(r,t,a)}catch(e){if(!(e instanceof W))throw e;oe(r,t,a)}};return l&&re&&ie(V,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return H(this).tag})),M(G,"withoutSetter",(function(e){return ae(O(e),e)})),A.f=ce,k.f=se,T.f=le,j.f=ue,x.f=_.f=de,w.f=fe,I.f=function(e){return ae(R(e),e)},l&&(S(q,"description",{configurable:!0,get:function(){return H(this).description}}),s||M(V,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),F(b(ne),(function(e){P(e)})),r({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?y(e):le(y(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:de}),D(),z(G,"Symbol"),L[B]=!0},"./node_modules/core-js/modules/es.symbol.description.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/global.js"),a=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/has-own-property.js"),l=n("./node_modules/core-js/internals/is-callable.js"),c=n("./node_modules/core-js/internals/object-is-prototype-of.js"),u=n("./node_modules/core-js/internals/to-string.js"),d=n("./node_modules/core-js/internals/define-built-in-accessor.js"),f=n("./node_modules/core-js/internals/copy-constructor-properties.js"),h=i.Symbol,p=h&&h.prototype;if(o&&l(h)&&(!("description"in p)||void 0!==h().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(p,this)?new h(e):void 0===e?h():h(e);return""===e&&(m[t]=!0),t};f(g,h),g.prototype=p,p.constructor=g;var v="Symbol(description detection)"===String(h("description detection")),y=a(p.valueOf),b=a(p.toString),x=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),w=a("".slice);d(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(m,e))return"";var t=b(e),n=v?w(t,7,-1):_(t,x,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},"./node_modules/core-js/modules/es.symbol.for.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/get-built-in.js"),i=n("./node_modules/core-js/internals/has-own-property.js"),a=n("./node_modules/core-js/internals/to-string.js"),s=n("./node_modules/core-js/internals/shared.js"),l=n("./node_modules/core-js/internals/symbol-registry-detection.js"),c=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(c,t))return c[t];var n=o("Symbol")(t);return c[t]=n,u[n]=t,n}})},"./node_modules/core-js/modules/es.symbol.iterator.js":function(e,t,n){"use strict";n("./node_modules/core-js/internals/well-known-symbol-define.js")("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es.symbol.constructor.js"),n("./node_modules/core-js/modules/es.symbol.for.js"),n("./node_modules/core-js/modules/es.symbol.key-for.js"),n("./node_modules/core-js/modules/es.json.stringify.js"),n("./node_modules/core-js/modules/es.object.get-own-property-symbols.js")},"./node_modules/core-js/modules/es.symbol.key-for.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/has-own-property.js"),i=n("./node_modules/core-js/internals/is-symbol.js"),a=n("./node_modules/core-js/internals/try-to-string.js"),s=n("./node_modules/core-js/internals/shared.js"),l=n("./node_modules/core-js/internals/symbol-registry-detection.js"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(c,e))return c[e]}})},"./node_modules/core-js/modules/es.symbol.to-primitive.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/well-known-symbol-define.js"),o=n("./node_modules/core-js/internals/symbol-define-to-primitive.js");r("toPrimitive"),o()},"./node_modules/core-js/modules/es.weak-map.constructor.js":function(e,t,n){"use strict";var r,o=n("./node_modules/core-js/internals/freezing.js"),i=n("./node_modules/core-js/internals/global.js"),a=n("./node_modules/core-js/internals/function-uncurry-this.js"),s=n("./node_modules/core-js/internals/define-built-ins.js"),l=n("./node_modules/core-js/internals/internal-metadata.js"),c=n("./node_modules/core-js/internals/collection.js"),u=n("./node_modules/core-js/internals/collection-weak.js"),d=n("./node_modules/core-js/internals/is-object.js"),f=n("./node_modules/core-js/internals/internal-state.js").enforce,h=n("./node_modules/core-js/internals/fails.js"),p=n("./node_modules/core-js/internals/weak-map-basic-detection.js"),m=Object,g=Array.isArray,v=m.isExtensible,y=m.isFrozen,b=m.isSealed,x=m.freeze,_=m.seal,w=!i.ActiveXObject&&"ActiveXObject"in i,j=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},k=c("WeakMap",j,u),T=k.prototype,A=a(T.set);if(p)if(w){r=u.getConstructor(j,"WeakMap",!0),l.enable();var M=a(T.delete),S=a(T.has),C=a(T.get);s(T,{delete:function(e){if(d(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new r),M(this,e)||t.frozen.delete(e)}return M(this,e)},has:function(e){if(d(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new r),S(this,e)||t.frozen.has(e)}return S(this,e)},get:function(e){if(d(e)&&!v(e)){var t=f(this);return t.frozen||(t.frozen=new r),S(this,e)?C(this,e):t.frozen.get(e)}return C(this,e)},set:function(e,t){if(d(e)&&!v(e)){var n=f(this);n.frozen||(n.frozen=new r),S(this,e)?A(this,e,t):n.frozen.set(e,t)}else A(this,e,t);return this}})}else o&&h((function(){var e=x([]);return A(new k,e,1),!y(e)}))&&s(T,{set:function(e,t){var n;return g(e)&&(y(e)?n=x:b(e)&&(n=_)),A(this,e,t),n&&n(e),this}})},"./node_modules/core-js/modules/es.weak-map.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es.weak-map.constructor.js")},"./node_modules/core-js/modules/esnext.weak-map.delete-all.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),o=n("./node_modules/core-js/internals/a-weak-map.js"),i=n("./node_modules/core-js/internals/weak-map-helpers.js").remove;r({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),n=!0,r=0,a=arguments.length;r<a;r++)e=i(t,arguments[r]),n=n&&e;return!!n}})},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global.js"),o=n("./node_modules/core-js/internals/dom-iterables.js"),i=n("./node_modules/core-js/internals/dom-token-list-prototype.js"),a=n("./node_modules/core-js/internals/array-for-each.js"),s=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in o)o[c]&&l(r[c]&&r[c].prototype);l(i)},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/global.js"),o=n("./node_modules/core-js/internals/dom-iterables.js"),i=n("./node_modules/core-js/internals/dom-token-list-prototype.js"),a=n("./node_modules/core-js/modules/es.array.iterator.js"),s=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=n("./node_modules/core-js/internals/set-to-string-tag.js"),c=n("./node_modules/core-js/internals/well-known-symbol.js")("iterator"),u=a.values,d=function(e,t){if(e){if(e[c]!==u)try{s(e,c,u)}catch(t){e[c]=u}if(l(e,t,!0),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)d(r[f]&&r[f].prototype,f);d(i,"DOMTokenList")},"./node_modules/css-color-names/css-color-names.json":function(e){e.exports=JSON.parse('{"aliceblue":"#f0f8ff","antiquewhite":"#faebd7","aqua":"#00ffff","aquamarine":"#7fffd4","azure":"#f0ffff","beige":"#f5f5dc","bisque":"#ffe4c4","black":"#000000","blanchedalmond":"#ffebcd","blue":"#0000ff","blueviolet":"#8a2be2","brown":"#a52a2a","burlywood":"#deb887","cadetblue":"#5f9ea0","chartreuse":"#7fff00","chocolate":"#d2691e","coral":"#ff7f50","cornflowerblue":"#6495ed","cornsilk":"#fff8dc","crimson":"#dc143c","cyan":"#00ffff","darkblue":"#00008b","darkcyan":"#008b8b","darkgoldenrod":"#b8860b","darkgray":"#a9a9a9","darkgreen":"#006400","darkgrey":"#a9a9a9","darkkhaki":"#bdb76b","darkmagenta":"#8b008b","darkolivegreen":"#556b2f","darkorange":"#ff8c00","darkorchid":"#9932cc","darkred":"#8b0000","darksalmon":"#e9967a","darkseagreen":"#8fbc8f","darkslateblue":"#483d8b","darkslategray":"#2f4f4f","darkslategrey":"#2f4f4f","darkturquoise":"#00ced1","darkviolet":"#9400d3","deeppink":"#ff1493","deepskyblue":"#00bfff","dimgray":"#696969","dimgrey":"#696969","dodgerblue":"#1e90ff","firebrick":"#b22222","floralwhite":"#fffaf0","forestgreen":"#228b22","fuchsia":"#ff00ff","gainsboro":"#dcdcdc","ghostwhite":"#f8f8ff","gold":"#ffd700","goldenrod":"#daa520","gray":"#808080","green":"#008000","greenyellow":"#adff2f","grey":"#808080","honeydew":"#f0fff0","hotpink":"#ff69b4","indianred":"#cd5c5c","indigo":"#4b0082","ivory":"#fffff0","khaki":"#f0e68c","lavender":"#e6e6fa","lavenderblush":"#fff0f5","lawngreen":"#7cfc00","lemonchiffon":"#fffacd","lightblue":"#add8e6","lightcoral":"#f08080","lightcyan":"#e0ffff","lightgoldenrodyellow":"#fafad2","lightgray":"#d3d3d3","lightgreen":"#90ee90","lightgrey":"#d3d3d3","lightpink":"#ffb6c1","lightsalmon":"#ffa07a","lightseagreen":"#20b2aa","lightskyblue":"#87cefa","lightslategray":"#778899","lightslategrey":"#778899","lightsteelblue":"#b0c4de","lightyellow":"#ffffe0","lime":"#00ff00","limegreen":"#32cd32","linen":"#faf0e6","magenta":"#ff00ff","maroon":"#800000","mediumaquamarine":"#66cdaa","mediumblue":"#0000cd","mediumorchid":"#ba55d3","mediumpurple":"#9370db","mediumseagreen":"#3cb371","mediumslateblue":"#7b68ee","mediumspringgreen":"#00fa9a","mediumturquoise":"#48d1cc","mediumvioletred":"#c71585","midnightblue":"#191970","mintcream":"#f5fffa","mistyrose":"#ffe4e1","moccasin":"#ffe4b5","navajowhite":"#ffdead","navy":"#000080","oldlace":"#fdf5e6","olive":"#808000","olivedrab":"#6b8e23","orange":"#ffa500","orangered":"#ff4500","orchid":"#da70d6","palegoldenrod":"#eee8aa","palegreen":"#98fb98","paleturquoise":"#afeeee","palevioletred":"#db7093","papayawhip":"#ffefd5","peachpuff":"#ffdab9","peru":"#cd853f","pink":"#ffc0cb","plum":"#dda0dd","powderblue":"#b0e0e6","purple":"#800080","rebeccapurple":"#663399","red":"#ff0000","rosybrown":"#bc8f8f","royalblue":"#4169e1","saddlebrown":"#8b4513","salmon":"#fa8072","sandybrown":"#f4a460","seagreen":"#2e8b57","seashell":"#fff5ee","sienna":"#a0522d","silver":"#c0c0c0","skyblue":"#87ceeb","slateblue":"#6a5acd","slategray":"#708090","slategrey":"#708090","snow":"#fffafa","springgreen":"#00ff7f","steelblue":"#4682b4","tan":"#d2b48c","teal":"#008080","thistle":"#d8bfd8","tomato":"#ff6347","turquoise":"#40e0d0","violet":"#ee82ee","wheat":"#f5deb3","white":"#ffffff","whitesmoke":"#f5f5f5","yellow":"#ffff00","yellowgreen":"#9acd32"}')},"./node_modules/d3-time-format/src/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,"timeFormatDefaultLocale",(function(){return Pe})),n.d(t,"timeFormat",(function(){return p})),n.d(t,"timeParse",(function(){return m})),n.d(t,"utcFormat",(function(){return g})),n.d(t,"utcParse",(function(){return v})),n.d(t,"timeFormatLocale",(function(){return f})),n.d(t,"isoFormat",(function(){return De})),n.d(t,"isoParse",(function(){return ze}));var r=n("./node_modules/d3-time/src/utcWeek.js"),o=n("./node_modules/d3-time/src/utcDay.js"),i=n("./node_modules/d3-time/src/week.js"),a=n("./node_modules/d3-time/src/day.js"),s=n("./node_modules/d3-time/src/year.js"),l=n("./node_modules/d3-time/src/utcYear.js");function c(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function u(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function d(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function f(e){var t=e.dateTime,n=e.date,s=e.time,l=e.periods,f=e.days,h=e.shortDays,p=e.months,m=e.shortMonths,g=k(l),v=T(l),b=k(f),x=T(f),_=k(h),w=T(h),j=k(p),re=T(p),je=k(m),Pe=T(m),De={a:function(e){return h[e.getDay()]},A:function(e){return f[e.getDay()]},b:function(e){return m[e.getMonth()]},B:function(e){return p[e.getMonth()]},c:null,d:W,e:W,f:K,g:le,G:ue,H:Y,I:X,j:Z,L:$,m:J,M:Q,p:function(e){return l[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Re,s:Ie,S:ee,u:te,U:ne,V:oe,w:ie,W:ae,x:null,X:null,y:se,Y:ce,Z:de,"%":Oe},ze={a:function(e){return h[e.getUTCDay()]},A:function(e){return f[e.getUTCDay()]},b:function(e){return m[e.getUTCMonth()]},B:function(e){return p[e.getUTCMonth()]},c:null,d:fe,e:fe,f:ve,g:Se,G:Ee,H:he,I:pe,j:me,L:ge,m:ye,M:be,p:function(e){return l[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Re,s:Ie,S:xe,u:_e,U:we,V:ke,w:Te,W:Ae,x:null,X:null,y:Me,Y:Ce,Z:Le,"%":Oe},Ne={a:function(e,t,n){var r=_.exec(t.slice(n));return r?(e.w=w[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.w=x[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=je.exec(t.slice(n));return r?(e.m=Pe[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=j.exec(t.slice(n));return r?(e.m=re[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return Ue(e,t,n,r)},d:D,e:D,f:H,g:O,G:L,H:N,I:N,j:z,L:U,m:P,M:F,p:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.p=v[r[0].toLowerCase()],n+r[0].length):-1},q:I,Q:G,s:q,S:B,u:M,U:S,V:C,w:A,W:E,x:function(e,t,r){return Ue(e,n,t,r)},X:function(e,t,n){return Ue(e,s,t,n)},y:O,Y:L,Z:R,"%":V};function Fe(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=y[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function Be(e,t){return function(n){var s,l,f=d(1900,void 0,1);if(Ue(f,e,n+="",0)!=n.length)return null;if("Q"in f)return new Date(f.Q);if("s"in f)return new Date(1e3*f.s+("L"in f?f.L:0));if(t&&!("Z"in f)&&(f.Z=0),"p"in f&&(f.H=f.H%12+12*f.p),void 0===f.m&&(f.m="q"in f?f.q:0),"V"in f){if(f.V<1||f.V>53)return null;"w"in f||(f.w=1),"Z"in f?(l=(s=u(d(f.y,0,1))).getUTCDay(),s=l>4||0===l?r.c.ceil(s):Object(r.c)(s),s=o.a.offset(s,7*(f.V-1)),f.y=s.getUTCFullYear(),f.m=s.getUTCMonth(),f.d=s.getUTCDate()+(f.w+6)%7):(l=(s=c(d(f.y,0,1))).getDay(),s=l>4||0===l?i.c.ceil(s):Object(i.c)(s),s=a.b.offset(s,7*(f.V-1)),f.y=s.getFullYear(),f.m=s.getMonth(),f.d=s.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),l="Z"in f?u(d(f.y,0,1)).getUTCDay():c(d(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+7*f.W-(l+5)%7:f.w+7*f.U-(l+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,u(f)):c(f)}}function Ue(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=Ne[o in y?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return De.x=Fe(n,De),De.X=Fe(s,De),De.c=Fe(t,De),ze.x=Fe(n,ze),ze.X=Fe(s,ze),ze.c=Fe(t,ze),{format:function(e){var t=Fe(e+="",De);return t.toString=function(){return e},t},parse:function(e){var t=Be(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Fe(e+="",ze);return t.toString=function(){return e},t},utcParse:function(e){var t=Be(e+="",!0);return t.toString=function(){return e},t}}}var h,p,m,g,v,y={"-":"",_:" ",0:"0"},b=/^\s*\d+/,x=/^%/,_=/[\\^$*+?|[\]().{}]/g;function w(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function j(e){return e.replace(_,"\\$&")}function k(e){return new RegExp("^(?:"+e.map(j).join("|")+")","i")}function T(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function A(e,t,n){var r=b.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function M(e,t,n){var r=b.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function C(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function E(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function L(e,t,n){var r=b.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function O(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function R(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function I(e,t,n){var r=b.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function P(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function D(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function z(e,t,n){var r=b.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function N(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function F(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function B(e,t,n){var r=b.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function U(e,t,n){var r=b.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function H(e,t,n){var r=b.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function V(e,t,n){var r=x.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function G(e,t,n){var r=b.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function q(e,t,n){var r=b.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function W(e,t){return w(e.getDate(),t,2)}function Y(e,t){return w(e.getHours(),t,2)}function X(e,t){return w(e.getHours()%12||12,t,2)}function Z(e,t){return w(1+a.b.count(Object(s.a)(e),e),t,3)}function $(e,t){return w(e.getMilliseconds(),t,3)}function K(e,t){return $(e,t)+"000"}function J(e,t){return w(e.getMonth()+1,t,2)}function Q(e,t){return w(e.getMinutes(),t,2)}function ee(e,t){return w(e.getSeconds(),t,2)}function te(e){var t=e.getDay();return 0===t?7:t}function ne(e,t){return w(i.g.count(Object(s.a)(e)-1,e),t,2)}function re(e){var t=e.getDay();return t>=4||0===t?Object(i.i)(e):i.i.ceil(e)}function oe(e,t){return e=re(e),w(i.i.count(Object(s.a)(e),e)+(4===Object(s.a)(e).getDay()),t,2)}function ie(e){return e.getDay()}function ae(e,t){return w(i.c.count(Object(s.a)(e)-1,e),t,2)}function se(e,t){return w(e.getFullYear()%100,t,2)}function le(e,t){return w((e=re(e)).getFullYear()%100,t,2)}function ce(e,t){return w(e.getFullYear()%1e4,t,4)}function ue(e,t){var n=e.getDay();return w((e=n>=4||0===n?Object(i.i)(e):i.i.ceil(e)).getFullYear()%1e4,t,4)}function de(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+w(t/60|0,"0",2)+w(t%60,"0",2)}function fe(e,t){return w(e.getUTCDate(),t,2)}function he(e,t){return w(e.getUTCHours(),t,2)}function pe(e,t){return w(e.getUTCHours()%12||12,t,2)}function me(e,t){return w(1+o.a.count(Object(l.a)(e),e),t,3)}function ge(e,t){return w(e.getUTCMilliseconds(),t,3)}function ve(e,t){return ge(e,t)+"000"}function ye(e,t){return w(e.getUTCMonth()+1,t,2)}function be(e,t){return w(e.getUTCMinutes(),t,2)}function xe(e,t){return w(e.getUTCSeconds(),t,2)}function _e(e){var t=e.getUTCDay();return 0===t?7:t}function we(e,t){return w(r.g.count(Object(l.a)(e)-1,e),t,2)}function je(e){var t=e.getUTCDay();return t>=4||0===t?Object(r.i)(e):r.i.ceil(e)}function ke(e,t){return e=je(e),w(r.i.count(Object(l.a)(e),e)+(4===Object(l.a)(e).getUTCDay()),t,2)}function Te(e){return e.getUTCDay()}function Ae(e,t){return w(r.c.count(Object(l.a)(e)-1,e),t,2)}function Me(e,t){return w(e.getUTCFullYear()%100,t,2)}function Se(e,t){return w((e=je(e)).getUTCFullYear()%100,t,2)}function Ce(e,t){return w(e.getUTCFullYear()%1e4,t,4)}function Ee(e,t){var n=e.getUTCDay();return w((e=n>=4||0===n?Object(r.i)(e):r.i.ceil(e)).getUTCFullYear()%1e4,t,4)}function Le(){return"+0000"}function Oe(){return"%"}function Re(e){return+e}function Ie(e){return Math.floor(+e/1e3)}function Pe(e){return h=f(e),p=h.format,m=h.parse,g=h.utcFormat,v=h.utcParse,h}Pe({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"]});var De=Date.prototype.toISOString?function(e){return e.toISOString()}:g("%Y-%m-%dT%H:%M:%S.%LZ");var ze=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:v("%Y-%m-%dT%H:%M:%S.%LZ")},"./node_modules/d3-time/src/day.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("./node_modules/d3-time/src/interval.js"),o=n("./node_modules/d3-time/src/duration.js"),i=Object(r.a)((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.c)/o.a}),(function(e){return e.getDate()-1}));t.b=i;var a=i.range},"./node_modules/d3-time/src/duration.js":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return s}));var r=1e3,o=6e4,i=36e5,a=864e5,s=6048e5},"./node_modules/d3-time/src/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,"timeInterval",(function(){return r.a})),n.d(t,"timeMillisecond",(function(){return i})),n.d(t,"timeMilliseconds",(function(){return a})),n.d(t,"utcMillisecond",(function(){return i})),n.d(t,"utcMilliseconds",(function(){return a})),n.d(t,"timeSecond",(function(){return c})),n.d(t,"timeSeconds",(function(){return u})),n.d(t,"utcSecond",(function(){return c})),n.d(t,"utcSeconds",(function(){return u})),n.d(t,"timeMinute",(function(){return f})),n.d(t,"timeMinutes",(function(){return h})),n.d(t,"timeHour",(function(){return m})),n.d(t,"timeHours",(function(){return g})),n.d(t,"timeDay",(function(){return v.b})),n.d(t,"timeDays",(function(){return v.a})),n.d(t,"timeWeek",(function(){return y.g})),n.d(t,"timeWeeks",(function(){return y.h})),n.d(t,"timeSunday",(function(){return y.g})),n.d(t,"timeSundays",(function(){return y.h})),n.d(t,"timeMonday",(function(){return y.c})),n.d(t,"timeMondays",(function(){return y.d})),n.d(t,"timeTuesday",(function(){return y.k})),n.d(t,"timeTuesdays",(function(){return y.l})),n.d(t,"timeWednesday",(function(){return y.m})),n.d(t,"timeWednesdays",(function(){return y.n})),n.d(t,"timeThursday",(function(){return y.i})),n.d(t,"timeThursdays",(function(){return y.j})),n.d(t,"timeFriday",(function(){return y.a})),n.d(t,"timeFridays",(function(){return y.b})),n.d(t,"timeSaturday",(function(){return y.e})),n.d(t,"timeSaturdays",(function(){return y.f})),n.d(t,"timeMonth",(function(){return x})),n.d(t,"timeMonths",(function(){return _})),n.d(t,"timeYear",(function(){return w.a})),n.d(t,"timeYears",(function(){return w.b})),n.d(t,"utcMinute",(function(){return k})),n.d(t,"utcMinutes",(function(){return T})),n.d(t,"utcHour",(function(){return M})),n.d(t,"utcHours",(function(){return S})),n.d(t,"utcDay",(function(){return C.a})),n.d(t,"utcDays",(function(){return C.b})),n.d(t,"utcWeek",(function(){return E.g})),n.d(t,"utcWeeks",(function(){return E.h})),n.d(t,"utcSunday",(function(){return E.g})),n.d(t,"utcSundays",(function(){return E.h})),n.d(t,"utcMonday",(function(){return E.c})),n.d(t,"utcMondays",(function(){return E.d})),n.d(t,"utcTuesday",(function(){return E.k})),n.d(t,"utcTuesdays",(function(){return E.l})),n.d(t,"utcWednesday",(function(){return E.m})),n.d(t,"utcWednesdays",(function(){return E.n})),n.d(t,"utcThursday",(function(){return E.i})),n.d(t,"utcThursdays",(function(){return E.j})),n.d(t,"utcFriday",(function(){return E.a})),n.d(t,"utcFridays",(function(){return E.b})),n.d(t,"utcSaturday",(function(){return E.e})),n.d(t,"utcSaturdays",(function(){return E.f})),n.d(t,"utcMonth",(function(){return O})),n.d(t,"utcMonths",(function(){return R})),n.d(t,"utcYear",(function(){return I.a})),n.d(t,"utcYears",(function(){return I.b}));var r=n("./node_modules/d3-time/src/interval.js"),o=Object(r.a)((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Object(r.a)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):o:null};var i=o,a=o.range,s=n("./node_modules/d3-time/src/duration.js"),l=Object(r.a)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*s.d)}),(function(e,t){return(t-e)/s.d}),(function(e){return e.getUTCSeconds()})),c=l,u=l.range,d=Object(r.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*s.d)}),(function(e,t){e.setTime(+e+t*s.c)}),(function(e,t){return(t-e)/s.c}),(function(e){return e.getMinutes()})),f=d,h=d.range,p=Object(r.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*s.d-e.getMinutes()*s.c)}),(function(e,t){e.setTime(+e+t*s.b)}),(function(e,t){return(t-e)/s.b}),(function(e){return e.getHours()})),m=p,g=p.range,v=n("./node_modules/d3-time/src/day.js"),y=n("./node_modules/d3-time/src/week.js"),b=Object(r.a)((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),x=b,_=b.range,w=n("./node_modules/d3-time/src/year.js"),j=Object(r.a)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*s.c)}),(function(e,t){return(t-e)/s.c}),(function(e){return e.getUTCMinutes()})),k=j,T=j.range,A=Object(r.a)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*s.b)}),(function(e,t){return(t-e)/s.b}),(function(e){return e.getUTCHours()})),M=A,S=A.range,C=n("./node_modules/d3-time/src/utcDay.js"),E=n("./node_modules/d3-time/src/utcWeek.js"),L=Object(r.a)((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),O=L,R=L.range,I=n("./node_modules/d3-time/src/utcYear.js")},"./node_modules/d3-time/src/interval.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=new Date,o=new Date;function i(e,t,n,a){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=function(t){return e(t=new Date(+t)),t},s.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t<n-e?t:n},s.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},s.range=function(n,r,o){var i,a=[];if(n=s.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(i=new Date(+n)),t(n,o),e(n)}while(i<n&&n<r);return a},s.filter=function(n){return i((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(s.count=function(t,i){return r.setTime(+t),o.setTime(+i),e(r),e(o),Math.floor(n(r,o))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}},"./node_modules/d3-time/src/utcDay.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n("./node_modules/d3-time/src/interval.js"),o=n("./node_modules/d3-time/src/duration.js"),i=Object(r.a)((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/o.a}),(function(e){return e.getUTCDate()-1}));t.a=i;var a=i.range},"./node_modules/d3-time/src/utcWeek.js":function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"k",(function(){return l})),n.d(t,"m",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"h",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"l",(function(){return m})),n.d(t,"n",(function(){return g})),n.d(t,"j",(function(){return v})),n.d(t,"b",(function(){return y})),n.d(t,"f",(function(){return b}));var r=n("./node_modules/d3-time/src/interval.js"),o=n("./node_modules/d3-time/src/duration.js");function i(e){return Object(r.a)((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/o.e}))}var a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),d=i(5),f=i(6),h=a.range,p=s.range,m=l.range,g=c.range,v=u.range,y=d.range,b=f.range},"./node_modules/d3-time/src/utcYear.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n("./node_modules/d3-time/src/interval.js"),o=Object(r.a)((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(r.a)((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},t.a=o;var i=o.range},"./node_modules/d3-time/src/week.js":function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"k",(function(){return l})),n.d(t,"m",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"h",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"l",(function(){return m})),n.d(t,"n",(function(){return g})),n.d(t,"j",(function(){return v})),n.d(t,"b",(function(){return y})),n.d(t,"f",(function(){return b}));var r=n("./node_modules/d3-time/src/interval.js"),o=n("./node_modules/d3-time/src/duration.js");function i(e){return Object(r.a)((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.c)/o.e}))}var a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),d=i(5),f=i(6),h=a.range,p=s.range,m=l.range,g=c.range,v=u.range,y=d.range,b=f.range},"./node_modules/d3-time/src/year.js":function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n("./node_modules/d3-time/src/interval.js"),o=Object(r.a)((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(r.a)((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},t.a=o;var i=o.range},"./node_modules/dtype/index.js":function(e,t){e.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}},"./node_modules/events/events.js":function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,n)}(e,o,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var o,i,a,s;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):g(o,o.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,u=g(l,c);for(n=0;n<c;++n)i(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},"./node_modules/fast-isnumeric/index.js":function(e,t,n){"use strict";var r=n("./node_modules/is-string-blank/index.js");e.exports=function(e){var t=typeof e;if("string"===t){var n=e;if(0===(e=+e)&&r(n))return!1}else if("number"!==t)return!1;return e-e<1}},"./node_modules/get-canvas-context/index.js":function(e,t){e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("must specify type string");if(t=t||{},"undefined"==typeof document&&!t.canvas)return null;var n=t.canvas||document.createElement("canvas");"number"==typeof t.width&&(n.width=t.width);"number"==typeof t.height&&(n.height=t.height);var r,o=t;try{var i=[e];0===e.indexOf("webgl")&&i.push("experimental-"+e);for(var a=0;a<i.length;a++)if(r=n.getContext(i[a],o))return r}catch(e){r=null}return r||null}},"./node_modules/gl-mat4/adjoint.js":function(e,t){e.exports=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],f=t[10],h=t[11],p=t[12],m=t[13],g=t[14],v=t[15];return e[0]=s*(f*v-h*g)-d*(l*v-c*g)+m*(l*h-c*f),e[1]=-(r*(f*v-h*g)-d*(o*v-i*g)+m*(o*h-i*f)),e[2]=r*(l*v-c*g)-s*(o*v-i*g)+m*(o*c-i*l),e[3]=-(r*(l*h-c*f)-s*(o*h-i*f)+d*(o*c-i*l)),e[4]=-(a*(f*v-h*g)-u*(l*v-c*g)+p*(l*h-c*f)),e[5]=n*(f*v-h*g)-u*(o*v-i*g)+p*(o*h-i*f),e[6]=-(n*(l*v-c*g)-a*(o*v-i*g)+p*(o*c-i*l)),e[7]=n*(l*h-c*f)-a*(o*h-i*f)+u*(o*c-i*l),e[8]=a*(d*v-h*m)-u*(s*v-c*m)+p*(s*h-c*d),e[9]=-(n*(d*v-h*m)-u*(r*v-i*m)+p*(r*h-i*d)),e[10]=n*(s*v-c*m)-a*(r*v-i*m)+p*(r*c-i*s),e[11]=-(n*(s*h-c*d)-a*(r*h-i*d)+u*(r*c-i*s)),e[12]=-(a*(d*g-f*m)-u*(s*g-l*m)+p*(s*f-l*d)),e[13]=n*(d*g-f*m)-u*(r*g-o*m)+p*(r*f-o*d),e[14]=-(n*(s*g-l*m)-a*(r*g-o*m)+p*(r*l-o*s)),e[15]=n*(s*f-l*d)-a*(r*f-o*d)+u*(r*l-o*s),e}},"./node_modules/gl-mat4/clone.js":function(e,t){e.exports=function(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},"./node_modules/gl-mat4/copy.js":function(e,t){e.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},"./node_modules/gl-mat4/create.js":function(e,t){e.exports=function(){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}},"./node_modules/gl-mat4/determinant.js":function(e,t){e.exports=function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],m=e[14],g=e[15];return(t*a-n*i)*(d*g-f*m)-(t*s-r*i)*(u*g-f*p)+(t*l-o*i)*(u*m-d*p)+(n*s-r*a)*(c*g-f*h)-(n*l-o*a)*(c*m-d*h)+(r*l-o*s)*(c*p-u*h)}},"./node_modules/gl-mat4/fromQuat.js":function(e,t){e.exports=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n+n,s=r+r,l=o+o,c=n*a,u=r*a,d=r*s,f=o*a,h=o*s,p=o*l,m=i*a,g=i*s,v=i*l;return e[0]=1-d-p,e[1]=u+v,e[2]=f-g,e[3]=0,e[4]=u-v,e[5]=1-c-p,e[6]=h+m,e[7]=0,e[8]=f+g,e[9]=h-m,e[10]=1-c-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},"./node_modules/gl-mat4/fromRotation.js":function(e,t){e.exports=function(e,t,n){var r,o,i,a=n[0],s=n[1],l=n[2],c=Math.sqrt(a*a+s*s+l*l);if(Math.abs(c)<1e-6)return null;return a*=c=1/c,s*=c,l*=c,r=Math.sin(t),o=Math.cos(t),i=1-o,e[0]=a*a*i+o,e[1]=s*a*i+l*r,e[2]=l*a*i-s*r,e[3]=0,e[4]=a*s*i-l*r,e[5]=s*s*i+o,e[6]=l*s*i+a*r,e[7]=0,e[8]=a*l*i+s*r,e[9]=s*l*i-a*r,e[10]=l*l*i+o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},"./node_modules/gl-mat4/fromRotationTranslation.js":function(e,t){e.exports=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],s=r+r,l=o+o,c=i+i,u=r*s,d=r*l,f=r*c,h=o*l,p=o*c,m=i*c,g=a*s,v=a*l,y=a*c;return e[0]=1-(h+m),e[1]=d+y,e[2]=f-v,e[3]=0,e[4]=d-y,e[5]=1-(u+m),e[6]=p+g,e[7]=0,e[8]=f+v,e[9]=p-g,e[10]=1-(u+h),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}},"./node_modules/gl-mat4/fromScaling.js":function(e,t){e.exports=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},"./node_modules/gl-mat4/fromTranslation.js":function(e,t){e.exports=function(e,t){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]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}},"./node_modules/gl-mat4/fromXRotation.js":function(e,t){e.exports=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},"./node_modules/gl-mat4/fromYRotation.js":function(e,t){e.exports=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},"./node_modules/gl-mat4/fromZRotation.js":function(e,t){e.exports=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,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}},"./node_modules/gl-mat4/frustum.js":function(e,t){e.exports=function(e,t,n,r,o,i,a){var s=1/(n-t),l=1/(o-r),c=1/(i-a);return e[0]=2*i*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*l,e[6]=0,e[7]=0,e[8]=(n+t)*s,e[9]=(o+r)*l,e[10]=(a+i)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*i*2*c,e[15]=0,e}},"./node_modules/gl-mat4/identity.js":function(e,t){e.exports=function(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}},"./node_modules/gl-mat4/index.js":function(e,t,n){e.exports={create:n("./node_modules/gl-mat4/create.js"),clone:n("./node_modules/gl-mat4/clone.js"),copy:n("./node_modules/gl-mat4/copy.js"),identity:n("./node_modules/gl-mat4/identity.js"),transpose:n("./node_modules/gl-mat4/transpose.js"),invert:n("./node_modules/gl-mat4/invert.js"),adjoint:n("./node_modules/gl-mat4/adjoint.js"),determinant:n("./node_modules/gl-mat4/determinant.js"),multiply:n("./node_modules/gl-mat4/multiply.js"),translate:n("./node_modules/gl-mat4/translate.js"),scale:n("./node_modules/gl-mat4/scale.js"),rotate:n("./node_modules/gl-mat4/rotate.js"),rotateX:n("./node_modules/gl-mat4/rotateX.js"),rotateY:n("./node_modules/gl-mat4/rotateY.js"),rotateZ:n("./node_modules/gl-mat4/rotateZ.js"),fromRotation:n("./node_modules/gl-mat4/fromRotation.js"),fromRotationTranslation:n("./node_modules/gl-mat4/fromRotationTranslation.js"),fromScaling:n("./node_modules/gl-mat4/fromScaling.js"),fromTranslation:n("./node_modules/gl-mat4/fromTranslation.js"),fromXRotation:n("./node_modules/gl-mat4/fromXRotation.js"),fromYRotation:n("./node_modules/gl-mat4/fromYRotation.js"),fromZRotation:n("./node_modules/gl-mat4/fromZRotation.js"),fromQuat:n("./node_modules/gl-mat4/fromQuat.js"),frustum:n("./node_modules/gl-mat4/frustum.js"),perspective:n("./node_modules/gl-mat4/perspective.js"),perspectiveFromFieldOfView:n("./node_modules/gl-mat4/perspectiveFromFieldOfView.js"),ortho:n("./node_modules/gl-mat4/ortho.js"),lookAt:n("./node_modules/gl-mat4/lookAt.js"),str:n("./node_modules/gl-mat4/str.js")}},"./node_modules/gl-mat4/invert.js":function(e,t){e.exports=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],f=t[10],h=t[11],p=t[12],m=t[13],g=t[14],v=t[15],y=n*s-r*a,b=n*l-o*a,x=n*c-i*a,_=r*l-o*s,w=r*c-i*s,j=o*c-i*l,k=u*m-d*p,T=u*g-f*p,A=u*v-h*p,M=d*g-f*m,S=d*v-h*m,C=f*v-h*g,E=y*C-b*S+x*M+_*A-w*T+j*k;if(!E)return null;return E=1/E,e[0]=(s*C-l*S+c*M)*E,e[1]=(o*S-r*C-i*M)*E,e[2]=(m*j-g*w+v*_)*E,e[3]=(f*w-d*j-h*_)*E,e[4]=(l*A-a*C-c*T)*E,e[5]=(n*C-o*A+i*T)*E,e[6]=(g*x-p*j-v*b)*E,e[7]=(u*j-f*x+h*b)*E,e[8]=(a*S-s*A+c*k)*E,e[9]=(r*A-n*S-i*k)*E,e[10]=(p*w-m*x+v*y)*E,e[11]=(d*x-u*w-h*y)*E,e[12]=(s*T-a*M-l*k)*E,e[13]=(n*M-r*T+o*k)*E,e[14]=(m*b-p*_-g*y)*E,e[15]=(u*_-d*b+f*y)*E,e}},"./node_modules/gl-mat4/lookAt.js":function(e,t,n){var r=n("./node_modules/gl-mat4/identity.js");e.exports=function(e,t,n,o){var i,a,s,l,c,u,d,f,h,p,m=t[0],g=t[1],v=t[2],y=o[0],b=o[1],x=o[2],_=n[0],w=n[1],j=n[2];if(Math.abs(m-_)<1e-6&&Math.abs(g-w)<1e-6&&Math.abs(v-j)<1e-6)return r(e);d=m-_,f=g-w,h=v-j,p=1/Math.sqrt(d*d+f*f+h*h),i=b*(h*=p)-x*(f*=p),a=x*(d*=p)-y*h,s=y*f-b*d,(p=Math.sqrt(i*i+a*a+s*s))?(i*=p=1/p,a*=p,s*=p):(i=0,a=0,s=0);l=f*s-h*a,c=h*i-d*s,u=d*a-f*i,(p=Math.sqrt(l*l+c*c+u*u))?(l*=p=1/p,c*=p,u*=p):(l=0,c=0,u=0);return e[0]=i,e[1]=l,e[2]=d,e[3]=0,e[4]=a,e[5]=c,e[6]=f,e[7]=0,e[8]=s,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*m+a*g+s*v),e[13]=-(l*m+c*g+u*v),e[14]=-(d*m+f*g+h*v),e[15]=1,e}},"./node_modules/gl-mat4/multiply.js":function(e,t){e.exports=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],f=t[9],h=t[10],p=t[11],m=t[12],g=t[13],v=t[14],y=t[15],b=n[0],x=n[1],_=n[2],w=n[3];return e[0]=b*r+x*s+_*d+w*m,e[1]=b*o+x*l+_*f+w*g,e[2]=b*i+x*c+_*h+w*v,e[3]=b*a+x*u+_*p+w*y,b=n[4],x=n[5],_=n[6],w=n[7],e[4]=b*r+x*s+_*d+w*m,e[5]=b*o+x*l+_*f+w*g,e[6]=b*i+x*c+_*h+w*v,e[7]=b*a+x*u+_*p+w*y,b=n[8],x=n[9],_=n[10],w=n[11],e[8]=b*r+x*s+_*d+w*m,e[9]=b*o+x*l+_*f+w*g,e[10]=b*i+x*c+_*h+w*v,e[11]=b*a+x*u+_*p+w*y,b=n[12],x=n[13],_=n[14],w=n[15],e[12]=b*r+x*s+_*d+w*m,e[13]=b*o+x*l+_*f+w*g,e[14]=b*i+x*c+_*h+w*v,e[15]=b*a+x*u+_*p+w*y,e}},"./node_modules/gl-mat4/ortho.js":function(e,t){e.exports=function(e,t,n,r,o,i,a){var s=1/(t-n),l=1/(r-o),c=1/(i-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(o+r)*l,e[14]=(a+i)*c,e[15]=1,e}},"./node_modules/gl-mat4/perspective.js":function(e,t){e.exports=function(e,t,n,r,o){var i=1/Math.tan(t/2),a=1/(r-o);return e[0]=i/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(o+r)*a,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*o*r*a,e[15]=0,e}},"./node_modules/gl-mat4/perspectiveFromFieldOfView.js":function(e,t){e.exports=function(e,t,n,r){var o=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),a=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(a+s),c=2/(o+i);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(a-s)*l*.5,e[9]=(o-i)*c*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e}},"./node_modules/gl-mat4/rotate.js":function(e,t){e.exports=function(e,t,n,r){var o,i,a,s,l,c,u,d,f,h,p,m,g,v,y,b,x,_,w,j,k,T,A,M,S=r[0],C=r[1],E=r[2],L=Math.sqrt(S*S+C*C+E*E);if(Math.abs(L)<1e-6)return null;S*=L=1/L,C*=L,E*=L,o=Math.sin(n),i=Math.cos(n),a=1-i,s=t[0],l=t[1],c=t[2],u=t[3],d=t[4],f=t[5],h=t[6],p=t[7],m=t[8],g=t[9],v=t[10],y=t[11],b=S*S*a+i,x=C*S*a+E*o,_=E*S*a-C*o,w=S*C*a-E*o,j=C*C*a+i,k=E*C*a+S*o,T=S*E*a+C*o,A=C*E*a-S*o,M=E*E*a+i,e[0]=s*b+d*x+m*_,e[1]=l*b+f*x+g*_,e[2]=c*b+h*x+v*_,e[3]=u*b+p*x+y*_,e[4]=s*w+d*j+m*k,e[5]=l*w+f*j+g*k,e[6]=c*w+h*j+v*k,e[7]=u*w+p*j+y*k,e[8]=s*T+d*A+m*M,e[9]=l*T+f*A+g*M,e[10]=c*T+h*A+v*M,e[11]=u*T+p*A+y*M,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e}},"./node_modules/gl-mat4/rotateX.js":function(e,t){e.exports=function(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],f=t[11];t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[4]=i*o+c*r,e[5]=a*o+u*r,e[6]=s*o+d*r,e[7]=l*o+f*r,e[8]=c*o-i*r,e[9]=u*o-a*r,e[10]=d*o-s*r,e[11]=f*o-l*r,e}},"./node_modules/gl-mat4/rotateY.js":function(e,t){e.exports=function(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[0],a=t[1],s=t[2],l=t[3],c=t[8],u=t[9],d=t[10],f=t[11];t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=i*o-c*r,e[1]=a*o-u*r,e[2]=s*o-d*r,e[3]=l*o-f*r,e[8]=i*r+c*o,e[9]=a*r+u*o,e[10]=s*r+d*o,e[11]=l*r+f*o,e}},"./node_modules/gl-mat4/rotateZ.js":function(e,t){e.exports=function(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[0],a=t[1],s=t[2],l=t[3],c=t[4],u=t[5],d=t[6],f=t[7];t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=i*o+c*r,e[1]=a*o+u*r,e[2]=s*o+d*r,e[3]=l*o+f*r,e[4]=c*o-i*r,e[5]=u*o-a*r,e[6]=d*o-s*r,e[7]=f*o-l*r,e}},"./node_modules/gl-mat4/scale.js":function(e,t){e.exports=function(e,t,n){var r=n[0],o=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*o,e[5]=t[5]*o,e[6]=t[6]*o,e[7]=t[7]*o,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},"./node_modules/gl-mat4/str.js":function(e,t){e.exports=function(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]+")"}},"./node_modules/gl-mat4/translate.js":function(e,t){e.exports=function(e,t,n){var r,o,i,a,s,l,c,u,d,f,h,p,m=n[0],g=n[1],v=n[2];t===e?(e[12]=t[0]*m+t[4]*g+t[8]*v+t[12],e[13]=t[1]*m+t[5]*g+t[9]*v+t[13],e[14]=t[2]*m+t[6]*g+t[10]*v+t[14],e[15]=t[3]*m+t[7]*g+t[11]*v+t[15]):(r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],f=t[9],h=t[10],p=t[11],e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=d,e[9]=f,e[10]=h,e[11]=p,e[12]=r*m+s*g+d*v+t[12],e[13]=o*m+l*g+f*v+t[13],e[14]=i*m+c*g+h*v+t[14],e[15]=a*m+u*g+p*v+t[15]);return e}},"./node_modules/gl-mat4/transpose.js":function(e,t){e.exports=function(e,t){if(e===t){var n=t[1],r=t[2],o=t[3],i=t[6],a=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=i,e[11]=t[14],e[12]=o,e[13]=a,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}},"./node_modules/has-hover/index.js":function(e,t,n){"use strict";(function(t){var r,o=n("./node_modules/is-browser/client.js");r="function"==typeof t.matchMedia?!t.matchMedia("(hover: none)").matches:o,e.exports=r}).call(this,n("./node_modules/@splunk/swc-mltk/node_modules/webpack/buildin/global.js"))},"./node_modules/has-passive-events/index.js":function(e,t,n){"use strict";var r=n("./node_modules/is-browser/client.js");e.exports=r&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return e}()},"./node_modules/ieee754/index.js":function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,f=n?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},"./node_modules/is-browser/client.js":function(e,t){e.exports=!0},"./node_modules/is-mobile/index.js":function(e,t,n){"use strict";e.exports=a,e.exports.isMobile=a,e.exports.default=a;const r=/(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,o=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||(e={});let t=e.ua;if(t||"undefined"==typeof navigator||(t=navigator.userAgent),t&&t.headers&&"string"==typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]),"string"!=typeof t)return!1;let n=r.test(t)&&!o.test(t)||!!e.tablet&&i.test(t);return!n&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==t.indexOf("Macintosh")&&-1!==t.indexOf("Safari")&&(n=!0),n}},"./node_modules/is-string-blank/index.js":function(e,t,n){"use strict";e.exports=function(e){for(var t,n=e.length,r=0;r<n;r++)if(((t=e.charCodeAt(r))<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},"./node_modules/lodash.has/index.js":function(e,t,n){(function(t){var n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/,o=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,d=c||u||Function("return this")();var f,h=Array.prototype,p=Function.prototype,m=Object.prototype,g=d["__core-js_shared__"],v=(f=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",y=p.toString,b=m.hasOwnProperty,x=m.toString,_=RegExp("^"+y.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=d.Symbol,j=m.propertyIsEnumerable,k=h.splice,T=D(d,"Map"),A=D(Object,"create"),M=w?w.prototype:void 0,S=M?M.toString:void 0;function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function E(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function L(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function O(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function R(e,t){return null!=e&&b.call(e,t)}function I(e){return!(!G(e)||(t=e,v&&v in t))&&(H(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?_:s).test(function(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function P(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function D(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return I(n)?n:void 0}function z(e,t,o){for(var i,a,s=-1,c=(t=function(e,t){if(U(e))return!1;var o=typeof e;if("number"==o||"symbol"==o||"boolean"==o||null==e||W(e))return!0;return r.test(e)||!n.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:U(i=t)?i:N(i)).length;++s<c;){var u=F(t[s]);if(!(a=null!=e&&o(e,u)))break;e=e[u]}return a||!!(c=e?e.length:0)&&V(c)&&function(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||l.test(e))&&e>-1&&e%1==0&&e<t}(u,c)&&(U(e)||function(e){return function(e){return q(e)&&function(e){return null!=e&&V(e.length)&&!H(e)}(e)}(e)&&b.call(e,"callee")&&(!j.call(e,"callee")||"[object Arguments]"==x.call(e))}(e))}C.prototype.clear=function(){this.__data__=A?A(null):{}},C.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},C.prototype.get=function(e){var t=this.__data__;if(A){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return b.call(t,e)?t[e]:void 0},C.prototype.has=function(e){var t=this.__data__;return A?void 0!==t[e]:b.call(t,e)},C.prototype.set=function(e,t){return this.__data__[e]=A&&void 0===t?"__lodash_hash_undefined__":t,this},E.prototype.clear=function(){this.__data__=[]},E.prototype.delete=function(e){var t=this.__data__,n=O(t,e);return!(n<0)&&(n==t.length-1?t.pop():k.call(t,n,1),!0)},E.prototype.get=function(e){var t=this.__data__,n=O(t,e);return n<0?void 0:t[n][1]},E.prototype.has=function(e){return O(this.__data__,e)>-1},E.prototype.set=function(e,t){var n=this.__data__,r=O(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},L.prototype.clear=function(){this.__data__={hash:new C,map:new(T||E),string:new C}},L.prototype.delete=function(e){return P(this,e).delete(e)},L.prototype.get=function(e){return P(this,e).get(e)},L.prototype.has=function(e){return P(this,e).has(e)},L.prototype.set=function(e,t){return P(this,e).set(e,t),this};var N=B((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(W(e))return S?S.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return o.test(e)&&n.push(""),e.replace(i,(function(e,t,r,o){n.push(r?o.replace(a,"$1"):t||e)})),n}));function F(e){if("string"==typeof e||W(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function B(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(B.Cache||L),n}B.Cache=L;var U=Array.isArray;function H(e){var t=G(e)?x.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function V(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function G(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function q(e){return!!e&&"object"==typeof e}function W(e){return"symbol"==typeof e||q(e)&&"[object Symbol]"==x.call(e)}e.exports=function(e,t){return null!=e&&z(e,t,R)}}).call(this,n("./node_modules/@splunk/swc-mltk/node_modules/webpack/buildin/global.js"))},"./node_modules/lodash/_Hash.js":function(e,t,n){var r=n("./node_modules/lodash/_hashClear.js"),o=n("./node_modules/lodash/_hashDelete.js"),i=n("./node_modules/lodash/_hashGet.js"),a=n("./node_modules/lodash/_hashHas.js"),s=n("./node_modules/lodash/_hashSet.js");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},"./node_modules/lodash/_ListCache.js":function(e,t,n){var r=n("./node_modules/lodash/_listCacheClear.js"),o=n("./node_modules/lodash/_listCacheDelete.js"),i=n("./node_modules/lodash/_listCacheGet.js"),a=n("./node_modules/lodash/_listCacheHas.js"),s=n("./node_modules/lodash/_listCacheSet.js");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},"./node_modules/lodash/_Map.js":function(e,t,n){var r=n("./node_modules/lodash/_getNative.js")(n("./node_modules/lodash/_root.js"),"Map");e.exports=r},"./node_modules/lodash/_MapCache.js":function(e,t,n){var r=n("./node_modules/lodash/_mapCacheClear.js"),o=n("./node_modules/lodash/_mapCacheDelete.js"),i=n("./node_modules/lodash/_mapCacheGet.js"),a=n("./node_modules/lodash/_mapCacheHas.js"),s=n("./node_modules/lodash/_mapCacheSet.js");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},"./node_modules/lodash/_Symbol.js":function(e,t,n){var r=n("./node_modules/lodash/_root.js").Symbol;e.exports=r},"./node_modules/lodash/_arrayMap.js":function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},"./node_modules/lodash/_assocIndexOf.js":function(e,t,n){var r=n("./node_modules/lodash/eq.js");e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},"./node_modules/lodash/_baseGet.js":function(e,t,n){var r=n("./node_modules/lodash/_castPath.js"),o=n("./node_modules/lodash/_toKey.js");e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},"./node_modules/lodash/_baseGetTag.js":function(e,t,n){var r=n("./node_modules/lodash/_Symbol.js"),o=n("./node_modules/lodash/_getRawTag.js"),i=n("./node_modules/lodash/_objectToString.js"),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},"./node_modules/lodash/_baseHas.js":function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},"./node_modules/lodash/_baseIsArguments.js":function(e,t,n){var r=n("./node_modules/lodash/_baseGetTag.js"),o=n("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},"./node_modules/lodash/_baseIsNative.js":function(e,t,n){var r=n("./node_modules/lodash/isFunction.js"),o=n("./node_modules/lodash/_isMasked.js"),i=n("./node_modules/lodash/isObject.js"),a=n("./node_modules/lodash/_toSource.js"),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},"./node_modules/lodash/_baseRepeat.js":function(e,t){var n=Math.floor;e.exports=function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=n(t/2))&&(e+=e)}while(t);return r}},"./node_modules/lodash/_baseToString.js":function(e,t,n){var r=n("./node_modules/lodash/_Symbol.js"),o=n("./node_modules/lodash/_arrayMap.js"),i=n("./node_modules/lodash/isArray.js"),a=n("./node_modules/lodash/isSymbol.js"),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},"./node_modules/lodash/_baseTrim.js":function(e,t,n){var r=n("./node_modules/lodash/_trimmedEndIndex.js"),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},"./node_modules/lodash/_castPath.js":function(e,t,n){var r=n("./node_modules/lodash/isArray.js"),o=n("./node_modules/lodash/_isKey.js"),i=n("./node_modules/lodash/_stringToPath.js"),a=n("./node_modules/lodash/toString.js");e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},"./node_modules/lodash/_coreJsData.js":function(e,t,n){var r=n("./node_modules/lodash/_root.js")["__core-js_shared__"];e.exports=r},"./node_modules/lodash/_createRound.js":function(e,t,n){var r=n("./node_modules/lodash/_root.js"),o=n("./node_modules/lodash/toInteger.js"),i=n("./node_modules/lodash/toNumber.js"),a=n("./node_modules/lodash/toString.js"),s=r.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=i(e),(n=null==n?0:l(o(n),292))&&s(e)){var r=(a(e)+"e").split("e"),c=t(r[0]+"e"+(+r[1]+n));return+((r=(a(c)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},"./node_modules/lodash/_freeGlobal.js":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("./node_modules/@splunk/swc-mltk/node_modules/webpack/buildin/global.js"))},"./node_modules/lodash/_getMapData.js":function(e,t,n){var r=n("./node_modules/lodash/_isKeyable.js");e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},"./node_modules/lodash/_getNative.js":function(e,t,n){var r=n("./node_modules/lodash/_baseIsNative.js"),o=n("./node_modules/lodash/_getValue.js");e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},"./node_modules/lodash/_getRawTag.js":function(e,t,n){var r=n("./node_modules/lodash/_Symbol.js"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},"./node_modules/lodash/_getValue.js":function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},"./node_modules/lodash/_hasPath.js":function(e,t,n){var r=n("./node_modules/lodash/_castPath.js"),o=n("./node_modules/lodash/isArguments.js"),i=n("./node_modules/lodash/isArray.js"),a=n("./node_modules/lodash/_isIndex.js"),s=n("./node_modules/lodash/isLength.js"),l=n("./node_modules/lodash/_toKey.js");e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(i(e)||o(e))}},"./node_modules/lodash/_hashClear.js":function(e,t,n){var r=n("./node_modules/lodash/_nativeCreate.js");e.exports=function(){this.__data__=r?r(null):{},this.size=0}},"./node_modules/lodash/_hashDelete.js":function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},"./node_modules/lodash/_hashGet.js":function(e,t,n){var r=n("./node_modules/lodash/_nativeCreate.js"),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},"./node_modules/lodash/_hashHas.js":function(e,t,n){var r=n("./node_modules/lodash/_nativeCreate.js"),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},"./node_modules/lodash/_hashSet.js":function(e,t,n){var r=n("./node_modules/lodash/_nativeCreate.js");e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},"./node_modules/lodash/_isIndex.js":function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},"./node_modules/lodash/_isIterateeCall.js":function(e,t,n){var r=n("./node_modules/lodash/eq.js"),o=n("./node_modules/lodash/isArrayLike.js"),i=n("./node_modules/lodash/_isIndex.js"),a=n("./node_modules/lodash/isObject.js");e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},"./node_modules/lodash/_isKey.js":function(e,t,n){var r=n("./node_modules/lodash/isArray.js"),o=n("./node_modules/lodash/isSymbol.js"),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},"./node_modules/lodash/_isKeyable.js":function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},"./node_modules/lodash/_isMasked.js":function(e,t,n){var r,o=n("./node_modules/lodash/_coreJsData.js"),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},"./node_modules/lodash/_listCacheClear.js":function(e,t){e.exports=function(){this.__data__=[],this.size=0}},"./node_modules/lodash/_listCacheDelete.js":function(e,t,n){var r=n("./node_modules/lodash/_assocIndexOf.js"),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},"./node_modules/lodash/_listCacheGet.js":function(e,t,n){var r=n("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},"./node_modules/lodash/_listCacheHas.js":function(e,t,n){var r=n("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e){return r(this.__data__,e)>-1}},"./node_modules/lodash/_listCacheSet.js":function(e,t,n){var r=n("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},"./node_modules/lodash/_mapCacheClear.js":function(e,t,n){var r=n("./node_modules/lodash/_Hash.js"),o=n("./node_modules/lodash/_ListCache.js"),i=n("./node_modules/lodash/_Map.js");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},"./node_modules/lodash/_mapCacheDelete.js":function(e,t,n){var r=n("./node_modules/lodash/_getMapData.js");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},"./node_modules/lodash/_mapCacheGet.js":function(e,t,n){var r=n("./node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).get(e)}},"./node_modules/lodash/_mapCacheHas.js":function(e,t,n){var r=n("./node_modules/lodash/_getMapData.js");e.exports=function(e){return r(this,e).has(e)}},"./node_modules/lodash/_mapCacheSet.js":function(e,t,n){var r=n("./node_modules/lodash/_getMapData.js");e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},"./node_modules/lodash/_memoizeCapped.js":function(e,t,n){var r=n("./node_modules/lodash/memoize.js");e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},"./node_modules/lodash/_nativeCreate.js":function(e,t,n){var r=n("./node_modules/lodash/_getNative.js")(Object,"create");e.exports=r},"./node_modules/lodash/_objectToString.js":function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"./node_modules/lodash/_root.js":function(e,t,n){var r=n("./node_modules/lodash/_freeGlobal.js"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},"./node_modules/lodash/_stringToPath.js":function(e,t,n){var r=n("./node_modules/lodash/_memoizeCapped.js"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},"./node_modules/lodash/_toKey.js":function(e,t,n){var r=n("./node_modules/lodash/isSymbol.js");e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},"./node_modules/lodash/_toSource.js":function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"./node_modules/lodash/_trimmedEndIndex.js":function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},"./node_modules/lodash/eq.js":function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},"./node_modules/lodash/get.js":function(e,t,n){var r=n("./node_modules/lodash/_baseGet.js");e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},"./node_modules/lodash/has.js":function(e,t,n){var r=n("./node_modules/lodash/_baseHas.js"),o=n("./node_modules/lodash/_hasPath.js");e.exports=function(e,t){return null!=e&&o(e,t,r)}},"./node_modules/lodash/isArguments.js":function(e,t,n){var r=n("./node_modules/lodash/_baseIsArguments.js"),o=n("./node_modules/lodash/isObjectLike.js"),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},"./node_modules/lodash/isArray.js":function(e,t){var n=Array.isArray;e.exports=n},"./node_modules/lodash/isArrayLike.js":function(e,t,n){var r=n("./node_modules/lodash/isFunction.js"),o=n("./node_modules/lodash/isLength.js");e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},"./node_modules/lodash/isFunction.js":function(e,t,n){var r=n("./node_modules/lodash/_baseGetTag.js"),o=n("./node_modules/lodash/isObject.js");e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"./node_modules/lodash/isLength.js":function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},"./node_modules/lodash/isNumber.js":function(e,t,n){var r=n("./node_modules/lodash/_baseGetTag.js"),o=n("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},"./node_modules/lodash/isObject.js":function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./node_modules/lodash/isObjectLike.js":function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},"./node_modules/lodash/isSymbol.js":function(e,t,n){var r=n("./node_modules/lodash/_baseGetTag.js"),o=n("./node_modules/lodash/isObjectLike.js");e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},"./node_modules/lodash/memoize.js":function(e,t,n){var r=n("./node_modules/lodash/_MapCache.js");function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},"./node_modules/lodash/repeat.js":function(e,t,n){var r=n("./node_modules/lodash/_baseRepeat.js"),o=n("./node_modules/lodash/_isIterateeCall.js"),i=n("./node_modules/lodash/toInteger.js"),a=n("./node_modules/lodash/toString.js");e.exports=function(e,t,n){return t=(n?o(e,t,n):void 0===t)?1:i(t),r(a(e),t)}},"./node_modules/lodash/round.js":function(e,t,n){var r=n("./node_modules/lodash/_createRound.js")("round");e.exports=r},"./node_modules/lodash/toFinite.js":function(e,t,n){var r=n("./node_modules/lodash/toNumber.js");e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},"./node_modules/lodash/toInteger.js":function(e,t,n){var r=n("./node_modules/lodash/toFinite.js");e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},"./node_modules/lodash/toNumber.js":function(e,t,n){var r=n("./node_modules/lodash/_baseTrim.js"),o=n("./node_modules/lodash/isObject.js"),i=n("./node_modules/lodash/isSymbol.js"),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},"./node_modules/lodash/toString.js":function(e,t,n){var r=n("./node_modules/lodash/_baseToString.js");e.exports=function(e){return null==e?"":r(e)}},"./node_modules/mouse-event-offset/index.js":function(e,t){var n={left:0,top:0};e.exports=function(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var o=e.clientX||0,i=e.clientY||0,a=(s=t,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=o-a.left,r[1]=i-a.top,r}},"./node_modules/native-promise-only/lib/npo.src.js":function(e,t,n){(function(r,o){var i;
/*! Native Promise Only
v0.8.1 (c) Kyle Simpson
MIT License: http://getify.mit-license.org
*/!function(r,o,a){o[r]=o[r]||a(),e.exports?e.exports=o[r]:void 0===(i=function(){return o[r]}.call(t,n,t,e))||(e.exports=i)}("Promise",void 0!==r?r:this,(function(){"use strict";var e,t,n,r=Object.prototype.toString,i=void 0!==o?function(e){return o(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function a(e,r){n.add(e,r),t||(t=i(n.drain))}function s(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function l(){for(var e=0;e<this.chain.length;e++)c(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function c(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=s(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function u(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=s(e))?a((function(){var r=new h(n);try{t.call(e,(function(){u.apply(r,arguments)}),(function(){d.apply(r,arguments)}))}catch(e){d.call(r,e)}})):(n.msg=e,n.state=1,n.chain.length>0&&a(l,n))}catch(e){d.call(new h(n),e)}}}function d(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&a(l,t))}function f(e,t,n,r){for(var o=0;o<t.length;o++)!function(o){e.resolve(t[o]).then((function(e){n(o,e)}),r)}(o)}function h(e){this.def=e,this.triggered=!1}function p(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new p(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t})),t.chain.push(r),0!==t.state&&a(l,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){u.call(t,e)}),(function(e){d.call(t,e)}))}catch(e){d.call(t,e)}}n=function(){var e,n,r;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new o(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var g=e({},"constructor",m,!1);return m.prototype=g,e(g,"__NPO__",0,!1),e(m,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)}))})),e(m,"reject",(function(e){return new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)}))})),e(m,"all",(function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=e.length,i=Array(o),a=0;f(t,e,(function(e,t){i[e]=t,++a===o&&n(i)}),r)}))})),e(m,"race",(function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");f(t,e,(function(e,t){n(t)}),r)}))})),m}))}).call(this,n("./node_modules/@splunk/swc-mltk/node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate)},"./node_modules/node-libs-browser/node_modules/buffer/index.js":function(e,t,n){"use strict";(function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=n("./node_modules/base64-js/index.js"),o=n("./node_modules/ieee754/index.js"),i=n("./node_modules/node-libs-browser/node_modules/isarray/index.js");function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(c(e,i+f)!==c(t,f)){d=!1;break}if(d)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function x(e,t,n,r){return H(B(t,e.length-n),e,n,r)}function _(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return _(e,t,n,r)}function j(e,t,n,r){return H(U(t),e,n,r)}function k(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).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}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){i=c[d],a=u[d];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return j(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function S(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function C(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=F(e[i]);return o}function E(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function L(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function P(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||P(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,i){return i||P(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);O(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);O(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:B(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n("./node_modules/@splunk/swc-mltk/node_modules/webpack/buildin/global.js"))},"./node_modules/node-libs-browser/node_modules/isarray/index.js":function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"./node_modules/parse-svg-path/index.js":function(e,t){e.exports=function(e){var t=[];return e.replace(r,(function(e,r,i){var a=r.toLowerCase();for(i=function(e){var t=e.match(o);return t?t.map(Number):[]}(i),"m"==a&&i.length>2&&(t.push([r].concat(i.splice(0,2))),a="l",r="m"==r?"l":"L");;){if(i.length==n[a])return i.unshift(r),t.push(i);if(i.length<n[a])throw new Error("malformed path data");t.push([r].concat(i.splice(0,n[a])))}})),t};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var o=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},"./node_modules/plotly.js/build/plotcss.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding: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":"overflow:hidden;","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 .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","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;",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(var i in o){var a=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");r.addStyleRule(a,o[i])}},"./node_modules/plotly.js/lib/core.js":function(e,t,n){"use strict";e.exports=n("./node_modules/plotly.js/src/core.js")},"./node_modules/plotly.js/lib/scatter3d.js":function(e,t,n){"use strict";e.exports=n("./node_modules/plotly.js/src/traces/scatter3d/index.js")},"./node_modules/plotly.js/node_modules/color-normalize/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/node_modules/color-normalize/node_modules/color-rgba/index.js"),o=n("./node_modules/clamp/index.js"),i=n("./node_modules/dtype/index.js");e.exports=function(e,t){"float"!==t&&t||(t="array"),"uint"===t&&(t="uint8"),"uint_clamped"===t&&(t="uint8_clamped");var n=new(i(t))(4),a="uint8"!==t&&"uint8_clamped"!==t;return e.length&&"string"!=typeof e||((e=r(e))[0]/=255,e[1]/=255,e[2]/=255),function(e){return e instanceof Uint8Array||e instanceof Uint8ClampedArray||!!(Array.isArray(e)&&(e[0]>1||0===e[0])&&(e[1]>1||0===e[1])&&(e[2]>1||0===e[2])&&(!e[3]||e[3]>1))}(e)?(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=null!=e[3]?e[3]:255,a&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(a?(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=null!=e[3]?e[3]:1):(n[0]=o(Math.floor(255*e[0]),0,255),n[1]=o(Math.floor(255*e[1]),0,255),n[2]=o(Math.floor(255*e[2]),0,255),n[3]=null==e[3]?255:o(Math.floor(255*e[3]),0,255)),n)}},"./node_modules/plotly.js/node_modules/color-normalize/node_modules/color-parse/index.js":function(e,t,n){"use strict";var r=n("./node_modules/color-name/index.js");e.exports=function(e){var t,n,i=[],a=1;if("string"==typeof e)if(e=e.toLowerCase(),r[e])i=r[e].slice(),n="rgb";else if("transparent"===e)a=0,n="rgb",i=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var s=(u=e.slice(1)).length;a=1,s<=4?(i=[parseInt(u[0]+u[0],16),parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16)],4===s&&(a=parseInt(u[3]+u[3],16)/255)):(i=[parseInt(u[0]+u[1],16),parseInt(u[2]+u[3],16),parseInt(u[4]+u[5],16)],8===s&&(a=parseInt(u[6]+u[7],16)/255)),i[0]||(i[0]=0),i[1]||(i[1]=0),i[2]||(i[2]=0),n="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],c="rgb"===l,u=l.replace(/a$/,"");n=u;s="cmyk"===u?4:"gray"===u?1:3;i=t[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,t){if(/%$/.test(e))return t===s?parseFloat(e)/100:"rgb"===u?255*parseFloat(e)/100:parseFloat(e);if("h"===u[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==o[e])return o[e]}return parseFloat(e)})),l===u&&i.push(1),a=c||void 0===i[s]?1:i[s],i=i.slice(0,s)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(i=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),n=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(i=[e[0],e[1],e[2]],n="rgb",a=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(n="rgb",i=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",i=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),a=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(a/=100)):(n="rgb",i=[e>>>16,(65280&e)>>>8,255&e]);return{space:n,values:i,alpha:a}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},"./node_modules/plotly.js/node_modules/color-normalize/node_modules/color-rgba/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/node_modules/color-normalize/node_modules/color-parse/index.js");function o(e){var t,n,r,o,i,a=e[0]/360,s=e[1]/100,l=e[2]/100,c=0;if(0===s)return[i=255*l,i,i];for(t=2*l-(n=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];c<3;)(r=a+1/3*-(c-1))<0?r++:r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c++]=255*i;return o}e.exports=function(e){var t;Array.isArray(e)&&e.raw&&(e=String.raw.apply(null,arguments));var n=r(e);if(!n.space)return[];var i=[0,0,0],a="h"===n.space[0]?[360,100,100]:[255,255,255];return(t=Array(3))[0]=Math.min(Math.max(n.values[0],i[0]),a[0]),t[1]=Math.min(Math.max(n.values[1],i[1]),a[1]),t[2]=Math.min(Math.max(n.values[2],i[2]),a[2]),"h"===n.space[0]&&(t=o(t)),t.push(Math.min(Math.max(n.alpha,0),1)),t}},"./node_modules/plotly.js/node_modules/d3-format/src/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,"formatDefaultLocale",(function(){return y})),n.d(t,"format",(function(){return u})),n.d(t,"formatPrefix",(function(){return d})),n.d(t,"formatLocale",(function(){return v})),n.d(t,"formatSpecifier",(function(){return a})),n.d(t,"FormatSpecifier",(function(){return s})),n.d(t,"precisionFixed",(function(){return b})),n.d(t,"precisionPrefix",(function(){return x})),n.d(t,"precisionRound",(function(){return _}));function r(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var o=function(e){return(e=r(Math.abs(e)))?e[1]:NaN},i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(e){if(!(t=i.exec(e)))throw new Error("invalid format: "+e);var t;return new s({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function s(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}a.prototype=s.prototype,s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var l,c,u,d,f=function(e,t){var n=r(e,t);if(!n)return e+"";var o=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+o:o.length>i+1?o.slice(0,i+1)+"."+o.slice(i+1):o+new Array(i-o.length+2).join("0")},h={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return f(100*e,t)},r:f,s:function(e,t){var n=r(e,t);if(!n)return e+"";var o=n[0],i=n[1],a=i-(l=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=o.length;return a===s?o:a>s?o+new Array(a-s+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+new Array(1-a).join("0")+r(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},p=function(e){return e},m=Array.prototype.map,g=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],v=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?p:(t=m.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?p:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(m.call(e.numerals,String)),d=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"-":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function y(e){var t=(e=a(e)).fill,n=e.align,o=e.sign,p=e.symbol,m=e.zero,y=e.width,b=e.comma,x=e.precision,_=e.trim,w=e.type;"n"===w?(b=!0,w="g"):h[w]||(void 0===x&&(x=12),_=!0,w="g"),(m||"0"===t&&"="===n)&&(m=!0,t="0",n="=");var j="$"===p?i:"#"===p&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",k="$"===p?s:/[%p]/.test(w)?d:"",T=h[w],A=/[defgprs%]/.test(w);function M(e){var i,a,s,d=j,h=k;if("c"===w)h=T(e)+h,e="";else{var p=(e=+e)<0||1/e<0;if(e=isNaN(e)?v:T(Math.abs(e),x),_&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),p&&0==+e&&"+"!==o&&(p=!1),d=(p?"("===o?o:f:"-"===o||"("===o?"":o)+d,h=("s"===w?g[8+l/3]:"")+h+(p&&"("===o?")":""),A)for(i=-1,a=e.length;++i<a;)if(48>(s=e.charCodeAt(i))||s>57){h=(46===s?c+e.slice(i+1):e.slice(i))+h,e=e.slice(0,i);break}}b&&!m&&(e=r(e,1/0));var M=d.length+e.length+h.length,S=M<y?new Array(y-M+1).join(t):"";switch(b&&m&&(e=r(S+e,S.length?y-h.length:1/0),S=""),n){case"<":e=d+e+h+S;break;case"=":e=d+S+e+h;break;case"^":e=S.slice(0,M=S.length>>1)+d+e+h+S.slice(M);break;default:e=S+d+e+h}return u(e)}return x=void 0===x?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),M.toString=function(){return e+""},M}return{format:y,formatPrefix:function(e,t){var n=y(((e=a(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(o(t)/3))),i=Math.pow(10,-r),s=g[8+r/3];return function(e){return n(i*e)+s}}}};function y(e){return c=v(e),u=c.format,d=c.formatPrefix,c}y({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var b=function(e){return Math.max(0,-o(Math.abs(e)))},x=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(o(t)/3)))-o(Math.abs(e)))},_=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,o(t)-o(e))+1}},"./node_modules/plotly.js/src/components/annotations/arrow_paths.js":function(e,t,n){"use strict";e.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}]},"./node_modules/plotly.js/src/components/annotations/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/annotations/arrow_paths.js"),o=n("./node_modules/plotly.js/src/plots/font_attributes.js"),i=n("./node_modules/plotly.js/src/plots/cartesian/constants.js"),a=n("./node_modules/plotly.js/src/plot_api/plot_template.js").templatedArray,s=n("./node_modules/plotly.js/src/constants/axis_placeable_objects.js");function l(e){return["In order for absolute positioning of the arrow to work, *a"+e+"ref* must be exactly the same as *"+e+"ref*, otherwise *a"+e+"ref* will revert to *pixel* (explained next).","For relative positioning, *a"+e+"ref* can be set to *pixel*,","in which case the *a"+e+"* value is specified in pixels","relative to *"+e+"*.","Absolute positioning is useful","for trendline annotations which should continue to indicate","the correct trend when zoomed. Relative positioning is useful","for specifying the text offset for an annotated point."].join(" ")}function c(e,t,n){return["Sets the",e,"component of the arrow tail about the arrow head.","If `a"+e+"ref` is `pixel`, a positive (negative)","component corresponds to an arrow pointing","from",n,"to",t,"("+t,"to",n+").","If `a"+e+"ref` is not `pixel` and is exactly the same as `"+e+"ref`,","this is an absolute value on that axis,","like `"+e+"`, specified in the same coordinates as `"+e+"ref`."].join(" ")}e.exports=a("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this annotation is visible."].join(" ")},text:{valType:"string",editType:"calc+arraydraw",description:["Sets the text associated with this annotation.","Plotly uses a subset of HTML tags to do things like","newline (<br>), bold (<b></b>), italics (<i></i>),","hyperlinks (<a href='...'></a>). Tags <em>, <sup>, <sub>, <s>, <u>","<span> are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:o({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use <br> to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans two or more lines","(i.e. `text` contains one or more <br> HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:r.length,dflt:1,editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the end annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the start annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the end arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the start arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",editType:"calc+arraydraw",description:[c("x","left","right")].join(" ")},ay:{valType:"any",editType:"calc+arraydraw",description:[c("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",s.axisRefDescription("x","left","right"),l("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",s.axisRefDescription("y","bottom","top"),l("y")].join(" ")},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc",description:["Sets the annotation's x coordinate axis.",s.axisRefDescription("x","left","right")].join(" ")},x:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc",description:["Sets the annotation's y coordinate axis.",s.axisRefDescription("y","bottom","top")].join(" ")},y:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",editType:"arraydraw",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",editType:"arraydraw",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:o({editType:"arraydraw",description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}})},"./node_modules/plotly.js/src/components/annotations/calc_autorange.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),i=n("./node_modules/plotly.js/src/components/annotations/draw.js").draw;function a(e){var t=e._fullLayout;r.filterVisible(t.annotations).forEach((function(t){var n=o.getFromId(e,t.xref),r=o.getFromId(e,t.yref),i=o.getRefType(t.xref),a=o.getRefType(t.yref);t._extremes={},"range"===i&&s(t,n),"range"===a&&s(t,r)}))}function s(e,t){var n,r=t._id,i=r.charAt(0),a=e[i],s=e["a"+i],l=e[i+"ref"],c=e["a"+i+"ref"],u=e["_"+i+"padplus"],d=e["_"+i+"padminus"],f={x:1,y:-1}[i]*e[i+"shift"],h=3*e.arrowsize*e.arrowwidth||0,p=h+f,m=h-f,g=3*e.startarrowsize*e.arrowwidth||0,v=g+f,y=g-f;if(c===l){var b=o.findExtremes(t,[t.r2c(a)],{ppadplus:p,ppadminus:m}),x=o.findExtremes(t,[t.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(d,y)});n={min:[b.min[0],x.min[0]],max:[b.max[0],x.max[0]]}}else v=s?v+s:v,y=s?y-s:y,n=o.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(u,p,v),ppadminus:Math.max(d,m,y)});e._extremes[r]=n}e.exports=function(e){var t=e._fullLayout;if(r.filterVisible(t.annotations).length&&e._fullData.length)return r.syncOrAsync([i,a],e)}},"./node_modules/plotly.js/src/components/annotations/click.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/plot_api/plot_template.js").arrayEditor;function a(e,t){var n,r,o,i,a,l,c,u=e._fullLayout.annotations,d=[],f=[],h=[],p=(t||[]).length;for(n=0;n<u.length;n++)if(i=(o=u[n]).clicktoshow){for(r=0;r<p;r++)if(l=(a=t[r]).xaxis,c=a.yaxis,l._id===o.xref&&c._id===o.yref&&l.d2r(a.x)===s(o._xclick,l)&&c.d2r(a.y)===s(o._yclick,c)){(o.visible?"onout"===i?f:h:d).push(n);break}r===p&&o.visible&&"onout"===i&&f.push(n)}return{on:d,off:f,explicitOff:h}}function s(e,t){return"log"===t.type?t.l2r(e):t.d2r(e)}e.exports={hasClickToShow:function(e,t){var n=a(e,t);return n.on.length>0||n.explicitOff.length>0},onClick:function(e,t){var n,s,l=a(e,t),c=l.on,u=l.off.concat(l.explicitOff),d={},f=e._fullLayout.annotations;if(!c.length&&!u.length)return;for(n=0;n<c.length;n++)(s=i(e.layout,"annotations",f[c[n]])).modifyItem("visible",!0),r.extendFlat(d,s.getUpdateObj());for(n=0;n<u.length;n++)(s=i(e.layout,"annotations",f[u[n]])).modifyItem("visible",!1),r.extendFlat(d,s.getUpdateObj());return o.call("update",e,{},d)}}},"./node_modules/plotly.js/src/components/annotations/common_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/color/index.js");e.exports=function(e,t,n,i){i("opacity");var a=i("bgcolor"),s=i("bordercolor"),l=o.opacity(s);i("borderpad");var c=i("borderwidth"),u=i("showarrow");if(i("text",u?" ":n._dfltTitle.annotation),i("textangle"),r.coerceFont(i,"font",n.font),i("width"),i("align"),i("height")&&i("valign"),u){var d,f,h=i("arrowside");-1!==h.indexOf("end")&&(d=i("arrowhead"),f=i("arrowsize")),-1!==h.indexOf("start")&&(i("startarrowhead",d),i("startarrowsize",f)),i("arrowcolor",l?t.bordercolor:o.defaultLine),i("arrowwidth",2*(l&&c||1)),i("standoff"),i("startstandoff")}var p=i("hovertext"),m=n.hoverlabel||{};if(p){var g=i("hoverlabel.bgcolor",m.bgcolor||(o.opacity(a)?o.rgb(a):o.defaultLine)),v=i("hoverlabel.bordercolor",m.bordercolor||o.contrast(g)),y=r.extendFlat({},m.font);y.color||(y.color=v),r.coerceFont(i,"hoverlabel.font",y)}i("captureevents",!!p)}},"./node_modules/plotly.js/src/components/annotations/convert_coords.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/to_log_range.js");e.exports=function(e,t,n,i){t=t||{};var a="log"===n&&"linear"===t.type,s="linear"===n&&"log"===t.type;if(a||s)for(var l,c,u=e._fullLayout.annotations,d=t._id.charAt(0),f=0;f<u.length;f++)l=u[f],c="annotations["+f+"].",l[d+"ref"]===t._id&&h(d),l["a"+d+"ref"]===t._id&&h("a"+d);function h(e){var n=l[e],s=null;s=a?o(n,t.range):Math.pow(10,n),r(s)||(s=null),i(c+e,s)}}},"./node_modules/plotly.js/src/components/annotations/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),i=n("./node_modules/plotly.js/src/plots/array_container_defaults.js"),a=n("./node_modules/plotly.js/src/components/annotations/common_defaults.js"),s=n("./node_modules/plotly.js/src/components/annotations/attributes.js");function l(e,t,n){function i(n,o){return r.coerce(e,t,s,n,o)}var l=i("visible"),c=i("clicktoshow");if(l||c){a(e,t,n,i);for(var u=t.showarrow,d=["x","y"],f=[-10,-30],h={_fullLayout:n},p=0;p<2;p++){var m=d[p],g=o.coerceRef(e,t,h,m,"","paper");if("paper"!==g)o.getFromId(h,g)._annIndices.push(t._index);if(o.coercePosition(t,h,i,g,m,.5),u){var v="a"+m,y=o.coerceRef(e,t,h,v,"pixel",["pixel","paper"]);"pixel"!==y&&y!==g&&(y=t[v]="pixel");var b="pixel"===y?f[p]:.4;o.coercePosition(t,h,i,y,v,b)}i(m+"anchor"),i(m+"shift")}if(r.noneOrAll(e,t,["x","y"]),u&&r.noneOrAll(e,t,["ax","ay"]),c){var x=i("xclick"),_=i("yclick");t._xclick=void 0===x?t.x:o.cleanPosition(x,h,t.xref),t._yclick=void 0===_?t.y:o.cleanPosition(_,h,t.yref)}}}e.exports=function(e,t){i(e,t,{name:"annotations",handleItemDefaults:l})}},"./node_modules/plotly.js/src/components/annotations/draw.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/plots/plots.js"),a=n("./node_modules/plotly.js/src/lib/index.js"),s=a.strTranslate,l=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),c=n("./node_modules/plotly.js/src/components/color/index.js"),u=n("./node_modules/plotly.js/src/components/drawing/index.js"),d=n("./node_modules/plotly.js/src/components/fx/index.js"),f=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),h=n("./node_modules/plotly.js/src/lib/setcursor.js"),p=n("./node_modules/plotly.js/src/components/dragelement/index.js"),m=n("./node_modules/plotly.js/src/plot_api/plot_template.js").arrayEditor,g=n("./node_modules/plotly.js/src/components/annotations/draw_arrow_head.js");function v(e,t){var n=e._fullLayout.annotations[t]||{},r=l.getFromId(e,n.xref),o=l.getFromId(e,n.yref);r&&r.setScale(),o&&o.setScale(),b(e,n,t,!1,r,o)}function y(e,t,n,r,o){var i=o[n],a=o[n+"ref"],s=-1!==n.indexOf("y"),c="domain"===l.getRefType(a),u=s?r.h:r.w;return e?c?i+(s?-t:t)/e._length:e.p2r(e.r2p(i)+t):i+(s?-t:t)/u}function b(e,t,n,i,v,b){var x,_,w=e._fullLayout,j=e._fullLayout._size,k=e._context.edits;i?(x="annotation-"+i,_=i+".annotations"):(x="annotation",_="annotations");var T=m(e.layout,_,t),A=T.modifyBase,M=T.modifyItem,S=T.getUpdateObj;w._infolayer.selectAll("."+x+'[data-index="'+n+'"]').remove();var C="clip"+w._uid+"_ann"+n;if(t._input&&!1!==t.visible){var E={x:{},y:{}},L=+t.textangle||0,O=w._infolayer.append("g").classed(x,!0).attr("data-index",String(n)).style("opacity",t.opacity),R=O.append("g").classed("annotation-text-g",!0),I=k[t.showarrow?"annotationTail":"annotationPosition"],P=t.captureevents||k.annotationText||I,D=R.append("g").style("pointer-events",P?"all":null).call(h,"pointer").on("click",(function(){e._dragging=!1,e.emit("plotly_clickannotation",W(r.event))}));t.hovertext&&D.on("mouseover",(function(){var n=t.hoverlabel,r=n.font,o=this.getBoundingClientRect(),i=e.getBoundingClientRect();d.loneHover({x0:o.left-i.left,x1:o.right-i.left,y:(o.top+o.bottom)/2-i.top,text:t.hovertext,color:n.bgcolor,borderColor:n.bordercolor,fontFamily:r.family,fontSize:r.size,fontColor:r.color,fontWeight:r.weight,fontStyle:r.style,fontVariant:r.variant,fontShadow:r.fontShadow,fontLineposition:r.fontLineposition,fontTextcase:r.fontTextcase},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:e})})).on("mouseout",(function(){d.loneUnhover(w._hoverlayer.node())}));var z=t.borderwidth,N=t.borderpad,F=z+N,B=D.append("rect").attr("class","bg").style("stroke-width",z+"px").call(c.stroke,t.bordercolor).call(c.fill,t.bgcolor),U=t.width||t.height,H=w._topclips.selectAll("#"+C).data(U?[0]:[]);H.enter().append("clipPath").classed("annclip",!0).attr("id",C).append("rect"),H.exit().remove();var V=t.font,G=w._meta?a.templateString(t.text,w._meta):t.text,q=D.append("text").classed("annotation-text",!0).text(G);k.annotationText?q.call(f.makeEditable,{delegate:D,gd:e}).call(Y).on("edit",(function(n){t.text=n,this.call(Y),M("text",n),v&&v.autorange&&A(v._name+".autorange",!0),b&&b.autorange&&A(b._name+".autorange",!0),o.call("_guiRelayout",e,S())})):q.call(Y)}else r.selectAll("#"+C).remove();function W(e){var r={index:n,annotation:t._input,fullAnnotation:t,event:e};return i&&(r.subplotId=i),r}function Y(n){return n.call(u.font,V).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),f.convertToTspans(n,e,X),n}function X(){var n=q.selectAll("a");1===n.size()&&n.text()===q.text()&&D.insert("a",":first-child").attr({"xlink:xlink:href":n.attr("xlink:href"),"xlink:xlink:show":n.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(B.node());var r=D.select(".annotation-text-math-group"),d=!r.empty(),m=u.bBox((d?r:q).node()),x=m.width,_=m.height,T=t.width||x,P=t.height||_,N=Math.round(T+2*F),V=Math.round(P+2*F);function G(e,t){return"auto"===t&&(t=e<1/3?"left":e>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var Y=!1,X=["x","y"],Z=0;Z<X.length;Z++){var $,K,J,Q,ee,te=X[Z],ne=t[te+"ref"]||te,re=t["a"+te+"ref"],oe={x:v,y:b}[te],ie=(L+("x"===te?0:-90))*Math.PI/180,ae=N*Math.cos(ie),se=V*Math.sin(ie),le=Math.abs(ae)+Math.abs(se),ce=t[te+"anchor"],ue=t[te+"shift"]*("x"===te?1:-1),de=E[te],fe=l.getRefType(ne);if(oe&&"domain"!==fe){var he=oe.r2fraction(t[te]);(he<0||he>1)&&(re===ne?((he=oe.r2fraction(t["a"+te]))<0||he>1)&&(Y=!0):Y=!0),$=oe._offset+oe.r2p(t[te]),Q=.5}else{var pe="domain"===fe;"x"===te?(J=t[te],$=pe?oe._offset+oe._length*J:$=j.l+j.w*J):(J=1-t[te],$=pe?oe._offset+oe._length*J:$=j.t+j.h*J),Q=t.showarrow?.5:J}if(t.showarrow){de.head=$;var me=t["a"+te];if(ee=ae*G(.5,t.xanchor)-se*G(.5,t.yanchor),re===ne){var ge=l.getRefType(re);"domain"===ge?("y"===te&&(me=1-me),de.tail=oe._offset+oe._length*me):"paper"===ge?"y"===te?(me=1-me,de.tail=j.t+j.h*me):de.tail=j.l+j.w*me:de.tail=oe._offset+oe.r2p(me),K=ee}else de.tail=$+me,K=ee+me;de.text=de.tail+ee;var ve=w["x"===te?"width":"height"];if("paper"===ne&&(de.head=a.constrain(de.head,1,ve-1)),"pixel"===re){var ye=-Math.max(de.tail-3,de.text),be=Math.min(de.tail+3,de.text)-ve;ye>0?(de.tail+=ye,de.text+=ye):be>0&&(de.tail-=be,de.text-=be)}de.tail+=ue,de.head+=ue}else K=ee=le*G(Q,ce),de.text=$+ee;de.text+=ue,ee+=ue,K+=ue,t["_"+te+"padplus"]=le/2+K,t["_"+te+"padminus"]=le/2-K,t["_"+te+"size"]=le,t["_"+te+"shift"]=ee}if(Y)D.remove();else{var xe=0,_e=0;if("left"!==t.align&&(xe=(T-x)*("center"===t.align?.5:1)),"top"!==t.valign&&(_e=(P-_)*("middle"===t.valign?.5:1)),d)r.select("svg").attr({x:F+xe-1,y:F+_e}).call(u.setClipUrl,U?C:null,e);else{var we=F+_e-m.top,je=F+xe-m.left;q.call(f.positionText,je,we).call(u.setClipUrl,U?C:null,e)}H.select("rect").call(u.setRect,F,F,T,P),B.call(u.setRect,z/2,z/2,N-z,V-z),D.call(u.setTranslate,Math.round(E.x.text-N/2),Math.round(E.y.text-V/2)),R.attr({transform:"rotate("+L+","+E.x.text+","+E.y.text+")"});var ke,Te=function(n,r){O.selectAll(".annotation-arrow-g").remove();var l=E.x.head,d=E.y.head,f=E.x.tail+n,h=E.y.tail+r,m=E.x.text+n,x=E.y.text+r,_=a.rotationXYMatrix(L,m,x),w=a.apply2DTransform(_),T=a.apply2DTransform2(_),C=+B.attr("width"),I=+B.attr("height"),P=m-.5*C,z=P+C,N=x-.5*I,F=N+I,U=[[P,N,P,F],[P,F,z,F],[z,F,z,N],[z,N,P,N]].map(T);if(!U.reduce((function(e,t){return e^!!a.segmentsIntersect(l,d,l+1e6,d+1e6,t[0],t[1],t[2],t[3])}),!1)){U.forEach((function(e){var t=a.segmentsIntersect(f,h,l,d,e[0],e[1],e[2],e[3]);t&&(f=t.x,h=t.y)}));var H=t.arrowwidth,V=t.arrowcolor,G=t.arrowside,q=O.append("g").style({opacity:c.opacity(V)}).classed("annotation-arrow-g",!0),W=q.append("path").attr("d","M"+f+","+h+"L"+l+","+d).style("stroke-width",H+"px").call(c.stroke,c.rgb(V));if(g(W,G,t),k.annotationPosition&&W.node().parentNode&&!i){var Y=l,X=d;if(t.standoff){var Z=Math.sqrt(Math.pow(l-f,2)+Math.pow(d-h,2));Y+=t.standoff*(f-l)/Z,X+=t.standoff*(h-d)/Z}var $,K,J=q.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(f-Y)+","+(h-X),transform:s(Y,X)}).style("stroke-width",H+6+"px").call(c.stroke,"rgba(0,0,0,0)").call(c.fill,"rgba(0,0,0,0)");p.init({element:J.node(),gd:e,prepFn:function(){var e=u.getTranslate(D);$=e.x,K=e.y,v&&v.autorange&&A(v._name+".autorange",!0),b&&b.autorange&&A(b._name+".autorange",!0)},moveFn:function(e,n){var r=w($,K),o=r[0]+e,i=r[1]+n;D.call(u.setTranslate,o,i),M("x",y(v,e,"x",j,t)),M("y",y(b,n,"y",j,t)),t.axref===t.xref&&M("ax",y(v,e,"ax",j,t)),t.ayref===t.yref&&M("ay",y(b,n,"ay",j,t)),q.attr("transform",s(e,n)),R.attr({transform:"rotate("+L+","+o+","+i+")"})},doneFn:function(){o.call("_guiRelayout",e,S());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};if(t.showarrow&&Te(0,0),I)p.init({element:D.node(),gd:e,prepFn:function(){ke=R.attr("transform")},moveFn:function(e,n){var r="pointer";if(t.showarrow)t.axref===t.xref?M("ax",y(v,e,"ax",j,t)):M("ax",t.ax+e),t.ayref===t.yref?M("ay",y(b,n,"ay",j.w,t)):M("ay",t.ay+n),Te(e,n);else{if(i)return;var o,a;if(v)o=y(v,e,"x",j,t);else{var l=t._xsize/j.w,c=t.x+(t._xshift-t.xshift)/j.w-l/2;o=p.align(c+e/j.w,l,0,1,t.xanchor)}if(b)a=y(b,n,"y",j,t);else{var u=t._ysize/j.h,d=t.y-(t._yshift+t.yshift)/j.h-u/2;a=p.align(d-n/j.h,u,0,1,t.yanchor)}M("x",o),M("y",a),v&&b||(r=p.getCursor(v?.5:o,b?.5:a,t.xanchor,t.yanchor))}R.attr({transform:s(e,n)+ke}),h(D,r)},clickFn:function(n,r){t.captureevents&&e.emit("plotly_clickannotation",W(r))},doneFn:function(){h(D),o.call("_guiRelayout",e,S());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}e.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var n=0;n<t.annotations.length;n++)t.annotations[n].visible&&v(e,n);return i.previousPromises(e)},drawOne:v,drawRaw:b}},"./node_modules/plotly.js/src/components/annotations/draw_arrow_head.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/components/color/index.js"),i=n("./node_modules/plotly.js/src/components/annotations/arrow_paths.js"),a=n("./node_modules/plotly.js/src/lib/index.js"),s=a.strScale,l=a.strRotate,c=a.strTranslate;e.exports=function(e,t,n){var a,u,d,f,h=e.node(),p=i[n.arrowhead||0],m=i[n.startarrowhead||0],g=(n.arrowwidth||1)*(n.arrowsize||1),v=(n.arrowwidth||1)*(n.startarrowsize||1),y=t.indexOf("start")>=0,b=t.indexOf("end")>=0,x=p.backoff*g+n.standoff,_=m.backoff*v+n.startstandoff;if("line"===h.nodeName){a={x:+e.attr("x1"),y:+e.attr("y1")},u={x:+e.attr("x2"),y:+e.attr("y2")};var w=a.x-u.x,j=a.y-u.y;if(f=(d=Math.atan2(j,w))+Math.PI,x&&_&&x+_>Math.sqrt(w*w+j*j))return void I();if(x){if(x*x>w*w+j*j)return void I();var k=x*Math.cos(d),T=x*Math.sin(d);u.x+=k,u.y+=T,e.attr({x2:u.x,y2:u.y})}if(_){if(_*_>w*w+j*j)return void I();var A=_*Math.cos(d),M=_*Math.sin(d);a.x-=A,a.y-=M,e.attr({x1:a.x,y1:a.y})}}else if("path"===h.nodeName){var S=h.getTotalLength(),C="";if(S<x+_)return void I();var E=h.getPointAtLength(0),L=h.getPointAtLength(.1);d=Math.atan2(E.y-L.y,E.x-L.x),a=h.getPointAtLength(Math.min(_,S)),C="0px,"+_+"px,";var O=h.getPointAtLength(S),R=h.getPointAtLength(S-.1);f=Math.atan2(O.y-R.y,O.x-R.x),u=h.getPointAtLength(Math.max(0,S-x)),C+=S-(C?_+x:x)+"px,"+S+"px",e.style("stroke-dasharray",C)}function I(){e.style("stroke-dasharray","0px,100px")}function P(t,i,a,u){t.path&&(t.noRotate&&(a=0),r.select(h.parentNode).append("path").attr({class:e.attr("class"),d:t.path,transform:c(i.x,i.y)+l(180*a/Math.PI)+s(u)}).style({fill:o.rgb(n.arrowcolor),"stroke-width":0}))}y&&P(m,a,d,v),b&&P(p,u,f,g)}},"./node_modules/plotly.js/src/components/annotations/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/annotations/draw.js"),o=n("./node_modules/plotly.js/src/components/annotations/click.js");e.exports={moduleType:"component",name:"annotations",layoutAttributes:n("./node_modules/plotly.js/src/components/annotations/attributes.js"),supplyLayoutDefaults:n("./node_modules/plotly.js/src/components/annotations/defaults.js"),includeBasePlot:n("./node_modules/plotly.js/src/plots/cartesian/include_components.js")("annotations"),calcAutorange:n("./node_modules/plotly.js/src/components/annotations/calc_autorange.js"),draw:r.draw,drawOne:r.drawOne,drawRaw:r.drawRaw,hasClickToShow:o.hasClickToShow,onClick:o.onClick,convertCoords:n("./node_modules/plotly.js/src/components/annotations/convert_coords.js")}},"./node_modules/plotly.js/src/components/annotations3d/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/annotations/attributes.js"),o=n("./node_modules/plotly.js/src/plot_api/edit_types.js").overrideAll,i=n("./node_modules/plotly.js/src/plot_api/plot_template.js").templatedArray;e.exports=o(i("annotation",{visible:r.visible,x:{valType:"any",description:["Sets the annotation's x position."].join(" ")},y:{valType:"any",description:["Sets the annotation's y position."].join(" ")},z:{valType:"any",description:["Sets the annotation's z position."].join(" ")},ax:{valType:"number",description:["Sets the x component of the arrow tail about the arrow head (in pixels)."].join(" ")},ay:{valType:"number",description:["Sets the y component of the arrow tail about the arrow head (in pixels)."].join(" ")},xanchor:r.xanchor,xshift:r.xshift,yanchor:r.yanchor,yshift:r.yshift,text:r.text,textangle:r.textangle,font:r.font,width:r.width,height:r.height,opacity:r.opacity,align:r.align,valign:r.valign,bgcolor:r.bgcolor,bordercolor:r.bordercolor,borderpad:r.borderpad,borderwidth:r.borderwidth,showarrow:r.showarrow,arrowcolor:r.arrowcolor,arrowhead:r.arrowhead,startarrowhead:r.startarrowhead,arrowside:r.arrowside,arrowsize:r.arrowsize,startarrowsize:r.startarrowsize,arrowwidth:r.arrowwidth,standoff:r.standoff,startstandoff:r.startstandoff,hovertext:r.hovertext,hoverlabel:r.hoverlabel,captureevents:r.captureevents}),"calc","from-root")},"./node_modules/plotly.js/src/components/annotations3d/convert.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/axes.js");function i(e,t){var n=t.fullSceneLayout.domain,i=t.fullLayout._size,a={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},r.extendFlat(e._xa,a),o.setConvert(e._xa),e._xa._offset=i.l+n.x[0]*i.w,e._xa.l2p=function(){return.5*(1+e._pdata[0]/e._pdata[3])*i.w*(n.x[1]-n.x[0])},e._ya={},r.extendFlat(e._ya,a),o.setConvert(e._ya),e._ya._offset=i.t+(1-n.y[1])*i.h,e._ya.l2p=function(){return.5*(1-e._pdata[1]/e._pdata[3])*i.h*(n.y[1]-n.y[0])}}e.exports=function(e){for(var t=e.fullSceneLayout.annotations,n=0;n<t.length;n++)i(t[n],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()}},"./node_modules/plotly.js/src/components/annotations3d/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),i=n("./node_modules/plotly.js/src/plots/array_container_defaults.js"),a=n("./node_modules/plotly.js/src/components/annotations/common_defaults.js"),s=n("./node_modules/plotly.js/src/components/annotations3d/attributes.js");function l(e,t,n,i){function l(n,o){return r.coerce(e,t,s,n,o)}function c(e){var r=e+"axis",i={_fullLayout:{}};return i._fullLayout[r]=n[r],o.coercePosition(t,i,l,e,e,.5)}l("visible")&&(a(e,t,i.fullLayout,l),c("x"),c("y"),c("z"),r.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",l("xanchor"),l("yanchor"),l("xshift"),l("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",l("ax",-10),l("ay",-30),r.noneOrAll(e,t,["ax","ay"])))}e.exports=function(e,t,n){i(e,t,{name:"annotations",handleItemDefaults:l,fullLayout:n.fullLayout})}},"./node_modules/plotly.js/src/components/annotations3d/draw.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/annotations/draw.js").drawRaw,o=n("./node_modules/plotly.js/src/plots/gl3d/project.js"),i=["x","y","z"];e.exports=function(e){for(var t=e.fullSceneLayout,n=e.dataScale,a=t.annotations,s=0;s<a.length;s++){for(var l=a[s],c=!1,u=0;u<3;u++){var d=i[u],f=l[d],h=t[d+"axis"].r2fraction(f);if(h<0||h>1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+s+'"]').remove():(l._pdata=o(e.glplot.cameraParams,[t.xaxis.r2l(l.x)*n[0],t.yaxis.r2l(l.y)*n[1],t.zaxis.r2l(l.z)*n[2]]),r(e.graphDiv,l,s,e.id,l._xa,l._ya))}}},"./node_modules/plotly.js/src/components/annotations3d/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/lib/index.js");e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n("./node_modules/plotly.js/src/components/annotations3d/attributes.js")}}},layoutAttributes:n("./node_modules/plotly.js/src/components/annotations3d/attributes.js"),handleDefaults:n("./node_modules/plotly.js/src/components/annotations3d/defaults.js"),includeBasePlot:function(e,t){var n=r.subplotsRegistry.gl3d;if(!n)return;for(var i=n.attrRegex,a=Object.keys(e),s=0;s<a.length;s++){var l=a[s];i.test(l)&&(e[l].annotations||[]).length&&(o.pushUnique(t._basePlotModules,n),o.pushUnique(t._subplots.gl3d,l))}},convert:n("./node_modules/plotly.js/src/components/annotations3d/convert.js"),draw:n("./node_modules/plotly.js/src/components/annotations3d/draw.js")}},"./node_modules/plotly.js/src/components/color/attributes.js":function(e,t,n){"use strict";t.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t.defaultLine="#444",t.lightLine="#eee",t.background="#fff",t.borderLine="#BEC8D9",t.lightFraction=1e3/11},"./node_modules/plotly.js/src/components/color/index.js":function(e,t,n){"use strict";var r=n("./node_modules/tinycolor2/cjs/tinycolor.js"),o=n("./node_modules/fast-isnumeric/index.js"),i=n("./node_modules/plotly.js/src/lib/array.js").isTypedArray,a=e.exports={},s=n("./node_modules/plotly.js/src/components/color/attributes.js");a.defaults=s.defaults;var l=a.defaultLine=s.defaultLine;a.lightLine=s.lightLine;var c=a.background=s.background;function u(e){if(o(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),i="a"===t.charAt(3)&&4===r.length;if(!i&&3!==r.length)return e;for(var a=0;a<r.length;a++){if(!r[a].length)return e;if(r[a]=Number(r[a]),!(r[a]>=0))return e;if(3===a)r[a]>1&&(r[a]=1);else if(r[a]>=1)return e}var s=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return i?"rgba("+s+", "+r[3]+")":"rgb("+s+")"}a.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},a.rgb=function(e){return a.tinyRGB(r(e))},a.opacity=function(e){return e?r(e).getAlpha():0},a.addOpacity=function(e,t){var n=r(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},a.combine=function(e,t){var n=r(e).toRgb();if(1===n.a)return r(e).toRgbString();var o=r(t||c).toRgb(),i=1===o.a?o:{r:255*(1-o.a)+o.r*o.a,g:255*(1-o.a)+o.g*o.a,b:255*(1-o.a)+o.b*o.a},a={r:i.r*(1-n.a)+n.r*n.a,g:i.g*(1-n.a)+n.g*n.a,b:i.b*(1-n.a)+n.b*n.a};return r(a).toRgbString()},a.interpolate=function(e,t,n){var o=r(e).toRgb(),i=r(t).toRgb(),a={r:n*o.r+(1-n)*i.r,g:n*o.g+(1-n)*i.g,b:n*o.b+(1-n)*i.b};return r(a).toRgbString()},a.contrast=function(e,t,n){var o=r(e);return 1!==o.getAlpha()&&(o=r(a.combine(e,c))),(o.isDark()?t?o.lighten(t):c:n?o.darken(n):l).toString()},a.stroke=function(e,t){var n=r(t);e.style({stroke:a.tinyRGB(n),"stroke-opacity":n.getAlpha()})},a.fill=function(e,t){var n=r(t);e.style({fill:a.tinyRGB(n),"fill-opacity":n.getAlpha()})},a.clean=function(e){if(e&&"object"==typeof e){var t,n,r,o,s=Object.keys(e);for(t=0;t<s.length;t++)if(o=e[r=s[t]],"color"===r.substr(r.length-5))if(Array.isArray(o))for(n=0;n<o.length;n++)o[n]=u(o[n]);else e[r]=u(o);else if("colorscale"===r.substr(r.length-10)&&Array.isArray(o))for(n=0;n<o.length;n++)Array.isArray(o[n])&&(o[n][1]=u(o[n][1]));else if(Array.isArray(o)){var l=o[0];if(!Array.isArray(l)&&l&&"object"==typeof l)for(n=0;n<o.length;n++)a.clean(o[n])}else o&&"object"==typeof o&&!i(o)&&a.clean(o)}}},"./node_modules/plotly.js/src/components/colorbar/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js"),o=n("./node_modules/plotly.js/src/plots/font_attributes.js"),i=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,a=n("./node_modules/plotly.js/src/plot_api/edit_types.js").overrideAll;e.exports=a({orientation:{valType:"enumerated",values:["h","v"],dflt:"v",description:"Sets the orientation of the colorbar."},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",description:["Determines whether this color bar's thickness","(i.e. the measure in the constant color direction)","is set in units of plot *fraction* or in *pixels*.","Use `thickness` to set the value."].join(" ")},thickness:{valType:"number",min:0,dflt:30,description:["Sets the thickness of the color bar","This measure excludes the size of the padding, ticks and labels."].join(" ")},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this color bar's length","(i.e. the measure in the color variation direction)","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the color bar","This measure excludes the padding of both ends.","That is, the color bar length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",description:["Sets the x position with respect to `xref` of the color bar (in plot fraction).","When `xref` is *paper*, defaults to 1.02 when `orientation` is *v* and","0.5 when `orientation` is *h*.","When `xref` is *container*, defaults to *1* when `orientation` is *v* and","0.5 when `orientation` is *h*.","Must be between *0* and *1* if `xref` is *container*","and between *-2* and *3* if `xref` is *paper*."].join(" ")},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],description:["Sets this color bar's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the color bar.","Defaults to *left* when `orientation` is *v* and","*center* when `orientation` is *h*."].join(" ")},xpad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the x direction."},y:{valType:"number",description:["Sets the y position with respect to `yref` of the color bar (in plot fraction).","When `yref` is *paper*, defaults to 0.5 when `orientation` is *v* and","1.02 when `orientation` is *h*.","When `yref` is *container*, defaults to 0.5 when `orientation` is *v* and","1 when `orientation` is *h*.","Must be between *0* and *1* if `yref` is *container*","and between *-2* and *3* if `yref` is *paper*."].join(" ")},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],description:["Sets this color bar's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the color bar.","Defaults to *middle* when `orientation` is *v* and","*bottom* when `orientation` is *h*."].join(" ")},ypad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the y direction."},outlinecolor:r.linecolor,outlinewidth:r.linewidth,bordercolor:r.linecolor,borderwidth:{valType:"number",min:0,dflt:0,description:["Sets the width (in px) or the border enclosing this color bar."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:"Sets the color of padded area."},tickmode:r.minor.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:i({},r.ticks,{dflt:""}),ticklabeloverflow:i({},r.ticklabeloverflow,{description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","In other cases the default is *hide past div*."].join(" ")}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",description:["Determines where tick labels are drawn relative to the ticks.","Left and right options are used when `orientation` is *h*,","top and bottom when `orientation` is *v*."].join(" ")},ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,ticklabelstep:r.ticklabelstep,showticklabels:r.showticklabels,labelalias:r.labelalias,tickfont:o({description:"Sets the color bar's tick label font"}),tickangle:r.tickangle,tickformat:r.tickformat,tickformatstops:r.tickformatstops,tickprefix:r.tickprefix,showtickprefix:r.showtickprefix,ticksuffix:r.ticksuffix,showticksuffix:r.showticksuffix,separatethousands:r.separatethousands,exponentformat:r.exponentformat,minexponent:r.minexponent,showexponent:r.showexponent,title:{text:{valType:"string",description:["Sets the title of the color bar.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:o({description:["Sets this color bar's title font.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),side:{valType:"enumerated",values:["right","top","bottom"],description:["Determines the location of color bar's title","with respect to the color bar.","Defaults to *top* when `orientation` if *v* and ","defaults to *right* when `orientation` if *h*.","Note that the title's location used to be set","by the now deprecated `titleside` attribute."].join(" ")}},_deprecated:{title:{valType:"string",description:["Deprecated in favor of color bar's `title.text`.","Note that value of color bar's `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:o({description:"Deprecated in favor of color bar's `title.font`."}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top",description:"Deprecated in favor of color bar's `title.side`."}}},"colorbars","from-root")},"./node_modules/plotly.js/src/components/colorbar/constants.js":function(e,t,n){"use strict";e.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"}}},"./node_modules/plotly.js/src/components/colorbar/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),i=n("./node_modules/plotly.js/src/plots/cartesian/tick_value_defaults.js"),a=n("./node_modules/plotly.js/src/plots/cartesian/tick_mark_defaults.js"),s=n("./node_modules/plotly.js/src/plots/cartesian/tick_label_defaults.js"),l=n("./node_modules/plotly.js/src/plots/cartesian/prefix_suffix_defaults.js"),c=n("./node_modules/plotly.js/src/components/colorbar/attributes.js");e.exports=function(e,t,n){var u=o.newContainer(t,"colorbar"),d=e.colorbar||{};function f(e,t){return r.coerce(d,u,c,e,t)}var h=n.margin||{t:0,b:0,l:0,r:0},p=n.width-h.l-h.r,m=n.height-h.t-h.b,g="v"===f("orientation"),v=f("thicknessmode");f("thickness","fraction"===v?30/(g?p:m):30);var y=f("lenmode");f("len","fraction"===y?1:g?m:p);var b,x,_,w="paper"===f("yref"),j="paper"===f("xref"),k="left";g?(_="middle",k=j?"left":"right",b=j?1.02:1,x=.5):(_=w?"bottom":"top",k="center",b=.5,x=w?1.02:1),r.coerce(d,u,{x:{valType:"number",min:j?-2:0,max:j?3:1,dflt:b}},"x"),r.coerce(d,u,{y:{valType:"number",min:w?-2:0,max:w?3:1,dflt:x}},"y"),f("xanchor",k),f("xpad"),f("yanchor",_),f("ypad"),r.noneOrAll(d,u,["x","y"]),f("outlinecolor"),f("outlinewidth"),f("bordercolor"),f("borderwidth"),f("bgcolor");var T=r.coerce(d,u,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:g?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");f("ticklabeloverflow",-1!==T.indexOf("inside")?"hide past domain":"hide past div"),i(d,u,f,"linear");var A=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};-1!==T.indexOf("inside")&&(M.bgColor="black"),l(d,u,f,"linear",M),s(d,u,f,"linear",M),a(d,u,f,"linear",M),f("title.text",n._dfltTitle.colorbar);var S=u.showticklabels?u.tickfont:A,C=r.extendFlat({},A,{family:S.family,size:r.bigFont(S.size)});r.coerceFont(f,"title.font",C),f("title.side",g?"top":"right")}},"./node_modules/plotly.js/src/components/colorbar/draw.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/tinycolor2/cjs/tinycolor.js"),i=n("./node_modules/plotly.js/src/plots/plots.js"),a=n("./node_modules/plotly.js/src/registry.js"),s=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),l=n("./node_modules/plotly.js/src/components/dragelement/index.js"),c=n("./node_modules/plotly.js/src/lib/index.js"),u=c.strTranslate,d=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,f=n("./node_modules/plotly.js/src/lib/setcursor.js"),h=n("./node_modules/plotly.js/src/components/drawing/index.js"),p=n("./node_modules/plotly.js/src/components/color/index.js"),m=n("./node_modules/plotly.js/src/components/titles/index.js"),g=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),v=n("./node_modules/plotly.js/src/components/colorscale/helpers.js").flipScale,y=n("./node_modules/plotly.js/src/plots/cartesian/axis_defaults.js"),b=n("./node_modules/plotly.js/src/plots/cartesian/position_defaults.js"),x=n("./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js"),_=n("./node_modules/plotly.js/src/constants/alignment.js"),w=_.LINE_SPACING,j=_.FROM_TL,k=_.FROM_BR,T=n("./node_modules/plotly.js/src/components/colorbar/constants.js").cn;e.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+T.colorbar).data(function(e){var t,n,r,o,i=e._fullLayout,a=e.calcdata,s=[];function l(e){return d(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){"function"==typeof o.calc?o.calc(e,r,t):(t._fillgradient=n.reversescale?v(n.colorscale):n.colorscale,t._zrange=[n[o.min],n[o.max]])}for(var u=0;u<a.length;u++){var f=a[u];if((r=f[0].trace)._module){var h=r._module.colorbar;if(!0===r.visible&&h)for(var p=Array.isArray(h),m=p?h:[h],g=0;g<m.length;g++){var y=(o=m[g]).container;(n=y?r[y]:r)&&n.showscale&&((t=l(n.colorbar))._id="cb"+r.uid+(p&&y?"-"+y:""),t._traceIndex=r.index,t._propPrefix=(y?y+".":"")+"colorbar.",t._meta=r._meta,c(),s.push(t))}}}for(var b in i._colorAxes)if((n=i[b]).showscale){var x=i._colorAxes[b];(t=l(n.colorbar))._id="cb"+b,t._propPrefix=b+".colorbar.",t._meta=i._meta,o={min:"cmin",max:"cmax"},"heatmap"!==x[0]&&(r=x[1],o.calc=r._module.colorbar.calc),c(),s.push(t)}return s}(e),(function(e){return e._id}));t.enter().append("g").attr("class",(function(e){return e._id})).classed(T.colorbar,!0),t.each((function(t){var n=r.select(this);c.ensureSingle(n,"rect",T.cbbg),c.ensureSingle(n,"g",T.cbfills),c.ensureSingle(n,"g",T.cblines),c.ensureSingle(n,"g",T.cbaxis,(function(e){e.classed(T.crisp,!0)})),c.ensureSingle(n,"g",T.cbtitleunshift,(function(e){e.append("g").classed(T.cbtitle,!0)})),c.ensureSingle(n,"rect",T.cboutline);var v=function(e,t,n){var a="v"===t.orientation,l=t.len,f=t.lenmode,v=t.thickness,_=t.thicknessmode,A=t.outlinewidth,M=t.borderwidth,S=t.bgcolor,C=t.xanchor,E=t.yanchor,L=t.xpad,O=t.ypad,R=t.x,I=a?t.y:1-t.y,P="paper"===t.yref,D="paper"===t.xref,z=n._fullLayout,N=z._size,F=t._fillcolor,B=t._line,U=t.title,H=U.side,V=t._zrange||r.extent(("function"==typeof F?F:B.color).domain()),G="function"==typeof B.color?B.color:function(){return B.color},q="function"==typeof F?F:function(){return F},W=t._levels,Y=function(e,t,n){var r,o,i=t._levels,a=[],s=[],l=i.end+i.size/100,c=i.size,u=1.001*n[0]-.001*n[1],d=1.001*n[1]-.001*n[0];for(o=0;o<1e5&&(r=i.start+o*c,!(c>0?r>=l:r<=l));o++)r>u&&r<d&&a.push(r);if(t._fillgradient)s=[0];else if("function"==typeof t._fillcolor){var f=t._filllevels;if(f)for(l=f.end+f.size/100,c=f.size,o=0;o<1e5&&(r=f.start+o*c,!(c>0?r>=l:r<=l));o++)r>n[0]&&r<n[1]&&s.push(r);else(s=a.map((function(e){return e-i.size/2}))).push(s[s.length-1]+i.size)}else t._fillcolor&&"string"==typeof t._fillcolor&&(s=[0]);i.size<0&&(a.reverse(),s.reverse());return{line:a,fill:s}}(0,t,V),X=Y.fill,Z=Y.line,$=Math.round(v*("fraction"===_?a?N.w:N.h:1)),K=$/(a?N.w:N.h),J=Math.round(l*("fraction"===f?a?N.h:N.w:1)),Q=J/(a?N.h:N.w),ee=D?N.w:n._fullLayout.width,te=P?N.h:n._fullLayout.height,ne=Math.round(a?R*ee+L:I*te+O),re={center:.5,right:1}[C]||0,oe={top:1,middle:.5}[E]||0,ie=a?R-re*K:I-oe*K,ae=a?I-oe*Q:R-re*Q,se=Math.round(a?te*(1-ae):ee*ae);t._lenFrac=Q,t._thickFrac=K,t._uFrac=ie,t._vFrac=ae;var le=t._axis=function(e,t,n){var r=e._fullLayout,o="v"===t.orientation,i={type:"linear",range:n,tickmode:t.tickmode,nticks:t.nticks,tick0:t.tick0,dtick:t.dtick,tickvals:t.tickvals,ticktext:t.ticktext,ticks:t.ticks,ticklen:t.ticklen,tickwidth:t.tickwidth,tickcolor:t.tickcolor,showticklabels:t.showticklabels,labelalias:t.labelalias,ticklabelposition:t.ticklabelposition,ticklabeloverflow:t.ticklabeloverflow,ticklabelstep:t.ticklabelstep,tickfont:t.tickfont,tickangle:t.tickangle,tickformat:t.tickformat,exponentformat:t.exponentformat,minexponent:t.minexponent,separatethousands:t.separatethousands,showexponent:t.showexponent,showtickprefix:t.showtickprefix,tickprefix:t.tickprefix,showticksuffix:t.showticksuffix,ticksuffix:t.ticksuffix,title:t.title,showline:!0,anchor:"free",side:o?"right":"bottom",position:1},a=o?"y":"x",s={type:"linear",_id:a+t._id},l={letter:a,font:r.font,noAutotickangles:"y"===a,noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:r.calendar};function u(e,t){return c.coerce(i,s,x,e,t)}return y(i,s,u,l,r),b(i,s,u,l),s}(n,t,V);le.position=K+(a?R+L/N.w:I+O/N.h);var ce=-1!==["top","bottom"].indexOf(H);a&&ce&&(le.title.side=H,le.titlex=R+L/N.w,le.titley=ae+("top"===U.side?Q-O/N.h:O/N.h));a||ce||(le.title.side=H,le.titley=I+O/N.h,le.titlex=ae+L/N.w);if(B.color&&"auto"===t.tickmode){le.tickmode="linear",le.tick0=W.start;var ue=W.size,de=c.constrain(J/50,4,15)+1,fe=(V[1]-V[0])/((t.nticks||de)*ue);if(fe>1){var he=Math.pow(10,Math.floor(Math.log(fe)/Math.LN10));ue*=he*c.roundUp(fe/he,[2,5,10]),(Math.abs(W.start)/W.size+1e-6)%1<2e-6&&(le.tick0=0)}le.dtick=ue}le.domain=a?[ae+O/N.h,ae+Q-O/N.h]:[ae+L/N.w,ae+Q-L/N.w],le.setScale(),e.attr("transform",u(Math.round(N.l),Math.round(N.t)));var pe,me=e.select("."+T.cbtitleunshift).attr("transform",u(-Math.round(N.l),-Math.round(N.t))),ge=le.ticklabelposition,ve=le.title.font.size,ye=e.select("."+T.cbaxis),be=0,xe=0;function _e(r,o){var i={propContainer:le,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:z._dfltTitle.colorbar,containerGroup:e.select("."+T.cbtitle)},a="h"===r.charAt(0)?r.substr(1):"h"+r;e.selectAll("."+a+",."+a+"-math-group").remove(),m.draw(n,r,d(i,o||{}))}return c.syncOrAsync([i.previousPromises,function(){var e,t;(a&&ce||!a&&!ce)&&("top"===H&&(e=L+N.l+ee*R,t=O+N.t+te*(1-ae-Q)+3+.75*ve),"bottom"===H&&(e=L+N.l+ee*R,t=O+N.t+te*(1-ae)-3-.25*ve),"right"===H&&(t=O+N.t+te*I+3+.75*ve,e=L+N.l+ee*ae),_e(le._id+"title",{attributes:{x:e,y:t,"text-anchor":a?"start":"middle"}}))},function(){if(!a&&!ce||a&&ce){var i,l=e.select("."+T.cbtitle),d=l.select("text"),f=[-A/2,A/2],p=l.select(".h"+le._id+"title-math-group").node(),m=15.6;if(d.node()&&(m=parseInt(d.node().style.fontSize,10)*w),p?(i=h.bBox(p),xe=i.width,(be=i.height)>m&&(f[1]-=(be-m)/2)):d.node()&&!d.classed(T.jsPlaceholder)&&(i=h.bBox(d.node()),xe=i.width,be=i.height),a){if(be){if(be+=5,"top"===H)le.domain[1]-=be/N.h,f[1]*=-1;else{le.domain[0]+=be/N.h;var v=g.lineCount(d);f[1]+=(1-v)*m}l.attr("transform",u(f[0],f[1])),le.setScale()}}else xe&&("right"===H&&(le.domain[0]+=(xe+ve/2)/N.w),l.attr("transform",u(f[0],f[1])),le.setScale())}e.selectAll("."+T.cbfills+",."+T.cblines).attr("transform",a?u(0,Math.round(N.h*(1-le.domain[1]))):u(Math.round(N.w*le.domain[0]),0)),ye.attr("transform",a?u(0,Math.round(-N.t)):u(Math.round(-N.l),0));var y=e.select("."+T.cbfills).selectAll("rect."+T.cbfill).attr("style","").data(X);y.enter().append("rect").classed(T.cbfill,!0).attr("style",""),y.exit().remove();var b=V.map(le.c2p).map(Math.round).sort((function(e,t){return e-t}));y.each((function(e,i){var s=[0===i?V[0]:(X[i]+X[i-1])/2,i===X.length-1?V[1]:(X[i]+X[i+1])/2].map(le.c2p).map(Math.round);a&&(s[1]=c.constrain(s[1]+(s[1]>s[0])?1:-1,b[0],b[1]));var l=r.select(this).attr(a?"x":"y",ne).attr(a?"y":"x",r.min(s)).attr(a?"width":"height",Math.max($,2)).attr(a?"height":"width",Math.max(r.max(s)-r.min(s),2));if(t._fillgradient)h.gradient(l,n,t._id,a?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var u=q(e).replace("e-","");l.attr("fill",o(u).toHexString())}}));var x=e.select("."+T.cblines).selectAll("path."+T.cbline).data(B.color&&B.width?Z:[]);x.enter().append("path").classed(T.cbline,!0),x.exit().remove(),x.each((function(e){var t=ne,n=Math.round(le.c2p(e))+B.width/2%1;r.select(this).attr("d","M"+(a?t+","+n:n+","+t)+(a?"h":"v")+$).call(h.lineGroupStyle,B.width,G(e),B.dash)})),ye.selectAll("g."+le._id+"tick,path").remove();var _=ne+$+(A||0)/2-("outside"===t.ticks?1:0),j=s.calcTicks(le),k=s.getTickSigns(le)[2];return s.drawTicks(n,le,{vals:"inside"===le.ticks?s.clipEnds(le,j):j,layer:ye,path:s.makeTickPath(le,_,k),transFn:s.makeTransTickFn(le)}),s.drawLabels(n,le,{vals:j,layer:ye,transFn:s.makeTransTickLabelFn(le),labelFns:s.makeLabelFns(le,_)})},function(){if(a&&!ce||!a&&ce){var e,o,i=le.position||0,s=le._offset+le._length/2;if("right"===H)o=s,e=N.l+ee*i+10+ve*(le.showticklabels?1:.5);else if(e=s,"bottom"===H&&(o=N.t+te*i+10+(-1===ge.indexOf("inside")?le.tickfont.size:0)+("intside"!==le.ticks&&t.ticklen||0)),"top"===H){var l=U.text.split("<br>").length;o=N.t+te*i+10-$-w*ve*l}_e((a?"h":"v")+le._id+"title",{avoid:{selection:r.select(n).selectAll("g."+le._id+"tick"),side:H,offsetTop:a?0:N.t,offsetLeft:a?N.l:0,maxShift:a?z.width:z.height},attributes:{x:e,y:o,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}},i.previousPromises,function(){var r,s=$+A/2;-1===ge.indexOf("inside")&&(r=h.bBox(ye.node()),s+=a?r.width:r.height),pe=me.select("text");var c=0,d=a&&"top"===H,m=!a&&"right"===H,g=0;if(pe.node()&&!pe.classed(T.jsPlaceholder)){var y,b=me.select(".h"+le._id+"title-math-group").node();b&&(a&&ce||!a&&!ce)?(c=(r=h.bBox(b)).width,y=r.height):(c=(r=h.bBox(me.node())).right-N.l-(a?ne:se),y=r.bottom-N.t-(a?se:ne),a||"top"!==H||(s+=r.height,g=r.height)),m&&(pe.attr("transform",u(c/2+ve/2,0)),c*=2),s=Math.max(s,a?c:y)}var x=2*(a?L:O)+s+M+A/2,w=0;!a&&U.text&&"bottom"===E&&I<=0&&(x+=w=x/2,g+=w),z._hColorbarMoveTitle=w,z._hColorbarMoveCBTitle=g;var F=M+A,B=(a?ne:se)-F/2-(a?L:0),V=(a?se:ne)-(a?J:O+g-w);e.select("."+T.cbbg).attr("x",B).attr("y",V).attr(a?"width":"height",Math.max(x-w,2)).attr(a?"height":"width",Math.max(J+F,2)).call(p.fill,S).call(p.stroke,t.bordercolor).style("stroke-width",M);var G=m?Math.max(c-10,0):0;e.selectAll("."+T.cboutline).attr("x",(a?ne:se+L)+G).attr("y",(a?se+O-J:ne)+(d?be:0)).attr(a?"width":"height",Math.max($,2)).attr(a?"height":"width",Math.max(J-(a?2*O+be:2*L+G),2)).call(p.stroke,t.outlinecolor).style({fill:"none","stroke-width":A});var q=a?re*x:0,W=a?0:(1-oe)*x-g;if(q=D?N.l-q:-q,W=P?N.t-W:-W,e.attr("transform",u(q,W)),!a&&(M||o(S).getAlpha()&&!o.equals(z.paper_bgcolor,S))){var Y=ye.selectAll("text"),X=Y[0].length,Z=e.select("."+T.cbbg).node(),K=h.bBox(Z),Q=h.getTranslate(e);Y.each((function(e,t){var n=X-1;if(0===t||t===n){var r,o=h.bBox(this),i=h.getTranslate(this);if(t===n){var a=o.right+i.x;(r=K.right+Q.x+se-M-2+R-a)>0&&(r=0)}else if(0===t){var s=o.left+i.x;(r=K.left+Q.x+se+M+2-s)<0&&(r=0)}r&&(X<3?this.setAttribute("transform","translate("+r+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}}))}var ee={},te=j[C],ie=k[C],ae=j[E],ue=k[E],de=x-$;a?("pixels"===f?(ee.y=I,ee.t=J*ae,ee.b=J*ue):(ee.t=ee.b=0,ee.yt=I+l*ae,ee.yb=I-l*ue),"pixels"===_?(ee.x=R,ee.l=x*te,ee.r=x*ie):(ee.l=de*te,ee.r=de*ie,ee.xl=R-v*te,ee.xr=R+v*ie)):("pixels"===f?(ee.x=R,ee.l=J*te,ee.r=J*ie):(ee.l=ee.r=0,ee.xl=R+l*te,ee.xr=R-l*ie),"pixels"===_?(ee.y=1-I,ee.t=x*ae,ee.b=x*ue):(ee.t=de*ae,ee.b=de*ue,ee.yt=I-v*ae,ee.yb=I+v*ue));var fe=t.y<.5?"b":"t",he=t.x<.5?"l":"r";n._fullLayout._reservedMargin[t._id]={};var xe={r:z.width-B-q,l:B+ee.r,b:z.height-V-W,t:V+ee.b};D&&P?i.autoMargin(n,t._id,ee):D?n._fullLayout._reservedMargin[t._id][fe]=xe[fe]:P||a?n._fullLayout._reservedMargin[t._id][he]=xe[he]:n._fullLayout._reservedMargin[t._id][fe]=xe[fe]}],n)}(n,t,e);v&&v.then&&(e._promises||[]).push(v),e._context.edits.colorbarPosition&&function(e,t,n){var r,o,i,s="v"===t.orientation,c=n._fullLayout._size;l.init({element:e.node(),gd:n,prepFn:function(){r=e.attr("transform"),f(e)},moveFn:function(n,a){e.attr("transform",r+u(n,a)),o=l.align((s?t._uFrac:t._vFrac)+n/c.w,s?t._thickFrac:t._lenFrac,0,1,t.xanchor),i=l.align((s?t._vFrac:1-t._uFrac)-a/c.h,s?t._lenFrac:t._thickFrac,0,1,t.yanchor);var d=l.getCursor(o,i,t.xanchor,t.yanchor);f(e,d)},doneFn:function(){if(f(e),void 0!==o&&void 0!==i){var r={};r[t._propPrefix+"x"]=o,r[t._propPrefix+"y"]=i,void 0!==t._traceIndex?a.call("_guiRestyle",n,r,t._traceIndex):a.call("_guiRelayout",n,r)}}})}(n,t,e)})),t.exit().each((function(t){i.autoMargin(e,t._id)})).remove(),t.order()}}},"./node_modules/plotly.js/src/components/colorbar/has_colorbar.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js");e.exports=function(e){return r.isPlainObject(e.colorbar)}},"./node_modules/plotly.js/src/components/colorbar/index.js":function(e,t,n){"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:n("./node_modules/plotly.js/src/components/colorbar/attributes.js"),supplyDefaults:n("./node_modules/plotly.js/src/components/colorbar/defaults.js"),draw:n("./node_modules/plotly.js/src/components/colorbar/draw.js").draw,hasColorbar:n("./node_modules/plotly.js/src/components/colorbar/has_colorbar.js")}},"./node_modules/plotly.js/src/components/colorscale/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/colorbar/attributes.js"),o=n("./node_modules/plotly.js/src/lib/regex.js").counter,i=n("./node_modules/plotly.js/src/lib/sort_object_keys.js"),a=n("./node_modules/plotly.js/src/components/colorscale/scales.js").scales,s=i(a);function l(e){return"`"+e+"`"}e.exports=function(e,t){e=e||"";var n,i,c=(t=t||{}).cLetter||"c",u="onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),d="noScale"in t?t.noScale:"marker.line"===e,f="showScaleDflt"in t?t.showScaleDflt:"z"===c,h="string"==typeof t.colorscaleDflt?a[t.colorscaleDflt]:null,p=t.editTypeOverride||"",m=e?e+".":"";"colorAttr"in t?(n=t.colorAttr,i=t.colorAttr):i="in "+l(m+(n={z:"z",c:"color"}[c]));var g=u?" Has an effect only if "+i+" is set to a numerical array.":"",v=c+"auto",y=c+"min",b=c+"max",x=c+"mid",_=l(m+v),w=l(m+y),j=l(m+b),k=w+" and "+j,T={};T[y]=T[b]=void 0;var A={};A[v]=!1;var M={};return"color"===n&&(M.color={valType:"color",arrayOk:!0,editType:p||"style",description:["Sets the",e,"color.","It accepts either a specific color","or an array of numbers that are mapped to the colorscale","relative to the max and min values of the array or relative to",k,"if set."].join(" ")},t.anim&&(M.color.anim=!0)),M[v]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T,description:["Determines whether or not the color domain is computed","with respect to the input data (here "+i+") or the bounds set in",k+g,"Defaults to `false` when",k,"are set by the user."].join(" ")},M[y]={valType:"number",dflt:null,editType:p||"plot",impliedEdits:A,description:["Sets the lower bound of the color domain."+g,"Value should have the same units as",i,"and if set,",j,"must be set as well."].join(" ")},M[b]={valType:"number",dflt:null,editType:p||"plot",impliedEdits:A,description:["Sets the upper bound of the color domain."+g,"Value should have the same units as",i,"and if set,",w,"must be set as well."].join(" ")},M[x]={valType:"number",dflt:null,editType:"calc",impliedEdits:T,description:["Sets the mid-point of the color domain by scaling",w,"and/or",j,"to be equidistant to this point."+g,"Value should have the same units as",i+".","Has no effect when",_,"is `false`."].join(" ")},M.colorscale={valType:"colorscale",editType:"calc",dflt:h,impliedEdits:{autocolorscale:!1},description:["Sets the colorscale."+g,"The colorscale must be an array containing","arrays mapping a normalized value to an","rgb, rgba, hex, hsl, hsv, or named color string.","At minimum, a mapping for the lowest (0) and highest (1)","values are required. For example,","`[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.","To control the bounds of the colorscale in color space,","use",k+".","Alternatively, `colorscale` may be a palette name string","of the following list: "+s+"."].join(" ")},M.autocolorscale={valType:"boolean",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0},description:["Determines whether the colorscale is a default palette (`autocolorscale: true`)","or the palette determined by",l(m+"colorscale")+"."+g,"In case `colorscale` is unspecified or `autocolorscale` is true, the default","palette will be chosen according to whether numbers in the `color` array are","all positive, all negative or mixed."].join(" ")},M.reversescale={valType:"boolean",dflt:!1,editType:"plot",description:["Reverses the color mapping if true."+g,"If true,",w,"will correspond to the last color","in the array and",j,"will correspond to the first color."].join(" ")},d||(M.showscale={valType:"boolean",dflt:f,editType:"calc",description:["Determines whether or not a colorbar is displayed for this trace."+g].join(" ")},M.colorbar=r),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:o("coloraxis"),dflt:null,editType:"calc",description:["Sets a reference to a shared color axis.","References to these shared color axes are *coloraxis*, *coloraxis2*, *coloraxis3*, etc.","Settings for these shared color axes are set in the layout, under","`layout.coloraxis`, `layout.coloraxis2`, etc.","Note that multiple color scales can be linked to the same color axis."].join(" ")}),M}},"./node_modules/plotly.js/src/components/colorscale/calc.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/components/colorscale/helpers.js").extractOpts;e.exports=function(e,t,n){var a,s=e._fullLayout,l=n.vals,c=n.containerStr,u=c?o.nestedProperty(t,c).get():t,d=i(u),f=!1!==d.auto,h=d.min,p=d.max,m=d.mid,g=function(){return o.aggNums(Math.min,null,l)},v=function(){return o.aggNums(Math.max,null,l)};(void 0===h?h=g():f&&(h=u._colorAx&&r(h)?Math.min(h,g()):g()),void 0===p?p=v():f&&(p=u._colorAx&&r(p)?Math.max(p,v()):v()),f&&void 0!==m&&(p-m>m-h?h=m-(p-m):p-m<m-h&&(p=m+(m-h))),h===p&&(h-=.5,p+=.5),d._sync("min",h),d._sync("max",p),d.autocolorscale)&&(a=h*p<0?s.colorscale.diverging:h>=0?s.colorscale.sequential:s.colorscale.sequentialminus,d._sync("colorscale",a))}},"./node_modules/plotly.js/src/components/colorscale/cross_trace_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/colorscale/helpers.js").hasColorscale,i=n("./node_modules/plotly.js/src/components/colorscale/helpers.js").extractOpts;e.exports=function(e,t){function n(e,t){var n=e["_"+t];void 0!==n&&(e[t]=n)}function a(e,o){var a=o.container?r.nestedProperty(e,o.container).get():e;if(a)if(a.coloraxis)a._colorAx=t[a.coloraxis];else{var s=i(a),l=s.auto;(l||void 0===s.min)&&n(a,o.min),(l||void 0===s.max)&&n(a,o.max),s.autocolorscale&&n(a,"colorscale")}}for(var s=0;s<e.length;s++){var l=e[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u<c.length;u++)a(l,c[u]);else a(l,c);o(l,"marker.line")&&a(l,{container:"marker.line",min:"cmin",max:"cmax"})}for(var d in t._colorAxes)a(t[d],{min:"cmin",max:"cmax"})}},"./node_modules/plotly.js/src/components/colorscale/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/components/colorbar/has_colorbar.js"),a=n("./node_modules/plotly.js/src/components/colorbar/defaults.js"),s=n("./node_modules/plotly.js/src/components/colorscale/scales.js").isValid,l=n("./node_modules/plotly.js/src/registry.js").traceIs;function c(e,t){var n=t.slice(0,t.length-1);return t?o.nestedProperty(e,n).get()||{}:e}e.exports=function e(t,n,u,d,f){var h=f.prefix,p=f.cLetter,m="_module"in n,g=c(t,h),v=c(n,h),y=c(n._template||{},h)||{},b=function(){return delete t.coloraxis,delete n.coloraxis,e(t,n,u,d,f)};if(m){var x=u._colorAxes||{},_=d(h+"coloraxis");if(_){var w=l(n,"contour")&&o.nestedProperty(n,"contours.coloring").get()||"heatmap",j=x[_];return void(j?(j[2].push(b),j[0]!==w&&(j[0]=!1,o.warn(["Ignoring coloraxis:",_,"setting","as it is linked to incompatible colorscales."].join(" ")))):x[_]=[w,n,[b]])}}var k=g[p+"min"],T=g[p+"max"],A=r(k)&&r(T)&&k<T;d(h+p+"auto",!A)?d(h+p+"mid"):(d(h+p+"min"),d(h+p+"max"));var M,S,C=g.colorscale,E=y.colorscale;(void 0!==C&&(M=!s(C)),void 0!==E&&(M=!s(E)),d(h+"autocolorscale",M),d(h+"colorscale"),d(h+"reversescale"),"marker.line."!==h)&&(h&&m&&(S=i(g)),d(h+"showscale",S)&&(h&&y&&(v._template=y),a(g,v,u)))}},"./node_modules/plotly.js/src/components/colorscale/helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/tinycolor2/cjs/tinycolor.js"),i=n("./node_modules/fast-isnumeric/index.js"),a=n("./node_modules/plotly.js/src/lib/index.js"),s=n("./node_modules/plotly.js/src/components/color/index.js"),l=n("./node_modules/plotly.js/src/components/colorscale/scales.js").isValid;var c=["showscale","autocolorscale","colorscale","reversescale","colorbar"],u=["min","max","mid","auto"];function d(e){var t,n,r,o=e._colorAx,i=o||e,a={};for(n=0;n<c.length;n++)a[r=c[n]]=i[r];if(o)for(t="c",n=0;n<u.length;n++)a[r=u[n]]=i["c"+r];else{var s;for(n=0;n<u.length;n++)((s="c"+(r=u[n]))in i||(s="z"+r)in i)&&(a[r]=i[s]);t=s.charAt(0)}return a._sync=function(e,n){var r=-1!==u.indexOf(e)?t+e:e;i[r]=i["_"+r]=n},a}function f(e){for(var t=d(e),n=t.min,r=t.max,o=t.reversescale?h(t.colorscale):t.colorscale,i=o.length,a=new Array(i),s=new Array(i),l=0;l<i;l++){var c=o[l];a[l]=n+c[0]*(r-n),s[l]=c[1]}return{domain:a,range:s}}function h(e){for(var t=e.length,n=new Array(t),r=t-1,o=0;r>=0;r--,o++){var i=e[r];n[o]=[1-i[0],i[1]]}return n}function p(e,t){t=t||{};for(var n=e.domain,a=e.range,l=a.length,c=new Array(l),u=0;u<l;u++){var d=o(a[u]).toRgb();c[u]=[d.r,d.g,d.b,d.a]}var f,h=r.scale.linear().domain(n).range(c).clamp(!0),p=t.noNumericCheck,g=t.returnArray;return(f=p&&g?h:p?function(e){return m(h(e))}:g?function(e){return i(e)?h(e):o(e).isValid()?e:s.defaultLine}:function(e){return i(e)?m(h(e)):o(e).isValid()?e:s.defaultLine}).domain=h.domain,f.range=function(){return a},f}function m(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return o(t).toRgbString()}e.exports={hasColorscale:function(e,t,n){var r=t?a.nestedProperty(e,t).get()||{}:e,o=r[n||"color"];o&&o._inputArray&&(o=o._inputArray);var s=!1;if(a.isArrayOrTypedArray(o))for(var c=0;c<o.length;c++)if(i(o[c])){s=!0;break}return a.isPlainObject(r)&&(s||!0===r.showscale||i(r.cmin)&&i(r.cmax)||l(r.colorscale)||a.isPlainObject(r.colorbar))},extractOpts:d,extractScale:f,flipScale:h,makeColorScaleFunc:p,makeColorScaleFuncFromTrace:function(e,t){return p(f(e),t)}}},"./node_modules/plotly.js/src/components/colorscale/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/colorscale/scales.js"),o=n("./node_modules/plotly.js/src/components/colorscale/helpers.js");e.exports={moduleType:"component",name:"colorscale",attributes:n("./node_modules/plotly.js/src/components/colorscale/attributes.js"),layoutAttributes:n("./node_modules/plotly.js/src/components/colorscale/layout_attributes.js"),supplyLayoutDefaults:n("./node_modules/plotly.js/src/components/colorscale/layout_defaults.js"),handleDefaults:n("./node_modules/plotly.js/src/components/colorscale/defaults.js"),crossTraceDefaults:n("./node_modules/plotly.js/src/components/colorscale/cross_trace_defaults.js"),calc:n("./node_modules/plotly.js/src/components/colorscale/calc.js"),scales:r.scales,defaultScale:r.defaultScale,getScale:r.get,isValidScale:r.isValid,hasColorscale:o.hasColorscale,extractOpts:o.extractOpts,extractScale:o.extractScale,flipScale:o.flipScale,makeColorScaleFunc:o.makeColorScaleFunc,makeColorScaleFuncFromTrace:o.makeColorScaleFuncFromTrace}},"./node_modules/plotly.js/src/components/colorscale/layout_attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,o=n("./node_modules/plotly.js/src/components/colorscale/attributes.js"),i=n("./node_modules/plotly.js/src/components/colorscale/scales.js").scales,a="Note that `autocolorscale` must be true for this attribute to work.";e.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i.Reds,editType:"calc",description:["Sets the default sequential colorscale for positive values.",a].join(" ")},sequentialminus:{valType:"colorscale",dflt:i.Blues,editType:"calc",description:["Sets the default sequential colorscale for negative values.",a].join(" ")},diverging:{valType:"colorscale",dflt:i.RdBu,editType:"calc",description:["Sets the default diverging colorscale.",a].join(" ")}},coloraxis:r({_isSubplotObj:!0,editType:"calc",description:[""].join(" ")},o("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},"./node_modules/plotly.js/src/components/colorscale/layout_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),i=n("./node_modules/plotly.js/src/components/colorscale/layout_attributes.js"),a=n("./node_modules/plotly.js/src/components/colorscale/defaults.js");e.exports=function(e,t){function n(n,o){return r.coerce(e,t,i,n,o)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var s,l,c=t._colorAxes;function u(e,t){return r.coerce(s,l,i.coloraxis,e,t)}for(var d in c){var f=c[d];if(f[0])s=e[d]||{},(l=o.newContainer(t,d,"coloraxis"))._name=d,a(s,l,t,u,{prefix:"",cLetter:"c"});else{for(var h=0;h<f[2].length;h++)f[2][h]();delete t._colorAxes[d]}}}},"./node_modules/plotly.js/src/components/colorscale/scales.js":function(e,t,n){"use strict";var r=n("./node_modules/tinycolor2/cjs/tinycolor.js"),o={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)"]]},i=o.RdBu;function a(e){var t=0;if(!Array.isArray(e)||e.length<2)return!1;if(!e[0]||!e[e.length-1])return!1;if(0!=+e[0][0]||1!=+e[e.length-1][0])return!1;for(var n=0;n<e.length;n++){var o=e[n];if(2!==o.length||+o[0]<t||!r(o[1]).isValid())return!1;t=+o[0]}return!0}e.exports={scales:o,defaultScale:i,get:function(e,t){if(t||(t=i),!e)return t;function n(){try{e=o[e]||JSON.parse(e)}catch(n){e=t}}return"string"==typeof e&&(n(),"string"==typeof e&&n()),a(e)?e:t},isValid:function(e){return void 0!==o[e]||a(e)}}},"./node_modules/plotly.js/src/components/dragelement/align.js":function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){var i=(e-n)/(r-n),a=i+t/(r-n),s=(i+a)/2;return"left"===o||"bottom"===o?i:"center"===o||"middle"===o?s:"right"===o||"top"===o?a:i<2/3-s?i:a>4/3-s?a:s}},"./node_modules/plotly.js/src/components/dragelement/cursor.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];e.exports=function(e,t,n,i){return e="left"===n?0:"center"===n?1:"right"===n?2:r.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:r.constrain(Math.floor(3*t),0,2),o[t][e]}},"./node_modules/plotly.js/src/components/dragelement/helpers.js":function(e,t,n){"use strict";t.selectMode=function(e){return"lasso"===e||"select"===e},t.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.openMode=function(e){return"drawline"===e||"drawopenpath"===e},t.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},t.selectingOrDrawing=function(e){return t.freeMode(e)||t.rectMode(e)}},"./node_modules/plotly.js/src/components/dragelement/index.js":function(e,t,n){"use strict";var r=n("./node_modules/mouse-event-offset/index.js"),o=n("./node_modules/has-hover/index.js"),i=n("./node_modules/has-passive-events/index.js"),a=n("./node_modules/plotly.js/src/lib/index.js").removeElement,s=n("./node_modules/plotly.js/src/plots/cartesian/constants.js"),l=e.exports={};l.align=n("./node_modules/plotly.js/src/components/dragelement/align.js"),l.getCursor=n("./node_modules/plotly.js/src/components/dragelement/cursor.js");var c=n("./node_modules/plotly.js/src/components/dragelement/unhover.js");function u(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function d(e){return r(e.changedTouches?e.changedTouches[0]:e,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(e){var t,n,r,c,f,h,p,m,g=e.gd,v=1,y=g._context.doubleClickDelay,b=e.element;g._mouseDownTime||(g._mouseDownTime=0),b.style.pointerEvents="all",b.onmousedown=_,i?(b._ontouchstart&&b.removeEventListener("touchstart",b._ontouchstart),b._ontouchstart=_,b.addEventListener("touchstart",_,{passive:!1})):b.ontouchstart=_;var x=e.clampFn||function(e,t,n){return Math.abs(e)<n&&(e=0),Math.abs(t)<n&&(t=0),[e,t]};function _(i){g._dragged=!1,g._dragging=!0;var a=d(i);t=a[0],n=a[1],p=i.target,h=i,m=2===i.buttons||i.ctrlKey,void 0===i.clientX&&void 0===i.clientY&&(i.clientX=t,i.clientY=n),(r=(new Date).getTime())-g._mouseDownTime<y?v+=1:(v=1,g._mouseDownTime=r),e.prepFn&&e.prepFn(i,t,n),o&&!m?(f=u()).style.cursor=window.getComputedStyle(b).cursor:o||(f=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(b).cursor),document.addEventListener("mouseup",j),document.addEventListener("touchend",j),!1!==e.dragmode&&(i.preventDefault(),document.addEventListener("mousemove",w),document.addEventListener("touchmove",w,{passive:!1}))}function w(r){r.preventDefault();var o=d(r),i=e.minDrag||s.MINDRAG,a=x(o[0]-t,o[1]-n,i),c=a[0],u=a[1];(c||u)&&(g._dragged=!0,l.unhover(g,r)),g._dragged&&e.moveFn&&!m&&(g._dragdata={element:b,dx:c,dy:u},e.moveFn(c,u))}function j(t){if(delete g._dragdata,!1!==e.dragmode&&(t.preventDefault(),document.removeEventListener("mousemove",w),document.removeEventListener("touchmove",w)),document.removeEventListener("mouseup",j),document.removeEventListener("touchend",j),o?a(f):c&&(f.documentElement.style.cursor=c,c=null),g._dragging){if(g._dragging=!1,(new Date).getTime()-g._mouseDownTime>y&&(v=Math.max(v-1,1)),g._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(v,h),!m){var n;try{n=new MouseEvent("click",t)}catch(e){var r=d(t);(n=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,r[0],r[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}p.dispatchEvent(n)}g._dragging=!1,g._dragged=!1}else g._dragged=!1}},l.coverSlip=u},"./node_modules/plotly.js/src/components/dragelement/unhover.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/events.js"),o=n("./node_modules/plotly.js/src/lib/throttle.js"),i=n("./node_modules/plotly.js/src/lib/dom.js").getGraphDiv,a=n("./node_modules/plotly.js/src/components/fx/constants.js"),s=e.exports={};s.wrapped=function(e,t,n){(e=i(e))._fullLayout&&o.clear(e._fullLayout._uid+a.HOVERID),s.raw(e,t,n)},s.raw=function(e,t){var n=e._fullLayout,o=e._hoverdata;t||(t={}),t.target&&!e._dragged&&!1===r.triggerHandler(e,"plotly_beforehover",t)||(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&o&&e.emit("plotly_unhover",{event:t,points:o}))}},"./node_modules/plotly.js/src/components/drawing/attributes.js":function(e,t,n){"use strict";t.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")},t.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style",description:["Sets the shape of the pattern fill.","By default, no pattern is used for filling the area."].join(" ")},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style",description:["Determines whether `marker.color` should be used","as a default to `bgcolor` or a `fgcolor`."].join(" ")},bgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of background pattern fill.","Defaults to a `marker.color` background when `fillmode` is *overlay*.","Otherwise, defaults to a transparent background."].join(" ")},fgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of foreground pattern fill.","Defaults to a `marker.color` background when `fillmode` is *replace*.","Otherwise, defaults to dark grey or white","to increase contrast with the `bgcolor`."].join(" ")},fgopacity:{valType:"number",editType:"style",min:0,max:1,description:["Sets the opacity of the foreground pattern fill.","Defaults to a 0.5 when `fillmode` is *overlay*.","Otherwise, defaults to 1."].join(" ")},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style",description:["Sets the size of unit squares of the pattern fill in pixels,","which corresponds to the interval of repetition of the pattern."].join(" ")},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style",description:["Sets the solidity of the pattern fill.","Solidity is roughly the fraction of the area filled by the pattern.","Solidity of 0 shows only the background color without pattern","and solidty of 1 shows only the foreground color without pattern."].join(" ")},editType:"style",description:["Sets the pattern within the marker."].join(" ")}},"./node_modules/plotly.js/src/components/drawing/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=o.numberFormat,a=n("./node_modules/fast-isnumeric/index.js"),s=n("./node_modules/tinycolor2/cjs/tinycolor.js"),l=n("./node_modules/plotly.js/src/registry.js"),c=n("./node_modules/plotly.js/src/components/color/index.js"),u=n("./node_modules/plotly.js/src/components/colorscale/index.js"),d=o.strTranslate,f=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),h=n("./node_modules/plotly.js/src/constants/xmlns_namespaces.js"),p=n("./node_modules/plotly.js/src/constants/alignment.js").LINE_SPACING,m=n("./node_modules/plotly.js/src/constants/interactions.js").DESELECTDIM,g=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js"),v=n("./node_modules/plotly.js/src/traces/scatter/make_bubble_size_func.js"),y=n("./node_modules/plotly.js/src/components/fx/helpers.js").appendArrayPointValue,b=e.exports={};function x(e){return"none"===e?void 0:e}b.font=function(e,t){var n=t.variant,r=t.style,o=t.weight,i=t.color,a=t.size,s=t.family,l=t.shadow,u=t.lineposition,d=t.textcase;s&&e.style("font-family",s),a+1&&e.style("font-size",a+"px"),i&&e.call(c.fill,i),o&&e.style("font-weight",o),r&&e.style("font-style",r),n&&e.style("font-variant",n),d&&e.style("text-transform",x(function(e){return _[e]}(d))),l&&e.style("text-shadow","auto"===l?f.makeTextShadow(c.contrast(i)):x(l)),u&&e.style("text-decoration-line",x(function(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}(u)))};var _={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function w(e,t,n,r){var o=t.fillpattern,i=t.fillgradient,a=o&&b.getPatternAttr(o.shape,0,"");if(a){var s=b.getPatternAttr(o.bgcolor,0,null),l=b.getPatternAttr(o.fgcolor,0,null),u=o.fgopacity,d=b.getPatternAttr(o.size,0,8),f=b.getPatternAttr(o.solidity,0,.3),h=t.uid;b.pattern(e,"point",n,h,a,d,f,void 0,o.fillmode,s,l,u)}else if(i&&"none"!==i.type){var p,m,g=i.type,v="scatterfill-"+t.uid;if(r&&(v="legendfill-"+t.uid),r||void 0===i.start&&void 0===i.stop)"horizontal"===g&&(g+="reversed"),e.call(b.gradient,n,v,g,i.colorscale,"fill");else"horizontal"===g?(p={x:i.start,y:0},m={x:i.stop,y:0}):"vertical"===g&&(p={x:0,y:i.start},m={x:0,y:i.stop}),p.x=t._xA.c2p(void 0===p.x?t._extremes.x.min[0].val:p.x,!0),p.y=t._yA.c2p(void 0===p.y?t._extremes.y.min[0].val:p.y,!0),m.x=t._xA.c2p(void 0===m.x?t._extremes.x.max[0].val:m.x,!0),m.y=t._yA.c2p(void 0===m.y?t._extremes.y.max[0].val:m.y,!0),e.call(S,n,v,"linear",i.colorscale,"fill",p,m,!0,!1)}else t.fillcolor&&e.call(c.fill,t.fillcolor)}b.setPosition=function(e,t,n){e.attr("x",t).attr("y",n)},b.setSize=function(e,t,n){e.attr("width",t).attr("height",n)},b.setRect=function(e,t,n,r,o){e.call(b.setPosition,t,n).call(b.setSize,r,o)},b.translatePoint=function(e,t,n,r){var o=n.c2p(e.x),i=r.c2p(e.y);return!!(a(o)&&a(i)&&t.node())&&("text"===t.node().nodeName?t.attr("x",o).attr("y",i):t.attr("transform",d(o,i)),!0)},b.translatePoints=function(e,t,n){e.each((function(e){var o=r.select(this);b.translatePoint(e,o,t,n)}))},b.hideOutsideRangePoint=function(e,t,n,r,o,i){t.attr("display",n.isPtWithinRange(e,o)&&r.isPtWithinRange(e,i)?null:"none")},b.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var n=t.xaxis,o=t.yaxis;e.each((function(t){var i=t[0].trace,a=i.xcalendar,s=i.ycalendar,c=l.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each((function(e){b.hideOutsideRangePoint(e,r.select(this),n,o,a,s)}))}))}},b.crispRound=function(e,t,n){return t&&a(t)?e._context.staticPlot?t:t<1?1:Math.round(t):n||0},b.singleLineStyle=function(e,t,n,r,o){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},a=n||i.width||0,s=o||i.dash||"";c.stroke(t,r||i.color),b.dashLine(t,s,a)},b.lineGroupStyle=function(e,t,n,o){e.style("fill","none").each((function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},a=t||i.width||0,s=o||i.dash||"";r.select(this).call(c.stroke,n||i.color).call(b.dashLine,s,a)}))},b.dashLine=function(e,t,n){n=+n||0,t=b.dashStyle(t,n),e.style({"stroke-dasharray":t,"stroke-width":n+"px"})},b.dashStyle=function(e,t){t=+t||1;var n=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=n+"px,"+n+"px":"dash"===e?e=3*n+"px,"+3*n+"px":"longdash"===e?e=5*n+"px,"+5*n+"px":"dashdot"===e?e=3*n+"px,"+n+"px,"+n+"px,"+n+"px":"longdashdot"===e&&(e=5*n+"px,"+2*n+"px,"+n+"px,"+2*n+"px"),e},b.singleFillStyle=function(e,t){var n=r.select(e.node());w(e,((n.data()[0]||[])[0]||{}).trace||{},t,!1)},b.fillGroupStyle=function(e,t,n){e.style("stroke-width",0).each((function(e){var o=r.select(this);e[0].trace&&w(o,e[0].trace,t,n)}))};var j=n("./node_modules/plotly.js/src/components/drawing/symbol_defs.js");b.symbolNames=[],b.symbolFuncs=[],b.symbolBackOffs=[],b.symbolNeedLines={},b.symbolNoDot={},b.symbolNoFill={},b.symbolList=[],Object.keys(j).forEach((function(e){var t=j[e],n=t.n;b.symbolList.push(n,String(n),e,n+100,String(n+100),e+"-open"),b.symbolNames[n]=e,b.symbolFuncs[n]=t.f,b.symbolBackOffs[n]=t.backoff||0,t.needLine&&(b.symbolNeedLines[n]=!0),t.noDot?b.symbolNoDot[n]=!0:b.symbolList.push(n+200,String(n+200),e+"-dot",n+300,String(n+300),e+"-open-dot"),t.noFill&&(b.symbolNoFill[n]=!0)}));var k=b.symbolNames.length;function T(e,t,n,r){var o=e%100;return b.symbolFuncs[o](t,n,r)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}b.symbolNumber=function(e){if(a(e))e=+e;else if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=b.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=k||e>=400?0:Math.floor(Math.max(e,0))};var A=i("~f"),M={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}};function S(e,t,n,i,a,l,u,d,f,h){var p,m=a.length;"linear"===i?p={node:"linearGradient",attrs:{x1:u.x,y1:u.y,x2:d.x,y2:d.y,gradientUnits:f?"userSpaceOnUse":"objectBoundingBox"},reversed:h}:"radial"===i&&(p={node:"radialGradient",reversed:h});for(var g=new Array(m),v=0;v<m;v++)p.reversed?g[m-1-v]=[A(100*(1-a[v][0])),a[v][1]]:g[v]=[A(100*a[v][0]),a[v][1]];var y=t._fullLayout,b="g"+y._uid+"-"+n,x=y._defs.select(".gradients").selectAll("#"+b).data([i+g.join(";")],o.identity);x.exit().remove(),x.enter().append(p.node).each((function(){var e=r.select(this);p.attrs&&e.attr(p.attrs),e.attr("id",b);var t=e.selectAll("stop").data(g);t.exit().remove(),t.enter().append("stop"),t.each((function(e){var t=s(e[1]);r.select(this).attr({offset:e[0]+"%","stop-color":c.tinyRGB(t),"stop-opacity":t.getAlpha()})}))})),e.style(l,V(b,t)).style(l+"-opacity",null),e.classed("gradient_filled",!0)}b.gradient=function(e,t,n,r,o,i){var a=M[r];return S(e,t,n,a.type,o,i,a.start,a.stop,!1,a.reversed)},b.pattern=function(e,t,n,i,a,l,u,d,f,h,p,m){var g="legend"===t;d&&("overlay"===f?(h=d,p=c.contrast(h)):(h=void 0,p=d));var v,y,b,x,_,w,j,k,T,A,M,S=n._fullLayout,C="p"+S._uid+"-"+i,E={},L=s(p),O=c.tinyRGB(L),R=m*L.getAlpha();switch(a){case"/":v=l*Math.sqrt(2),y=l*Math.sqrt(2),w="path",E={d:b="M-"+v/4+","+y/4+"l"+v/2+",-"+y/2+"M0,"+y+"L"+v+",0M"+v/4*3+","+y/4*5+"l"+v/2+",-"+y/2,opacity:R,stroke:O,"stroke-width":(x=u*l)+"px"};break;case"\\":v=l*Math.sqrt(2),y=l*Math.sqrt(2),w="path",E={d:b="M"+v/4*3+",-"+y/4+"l"+v/2+","+y/2+"M0,0L"+v+","+y+"M-"+v/4+","+y/4*3+"l"+v/2+","+y/2,opacity:R,stroke:O,"stroke-width":(x=u*l)+"px"};break;case"x":v=l*Math.sqrt(2),y=l*Math.sqrt(2),b="M-"+v/4+","+y/4+"l"+v/2+",-"+y/2+"M0,"+y+"L"+v+",0M"+v/4*3+","+y/4*5+"l"+v/2+",-"+y/2+"M"+v/4*3+",-"+y/4+"l"+v/2+","+y/2+"M0,0L"+v+","+y+"M-"+v/4+","+y/4*3+"l"+v/2+","+y/2,x=l-l*Math.sqrt(1-u),w="path",E={d:b,opacity:R,stroke:O,"stroke-width":x+"px"};break;case"|":w="path",w="path",E={d:b="M"+(v=l)/2+",0L"+v/2+","+(y=l),opacity:R,stroke:O,"stroke-width":(x=u*l)+"px"};break;case"-":w="path",w="path",E={d:b="M0,"+(y=l)/2+"L"+(v=l)+","+y/2,opacity:R,stroke:O,"stroke-width":(x=u*l)+"px"};break;case"+":w="path",b="M"+(v=l)/2+",0L"+v/2+","+(y=l)+"M0,"+y/2+"L"+v+","+y/2,x=l-l*Math.sqrt(1-u),w="path",E={d:b,opacity:R,stroke:O,"stroke-width":x+"px"};break;case".":v=l,y=l,u<Math.PI/4?_=Math.sqrt(u*l*l/Math.PI):(j=u,k=Math.PI/4,T=1,A=l/2,M=l/Math.sqrt(2),_=A+(M-A)*(j-k)/(T-k)),w="circle",E={cx:v/2,cy:y/2,r:_,opacity:R,fill:O}}var I=[a||"noSh",h||"noBg",p||"noFg",l,u].join(";"),P=S._defs.select(".patterns").selectAll("#"+C).data([I],o.identity);P.exit().remove(),P.enter().append("pattern").each((function(){var e=r.select(this);if(e.attr({id:C,width:v+"px",height:y+"px",patternUnits:"userSpaceOnUse",patternTransform:g?"scale(0.8)":""}),h){var t=s(h),n=c.tinyRGB(t),o=t.getAlpha(),i=e.selectAll("rect").data([0]);i.exit().remove(),i.enter().append("rect").attr({width:v+"px",height:y+"px",fill:n,"fill-opacity":o})}var a=e.selectAll(w).data([0]);a.exit().remove(),a.enter().append(w).attr(E)})),e.style("fill",V(C,n)).style("fill-opacity",null),e.classed("pattern_filled",!0)},b.initGradients=function(e){var t=e._fullLayout;o.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),r.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)},b.initPatterns=function(e){var t=e._fullLayout;o.ensureSingle(t._defs,"g","patterns").selectAll("pattern").remove(),r.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)},b.getPatternAttr=function(e,t,n){return e&&o.isArrayOrTypedArray(e)?t<e.length?e[t]:n:e},b.pointStyle=function(e,t,n,o){if(e.size()){var i=b.makePointStyleFns(t);e.each((function(e){b.singlePointStyle(e,r.select(this),t,i,n,o)}))}},b.singlePointStyle=function(e,t,n,r,i,a){var s=n.marker,l=s.line;if(a&&a.i>=0&&void 0===e.i&&(e.i=a.i),t.style("opacity",r.selectedOpacityFn?r.selectedOpacityFn(e):void 0===e.mo?s.opacity:e.mo),r.ms2mrc){var u;u="various"===e.ms||"various"===s.size?3:r.ms2mrc(e.ms),e.mrc=u,r.selectedSizeFn&&(u=e.mrc=r.selectedSizeFn(e));var d=b.symbolNumber(e.mx||s.symbol)||0;e.om=d%200>=100;var f=re(e,n),h=W(e,n);t.attr("d",T(d,u,f,h))}var p,m,g,v=!1;if(e.so)g=l.outlierwidth,m=l.outliercolor,p=s.outliercolor;else{var y=(l||{}).width;g=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,m="mlc"in e?e.mlcc=r.lineScale(e.mlc):o.isArrayOrTypedArray(l.color)?c.defaultLine:l.color,o.isArrayOrTypedArray(s.color)&&(p=c.defaultLine,v=!0),p="mc"in e?e.mcc=r.markerScale(e.mc):s.color||s.colors||"rgba(0,0,0,0)",r.selectedColorFn&&(p=r.selectedColorFn(e))}if(e.om)t.call(c.stroke,p).style({"stroke-width":(g||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:g)+"px");var x=s.gradient,_=e.mgt;_?v=!0:_=x&&x.type,o.isArrayOrTypedArray(_)&&(_=_[0],M[_]||(_=0));var w=s.pattern,j=w&&b.getPatternAttr(w.shape,e.i,"");if(_&&"none"!==_){var k=e.mgc;k?v=!0:k=x.color;var A=n.uid;v&&(A+="-"+e.i),b.gradient(t,i,A,_,[[0,k],[1,p]],"fill")}else if(j){var S=!1,C=w.fgcolor;!C&&a&&a.color&&(C=a.color,S=!0);var E=b.getPatternAttr(C,e.i,a&&a.color||null),L=b.getPatternAttr(w.bgcolor,e.i,null),O=w.fgopacity,R=b.getPatternAttr(w.size,e.i,8),I=b.getPatternAttr(w.solidity,e.i,.3);S=S||e.mcc||o.isArrayOrTypedArray(w.shape)||o.isArrayOrTypedArray(w.bgcolor)||o.isArrayOrTypedArray(w.fgcolor)||o.isArrayOrTypedArray(w.size)||o.isArrayOrTypedArray(w.solidity);var P=n.uid;S&&(P+="-"+e.i),b.pattern(t,"point",i,P,j,R,I,e.mcc,w.fillmode,L,E,O)}else o.isArrayOrTypedArray(p)?c.fill(t,p[e.i]):c.fill(t,p);g&&c.stroke(t,m)}},b.makePointStyleFns=function(e){var t={},n=e.marker;return t.markerScale=b.tryColorscale(n,""),t.lineScale=b.tryColorscale(n,"line"),l.traceIs(e,"symbols")&&(t.ms2mrc=g.isBubble(e)?v(e):function(){return(n.size||6)/2}),e.selectedpoints&&o.extendFlat(t,b.makeSelectedPointStyleFns(e)),t},b.makeSelectedPointStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},i=e.marker||{},a=n.marker||{},s=r.marker||{},c=i.opacity,u=a.opacity,d=s.opacity,f=void 0!==u,h=void 0!==d;(o.isArrayOrTypedArray(c)||f||h)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?i.opacity:e.mo;return e.selected?f?u:t:h?d:m*t});var p=i.color,g=a.color,v=s.color;(g||v)&&(t.selectedColorFn=function(e){var t=e.mcc||p;return e.selected?g||t:v||t});var y=i.size,b=a.size,x=s.size,_=void 0!==b,w=void 0!==x;return l.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||y/2;return e.selected?_?b/2:t:w?x/2:t}),t},b.makeSelectedTextStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},o=e.textfont||{},i=n.textfont||{},a=r.textfont||{},s=o.color,l=i.color,u=a.color;return t.selectedTextColorFn=function(e){var t=e.tc||s;return e.selected?l||t:u||(l?t:c.addOpacity(t,m))},t},b.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=b.makeSelectedPointStyleFns(t),o=t.marker||{},i=[];n.selectedOpacityFn&&i.push((function(e,t){e.style("opacity",n.selectedOpacityFn(t))})),n.selectedColorFn&&i.push((function(e,t){c.fill(e,n.selectedColorFn(t))})),n.selectedSizeFn&&i.push((function(e,r){var i=r.mx||o.symbol||0,a=n.selectedSizeFn(r);e.attr("d",T(b.symbolNumber(i),a,re(r,t),W(r,t))),r.mrc2=a})),i.length&&e.each((function(e){for(var t=r.select(this),n=0;n<i.length;n++)i[n](t,e)}))}},b.tryColorscale=function(e,t){var n=t?o.nestedProperty(e,t).get():e;if(n){var r=n.color;if((n.colorscale||n._colorAx)&&o.isArrayOrTypedArray(r))return u.makeColorScaleFuncFromTrace(n)}return o.identity};var C={start:1,end:-1,middle:0,bottom:1,top:-1};function E(e,t,n,o,i){var a=r.select(e.node().parentNode),s=-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle",l=-1!==t.indexOf("left")?"end":-1!==t.indexOf("right")?"start":"middle",c=o?o/.8+1:0,u=(f.lineCount(e)-1)*p+1,h=C[l]*c,m=.75*n+C[s]*c+(C[s]-1)*u*n/2;e.attr("text-anchor",l),i||a.attr("transform",d(h,m))}function L(e,t){var n=e.ts||t.textfont.size;return a(n)&&n>0?n:0}b.textPointStyle=function(e,t,n){if(e.size()){var i;if(t.selectedpoints){var a=b.makeSelectedTextStyleFns(t);i=a.selectedTextColorFn}var s=t.texttemplate,l=n._fullLayout;e.each((function(e){var a=r.select(this),c=s?o.extractOption(e,t,"txt","texttemplate"):o.extractOption(e,t,"tx","text");if(c||0===c){if(s){var u=t._module.formatLabels,d=u?u(e,t,l):{},h={};y(h,t,e.i);var p=t._meta||{};c=o.texttemplateString(c,d,l._d3locale,h,e,p)}var m=e.tp||t.textposition,g=L(e,t),v=i?i(e):e.tc||t.textfont.color;a.call(b.font,{family:e.tf||t.textfont.family,weight:e.tw||t.textfont.weight,style:e.ty||t.textfont.style,variant:e.tv||t.textfont.variant,textcase:e.tC||t.textfont.textcase,lineposition:e.tE||t.textfont.lineposition,shadow:e.tS||t.textfont.shadow,size:g,color:v}).text(c).call(f.convertToTspans,n).call(E,m,g,e.mrc)}else a.remove()}))}},b.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=b.makeSelectedTextStyleFns(t);e.each((function(e){var o=r.select(this),i=n.selectedTextColorFn(e),a=e.tp||t.textposition,s=L(e,t);c.fill(o,i);var u=l.traceIs(t,"bar-like");E(o,a,s,e.mrc2||e.mrc,u)}))}};var O,R;function I(e,t,n){return n&&(e=B(e)),t?D(e[1]):P(e[0])}function P(e){var t=r.round(e,2);return O=t,t}function D(e){var t=r.round(e,2);return R=t,t}function z(e,t,n,r){var o=e[0]-t[0],i=e[1]-t[1],a=n[0]-t[0],s=n[1]-t[1],l=Math.pow(o*o+i*i,.25),c=Math.pow(a*a+s*s,.25),u=(c*c*o-l*l*a)*r,d=(c*c*i-l*l*s)*r,f=3*c*(l+c),h=3*l*(l+c);return[[P(t[0]+(f&&u/f)),D(t[1]+(f&&d/f))],[P(t[0]-(h&&u/h)),D(t[1]-(h&&d/h))]]}b.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],o=[];for(n=1;n<e.length-1;n++)o.push(z(e[n-1],e[n],e[n+1],t));for(r+="Q"+o[0][0]+" "+e[1],n=2;n<e.length-1;n++)r+="C"+o[n-2][1]+" "+o[n-1][0]+" "+e[n];return r+="Q"+o[e.length-3][1]+" "+e[e.length-1]},b.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var n,r="M"+e[0],o=e.length-1,i=[z(e[o],e[0],e[1],t)];for(n=1;n<o;n++)i.push(z(e[n-1],e[n],e[n+1],t));for(i.push(z(e[o-1],e[o],e[0],t)),n=1;n<=o;n++)r+="C"+i[n-1][1]+" "+i[n][0]+" "+e[n];return r+="C"+i[o][1]+" "+i[0][0]+" "+e[0]+"Z"};var N={hv:function(e,t,n){return"H"+P(t[0])+"V"+I(t,1,n)},vh:function(e,t,n){return"V"+D(t[1])+"H"+I(t,0,n)},hvh:function(e,t,n){return"H"+P((e[0]+t[0])/2)+"V"+D(t[1])+"H"+I(t,0,n)},vhv:function(e,t,n){return"V"+D((e[1]+t[1])/2)+"H"+P(t[0])+"V"+I(t,1,n)}},F=function(e,t,n){return"L"+I(t,0,n)+","+I(t,1,n)};function B(e,t){var n=e.backoff,r=e.trace,i=e.d,a=e.i;if(n&&r&&r.marker&&r.marker.angle%360==0&&r.line&&"spline"!==r.line.shape){var s=o.isArrayOrTypedArray(n),l=e,c=t?t[0]:O||0,u=t?t[1]:R||0,d=l[0],f=l[1],h=d-c,p=f-u,m=Math.atan2(p,h),g=s?n[a]:n;if("auto"===g){var v=l.i;"scatter"===r.type&&v--;var y=l.marker,x=y.symbol;o.isArrayOrTypedArray(x)&&(x=x[v]);var _=y.size;o.isArrayOrTypedArray(_)&&(_=_[v]),g=y?b.symbolBackOffs[b.symbolNumber(x)]*_:0,g+=b.getMarkerStandoff(i[v],r)||0}var w=d-g*Math.cos(m),j=f-g*Math.sin(m);(w<=d&&w>=c||w>=d&&w<=c)&&(j<=f&&j>=u||j>=f&&j<=u)&&(e=[w,j])}return e}b.steps=function(e){var t=N[e]||F;return function(e){for(var n="M"+P(e[0][0])+","+D(e[0][1]),r=e.length,o=1;o<r;o++)n+=t(e[o-1],e[o],o===r-1);return n}},b.applyBackoff=B,b.makeTester=function(){var e=o.ensureSingleById(r.select("body"),"svg","js-plotly-tester",(function(e){e.attr(h.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})})),t=o.ensureSingle(e,"path","js-reference-point",(function(e){e.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})}));b.tester=e,b.testref=t},b.savedBBoxes={};var U=0;function H(e){var t=e.getAttribute("data-unformatted");if(null!==t)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}function V(e,t){if(!e)return null;var n=t._context,r=n._exportedPlot?"":n._baseUrl||"";return r?"url('"+r+"#"+e+"')":"url(#"+e+")"}b.bBox=function(e,t,n){var i,a,s;if(n||(n=H(e)),n){if(i=b.savedBBoxes[n])return o.extendFlat({},i)}else if(1===e.childNodes.length){var l=e.childNodes[0];if(n=H(l)){var c=+l.getAttribute("x")||0,u=+l.getAttribute("y")||0,d=l.getAttribute("transform");if(!d){var h=b.bBox(l,!1,n);return c&&(h.left+=c,h.right+=c),u&&(h.top+=u,h.bottom+=u),h}if(n+="~"+c+"~"+u+"~"+d,i=b.savedBBoxes[n])return o.extendFlat({},i)}}t?a=e:(s=b.tester.node(),a=e.cloneNode(!0),s.appendChild(a)),r.select(a).attr("transform",null).call(f.positionText,0,0);var p=a.getBoundingClientRect(),m=b.testref.node().getBoundingClientRect();t||s.removeChild(a);var g={height:p.height,width:p.width,left:p.left-m.left,top:p.top-m.top,right:p.right-m.left,bottom:p.bottom-m.top};return U>=1e4&&(b.savedBBoxes={},U=0),n&&(b.savedBBoxes[n]=g),U++,o.extendFlat({},g)},b.setClipUrl=function(e,t,n){e.attr("clip-path",V(t,n))},b.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(e,t,n){return[t,n].join(" ")})).split(" ");return{x:+t[0]||0,y:+t[1]||0}},b.setTranslate=function(e,t,n){var r=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[r]("transform")||"";return t=t||0,n=n||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=d(t,n)).trim(),e[o]("transform",i),i},b.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(e,t,n){return[t,n].join(" ")})).split(" ");return{x:+t[0]||1,y:+t[1]||1}},b.setScale=function(e,t,n){var r=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[r]("transform")||"";return t=t||1,n=n||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+="scale("+t+","+n+")").trim(),e[o]("transform",i),i};var G=/\s*sc.*/;b.setPointGroupScale=function(e,t,n){if(t=t||1,n=n||1,e){var r=1===t&&1===n?"":"scale("+t+","+n+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(G,"");e=(e+=r).trim(),this.setAttribute("transform",e)}))}};var q=/translate\([^)]*\)\s*$/;function W(e,t){var n;return e&&(n=e.mf),void 0===n&&(n=t.marker&&t.marker.standoff||0),t._geo||t._xA?n:-n}b.setTextPointsScale=function(e,t,n){e&&e.each((function(){var e,o=r.select(this),i=o.select("text");if(i.node()){var a=parseFloat(i.attr("x")||0),s=parseFloat(i.attr("y")||0),l=(o.attr("transform")||"").match(q);e=1===t&&1===n?[]:[d(a,s),"scale("+t+","+n+")",d(-a,-s)],l&&e.push(l),o.attr("transform",e.join(""))}}))},b.getMarkerStandoff=W;var Y,X,Z,$,K,J,Q=Math.atan2,ee=Math.cos,te=Math.sin;function ne(e,t){var n=t[0],r=t[1];return[n*ee(e)-r*te(e),n*te(e)+r*ee(e)]}function re(e,t){var n,r,i=e.ma;void 0===i&&((i=t.marker.angle)&&!o.isArrayOrTypedArray(i)||(i=0));var s=t.marker.angleref;if("previous"===s||"north"===s){if(t._geo){var l=t._geo.project(e.lonlat);n=l[0],r=l[1]}else{var c=t._xA,u=t._yA;if(!c||!u)return 90;n=c.c2p(e.x),r=u.c2p(e.y)}if(t._geo){var d,f=e.lonlat[0],h=e.lonlat[1],p=t._geo.project([f,h+1e-5]),m=t._geo.project([f+1e-5,h]),g=Q(m[1]-r,m[0]-n),v=Q(p[1]-r,p[0]-n);if("north"===s)d=i/180*Math.PI;else if("previous"===s){var y=f/180*Math.PI,b=h/180*Math.PI,x=Y/180*Math.PI,_=X/180*Math.PI,w=x-y,j=ee(_)*te(w),k=te(_)*ee(b)-ee(_)*te(b)*ee(w);d=-Q(j,k)-Math.PI,Y=f,X=h}var T=ne(g,[ee(d),0]),A=ne(v,[te(d),0]);i=Q(T[1]+A[1],T[0]+A[0])/Math.PI*180,"previous"!==s||J===t.uid&&e.i===K+1||(i=null)}if("previous"===s&&!t._geo)if(J===t.uid&&e.i===K+1&&a(n)&&a(r)){var M=n-Z,S=r-$,C=t.line&&t.line.shape||"",E=C.slice(C.length-1);"h"===E&&(S=0),"v"===E&&(M=0),i+=Q(S,M)/Math.PI*180+90}else i=null}return Z=n,$=r,K=e.i,J=t.uid,i}b.getMarkerAngle=re},"./node_modules/plotly.js/src/components/drawing/symbol_defs.js":function(e,t,n){"use strict";var r,o,i,a,s=n("./node_modules/parse-svg-path/index.js"),l=n("./node_modules/@plotly/d3/d3.js").round,c=Math.sqrt(2),u=Math.sqrt(3),d=Math.PI,f=Math.cos,h=Math.sin;function p(e){return null===e}function m(e,t,n){if(!(e&&e%360!=0||t))return n;if(i===e&&a===t&&r===n)return o;function l(e,n){var r=f(e),o=h(e),i=n[0],a=n[1]+(t||0);return[i*r-a*o,i*o+a*r]}i=e,a=t,r=n;for(var c=e/180*d,u=0,p=0,m=s(n),g="",v=0;v<m.length;v++){var y=m[v],b=y[0],x=u,_=p;if("M"===b||"L"===b)u=+y[1],p=+y[2];else if("m"===b||"l"===b)u+=+y[1],p+=+y[2];else if("H"===b)u=+y[1];else if("h"===b)u+=+y[1];else if("V"===b)p=+y[1];else if("v"===b)p+=+y[1];else if("A"===b){u=+y[1],p=+y[2];var w=l(c,[+y[6],+y[7]]);y[6]=w[0],y[7]=w[1],y[3]=+y[3]+e}"H"!==b&&"V"!==b||(b="L"),"h"!==b&&"v"!==b||(b="l"),"m"!==b&&"l"!==b||(u-=x,p-=_);var j=l(c,[u,p]);"H"!==b&&"V"!==b||(b="L"),"M"!==b&&"L"!==b&&"m"!==b&&"l"!==b||(y[1]=j[0],y[2]=j[1]),y[0]=b,g+=y[0]+y.slice(1).join(",")}return o=g,g}e.exports={circle:{n:0,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2),o="M"+r+",0A"+r+","+r+" 0 1,1 0,-"+r+"A"+r+","+r+" 0 0,1 "+r+",0Z";return n?m(t,n,o):o}},square:{n:1,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M"+r+","+r+"H-"+r+"V-"+r+"H"+r+"Z")}},diamond:{n:2,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.3*e,2);return m(t,n,"M"+r+",0L0,"+r+"L-"+r+",0L0,-"+r+"Z")}},cross:{n:3,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(.4*e,2),o=l(1.2*e,2);return m(t,n,"M"+o+","+r+"H"+r+"V"+o+"H-"+r+"V"+r+"H-"+o+"V-"+r+"H-"+r+"V-"+o+"H"+r+"V-"+r+"H"+o+"Z")}},x:{n:4,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(.8*e/c,2),o="l"+r+","+r,i="l"+r+",-"+r,a="l-"+r+",-"+r,s="l-"+r+","+r;return m(t,n,"M0,"+r+o+i+a+i+a+s+a+s+o+s+o+"Z")}},"triangle-up":{n:5,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(2*e/u,2);return m(t,n,"M-"+r+","+l(e/2,2)+"H"+r+"L0,-"+l(e,2)+"Z")}},"triangle-down":{n:6,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(2*e/u,2);return m(t,n,"M-"+r+",-"+l(e/2,2)+"H"+r+"L0,"+l(e,2)+"Z")}},"triangle-left":{n:7,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(2*e/u,2);return m(t,n,"M"+l(e/2,2)+",-"+r+"V"+r+"L-"+l(e,2)+",0Z")}},"triangle-right":{n:8,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(2*e/u,2);return m(t,n,"M-"+l(e/2,2)+",-"+r+"V"+r+"L"+l(e,2)+",0Z")}},"triangle-ne":{n:9,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(.6*e,2),o=l(1.2*e,2);return m(t,n,"M-"+o+",-"+r+"H"+r+"V"+o+"Z")}},"triangle-se":{n:10,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(.6*e,2),o=l(1.2*e,2);return m(t,n,"M"+r+",-"+o+"V"+r+"H-"+o+"Z")}},"triangle-sw":{n:11,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(.6*e,2),o=l(1.2*e,2);return m(t,n,"M"+o+","+r+"H-"+r+"V-"+o+"Z")}},"triangle-nw":{n:12,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(.6*e,2),o=l(1.2*e,2);return m(t,n,"M-"+r+","+o+"V-"+r+"H"+o+"Z")}},pentagon:{n:13,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(.951*e,2),o=l(.588*e,2),i=l(-e,2),a=l(-.309*e,2);return m(t,n,"M"+r+","+a+"L"+o+","+l(.809*e,2)+"H-"+o+"L-"+r+","+a+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2),o=l(e/2,2),i=l(e*u/2,2);return m(t,n,"M"+i+",-"+o+"V"+o+"L0,"+r+"L-"+i+","+o+"V-"+o+"L0,-"+r+"Z")}},hexagon2:{n:15,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2),o=l(e/2,2),i=l(e*u/2,2);return m(t,n,"M-"+o+","+i+"H"+o+"L"+r+",0L"+o+",-"+i+"H-"+o+"L-"+r+",0Z")}},octagon:{n:16,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(.924*e,2),o=l(.383*e,2);return m(t,n,"M-"+o+",-"+r+"H"+o+"L"+r+",-"+o+"V"+o+"L"+o+","+r+"H-"+o+"L-"+r+","+o+"V-"+o+"Z")}},star:{n:17,f:function(e,t,n){if(p(t))return"M0,0Z";var r=1.4*e,o=l(.225*r,2),i=l(.951*r,2),a=l(.363*r,2),s=l(.588*r,2),c=l(-r,2),u=l(-.309*r,2),d=l(.118*r,2),f=l(.809*r,2);return m(t,n,"M"+o+","+u+"H"+i+"L"+a+","+d+"L"+s+","+f+"L0,"+l(.382*r,2)+"L-"+s+","+f+"L-"+a+","+d+"L-"+i+","+u+"H-"+o+"L0,"+c+"Z")}},hexagram:{n:18,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(.66*e,2),o=l(.38*e,2),i=l(.76*e,2);return m(t,n,"M-"+i+",0l-"+o+",-"+r+"h"+i+"l"+o+",-"+r+"l"+o+","+r+"h"+i+"l-"+o+","+r+"l"+o+","+r+"h-"+i+"l-"+o+","+r+"l-"+o+",-"+r+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e*u*.8,2),o=l(.8*e,2),i=l(1.6*e,2),a=l(4*e,2),s="A "+a+","+a+" 0 0 1 ";return m(t,n,"M-"+r+","+o+s+r+","+o+s+"0,-"+i+s+"-"+r+","+o+"Z")}},"star-triangle-down":{n:20,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e*u*.8,2),o=l(.8*e,2),i=l(1.6*e,2),a=l(4*e,2),s="A "+a+","+a+" 0 0 1 ";return m(t,n,"M"+r+",-"+o+s+"-"+r+",-"+o+s+"0,"+i+s+r+",-"+o+"Z")}},"star-square":{n:21,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.1*e,2),o=l(2*e,2),i="A "+o+","+o+" 0 0 1 ";return m(t,n,"M-"+r+",-"+r+i+"-"+r+","+r+i+r+","+r+i+r+",-"+r+i+"-"+r+",-"+r+"Z")}},"star-diamond":{n:22,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.4*e,2),o=l(1.9*e,2),i="A "+o+","+o+" 0 0 1 ";return m(t,n,"M-"+r+",0"+i+"0,"+r+i+r+",0"+i+"0,-"+r+i+"-"+r+",0Z")}},"diamond-tall":{n:23,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(.7*e,2),o=l(1.4*e,2);return m(t,n,"M0,"+o+"L"+r+",0L0,-"+o+"L-"+r+",0Z")}},"diamond-wide":{n:24,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.4*e,2),o=l(.7*e,2);return m(t,n,"M0,"+o+"L"+r+",0L0,-"+o+"L-"+r+",0Z")}},hourglass:{n:25,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M"+r+","+r+"H-"+r+"L"+r+",-"+r+"H-"+r+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M"+r+","+r+"V-"+r+"L-"+r+","+r+"V-"+r+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M0,"+r+"V-"+r+"M"+r+",0H-"+r+"M"+r+",0A"+r+","+r+" 0 1,1 0,-"+r+"A"+r+","+r+" 0 0,1 "+r+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2),o=l(e/c,2);return m(t,n,"M"+o+","+o+"L-"+o+",-"+o+"M"+o+",-"+o+"L-"+o+","+o+"M"+r+",0A"+r+","+r+" 0 1,1 0,-"+r+"A"+r+","+r+" 0 0,1 "+r+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M0,"+r+"V-"+r+"M"+r+",0H-"+r+"M"+r+","+r+"H-"+r+"V-"+r+"H"+r+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r+"M"+r+","+r+"H-"+r+"V-"+r+"H"+r+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.3*e,2);return m(t,n,"M"+r+",0L0,"+r+"L-"+r+",0L0,-"+r+"ZM0,-"+r+"V"+r+"M-"+r+",0H"+r)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.3*e,2),o=l(.65*e,2);return m(t,n,"M"+r+",0L0,"+r+"L-"+r+",0L0,-"+r+"ZM-"+o+",-"+o+"L"+o+","+o+"M-"+o+","+o+"L"+o+",-"+o)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.4*e,2);return m(t,n,"M0,"+r+"V-"+r+"M"+r+",0H-"+r)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.2*e,2),o=l(.85*e,2);return m(t,n,"M0,"+r+"V-"+r+"M"+r+",0H-"+r+"M"+o+","+o+"L-"+o+",-"+o+"M"+o+",-"+o+"L-"+o+","+o)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e/2,2),o=l(e,2);return m(t,n,"M"+r+","+o+"V-"+o+"M"+(r-o)+",-"+o+"V"+o+"M"+o+","+r+"H-"+o+"M-"+o+","+(r-o)+"H"+o)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.2*e,2),o=l(1.6*e,2),i=l(.8*e,2);return m(t,n,"M-"+r+","+i+"L0,0M"+r+","+i+"L0,0M0,-"+o+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.2*e,2),o=l(1.6*e,2),i=l(.8*e,2);return m(t,n,"M-"+r+",-"+i+"L0,0M"+r+",-"+i+"L0,0M0,"+o+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.2*e,2),o=l(1.6*e,2),i=l(.8*e,2);return m(t,n,"M"+i+","+r+"L0,0M"+i+",-"+r+"L0,0M-"+o+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.2*e,2),o=l(1.6*e,2),i=l(.8*e,2);return m(t,n,"M-"+i+","+r+"L0,0M-"+i+",-"+r+"L0,0M"+o+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.4*e,2);return m(t,n,"M"+r+",0H-"+r)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(1.4*e,2);return m(t,n,"M0,"+r+"V-"+r)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M"+r+",-"+r+"L-"+r+","+r)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M"+r+","+r+"L-"+r+",-"+r)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M0,0L-"+r+","+l(2*e,2)+"H"+r+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M0,0L-"+r+",-"+l(2*e,2)+"H"+r+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(2*e,2),o=l(e,2);return m(t,n,"M0,0L"+r+",-"+o+"V"+o+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(2*e,2),o=l(e,2);return m(t,n,"M0,0L-"+r+",-"+o+"V"+o+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M-"+r+",0H"+r+"M0,0L-"+r+","+l(2*e,2)+"H"+r+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(e,2);return m(t,n,"M-"+r+",0H"+r+"M0,0L-"+r+",-"+l(2*e,2)+"H"+r+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(2*e,2),o=l(e,2);return m(t,n,"M0,-"+o+"V"+o+"M0,0L"+r+",-"+o+"V"+o+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,n){if(p(t))return"M0,0Z";var r=l(2*e,2),o=l(e,2);return m(t,n,"M0,-"+o+"V"+o+"M0,0L-"+r+",-"+o+"V"+o+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,n){if(p(t))return"M0,0Z";var r=d/2.5,o=2*e*f(r),i=2*e*h(r);return m(t,n,"M0,0L"+-o+","+i+"L"+o+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,n){if(p(t))return"M0,0Z";var r=d/4,o=2*e*f(r),i=2*e*h(r);return m(t,n,"M0,0L"+-o+","+i+"A "+2*e+","+2*e+" 0 0 1 "+o+","+i+"Z")},backoff:.4,noDot:!0}}},"./node_modules/plotly.js/src/components/errorbars/attributes.js":function(e,t,n){"use strict";e.exports={visible:{valType:"boolean",editType:"calc",description:["Determines whether or not this set of error bars is visible."].join(" ")},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc",description:["Determines the rule used to generate the error bars.","If *constant`, the bar lengths are of a constant value.","Set this constant in `value`.","If *percent*, the bar lengths correspond to a percentage of","underlying data. Set this percentage in `value`.","If *sqrt*, the bar lengths correspond to the square of the","underlying data.","If *data*, the bar lengths are set with data set `array`."].join(" ")},symmetric:{valType:"boolean",editType:"calc",description:["Determines whether or not the error bars have the same length","in both direction","(top/bottom for vertical bars, left/right for horizontal bars."].join(" ")},array:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar.","Values are plotted relative to the underlying data."].join(" ")},arrayminus:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar in the","bottom (left) direction for vertical (horizontal) bars","Values are plotted relative to the underlying data."].join(" ")},value:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars."].join(" ")},valueminus:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars in the","bottom (left) direction for vertical (horizontal) bars"].join(" ")},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",description:"Sets the stoke color of the error bars."},thickness:{valType:"number",min:0,dflt:2,editType:"style",description:"Sets the thickness (in px) of the error bars."},width:{valType:"number",min:0,editType:"plot",description:["Sets the width (in px) of the cross-bar at both ends","of the error bars."].join(" ")},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style",description:["Obsolete.","Use the alpha channel in error bar `color` to set the opacity."].join(" ")}}}},"./node_modules/plotly.js/src/components/errorbars/calc.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),a=n("./node_modules/plotly.js/src/lib/index.js"),s=n("./node_modules/plotly.js/src/components/errorbars/compute_error.js");function l(e,t,n,o){var l=t["error_"+o]||{},c=[];if(l.visible&&-1!==["linear","log"].indexOf(n.type)){for(var u=s(l),d=0;d<e.length;d++){var f=e[d],h=f.i;if(void 0===h)h=d;else if(null===h)continue;var p=f[o];if(r(n.c2l(p))){var m=u(p,h);if(r(m[0])&&r(m[1])){var g=f[o+"s"]=p-m[0],v=f[o+"h"]=p+m[1];c.push(g,v)}}}var y=n._id,b=t._extremes[y],x=i.findExtremes(n,c,a.extendFlat({tozero:b.opts.tozero},{padded:!0}));b.min=b.min.concat(x.min),b.max=b.max.concat(x.max)}}e.exports=function(e){for(var t=e.calcdata,n=0;n<t.length;n++){var r=t[n],a=r[0].trace;if(!0===a.visible&&o.traceIs(a,"errorBarsOK")){var s=i.getFromId(e,a.xaxis),c=i.getFromId(e,a.yaxis);l(r,a,s,"x"),l(r,a,c,"y")}}}},"./node_modules/plotly.js/src/components/errorbars/compute_error.js":function(e,t,n){"use strict";function r(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}e.exports=function(e){var t=e.type,n=e.symmetric;if("data"===t){var o=e.array||[];if(n)return function(e,t){var n=+o[t];return[n,n]};var i=e.arrayminus||[];return function(e,t){var n=+o[t],r=+i[t];return isNaN(n)&&isNaN(r)?[NaN,NaN]:[r||0,n||0]}}var a=r(t,e.value),s=r(t,e.valueminus);return n||void 0===e.valueminus?function(e){var t=a(e);return[t,t]}:function(e){return[s(e),a(e)]}}},"./node_modules/plotly.js/src/components/errorbars/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/lib/index.js"),a=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),s=n("./node_modules/plotly.js/src/components/errorbars/attributes.js");e.exports=function(e,t,n,l){var c="error_"+l.axis,u=a.newContainer(t,c),d=e[c]||{};function f(e,t){return i.coerce(d,u,s,e,t)}if(!1!==f("visible",void 0!==d.array||void 0!==d.value||"sqrt"===d.type)){var h=f("type","array"in d?"data":"percent"),p=!0;"sqrt"!==h&&(p=f("symmetric",!(("data"===h?"arrayminus":"valueminus")in d))),"data"===h?(f("array"),f("traceref"),p||(f("arrayminus"),f("tracerefminus"))):"percent"!==h&&"constant"!==h||(f("value"),p||f("valueminus"));var m="copy_"+l.inherit+"style";if(l.inherit)(t["error_"+l.inherit]||{}).visible&&f(m,!(d.color||r(d.thickness)||r(d.width)));l.inherit&&u[m]||(f("color",n),f("thickness"),f("width",o.traceIs(t,"gl3d")?0:4))}}},"./node_modules/plotly.js/src/components/errorbars/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plot_api/edit_types.js").overrideAll,i=n("./node_modules/plotly.js/src/components/errorbars/attributes.js"),a={error_x:r.extendFlat({},i),error_y:r.extendFlat({},i)};delete a.error_x.copy_zstyle,delete a.error_y.copy_zstyle,delete a.error_y.copy_ystyle;var s={error_x:r.extendFlat({},i),error_y:r.extendFlat({},i),error_z:r.extendFlat({},i)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:a,bar:a,histogram:a,scatter3d:o(s,"calc","nested"),scattergl:o(a,"calc","nested")}},supplyDefaults:n("./node_modules/plotly.js/src/components/errorbars/defaults.js"),calc:n("./node_modules/plotly.js/src/components/errorbars/calc.js"),makeComputeError:n("./node_modules/plotly.js/src/components/errorbars/compute_error.js"),plot:n("./node_modules/plotly.js/src/components/errorbars/plot.js"),style:n("./node_modules/plotly.js/src/components/errorbars/style.js"),hoverInfo:function(e,t,n){(t.error_y||{}).visible&&(n.yerr=e.yh-e.y,t.error_y.symmetric||(n.yerrneg=e.y-e.ys));(t.error_x||{}).visible&&(n.xerr=e.xh-e.x,t.error_x.symmetric||(n.xerrneg=e.x-e.xs))}}},"./node_modules/plotly.js/src/components/errorbars/plot.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/fast-isnumeric/index.js"),i=n("./node_modules/plotly.js/src/components/drawing/index.js"),a=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js");e.exports=function(e,t,n,s){var l=n.xaxis,c=n.yaxis,u=s&&s.duration>0,d=e._context.staticPlot;t.each((function(t){var f,h=t[0].trace,p=h.error_x||{},m=h.error_y||{};h.ids&&(f=function(e){return e.id});var g=a.hasMarkers(h)&&h.marker.maxdisplayed>0;m.visible||p.visible||(t=[]);var v=r.select(this).selectAll("g.errorbar").data(t,f);if(v.exit().remove(),t.length){p.visible||v.selectAll("path.xerror").remove(),m.visible||v.selectAll("path.yerror").remove(),v.style("opacity",1);var y=v.enter().append("g").classed("errorbar",!0);u&&y.style("opacity",0).transition().duration(s.duration).style("opacity",1),i.setClipUrl(v,n.layerClipId,e),v.each((function(e){var t=r.select(this),n=function(e,t,n){var r={x:t.c2p(e.x),y:n.c2p(e.y)};void 0!==e.yh&&(r.yh=n.c2p(e.yh),r.ys=n.c2p(e.ys),o(r.ys)||(r.noYS=!0,r.ys=n.c2p(e.ys,!0)));void 0!==e.xh&&(r.xh=t.c2p(e.xh),r.xs=t.c2p(e.xs),o(r.xs)||(r.noXS=!0,r.xs=t.c2p(e.xs,!0)));return r}(e,l,c);if(!g||e.vis){var i,a=t.select("path.yerror");if(m.visible&&o(n.x)&&o(n.yh)&&o(n.ys)){var f=m.width;i="M"+(n.x-f)+","+n.yh+"h"+2*f+"m-"+f+",0V"+n.ys,n.noYS||(i+="m-"+f+",0h"+2*f),!a.size()?a=t.append("path").style("vector-effect",d?"none":"non-scaling-stroke").classed("yerror",!0):u&&(a=a.transition().duration(s.duration).ease(s.easing)),a.attr("d",i)}else a.remove();var h=t.select("path.xerror");if(p.visible&&o(n.y)&&o(n.xh)&&o(n.xs)){var v=(p.copy_ystyle?m:p).width;i="M"+n.xh+","+(n.y-v)+"v"+2*v+"m0,-"+v+"H"+n.xs,n.noXS||(i+="m0,-"+v+"v"+2*v),!h.size()?h=t.append("path").style("vector-effect",d?"none":"non-scaling-stroke").classed("xerror",!0):u&&(h=h.transition().duration(s.duration).ease(s.easing)),h.attr("d",i)}else h.remove()}}))}}))}},"./node_modules/plotly.js/src/components/errorbars/style.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/components/color/index.js");e.exports=function(e){e.each((function(e){var t=e[0].trace,n=t.error_y||{},i=t.error_x||{},a=r.select(this);a.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(o.stroke,n.color),i.copy_ystyle&&(i=n),a.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(o.stroke,i.color)}))}},"./node_modules/plotly.js/src/components/fx/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/font_attributes.js"),o=n("./node_modules/plotly.js/src/components/fx/layout_attributes.js").hoverlabel,i=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat;e.exports={hoverlabel:{bgcolor:i({},o.bgcolor,{arrayOk:!0,description:"Sets the background color of the hover labels for this trace"}),bordercolor:i({},o.bordercolor,{arrayOk:!0,description:"Sets the border color of the hover labels for this trace."}),font:r({arrayOk:!0,editType:"none",description:"Sets the font used in hover labels."}),align:i({},o.align,{arrayOk:!0}),namelength:i({},o.namelength,{arrayOk:!0}),editType:"none"}}},"./node_modules/plotly.js/src/components/fx/calc.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/registry.js");function i(e,t,n,o){o=o||r.identity,Array.isArray(e)&&(t[0][n]=o(e))}e.exports=function(e){var t=e.calcdata,n=e._fullLayout;function a(e){return function(t){return r.coerceHoverinfo({hoverinfo:t},{_module:e._module},n)}}for(var s=0;s<t.length;s++){var l=t[s],c=l[0].trace;if(!o.traceIs(c,"pie-like")){var u=o.traceIs(c,"2dMap")?i:r.fillArray;u(c.hoverinfo,l,"hi",a(c)),c.hovertemplate&&u(c.hovertemplate,l,"ht"),c.hoverlabel&&(u(c.hoverlabel.bgcolor,l,"hbg"),u(c.hoverlabel.bordercolor,l,"hbc"),u(c.hoverlabel.font.size,l,"hts"),u(c.hoverlabel.font.color,l,"htc"),u(c.hoverlabel.font.family,l,"htf"),u(c.hoverlabel.font.weight,l,"htw"),u(c.hoverlabel.font.style,l,"hty"),u(c.hoverlabel.font.variant,l,"htv"),u(c.hoverlabel.namelength,l,"hnl"),u(c.hoverlabel.align,l,"hta"))}}}},"./node_modules/plotly.js/src/components/fx/click.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/components/fx/hover.js").hover;e.exports=function(e,t,n){var i=r.getComponentMethod("annotations","onClick")(e,e._hoverdata);function a(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==n&&o(e,t,n,!0),e._hoverdata&&t&&t.target&&(i&&i.then?i.then(a):a(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},"./node_modules/plotly.js/src/components/fx/constants.js":function(e,t,n){"use strict";e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},"./node_modules/plotly.js/src/components/fx/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/fx/attributes.js"),i=n("./node_modules/plotly.js/src/components/fx/hoverlabel_defaults.js");e.exports=function(e,t,n,a){var s=r.extendFlat({},a.hoverlabel);t.hovertemplate&&(s.namelength=-1),i(e,t,(function(n,i){return r.coerce(e,t,o,n,i)}),s)}},"./node_modules/plotly.js/src/components/fx/helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js");t.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},t.isTraceInSubplots=function(e,n){if("splom"===e.type){for(var r=e.xaxes||[],o=e.yaxes||[],i=0;i<r.length;i++)for(var a=0;a<o.length;a++)if(-1!==n.indexOf(r[i]+o[a]))return!0;return!1}return-1!==n.indexOf(t.getSubplot(e))},t.flat=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=t;return n},t.p2c=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r].p2c(t);return n},t.getDistanceFunction=function(e,n,r,o){return"closest"===e?o||t.quadrature(n,r):"x"===e.charAt(0)?n:r},t.getClosest=function(e,t,n){if(!1!==n.index)n.index>=0&&n.index<e.length?n.distance=0:n.index=!1;else for(var r=0;r<e.length;r++){var o=t(e[r]);o<=n.distance&&(n.index=r,n.distance=o)}return n},t.inbox=function(e,t,n){return e*t<0||0===e?n:1/0},t.quadrature=function(e,t){return function(n){var r=e(n),o=t(n);return Math.sqrt(r*r+o*o)}},t.makeEventData=function(e,n,r){var o="index"in e?e.index:e.pointNumber,i={data:n._input,fullData:n,curveNumber:n.index,pointNumber:o};if(n._indexToPoints){var a=n._indexToPoints[o];1===a.length?i.pointIndex=a[0]:i.pointIndices=a}else i.pointIndex=o;return n._module.eventData?i=n._module.eventData(i,e,n,r,o):("xVal"in e?i.x=e.xVal:"x"in e&&(i.x=e.x),"yVal"in e?i.y=e.yVal:"y"in e&&(i.y=e.y),e.xa&&(i.xaxis=e.xa),e.ya&&(i.yaxis=e.ya),void 0!==e.zLabelVal&&(i.z=e.zLabelVal)),t.appendArrayPointValue(i,n,o),i},t.appendArrayPointValue=function(e,t,n){var o=t._arrayAttrs;if(o)for(var s=0;s<o.length;s++){var l=o[s],c=i(l);if(void 0===e[c]){var u=a(r.nestedProperty(t,l).get(),n);void 0!==u&&(e[c]=u)}}},t.appendArrayMultiPointValues=function(e,t,n){var o=t._arrayAttrs;if(o)for(var s=0;s<o.length;s++){var l=o[s],c=i(l);if(void 0===e[c]){for(var u=r.nestedProperty(t,l).get(),d=new Array(n.length),f=0;f<n.length;f++)d[f]=a(u,n[f]);e[c]=d}}};var o={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function i(e){return o[e]||e}function a(e,t){return Array.isArray(t)?Array.isArray(e)&&Array.isArray(e[t[0]])?e[t[0]][t[1]]:void 0:e[t]}var s={x:!0,y:!0},l={"x unified":!0,"y unified":!0};t.isUnifiedHover=function(e){return"string"==typeof e&&!!l[e]},t.isXYhover=function(e){return"string"==typeof e&&!!s[e]}},"./node_modules/plotly.js/src/components/fx/hover.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/fast-isnumeric/index.js"),i=n("./node_modules/tinycolor2/cjs/tinycolor.js"),a=n("./node_modules/plotly.js/src/lib/index.js"),s=a.pushUnique,l=a.strTranslate,c=a.strRotate,u=n("./node_modules/plotly.js/src/lib/events.js"),d=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),f=n("./node_modules/plotly.js/src/lib/override_cursor.js"),h=n("./node_modules/plotly.js/src/components/drawing/index.js"),p=n("./node_modules/plotly.js/src/components/color/index.js"),m=n("./node_modules/plotly.js/src/components/dragelement/index.js"),g=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),v=n("./node_modules/plotly.js/src/plots/cartesian/constants.js").zindexSeparator,y=n("./node_modules/plotly.js/src/registry.js"),b=n("./node_modules/plotly.js/src/components/fx/helpers.js"),x=n("./node_modules/plotly.js/src/components/fx/constants.js"),_=n("./node_modules/plotly.js/src/components/legend/defaults.js"),w=n("./node_modules/plotly.js/src/components/legend/draw.js"),j=x.YANGLE,k=Math.PI*j/180,T=1/Math.sin(k),A=Math.cos(k),M=Math.sin(k),S=x.HOVERARROWSIZE,C=x.HOVERTEXTPAD,E={box:!0,ohlc:!0,violin:!0,candlestick:!0},L={scatter:!0,scattergl:!0,splom:!0};function O(e,t){return e.distance-t.distance}function R(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(",")}t.hover=function(e,t,n,i){e=a.getGraphDiv(e);var l=t.target;a.throttle(e._fullLayout._uid+x.HOVERID,x.HOVERMINTIME,(function(){!function(e,t,n,i,l){n||(n="xy");"string"==typeof n&&(n=n.split(v)[0]);var c,d,h,x=Array.isArray(n)?n:[n],_=e._fullLayout,w=_.hoversubplots,j=_._plots||[],k=j[n],A=_._has("cartesian"),M=t.hovermode||_.hovermode,C="x"===(M||"").charAt(0),I="y"===(M||"").charAt(0);if(A&&(C||I)&&"axis"===w)for(var D=x.length,H=0;H<D;H++)if(c=x[H],j[c]){d=g.getFromId(e,c,"x"),h=g.getFromId(e,c,"y");var W=(C?d:h)._subplotsWith;if(W&&W.length)for(var Y=0;Y<W.length;Y++)s(x,W[Y])}if(k&&"single"!==w){var X=k.overlays.map((function(e){return e.id}));x=x.concat(X)}for(var Z=x.length,$=new Array(Z),K=new Array(Z),J=!1,Q=0;Q<Z;Q++)if(c=x[Q],j[c])J=!0,$[Q]=j[c].xaxis,K[Q]=j[c].yaxis;else{if(!_[c]||!_[c]._subplot)return void a.warn("Unrecognized subplot: "+c);var ee=_[c]._subplot;$[Q]=ee.xaxis,K[Q]=ee.yaxis}M&&!J&&(M="closest");if(-1===["x","y","closest","x unified","y unified"].indexOf(M)||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return m.unhoverRaw(e,t);var te=_.hoverdistance;-1===te&&(te=1/0);var ne=_.spikedistance;-1===ne&&(ne=1/0);var re,oe,ie,ae,se,le,ce,ue,de,fe,he,pe,me,ge=[],ve=[],ye={hLinePoint:null,vLinePoint:null},be=!1;if(Array.isArray(t))for(M="array",ie=0;ie<t.length;ie++)(se=e.calcdata[t[ie].curveNumber||0])&&(le=se[0].trace,"skip"!==se[0].trace.hoverinfo&&(ve.push(se),"h"===le.orientation&&(be=!0)));else{var xe,_e,we=e.calcdata.slice();for(we.sort((function(e,t){return(e[0].trace.zorder||0)-(t[0].trace.zorder||0)})),ae=0;ae<we.length;ae++)se=we[ae],"skip"!==(le=se[0].trace).hoverinfo&&b.isTraceInSubplots(le,x)&&(ve.push(se),"h"===le.orientation&&(be=!0));if(!l)xe="xpx"in t?t.xpx:$[0]._length/2,_e="ypx"in t?t.ypx:K[0]._length/2;else{if(!1===u.triggerHandler(e,"plotly_beforehover",t))return;var je=l.getBoundingClientRect();xe=t.clientX-je.left,_e=t.clientY-je.top,_._calcInverseTransform(e);var ke=a.apply3DTransform(_._invTransform)(xe,_e);if(xe=ke[0],_e=ke[1],xe<0||xe>$[0]._length||_e<0||_e>K[0]._length)return m.unhoverRaw(e,t)}if(t.pointerX=xe+$[0]._offset,t.pointerY=_e+K[0]._offset,re="xval"in t?b.flat(x,t.xval):b.p2c($,xe),oe="yval"in t?b.flat(x,t.yval):b.p2c(K,_e),!o(re[0])||!o(oe[0]))return a.warn("Fx.hover failed",t,e),m.unhoverRaw(e,t)}var Te=1/0;function Ae(n,r){for(ae=0;ae<ve.length;ae++)if((se=ve[ae])&&se[0]&&se[0].trace&&!0===(le=se[0].trace).visible&&0!==le._length&&-1===["carpet","contourcarpet"].indexOf(le._module.name)){if(de=M,b.isUnifiedHover(de)&&(de=de.charAt(0)),"splom"===le.type?ce=x[ue=0]:(ce=b.getSubplot(le),ue=x.indexOf(ce)),pe={cd:se,trace:le,xa:$[ue],ya:K[ue],maxHoverDistance:te,maxSpikeDistance:ne,index:!1,distance:Math.min(Te,te),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:le.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},_[ce]&&(pe.subplot=_[ce]._subplot),_._splomScenes&&_._splomScenes[le.uid]&&(pe.scene=_._splomScenes[le.uid]),"array"===de){var i=t[ae];"pointNumber"in i?(pe.index=i.pointNumber,de="closest"):(de="","xval"in i&&(fe=i.xval,de="x"),"yval"in i&&(he=i.yval,de=de?"closest":"y"))}else void 0!==n&&void 0!==r?(fe=n,he=r):(fe=re[ue],he=oe[ue]);if(me=ge.length,0!==te)if(le._module&&le._module.hoverPoints){var s=le._module.hoverPoints(pe,fe,he,de,{finiteRange:!0,hoverLayer:_._hoverlayer,hoversubplots:w,gd:e});if(s)for(var l,c=0;c<s.length;c++)l=s[c],o(l.x0)&&o(l.y0)&&ge.push(F(l,M))}else a.log("Unrecognized trace type in hover:",le);if("closest"===M&&ge.length>me&&(ge.splice(0,me),Te=ge[0].distance),A&&0!==ne&&0===ge.length){pe.distance=ne,pe.index=!1;var u=le._module.hoverPoints(pe,fe,he,"closest",{hoverLayer:_._hoverlayer});if(u&&(u=u.filter((function(e){return e.spikeDistance<=ne}))),u&&u.length){var d,f=u.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(f.length){var h=f[0];o(h.x0)&&o(h.y0)&&(d=Se(h),(!ye.vLinePoint||ye.vLinePoint.spikeDistance>d.spikeDistance)&&(ye.vLinePoint=d))}var m=u.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(m.length){var g=m[0];o(g.x0)&&o(g.y0)&&(d=Se(g),(!ye.hLinePoint||ye.hLinePoint.spikeDistance>d.spikeDistance)&&(ye.hLinePoint=d))}}}}}function Me(e,t,n){for(var r,o=null,i=1/0,a=0;a<e.length;a++)d&&d._id!==e[a].xa._id||h&&h._id!==e[a].ya._id||(r=e[a].spikeDistance,n&&0===a&&(r=-1/0),r<=i&&r<=t&&(o=e[a],i=r));return o}function Se(e){return e?{xa:e.xa,ya:e.ya,x:void 0!==e.xSpike?e.xSpike:(e.x0+e.x1)/2,y:void 0!==e.ySpike?e.ySpike:(e.y0+e.y1)/2,distance:e.distance,spikeDistance:e.spikeDistance,curveNumber:e.trace.index,color:e.color,pointNumber:e.index}:null}Ae();var Ce={fullLayout:_,container:_._hoverlayer,event:t},Ee=e._spikepoints,Le={vLinePoint:ye.vLinePoint,hLinePoint:ye.hLinePoint};e._spikepoints=Le;var Oe=function(){var e=ge.filter((function(e){return d&&d._id===e.xa._id&&h&&h._id===e.ya._id})),t=ge.filter((function(e){return!(d&&d._id===e.xa._id&&h&&h._id===e.ya._id)}));e.sort(O),t.sort(O),ge=function(e,t){for(var n=t.charAt(0),r=[],o=[],i=[],a=0;a<e.length;a++){var s=e[a];y.traceIs(s.trace,"bar-like")||y.traceIs(s.trace,"box-violin")?i.push(s):s.trace[n+"period"]?o.push(s):r.push(s)}return r.concat(o).concat(i)}(ge=e.concat(t),M)};Oe();var Re=M.charAt(0),Ie=("x"===Re||"y"===Re)&&ge[0]&&L[ge[0].trace.type];if(A&&0!==ne&&0!==ge.length){var Pe=Me(ge.filter((function(e){return e.ya.showspikes})),ne,Ie);ye.hLinePoint=Se(Pe);var De=Me(ge.filter((function(e){return e.xa.showspikes})),ne,Ie);ye.vLinePoint=Se(De)}if(0===ge.length){var ze=m.unhoverRaw(e,t);return!A||null===ye.hLinePoint&&null===ye.vLinePoint||U(Ee)&&B(e,ye,Ce),ze}A&&U(Ee)&&B(e,ye,Ce);if(b.isXYhover(de)&&0!==ge[0].length&&"splom"!==ge[0].trace.type){var Ne=ge[0],Fe=(ge=E[Ne.trace.type]?ge.filter((function(e){return e.trace.index===Ne.trace.index})):[Ne]).length,Be=V("x",Ne,_),Ue=V("y",Ne,_);Ae(Be,Ue);var He,Ve=[],Ge={},qe=0,We=function(e){var t=E[e.trace.type]?R(e):e.trace.index;if(Ge[t]){var n=Ge[t]-1,r=Ve[n];n>0&&Math.abs(e.distance)<Math.abs(r.distance)&&(Ve[n]=e)}else qe++,Ge[t]=qe,Ve.push(e)};for(He=0;He<Fe;He++)We(ge[He]);for(He=ge.length-1;He>Fe-1;He--)We(ge[He]);ge=Ve,Oe()}var Ye=e._hoverdata,Xe=[],Ze=G(e),$e=q(e);for(ie=0;ie<ge.length;ie++){var Ke=ge[ie],Je=b.makeEventData(Ke,Ke.trace,Ke.cd);if(!1!==Ke.hovertemplate){var Qe=!1;Ke.cd[Ke.index]&&Ke.cd[Ke.index].ht&&(Qe=Ke.cd[Ke.index].ht),Ke.hovertemplate=Qe||Ke.trace.hovertemplate||!1}if(Ke.xa&&Ke.ya){var et=Ke.x0+Ke.xa._offset,tt=Ke.x1+Ke.xa._offset,nt=Ke.y0+Ke.ya._offset,rt=Ke.y1+Ke.ya._offset,ot=Math.min(et,tt),it=Math.max(et,tt),at=Math.min(nt,rt),st=Math.max(nt,rt);Je.bbox={x0:ot+$e,x1:it+$e,y0:at+Ze,y1:st+Ze}}Ke.eventData=[Je],Xe.push(Je)}e._hoverdata=Xe;var lt="y"===M&&(ve.length>1||ge.length>1)||"closest"===M&&be&&ge.length>1,ct=p.combine(_.plot_bgcolor||p.background,_.paper_bgcolor),ut=P(ge,{gd:e,hovermode:M,rotateLabels:lt,bgColor:ct,container:_._hoverlayer,outerContainer:_._paper.node(),commonLabelOpts:_.hoverlabel,hoverdistance:_.hoverdistance}),dt=ut.hoverLabels;b.isUnifiedHover(M)||(!function(e,t,n,r){var o,i,a,s,l,c,u,d=t?"xa":"ya",f=t?"ya":"xa",h=0,p=1,m=e.size(),g=new Array(m),v=0,y=r.minX,b=r.maxX,x=r.minY,_=r.maxY,w=function(e){return e*n._invScaleX},j=function(e){return e*n._invScaleY};function k(e){var t=e[0],n=e[e.length-1];if(i=t.pmin-t.pos-t.dp+t.size,a=n.pos+n.dp+n.size-t.pmax,i>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=i;o=!1}if(!(a<.01)){if(i<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=a;o=!1}if(o){var r=0;for(s=0;s<e.length;s++)(c=e[s]).pos+c.dp+c.size>t.pmax&&r++;for(s=e.length-1;s>=0&&!(r<=0);s--)(c=e[s]).pos>t.pmax-1&&(c.del=!0,r--);for(s=0;s<e.length&&!(r<=0);s++)if((c=e[s]).pos<t.pmin+1)for(c.del=!0,r--,a=2*c.size,l=e.length-1;l>=0;l--)e[l].dp-=a;for(s=e.length-1;s>=0&&!(r<=0);s--)(c=e[s]).pos+c.dp+c.size>t.pmax&&(c.del=!0,r--)}}}e.each((function(e){var r=e[d],o=e[f],i="x"===r._id.charAt(0),a=r.range;0===v&&a&&a[0]>a[1]!==i&&(p=-1);var s=0,l=i?n.width:n.height;if("x"===n.hovermode||"y"===n.hovermode){var c,u,h=z(e,t),m=e.anchor,k="end"===m?-1:1;if("middle"===m)u=(c=e.crossPos+(i?j(h.y-e.by/2):w(e.bx/2+e.tx2width/2)))+(i?j(e.by):w(e.bx));else if(i)u=(c=e.crossPos+j(S+h.y)-j(e.by/2-S))+j(e.by);else{var A=w(k*S+h.x),M=A+w(k*e.bx);c=e.crossPos+Math.min(A,M),u=e.crossPos+Math.max(A,M)}i?void 0!==x&&void 0!==_&&Math.min(u,_)-Math.max(c,x)>1&&("left"===o.side?(s=o._mainLinePosition,l=n.width):l=o._mainLinePosition):void 0!==y&&void 0!==b&&Math.min(u,b)-Math.max(c,y)>1&&("top"===o.side?(s=o._mainLinePosition,l=n.height):l=o._mainLinePosition)}g[v++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(i?T:1)/2,pmin:s,pmax:l}]})),g.sort((function(e,t){return e[0].posref-t[0].posref||p*(t[0].traceIndex-e[0].traceIndex)}));for(;!o&&h<=m;){for(h++,o=!0,s=0;s<g.length-1;){var A=g[s],M=g[s+1],C=A[A.length-1],E=M[0];if((i=C.pos+C.dp+C.size-E.pos-E.dp+E.size)>.01){for(l=M.length-1;l>=0;l--)M[l].dp+=i;for(A.push.apply(A,M),g.splice(s+1,1),u=0,l=A.length-1;l>=0;l--)u+=A[l].dp;for(a=u/A.length,l=A.length-1;l>=0;l--)A[l].dp-=a;o=!1}else s++}g.forEach(k)}for(s=g.length-1;s>=0;s--){var L=g[s];for(l=L.length-1;l>=0;l--){var O=L[l],R=O.datum;R.offset=O.dp,R.del=O.del}}}(dt,lt,_,ut.commonLabelBoundingBox),N(dt,lt,_._invScaleX,_._invScaleY));if(l&&l.tagName){var ft=y.getComponentMethod("annotations","hasClickToShow")(e,Xe);f(r.select(l),ft?"pointer":"")}if(!l||i||!function(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var o=n[r],i=e._hoverdata[r];if(o.curveNumber!==i.curveNumber||String(o.pointNumber)!==String(i.pointNumber)||String(o.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(e,0,Ye))return;Ye&&e.emit("plotly_unhover",{event:t,points:Ye});e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:$,yaxes:K,xvals:re,yvals:oe})}(e,t,n,i,l)}))},t.loneHover=function(e,t){var n=!0;Array.isArray(e)||(n=!1,e=[e]);var o=t.gd,i=G(o),a=q(o),s=P(e.map((function(e){var n=e._x0||e.x0||e.x||0,r=e._x1||e.x1||e.x||0,s=e._y0||e.y0||e.y||0,l=e._y1||e.y1||e.y||0,c=e.eventData;if(c){var u=Math.min(n,r),d=Math.max(n,r),f=Math.min(s,l),h=Math.max(s,l),m=e.trace;if(y.traceIs(m,"gl3d")){var g=o._fullLayout[m.scene]._scene.container,v=g.offsetLeft,b=g.offsetTop;u+=v,d+=v,f+=b,h+=b}c.bbox={x0:u+a,x1:d+a,y0:f+i,y1:h+i},t.inOut_bbox&&t.inOut_bbox.push(c.bbox)}else c=!1;return{color:e.color||p.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontVariant:e.fontVariant,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,hovertemplateLabels:e.hovertemplateLabels||!1,eventData:c}})),{gd:o,hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||p.background,container:r.select(t.container),outerContainer:t.outerContainer||t.container}).hoverLabels,l=0,c=0;return s.sort((function(e,t){return e.y0-t.y0})).each((function(e,n){var r=e.y0-e.by/2;e.offset=r-5<l?l-r+5:0,l=r+e.by+e.offset,n===t.anchorIndex&&(c=e.offset)})).each((function(e){e.offset-=c})),N(s,!1,o._fullLayout._invScaleX,o._fullLayout._invScaleY),n?s:s.node()};var I=/<extra>([\s\S]*)<\/extra>/;function P(e,t){var n=t.gd,o=n._fullLayout,i=t.hovermode,s=t.rotateLabels,u=t.bgColor,f=t.container,m=t.outerContainer,g=t.commonLabelOpts||{};if(0===e.length)return[[]];var v=t.fontFamily||x.HOVERFONT,k=t.fontSize||x.HOVERFONTSIZE,T=t.fontWeight||o.font.weight,A=t.fontStyle||o.font.style,M=t.fontVariant||o.font.variant,E=t.fontTextcase||o.font.textcase,L=t.fontLineposition||o.font.lineposition,O=t.fontShadow||o.font.shadow,I=e[0],P=I.xa,z=I.ya,N=i.charAt(0),F=N+"Label",B=I[F];if(void 0===B&&"multicategory"===P.type)for(var U=0;U<e.length&&void 0===(B=e[U][F]);U++);var H=W(n,m),V=H.top,G=H.width,q=H.height,Y=void 0!==B&&I.distance<=t.hoverdistance&&("x"===i||"y"===i);if(Y){var X,Z,$=!0;for(X=0;X<e.length;X++)if($&&void 0===e[X].zLabel&&($=!1),Z=e[X].hoverinfo||e[X].trace.hoverinfo){var K=Array.isArray(Z)?Z:Z.split("+");if(-1===K.indexOf("all")&&-1===K.indexOf(i)){Y=!1;break}}$&&(Y=!1)}var J=f.selectAll("g.axistext").data(Y?[0]:[]);J.enter().append("g").classed("axistext",!0),J.exit().remove();var Q={minX:0,maxX:0,minY:0,maxY:0};if(J.each((function(){var e=r.select(this),t=a.ensureSingle(e,"path","",(function(e){e.style({"stroke-width":"1px"})})),s=a.ensureSingle(e,"text","",(function(e){e.attr("data-notex",1)})),c=g.bgcolor||p.defaultLine,u=g.bordercolor||p.contrast(c),f=p.contrast(c),m=g.font,y={weight:m.weight||T,style:m.style||A,variant:m.variant||M,textcase:m.textcase||E,lineposition:m.lineposition||L,shadow:m.shadow||O,family:m.family||v,size:m.size||k,color:m.color||f};t.style({fill:c,stroke:u}),s.text(B).call(h.font,y).call(d.positionText,0,0).call(d.convertToTspans,n),e.attr("transform","");var b,x,_=W(n,s.node());if("x"===i){var w="top"===P.side?"-":"";s.attr("text-anchor","middle").call(d.positionText,0,"top"===P.side?V-_.bottom-S-C:V-_.top+S+C),b=P._offset+(I.x0+I.x1)/2,x=z._offset+("top"===P.side?0:z._length);var j=_.width/2+C,R=b;b<j?R=j:b>o.width-j&&(R=o.width-j),t.attr("d","M"+(b-R)+",0L"+(b-R+S)+","+w+S+"H"+j+"v"+w+(2*C+_.height)+"H"+-j+"V"+w+S+"H"+(b-R-S)+"Z"),b=R,Q.minX=b-j,Q.maxX=b+j,"top"===P.side?(Q.minY=x-(2*C+_.height),Q.maxY=x-C):(Q.minY=x+C,Q.maxY=x+(2*C+_.height))}else{var D,N,F;"right"===z.side?(D="start",N=1,F="",b=P._offset+P._length):(D="end",N=-1,F="-",b=P._offset),x=z._offset+(I.y0+I.y1)/2,s.attr("text-anchor",D),t.attr("d","M0,0L"+F+S+","+S+"V"+(C+_.height/2)+"h"+F+(2*C+_.width)+"V-"+(C+_.height/2)+"H"+F+S+"V-"+S+"Z"),Q.minY=x-(C+_.height/2),Q.maxY=x+(C+_.height/2),"right"===z.side?(Q.minX=b+S,Q.maxX=b+S+(2*C+_.width)):(Q.minX=b-S-(2*C+_.width),Q.maxX=b-S);var U,H=_.height/2,G=V-_.top-H,q="clip"+o._uid+"commonlabel"+z._id;if(b<_.width+2*C+S){U="M-"+(S+C)+"-"+H+"h-"+(_.width-C)+"V"+H+"h"+(_.width-C)+"Z";var Y=_.width-b+C;d.positionText(s,Y,G),"end"===D&&s.selectAll("tspan").each((function(){var e=r.select(this),t=h.tester.append("text").text(e.text()).call(h.font,y),o=W(n,t.node());Math.round(o.width)<Math.round(_.width)&&e.attr("x",Y-o.width),t.remove()}))}else d.positionText(s,N*(C+S),G),U=null;var X=o._topclips.selectAll("#"+q).data(U?[0]:[]);X.enter().append("clipPath").attr("id",q).append("path"),X.exit().remove(),X.select("path").attr("d",U),h.setClipUrl(s,U?q:null,n)}e.attr("transform",l(b,x))})),b.isUnifiedHover(i)){f.selectAll("g.hovertext").remove();var ee=e.filter((function(e){return"none"!==e.hoverinfo}));if(0===ee.length)return[];var te=o.hoverlabel,ne=te.font,re={showlegend:!0,legend:{title:{text:B,font:ne},font:ne,bgcolor:te.bgcolor,bordercolor:te.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:o.legend?o.legend.traceorder:void 0,orientation:"v"}},oe={font:ne};_(re,oe,n._fullData);var ie=oe.legend;ie.entries=[];for(var ae=0;ae<ee.length;ae++){var se=ee[ae];if("none"!==se.hoverinfo){var le=D(se,!0,i,o,B),ce=le[0],ue=le[1];se.name=ue,se.text=""!==ue?ue+" : "+ce:ce;var de=se.cd[se.index];de&&(de.mc&&(se.mc=de.mc),de.mcc&&(se.mc=de.mcc),de.mlc&&(se.mlc=de.mlc),de.mlcc&&(se.mlc=de.mlcc),de.mlw&&(se.mlw=de.mlw),de.mrc&&(se.mrc=de.mrc),de.dir&&(se.dir=de.dir)),se._distinct=!0,ie.entries.push([se])}}ie.entries.sort((function(e,t){return e[0].trace.index-t[0].trace.index})),ie.layer=f,ie._inHover=!0,ie._groupTitleFont=te.grouptitlefont,w(n,ie);var fe,he,pe,me,ge=f.select("g.legend"),ve=W(n,ge.node()),ye=ve.width+2*C,be=ve.height+2*C,xe=ee[0],_e=(xe.x0+xe.x1)/2,we=(xe.y0+xe.y1)/2,je=!(y.traceIs(xe.trace,"bar-like")||y.traceIs(xe.trace,"box-violin"));"y"===N?je?(he=we-C,fe=we+C):(he=Math.min.apply(null,ee.map((function(e){return Math.min(e.y0,e.y1)}))),fe=Math.max.apply(null,ee.map((function(e){return Math.max(e.y0,e.y1)})))):he=fe=a.mean(ee.map((function(e){return(e.y0+e.y1)/2})))-be/2,"x"===N?je?(pe=_e+C,me=_e-C):(pe=Math.max.apply(null,ee.map((function(e){return Math.max(e.x0,e.x1)}))),me=Math.min.apply(null,ee.map((function(e){return Math.min(e.x0,e.x1)})))):pe=me=a.mean(ee.map((function(e){return(e.x0+e.x1)/2})))-ye/2;var ke,Te,Ae=P._offset,Me=z._offset;return me+=Ae-ye,he+=Me-be,ke=(pe+=Ae)+ye<G&&pe>=0?pe:me+ye<G&&me>=0?me:Ae+ye<G?Ae:pe-_e<_e-me+ye?G-ye:0,ke+=C,Te=(fe+=Me)+be<q&&fe>=0?fe:he+be<q&&he>=0?he:Me+be<q?Me:fe-we<we-he+be?q-be:0,Te+=C,ge.attr("transform",l(ke-1,Te-1)),ge}var Se=f.selectAll("g.hovertext").data(e,(function(e){return R(e)}));return Se.enter().append("g").classed("hovertext",!0).each((function(){var e=r.select(this);e.append("rect").call(p.fill,p.addOpacity(u,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(h.font,{weight:T,style:A,variant:M,textcase:E,lineposition:L,shadow:O,family:v,size:k})})),Se.exit().remove(),Se.each((function(e){var t=r.select(this).attr("transform",""),a=e.color;Array.isArray(a)&&(a=a[e.eventData[0].pointNumber]);var f=e.bgcolor||a,m=p.combine(p.opacity(f)?f:p.defaultLine,u),g=p.combine(p.opacity(a)?a:p.defaultLine,u),y=e.borderColor||p.contrast(m),b=D(e,Y,i,o,B,t),x=b[0],_=b[1],w=t.select("text.nums").call(h.font,{family:e.fontFamily||v,size:e.fontSize||k,color:e.fontColor||y,weight:e.fontWeight||T,style:e.fontStyle||A,variant:e.fontVariant||M,textcase:e.fontTextcase||E,lineposition:e.fontLineposition||L,shadow:e.fontShadow||O}).text(x).attr("data-notex",1).call(d.positionText,0,0).call(d.convertToTspans,n),R=t.select("text.name"),I=0,P=0;if(_&&_!==x){R.call(h.font,{family:e.fontFamily||v,size:e.fontSize||k,color:g,weight:e.fontWeight||T,style:e.fontStyle||A,variant:e.fontVariant||M,textcase:e.fontTextcase||E,lineposition:e.fontLineposition||L,shadow:e.fontShadow||O}).text(_).attr("data-notex",1).call(d.positionText,0,0).call(d.convertToTspans,n);var z=W(n,R.node());I=z.width+2*C,P=z.height+2*C}else R.remove(),t.select("rect").remove();t.select("path").style({fill:m,stroke:y});var N=e.xa._offset+(e.x0+e.x1)/2,F=e.ya._offset+(e.y0+e.y1)/2,U=Math.abs(e.x1-e.x0),H=Math.abs(e.y1-e.y0),X=W(n,w.node()),Z=X.width/o._invScaleX,$=X.height/o._invScaleY;e.ty0=(V-X.top)/o._invScaleY,e.bx=Z+2*C,e.by=Math.max($+2*C,P),e.anchor="start",e.txwidth=Z,e.tx2width=I,e.offset=0;var K,J,Q=(Z+S+C+I)*o._invScaleX;if(s)e.pos=N,K=F+H/2+Q<=q,J=F-H/2-Q>=0,"top"!==e.idealAlign&&K||!J?K?(F+=H/2,e.anchor="start"):e.anchor="middle":(F-=H/2,e.anchor="end"),e.crossPos=F;else{if(e.pos=F,K=N+U/2+Q<=G,J=N-U/2-Q>=0,"left"!==e.idealAlign&&K||!J)if(K)N+=U/2,e.anchor="start";else{e.anchor="middle";var ee=Q/2,te=N+ee-G,ne=N-ee;te>0&&(N-=te),ne<0&&(N+=-ne)}else N-=U/2,e.anchor="end";e.crossPos=N}w.attr("text-anchor",e.anchor),I&&R.attr("text-anchor",e.anchor),t.attr("transform",l(N,F)+(s?c(j):""))})),{hoverLabels:Se,commonLabelBoundingBox:Q}}function D(e,t,n,r,o,i){var s="",l="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=a.templateString(e.name,e.trace._meta)),s=H(e.name,e.nameLength));var c=n.charAt(0),u="x"===c?"y":"x";void 0!==e.zLabel?(void 0!==e.xLabel&&(l+="x: "+e.xLabel+"<br>"),void 0!==e.yLabel&&(l+="y: "+e.yLabel+"<br>"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(l+=(l?"z: ":"")+e.zLabel)):t&&e[c+"Label"]===o?l=e[u+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(l=e.yLabel):l=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(l+=(l?"<br>":"")+e.text),void 0!==e.extraText&&(l+=(l?"<br>":"")+e.extraText),i&&""===l&&!e.hovertemplate&&(""===s&&i.remove(),l=s);var d=e.hovertemplate||!1;if(d){var f=e.hovertemplateLabels||e;e[c+"Label"]!==o&&(f[c+"other"]=f[c+"Val"],f[c+"otherLabel"]=f[c+"Label"]),l=(l=a.hovertemplateString(d,f,r._d3locale,e.eventData[0]||{},e.trace._meta)).replace(I,(function(t,n){return s=H(n,e.nameLength),""}))}return[l,s]}function z(e,t){var n=0,r=e.offset;return t&&(r*=-M,n=e.offset*A),{x:n,y:r}}function N(e,t,n,o){var i=function(e){return e*n},a=function(e){return e*o};e.each((function(e){var n=r.select(this);if(e.del)return n.remove();var o,s,l,c,u=n.select("text.nums"),f=e.anchor,p="end"===f?-1:1,m=(s={start:1,end:-1,middle:0}[(o=e).anchor],c=(l=s*(S+C))+s*(o.txwidth+C),"middle"===o.anchor&&(l-=o.tx2width/2,c+=o.txwidth/2+C),{alignShift:s,textShiftX:l,text2ShiftX:c}),g=z(e,t),v=g.x,y=g.y,b="middle"===f;n.select("path").attr("d",b?"M-"+i(e.bx/2+e.tx2width/2)+","+a(y-e.by/2)+"h"+i(e.bx)+"v"+a(e.by)+"h-"+i(e.bx)+"Z":"M0,0L"+i(p*S+v)+","+a(S+y)+"v"+a(e.by/2-S)+"h"+i(p*e.bx)+"v-"+a(e.by)+"H"+i(p*S+v)+"V"+a(y-S)+"Z");var x=v+m.textShiftX,_=y+e.ty0-e.by/2+C,w=e.textAlign||"auto";"auto"!==w&&("left"===w&&"start"!==f?(u.attr("text-anchor","start"),x=b?-e.bx/2-e.tx2width/2+C:-e.bx-C):"right"===w&&"end"!==f&&(u.attr("text-anchor","end"),x=b?e.bx/2-e.tx2width/2-C:e.bx+C)),u.call(d.positionText,i(x),a(_)),e.tx2width&&(n.select("text.name").call(d.positionText,i(m.text2ShiftX+m.alignShift*C+v),a(y+e.ty0-e.by/2+C)),n.select("rect").call(h.setRect,i(m.text2ShiftX+(m.alignShift-1)*e.tx2width/2+v),a(y-e.by/2-1),i(e.tx2width),a(e.by+2)))}))}function F(e,t){var n=e.index,r=e.trace||{},i=e.cd[0],s=e.cd[n]||{};function l(e){return e||o(e)&&0===e}var c=Array.isArray(n)?function(e,t){var o=a.castOption(i,n,e);return l(o)?o:a.extractOption({},r,"",t)}:function(e,t){return a.extractOption(s,r,e,t)};function u(t,n,r){var o=c(n,r);l(o)&&(e[t]=o)}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="y"===t||"closest"===t&&"h"===r.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=a.constrain(e.x0,0,e.xa._length),e.x1=a.constrain(e.x1,0,e.xa._length),e.y0=a.constrain(e.y0,0,e.ya._length),e.y1=a.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:g.hoverLabelText(e.xa,e.xLabelVal,r.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:g.hoverLabelText(e.ya,e.yLabelVal,r.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var d=g.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+d+" / -"+g.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+d,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var f=g.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+f+" / -"+g.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+f,"y"===t&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&"all"!==h&&(-1===(h=Array.isArray(h)?h:h.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===h.indexOf("y")&&(e.yLabel=void 0),-1===h.indexOf("z")&&(e.zLabel=void 0),-1===h.indexOf("text")&&(e.text=void 0),-1===h.indexOf("name")&&(e.name=void 0)),e}function B(e,t,n){var r,o,a=n.container,s=n.fullLayout,l=s._size,c=n.event,u=!!t.hLinePoint,d=!!t.vLinePoint;if(a.selectAll(".spikeline").remove(),d||u){var f=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var m,v,y=t.hLinePoint;r=y&&y.xa,"cursor"===(o=y&&y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=r._offset+y.x,v=o._offset+y.y);var b,x,_=i.readability(y.color,f)<1.5?p.contrast(f):y.color,w=o.spikemode,j=o.spikethickness,k=o.spikecolor||_,T=g.getPxPosition(e,o);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(b=T,x=m),-1!==w.indexOf("across")){var A=o._counterDomainMin,M=o._counterDomainMax;"free"===o.anchor&&(A=Math.min(A,o.position),M=Math.max(M,o.position)),b=l.l+A*l.w,x=l.l+M*l.w}a.insert("line",":first-child").attr({x1:b,x2:x,y1:v,y2:v,"stroke-width":j,stroke:k,"stroke-dasharray":h.dashStyle(o.spikedash,j)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:b,x2:x,y1:v,y2:v,"stroke-width":j+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&a.insert("circle",":first-child").attr({cx:T+("right"!==o.side?j:-j),cy:v,r:j,fill:k}).classed("spikeline",!0)}if(d){var S,C,E=t.vLinePoint;r=E&&E.xa,o=E&&E.ya,"cursor"===r.spikesnap?(S=c.pointerX,C=c.pointerY):(S=r._offset+E.x,C=o._offset+E.y);var L,O,R=i.readability(E.color,f)<1.5?p.contrast(f):E.color,I=r.spikemode,P=r.spikethickness,D=r.spikecolor||R,z=g.getPxPosition(e,r);if(-1!==I.indexOf("toaxis")||-1!==I.indexOf("across")){if(-1!==I.indexOf("toaxis")&&(L=z,O=C),-1!==I.indexOf("across")){var N=r._counterDomainMin,F=r._counterDomainMax;"free"===r.anchor&&(N=Math.min(N,r.position),F=Math.max(F,r.position)),L=l.t+(1-F)*l.h,O=l.t+(1-N)*l.h}a.insert("line",":first-child").attr({x1:S,x2:S,y1:L,y2:O,"stroke-width":P,stroke:D,"stroke-dasharray":h.dashStyle(r.spikedash,P)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:S,x2:S,y1:L,y2:O,"stroke-width":P+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}-1!==I.indexOf("marker")&&a.insert("circle",":first-child").attr({cx:S,cy:z-("top"!==r.side?P:-P),r:P,fill:D}).classed("spikeline",!0)}}}function U(e,t){return!t||(t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint)}function H(e,t){return d.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function V(e,t,n){var r=t[e+"a"],o=t[e+"Val"],i=t.cd[0];if("category"===r.type||"multicategory"===r.type)o=r._categoriesMap[o];else if("date"===r.type){var a=t.trace[e+"periodalignment"];if(a){var s=t.cd[t.index],l=s[e+"Start"];void 0===l&&(l=s[e]);var c=s[e+"End"];void 0===c&&(c=s[e]);var u=c-l;"end"===a?o+=u:"middle"===a&&(o+=u/2)}o=r.d2c(o)}return i&&i.t&&i.t.posLetter===r._id&&("group"!==n.boxmode&&"group"!==n.violinmode||(o+=i.t.dPos)),o}function G(e){return e.offsetTop+e.clientTop}function q(e){return e.offsetLeft+e.clientLeft}function W(e,t){var n=e._fullLayout,r=t.getBoundingClientRect(),o=r.left,i=r.top,s=o+r.width,l=i+r.height,c=a.apply3DTransform(n._invTransform)(o,i),u=a.apply3DTransform(n._invTransform)(s,l),d=c[0],f=c[1],h=u[0],p=u[1];return{x:d,y:f,width:h-d,height:p-f,top:Math.min(f,p),left:Math.min(d,h),right:Math.max(d,h),bottom:Math.max(f,p)}}},"./node_modules/plotly.js/src/components/fx/hoverlabel_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/color/index.js"),i=n("./node_modules/plotly.js/src/components/fx/helpers.js").isUnifiedHover;e.exports=function(e,t,n,a){a=a||{};var s=t.legend;function l(e){a.font[e]||(a.font[e]=s?t.legend.font[e]:t.font[e])}t&&i(t.hovermode)&&(a.font||(a.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),s?(a.bgcolor||(a.bgcolor=o.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),r.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}},"./node_modules/plotly.js/src/components/fx/hovermode_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/fx/layout_attributes.js");e.exports=function(e,t){function n(n,i){return void 0!==t[n]?t[n]:r.coerce(e,t,o,n,i)}return n("clickmode"),n("hoversubplots"),n("hovermode")}},"./node_modules/plotly.js/src/components/fx/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/components/dragelement/index.js"),a=n("./node_modules/plotly.js/src/components/fx/helpers.js"),s=n("./node_modules/plotly.js/src/components/fx/layout_attributes.js"),l=n("./node_modules/plotly.js/src/components/fx/hover.js");e.exports={moduleType:"component",name:"fx",constants:n("./node_modules/plotly.js/src/components/fx/constants.js"),schema:{layout:s},attributes:n("./node_modules/plotly.js/src/components/fx/attributes.js"),layoutAttributes:s,supplyLayoutGlobalDefaults:n("./node_modules/plotly.js/src/components/fx/layout_global_defaults.js"),supplyDefaults:n("./node_modules/plotly.js/src/components/fx/defaults.js"),supplyLayoutDefaults:n("./node_modules/plotly.js/src/components/fx/layout_defaults.js"),calc:n("./node_modules/plotly.js/src/components/fx/calc.js"),getDistanceFunction:a.getDistanceFunction,getClosest:a.getClosest,inbox:a.inbox,quadrature:a.quadrature,appendArrayPointValue:a.appendArrayPointValue,castHoverOption:function(e,t,n){return o.castOption(e,t,"hoverlabel."+n)},castHoverinfo:function(e,t,n){return o.castOption(e,n,"hoverinfo",(function(n){return o.coerceHoverinfo({hoverinfo:n},{_module:e._module},t)}))},hover:l.hover,unhover:i.unhover,loneHover:l.loneHover,loneUnhover:function(e){var t=o.isD3Selection(e)?e:r.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:n("./node_modules/plotly.js/src/components/fx/click.js")}},"./node_modules/plotly.js/src/components/fx/layout_attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/fx/constants.js"),o=n("./node_modules/plotly.js/src/plots/font_attributes.js"),i=o({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});i.family.dflt=r.HOVERFONT,i.size.dflt=r.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled."].join(" ")},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none",description:["Determines expansion of hover effects to other subplots","If *single* just the axis pair of the primary point is included without overlaying subplots.","If *overlaying* all subplots using the main axis and occupying the same space are included.","If *axis*, also include stacked subplots using the same axis","when `hovermode` is set to *x*, *x unified*, *y* or *y unified*."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:i,grouptitlefont:o({editType:"none",description:["Sets the font for group titles in hover (unified modes).","Defaults to `hoverlabel.font`."].join(" ")}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",description:["When `dragmode` is set to *select*, this limits the selection of the drag to","horizontal, vertical or diagonal. *h* only allows horizontal selection,","*v* only vertical, *d* only diagonal and *any* sets no limit."].join(" "),editType:"none"}}},"./node_modules/plotly.js/src/components/fx/layout_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/fx/layout_attributes.js"),i=n("./node_modules/plotly.js/src/components/fx/hovermode_defaults.js"),a=n("./node_modules/plotly.js/src/components/fx/hoverlabel_defaults.js");e.exports=function(e,t){function n(n,i){return r.coerce(e,t,o,n,i)}i(e,t)&&(n("hoverdistance"),n("spikedistance")),"select"===n("dragmode")&&n("selectdirection");var s=t._has("mapbox"),l=t._has("geo"),c=t._basePlotModules.length;"zoom"===t.dragmode&&((s||l)&&1===c||s&&l&&2===c)&&(t.dragmode="pan"),a(e,t,n),r.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}},"./node_modules/plotly.js/src/components/fx/layout_global_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/fx/hoverlabel_defaults.js"),i=n("./node_modules/plotly.js/src/components/fx/layout_attributes.js");e.exports=function(e,t){o(e,t,(function(n,o){return r.coerce(e,t,i,n,o)}))}},"./node_modules/plotly.js/src/components/grid/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/lib/regex.js").counter,i=n("./node_modules/plotly.js/src/plots/domain.js").attributes,a=n("./node_modules/plotly.js/src/plots/cartesian/constants.js").idRegex,s=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),l={rows:{valType:"integer",min:1,editType:"plot",description:["The number of rows in the grid. If you provide a 2D `subplots`","array or a `yaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot",description:["Is the first row the top or the bottom? Note that columns","are always enumerated from left to right."].join(" ")},columns:{valType:"integer",min:1,editType:"plot",description:["The number of columns in the grid. If you provide a 2D `subplots`","array, the length of its longest row is used as the default.","If you give an `xaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[o("xy").toString(),""],editType:"plot"},editType:"plot",description:["Used for freeform grids, where some axes may be shared across subplots","but others are not. Each entry should be a cartesian subplot id, like","*xy* or *x3y2*, or ** to leave that cell empty. You may reuse x axes","within the same column, and y axes within the same row.","Non-cartesian subplots and traces that support `domain` can place themselves","in this grid separately using the `gridcell` attribute."].join(" ")},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[a.x.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an x axis id like *x*, *x2*, etc., or ** to","not put an x axis in that column. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `yaxes` is present,","will generate consecutive IDs."].join(" ")},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[a.y.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an y axis id like *y*, *y2*, etc., or ** to","not put a y axis in that row. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `xaxes` is present,","will generate consecutive IDs."].join(" ")},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot",description:["If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`,","we can generate defaults using consecutive axis IDs, in two ways:","*coupled* gives one x axis per column and one y axis per row.","*independent* uses a new xy pair for each cell, left-to-right across each row","then iterating rows according to `roworder`."].join(" ")},xgap:{valType:"number",min:0,max:1,editType:"plot",description:["Horizontal space between grid cells, expressed as a fraction","of the total width available to one cell. Defaults to 0.1","for coupled-axes grids and 0.2 for independent grids."].join(" ")},ygap:{valType:"number",min:0,max:1,editType:"plot",description:["Vertical space between grid cells, expressed as a fraction","of the total height available to one cell. Defaults to 0.1","for coupled-axes grids and 0.3 for independent grids."].join(" ")},domain:i({name:"grid",editType:"plot",noGridCell:!0},{description:["The first and last cells end exactly at the domain","edges, with no grout around the edges."].join(" ")}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot",description:["Sets where the x axis labels and titles go. *bottom* means","the very bottom of the grid. *bottom plot* is the lowest plot","that each x axis is used in. *top* and *top plot* are similar."].join(" ")},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot",description:["Sets where the y axis labels and titles go. *left* means","the very left edge of the grid. *left plot* is the leftmost plot","that each y axis is used in. *right* and *right plot* are similar."].join(" ")},editType:"plot"};function c(e,t,n){var r=t[n+"axes"],o=Object.keys((e._splomAxes||{})[n]||{});return Array.isArray(r)?r:o.length?o:void 0}function u(e,t,n,r,o,i){var a=t(e+"gap",n),s=t("domain."+e);t(e+"side",r);for(var l=new Array(o),c=s[0],u=(s[1]-c)/(o-a),d=u*(1-a),f=0;f<o;f++){var h=c+u*f;l[i?o-1-f:f]=[h,h+d]}return l}function d(e,t,n,r,o){var i,a=new Array(n);function s(e,n){-1!==t.indexOf(n)&&void 0===r[n]?(a[e]=n,r[n]=e):a[e]=""}if(Array.isArray(e))for(i=0;i<n;i++)s(i,e[i]);else for(s(0,o),i=1;i<n;i++)s(i,o+(i+1));return a}e.exports={moduleType:"component",name:"grid",schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(e,t){var n=e.grid||{},o=c(t,n,"x"),i=c(t,n,"y");if(e.grid||o||i){var a,d,f=Array.isArray(n.subplots)&&Array.isArray(n.subplots[0]),h=Array.isArray(o),p=Array.isArray(i),m=h&&o!==n.xaxes&&p&&i!==n.yaxes;f?(a=n.subplots.length,d=n.subplots[0].length):(p&&(a=i.length),h&&(d=o.length));var g=s.newContainer(t,"grid"),v=k("rows",a),y=k("columns",d);if(v*y>1){if(!f&&!h&&!p)"independent"===k("pattern")&&(f=!0);g._hasSubplotGrid=f;var b,x,_="top to bottom"===k("roworder"),w=f?.2:.1,j=f?.3:.1;m&&t._splomGridDflt&&(b=t._splomGridDflt.xside,x=t._splomGridDflt.yside),g._domains={x:u("x",k,w,b,y),y:u("y",k,j,x,v,_)}}else delete t.grid}function k(e,t){return r.coerce(n,g,l,e,t)}},contentDefaults:function(e,t){var n=t.grid;if(n&&n._domains){var r,o,i,a,s,l,u,f=e.grid||{},h=t._subplots,p=n._hasSubplotGrid,m=n.rows,g=n.columns,v="independent"===n.pattern,y=n._axisMap={};if(p){var b=f.subplots||[];l=n.subplots=new Array(m);var x=1;for(r=0;r<m;r++){var _=l[r]=new Array(g),w=b[r]||[];for(o=0;o<g;o++)if(v?(s=1===x?"xy":"x"+x+"y"+x,x++):s=w[o],_[o]="",-1!==h.cartesian.indexOf(s)){if(u=s.indexOf("y"),i=s.slice(0,u),a=s.slice(u),void 0!==y[i]&&y[i]!==o||void 0!==y[a]&&y[a]!==r)continue;_[o]=s,y[i]=o,y[a]=r}}}else{var j=c(t,f,"x"),k=c(t,f,"y");n.xaxes=d(j,h.xaxis,g,y,"x"),n.yaxes=d(k,h.yaxis,m,y,"y")}var T=n._anchors={},A="top to bottom"===n.roworder;for(var M in y){var S,C,E,L=M.charAt(0),O=n[L+"side"];if(O.length<8)T[M]="free";else if("x"===L){if("t"===O.charAt(0)===A?(S=0,C=1,E=m):(S=m-1,C=-1,E=-1),p){var R=y[M];for(r=S;r!==E;r+=C)if((s=l[r][R])&&(u=s.indexOf("y"),s.slice(0,u)===M)){T[M]=s.slice(u);break}}else for(r=S;r!==E;r+=C)if(a=n.yaxes[r],-1!==h.cartesian.indexOf(M+a)){T[M]=a;break}}else if("l"===O.charAt(0)?(S=0,C=1,E=g):(S=g-1,C=-1,E=-1),p){var I=y[M];for(r=S;r!==E;r+=C)if((s=l[I][r])&&(u=s.indexOf("y"),s.slice(u)===M)){T[M]=s.slice(0,u);break}}else for(r=S;r!==E;r+=C)if(i=n.xaxes[r],-1!==h.cartesian.indexOf(i+M)){T[M]=i;break}}}}}},"./node_modules/plotly.js/src/components/images/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/cartesian/constants.js"),o=n("./node_modules/plotly.js/src/plot_api/plot_template.js").templatedArray,i=n("./node_modules/plotly.js/src/constants/axis_placeable_objects.js");e.exports=o("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw",description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",editType:"arraydraw",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width.","When `xref` ends with ` domain`, units are sized relative","to the axis width."].join(" ")},sizey:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height.","When `yref` ends with ` domain`, units are sized relative","to the axis height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the image."},x:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's x coordinate axis.",i.axisRefDescription("x","left","right")].join(" ")},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's y coordinate axis.",i.axisRefDescription("y","bottom","top")].join(" ")},editType:"arraydraw"})},"./node_modules/plotly.js/src/components/images/convert_coords.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/to_log_range.js");e.exports=function(e,t,n,i){t=t||{};var a="log"===n&&"linear"===t.type,s="linear"===n&&"log"===t.type;if(a||s)for(var l,c,u=e._fullLayout.images,d=t._id.charAt(0),f=0;f<u.length;f++)if(c="images["+f+"].",(l=u[f])[d+"ref"]===t._id){var h=l[d],p=l["size"+d],m=null,g=null;if(a){m=o(h,t.range);var v=p/Math.pow(10,m)/2;g=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else g=(m=Math.pow(10,h))*(Math.pow(10,p/2)-Math.pow(10,-p/2));r(m)?r(g)||(g=null):(m=null,g=null),i(c+d,m),i(c+"size"+d,g)}}},"./node_modules/plotly.js/src/components/images/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),i=n("./node_modules/plotly.js/src/plots/array_container_defaults.js"),a=n("./node_modules/plotly.js/src/components/images/attributes.js");function s(e,t,n){function i(n,o){return r.coerce(e,t,a,n,o)}var s=i("source");if(!i("visible",!!s))return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var l={_fullLayout:n},c=["x","y"],u=0;u<2;u++){var d=c[u],f=o.coerceRef(e,t,l,d,"paper",void 0);if("paper"!==f)o.getFromId(l,f)._imgIndices.push(t._index);o.coercePosition(t,l,i,f,d,0)}return t}e.exports=function(e,t){i(e,t,{name:"images",handleItemDefaults:s})}},"./node_modules/plotly.js/src/components/images/draw.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/components/drawing/index.js"),i=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),a=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),s=n("./node_modules/plotly.js/src/constants/xmlns_namespaces.js");e.exports=function(e){var t,n,l=e._fullLayout,c=[],u={},d=[];for(n=0;n<l.images.length;n++){var f=l.images[n];if(f.visible)if("below"===f.layer&&"paper"!==f.xref&&"paper"!==f.yref){t=a.ref2id(f.xref)+a.ref2id(f.yref);var h=l._plots[t];if(!h){d.push(f);continue}h.mainplot&&(t=h.mainplot.id),u[t]||(u[t]=[]),u[t].push(f)}else"above"===f.layer?c.push(f):d.push(f)}var p={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},m={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function g(t){var n=r.select(this);if(this._imgSrc!==t.source)if(n.attr("xmlns",s.svg),t.source&&"data:"===t.source.slice(0,5))n.attr("xlink:href",t.source),this._imgSrc=t.source;else{var o=new Promise(function(e){var r=new Image;function o(){n.remove(),e()}this.img=r,r.setAttribute("crossOrigin","anonymous"),r.onerror=o,r.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height,t.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var r=t.toDataURL("image/png");n.attr("xlink:href",r),e()},n.on("error",o),r.src=t.source,this._imgSrc=t.source}.bind(this));e._promises.push(o)}}function v(t){var n,a,s=r.select(this),c=i.getFromId(e,t.xref),u=i.getFromId(e,t.yref),d="domain"===i.getRefType(t.xref),f="domain"===i.getRefType(t.yref),h=l._size;n=void 0!==c?"string"==typeof t.xref&&d?c._length*t.sizex:Math.abs(c.l2p(t.sizex)-c.l2p(0)):t.sizex*h.w,a=void 0!==u?"string"==typeof t.yref&&f?u._length*t.sizey:Math.abs(u.l2p(t.sizey)-u.l2p(0)):t.sizey*h.h;var g,v,y=n*p[t.xanchor].offset,b=a*m[t.yanchor].offset,x=p[t.xanchor].sizing+m[t.yanchor].sizing;switch(g=void 0!==c?"string"==typeof t.xref&&d?c._length*t.x+c._offset:c.r2p(t.x)+c._offset:t.x*h.w+h.l,g+=y,v=void 0!==u?"string"==typeof t.yref&&f?u._length*(1-t.y)+u._offset:u.r2p(t.y)+u._offset:h.h-t.y*h.h+h.t,v+=b,t.sizing){case"fill":x+=" slice";break;case"stretch":x="none"}s.attr({x:g,y:v,width:n,height:a,preserveAspectRatio:x,opacity:t.opacity});var _=(c&&"domain"!==i.getRefType(t.xref)?c._id:"")+(u&&"domain"!==i.getRefType(t.yref)?u._id:"");o.setClipUrl(s,_?"clip"+l._uid+_:null,e)}var y=l._imageLowerLayer.selectAll("image").data(d),b=l._imageUpperLayer.selectAll("image").data(c);y.enter().append("image"),b.enter().append("image"),y.exit().remove(),b.exit().remove(),y.each((function(e){g.bind(this)(e),v.bind(this)(e)})),b.each((function(e){g.bind(this)(e),v.bind(this)(e)}));var x=Object.keys(l._plots);for(n=0;n<x.length;n++){t=x[n];var _=l._plots[t];if(_.imagelayer){var w=_.imagelayer.selectAll("image").data(u[t]||[]);w.enter().append("image"),w.exit().remove(),w.each((function(e){g.bind(this)(e),v.bind(this)(e)}))}}}},"./node_modules/plotly.js/src/components/images/index.js":function(e,t,n){"use strict";e.exports={moduleType:"component",name:"images",layoutAttributes:n("./node_modules/plotly.js/src/components/images/attributes.js"),supplyLayoutDefaults:n("./node_modules/plotly.js/src/components/images/defaults.js"),includeBasePlot:n("./node_modules/plotly.js/src/plots/cartesian/include_components.js")("images"),draw:n("./node_modules/plotly.js/src/components/images/draw.js"),convertCoords:n("./node_modules/plotly.js/src/components/images/convert_coords.js")}},"./node_modules/plotly.js/src/components/legend/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/font_attributes.js"),o=n("./node_modules/plotly.js/src/components/color/attributes.js");e.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend",description:["Determines whether or not this legend is visible."].join(" ")},bgcolor:{valType:"color",editType:"legend",description:["Sets the legend background color.","Defaults to `layout.paper_bgcolor`."].join(" ")},bordercolor:{valType:"color",dflt:o.defaultLine,editType:"legend",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend",description:"Sets the width (in px) of the border enclosing the legend."},font:r({editType:"legend",description:"Sets the font used to text the legend items."}),grouptitlefont:r({editType:"legend",description:["Sets the font for group titles in legend.","Defaults to `legend.font` with its size increased about 10%."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},entrywidth:{valType:"number",min:0,editType:"legend",description:["Sets the width (in px or fraction) of the legend.","Use 0 to size the entry based on the text width,","when `entrywidthmode` is set to *pixels*."].join(" ")},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend",description:"Determines what entrywidth means."},indentation:{valType:"number",min:-15,dflt:0,editType:"legend",description:"Sets the indentation (in px) of the legend entries."},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend",description:["Determines if the legend items symbols scale with their corresponding *trace* attributes","or remain *constant* independent of the symbol size on the graph."].join(" ")},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend",description:"Sets the width (in px) of the legend item symbols (the part other than the title.text)."},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend",description:["Determines the behavior on legend item click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item click interactions."].join(" ")},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend",description:["Determines the behavior on legend item double-click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item double-click interactions."].join(" ")},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend",description:["Determines the behavior on legend group item click.","*toggleitem* toggles the visibility of the individual item clicked on the graph.","*togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph."].join(" ")},x:{valType:"number",editType:"legend",description:["Sets the x position with respect to `xref` (in normalized coordinates) of the legend.","When `xref` is *paper*, defaults to *1.02* for vertical legends and","defaults to *0* for horizontal legends.","When `xref` is *container*, defaults to *1* for vertical legends and","defaults to *0* for horizontal legends.","Must be between *0* and *1* if `xref` is *container*.","and between *-2* and *3* if `xref` is *paper*."].join(" ")},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend.","Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3,","anchors legends to the left for `x` values less than or equal to 1/3 and","anchors legends with respect to their center otherwise."].join(" ")},y:{valType:"number",editType:"legend",description:["Sets the y position with respect to `yref` (in normalized coordinates) of the legend.","When `yref` is *paper*, defaults to *1* for vertical legends,","defaults to *-0.1* for horizontal legends on graphs w/o range sliders and","defaults to *1.1* for horizontal legends on graph with one or multiple range sliders.","When `yref` is *container*, defaults to *1*.","Must be between *0* and *1* if `yref` is *container*","and between *-2* and *3* if `yref` is *paper*."].join(" ")},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend.","Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3,","anchors legends to at their top for `y` values greater than or equal to 2/3 and","anchors legends with respect to their middle otherwise."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of legend-driven changes in trace and pie label","visibility. Defaults to `layout.uirevision`."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend",description:["Sets the vertical alignment of the symbols with respect to their associated text."].join(" ")},title:{text:{valType:"string",dflt:"",editType:"legend",description:["Sets the title of the legend."].join(" ")},font:r({editType:"legend",description:["Sets this legend's title font.","Defaults to `legend.font` with its size increased about 20%."].join(" ")}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend",description:["Determines the location of legend's title","with respect to the legend items.","Defaulted to *top* with `orientation` is *h*.","Defaulted to *left* with `orientation` is *v*.","The *top left* options could be used to expand","top center and top right are for horizontal alignment","legend area in both x and y sides."].join(" ")},editType:"legend"},editType:"legend"}},"./node_modules/plotly.js/src/components/legend/constants.js":function(e,t,n){"use strict";e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},"./node_modules/plotly.js/src/components/legend/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),a=n("./node_modules/plotly.js/src/plots/attributes.js"),s=n("./node_modules/plotly.js/src/components/legend/attributes.js"),l=n("./node_modules/plotly.js/src/plots/layout_attributes.js"),c=n("./node_modules/plotly.js/src/components/legend/helpers.js");function u(e,t,n,u){var d=t[e]||{},f=i.newContainer(n,e);function h(e,t){return o.coerce(d,f,s,e,t)}var p=o.coerceFont(h,"font",n.font);if(h("bgcolor",n.paper_bgcolor),h("bordercolor"),h("visible")){for(var m,g=function(e,t){var n=m._input,r=m;return o.coerce(n,r,a,e,t)},v=n.font||{},y=o.coerceFont(h,"grouptitlefont",v,{overrideDflt:{size:Math.round(1.1*v.size)}}),b=0,x=!1,_="normal",w=(n.shapes||[]).filter((function(e){return e.showlegend})),j=u.concat(w).filter((function(t){return e===(t.legend||"legend")})),k=0;k<j.length;k++)if((m=j[k]).visible){var T=m._isShape;(m.showlegend||m._dfltShowLegend&&!(m._module&&m._module.attributes&&m._module.attributes.showlegend&&!1===m._module.attributes.showlegend.dflt))&&(b++,m.showlegend&&(x=!0,(!T&&r.traceIs(m,"pie-like")||!0===m._input.showlegend)&&b++),o.coerceFont(g,"legendgrouptitle.font",y)),(!T&&r.traceIs(m,"bar")&&"stack"===n.barmode||-1!==["tonextx","tonexty"].indexOf(m.fill))&&(_=c.isGrouped({traceorder:_})?"grouped+reversed":"reversed"),void 0!==m.legendgroup&&""!==m.legendgroup&&(_=c.isReversed({traceorder:_})?"reversed+grouped":"grouped")}var A=o.coerce(t,n,l,"showlegend",x&&b>("legend"===e?1:0));if(!1===A&&(n[e]=void 0),(!1!==A||d.uirevision)&&(h("uirevision",n.uirevision),!1!==A)){h("borderwidth");var M,S,C,E="h"===h("orientation"),L="paper"===h("yref"),O="paper"===h("xref"),R="left";if(E?(M=0,r.getComponentMethod("rangeslider","isVisible")(t.xaxis)?L?(S=1.1,C="bottom"):(S=1,C="top"):L?(S=-.1,C="top"):(S=0,C="bottom")):(S=1,C="auto",O?M=1.02:(M=1,R="right")),o.coerce(d,f,{x:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:M}},"x"),o.coerce(d,f,{y:{valType:"number",editType:"legend",min:L?-2:0,max:L?3:1,dflt:S}},"y"),h("traceorder",_),c.isGrouped(n[e])&&h("tracegroupgap"),h("entrywidth"),h("entrywidthmode"),h("indentation"),h("itemsizing"),h("itemwidth"),h("itemclick"),h("itemdoubleclick"),h("groupclick"),h("xanchor",R),h("yanchor",C),h("valign"),o.noneOrAll(d,f,["x","y"]),h("title.text")){h("title.side",E?"left":"top");var I=o.extendFlat({},p,{size:o.bigFont(p.size)});o.coerceFont(h,"title.font",I)}}}}e.exports=function(e,t,n){var r,i=n.slice(),a=t.shapes;if(a)for(r=0;r<a.length;r++){var s=a[r];if(s.showlegend){var l={_input:s._input,visible:s.visible,showlegend:s.showlegend,legend:s.legend};i.push(l)}}var c=["legend"];for(r=0;r<i.length;r++)o.pushUnique(c,i[r].legend);for(t._legends=[],r=0;r<c.length;r++){var d=c[r];u(d,e,t,i),t[d]&&t[d].visible&&(t[d]._id=d),t._legends.push(d)}}},"./node_modules/plotly.js/src/components/legend/draw.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/plots/plots.js"),a=n("./node_modules/plotly.js/src/registry.js"),s=n("./node_modules/plotly.js/src/lib/events.js"),l=n("./node_modules/plotly.js/src/components/dragelement/index.js"),c=n("./node_modules/plotly.js/src/components/drawing/index.js"),u=n("./node_modules/plotly.js/src/components/color/index.js"),d=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),f=n("./node_modules/plotly.js/src/components/legend/handle_click.js"),h=n("./node_modules/plotly.js/src/components/legend/constants.js"),p=n("./node_modules/plotly.js/src/constants/alignment.js"),m=p.LINE_SPACING,g=p.FROM_TL,v=p.FROM_BR,y=n("./node_modules/plotly.js/src/components/legend/get_legend_data.js"),b=n("./node_modules/plotly.js/src/components/legend/style.js"),x=n("./node_modules/plotly.js/src/components/legend/helpers.js"),_=/^legend[0-9]*$/;function w(e,t){var n,s,f=t||{},p=e._fullLayout,_=L(f),w=f._inHover;if(w?(s=f.layer,n="hover"):(s=p._infolayer,n=_),s){var A;if(n+=p._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0),w){if(!f.entries)return;A=y(f.entries,f)}else{for(var O=(e.calcdata||[]).slice(),R=p.shapes,I=0;I<R.length;I++){var P=R[I];if(P.showlegend){var D={_isShape:!0,_fullInput:P,index:P._index,name:P.name||P.label.text||"shape "+P._index,legend:P.legend,legendgroup:P.legendgroup,legendgrouptitle:P.legendgrouptitle,legendrank:P.legendrank,legendwidth:P.legendwidth,showlegend:P.showlegend,visible:P.visible,opacity:P.opacity,mode:"line"===P.type?"lines":"markers",line:P.line,marker:{line:P.line,color:P.fillcolor,size:12,symbol:"rect"===P.type?"square":"circle"===P.type?"circle":"hexagon2"}};O.push([{trace:D}])}}A=p.showlegend&&y(O,f,p._legends.length>1)}var z=p.hiddenlabels||[];if(!(w||p.showlegend&&A.length))return s.selectAll("."+_).remove(),p._topdefs.select("#"+n).remove(),i.autoMargin(e,_);var N=o.ensureSingle(s,"g",_,(function(e){w||e.attr("pointer-events","all")})),F=o.ensureSingleById(p._topdefs,"clipPath",n,(function(e){e.append("rect")})),B=o.ensureSingle(N,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));B.call(u.stroke,f.bordercolor).call(u.fill,f.bgcolor).style("stroke-width",f.borderwidth+"px");var U,H=o.ensureSingle(N,"g","scrollbox"),V=f.title;f._titleWidth=0,f._titleHeight=0,V.text?((U=o.ensureSingle(H,"text",_+"titletext")).attr("text-anchor","start").call(c.font,V.font).text(V.text),S(U,H,e,f,1)):H.selectAll("."+_+"titletext").remove();var G=o.ensureSingle(N,"rect","scrollbar",(function(e){e.attr(h.scrollBarEnterAttrs).call(u.fill,h.scrollBarColor)})),q=H.selectAll("g.groups").data(A);q.enter().append("g").attr("class","groups"),q.exit().remove();var W=q.selectAll("g.traces").data(o.identity);W.enter().append("g").attr("class","traces"),W.exit().remove(),W.style("opacity",(function(e){var t=e[0].trace;return a.traceIs(t,"pie-like")?-1!==z.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){r.select(this).call(T,e,f)})).call(b,e,f).each((function(){w||r.select(this).call(M,e,_)})),o.syncOrAsync([i.previousPromises,function(){return function(e,t,n,o){var i=e._fullLayout,a=L(o);o||(o=i[a]);var s=i._size,l=x.isVertical(o),u=x.isGrouped(o),d="fraction"===o.entrywidthmode,f=o.borderwidth,p=2*f,m=h.itemGap,g=o.indentation+o.itemwidth+2*m,v=2*(f+m),y=E(o),b=o.y<0||0===o.y&&"top"===y,_=o.y>1||1===o.y&&"bottom"===y,w=o.tracegroupgap,k={};o._maxHeight=Math.max(b||_?i.height/2:s.h,30);var T=0;o._width=0,o._height=0;var A=function(e){var t=0,n=0,r=e.title.side;r&&(-1!==r.indexOf("left")&&(t=e._titleWidth),-1!==r.indexOf("top")&&(n=e._titleHeight));return[t,n]}(o);if(l)n.each((function(e){var t=e[0].height;c.setTranslate(this,f+A[0],f+A[1]+o._height+t/2+m),o._height+=t,o._width=Math.max(o._width,e[0].width)})),T=g+o._width,o._width+=m+g+p,o._height+=v,u&&(t.each((function(e,t){c.setTranslate(this,0,t*o.tracegroupgap)})),o._height+=(o._lgroupsLength-1)*o.tracegroupgap);else{var M=C(o),S=o.x<0||0===o.x&&"right"===M,O=o.x>1||1===o.x&&"left"===M,R=_||b,I=i.width/2;o._maxWidth=Math.max(S?R&&"left"===M?s.l+s.w:I:O?R&&"right"===M?s.r+s.w:I:s.w,2*g);var P=0,D=0;n.each((function(e){var t=j(e,o,g);P=Math.max(P,t),D+=t})),T=null;var z=0;if(u){var N=0,F=0,B=0;t.each((function(){var e=0,t=0;r.select(this).selectAll("g.traces").each((function(n){var r=j(n,o,g),i=n[0].height;c.setTranslate(this,A[0],A[1]+f+m+i/2+t),t+=i,e=Math.max(e,r),k[n[0].trace.legendgroup]=e}));var n=e+m;F>0&&n+f+F>o._maxWidth?(z=Math.max(z,F),F=0,B+=N+w,N=t):N=Math.max(N,t),c.setTranslate(this,F,B),F+=n})),o._width=Math.max(z,F)+f,o._height=B+N+v}else{var U=n.size(),H=D+p+(U-1)*m<o._maxWidth,V=0,G=0,q=0,W=0;n.each((function(e){var t=e[0].height,n=j(e,o,g),r=H?n:P;d||(r+=m),r+f+G-m>=o._maxWidth&&(z=Math.max(z,W),G=0,q+=V,o._height+=V,V=0),c.setTranslate(this,A[0]+f+G,A[1]+f+q+t/2+m),W=G+n+m,G+=r,V=Math.max(V,t)})),H?(o._width=G+p,o._height=V+v):(o._width=Math.max(z,W)+p,o._height+=V+v)}}o._width=Math.ceil(Math.max(o._width+A[0],o._titleWidth+2*(f+h.titlePad))),o._height=Math.ceil(Math.max(o._height+A[1],o._titleHeight+2*(f+h.itemGap))),o._effHeight=Math.min(o._height,o._maxHeight);var Y=e._context.edits,X=Y.legendText||Y.legendPosition;n.each((function(e){var t=r.select(this).select("."+a+"toggle"),n=e[0].height,i=e[0].trace.legendgroup,s=j(e,o,g);u&&""!==i&&(s=k[i]);var f=X?g:T||s;l||d||(f+=m/2),c.setRect(t,0,-n/2,f,n)}))}(e,q,W,f)},function(){var t,u,y,b,x=p._size,j=f.borderwidth,T="paper"===f.xref,A="paper"===f.yref;if(V.text&&function(e,t,n){if("top center"===t.title.side||"top right"===t.title.side){var r=t.title.font.size*m,o=0,i=e.node(),a=c.bBox(i).width;"top center"===t.title.side?o=.5*(t._width-2*n-2*h.titlePad-a):"top right"===t.title.side&&(o=t._width-2*n-2*h.titlePad-a),d.positionText(e,n+h.titlePad+o,n+r)}}(U,f,j),!w){var M,S;if(M=T?x.l+x.w*f.x-g[C(f)]*f._width:p.width*f.x-g[C(f)]*f._width,S=A?x.t+x.h*(1-f.y)-g[E(f)]*f._effHeight:p.height*(1-f.y)-g[E(f)]*f._effHeight,function(e,t,n,r){var o=e._fullLayout,a=o[t],s=C(a),l=E(a),c="paper"===a.xref,u="paper"===a.yref;e._fullLayout._reservedMargin[t]={};var d=a.y<.5?"b":"t",f=a.x<.5?"l":"r",h={r:o.width-n,l:n+a._width,b:o.height-r,t:r+a._effHeight};if(c&&u)return i.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*g[s],r:a._width*v[s],b:a._effHeight*v[l],t:a._effHeight*g[l]});c?e._fullLayout._reservedMargin[t][d]=h[d]:u||"v"===a.orientation?e._fullLayout._reservedMargin[t][f]=h[f]:e._fullLayout._reservedMargin[t][d]=h[d]}(e,_,M,S))return;if(p.margin.autoexpand){var L=M,O=S;M=T?o.constrain(M,0,p.width-f._width):L,S=A?o.constrain(S,0,p.height-f._effHeight):O,M!==L&&o.log("Constrain "+_+".x to make legend fit inside graph"),S!==O&&o.log("Constrain "+_+".y to make legend fit inside graph")}c.setTranslate(N,M,S)}if(G.on(".drag",null),N.on("wheel",null),w||f._height<=f._maxHeight||e._context.staticPlot){var R=f._effHeight;w&&(R=f._height),B.attr({width:f._width-j,height:R-j,x:j/2,y:j/2}),c.setTranslate(H,0,0),F.select("rect").attr({width:f._width-2*j,height:R-2*j,x:j,y:j}),c.setClipUrl(H,n,e),c.setRect(G,0,0,0,0),delete f._scrollY}else{var I,P,D,z=Math.max(h.scrollBarMinHeight,f._effHeight*f._effHeight/f._height),q=f._effHeight-z-2*h.scrollBarMargin,W=f._height-f._effHeight,Y=q/W,X=Math.min(f._scrollY||0,W);B.attr({width:f._width-2*j+h.scrollBarWidth+h.scrollBarMargin,height:f._effHeight-j,x:j/2,y:j/2}),F.select("rect").attr({width:f._width-2*j+h.scrollBarWidth+h.scrollBarMargin,height:f._effHeight-2*j,x:j,y:j+X}),c.setClipUrl(H,n,e),K(X,z,Y),N.on("wheel",(function(){K(X=o.constrain(f._scrollY+r.event.deltaY/q*W,0,W),z,Y),0!==X&&X!==W&&r.event.preventDefault()}));var Z=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;I="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,D=X})).on("drag",(function(){var e=r.event.sourceEvent;2===e.buttons||e.ctrlKey||(P="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,K(X=function(e,t,n){var r=(n-t)/Y+e;return o.constrain(r,0,W)}(D,I,P),z,Y))}));G.call(Z);var $=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;"touchstart"===e.type&&(I=e.changedTouches[0].clientY,D=X)})).on("drag",(function(){var e=r.event.sourceEvent;"touchmove"===e.type&&(P=e.changedTouches[0].clientY,K(X=function(e,t,n){var r=(t-n)/Y+e;return o.constrain(r,0,W)}(D,I,P),z,Y))}));H.call($)}function K(t,n,r){f._scrollY=e._fullLayout[_]._scrollY=t,c.setTranslate(H,0,-t),c.setRect(G,f._width,h.scrollBarMargin+t*r,h.scrollBarWidth,n),F.select("rect").attr("y",j+t)}e._context.edits.legendPosition&&(N.classed("cursor-move",!0),l.init({element:N.node(),gd:e,prepFn:function(e){if(e.target!==G.node()){var t=c.getTranslate(N);y=t.x,b=t.y}},moveFn:function(e,n){if(void 0!==y&&void 0!==b){var r=y+e,o=b+n;c.setTranslate(N,r,o),t=l.align(r,f._width,x.l,x.l+x.w,f.xanchor),u=l.align(o+f._height,-f._height,x.t+x.h,x.t,f.yanchor)}},doneFn:function(){if(void 0!==t&&void 0!==u){var n={};n[_+".x"]=t,n[_+".y"]=u,a.call("_guiRelayout",e,n)}},clickFn:function(t,n){var r=s.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return n.clientX>=e.left&&n.clientX<=e.right&&n.clientY>=e.top&&n.clientY<=e.bottom}));r.size()>0&&k(e,N,r,t,n)}}))}],e)}}function j(e,t,n){var r=e[0],o=r.width,i=t.entrywidthmode,a=r.trace.legendwidth||t.entrywidth;return"fraction"===i?t._maxWidth*a:n+(a||o)}function k(e,t,n,r,o){var i=n.data()[0][0].trace,l={event:o,node:n.node(),curveNumber:i.index,expandedIndex:i._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(l.group=i._group),a.traceIs(i,"pie-like")&&(l.label=n.datum()[0].label);var c=s.triggerHandler(e,"plotly_legendclick",l);if(1===r){if(!1===c)return;t._clickTimeout=setTimeout((function(){e._fullLayout&&f(n,e,r)}),e._context.doubleClickDelay)}else if(2===r){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==s.triggerHandler(e,"plotly_legenddoubleclick",l)&&!1!==c&&f(n,e,r)}}function T(e,t,n){var r,i,s=L(n),l=e.data()[0][0],u=l.trace,f=a.traceIs(u,"pie-like"),p=!n._inHover&&t._context.edits.legendText&&!f,m=n._maxNameLength;l.groupTitle?(r=l.groupTitle.text,i=l.groupTitle.font):(i=n.font,n.entries?r=l.text:(r=f?l.label:u.name,u._meta&&(r=o.templateString(r,u._meta))));var g=o.ensureSingle(e,"text",s+"text");g.attr("text-anchor","start").call(c.font,i).text(p?A(r,m):r);var v=n.indentation+n.itemwidth+2*h.itemGap;d.positionText(g,v,0),p?g.call(d.makeEditable,{gd:t,text:r}).call(S,e,t,n).on("edit",(function(r){this.text(A(r,m)).call(S,e,t,n);var i=l.trace._fullInput||{},s={};if(a.hasTransform(i,"groupby")){var c=a.getTransformIndices(i,"groupby"),d=c[c.length-1],f=o.keyedContainer(i,"transforms["+d+"].styles","target","value.name");f.set(l.trace._group,r),s=f.constructUpdate()}else s.name=r;return i._isShape?a.call("_guiRelayout",t,"shapes["+u.index+"].name",s.name):a.call("_guiRestyle",t,s,u.index)})):S(g,e,t,n)}function A(e,t){var n=Math.max(4,t);if(e&&e.trim().length>=n/2)return e;for(var r=n-(e=e||"").length;r>0;r--)e+=" ";return e}function M(e,t,n){var i,a=t._context.doubleClickDelay,s=1,l=o.ensureSingle(e,"rect",n+"toggle",(function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(u.fill,"rgba(0,0,0,0)")}));t._context.staticPlot||(l.on("mousedown",(function(){(i=(new Date).getTime())-t._legendMouseDownTime<a?s+=1:(s=1,t._legendMouseDownTime=i)})),l.on("mouseup",(function(){if(!t._dragged&&!t._editing){var o=t._fullLayout[n];(new Date).getTime()-t._legendMouseDownTime>a&&(s=Math.max(s-1,1)),k(t,o,e,s,r.event)}})))}function S(e,t,n,r,o){r._inHover&&e.attr("data-notex",!0),d.convertToTspans(e,n,(function(){!function(e,t,n,r){var o=e.data()[0][0];if(!n._inHover&&o&&!o.trace.showlegend)return void e.remove();var i=e.select("g[class*=math-group]"),a=i.node(),s=L(n);n||(n=t._fullLayout[s]);var l,u=n.borderwidth;l=1===r?n.title.font:o.groupTitle?o.groupTitle.font:n.font;var f,p,g=l.size*m;if(a){var v=c.bBox(a);f=v.height,p=v.width,1===r?c.setTranslate(i,u,u+.75*f):c.setTranslate(i,0,.25*f)}else{var y="."+s+(1===r?"title":"")+"text",b=e.select(y),x=d.lineCount(b),_=b.node();if(f=g*x,p=_?c.bBox(_).width:0,1===r)"left"===n.title.side&&(p+=2*h.itemGap),d.positionText(b,u+h.titlePad,u+g);else{var w=2*h.itemGap+n.indentation+n.itemwidth;o.groupTitle&&(w=h.itemGap,p-=n.indentation+n.itemwidth),d.positionText(b,w,-g*((x-1)/2-.3))}}1===r?(n._titleWidth=p,n._titleHeight=f):(o.lineHeight=g,o.height=Math.max(f,16)+3,o.width=p)}(t,n,r,o)}))}function C(e){return o.isRightAnchor(e)?"right":o.isCenterAnchor(e)?"center":"left"}function E(e){return o.isBottomAnchor(e)?"bottom":o.isMiddleAnchor(e)?"middle":"top"}function L(e){return e._id||"legend"}e.exports=function(e,t){if(t)w(e,t);else{var n=e._fullLayout,o=n._legends;n._infolayer.selectAll('[class^="legend"]').each((function(){var e=r.select(this),t=e.attr("class").split(" ")[0];t.match(_)&&-1===o.indexOf(t)&&e.remove()}));for(var i=0;i<o.length;i++){var a=o[i];w(e,e._fullLayout[a])}}}},"./node_modules/plotly.js/src/components/legend/get_legend_data.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/components/legend/helpers.js");e.exports=function(e,t,n){var i,a,s=t._inHover,l=o.isGrouped(t),c=o.isReversed(t),u={},d=[],f=!1,h={},p=0,m=0;function g(e,r,i){if(!1!==t.visible&&(!n||e===t._id))if(""!==r&&o.isGrouped(t))-1===d.indexOf(r)?(d.push(r),f=!0,u[r]=[i]):u[r].push(i);else{var a="~~i"+p;d.push(a),u[a]=[i],p++}}for(i=0;i<e.length;i++){var v=e[i],y=v[0],b=y.trace,x=b.legend,_=b.legendgroup;if(s||b.visible&&b.showlegend)if(r.traceIs(b,"pie-like"))for(h[_]||(h[_]={}),a=0;a<v.length;a++){var w=v[a].label;h[_][w]||(g(x,_,{label:w,color:v[a].color,i:v[a].i,trace:b,pts:v[a].pts}),h[_][w]=!0,m=Math.max(m,(w||"").length))}else g(x,_,y),m=Math.max(m,(b.name||"").length)}if(!d.length)return[];var j=!f||!l,k=[];for(i=0;i<d.length;i++){var T=u[d[i]];j?k.push(T[0]):k.push(T)}for(j&&(k=[k]),i=0;i<k.length;i++){var A=1/0;for(a=0;a<k[i].length;a++){var M=k[i][a].trace.legendrank;A>M&&(A=M)}k[i][0]._groupMinRank=A,k[i][0]._preGroupSort=i}var S=function(e,t){return e.trace.legendrank-t.trace.legendrank||e._preSort-t._preSort};for(k.forEach((function(e,t){e[0]._preGroupSort=t})),k.sort((function(e,t){return e[0]._groupMinRank-t[0]._groupMinRank||e[0]._preGroupSort-t[0]._preGroupSort})),i=0;i<k.length;i++){k[i].forEach((function(e,t){e._preSort=t})),k[i].sort(S);var C=k[i][0].trace,E=null;for(a=0;a<k[i].length;a++){var L=k[i][a].trace.legendgrouptitle;if(L&&L.text){E=L,s&&(L.font=t._groupTitleFont);break}}if(c&&k[i].reverse(),E){var O=!1;for(a=0;a<k[i].length;a++)if(r.traceIs(k[i][a].trace,"pie-like")){O=!0;break}k[i].unshift({i:-1,groupTitle:E,noClick:O,trace:{showlegend:C.showlegend,legendgroup:C.legendgroup,visible:"toggleitem"===t.groupclick||C.visible}})}for(a=0;a<k[i].length;a++)k[i][a]=[k[i][a]]}return t._lgroupsLength=k.length,t._maxNameLength=m,k}},"./node_modules/plotly.js/src/components/legend/handle_click.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=o.pushUnique,a=!0;e.exports=function(e,t,n){var s=t._fullLayout;if(!t._dragged&&!t._editing){var l,c=s.legend.itemclick,u=s.legend.itemdoubleclick,d=s.legend.groupclick;if(1===n&&"toggle"===c&&"toggleothers"===u&&a&&t.data&&t._context.showTips?(o.notifier(o._(t,"Double-click on legend to isolate one trace"),"long"),a=!1):a=!1,1===n?l=c:2===n&&(l=u),l){var f="togglegroup"===d,h=s.hiddenlabels?s.hiddenlabels.slice():[],p=e.data()[0][0];if(!p.groupTitle||!p.noClick){var m=t._fullData,g=(s.shapes||[]).filter((function(e){return e.showlegend})),v=m.concat(g),y=p.trace;y._isShape&&(y=y._fullInput);var b,x,_,w,j,k=y.legendgroup,T={},A=[],M=[],S=[],C=(s.shapes||[]).map((function(e){return e._input})),E=!1,L=y.legend,O=y._fullInput;if(!(O&&O._isShape)&&r.traceIs(y,"pie-like")){var R=p.label,I=h.indexOf(R);if("toggle"===l)-1===I?h.push(R):h.splice(I,1);else if("toggleothers"===l){var P=-1!==I,D=[];for(b=0;b<t.calcdata.length;b++){var z=t.calcdata[b];for(x=0;x<z.length;x++){var N=z[x].label;L===z[0].trace.legend&&R!==N&&(-1===h.indexOf(N)&&(P=!0),i(h,N),D.push(N))}}if(!P)for(var F=0;F<D.length;F++){var B=h.indexOf(D[F]);-1!==B&&h.splice(B,1)}}r.call("_guiRelayout",t,"hiddenlabels",h)}else{var U,H=k&&k.length,V=[];if(H)for(b=0;b<v.length;b++)(U=v[b]).visible&&U.legendgroup===k&&V.push(b);if("toggle"===l){var G;switch(y.visible){case!0:G="legendonly";break;case!1:G=!1;break;case"legendonly":G=!0}if(H)if(f)for(b=0;b<v.length;b++){var q=v[b];!1!==q.visible&&q.legendgroup===k&&ee(q,G)}else ee(y,G);else ee(y,G)}else if("toggleothers"===l){var W,Y,X,Z,$=!0;for(b=0;b<v.length;b++)if(W=(Z=v[b])===y,Y=!0!==Z.showlegend,!(W||Y||H&&Z.legendgroup===k||Z.legend!==L||!0!==Z.visible||r.traceIs(Z,"notLegendIsolatable"))){$=!1;break}for(b=0;b<v.length;b++)if(!1!==(Z=v[b]).visible&&Z.legend===L&&!r.traceIs(Z,"notLegendIsolatable"))switch(y.visible){case"legendonly":ee(Z,!0);break;case!0:X=!!$||"legendonly",W=Z===y,Y=!0!==Z.showlegend&&!Z.legendgroup,ee(Z,!(!(W||H&&Z.legendgroup===k)&&!Y)||X)}}for(b=0;b<M.length;b++)if(_=M[b]){var K=_.constructUpdate(),J=Object.keys(K);for(x=0;x<J.length;x++)w=J[x],(T[w]=T[w]||[])[S[b]]=K[w]}for(j=Object.keys(T),b=0;b<j.length;b++)for(w=j[b],x=0;x<A.length;x++)T[w].hasOwnProperty(x)||(T[w][x]=void 0);E?r.call("_guiUpdate",t,T,{shapes:C},A):r.call("_guiRestyle",t,T,A)}}}}function Q(e,t){var n=A.indexOf(e),r=T.visible;return r||(r=T.visible=[]),-1===A.indexOf(e)&&(A.push(e),n=A.length-1),r[n]=t,n}function ee(e,t){if(!p.groupTitle||f){var n,i=e._fullInput||e,a=i._isShape,s=i.index;if(void 0===s&&(s=i._index),r.hasTransform(i,"groupby")){var l=M[s];if(!l){var c=r.getTransformIndices(i,"groupby"),u=c[c.length-1];l=o.keyedContainer(i,"transforms["+u+"].styles","target","value.visible"),M[s]=l}var d=l.get(e._group);void 0===d&&(d=!0),!1!==d&&l.set(e._group,t),S[s]=Q(s,!1!==i.visible)}else{var h=!1!==i.visible&&t;a?(n=h,C[s].visible=n,E=!0):Q(s,h)}}}}},"./node_modules/plotly.js/src/components/legend/helpers.js":function(e,t,n){"use strict";t.isGrouped=function(e){return-1!==(e.traceorder||"").indexOf("grouped")},t.isVertical=function(e){return"h"!==e.orientation},t.isReversed=function(e){return-1!==(e.traceorder||"").indexOf("reversed")}},"./node_modules/plotly.js/src/components/legend/index.js":function(e,t,n){"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:n("./node_modules/plotly.js/src/components/legend/attributes.js"),supplyLayoutDefaults:n("./node_modules/plotly.js/src/components/legend/defaults.js"),draw:n("./node_modules/plotly.js/src/components/legend/draw.js"),style:n("./node_modules/plotly.js/src/components/legend/style.js")}},"./node_modules/plotly.js/src/components/legend/style.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/lib/index.js"),a=i.strTranslate,s=n("./node_modules/plotly.js/src/components/drawing/index.js"),l=n("./node_modules/plotly.js/src/components/color/index.js"),c=n("./node_modules/plotly.js/src/components/colorscale/helpers.js").extractOpts,u=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js"),d=n("./node_modules/plotly.js/src/traces/pie/style_one.js"),f=n("./node_modules/plotly.js/src/traces/pie/helpers.js").castOption,h=n("./node_modules/plotly.js/src/components/legend/constants.js");function p(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}function m(e){var t=e[0].trace,n=t.contours,r=u.hasLines(t),o=u.hasMarkers(t),i=t.visible&&t.fill&&"none"!==t.fill,a=!1,s=!1;if(n){var l=n.coloring;"lines"===l?a=!0:r="none"===l||"heatmap"===l||n.showlines,"constraint"===n.type?i="="!==n._operation:"fill"!==l&&"heatmap"!==l||(s=!0)}return{showMarker:o,showLine:r,showFill:i,showGradientLine:a,showGradientFill:s,anyLine:r||a,anyFill:i||s}}function g(e,t,n){return e&&i.isArrayOrTypedArray(e)?t:e>n?n:e}e.exports=function(e,t,n){var v=t._fullLayout;n||(n=v.legend);var y="constant"===n.itemsizing,b=n.itemwidth,x=(b+2*h.itemGap)/2,_=a(x,0),w=function(e,t,n,r){var o;if(e+1)o=e;else{if(!(t&&t.width>0))return 0;o=t.width}return y?r:Math.min(o,n)};function j(e,i,a){var u=e[0].trace,d=u.marker||{},f=d.line||{},h=d.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",p=a?u.visible&&u.type===a:o.traceIs(u,"bar"),m=r.select(i).select("g.legendpoints").selectAll("path.legend"+a).data(p?[e]:[]);m.enter().append("path").classed("legend"+a,!0).attr("d",h).attr("transform",_),m.exit().remove(),m.each((function(e){var o=r.select(this),i=e[0],a=w(i.mlw,d.line,5,2);o.style("stroke-width",a+"px");var h=i.mcc;if(!n._inHover&&"mc"in i){var p=c(d),m=p.mid;void 0===m&&(m=(p.max+p.min)/2),h=s.tryColorscale(d,"")(m)}var v=h||i.mc||d.color,y=d.pattern,b=y&&s.getPatternAttr(y.shape,0,"");if(b){var x=s.getPatternAttr(y.bgcolor,0,null),_=s.getPatternAttr(y.fgcolor,0,null),j=y.fgopacity,k=g(y.size,8,10),T=g(y.solidity,.5,1),A="legend-"+u.uid;o.call(s.pattern,"legend",t,A,b,k,T,h,y.fillmode,x,_,j)}else o.call(l.fill,v);a&&l.stroke(o,i.mlc||f.color)}))}function k(e,n,a){var s=e[0],l=s.trace,c=a?l.visible&&l.type===a:o.traceIs(l,a),u=r.select(n).select("g.legendpoints").selectAll("path.legend"+a).data(c?[e]:[]);if(u.enter().append("path").classed("legend"+a,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),u.exit().remove(),u.size()){var h=l.marker||{},p=w(f(h.line.width,s.pts),h.line,5,2),m=i.minExtend(l,{marker:{line:{width:p}}},"pieLike"),g=i.minExtend(s,{trace:m},"pieLike");d(u,g,m,t)}}e.each((function(e){var t=r.select(this),o=i.ensureSingle(t,"g","layers");o.style("opacity",e[0].trace.opacity);var s=n.indentation,l=n.valign,c=e[0].lineHeight,u=e[0].height;if("middle"===l&&0===s||!c||!u)o.attr("transform",null);else{var d={top:1,bottom:-1}[l]*(.5*(c-u+3))||0,f=n.indentation;o.attr("transform",a(f,d))}o.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),o.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var h=o.selectAll("g.legendsymbols").data([e]);h.enter().append("g").classed("legendsymbols",!0),h.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var n,o=e[0].trace,a=[];if(o.visible)switch(o.type){case"histogram2d":case"heatmap":a=[["M-15,-2V4H15V-2Z"]],n=!0;break;case"choropleth":case"choroplethmapbox":a=[["M-6,-6V6H6V-6Z"]],n=!0;break;case"densitymapbox":a=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],n="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"]],n=!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"]],n=!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"]],n=!0;break;case"mesh3d":a=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!1;break;case"volume":a=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!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"]],n=!1}var u=r.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(a);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform",_).style("stroke-miterlimit",1),u.exit().remove(),u.each((function(e,a){var u,d=r.select(this),f=c(o),h=f.colorscale,m=f.reversescale;if(h){if(!n){var g=h.length;u=0===a?h[m?g-1:0][1]:1===a?h[m?0:g-1][1]:h[Math.floor((g-1)/2)][1]}}else{var v=o.vertexcolor||o.facecolor||o.color;u=i.isArrayOrTypedArray(v)?v[a]||v[0]:v}d.attr("d",e[0]),u?d.call(l.fill,u):d.call((function(e){if(e.size()){var r="legendfill-"+o.uid;s.gradient(e,t,r,p(m,"radial"===n),h,"fill")}}))}))})).each((function(e){var t=e[0].trace,n="waterfall"===t.type;if(e[0]._distinct&&n){var o=e[0].trace[e[0].dir].marker;return e[0].mc=o.color,e[0].mlw=o.line.width,e[0].mlc=o.line.color,j(e,this,"waterfall")}var i=[];t.visible&&n&&(i=e[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 a=r.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);a.enter().append("path").classed("legendwaterfall",!0).attr("transform",_).style("stroke-miterlimit",1),a.exit().remove(),a.each((function(e){var n=r.select(this),o=t[e[0]].marker,i=w(void 0,o.line,5,2);n.attr("d",e[1]).style("stroke-width",i+"px").call(l.fill,o.color),i&&n.call(l.stroke,o.line.color)}))})).each((function(e){j(e,this,"funnel")})).each((function(e){j(e,this)})).each((function(e){var n=e[0].trace,a=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(n.visible&&o.traceIs(n,"box-violin")?[e]:[]);a.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),a.exit().remove(),a.each((function(){var e=r.select(this);if("all"!==n.boxpoints&&"all"!==n.points||0!==l.opacity(n.fillcolor)||0!==l.opacity((n.line||{}).color)){var o=w(void 0,n.line,5,2);e.style("stroke-width",o+"px").call(l.fill,n.fillcolor),o&&l.stroke(e,n.line.color)}else{var c=i.minExtend(n,{marker:{size:y?12:i.constrain(n.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});a.call(s.pointStyle,c,t)}}))})).each((function(e){k(e,this,"funnelarea")})).each((function(e){k(e,this,"pie")})).each((function(e){var n,o,a=m(e),l=a.showFill,d=a.showLine,f=a.showGradientLine,h=a.showGradientFill,g=a.anyFill,v=a.anyLine,y=e[0],x=y.trace,_=c(x),j=_.colorscale,k=_.reversescale,T=u.hasMarkers(x)||!g?"M5,0":v?"M5,-2":"M5,-3",A=r.select(this),M=A.select(".legendfill").selectAll("path").data(l||h?[e]:[]);if(M.enter().append("path").classed("js-fill",!0),M.exit().remove(),M.attr("d",T+"h"+b+"v6h-"+b+"z").call((function(e){if(e.size())if(l)s.fillGroupStyle(e,t,!0);else{var n="legendfill-"+x.uid;s.gradient(e,t,n,p(k),j,"fill")}})),d||f){var S=w(void 0,x.line,10,5);o=i.minExtend(x,{line:{width:S}}),n=[i.minExtend(y,{trace:o})]}var C=A.select(".legendlines").selectAll("path").data(d||f?[n]:[]);C.enter().append("path").classed("js-line",!0),C.exit().remove(),C.attr("d",T+(f?"l"+b+",0.0001":"h"+b)).call(d?s.lineGroupStyle:function(e){if(e.size()){var n="legendline-"+x.uid;s.lineGroupStyle(e),s.gradient(e,t,n,p(k),j,"stroke")}})})).each((function(e){var n,o,a=m(e),l=a.anyFill,c=a.anyLine,d=a.showLine,f=a.showMarker,h=e[0],p=h.trace,g=!f&&!c&&!l&&u.hasText(p);function v(e,t,n,r){var o=i.nestedProperty(p,e).get(),a=i.isArrayOrTypedArray(o)&&t?t(o):o;if(y&&a&&void 0!==r&&(a=r),n){if(a<n[0])return n[0];if(a>n[1])return n[1]}return a}function b(e){return h._distinct&&h.index&&e[h.index]?e[h.index]:e[0]}if(f||g||d){var x={},w={};if(f){x.mc=v("marker.color",b),x.mx=v("marker.symbol",b),x.mo=v("marker.opacity",i.mean,[.2,1]),x.mlc=v("marker.line.color",b),x.mlw=v("marker.line.width",i.mean,[0,5],2),w.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var j=v("marker.size",i.mean,[2,16],12);x.ms=j,w.marker.size=j}d&&(w.line={width:v("line.width",b,[0,10],5)}),g&&(x.tx="Aa",x.tp=v("textposition",b),x.ts=10,x.tc=v("textfont.color",b),x.tf=v("textfont.family",b),x.tw=v("textfont.weight",b),x.ty=v("textfont.style",b),x.tv=v("textfont.variant",b),x.tC=v("textfont.textcase",b),x.tE=v("textfont.lineposition",b),x.tS=v("textfont.shadow",b)),n=[i.minExtend(h,x)],(o=i.minExtend(p,w)).selectedpoints=null,o.texttemplate=null}var k=r.select(this).select("g.legendpoints"),T=k.selectAll("path.scatterpts").data(f?n:[]);T.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",_),T.exit().remove(),T.call(s.pointStyle,o,t),f&&(n[0].mrc=3);var A=k.selectAll("g.pointtext").data(g?n:[]);A.enter().append("g").classed("pointtext",!0).append("text").attr("transform",_),A.exit().remove(),A.selectAll("text").call(s.textPointStyle,o,t)})).each((function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);n.enter().append("path").classed("legendcandle",!0).attr("d",(function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform",_).style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var o=r.select(this),i=t[n?"increasing":"decreasing"],a=w(void 0,i.line,5,2);o.style("stroke-width",a+"px").call(l.fill,i.fillcolor),a&&l.stroke(o,i.line.color)}))})).each((function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);n.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform",_).style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var o=r.select(this),i=t[n?"increasing":"decreasing"],a=w(void 0,i.line,5,2);o.style("fill","none").call(s.dashLine,i.line.dash,a),a&&l.stroke(o,i.line.color)}))}))}},"./node_modules/plotly.js/src/components/modebar/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/modebar/constants.js");e.exports={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 *"+r.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 *"+r.foreButtons.join("*, *")+"*."].join(" ")}}},"./node_modules/plotly.js/src/components/modebar/buttons.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/plots/plots.js"),i=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),a=n("./node_modules/plotly.js/src/fonts/ploticon.js"),s=n("./node_modules/plotly.js/src/components/shapes/draw.js").eraseActiveShape,l=n("./node_modules/plotly.js/src/lib/index.js"),c=l._,u=e.exports={};function d(e,t){var n,o,a=t.currentTarget,s=a.getAttribute("data-attr"),l=a.getAttribute("data-val")||!0,c=e._fullLayout,u={},d=i.list(e,null,!0),f=c._cartesianSpikesEnabled;if("zoom"===s){var h,p="in"===l?.5:2,m=(1+p)/2,g=(1-p)/2;for(o=0;o<d.length;o++)if(!(n=d[o]).fixedrange)if(h=n._name,"auto"===l)u[h+".autorange"]=!0;else if("reset"===l)void 0===n._rangeInitial0&&void 0===n._rangeInitial1?u[h+".autorange"]=!0:void 0===n._rangeInitial0?(u[h+".autorange"]=n._autorangeInitial,u[h+".range"]=[null,n._rangeInitial1]):void 0===n._rangeInitial1?(u[h+".range"]=[n._rangeInitial0,null],u[h+".autorange"]=n._autorangeInitial):u[h+".range"]=[n._rangeInitial0,n._rangeInitial1],void 0!==n._showSpikeInitial&&(u[h+".showspikes"]=n._showSpikeInitial,"on"!==f||n._showSpikeInitial||(f="off"));else{var v=[n.r2l(n.range[0]),n.r2l(n.range[1])],y=[m*v[0]+g*v[1],m*v[1]+g*v[0]];u[h+".range[0]"]=n.l2r(y[0]),u[h+".range[1]"]=n.l2r(y[1])}}else"hovermode"!==s||"x"!==l&&"y"!==l||(l=c._isHoriz?"y":"x",a.setAttribute("data-val",l)),u[s]=l;c._cartesianSpikesEnabled=f,r.call("_guiRelayout",e,u)}function f(e,t){for(var n=t.currentTarget,o=n.getAttribute("data-attr"),i=n.getAttribute("data-val")||!0,a=e._fullLayout._subplots.gl3d||[],s={},l=o.split("."),c=0;c<a.length;c++)s[a[c]+"."+l[1]]=i;var u="pan"===i?i:"zoom";s.dragmode=u,r.call("_guiRelayout",e,s)}function h(e,t){for(var n=t.currentTarget.getAttribute("data-attr"),o="resetLastSave"===n,i="resetDefault"===n,a=e._fullLayout,s=a._subplots.gl3d||[],l={},c=0;c<s.length;c++){var u,d=s[c],f=d+".camera",h=d+".aspectratio",p=d+".aspectmode",m=a[d]._scene;o?(l[f+".up"]=m.viewInitial.up,l[f+".eye"]=m.viewInitial.eye,l[f+".center"]=m.viewInitial.center,u=!0):i&&(l[f+".up"]=null,l[f+".eye"]=null,l[f+".center"]=null,u=!0),u&&(l[h+".x"]=m.viewInitial.aspectratio.x,l[h+".y"]=m.viewInitial.aspectratio.y,l[h+".z"]=m.viewInitial.aspectratio.z,l[p]=m.viewInitial.aspectmode)}r.call("_guiRelayout",e,l)}function p(e,t){var n=t.currentTarget,r=n._previousVal,o=e._fullLayout,i=o._subplots.gl3d||[],a=["xaxis","yaxis","zaxis"],s={},l={};if(r)l=r,n._previousVal=null;else{for(var c=0;c<i.length;c++){var u=i[c],d=o[u],f=u+".hovermode";s[f]=d.hovermode,l[f]=!1;for(var h=0;h<3;h++){var p=a[h],m=u+"."+p+".showspikes";l[m]=!1,s[m]=d[p].showspikes}}n._previousVal=s}return l}function m(e,t){for(var n=t.currentTarget,o=n.getAttribute("data-attr"),i=n.getAttribute("data-val")||!0,a=e._fullLayout,s=a._subplots.geo||[],l=0;l<s.length;l++){var c=s[l],u=a[c];if("zoom"===o){var d=u.projection.scale,f="in"===i?2*d:.5*d;r.call("_guiRelayout",e,c+".projection.scale",f)}}"reset"===o&&b(e,"geo")}function g(e){var t=e._fullLayout;return!t.hovermode&&(t._has("cartesian")?t._isHoriz?"y":"x":"closest")}function v(e){var t=g(e);r.call("_guiRelayout",e,"hovermode",t)}function y(e,t){for(var n=t.currentTarget.getAttribute("data-val"),o=e._fullLayout,i=o._subplots.mapbox||[],a={},s=0;s<i.length;s++){var l=i[s],c=o[l].zoom,u="in"===n?1.05*c:c/1.05;a[l+".zoom"]=u}r.call("_guiRelayout",e,a)}function b(e,t){for(var n=e._fullLayout,o=n._subplots[t]||[],i={},a=0;a<o.length;a++)for(var s=o[a],l=n[s]._subplot.viewInitial,c=Object.keys(l),u=0;u<c.length;u++){var d=c[u];i[s+"."+d]=l[d]}r.call("_guiRelayout",e,i)}u.toImage={name:"toImage",title:function(e){var t=(e._context.toImageButtonOptions||{}).format||"png";return c(e,"png"===t?"Download plot as a png":"Download plot")},icon:a.camera,click:function(e){var t=e._context.toImageButtonOptions,n={format:t.format||"png"};l.notifier(c(e,"Taking snapshot - this may take a few seconds"),"long"),"svg"!==n.format&&l.isIE()&&(l.notifier(c(e,"IE only supports svg. Changing format to svg."),"long"),n.format="svg"),["filename","width","height","scale"].forEach((function(e){e in t&&(n[e]=t[e])})),r.call("downloadImage",e,n).then((function(t){l.notifier(c(e,"Snapshot succeeded")+" - "+t,"long")})).catch((function(){l.notifier(c(e,"Sorry, there was a problem downloading your snapshot!"),"long")}))}},u.sendDataToCloud={name:"sendDataToCloud",title:function(e){return c(e,"Edit in Chart Studio")},icon:a.disk,click:function(e){o.sendDataToCloud(e)}},u.editInChartStudio={name:"editInChartStudio",title:function(e){return c(e,"Edit in Chart Studio")},icon:a.pencil,click:function(e){o.sendDataToCloud(e)}},u.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return c(e,"Zoom")},attr:"dragmode",val:"zoom",icon:a.zoombox,click:d},u.pan2d={name:"pan2d",_cat:"pan",title:function(e){return c(e,"Pan")},attr:"dragmode",val:"pan",icon:a.pan,click:d},u.select2d={name:"select2d",_cat:"select",title:function(e){return c(e,"Box Select")},attr:"dragmode",val:"select",icon:a.selectbox,click:d},u.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return c(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:a.lasso,click:d},u.drawclosedpath={name:"drawclosedpath",title:function(e){return c(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:a.drawclosedpath,click:d},u.drawopenpath={name:"drawopenpath",title:function(e){return c(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:a.drawopenpath,click:d},u.drawline={name:"drawline",title:function(e){return c(e,"Draw line")},attr:"dragmode",val:"drawline",icon:a.drawline,click:d},u.drawrect={name:"drawrect",title:function(e){return c(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:a.drawrect,click:d},u.drawcircle={name:"drawcircle",title:function(e){return c(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:a.drawcircle,click:d},u.eraseshape={name:"eraseshape",title:function(e){return c(e,"Erase active shape")},icon:a.eraseshape,click:s},u.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:a.zoom_plus,click:d},u.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:a.zoom_minus,click:d},u.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return c(e,"Autoscale")},attr:"zoom",val:"auto",icon:a.autoscale,click:d},u.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return c(e,"Reset axes")},attr:"zoom",val:"reset",icon:a.home,click:d},u.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return c(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:a.tooltip_basic,gravity:"ne",click:d},u.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return c(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:a.tooltip_compare,gravity:"ne",click:d},u.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return c(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:a.zoombox,click:f},u.pan3d={name:"pan3d",_cat:"pan",title:function(e){return c(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:a.pan,click:f},u.orbitRotation={name:"orbitRotation",title:function(e){return c(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:a["3d_rotate"],click:f},u.tableRotation={name:"tableRotation",title:function(e){return c(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:a["z-axis"],click:f},u.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return c(e,"Reset camera to default")},attr:"resetDefault",icon:a.home,click:h},u.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return c(e,"Reset camera to last save")},attr:"resetLastSave",icon:a.movie,click:h},u.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:a.tooltip_basic,gravity:"ne",click:function(e,t){var n=p(e,t);r.call("_guiRelayout",e,n)}},u.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:a.zoom_plus,click:m},u.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:a.zoom_minus,click:m},u.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return c(e,"Reset")},attr:"reset",val:null,icon:a.autoscale,click:m},u.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:a.tooltip_basic,gravity:"ne",click:v},u.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:a.tooltip_basic,gravity:"ne",click:v},u.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:a.tooltip_basic,gravity:"ne",click:v},u.resetViewSankey={name:"resetSankeyGroup",title:function(e){return c(e,"Reset view")},icon:a.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},n=0;n<e._fullData.length;n++){var o=e._fullData[n]._viewInitial;t["node.groups"].push(o.node.groups.slice()),t["node.x"].push(o.node.x.slice()),t["node.y"].push(o.node.y.slice())}r.call("restyle",e,t)}},u.toggleHover={name:"toggleHover",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:a.tooltip_basic,gravity:"ne",click:function(e,t){var n=p(e,t);n.hovermode=g(e),r.call("_guiRelayout",e,n)}},u.resetViews={name:"resetViews",title:function(e){return c(e,"Reset views")},icon:a.home,click:function(e,t){var n=t.currentTarget;n.setAttribute("data-attr","zoom"),n.setAttribute("data-val","reset"),d(e,t),n.setAttribute("data-attr","resetLastSave"),h(e,t),b(e,"geo"),b(e,"mapbox")}},u.toggleSpikelines={name:"toggleSpikelines",title:function(e){return c(e,"Toggle Spike Lines")},icon:a.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout,n=t._cartesianSpikesEnabled;t._cartesianSpikesEnabled="on"===n?"off":"on",r.call("_guiRelayout",e,function(e){for(var t="on"===e._fullLayout._cartesianSpikesEnabled,n=i.list(e,null,!0),r={},o=0;o<n.length;o++){var a=n[o];r[a._name+".showspikes"]=!!t||a._showSpikeInitial}return r}(e))}},u.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(e){return c(e,"Reset view")},attr:"reset",icon:a.home,click:function(e){b(e,"mapbox")}},u.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:a.zoom_plus,click:y},u.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:a.zoom_minus,click:y}},"./node_modules/plotly.js/src/components/modebar/constants.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/modebar/buttons.js"),o=Object.keys(r),i=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],a=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(i),s=[];o.forEach((function(e){!function(e){if(-1===a.indexOf(e._cat||e.name)){var t=e.name,n=(e._cat||e.name).toLowerCase();-1===s.indexOf(t)&&s.push(t),-1===s.indexOf(n)&&s.push(n)}}(r[e])})),s.sort(),e.exports={DRAW_MODES:i,backButtons:a,foreButtons:s}},"./node_modules/plotly.js/src/components/modebar/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/color/index.js"),i=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),a=n("./node_modules/plotly.js/src/components/modebar/attributes.js");e.exports=function(e,t){var n=e.modebar||{},s=i.newContainer(t,"modebar");function l(e,t){return r.coerce(n,s,a,e,t)}l("orientation"),l("bgcolor",o.addOpacity(t.paper_bgcolor,.5));var c=o.contrast(o.rgb(t.modebar.bgcolor));l("color",o.addOpacity(c,.3)),l("activecolor",o.addOpacity(c,.7)),l("uirevision",t.uirevision),l("add"),l("remove")}},"./node_modules/plotly.js/src/components/modebar/index.js":function(e,t,n){"use strict";e.exports={moduleType:"component",name:"modebar",layoutAttributes:n("./node_modules/plotly.js/src/components/modebar/attributes.js"),supplyLayoutDefaults:n("./node_modules/plotly.js/src/components/modebar/defaults.js"),manage:n("./node_modules/plotly.js/src/components/modebar/manage.js")}},"./node_modules/plotly.js/src/components/modebar/manage.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),o=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js"),i=n("./node_modules/plotly.js/src/registry.js"),a=n("./node_modules/plotly.js/src/components/fx/helpers.js").isUnifiedHover,s=n("./node_modules/plotly.js/src/components/modebar/modebar.js"),l=n("./node_modules/plotly.js/src/components/modebar/buttons.js"),c=n("./node_modules/plotly.js/src/components/modebar/constants.js").DRAW_MODES,u=n("./node_modules/plotly.js/src/lib/index.js").extendDeep;e.exports=function(e){var t=e._fullLayout,n=e._context,d=t._modeBar;if(n.displayModeBar||n.watermark){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 f,h=n.modeBarButtons;f=Array.isArray(h)&&h.length?function(e){for(var t=u([],e),n=0;n<t.length;n++)for(var r=t[n],o=0;o<r.length;o++){var i=r[o];if("string"==typeof i){if(void 0===l[i])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));t[n][o]=l[i]}}return t}(h):!n.displayModeBar&&n.watermark?[]:function(e){var t=e._fullLayout,n=e._fullData,s=e._context;function u(e,t){if("string"==typeof t){if(t.toLowerCase()===e.toLowerCase())return!0}else{var n=t.name,r=t._cat||t.name;if(n===e||r===e.toLowerCase())return!0}return!1}var d=t.modebar.add;"string"==typeof d&&(d=[d]);var f=t.modebar.remove;"string"==typeof f&&(f=[f]);var h=s.modeBarButtonsToAdd.concat(d.filter((function(e){for(var t=0;t<s.modeBarButtonsToRemove.length;t++)if(u(e,s.modeBarButtonsToRemove[t]))return!1;return!0}))),p=s.modeBarButtonsToRemove.concat(f.filter((function(e){for(var t=0;t<s.modeBarButtonsToAdd.length;t++)if(u(e,s.modeBarButtonsToAdd[t]))return!1;return!0}))),m=t._has("cartesian"),g=t._has("gl3d"),v=t._has("geo"),y=t._has("pie"),b=t._has("funnelarea"),x=t._has("gl2d"),_=t._has("ternary"),w=t._has("mapbox"),j=t._has("polar"),k=t._has("smith"),T=t._has("sankey"),A=function(e){for(var t=r.list({_fullLayout:e},null,!0),n=0;n<t.length;n++)if(!t[n].fixedrange)return!1;return!0}(t),M=a(t.hovermode),S=[];function C(e){if(e.length){for(var t=[],n=0;n<e.length;n++){for(var r=e[n],o=l[r],i=o.name.toLowerCase(),a=(o._cat||o.name).toLowerCase(),s=!1,c=0;c<p.length;c++){var u=p[c].toLowerCase();if(u===i||u===a){s=!0;break}}s||t.push(l[r])}S.push(t)}}var E=["toImage"];s.showEditInChartStudio?E.push("editInChartStudio"):s.showSendToCloud&&E.push("sendDataToCloud");C(E);var L=[],O=[],R=[],I=[];(m||x||y||b||_)+v+g+w+j+k>1?(O=["toggleHover"],R=["resetViews"]):v?(L=["zoomInGeo","zoomOutGeo"],O=["hoverClosestGeo"],R=["resetGeo"]):g?(O=["hoverClosest3d"],R=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(L=["zoomInMapbox","zoomOutMapbox"],O=["toggleHover"],R=["resetViewMapbox"]):x?O=["hoverClosestGl2d"]:y?O=["hoverClosestPie"]:T?(O=["hoverClosestCartesian","hoverCompareCartesian"],R=["resetViewSankey"]):O=["toggleHover"];m&&O.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian");(function(e){for(var t=0;t<e.length;t++)if(!i.traceIs(e[t],"noHover"))return!1;return!0}(n)||M)&&(O=[]);!m&&!x||A||(L=["zoomIn2d","zoomOut2d","autoScale2d"],"resetViews"!==R[0]&&(R=["resetScale2d"]));g?I=["zoom3d","pan3d","orbitRotation","tableRotation"]:(m||x)&&!A||_?I=["zoom2d","pan2d"]:w||v?I=["pan2d"]:j&&(I=["zoom2d"]);(function(e){for(var t=!1,n=0;n<e.length&&!t;n++){var r=e[n];r._module&&r._module.selectPoints&&(i.traceIs(r,"scatter-like")?(o.hasMarkers(r)||o.hasText(r))&&(t=!0):i.traceIs(r,"box-violin")&&"all"!==r.boxpoints&&"all"!==r.points||(t=!0))}return t})(n)&&I.push("select2d","lasso2d");var P=[],D=function(e){-1===P.indexOf(e)&&-1!==O.indexOf(e)&&P.push(e)};if(Array.isArray(h)){for(var z=[],N=0;N<h.length;N++){var F=h[N];"string"==typeof F?(F=F.toLowerCase(),-1!==c.indexOf(F)?(t._has("mapbox")||t._has("cartesian"))&&I.push(F):"togglespikelines"===F?D("toggleSpikelines"):"togglehover"===F?D("toggleHover"):"hovercompare"===F?D("hoverCompareCartesian"):"hoverclosest"===F?(D("hoverClosestCartesian"),D("hoverClosestGeo"),D("hoverClosest3d"),D("hoverClosestGl2d"),D("hoverClosestPie")):"v1hovermode"===F&&(D("hoverClosestCartesian"),D("hoverCompareCartesian"),D("hoverClosestGeo"),D("hoverClosest3d"),D("hoverClosestGl2d"),D("hoverClosestPie"))):z.push(F)}h=z}return C(I),C(L.concat(R)),C(P),function(e,t){if(t.length)if(Array.isArray(t[0]))for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e}(S,h)}(e),d?d.update(e,f):t._modeBar=s(e,f)}else d&&(d.destroy(),delete t._modeBar)}},"./node_modules/plotly.js/src/components/modebar/modebar.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/fast-isnumeric/index.js"),i=n("./node_modules/plotly.js/src/lib/index.js"),a=n("./node_modules/plotly.js/src/fonts/ploticon.js"),s=n("./node_modules/plotly.js/src/version.js").version,l=new DOMParser;function c(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var u=c.prototype;u.update=function(e,t){this.graphInfo=e;var n=this.graphInfo._context,r=this.graphInfo._fullLayout,o="modebar-"+r._uid;this.element.setAttribute("id",o),this._uid=o,this.element.className="modebar","hover"===n.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===r.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var a=r.modebar,s="hover"===n.displayModeBar?".js-plotly-plot .plotly:hover ":"";i.deleteRelatedStyleRule(o),i.addRelatedStyleRule(o,s+"#"+o+" .modebar-group","background-color: "+a.bgcolor),i.addRelatedStyleRule(o,"#"+o+" .modebar-btn .icon path","fill: "+a.color),i.addRelatedStyleRule(o,"#"+o+" .modebar-btn:hover .icon path","fill: "+a.activecolor),i.addRelatedStyleRule(o,"#"+o+" .modebar-btn.active .icon path","fill: "+a.activecolor);var l=!this.hasButtons(t),c=this.hasLogo!==n.displaylogo,u=this.locale!==n.locale;if(this.locale=n.locale,(l||c||u)&&(this.removeAllButtons(),this.updateButtons(t),n.watermark||n.displaylogo)){var d=this.getLogo();n.watermark&&(d.className=d.className+" watermark"),"v"===r.modebar.orientation?this.element.insertBefore(d,this.element.childNodes[0]):this.element.appendChild(d),this.hasLogo=!0}this.updateActiveButton()},u.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(e){var n=t.createGroup();e.forEach((function(e){var r=e.name;if(!r)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(r))throw new Error("button name '"+r+"' is taken");t.buttonsNames.push(r);var o=t.createButton(e);t.buttonElements.push(o),n.appendChild(o)})),t.element.appendChild(n)}))},u.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},u.createButton=function(e){var t=this,n=document.createElement("a");n.setAttribute("rel","tooltip"),n.className="modebar-btn";var o=e.title;void 0===o?o=e.name:"function"==typeof o&&(o=o(this.graphInfo)),(o||0===o)&&n.setAttribute("data-title",o),void 0!==e.attr&&n.setAttribute("data-attr",e.attr);var i=e.val;if(void 0!==i&&("function"==typeof i&&(i=i(this.graphInfo)),n.setAttribute("data-val",i)),"function"!=typeof e.click)throw new Error("must provide button 'click' function in button config");n.addEventListener("click",(function(n){e.click(t.graphInfo,n),t.updateActiveButton(n.currentTarget)})),n.setAttribute("data-toggle",e.toggle||!1),e.toggle&&r.select(n).classed("active",!0);var s=e.icon;return"function"==typeof s?n.appendChild(s()):n.appendChild(this.createIcon(s||a.question)),n.setAttribute("data-gravity",e.gravity||"n"),n},u.createIcon=function(e){var t,n=o(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(r,"svg")).setAttribute("viewBox",[0,0,e.width,n].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):void 0!==e.ascent&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),t.appendChild(i)}e.svg&&(t=l.parseFromString(e.svg,"application/xml").childNodes[0]);return t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},u.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,n=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach((function(e){var o=e.getAttribute("data-val")||!0,a=e.getAttribute("data-attr"),s="true"===e.getAttribute("data-toggle"),l=r.select(e);if(s)a===n&&l.classed("active",!l.classed("active"));else{var c=null===a?a:i.nestedProperty(t,a).get();l.classed("active",c===o)}}))},u.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n){if(e[n].length!==t[n].length)return!1;for(var r=0;r<e[n].length;r++)if(e[n][r].name!==t[n][r].name)return!1}return!0},u.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plotly.com/",t.target="_blank",t.setAttribute("data-title",i._(this.graphInfo,"Produced with Plotly.js")+" (v"+s+")"),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(a.newplotlylogo)),e.appendChild(t),e},u.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},u.destroy=function(){i.removeElement(this.container.querySelector(".modebar")),i.deleteRelatedStyleRule(this._uid)},e.exports=function(e,t){var n=e._fullLayout,o=new c({graphInfo:e,container:n._modebardiv.node(),buttons:t});return n._privateplot&&r.select(o.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),o}},"./node_modules/plotly.js/src/components/rangeselector/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/font_attributes.js"),o=n("./node_modules/plotly.js/src/components/color/attributes.js"),i=(0,n("./node_modules/plotly.js/src/plot_api/plot_template.js").templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot",description:"Determines whether or not this button is visible."},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",min:0,dflt:1,editType:"plot",description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",editType:"plot",description:"Sets the text label to appear on the button."},editType:"plot",description:["Sets the specifications for each buttons.","By default, a range selector comes with no buttons."].join(" ")});e.exports={visible:{valType:"boolean",editType:"plot",description:["Determines whether or not this range selector is visible.","Note that range selectors are only available for x axes of","`type` set to or auto-typed to *date*."].join(" ")},buttons:i,x:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot",description:["Sets the range selector's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot",description:["Sets the range selector's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},font:r({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:o.lightLine,editType:"plot",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",editType:"plot",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:o.defaultLine,editType:"plot",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot",description:"Sets the width (in px) of the border enclosing the range selector."},editType:"plot"}},"./node_modules/plotly.js/src/components/rangeselector/constants.js":function(e,t,n){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},"./node_modules/plotly.js/src/components/rangeselector/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/color/index.js"),i=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),a=n("./node_modules/plotly.js/src/plots/array_container_defaults.js"),s=n("./node_modules/plotly.js/src/components/rangeselector/attributes.js"),l=n("./node_modules/plotly.js/src/components/rangeselector/constants.js");function c(e,t,n,o){var i=o.calendar;function a(n,o){return r.coerce(e,t,s.buttons,n,o)}if(a("visible")){var l=a("step");"all"!==l&&(!i||"gregorian"===i||"month"!==l&&"year"!==l?a("stepmode"):t.stepmode="backward",a("count")),a("label")}}e.exports=function(e,t,n,u,d){var f=e.rangeselector||{},h=i.newContainer(t,"rangeselector");function p(e,t){return r.coerce(f,h,s,e,t)}if(p("visible",a(f,h,{name:"buttons",handleItemDefaults:c,calendar:d}).length>0)){var m=function(e,t,n){for(var r=n.filter((function(n){return t[n].anchor===e._id})),o=0,i=0;i<r.length;i++){var a=t[r[i]].domain;a&&(o=Math.max(a[1],o))}return[e.domain[0],o+l.yPad]}(t,n,u);p("x",m[0]),p("y",m[1]),r.noneOrAll(e,t,["x","y"]),p("xanchor"),p("yanchor"),r.coerceFont(p,"font",n.font);var g=p("bgcolor");p("activecolor",o.contrast(g,l.lightAmount,l.darkAmount)),p("bordercolor"),p("borderwidth")}}},"./node_modules/plotly.js/src/components/rangeselector/draw.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/plots/plots.js"),a=n("./node_modules/plotly.js/src/components/color/index.js"),s=n("./node_modules/plotly.js/src/components/drawing/index.js"),l=n("./node_modules/plotly.js/src/lib/index.js"),c=l.strTranslate,u=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),d=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),f=n("./node_modules/plotly.js/src/constants/alignment.js"),h=f.LINE_SPACING,p=f.FROM_TL,m=f.FROM_BR,g=n("./node_modules/plotly.js/src/components/rangeselector/constants.js"),v=n("./node_modules/plotly.js/src/components/rangeselector/get_update_object.js");function y(e){return e._id}function b(e,t,n){var r=l.ensureSingle(e,"rect","selector-rect",(function(e){e.attr("shape-rendering","crispEdges")}));r.attr({rx:g.rx,ry:g.ry}),r.call(a.stroke,t.bordercolor).call(a.fill,function(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}(t,n)).style("stroke-width",t.borderwidth+"px")}function x(e,t,n,r){l.ensureSingle(e,"text","selector-text",(function(e){e.attr("text-anchor","middle")})).call(s.font,t.font).text(function(e,t){if(e.label)return t?l.templateString(e.label,t):e.label;return"all"===e.step?"all":e.count+e.step.charAt(0)}(n,r._fullLayout._meta)).call((function(e){u.convertToTspans(e,r)}))}e.exports=function(e){var t=e._fullLayout._infolayer.selectAll(".rangeselector").data(function(e){for(var t=d.list(e,"x",!0),n=[],r=0;r<t.length;r++){var o=t[r];o.rangeselector&&o.rangeselector.visible&&n.push(o)}return n}(e),y);t.enter().append("g").classed("rangeselector",!0),t.exit().remove(),t.style({cursor:"pointer","pointer-events":"all"}),t.each((function(t){var n=r.select(this),a=t,d=a.rangeselector,f=n.selectAll("g.button").data(l.filterVisible(d.buttons));f.enter().append("g").classed("button",!0),f.exit().remove(),f.each((function(t){var n=r.select(this),i=v(a,t);t._isActive=function(e,t,n){if("all"===t.step)return!0===e.autorange;var r=Object.keys(n);return e.range[0]===n[r[0]]&&e.range[1]===n[r[1]]}(a,t,i),n.call(b,d,t),n.call(x,d,t,e),n.on("click",(function(){e._dragged||o.call("_guiRelayout",e,i)})),n.on("mouseover",(function(){t._isHovered=!0,n.call(b,d,t)})),n.on("mouseout",(function(){t._isHovered=!1,n.call(b,d,t)}))})),function(e,t,n,o,a){var d=0,f=0,v=n.borderwidth;t.each((function(){var e=r.select(this).select(".selector-text"),t=n.font.size*h,o=Math.max(t*u.lineCount(e),16)+3;f=Math.max(f,o)})),t.each((function(){var e=r.select(this),t=e.select(".selector-rect"),o=e.select(".selector-text"),i=o.node()&&s.bBox(o.node()).width,a=n.font.size*h,l=u.lineCount(o),p=Math.max(i+10,g.minButtonWidth);e.attr("transform",c(v+d,v)),t.attr({x:0,y:0,width:p,height:f}),u.positionText(o,p/2,f/2-(l-1)*a/2+3),d+=p+5}));var y=e._fullLayout._size,b=y.l+y.w*n.x,x=y.t+y.h*(1-n.y),_="left";l.isRightAnchor(n)&&(b-=d,_="right");l.isCenterAnchor(n)&&(b-=d/2,_="center");var w="top";l.isBottomAnchor(n)&&(x-=f,w="bottom");l.isMiddleAnchor(n)&&(x-=f/2,w="middle");d=Math.ceil(d),f=Math.ceil(f),b=Math.round(b),x=Math.round(x),i.autoMargin(e,o+"-range-selector",{x:n.x,y:n.y,l:d*p[_],r:d*m[_],b:f*m[w],t:f*p[w]}),a.attr("transform",c(b,x))}(e,f,d,a._name,n)}))}},"./node_modules/plotly.js/src/components/rangeselector/get_update_object.js":function(e,t,n){"use strict";var r=n("./node_modules/d3-time/src/index.js"),o=n("./node_modules/plotly.js/src/lib/index.js").titleCase;e.exports=function(e,t){var n=e._name,i={};if("all"===t.step)i[n+".autorange"]=!0;else{var a=function(e,t){var n,i=e.range,a=new Date(e.r2l(i[1])),s=t.step,l=r["utc"+o(s)],c=t.count;switch(t.stepmode){case"backward":n=e.l2r(+l.offset(a,-c));break;case"todate":var u=l.offset(a,-c);n=e.l2r(+l.ceil(u))}var d=i[1];return[n,d]}(e,t);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i}},"./node_modules/plotly.js/src/components/rangeselector/index.js":function(e,t,n){"use strict";e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:n("./node_modules/plotly.js/src/components/rangeselector/attributes.js")}}},layoutAttributes:n("./node_modules/plotly.js/src/components/rangeselector/attributes.js"),handleDefaults:n("./node_modules/plotly.js/src/components/rangeselector/defaults.js"),draw:n("./node_modules/plotly.js/src/components/rangeselector/draw.js")}},"./node_modules/plotly.js/src/components/rangeslider/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/color/attributes.js");e.exports={bgcolor:{valType:"color",dflt:r.background,editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:r.defaultLine,editType:"plot",description:"Sets the border color of the range slider."},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot",description:"Sets the border width of the range slider."},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range slider range is","computed in relation to the input data.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1},description:["Sets the range of the range slider.","If not set, defaults to the full xaxis range.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot",description:["The height of the range slider as a fraction of the","total plot area height."].join(" ")},visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the range slider will be visible.","If visible, perpendicular axes will be set to `fixedrange`"].join(" ")},editType:"calc"}},"./node_modules/plotly.js/src/components/rangeslider/calc_autorange.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js").list,o=n("./node_modules/plotly.js/src/plots/cartesian/autorange.js").getAutoRange,i=n("./node_modules/plotly.js/src/components/rangeslider/constants.js");e.exports=function(e){for(var t=r(e,"x",!0),n=0;n<t.length;n++){var a=t[n],s=a[i.name];s&&s.visible&&s.autorange&&(s._input.autorange=!0,s._input.range=s.range=o(e,a))}}},"./node_modules/plotly.js/src/components/rangeslider/constants.js":function(e,t,n){"use strict";e.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}},"./node_modules/plotly.js/src/components/rangeslider/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),i=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),a=n("./node_modules/plotly.js/src/components/rangeslider/attributes.js"),s=n("./node_modules/plotly.js/src/components/rangeslider/oppaxis_attributes.js");e.exports=function(e,t,n){var l=e[n],c=t[n];if(l.rangeslider||t._requestRangeslider[c._id]){r.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,d,f=l.rangeslider,h=o.newContainer(c,"rangeslider");if(_("visible")){_("bgcolor",t.plot_bgcolor),_("bordercolor"),_("borderwidth"),_("thickness"),_("autorange",!c.isValidRange(f.range)),_("range");var p=t._subplots;if(p)for(var m=p.cartesian.filter((function(e){return e.substr(0,e.indexOf("y"))===i.name2id(n)})).map((function(e){return e.substr(e.indexOf("y"),e.length)})),g=r.simpleMap(m,i.id2name),v=0;v<g.length;v++){var y=g[v];u=f[y]||{},d=o.newContainer(h,y,"yaxis");var b,x=t[y];u.range&&x.isValidRange(u.range)&&(b="fixed"),"match"!==w("rangemode",b)&&w("range",x.range.slice())}h._input=f}}function _(e,t){return r.coerce(f,h,a,e,t)}function w(e,t){return r.coerce(u,d,s,e,t)}}},"./node_modules/plotly.js/src/components/rangeslider/draw.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/plots/plots.js"),a=n("./node_modules/plotly.js/src/lib/index.js"),s=a.strTranslate,l=n("./node_modules/plotly.js/src/components/drawing/index.js"),c=n("./node_modules/plotly.js/src/components/color/index.js"),u=n("./node_modules/plotly.js/src/components/titles/index.js"),d=n("./node_modules/plotly.js/src/plots/cartesian/index.js"),f=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),h=n("./node_modules/plotly.js/src/components/dragelement/index.js"),p=n("./node_modules/plotly.js/src/lib/setcursor.js"),m=n("./node_modules/plotly.js/src/components/rangeslider/constants.js");function g(e){return"number"==typeof e.clientX?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function v(e,t,n,r){var o=a.ensureSingle(e,"rect",m.bgClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),i=r.borderwidth%2==0?r.borderwidth:r.borderwidth-1,u=-r._offsetShift,d=l.crispRound(t,r.borderwidth);o.attr({width:r._width+i,height:r._height+i,transform:s(u,u),"stroke-width":d}).call(c.stroke,r.bordercolor).call(c.fill,r.bgcolor)}function y(e,t,n,r){var o=t._fullLayout;a.ensureSingleById(o._topdefs,"clipPath",r._clipId,(function(e){e.append("rect").attr({x:0,y:0})})).select("rect").attr({width:r._width,height:r._height})}function b(e,t,n,o){var s,c=t.calcdata,u=e.selectAll("g."+m.rangePlotClassName).data(n._subplotsWith,a.identity);u.enter().append("g").attr("class",(function(e){return m.rangePlotClassName+" "+e})).call(l.setClipUrl,o._clipId,t),u.order(),u.exit().remove(),u.each((function(e,a){var l=r.select(this),u=0===a,h=f.getFromId(t,e,"y"),p=h._name,m=o[p],g={data:[],layout:{xaxis:{type:n.type,domain:[0,1],range:o.range.slice(),calendar:n.calendar},width:o._width,height:o._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};n.rangebreaks&&(g.layout.xaxis.rangebreaks=n.rangebreaks),g.layout[p]={type:h.type,domain:[0,1],range:"match"!==m.rangemode?m.range.slice():h.range.slice(),calendar:h.calendar},h.rangebreaks&&(g.layout[p].rangebreaks=h.rangebreaks),i.supplyDefaults(g);var v=g._fullLayout.xaxis,y=g._fullLayout[p];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var b={id:e,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=b:(b.mainplot="xy",b.mainplotinfo=s),d.rangePlot(t,b,function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o[0].trace;i.xaxis+i.yaxis===t&&n.push(o)}return n}(c,e))}))}function x(e,t,n,r,o){(a.ensureSingle(e,"rect",m.maskMinClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})).attr("height",r._height).call(c.fill,m.maskColor),a.ensureSingle(e,"rect",m.maskMaxClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("height",r._height).call(c.fill,m.maskColor),"match"!==o.rangemode)&&(a.ensureSingle(e,"rect",m.maskMinOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",r._width).call(c.fill,m.maskOppAxisColor),a.ensureSingle(e,"rect",m.maskMaxOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",r._width).style("border-top",m.maskOppBorder).call(c.fill,m.maskOppAxisColor))}function _(e,t,n,r){t._context.staticPlot||a.ensureSingle(e,"rect",m.slideBoxClassName,(function(e){e.attr({y:0,cursor:m.slideBoxCursor,"shape-rendering":"crispEdges"})})).attr({height:r._height,fill:m.slideBoxFill})}function w(e,t,n,r){var o=a.ensureSingle(e,"g",m.grabberMinClassName),i=a.ensureSingle(e,"g",m.grabberMaxClassName),s={x:0,width:m.handleWidth,rx:m.handleRadius,fill:c.background,stroke:c.defaultLine,"stroke-width":m.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(r._height/4),height:Math.round(r._height/2)};a.ensureSingle(o,"rect",m.handleMinClassName,(function(e){e.attr(s)})).attr(l),a.ensureSingle(i,"rect",m.handleMaxClassName,(function(e){e.attr(s)})).attr(l);var u={width:m.grabAreaWidth,x:0,y:0,fill:m.grabAreaFill,cursor:t._context.staticPlot?void 0:m.grabAreaCursor};a.ensureSingle(o,"rect",m.grabAreaMinClassName,(function(e){e.attr(u)})).attr("height",r._height),a.ensureSingle(i,"rect",m.grabAreaMaxClassName,(function(e){e.attr(u)})).attr("height",r._height)}e.exports=function(e){for(var t=e._fullLayout,n=t._rangeSliderData,i=0;i<n.length;i++){var l=n[i][m.name];l._clipId=l._id+"-"+t._uid}var c=t._infolayer.selectAll("g."+m.containerClassName).data(n,(function(e){return e._name}));c.exit().each((function(e){var n=e[m.name];t._topdefs.select("#"+n._clipId).remove()})).remove(),0!==n.length&&(c.enter().append("g").classed(m.containerClassName,!0).attr("pointer-events","all"),c.each((function(n){var i=r.select(this),l=n[m.name],c=t[f.id2name(n.anchor)],d=l[f.id2name(n.anchor)];if(l.range){var j,k=a.simpleMap(l.range,n.r2l),T=a.simpleMap(n.range,n.r2l);j=T[0]<T[1]?[Math.min(k[0],T[0]),Math.max(k[1],T[1])]:[Math.max(k[0],T[0]),Math.min(k[1],T[1])],l.range=l._input.range=a.simpleMap(j,n.l2r)}n.cleanRange("rangeslider.range");var A=t._size,M=n.domain;l._width=A.w*(M[1]-M[0]);var S=Math.round(A.l+A.w*M[0]),C=Math.round(A.t+A.h*(1-n._counterDomainMin)+("bottom"===n.side?n._depth:0)+l._offsetShift+m.extraPad);i.attr("transform",s(S,C)),l._rl=a.simpleMap(l.range,n.r2l);var E=l._rl[0],L=l._rl[1],O=L-E;if(l.p2d=function(e){return e/l._width*O+E},l.d2p=function(e){return(e-E)/O*l._width},n.rangebreaks){var R=n.locateBreaks(E,L);if(R.length){var I,P,D=0;for(I=0;I<R.length;I++)D+=(P=R[I]).max-P.min;var z=l._width/(L-E-D),N=[-z*E];for(I=0;I<R.length;I++)P=R[I],N.push(N[N.length-1]-z*(P.max-P.min));for(l.d2p=function(e){for(var t=N[0],n=0;n<R.length;n++){var r=R[n];if(e>=r.max)t=N[n+1];else if(e<r.min)break}return t+z*e},I=0;I<R.length;I++)(P=R[I]).pmin=l.d2p(P.min),P.pmax=l.d2p(P.max);l.p2d=function(e){for(var t=N[0],n=0;n<R.length;n++){var r=R[n];if(e>=r.pmax)t=N[n+1];else if(e<r.pmin)break}return(e-t)/z}}}if("match"!==d.rangemode){var F=c.r2l(d.range[0]),B=c.r2l(d.range[1])-F;l.d2pOppAxis=function(e){return(e-F)/B*l._height}}i.call(v,e,n,l).call(y,e,n,l).call(b,e,n,l).call(x,e,n,l,d).call(_,e,n,l).call(w,e,n,l),function(e,t,n,i){if(t._context.staticPlot)return;var s=e.select("rect."+m.slideBoxClassName).node(),l=e.select("rect."+m.grabAreaMinClassName).node(),c=e.select("rect."+m.grabAreaMaxClassName).node();function u(){var u=r.event,d=u.target,f=g(u),m=f-e.node().getBoundingClientRect().left,v=i.d2p(n._rl[0]),y=i.d2p(n._rl[1]),b=h.coverSlip();function x(e){var u,h,x,_=+g(e)-f;switch(d){case s:if(x="ew-resize",v+_>n._length||y+_<0)return;u=v+_,h=y+_;break;case l:if(x="col-resize",v+_>n._length)return;u=v+_,h=y;break;case c:if(x="col-resize",y+_<0)return;u=v,h=y+_;break;default:x="ew-resize",u=m,h=m+_}if(h<u){var w=h;h=u,u=w}i._pixelMin=u,i._pixelMax=h,p(r.select(b),x),function(e,t,n,r){function i(e){return n.l2r(a.constrain(e,r._rl[0],r._rl[1]))}var s=i(r.p2d(r._pixelMin)),l=i(r.p2d(r._pixelMax));window.requestAnimationFrame((function(){o.call("_guiRelayout",t,n._name+".range",[s,l])}))}(0,t,n,i)}function _(){b.removeEventListener("mousemove",x),b.removeEventListener("mouseup",_),this.removeEventListener("touchmove",x),this.removeEventListener("touchend",_),a.removeElement(b)}this.addEventListener("touchmove",x),this.addEventListener("touchend",_),b.addEventListener("mousemove",x),b.addEventListener("mouseup",_)}e.on("mousedown",u),e.on("touchstart",u)}(i,e,n,l),function(e,t,n,r,o,i){var l=m.handleWidth/2;function c(e){return a.constrain(e,0,r._width)}function u(e){return a.constrain(e,0,r._height)}function d(e){return a.constrain(e,-l,r._width+l)}var f=c(r.d2p(n._rl[0])),h=c(r.d2p(n._rl[1]));if(e.select("rect."+m.slideBoxClassName).attr("x",f).attr("width",h-f),e.select("rect."+m.maskMinClassName).attr("width",f),e.select("rect."+m.maskMaxClassName).attr("x",h).attr("width",r._width-h),"match"!==i.rangemode){var p=r._height-u(r.d2pOppAxis(o._rl[1])),g=r._height-u(r.d2pOppAxis(o._rl[0]));e.select("rect."+m.maskMinOppAxisClassName).attr("x",f).attr("height",p).attr("width",h-f),e.select("rect."+m.maskMaxOppAxisClassName).attr("x",f).attr("y",g).attr("height",r._height-g).attr("width",h-f),e.select("rect."+m.slideBoxClassName).attr("y",p).attr("height",g-p)}var v=Math.round(d(f-l))-.5,y=Math.round(d(h-l))+.5;e.select("g."+m.grabberMinClassName).attr("transform",s(v,.5)),e.select("g."+m.grabberMaxClassName).attr("transform",s(y,.5))}(i,0,n,l,c,d),"bottom"===n.side&&u.draw(e,n._id+"title",{propContainer:n,propName:n._name+".title",placeholder:t._dfltTitle.x,attributes:{x:n._offset+n._length/2,y:C+l._height+l._offsetShift+10+1.5*n.title.font.size,"text-anchor":"middle"}})})))}},"./node_modules/plotly.js/src/components/rangeslider/helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),o=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),i=n("./node_modules/plotly.js/src/components/rangeslider/constants.js"),a=n("./node_modules/plotly.js/src/constants/alignment.js").LINE_SPACING,s=i.name;function l(e){var t=e&&e[s];return t&&t.visible}t.isVisible=l,t.makeData=function(e){var t=r.list({_fullLayout:e},"x",!0),n=e.margin,o=[];if(!e._has("gl2d"))for(var i=0;i<t.length;i++){var a=t[i];if(l(a)){o.push(a);var c=a[s];c._id=s+a._id,c._height=(e.height-n.b-n.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}e._rangeSliderData=o},t.autoMarginOpts=function(e,t){var n=e._fullLayout,r=t[s],l=t._id.charAt(0),c=0,u=0;"bottom"===t.side&&(c=t._depth,t.title.text!==n._dfltTitle[l]&&(u=1.5*t.title.font.size+10+r._offsetShift,u+=(t.title.text.match(o.BR_TAG_ALL)||[]).length*t.title.font.size*a));return{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:r._height+c+Math.max(n.margin.b,u),pad:i.extraPad+2*r._offsetShift}}},"./node_modules/plotly.js/src/components/rangeslider/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/rangeslider/attributes.js"),i=n("./node_modules/plotly.js/src/components/rangeslider/oppaxis_attributes.js"),a=n("./node_modules/plotly.js/src/components/rangeslider/helpers.js");e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:r.extendFlat({},o,{yaxis:i})}}},layoutAttributes:n("./node_modules/plotly.js/src/components/rangeslider/attributes.js"),handleDefaults:n("./node_modules/plotly.js/src/components/rangeslider/defaults.js"),calcAutorange:n("./node_modules/plotly.js/src/components/rangeslider/calc_autorange.js"),draw:n("./node_modules/plotly.js/src/components/rangeslider/draw.js"),isVisible:a.isVisible,makeData:a.makeData,autoMarginOpts:a.autoMarginOpts}},"./node_modules/plotly.js/src/components/rangeslider/oppaxis_attributes.js":function(e,t,n){"use strict";e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc",description:["Determines whether or not the range of this axis in","the rangeslider use the same value than in the main plot","when zooming in/out.","If *auto*, the autorange will be used.","If *fixed*, the `range` is used.","If *match*, the current range of the corresponding y-axis on the main subplot is used."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Sets the range of this axis for the rangeslider."].join(" ")},editType:"calc"}},"./node_modules/plotly.js/src/components/selections/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/annotations/attributes.js"),o=n("./node_modules/plotly.js/src/traces/scatter/attributes.js").line,i=n("./node_modules/plotly.js/src/components/drawing/attributes.js").dash,a=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,s=n("./node_modules/plotly.js/src/plot_api/edit_types.js").overrideAll,l=n("./node_modules/plotly.js/src/plot_api/plot_template.js").templatedArray,c=n("./node_modules/plotly.js/src/constants/axis_placeable_objects.js");e.exports=s(l("selection",{type:{valType:"enumerated",values:["rect","path"],description:["Specifies the selection type to be drawn.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`) and (`x0`,`y1`).","If *path*, draw a custom SVG path using `path`."].join(" ")},xref:a({},r.xref,{description:["Sets the selection's x coordinate axis.",c.axisRefDescription("x","left","right")].join(" ")}),yref:a({},r.yref,{description:["Sets the selection's x coordinate axis.",c.axisRefDescription("y","bottom","top")].join(" ")}),x0:{valType:"any",description:"Sets the selection's starting x position."},x1:{valType:"any",description:"Sets the selection's end x position."},y0:{valType:"any",description:"Sets the selection's starting y position."},y1:{valType:"any",description:"Sets the selection's end y position."},path:{valType:"string",editType:"arraydraw",description:["For `type` *path* - a valid SVG path similar to `shapes.path` in data coordinates.","Allowed segments are: M, L and Z."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw",description:"Sets the opacity of the selection."},line:{color:o.color,width:a({},o.width,{min:1,dflt:1}),dash:a({},i,{dflt:"dot"})}}),"arraydraw","from-root")},"./node_modules/plotly.js/src/components/selections/constants.js":function(e,t,n){"use strict";e.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},"./node_modules/plotly.js/src/components/selections/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),i=n("./node_modules/plotly.js/src/plots/array_container_defaults.js"),a=n("./node_modules/plotly.js/src/components/selections/attributes.js"),s=n("./node_modules/plotly.js/src/components/shapes/helpers.js");function l(e,t,n){function i(n,o){return r.coerce(e,t,a,n,o)}var l=i("path"),c="path"!==i("type",l?"path":"rect");c&&delete t.path,i("opacity"),i("line.color"),i("line.width"),i("line.dash");for(var u=["x","y"],d=0;d<2;d++){var f,h,p,m=u[d],g={_fullLayout:n},v=o.coerceRef(e,t,g,m);if((f=o.getFromId(g,v))._selectionIndices.push(t._index),p=s.rangeToShapePosition(f),h=s.shapePositionToRange(f),c){var y=m+"0",b=m+"1",x=e[y],_=e[b];e[y]=h(e[y],!0),e[b]=h(e[b],!0),o.coercePosition(t,g,i,v,y),o.coercePosition(t,g,i,v,b);var w=t[y],j=t[b];void 0!==w&&void 0!==j&&(t[y]=p(w),t[b]=p(j),e[y]=x,e[b]=_)}}c&&r.noneOrAll(e,t,["x0","x1","y0","y1"])}e.exports=function(e,t){i(e,t,{name:"selections",handleItemDefaults:l});for(var n=t.selections,r=0;r<n.length;r++){var o=n[r];o&&(void 0===o.path&&(void 0!==o.x0&&void 0!==o.x1&&void 0!==o.y0&&void 0!==o.y1||(t.selections[r]=null)))}}},"./node_modules/plotly.js/src/components/selections/draw.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/helpers.js").readPaths,o=n("./node_modules/plotly.js/src/components/shapes/display_outlines.js"),i=n("./node_modules/plotly.js/src/components/shapes/handle_outline.js").clearOutlineControllers,a=n("./node_modules/plotly.js/src/components/color/index.js"),s=n("./node_modules/plotly.js/src/components/drawing/index.js"),l=n("./node_modules/plotly.js/src/plot_api/plot_template.js").arrayEditor,c=n("./node_modules/plotly.js/src/components/shapes/helpers.js"),u=c.getPathString;function d(e){var t=e._fullLayout;for(var n in i(e),t._selectionLayer.selectAll("path").remove(),t._plots){var r=t._plots[n].selectionLayer;r&&r.selectAll("path").remove()}for(var o=0;o<t.selections.length;o++)h(e,o)}function f(e){return e._context.editSelection}function h(e,t){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+t+'"]').remove();var n=c.makeSelectionsOptionsAndPlotinfo(e,t),i=n.options,h=n.plotinfo;i._input&&function(n){var c=u(e,i),g={"data-index":t,"fill-rule":"evenodd",d:c},v=i.opacity,y="rgba(0,0,0,0)",b=i.line.color||a.contrast(e._fullLayout.plot_bgcolor),x=i.line.width,_=i.line.dash;x||(x=5,_="solid");var w=f(e)&&e._fullLayout._activeSelectionIndex===t;w&&(y=e._fullLayout.activeselection.fillcolor,v=e._fullLayout.activeselection.opacity);for(var j=[],k=1;k>=0;k--){var T=n.append("path").attr(g).style("opacity",k?.1:v).call(a.stroke,b).call(a.fill,y).call(s.dashLine,k?"solid":_,k?4+x:x);if(p(T,e,i),w){var A=l(e.layout,"selections",i);T.style({cursor:"move"});var M={element:T.node(),plotinfo:h,gd:e,editHelpers:A,isActiveSelection:!0},S=r(c,e);o(S,T,M)}else T.style("pointer-events",k?"all":"none");j[k]=T}var C=j[0];j[1].node().addEventListener("click",(function(){return function(e,t){if(!f(e))return;var n=+t.node().getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex)return void m(e);e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=m,d(e)}}(e,C)}))}(e._fullLayout._selectionLayer)}function p(e,t,n){var r=n.xref+n.yref;s.setClipUrl(e,"clip"+t._fullLayout._uid+r,t)}function m(e){f(e)&&(e._fullLayout._activeSelectionIndex>=0&&(i(e),delete e._fullLayout._activeSelectionIndex,d(e)))}e.exports={draw:d,drawOne:h,activateLastSelection:function(e){if(!f(e))return;var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=m,d(e)}}},"./node_modules/plotly.js/src/components/selections/draw_newselection/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/drawing/attributes.js").dash,o=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat;e.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none",description:["Describes how a new selection is created.","If `immediate`, a new selection is created after first mouse up.","If `gradual`, a new selection is not created after first mouse.","By adding to and subtracting from the initial selection,","this option allows declaring extra outlines of the selection."].join(" ")},line:{color:{valType:"color",editType:"none",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:1,dflt:1,editType:"none",description:"Sets the line width (in px)."},dash:o({},r,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none",description:"Sets the color filling the active selection' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none",description:"Sets the opacity of the active selection."},editType:"none"}}},"./node_modules/plotly.js/src/components/selections/draw_newselection/defaults.js":function(e,t,n){"use strict";e.exports=function(e,t,n){n("newselection.mode"),n("newselection.line.width")&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}},"./node_modules/plotly.js/src/components/selections/draw_newselection/newselections.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/dragelement/helpers.js").selectMode,o=n("./node_modules/plotly.js/src/components/shapes/handle_outline.js").clearOutline,i=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/helpers.js"),a=i.readPaths,s=i.writePaths,l=i.fixDatesForPaths;e.exports=function(e,t){if(e.length){var n=e[0][0];if(n){var i=n.getAttribute("d"),c=t.gd,u=c._fullLayout.newselection,d=t.plotinfo,f=d.xaxis,h=d.yaxis,p=t.isActiveSelection,m=t.dragmode,g=(c.layout||{}).selections||[];if(!r(m)&&void 0!==p){var v=c._fullLayout._activeSelectionIndex;if(v<g.length)switch(c._fullLayout.selections[v].type){case"rect":m="select";break;case"path":m="lasso"}}var y,b=a(i,c,d,p),x={xref:f._id,yref:h._id,opacity:u.opacity,line:{color:u.line.color,width:u.line.width,dash:u.line.dash}};1===b.length&&(y=b[0]),y&&5===y.length&&"select"===m?(x.type="rect",x.x0=y[0][1],x.y0=y[0][2],x.x1=y[2][1],x.y1=y[2][2]):(x.type="path",f&&h&&l(b,f,h),x.path=s(b),y=null),o(c);for(var _=t.editHelpers,w=(_||{}).modifyItem,j=[],k=0;k<g.length;k++){var T=c._fullLayout.selections[k];if(T){if(j[k]=T._input,void 0!==p&&k===c._fullLayout._activeSelectionIndex){var A=x;switch(T.type){case"rect":w("x0",A.x0),w("x1",A.x1),w("y0",A.y0),w("y1",A.y1);break;case"path":w("path",A.path)}}}else j[k]=T}return void 0===p?(j.push(x),j):_?_.getUpdateObj():{}}}}},"./node_modules/plotly.js/src/components/selections/helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js").strTranslate;function o(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}e.exports={p2r:o,r2p:function(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}},axValue:function(e){var t="y"===e._id.charAt(0)?1:0;return function(n){return o(e,n[t])}},getTransform:function(e){return r(e.xaxis._offset,e.yaxis._offset)}}},"./node_modules/plotly.js/src/components/selections/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/selections/draw.js"),o=n("./node_modules/plotly.js/src/components/selections/select.js");e.exports={moduleType:"component",name:"selections",layoutAttributes:n("./node_modules/plotly.js/src/components/selections/attributes.js"),supplyLayoutDefaults:n("./node_modules/plotly.js/src/components/selections/defaults.js"),supplyDrawNewSelectionDefaults:n("./node_modules/plotly.js/src/components/selections/draw_newselection/defaults.js"),includeBasePlot:n("./node_modules/plotly.js/src/plots/cartesian/include_components.js")("selections"),draw:r.draw,drawOne:r.drawOne,reselect:o.reselect,prepSelect:o.prepSelect,clearOutline:o.clearOutline,clearSelectionsCache:o.clearSelectionsCache,selectOnClick:o.selectOnClick}},"./node_modules/plotly.js/src/components/selections/select.js":function(e,t,n){"use strict";var r=n("./node_modules/polybooljs/index.js"),o=n("./node_modules/point-in-polygon/nested.js"),i=n("./node_modules/plotly.js/src/registry.js"),a=n("./node_modules/plotly.js/src/components/drawing/index.js").dashStyle,s=n("./node_modules/plotly.js/src/components/color/index.js"),l=n("./node_modules/plotly.js/src/components/fx/index.js"),c=n("./node_modules/plotly.js/src/components/fx/helpers.js").makeEventData,u=n("./node_modules/plotly.js/src/components/dragelement/helpers.js"),d=u.freeMode,f=u.rectMode,h=u.drawMode,p=u.openMode,m=u.selectMode,g=n("./node_modules/plotly.js/src/components/shapes/helpers.js"),v=n("./node_modules/plotly.js/src/components/shapes/constants.js"),y=n("./node_modules/plotly.js/src/components/shapes/display_outlines.js"),b=n("./node_modules/plotly.js/src/components/shapes/handle_outline.js").clearOutline,x=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/helpers.js"),_=x.handleEllipse,w=x.readPaths,j=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/newshapes.js").newShapes,k=n("./node_modules/plotly.js/src/components/selections/draw_newselection/newselections.js"),T=n("./node_modules/plotly.js/src/components/selections/draw.js").activateLastSelection,A=n("./node_modules/plotly.js/src/lib/index.js"),M=A.sorterAsc,S=n("./node_modules/plotly.js/src/lib/polygon.js"),C=n("./node_modules/plotly.js/src/lib/throttle.js"),E=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js").getFromId,L=n("./node_modules/plotly.js/src/lib/clear_gl_canvases.js"),O=n("./node_modules/plotly.js/src/plot_api/subroutines.js").redrawReglTraces,R=n("./node_modules/plotly.js/src/components/selections/constants.js"),I=R.MINSELECT,P=S.filter,D=S.tester,z=n("./node_modules/plotly.js/src/components/selections/helpers.js"),N=z.p2r,F=z.axValue,B=z.getTransform;function U(e){return void 0!==e.subplot}function H(e,t,n,r,o,i,a){var s,l,c,u,d,f,h,m,g,v=t._hoverdata,b=t._fullLayout.clickmode.indexOf("event")>-1,x=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(v)){W(e,t,i);var _=function(e,t){var n,r,o=e[0],i=-1,a=[];for(r=0;r<t.length;r++)if(n=t[r],o.fullData._expandedIndex===n.cd[0].trace._expandedIndex){if(!0===o.hoverOnBox)break;void 0!==o.pointNumber?i=o.pointNumber:void 0!==o.binNumber&&(i=o.binNumber,a=o.pointNumbers);break}return{pointNumber:i,pointNumbers:a,searchInfo:n}}(v,s=Z(t,n,r,o));if(_.pointNumbers.length>0?function(e,t){var n,r,o,i=[];for(o=0;o<e.length;o++)(n=e[o]).cd[0].trace.selectedpoints&&n.cd[0].trace.selectedpoints.length>0&&i.push(n);if(1===i.length&&i[0]===t.searchInfo&&(r=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(o=0;o<t.pointNumbers.length;o++)if(r.selectedpoints.indexOf(t.pointNumbers[o])<0)return!1;return!0}return!1}(s,_):function(e){var t,n,r,o=0;for(r=0;r<e.length;r++)if(t=e[r],(n=t.cd[0].trace).selectedpoints){if(n.selectedpoints.length>1)return!1;if((o+=n.selectedpoints.length)>1)return!1}return 1===o}(s)&&(f=K(_))){for(a&&a.remove(),g=0;g<s.length;g++)(l=s[g])._module.selectPoints(l,!1);J(t,s),Y(i),b&&fe(t)}else{for(h=e.shiftKey&&(void 0!==f?f:K(_)),c=function(e,t,n){return{pointNumber:e,searchInfo:t,subtract:!!n}}(_.pointNumber,_.searchInfo,h),u=q(i.selectionDefs.concat([c])),g=0;g<s.length;g++)if(d=ee(s[g]._module.selectPoints(s[g],u),s[g]),x.length)for(var w=0;w<d.length;w++)x.push(d[w]);else x=d;if(J(t,s,m={points:x}),c&&i&&i.selectionDefs.push(c),a){var j=i.mergedPolygons,k=p(i.dragmode);y(te(j,k),a,i)}b&&de(t,m)}}}function V(e){return"pointNumber"in e&&"searchInfo"in e}function G(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(t,n,r,o){var i=e.searchInfo.cd[0].trace._expandedIndex;return o.cd[0].trace._expandedIndex===i&&r===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function q(e){if(e.length){for(var t=[],n=V(e[0])?0:e[0][0][0],r=n,o=V(e[0])?0:e[0][0][1],i=o,a=0;a<e.length;a++)if(V(e[a]))t.push(G(e[a]));else{var s=D(e[a]);s.subtract=!!e[a].subtract,t.push(s),n=Math.min(n,s.xmin),r=Math.max(r,s.xmax),o=Math.min(o,s.ymin),i=Math.max(i,s.ymax)}return{xmin:n,xmax:r,ymin:o,ymax:i,pts:[],contains:function(e,n,r,o){for(var i=!1,a=0;a<t.length;a++)t[a].contains(e,n,r,o)&&(i=!t[a].subtract);return i},isRect:!1,degenerate:!1}}}function W(e,t,n){var r=t._fullLayout,o=n.plotinfo,i=n.dragmode,a=r._lastSelectedSubplot&&r._lastSelectedSubplot===o.id,s=(e.shiftKey||e.altKey)&&!(h(i)&&p(i));a&&s&&o.selection&&o.selection.selectionDefs&&!n.selectionDefs?(n.selectionDefs=o.selection.selectionDefs,n.mergedPolygons=o.selection.mergedPolygons):s&&o.selection||Y(n),a||(b(t),r._lastSelectedSubplot=o.id)}function Y(e,t){var n=e.dragmode,r=e.plotinfo,o=e.gd;(function(e){return e._fullLayout._activeShapeIndex>=0})(o)&&o._fullLayout._deactivateShape(o),function(e){return e._fullLayout._activeSelectionIndex>=0}(o)&&o._fullLayout._deactivateSelection(o);var a=o._fullLayout._zoomlayer,s=h(n),l=m(n);if(s||l){var c,u,d=a.selectAll(".select-outline-"+r.id);if(d&&o._fullLayout._outlining)s&&(c=j(d,e)),c&&i.call("_guiRelayout",o,{shapes:c}),l&&!U(e)&&(u=k(d,e)),u&&(o._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",o,{selections:u}).then((function(){t&&T(o)}))),o._fullLayout._outlining=!1}r.selection={},r.selection.selectionDefs=e.selectionDefs=[],r.selection.mergedPolygons=e.mergedPolygons=[]}function X(e){return e._id}function Z(e,t,n,r){if(!e.calcdata)return[];var o,i,a,s=[],l=t.map(X),c=n.map(X);for(a=0;a<e.calcdata.length;a++)if(!0===(i=(o=e.calcdata[a])[0].trace).visible&&i._module&&i._module.selectPoints)if(!U({subplot:r})||i.subplot!==r&&i.geo!==r)if("splom"===i.type){if(i._xaxes[l[0]]&&i._yaxes[c[0]]){var u=$(i._module,o,t[0],n[0]);u.scene=e._fullLayout._splomScenes[i.uid],s.push(u)}}else if("sankey"===i.type){var d=$(i._module,o,t[0],n[0]);s.push(d)}else{if(!(-1!==l.indexOf(i.xaxis)||i._xA&&i._xA.overlaying))continue;if(!(-1!==c.indexOf(i.yaxis)||i._yA&&i._yA.overlaying))continue;s.push($(i._module,o,E(e,i.xaxis),E(e,i.yaxis)))}else s.push($(i._module,o,t[0],n[0]));return s}function $(e,t,n,r){return{_module:e,cd:t,xaxis:n,yaxis:r}}function K(e){var t=e.searchInfo.cd[0].trace,n=e.pointNumber,r=e.pointNumbers,o=r.length>0?r[0]:n;return!!t.selectedpoints&&t.selectedpoints.indexOf(o)>-1}function J(e,t,n){var r,o;for(r=0;r<t.length;r++){var a=t[r].cd[0].trace._fullInput,s=e._fullLayout._tracePreGUI[a.uid]||{};void 0===s.selectedpoints&&(s.selectedpoints=a._input.selectedpoints||null)}if(n){var l=n.points||[];for(r=0;r<t.length;r++)(o=t[r].cd[0].trace)._input.selectedpoints=o._fullInput.selectedpoints=[],o._fullInput!==o&&(o.selectedpoints=[]);for(var c=0;c<l.length;c++){var u=l[c],d=u.data,f=u.fullData,h=u.pointIndex,p=u.pointIndices;p?([].push.apply(d.selectedpoints,p),o._fullInput!==o&&[].push.apply(f.selectedpoints,p)):(d.selectedpoints.push(h),o._fullInput!==o&&f.selectedpoints.push(h))}}else for(r=0;r<t.length;r++)delete(o=t[r].cd[0].trace).selectedpoints,delete o._input.selectedpoints,o._fullInput!==o&&delete o._fullInput.selectedpoints;!function(e,t){for(var n=!1,r=0;r<t.length;r++){var o=t[r],a=o.cd;i.traceIs(a[0].trace,"regl")&&(n=!0);var s=o._module,l=s.styleOnSelect||s.style;l&&(l(e,a,a[0].node3),a[0].nodeRangePlot3&&l(e,a,a[0].nodeRangePlot3))}n&&(L(e),O(e))}(e,t)}function Q(e,t,n){for(var o=(n?r.difference:r.union)({regions:e},{regions:[t]}).regions.reverse(),i=0;i<o.length;i++){var a=o[i];a.subtract=se(a,o.slice(0,i))}return o}function ee(e,t){if(Array.isArray(e))for(var n=t.cd,r=t.cd[0].trace,o=0;o<e.length;o++)e[o]=c(e[o],r,n);return e}function te(e,t){for(var n=[],r=0;r<e.length;r++){n[r]=[];for(var o=0;o<e[r].length;o++){n[r][o]=[],n[r][o][0]=o?"L":"M";for(var i=0;i<e[r][o].length;i++)n[r][o].push(e[r][o][i])}t||n[r].push(["Z",n[r][0][1],n[r][0][2]])}return n}function ne(e,t){for(var n,r,o=[],i=[],a=0;a<t.length;a++){var s=t[a];r=s._module.selectPoints(s,e),i.push(r),n=ee(r,s),o=o.concat(n)}return o}function re(e,t,n,r,o){var i,a,s,l=!!r;o&&(i=o.plotinfo,a=o.xaxes[0]._id,s=o.yaxes[0]._id);var c=[],u=[],d=ae(e),f=e._fullLayout;if(i){var p=f._zoomlayer,g=f.dragmode,v=h(g),y=m(g);if(v||y){var b=E(e,a,"x"),x=E(e,s,"y");if(b&&x){var _=p.selectAll(".select-outline-"+i.id);if(_&&e._fullLayout._outlining&&_.length){for(var j=_[0][0].getAttribute("d"),k=w(j,e,i),T=[],A=0;A<k.length;A++){for(var M=k[A],S=[],C=0;C<M.length;C++)S.push([le(b,M[C][1]),le(x,M[C][2])]);S.xref=a,S.yref=s,S.subtract=se(S,T),T.push(S)}d=d.concat(T)}}}}var L=a&&s?[a+s]:f._subplots.cartesian;!function(e){var t=e.calcdata;if(!t)return;for(var n=0;n<t.length;n++){var r=t[n][0].trace,o=e._fullLayout._splomScenes;if(o){var i=o[r.uid];i&&(i.selectBatch=[])}}}(e);for(var O={},R=0;R<L.length;R++){var I=L[R],P=I.indexOf("y"),D=I.slice(0,P),z=I.slice(P),N=a&&s?n:void 0;if(N=ie(d,D,z,N)){var F=r;if(!l){var B=E(e,D,"x"),U=E(e,z,"y");F=Z(e,[B],[U],I);for(var H=0;H<F.length;H++){var V=F[H],G=V.cd[0],q=G.trace;if("scattergl"===V._module.name&&!G.t.xpx){var W=q.x,Y=q.y,X=q._length;G.t.xpx=[],G.t.ypx=[];for(var $=0;$<X;$++)G.t.xpx[$]=B.c2p(W[$]),G.t.ypx[$]=U.c2p(Y[$])}"splom"===V._module.name&&(O[q.uid]||(O[q.uid]=!0))}}var K=ne(N,F);c=c.concat(K),u=u.concat(F)}}var Q={points:c};J(e,u,Q);var ee=f.clickmode.indexOf("event")>-1&&t;if(!i&&t){var te=ae(e,!0);if(te.length){var re=te[0].xref,he=te[0].yref;if(re&&he){var pe=ce(te);ue([E(e,re,"x"),E(e,he,"y")])(Q,pe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ee&&de(e,Q),f._reselect=!1}if(!i&&f._deselect){var me=f._deselect;(function(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];if(o.xaxis&&o.xaxis._id===e&&o.yaxis&&o.yaxis._id===t)return!0}return!1})(a=me.xref,s=me.yref,u)||oe(e,a,s,r),ee&&(Q.points.length?de(e,Q):fe(e)),f._deselect=!1}return{eventData:Q,selectionTesters:n}}function oe(e,t,n,r){r=Z(e,[E(e,t,"x")],[E(e,n,"y")],t+n);for(var o=0;o<r.length;o++){var i=r[o];i._module.selectPoints(i,!1)}J(e,r)}function ie(e,t,n,r){for(var o,i=0;i<e.length;i++){var a=e[i];if(t===a.xref&&n===a.yref)if(o)r=q(o=Q(o,a,!!a.subtract));else o=[a],r=D(a)}return r}function ae(e,t){for(var n=[],r=e._fullLayout,o=r.selections,i=o.length,a=0;a<i;a++)if(!t||a===r._activeSelectionIndex){var s=o[a];if(s){var l,c,u,d,f,h=s.xref,p=s.yref,m=E(e,h,"x"),y=E(e,p,"y");if("rect"===s.type){f=[];var b=le(m,s.x0),x=le(m,s.x1),_=le(y,s.y0),w=le(y,s.y1);f=[[b,_],[b,w],[x,w],[x,_]],l=Math.min(b,x),c=Math.max(b,x),u=Math.min(_,w),d=Math.max(_,w),f.xmin=l,f.xmax=c,f.ymin=u,f.ymax=d,f.xref=h,f.yref=p,f.subtract=!1,f.isRect=!0,n.push(f)}else if("path"===s.type)for(var j=s.path.split("Z"),k=[],T=0;T<j.length;T++){var A=j[T];if(A){A+="Z";var M=g.extractPathCoords(A,v.paramIsX,"raw"),S=g.extractPathCoords(A,v.paramIsY,"raw");l=1/0,c=-1/0,u=1/0,d=-1/0,f=[];for(var C=0;C<M.length;C++){var L=le(m,M[C]),O=le(y,S[C]);f.push([L,O]),l=Math.min(L,l),c=Math.max(L,c),u=Math.min(O,u),d=Math.max(O,d)}f.xmin=l,f.xmax=c,f.ymin=u,f.ymax=d,f.xref=h,f.yref=p,f.subtract=se(f,k),k.push(f),n.push(f)}}}}return n}function se(e,t){for(var n=!1,r=0;r<t.length;r++)for(var i=t[r],a=0;a<e.length;a++)if(o(e[a],i)){n=!n;break}return n}function le(e,t){return"date"===e.type&&(t=t.replace("_"," ")),"log"===e.type?e.c2p(t):e.r2p(t,null,e.calendar)}function ce(e){for(var t=e.length,n=[],r=0;r<t;r++){var o=e[r];n=(n=n.concat(o)).concat([o[0]])}return function(e){e.isRect=5===e.length&&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]));return e}(n)}function ue(e){return function(t,n){for(var r,o,i=0;i<e.length;i++){var a=e[i],s=a._id,l=s.charAt(0);if(n.isRect){r||(r={});var c=n[l+"min"],u=n[l+"max"];void 0!==c&&void 0!==u&&(r[s]=[N(a,c),N(a,u)].sort(M))}else o||(o={}),o[s]=n.map(F(a))}r&&(t.range=r),o&&(t.lassoPoints=o)}}function de(e,t){t&&(t.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",t)}function fe(e){e.emit("plotly_deselect",null)}e.exports={reselect:re,prepSelect:function(e,t,n,r,o){var c=!U(r),u=d(o),g=f(o),v=p(o),b=h(o),x=m(o),w="drawcircle"===o,j="drawline"===o||w,k=r.gd,T=k._fullLayout,M=x&&"immediate"===T.newselection.mode&&c,S=T._zoomlayer,E=r.element.getBoundingClientRect(),L=r.plotinfo,O=B(L),z=t-E.left,N=n-E.top;T._calcInverseTransform(k);var F=A.apply3DTransform(T._invTransform)(z,N);z=F[0],N=F[1];var V,G,X,$,K,ee,ie,ae=T._invScaleX,se=T._invScaleY,le=z,he=N,pe="M"+z+","+N,me=r.xaxes[0],ge=r.yaxes[0],ve=me._length,ye=ge._length,be=e.altKey&&!(h(o)&&v);W(e,k,r),u&&(V=P([[z,N]],R.BENDPX));var xe=S.selectAll("path.select-outline-"+L.id).data([1]),_e=b?T.newshape:T.newselection;b&&(r.hasText=_e.label.text||_e.label.texttemplate);var we=b&&!v?_e.fillcolor:"rgba(0,0,0,0)",je=_e.line.color||(c?s.contrast(k._fullLayout.plot_bgcolor):"#7f7f7f");xe.enter().append("path").attr("class","select-outline select-outline-"+L.id).style({opacity:b?_e.opacity/2:1,"stroke-dasharray":a(_e.line.dash,_e.line.width),"stroke-width":_e.line.width+"px","shape-rendering":"crispEdges"}).call(s.stroke,je).call(s.fill,we).attr("fill-rule","evenodd").classed("cursor-move",!!b).attr("transform",O).attr("d",pe+"Z");var ke=S.append("path").attr("class","zoombox-corners").style({fill:s.background,stroke:s.defaultLine,"stroke-width":1}).attr("transform",O).attr("d","M0,0Z");if(b&&r.hasText){var Te=S.select(".label-temp");Te.empty()&&(Te=S.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ae=T._uid+R.SELECTID,Me=[],Se=Z(k,r.xaxes,r.yaxes,r.subplot);M&&!e.shiftKey&&(r._clearSubplotSelections=function(){if(c){var e=me._id,t=ge._id;oe(k,e,t,Se);for(var n=(k.layout||{}).selections||[],r=[],o=!1,a=0;a<n.length;a++){var s=T.selections[a];s.xref!==e||s.yref!==t?r.push(n[a]):o=!0}o&&(k._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",k,{selections:r}))}});var Ce=function(e){return e.plotinfo.fillRangeItems||ue(e.xaxes.concat(e.yaxes))}(r);r.moveFn=function(e,t){r._clearSubplotSelections&&(r._clearSubplotSelections(),r._clearSubplotSelections=void 0),le=Math.max(0,Math.min(ve,ae*e+z)),he=Math.max(0,Math.min(ye,se*t+N));var n=Math.abs(le-z),o=Math.abs(he-N);if(g){var i,a,s;if(x){var l=T.selectdirection;switch(i="any"===l?o<Math.min(.6*n,I)?"h":n<Math.min(.6*o,I)?"v":"d":l){case"h":a=w?ye/2:0,s=ye;break;case"v":a=w?ve/2:0,s=ve}}if(b)switch(T.newshape.drawdirection){case"vertical":i="h",a=w?ye/2:0,s=ye;break;case"horizontal":i="v",a=w?ve/2:0,s=ve;break;case"ortho":n<o?(i="h",a=N,s=he):(i="v",a=z,s=le);break;default:i="d"}"h"===i?(($=j?_(w,[le,a],[le,s]):[[z,a],[z,s],[le,s],[le,a]]).xmin=j?le:Math.min(z,le),$.xmax=j?le:Math.max(z,le),$.ymin=Math.min(a,s),$.ymax=Math.max(a,s),ke.attr("d","M"+$.xmin+","+(N-I)+"h-4v"+2*I+"h4ZM"+($.xmax-1)+","+(N-I)+"h4v"+2*I+"h-4Z")):"v"===i?(($=j?_(w,[a,he],[s,he]):[[a,N],[a,he],[s,he],[s,N]]).xmin=Math.min(a,s),$.xmax=Math.max(a,s),$.ymin=j?he:Math.min(N,he),$.ymax=j?he:Math.max(N,he),ke.attr("d","M"+(z-I)+","+$.ymin+"v-4h"+2*I+"v4ZM"+(z-I)+","+($.ymax-1)+"v4h"+2*I+"v-4Z")):"d"===i&&(($=j?_(w,[z,N],[le,he]):[[z,N],[z,he],[le,he],[le,N]]).xmin=Math.min(z,le),$.xmax=Math.max(z,le),$.ymin=Math.min(N,he),$.ymax=Math.max(N,he),ke.attr("d","M0,0Z"))}else u&&(V.addPt([le,he]),$=V.filtered);if(r.selectionDefs&&r.selectionDefs.length?(X=Q(r.mergedPolygons,$,be),$.subtract=be,G=q(r.selectionDefs.concat([$]))):(X=[$],G=D($)),y(te(X,v),xe,r),x){var c,d=re(k,!1),f=d.eventData?d.eventData.points.slice():[];d=re(k,!1,G,Se,r),G=d.selectionTesters,ie=d.eventData,c=V?V.filtered:ce(X),C.throttle(Ae,R.SELECTDELAY,(function(){for(var e=(Me=ne(G,Se)).slice(),t=0;t<f.length;t++){for(var n=f[t],r=!1,o=0;o<e.length;o++)if(e[o].curveNumber===n.curveNumber&&e[o].pointNumber===n.pointNumber){r=!0;break}r||e.push(n)}e.length&&(ie||(ie={}),ie.points=e),Ce(ie,c),function(e,t){e.emit("plotly_selecting",t)}(k,ie)}))}},r.clickFn=function(e,t){if(ke.remove(),k._fullLayout._activeShapeIndex>=0)k._fullLayout._deactivateShape(k);else if(!b){var n=T.clickmode;C.done(Ae).then((function(){if(C.clear(Ae),2===e){for(xe.remove(),K=0;K<Se.length;K++)(ee=Se[K])._module.selectPoints(ee,!1);if(J(k,Se),Y(r),fe(k),Se.length){var o=Se[0].xaxis,a=Se[0].yaxis;if(o&&a){for(var s=[],c=k._fullLayout.selections,u=0;u<c.length;u++){var d=c[u];d&&(d.xref===o._id&&d.yref===a._id||s.push(d))}s.length<c.length&&(k._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",k,{selections:s}))}}}else n.indexOf("select")>-1&&H(t,k,r.xaxes,r.yaxes,r.subplot,r,xe),"event"===n&&de(k,void 0);l.click(k,t,L.id)})).catch(A.error)}},r.doneFn=function(){ke.remove(),C.done(Ae).then((function(){C.clear(Ae),!M&&$&&r.selectionDefs&&($.subtract=be,r.selectionDefs.push($),r.mergedPolygons.length=0,[].push.apply(r.mergedPolygons,X)),(M||b)&&Y(r,M),r.doneFnCompleted&&r.doneFnCompleted(Me),x&&de(k,ie)})).catch(A.error)}},clearOutline:b,clearSelectionsCache:Y,selectOnClick:H}},"./node_modules/plotly.js/src/components/shapes/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/annotations/attributes.js"),o=n("./node_modules/plotly.js/src/plots/font_attributes.js"),i=n("./node_modules/plotly.js/src/traces/scatter/attributes.js").line,a=n("./node_modules/plotly.js/src/components/drawing/attributes.js").dash,s=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,l=n("./node_modules/plotly.js/src/plot_api/plot_template.js").templatedArray,c=n("./node_modules/plotly.js/src/constants/axis_placeable_objects.js"),u=n("./node_modules/plotly.js/src/plots/attributes.js"),d=n("./node_modules/plotly.js/src/plots/template_attributes.js").shapeTexttemplateAttrs,f=n("./node_modules/plotly.js/src/components/shapes/label_texttemplate.js");e.exports=l("shape",{visible:s({},u.visible,{editType:"calc+arraydraw",description:["Determines whether or not this shape is visible.","If *legendonly*, the shape is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw",description:["Determines whether or not this","shape is shown in the legend."].join(" ")},legend:s({},u.legend,{editType:"calc+arraydraw",description:["Sets the reference to a legend to show this shape in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")}),legendgroup:s({},u.legendgroup,{editType:"calc+arraydraw",description:["Sets the legend group for this shape.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")}),legendgrouptitle:{text:s({},u.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:o({editType:"calc+arraydraw",description:["Sets this legend group's title font."].join(" ")}),editType:"calc+arraydraw"},legendrank:s({},u.legendrank,{editType:"calc+arraydraw",description:["Sets the legend rank for this shape.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items.","When having unranked or equal rank items shapes would be displayed after traces","i.e. according to their order in data and layout."].join(" ")}),legendwidth:s({},u.legendwidth,{editType:"calc+arraydraw",description:"Sets the width (in px or fraction) of the legend for this shape."}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","with respect to the axes' sizing mode.","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","with respect to the axes' sizing mode.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","with respect to the axes' sizing mode.","If *path*, draw a custom SVG path using `path`.","with respect to the axes' sizing mode."].join(" ")},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw",description:["Specifies whether shapes are drawn below gridlines (*below*),","between gridlines and traces (*between*) or above traces (*above*)."].join(" ")},xref:s({},r.xref,{description:["Sets the shape's x coordinate axis.",c.axisRefDescription("x","left","right")].join(" ")}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the x axis.","If set to *scaled*, `x0`, `x1` and x coordinates within `path` refer to","data values on the x axis or a fraction of the plot area's width","(`xref` set to *paper*).","If set to *pixel*, `xanchor` specifies the x position in terms","of data or plot fraction but `x0`, `x1` and x coordinates within `path`","are pixels relative to `xanchor`. This way, the shape can have","a fixed width while maintaining a position relative to data or","plot fraction."].join(" ")},xanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `xsizemode` set to *pixel*.","Specifies the anchor point on the x axis to which `x0`, `x1`","and x coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `xsizemode` not set to *pixel*."].join(" ")},x0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting x position.","See `type` and `xsizemode` for more info."].join(" ")},x1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end x position.","See `type` and `xsizemode` for more info."].join(" ")},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc",description:["Shifts `x0` away from the center of the category when `xref` is a *category* or","*multicategory* axis. -0.5 corresponds to the start of the category and 0.5","corresponds to the end of the category."].join(" ")},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc",description:["Shifts `x1` away from the center of the category when `xref` is a *category* or","*multicategory* axis. -0.5 corresponds to the start of the category and 0.5","corresponds to the end of the category."].join(" ")},yref:s({},r.yref,{description:["Sets the shape's y coordinate axis.",c.axisRefDescription("y","bottom","top")].join(" ")}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the y axis.","If set to *scaled*, `y0`, `y1` and y coordinates within `path` refer to","data values on the y axis or a fraction of the plot area's height","(`yref` set to *paper*).","If set to *pixel*, `yanchor` specifies the y position in terms","of data or plot fraction but `y0`, `y1` and y coordinates within `path`","are pixels relative to `yanchor`. This way, the shape can have","a fixed height while maintaining a position relative to data or","plot fraction."].join(" ")},yanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `ysizemode` set to *pixel*.","Specifies the anchor point on the y axis to which `y0`, `y1`","and y coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `ysizemode` not set to *pixel*."].join(" ")},y0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting y position.","See `type` and `ysizemode` for more info."].join(" ")},y1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end y position.","See `type` and `ysizemode` for more info."].join(" ")},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc",description:["Shifts `y0` away from the center of the category when `yref` is a *category* or","*multicategory* axis. -0.5 corresponds to the start of the category and 0.5","corresponds to the end of the category."].join(" ")},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc",description:["Shifts `y1` away from the center of the category when `yref` is a *category* or","*multicategory* axis. -0.5 corresponds to the start of the category and 0.5","corresponds to the end of the category."].join(" ")},path:{valType:"string",editType:"calc+arraydraw",description:["For `type` *path* - a valid SVG path with the pixel values","replaced by data values in `xsizemode`/`ysizemode` being *scaled*","and taken unmodified as pixels relative to `xanchor` and `yanchor`","in case of *pixel* size mode.","There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the shape."},line:{color:s({},i.color,{editType:"arraydraw"}),width:s({},i.width,{editType:"calc+arraydraw"}),dash:s({},a,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color filling the shape's interior. Only applies to closed shapes."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw",description:["Determines which regions of complex paths constitute the interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw",description:["Determines whether the shape could be activated for edit or not.","Has no effect when the older editable shapes mode is enabled via","`config.editable` or `config.edits.shapePosition`."].join(" ")},label:{text:{valType:"string",dflt:"",editType:"arraydraw",description:["Sets the text to display with shape.","It is also used for legend item if `name` is not provided."].join(" ")},texttemplate:d({},{keys:Object.keys(f)}),font:o({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the shape label text font."}),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",description:["Sets the position of the label text relative to the shape.","Supported values for rectangles, circles and paths are","*top left*, *top center*, *top right*, *middle left*,","*middle center*, *middle right*, *bottom left*, *bottom center*,","and *bottom right*.","Supported values for lines are *start*, *middle*, and *end*.","Default: *middle center* for rectangles, circles, and paths; *middle* for lines."].join(" ")},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw",description:["Sets the angle at which the label text is drawn","with respect to the horizontal. For lines, angle *auto*","is the same angle as the line. For all other shapes,","angle *auto* is horizontal."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the label's horizontal position anchor","This anchor binds the specified `textposition` to the *left*, *center*","or *right* of the label text.","For example, if `textposition` is set to *top right* and","`xanchor` to *right* then the right-most portion of the","label text lines up with the right-most edge of the","shape."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw",description:["Sets the label's vertical position anchor","This anchor binds the specified `textposition` to the *top*, *middle*","or *bottom* of the label text.","For example, if `textposition` is set to *top right* and","`yanchor` to *top* then the top-most portion of the","label text lines up with the top-most edge of the","shape."].join(" ")},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw",description:"Sets padding (in px) between edge of label and edge of shape."},editType:"arraydraw"},editType:"arraydraw"})},"./node_modules/plotly.js/src/components/shapes/calc_autorange.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),i=n("./node_modules/plotly.js/src/components/shapes/constants.js"),a=n("./node_modules/plotly.js/src/components/shapes/helpers.js");function s(e){return c(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function l(e){return c(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function c(e,t,n,o,s,l){var c=e/2,u=l;if("pixel"===t){var d=s?a.extractPathCoords(s,l?i.paramIsY:i.paramIsX):[n,o],f=r.aggNums(Math.max,null,d),h=r.aggNums(Math.min,null,d),p=h<0?Math.abs(h)+c:c,m=f>0?f+c:c;return{ppad:c,ppadplus:u?p:m,ppadminus:u?m:p}}return{ppad:c}}function u(e,t,n){var r,o,s="x"===e._id.charAt(0)?"x":"y",l="category"===e.type||"multicategory"===e.type,c=0,u=0,d=l?e.r2c:e.d2c;if("scaled"===t[s+"sizemode"]?(r=t[s+"0"],o=t[s+"1"],l&&(c=t[s+"0shift"],u=t[s+"1shift"])):(r=t[s+"anchor"],o=t[s+"anchor"]),void 0!==r)return[d(r)+c,d(o)+u];if(t.path){var f,h,p,m,g=1/0,v=-1/0,y=t.path.match(i.segmentRE);for("date"===e.type&&(d=a.decodeDate(d)),f=0;f<y.length;f++)void 0!==(h=n[y[f].charAt(0)].drawn)&&(!(p=y[f].substr(1).match(i.paramRE))||p.length<h||((m=d(p[h]))<g&&(g=m),m>v&&(v=m)));return v>=g?[g,v]:void 0}}e.exports=function(e){var t=e._fullLayout,n=r.filterVisible(t.shapes);if(n.length&&e._fullData.length)for(var a=0;a<n.length;a++){var c,d,f=n[a];f._extremes={};var h=o.getRefType(f.xref),p=o.getRefType(f.yref);"paper"!==f.xref&&"domain"!==h&&(d=u(c=o.getFromId(e,f.xref),f,i.paramIsX))&&(f._extremes[c._id]=o.findExtremes(c,d,s(f))),"paper"!==f.yref&&"domain"!==p&&(d=u(c=o.getFromId(e,f.yref),f,i.paramIsY))&&(f._extremes[c._id]=o.findExtremes(c,d,l(f)))}}},"./node_modules/plotly.js/src/components/shapes/constants.js":function(e,t,n){"use strict";e.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:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},"./node_modules/plotly.js/src/components/shapes/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),i=n("./node_modules/plotly.js/src/plots/array_container_defaults.js"),a=n("./node_modules/plotly.js/src/components/shapes/attributes.js"),s=n("./node_modules/plotly.js/src/components/shapes/helpers.js");function l(e,t,n){function i(n,o){return r.coerce(e,t,a,n,o)}if(t._isShape=!0,i("visible")){i("showlegend")&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),r.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var l=i("path"),c=i("type",l?"path":"rect"),u="path"!==c;u&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule"),i("line.width")&&(i("line.color"),i("line.dash"));for(var d=i("xsizemode"),f=i("ysizemode"),h=["x","y"],p=0;p<2;p++){var m,g,v,y=h[p],b=y+"anchor",x="x"===y?d:f,_={_fullLayout:n},w=o.coerceRef(e,t,_,y,void 0,"paper");if("range"===o.getRefType(w)?((m=o.getFromId(_,w))._shapeIndices.push(t._index),v=s.rangeToShapePosition(m),g=s.shapePositionToRange(m),"category"!==m.type&&"multicategory"!==m.type||(i(y+"0shift"),i(y+"1shift"))):g=v=r.identity,u){var j=y+"0",k=y+"1",T=e[j],A=e[k];e[j]=g(e[j],!0),e[k]=g(e[k],!0),"pixel"===x?(i(j,0),i(k,10)):(o.coercePosition(t,_,i,w,j,.25),o.coercePosition(t,_,i,w,k,.75)),t[j]=v(t[j]),t[k]=v(t[k]),e[j]=T,e[k]=A}if("pixel"===x){var M=e[b];e[b]=g(e[b],!0),o.coercePosition(t,_,i,w,b,.25),t[b]=v(t[b]),e[b]=M}}u&&r.noneOrAll(e,t,["x0","x1","y0","y1"]);var S,C,E="line"===c;if(u&&(S=i("label.texttemplate")),S||(C=i("label.text")),C||S){i("label.textangle");var L=i("label.textposition",E?"middle":"middle center");i("label.xanchor"),i("label.yanchor",function(e,t){return e?"bottom":-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle"}(E,L)),i("label.padding"),r.coerceFont(i,"label.font",n.font)}}}e.exports=function(e,t){i(e,t,{name:"shapes",handleItemDefaults:l})}},"./node_modules/plotly.js/src/components/shapes/display_labels.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),i=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),a=n("./node_modules/plotly.js/src/components/drawing/index.js"),s=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/helpers.js").readPaths,l=n("./node_modules/plotly.js/src/components/shapes/helpers.js"),c=l.getPathString,u=n("./node_modules/plotly.js/src/components/shapes/label_texttemplate.js"),d=n("./node_modules/plotly.js/src/constants/alignment.js").FROM_TL;e.exports=function(e,t,n,f){if(f.selectAll(".shape-label").remove(),n.label.text||n.label.texttemplate){var h;if(n.label.texttemplate){var p={};if("path"!==n.type){var m=o.getFromId(e,n.xref),g=o.getFromId(e,n.yref);for(var v in u){var y=u[v](n,m,g);void 0!==y&&(p[v]=y)}}h=r.texttemplateStringForShapes(n.label.texttemplate,{},e._fullLayout._d3locale,p)}else h=n.label.text;var b,x,_,w,j={"data-index":t},k=n.label.font,T=f.append("g").attr(j).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(h);if(n.path){var A=c(e,n),M=s(A,e);b=1/0,_=1/0,x=-1/0,w=-1/0;for(var S=0;S<M.length;S++)for(var C=0;C<M[S].length;C++)for(var E=M[S][C],L=1;L<E.length;L+=2){var O=E[L],R=E[L+1];b=Math.min(b,O),x=Math.max(x,O),_=Math.min(_,R),w=Math.max(w,R)}}else{var I=o.getFromId(e,n.xref),P=n.x0shift,D=n.x1shift,z=o.getRefType(n.xref),N=o.getFromId(e,n.yref),F=n.y0shift,B=n.y1shift,U=o.getRefType(n.yref),H=function(t,n){return l.getDataToPixel(e,I,n,!1,z)(t)},V=function(t,n){return l.getDataToPixel(e,N,n,!0,U)(t)};b=H(n.x0,P),x=H(n.x1,D),_=V(n.y0,F),w=V(n.y1,B)}var G=n.label.textangle;"auto"===G&&(G="line"===n.type?function(e,t,n,r){var o,i;i=Math.abs(n-e),o=n>=e?t-r:r-t;return-180/Math.PI*Math.atan2(o,i)}(b,_,x,w):0),T.call((function(t){return t.call(a.font,k).attr({}),i.convertToTspans(t,e),t}));var q=function(e,t,n,r,o,i,a){var s,l,c,u,f=o.label.textposition,h=o.label.textangle,p=o.label.padding,m=o.type,g=Math.PI/180*i,v=Math.sin(g),y=Math.cos(g),b=o.label.xanchor,x=o.label.yanchor;if("line"===m){"start"===f?(s=e,l=t):"end"===f?(s=n,l=r):(s=(e+n)/2,l=(t+r)/2),"auto"===b&&(b="start"===f?"auto"===h?n>e?"left":n<e?"right":"center":n>e?"right":n<e?"left":"center":"end"===f?"auto"===h?n>e?"right":n<e?"left":"center":n>e?"left":n<e?"right":"center":"center");var _={bottom:-1,middle:0,top:1};if("auto"===h){var w=_[x];c=-p*v*w,u=p*y*w}else{c=p*{left:1,center:0,right:-1}[b],u=p*_[x]}s+=c,l+=u}else c=p+3,-1!==f.indexOf("right")?(s=Math.max(e,n)-c,"auto"===b&&(b="right")):-1!==f.indexOf("left")?(s=Math.min(e,n)+c,"auto"===b&&(b="left")):(s=(e+n)/2,"auto"===b&&(b="center")),l=-1!==f.indexOf("top")?Math.min(t,r):-1!==f.indexOf("bottom")?Math.max(t,r):(t+r)/2,u=p,"bottom"===x?l-=u:"top"===x&&(l+=u);var j=d[x],k=o.label.font.size,T=a.height;return{textx:s+(T*j-k)*v,texty:l+-(T*j-k)*y,xanchor:b}}(b,_,x,w,n,G,a.bBox(T.node())),W=q.textx,Y=q.texty,X=q.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[X],y:Y,x:W,transform:"rotate("+G+","+W+","+Y+")"}).call(i.positionText,W,Y)}}},"./node_modules/plotly.js/src/components/shapes/display_outlines.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js").strTranslate,o=n("./node_modules/plotly.js/src/components/dragelement/index.js"),i=n("./node_modules/plotly.js/src/components/dragelement/helpers.js"),a=i.drawMode,s=i.selectMode,l=n("./node_modules/plotly.js/src/registry.js"),c=n("./node_modules/plotly.js/src/components/color/index.js"),u=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/constants.js"),d=u.i000,f=u.i090,h=u.i180,p=u.i270,m=n("./node_modules/plotly.js/src/components/shapes/handle_outline.js").clearOutlineControllers,g=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/helpers.js"),v=g.pointsOnRectangle,y=g.pointsOnEllipse,b=g.writePaths,x=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/newshapes.js").newShapes,_=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/newshapes.js").createShapeObj,w=n("./node_modules/plotly.js/src/components/selections/draw_newselection/newselections.js"),j=n("./node_modules/plotly.js/src/components/shapes/display_labels.js");function k(e,t){var n,r,o,i=e[t][1],a=e[t][2],s=e.length;return r=e[n=(t+1)%s][1],o=e[n][2],r===i&&o===a&&(r=e[n=(t+2)%s][1],o=e[n][2]),[n,r,o]}e.exports=function e(t,n,i,u){u||(u=0);var g=i.gd;function T(){e(t,n,i,u++),(y(t[0])||i.hasText)&&A({redrawing:!0})}function A(e){var t={};void 0!==i.isActiveShape&&(i.isActiveShape=!1,t=x(n,i)),void 0!==i.isActiveSelection&&(i.isActiveSelection=!1,t=w(n,i),g._fullLayout._reselect=!0),Object.keys(t).length&&l.call((e||{}).redrawing?"relayout":"_guiRelayout",g,t)}var M,S,C,E,L,O=g._fullLayout._zoomlayer,R=i.dragmode,I=a(R),P=s(R);((I||P)&&(g._fullLayout._outlining=!0),m(g),n.attr("d",b(t)),u||!i.isActiveShape&&!i.isActiveSelection)||(L=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e[n]=[];for(var o=0;o<r.length;o++){e[n][o]=[];for(var i=0;i<r[o].length;i++)e[n][o][i]=r[o][i]}}return e}([],t),function(e){M=[];for(var n=0;n<t.length;n++){var a=t[n],s=v(a),l=!s&&y(a);M[n]=[];for(var u=a.length,m=0;m<u;m++)if("Z"!==a[m][0]&&(!l||m===d||m===f||m===h||m===p)){var b,x=s&&i.isActiveSelection;x&&(b=k(a,m));var _=a[m][1],w=a[m][2],j=e.append(x?"rect":"circle").attr("data-i",n).attr("data-j",m).style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(x){var T=b[1]-_,A=b[2]-w,S=A?5:Math.max(Math.min(25,Math.abs(T)-5),5),C=T?5:Math.max(Math.min(25,Math.abs(A)-5),5);j.classed(A?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",S).attr("height",C).attr("x",_-S/2).attr("y",w-C/2).attr("transform",r(T/2,A/2))}else j.classed("cursor-grab",!0).attr("r",5).attr("cx",_).attr("cy",w);M[n][m]={element:j.node(),gd:g,prepFn:N,doneFn:B,clickFn:U},o.init(M[n][m])}}}(O.append("g").attr("class","outline-controllers")),function(){if(S=[],!t.length)return;S[0]={element:n[0][0],gd:g,prepFn:V,doneFn:G,clickFn:q},o.init(S[0])}());if(I&&i.hasText){var D=O.select(".label-temp"),z=_(n,i,i.dragmode);j(g,"label-temp",z,D)}function N(e){C=+e.srcElement.getAttribute("data-i"),E=+e.srcElement.getAttribute("data-j"),M[C][E].moveFn=F}function F(e,n){if(t.length){var r=L[C][E][1],o=L[C][E][2],a=t[C],s=a.length;if(v(a)){var l=e,c=n;if(i.isActiveSelection)k(a,E)[1]===a[E][1]?c=0:l=0;for(var u=0;u<s;u++)if(u!==E){var d=a[u];d[1]===a[E][1]&&(d[1]=r+l),d[2]===a[E][2]&&(d[2]=o+c)}if(a[E][1]=r+l,a[E][2]=o+c,!v(a))for(var f=0;f<s;f++)for(var h=0;h<a[f].length;h++)a[f][h]=L[C][f][h]}else a[E][1]=r+e,a[E][2]=o+n;T()}}function B(){A()}function U(e,n){if(2===e){C=+n.srcElement.getAttribute("data-i"),E=+n.srcElement.getAttribute("data-j");var r=t[C];v(r)||y(r)||function(){if(t.length&&t[C]&&t[C].length){for(var e=[],n=0;n<t[C].length;n++)n!==E&&e.push(t[C][n]);e.length>1&&(2!==e.length||"Z"!==e[1][0])&&(0===E&&(e[0][0]="M"),t[C]=e,T(),A())}}()}}function H(e,n){!function(e,n){if(t.length)for(var r=0;r<t.length;r++)for(var o=0;o<t[r].length;o++)for(var i=0;i+2<t[r][o].length;i+=2)t[r][o][i+1]=L[r][o][i+1]+e,t[r][o][i+2]=L[r][o][i+2]+n}(e,n),T()}function V(e){(C=+e.srcElement.getAttribute("data-i"))||(C=0),S[C].moveFn=H}function G(){A()}function q(e){2===e&&function(e){if(!s(e._fullLayout.dragmode))return;m(e);var t=e._fullLayout._activeSelectionIndex,n=(e.layout||{}).selections||[];if(t<n.length){for(var r=[],o=0;o<n.length;o++)o!==t&&r.push(n[o]);delete e._fullLayout._activeSelectionIndex;var i=e._fullLayout.selections[t];e._fullLayout._deselect={xref:i.xref,yref:i.yref},l.call("_guiRelayout",e,{selections:r})}}(g)}}},"./node_modules/plotly.js/src/components/shapes/draw.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/lib/index.js"),a=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),s=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/helpers.js").readPaths,l=n("./node_modules/plotly.js/src/components/shapes/display_outlines.js"),c=n("./node_modules/plotly.js/src/components/shapes/display_labels.js"),u=n("./node_modules/plotly.js/src/components/shapes/handle_outline.js").clearOutlineControllers,d=n("./node_modules/plotly.js/src/components/color/index.js"),f=n("./node_modules/plotly.js/src/components/drawing/index.js"),h=n("./node_modules/plotly.js/src/plot_api/plot_template.js").arrayEditor,p=n("./node_modules/plotly.js/src/components/dragelement/index.js"),m=n("./node_modules/plotly.js/src/lib/setcursor.js"),g=n("./node_modules/plotly.js/src/components/shapes/constants.js"),v=n("./node_modules/plotly.js/src/components/shapes/helpers.js"),y=v.getPathString;function b(e){var t=e._fullLayout;for(var n in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove(),t._plots){var r=t._plots[n].shapelayer;r&&(r.selectAll("path").remove(),r.selectAll("text").remove())}for(var o=0;o<t.shapes.length;o++)!0===t.shapes[o].visible&&w(e,o)}function x(e){return!!e._fullLayout._outlining}function _(e){return!e._context.edits.shapePosition}function w(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var n=v.makeShapesOptionsAndPlotinfo(e,t),u=n.options,w=n.plotinfo;if(u._input&&!0===u.visible)if("above"===u.layer)A(e._fullLayout._shapeUpperLayer);else if("paper"===u.xref||"paper"===u.yref)A(e._fullLayout._shapeLowerLayer);else if("between"===u.layer)A(w.shapelayerBetween);else{if(w._hadPlotinfo)A((w.mainplotinfo||w).shapelayer);else A(e._fullLayout._shapeLowerLayer)}function A(n){var A=y(e,u),M={"data-index":t,"fill-rule":u.fillrule,d:A},S=u.opacity,C=u.fillcolor,E=u.line.width?u.line.color:"rgba(0,0,0,0)",L=u.line.width,O=u.line.dash;L||!0!==u.editable||(L=5,O="solid");var R="Z"!==A[A.length-1],I=_(e)&&u.editable&&e._fullLayout._activeShapeIndex===t;I&&(C=R?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,S=e._fullLayout.activeshape.opacity);var P,D=n.append("g").classed("shape-group",!0).attr({"data-index":t}),z=D.append("path").attr(M).style("opacity",S).call(d.stroke,E).call(d.fill,C).call(f.dashLine,O,L);if(j(D,e,u),c(e,t,u,D),(I||e._context.edits.shapePosition)&&(P=h(e.layout,"shapes",u)),I){z.style({cursor:"move"});var N={element:z.node(),plotinfo:w,gd:e,editHelpers:P,hasText:u.label.text||u.label.texttemplate,isActiveShape:!0},F=s(A,e);l(F,z,N)}else e._context.edits.shapePosition?function(e,t,n,s,l,u){var d,h,b,_,w,T,A,M,S,C,E,L,O,R,I,P,D="pixel"===n.xsizemode,z="pixel"===n.ysizemode,N="line"===n.type,F="path"===n.type,B=u.modifyItem,U=r.select(t.node().parentNode),H=a.getFromId(e,n.xref),V=a.getRefType(n.xref),G=a.getFromId(e,n.yref),q=a.getRefType(n.yref),W=n.x0shift,Y=n.x1shift,X=n.y0shift,Z=n.y1shift,$=function(t,n){return v.getDataToPixel(e,H,n,!1,V)(t)},K=function(t,n){return v.getDataToPixel(e,G,n,!0,q)(t)},J=v.getPixelToData(e,H,!1,V),Q=v.getPixelToData(e,G,!0,q),ee=N?function(){var e=Math.max(n.line.width,10),r=l.append("g").attr("data-index",s).attr("drag-helper",!0);r.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":e,"stroke-opacity":"0"});var o={"fill-opacity":"0"},i=Math.max(e/2,10);return r.append("circle").attr({"data-line-point":"start-point",cx:D?$(n.xanchor)+n.x0:$(n.x0,W),cy:z?K(n.yanchor)-n.y0:K(n.y0,X),r:i}).style(o).classed("cursor-grab",!0),r.append("circle").attr({"data-line-point":"end-point",cx:D?$(n.xanchor)+n.x1:$(n.x1,Y),cy:z?K(n.yanchor)-n.y1:K(n.y1,Z),r:i}).style(o).classed("cursor-grab",!0),r}():t,te={element:ee.node(),gd:e,prepFn:function(r){if(x(e))return;D&&(w=$(n.xanchor));z&&(T=K(n.yanchor));"path"===n.type?I=n.path:(d=D?n.x0:$(n.x0),h=z?n.y0:K(n.y0),b=D?n.x1:$(n.x1),_=z?n.y1:K(n.y1));d<b?(S=d,O="x0",C=b,R="x1"):(S=b,O="x1",C=d,R="x0");!z&&h<_||z&&h>_?(A=h,E="y0",M=_,L="y1"):(A=_,E="y1",M=h,L="y0");ne(r),ie(l,n),function(e,t,n){var r=t.xref,o=t.yref,i=a.getFromId(n,r),s=a.getFromId(n,o),l="";"paper"===r||i.autorange||(l+=r);"paper"===o||s.autorange||(l+=o);f.setClipUrl(e,l?"clip"+n._fullLayout._uid+l:null,n)}(t,n,e),te.moveFn="move"===P?re:oe,te.altKey=r.altKey},doneFn:function(){if(x(e))return;m(t),ae(l),j(t,e,n),o.call("_guiRelayout",e,u.getUpdateObj())},clickFn:function(){if(x(e))return;ae(l)}};function ne(n){if(x(e))P=null;else if(N)P="path"===n.target.tagName?"move":"start-point"===n.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var r=te.element.getBoundingClientRect(),o=r.right-r.left,i=r.bottom-r.top,a=n.clientX-r.left,s=n.clientY-r.top,l=!F&&o>10&&i>10&&!n.shiftKey?p.getCursor(a/o,1-s/i):"move";m(t,l),P=l.split("-")[0]}}function re(r,o){if("path"===n.type){var i=function(e){return e},a=i,u=i;D?B("xanchor",n.xanchor=J(w+r)):(a=function(e){return J($(e)+r)},H&&"date"===H.type&&(a=v.encodeDate(a))),z?B("yanchor",n.yanchor=Q(T+o)):(u=function(e){return Q(K(e)+o)},G&&"date"===G.type&&(u=v.encodeDate(u))),B("path",n.path=k(I,a,u))}else D?B("xanchor",n.xanchor=J(w+r)):(B("x0",n.x0=J(d+r)),B("x1",n.x1=J(b+r))),z?B("yanchor",n.yanchor=Q(T+o)):(B("y0",n.y0=Q(h+o)),B("y1",n.y1=Q(_+o)));t.attr("d",y(e,n)),ie(l,n),c(e,s,n,U)}function oe(r,o){if(F){var i=function(e){return e},a=i,u=i;D?B("xanchor",n.xanchor=J(w+r)):(a=function(e){return J($(e)+r)},H&&"date"===H.type&&(a=v.encodeDate(a))),z?B("yanchor",n.yanchor=Q(T+o)):(u=function(e){return Q(K(e)+o)},G&&"date"===G.type&&(u=v.encodeDate(u))),B("path",n.path=k(I,a,u))}else if(N){if("resize-over-start-point"===P){var f=d+r,p=z?h-o:h+o;B("x0",n.x0=D?f:J(f)),B("y0",n.y0=z?p:Q(p))}else if("resize-over-end-point"===P){var m=b+r,g=z?_-o:_+o;B("x1",n.x1=D?m:J(m)),B("y1",n.y1=z?g:Q(g))}}else{var x=function(e){return-1!==P.indexOf(e)},j=x("n"),V=x("s"),q=x("w"),W=x("e"),Y=j?A+o:A,X=V?M+o:M,Z=q?S+r:S,ee=W?C+r:C;z&&(j&&(Y=A-o),V&&(X=M-o)),(!z&&X-Y>10||z&&Y-X>10)&&(B(E,n[E]=z?Y:Q(Y)),B(L,n[L]=z?X:Q(X))),ee-Z>10&&(B(O,n[O]=D?Z:J(Z)),B(R,n[R]=D?ee:J(ee)))}t.attr("d",y(e,n)),ie(l,n),c(e,s,n,U)}function ie(e,t){(D||z)&&function(){var n="path"!==t.type,r=e.selectAll(".visual-cue").data([0]);r.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var o=$(D?t.xanchor:i.midRange(n?[t.x0,t.x1]:v.extractPathCoords(t.path,g.paramIsX))),a=K(z?t.yanchor:i.midRange(n?[t.y0,t.y1]:v.extractPathCoords(t.path,g.paramIsY)));if(o=v.roundPositionForSharpStrokeRendering(o,1),a=v.roundPositionForSharpStrokeRendering(a,1),D&&z){var s="M"+(o-1-1)+","+(a-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";r.attr("d",s)}else if(D){var l="M"+(o-1-1)+","+(a-9-1)+"v18 h2 v-18 Z";r.attr("d",l)}else{var c="M"+(o-9-1)+","+(a-1-1)+"h18 v2 h-18 Z";r.attr("d",c)}}()}function ae(e){e.selectAll(".visual-cue").remove()}p.init(te),ee.node().onmousemove=ne}(e,z,u,t,n,P):!0===u.editable&&z.style("pointer-events",R||d.opacity(C)*S<=.5?"stroke":"all");z.node().addEventListener("click",(function(){return function(e,t){if(!_(e))return;var n=+t.node().getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex)return void T(e);e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=T,b(e)}}(e,z)}))}}function j(e,t,n){var r=(n.xref+n.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");f.setClipUrl(e,r?"clip"+t._fullLayout._uid+r:null,t)}function k(e,t,n){return e.replace(g.segmentRE,(function(e){var r=0,o=e.charAt(0),i=g.paramIsX[o],a=g.paramIsY[o],s=g.numParams[o];return o+e.substr(1).replace(g.paramRE,(function(e){return r>=s||(i[r]?e=t(e):a[r]&&(e=n(e)),r++),e}))}))}function T(e){_(e)&&(e._fullLayout._activeShapeIndex>=0&&(u(e),delete e._fullLayout._activeShapeIndex,b(e)))}e.exports={draw:b,drawOne:w,eraseActiveShape:function(e){if(!_(e))return;u(e);var t=e._fullLayout._activeShapeIndex,n=(e.layout||{}).shapes||[];if(t<n.length){for(var r=[],i=0;i<n.length;i++)i!==t&&r.push(n[i]);return delete e._fullLayout._activeShapeIndex,o.call("_guiRelayout",e,{shapes:r})}},drawLabel:c}},"./node_modules/plotly.js/src/components/shapes/draw_newshape/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plot_api/edit_types.js").overrideAll,o=n("./node_modules/plotly.js/src/plots/attributes.js"),i=n("./node_modules/plotly.js/src/plots/font_attributes.js"),a=n("./node_modules/plotly.js/src/components/drawing/attributes.js").dash,s=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,l=n("./node_modules/plotly.js/src/plots/template_attributes.js").shapeTexttemplateAttrs,c=n("./node_modules/plotly.js/src/components/shapes/label_texttemplate.js");e.exports=r({newshape:{visible:s({},o.visible,{description:["Determines whether or not new shape is visible.","If *legendonly*, the shape is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")}),showlegend:{valType:"boolean",dflt:!1,description:["Determines whether or not new","shape is shown in the legend."].join(" ")},legend:s({},o.legend,{description:["Sets the reference to a legend to show new shape in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")}),legendgroup:s({},o.legendgroup,{description:["Sets the legend group for new shape.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")}),legendgrouptitle:{text:s({},o.legendgrouptitle.text,{}),font:i({description:["Sets this legend group's title font."].join(" ")})},legendrank:s({},o.legendrank,{description:["Sets the legend rank for new shape.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items."].join(" ")}),legendwidth:s({},o.legendwidth,{description:"Sets the width (in px or fraction) of the legend for new shape."}),line:{color:{valType:"color",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:0,dflt:4,description:"Sets the line width (in px)."},dash:s({},a,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:["Sets the color filling new shapes' interior.","Please note that if using a fillcolor with alpha greater than half,","drag inside the active shape starts moving the shape underneath,","otherwise a new shape could be started over."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",description:["Determines the path's interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,description:"Sets the opacity of new shapes."},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",description:["Specifies whether new shapes are drawn below gridlines (*below*),","between gridlines and traces (*between*) or above traces (*above*)."].join(" ")},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",description:["When `dragmode` is set to *drawrect*, *drawline* or *drawcircle*","this limits the drag to be horizontal, vertical or diagonal.","Using *diagonal* there is no limit e.g. in drawing lines in any direction.","*ortho* limits the draw to be either horizontal or vertical.","*horizontal* allows horizontal extend.","*vertical* allows vertical extend."].join(" ")},name:s({},o.name,{description:["Sets new shape name.","The name appears as the legend item."].join(" ")}),label:{text:{valType:"string",dflt:"",description:["Sets the text to display with the new shape.","It is also used for legend item if `name` is not provided."].join(" ")},texttemplate:l({newshape:!0},{keys:Object.keys(c)}),font:i({description:"Sets the new shape label text font."}),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"],description:["Sets the position of the label text relative to the new shape.","Supported values for rectangles, circles and paths are","*top left*, *top center*, *top right*, *middle left*,","*middle center*, *middle right*, *bottom left*, *bottom center*,","and *bottom right*.","Supported values for lines are *start*, *middle*, and *end*.","Default: *middle center* for rectangles, circles, and paths; *middle* for lines."].join(" ")},textangle:{valType:"angle",dflt:"auto",description:["Sets the angle at which the label text is drawn","with respect to the horizontal. For lines, angle *auto*","is the same angle as the line. For all other shapes,","angle *auto* is horizontal."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",description:["Sets the label's horizontal position anchor","This anchor binds the specified `textposition` to the *left*, *center*","or *right* of the label text.","For example, if `textposition` is set to *top right* and","`xanchor` to *right* then the right-most portion of the","label text lines up with the right-most edge of the","new shape."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],description:["Sets the label's vertical position anchor","This anchor binds the specified `textposition` to the *top*, *middle*","or *bottom* of the label text.","For example, if `textposition` is set to *top right* and","`yanchor` to *top* then the top-most portion of the","label text lines up with the top-most edge of the","new shape."].join(" ")},padding:{valType:"number",dflt:3,min:0,description:"Sets padding (in px) between edge of label and edge of new shape."}}},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,description:"Sets the opacity of the active shape."}}},"none","from-root")},"./node_modules/plotly.js/src/components/shapes/draw_newshape/constants.js":function(e,t,n){"use strict";e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},"./node_modules/plotly.js/src/components/shapes/draw_newshape/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/color/index.js"),o=n("./node_modules/plotly.js/src/lib/index.js");e.exports=function(e,t,n){if(n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),o.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity"),n("newshape.line.width")){var i=(e||{}).plot_bgcolor||"#FFF";n("newshape.line.color",r.contrast(i)),n("newshape.line.dash")}var a="drawline"===e.dragmode,s=n("newshape.label.text"),l=n("newshape.label.texttemplate");if(s||l){n("newshape.label.textangle");var c=n("newshape.label.textposition",a?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",function(e,t){return e?"bottom":-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle"}(a,c)),n("newshape.label.padding"),o.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}},"./node_modules/plotly.js/src/components/shapes/draw_newshape/helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/parse-svg-path/index.js"),o=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/constants.js"),i=o.CIRCLE_SIDES,a=o.SQRT2,s=n("./node_modules/plotly.js/src/components/selections/helpers.js"),l=s.p2r,c=s.r2p,u=[0,3,4,5,6,1,2],d=[0,3,4,1,2];function f(e,t){return Math.abs(e-t)<=1e-6}function h(e,t){var n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(n*n+r*r)}t.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var n="",r=0;r<t;r++)for(var o=e[r].length,i=0;i<o;i++){var a=e[r][i][0];if("Z"===a)n+="Z";else for(var s=e[r][i].length,l=0;l<s;l++){var c=l;"Q"===a||"S"===a?c=d[l]:"C"===a&&(c=u[l]),n+=e[r][i][c],l>0&&l<s-1&&(n+=",")}}return n},t.readPaths=function(e,t,n,o){var a,s,u,d=r(e),f=[],h=-1,p=0,m=0,g=function(){s=p,u=m};g();for(var v=0;v<d.length;v++){var y,b,x,_,w=[],j=d[v][0],k=j;switch(j){case"M":h++,f[h]=[],p=+d[v][1],m=+d[v][2],w.push([k,p,m]),g();break;case"Q":case"S":y=+d[v][1],x=+d[v][2],p=+d[v][3],m=+d[v][4],w.push([k,p,m,y,x]);break;case"C":y=+d[v][1],x=+d[v][2],b=+d[v][3],_=+d[v][4],p=+d[v][5],m=+d[v][6],w.push([k,p,m,y,x,b,_]);break;case"T":case"L":p=+d[v][1],m=+d[v][2],w.push([k,p,m]);break;case"H":k="L",p=+d[v][1],w.push([k,p,m]);break;case"V":k="L",m=+d[v][1],w.push([k,p,m]);break;case"A":k="L";var T=+d[v][1],A=+d[v][2];+d[v][4]||(T=-T,A=-A);var M=p-T,S=m;for(a=1;a<=i/2;a++){var C=2*Math.PI*a/i;w.push([k,M+T*Math.cos(C),S+A*Math.sin(C)])}break;case"Z":p===s&&m===u||(p=s,m=u,w.push([k,p,m]))}for(var E=(n||{}).domain,L=t._fullLayout._size,O=n&&"pixel"===n.xsizemode,R=n&&"pixel"===n.ysizemode,I=!1===o,P=0;P<w.length;P++){for(a=0;a+2<7;a+=2){var D=w[P][a+1],z=w[P][a+2];void 0!==D&&void 0!==z&&(p=D,m=z,n&&(n.xaxis&&n.xaxis.p2r?(I&&(D-=n.xaxis._offset),D=O?c(n.xaxis,n.xanchor)+D:l(n.xaxis,D)):(I&&(D-=L.l),E?D=E.x[0]+D/L.w:D/=L.w),n.yaxis&&n.yaxis.p2r?(I&&(z-=n.yaxis._offset),z=R?c(n.yaxis,n.yanchor)-z:l(n.yaxis,z)):(I&&(z-=L.t),z=E?E.y[1]-z/L.h:1-z/L.h)),w[P][a+1]=D,w[P][a+2]=z)}f[h].push(w[P].slice())}}return f},t.pointsOnRectangle=function(e){if(5!==e.length)return!1;for(var t=1;t<3;t++){if(!f(e[0][t]-e[1][t],e[3][t]-e[2][t]))return!1;if(!f(e[0][t]-e[3][t],e[1][t]-e[2][t]))return!1}return!(!f(e[0][1],e[1][1])&&!f(e[0][1],e[3][1]))&&!!(h(e[0],e[1])*h(e[0],e[3]))},t.pointsOnEllipse=function(e){var t=e.length;if(t!==i+1)return!1;t=i;for(var n=0;n<t;n++){var r=(2*t-n)%t,o=(t/2+r)%t,a=(t/2+n)%t;if(!f(h(e[n],e[a]),h(e[r],e[o])))return!1}return!0},t.handleEllipse=function(e,n,r){if(!e)return[n,r];var o=t.ellipseOver({x0:n[0],y0:n[1],x1:r[0],y1:r[1]}),s=(o.x1+o.x0)/2,l=(o.y1+o.y0)/2,c=(o.x1-o.x0)/2,u=(o.y1-o.y0)/2;c||(c=u/=a),u||(u=c/=a);for(var d=[],f=0;f<i;f++){var h=2*f*Math.PI/i;d.push([s+c*Math.cos(h),l+u*Math.sin(h)])}return d},t.ellipseOver=function(e){var t=e.x0,n=e.y0,r=e.x1,o=e.y1,i=r-t,s=o-n,l=((t-=i)+r)/2,c=((n-=s)+o)/2;return{x0:l-(i*=a),y0:c-(s*=a),x1:l+i,y1:c+s}},t.fixDatesForPaths=function(e,t,n){var r="date"===t.type,o="date"===n.type;if(!r&&!o)return e;for(var i=0;i<e.length;i++)for(var a=0;a<e[i].length;a++)for(var s=0;s+2<e[i][a].length;s+=2)r&&(e[i][a][s+1]=e[i][a][s+1].replace(" ","_")),o&&(e[i][a][s+2]=e[i][a][s+2].replace(" ","_"));return e}},"./node_modules/plotly.js/src/components/shapes/draw_newshape/newshapes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/dragelement/helpers.js"),o=r.drawMode,i=r.openMode,a=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/constants.js"),s=a.i000,l=a.i090,c=a.i180,u=a.i270,d=a.cos45,f=a.sin45,h=n("./node_modules/plotly.js/src/components/selections/helpers.js"),p=h.p2r,m=h.r2p,g=n("./node_modules/plotly.js/src/components/shapes/handle_outline.js").clearOutline,v=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/helpers.js"),y=v.readPaths,b=v.writePaths,x=v.ellipseOver,_=v.fixDatesForPaths;function w(e,t,n){var r,o=e[0][0],a=t.gd,h=o.getAttribute("d"),g=a._fullLayout.newshape,v=t.plotinfo,w=t.isActiveShape,j=v.xaxis,k=v.yaxis,T=!!v.domain||!v.xaxis,A=!!v.domain||!v.yaxis,M=i(n),S=y(h,a,v,w),C={editable:!0,visible:g.visible,name:g.name,showlegend:g.showlegend,legend:g.legend,legendwidth:g.legendwidth,legendgroup:g.legendgroup,legendgrouptitle:{text:g.legendgrouptitle.text,font:g.legendgrouptitle.font},legendrank:g.legendrank,label:g.label,xref:T?"paper":j._id,yref:A?"paper":k._id,layer:g.layer,opacity:g.opacity,line:{color:g.line.color,width:g.line.width,dash:g.line.dash}};if(M||(C.fillcolor=g.fillcolor,C.fillrule=g.fillrule),1===S.length&&(r=S[0]),r&&5===r.length&&"drawrect"===n)C.type="rect",C.x0=r[0][1],C.y0=r[0][2],C.x1=r[2][1],C.y1=r[2][2];else if(r&&"drawline"===n)C.type="line",C.x0=r[0][1],C.y0=r[0][2],C.x1=r[1][1],C.y1=r[1][2];else if(r&&"drawcircle"===n){C.type="circle";var E=r[s][1],L=r[l][1],O=r[c][1],R=r[u][1],I=r[s][2],P=r[l][2],D=r[c][2],z=r[u][2],N=v.xaxis&&("date"===v.xaxis.type||"log"===v.xaxis.type),F=v.yaxis&&("date"===v.yaxis.type||"log"===v.yaxis.type);N&&(E=m(v.xaxis,E),L=m(v.xaxis,L),O=m(v.xaxis,O),R=m(v.xaxis,R)),F&&(I=m(v.yaxis,I),P=m(v.yaxis,P),D=m(v.yaxis,D),z=m(v.yaxis,z));var B=(L+R)/2,U=(I+D)/2,H=x({x0:B,y0:U,x1:B+(R-L+O-E)/2*d,y1:U+(z-P+D-I)/2*f});N&&(H.x0=p(v.xaxis,H.x0),H.x1=p(v.xaxis,H.x1)),F&&(H.y0=p(v.yaxis,H.y0),H.y1=p(v.yaxis,H.y1)),C.x0=H.x0,C.y0=H.y0,C.x1=H.x1,C.y1=H.y1}else C.type="path",j&&k&&_(S,j,k),C.path=b(S),r=null;return C}e.exports={newShapes:function(e,t){if(e.length&&e[0][0]){var n=t.gd,r=t.isActiveShape,i=t.dragmode,a=(n.layout||{}).shapes||[];if(!o(i)&&void 0!==r){var s=n._fullLayout._activeShapeIndex;if(s<a.length)switch(n._fullLayout.shapes[s].type){case"rect":i="drawrect";break;case"circle":i="drawcircle";break;case"line":i="drawline";break;case"path":var l=a[s].path||"";i="Z"===l[l.length-1]?"drawclosedpath":"drawopenpath"}}var c=w(e,t,i);g(n);for(var u=t.editHelpers,d=(u||{}).modifyItem,f=[],h=0;h<a.length;h++){var p=n._fullLayout.shapes[h];if(f[h]=p._input,void 0!==r&&h===n._fullLayout._activeShapeIndex){var m=c;switch(p.type){case"line":case"rect":case"circle":d("x0",m.x0-(p.x0shift||0)),d("x1",m.x1-(p.x1shift||0)),d("y0",m.y0-(p.y0shift||0)),d("y1",m.y1-(p.y1shift||0));break;case"path":d("path",m.path)}}}return void 0===r?(f.push(c),f):u?u.getUpdateObj():{}}},createShapeObj:w}},"./node_modules/plotly.js/src/components/shapes/handle_outline.js":function(e,t,n){"use strict";e.exports={clearOutlineControllers:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()},clearOutline:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}}},"./node_modules/plotly.js/src/components/shapes/helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/shapes/constants.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/plots/cartesian/axes.js");function a(e,t){var n=0;return(t=t||0)&&e&&("category"===e.type||"multicategory"===e.type)&&(n=(e.r2p(1)-e.r2p(0))*t),n}t.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},t.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},t.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},t.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},t.extractPathCoords=function(e,t,n){var i=[];return e.match(r.segmentRE).forEach((function(e){var a=t[e.charAt(0)].drawn;if(void 0!==a){var s=e.substr(1).match(r.paramRE);if(s&&!(s.length<a)){var l=s[a],c=n?l:o.cleanNumber(l);i.push(c)}}})),i},t.getDataToPixel=function(e,n,r,o,i){var s,l=e._fullLayout._size;if(n)if("domain"===i)s=function(e){return n._length*(o?1-e:e)+n._offset};else{var c=t.shapePositionToRange(n);s=function(e){var t=a(n,r);return n._offset+n.r2p(c(e,!0))+t},"date"===n.type&&(s=t.decodeDate(s))}else s=o?function(e){return l.t+l.h*(1-e)}:function(e){return l.l+l.w*e};return s},t.getPixelToData=function(e,n,r,o){var i,a=e._fullLayout._size;if(n)if("domain"===o)i=function(e){var t=(e-n._offset)/n._length;return r?1-t:t};else{var s=t.rangeToShapePosition(n);i=function(e){return s(n.p2r(e-n._offset))}}else i=r?function(e){return 1-(e-a.t)/a.h}:function(e){return(e-a.l)/a.w};return i},t.roundPositionForSharpStrokeRendering=function(e,t){var n=1===Math.round(t%2),r=Math.round(e);return n?r+.5:r},t.makeShapesOptionsAndPlotinfo=function(e,t){var n=e._fullLayout.shapes[t]||{},r=e._fullLayout._plots[n.xref+n.yref];return!!r?r._hadPlotinfo=!0:(r={},n.xref&&"paper"!==n.xref&&(r.xaxis=e._fullLayout[n.xref+"axis"]),n.yref&&"paper"!==n.yref&&(r.yaxis=e._fullLayout[n.yref+"axis"])),r.xsizemode=n.xsizemode,r.ysizemode=n.ysizemode,r.xanchor=n.xanchor,r.yanchor=n.yanchor,{options:n,plotinfo:r}},t.makeSelectionsOptionsAndPlotinfo=function(e,t){var n=e._fullLayout.selections[t]||{},r=e._fullLayout._plots[n.xref+n.yref];return!!r?r._hadPlotinfo=!0:(r={},n.xref&&(r.xaxis=e._fullLayout[n.xref+"axis"]),n.yref&&(r.yaxis=e._fullLayout[n.yref+"axis"])),{options:n,plotinfo:r}},t.getPathString=function(e,n){var s,l,c,u,d,f,h,p,m=n.type,g=i.getRefType(n.xref),v=i.getRefType(n.yref),y=i.getFromId(e,n.xref),b=i.getFromId(e,n.yref),x=e._fullLayout._size,_=a(y,n.x0shift),w=a(y,n.x1shift),j=a(b,n.y0shift),k=a(b,n.y1shift);if(y?"domain"===g?l=function(e){return y._offset+y._length*e}:(s=t.shapePositionToRange(y),l=function(e){return y._offset+y.r2p(s(e,!0))}):l=function(e){return x.l+x.w*e},b?"domain"===v?u=function(e){return b._offset+b._length*(1-e)}:(c=t.shapePositionToRange(b),u=function(e){return b._offset+b.r2p(c(e,!0))}):u=function(e){return x.t+x.h*(1-e)},"path"===m)return y&&"date"===y.type&&(l=t.decodeDate(l)),b&&"date"===b.type&&(u=t.decodeDate(u)),function(e,t,n){var i=e.path,a=e.xsizemode,s=e.ysizemode,l=e.xanchor,c=e.yanchor;return i.replace(r.segmentRE,(function(e){var i=0,u=e.charAt(0),d=r.paramIsX[u],f=r.paramIsY[u],h=r.numParams[u],p=e.substr(1).replace(r.paramRE,(function(e){return d[i]?e="pixel"===a?t(l)+Number(e):t(e):f[i]&&(e="pixel"===s?n(c)-Number(e):n(e)),++i>h&&(e="X"),e}));return i>h&&(p=p.replace(/[\s,]*X.*/,""),o.log("Ignoring extra params in segment "+e)),u+p}))}(n,l,u);if("pixel"===n.xsizemode){var T=l(n.xanchor);d=T+n.x0+_,f=T+n.x1+w}else d=l(n.x0)+_,f=l(n.x1)+w;if("pixel"===n.ysizemode){var A=u(n.yanchor);h=A-n.y0+j,p=A-n.y1+k}else h=u(n.y0)+j,p=u(n.y1)+k;if("line"===m)return"M"+d+","+h+"L"+f+","+p;if("rect"===m)return"M"+d+","+h+"H"+f+"V"+p+"H"+d+"Z";var M=(d+f)/2,S=(h+p)/2,C=Math.abs(M-d),E=Math.abs(S-h),L="A"+C+","+E,O=M+C+","+S;return"M"+O+L+" 0 1,1 "+(M+","+(S-E))+L+" 0 0,1 "+O+"Z"}},"./node_modules/plotly.js/src/components/shapes/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/shapes/draw.js");e.exports={moduleType:"component",name:"shapes",layoutAttributes:n("./node_modules/plotly.js/src/components/shapes/attributes.js"),supplyLayoutDefaults:n("./node_modules/plotly.js/src/components/shapes/defaults.js"),supplyDrawNewShapeDefaults:n("./node_modules/plotly.js/src/components/shapes/draw_newshape/defaults.js"),includeBasePlot:n("./node_modules/plotly.js/src/plots/cartesian/include_components.js")("shapes"),calcAutorange:n("./node_modules/plotly.js/src/components/shapes/calc_autorange.js"),draw:r.draw,drawOne:r.drawOne}},"./node_modules/plotly.js/src/components/shapes/label_texttemplate.js":function(e,t,n){"use strict";function r(e,t){return t?t.d2l(e):e}function o(e,t){return t?t.l2d(e):e}function i(e){return e.x0shift||0}function a(e){return e.x1shift||0}function s(e){return e.y0shift||0}function l(e){return e.y1shift||0}function c(e,t){return r(e.x1,t)+a(e)-r(e.x0,t)-i(e)}function u(e,t,n){return r(e.y1,n)+l(e)-r(e.y0,n)-s(e)}e.exports={x0:function(e){return e.x0},x1:function(e){return e.x1},y0:function(e){return e.y0},y1:function(e){return e.y1},slope:function(e,t,n){return"line"!==e.type?void 0:u(e,0,n)/c(e,t)},dx:c,dy:u,width:function(e,t){return Math.abs(c(e,t))},height:function(e,t,n){return Math.abs(u(e,0,n))},length:function(e,t,n){return"line"!==e.type?void 0:Math.sqrt(Math.pow(c(e,t),2)+Math.pow(u(e,0,n),2))},xcenter:function(e,t){return o((r(e.x1,t)+a(e)+r(e.x0,t)+i(e))/2,t)},ycenter:function(e,t,n){return o((r(e.y1,n)+l(e)+r(e.y0,n)+s(e))/2,n)}}},"./node_modules/plotly.js/src/components/sliders/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/font_attributes.js"),o=n("./node_modules/plotly.js/src/plots/pad_attributes.js"),i=n("./node_modules/plotly.js/src/lib/extend.js").extendDeepAll,a=n("./node_modules/plotly.js/src/plot_api/edit_types.js").overrideAll,s=n("./node_modules/plotly.js/src/plots/animation_attributes.js"),l=n("./node_modules/plotly.js/src/plot_api/plot_template.js").templatedArray,c=n("./node_modules/plotly.js/src/components/sliders/constants.js"),u=l("step",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not this step is included in the slider."].join(" ")},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",description:"Sets the text label to appear on the slider"},value:{valType:"string",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});e.exports=a(l("slider",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:u,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the x position (in normalized coordinates) of the slider."},pad:i(o({editType:"arraydraw"}),{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:s.transition.easing.values,dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:r({description:"Sets the font of the current value label text."})},font:r({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",dflt:c.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",dflt:c.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:c.railBorderColor,description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth,description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:c.tickLength,description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:c.tickColor,description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:c.minorTickLength,description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root")},"./node_modules/plotly.js/src/components/sliders/constants.js":function(e,t,n){"use strict";e.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}},"./node_modules/plotly.js/src/components/sliders/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/array_container_defaults.js"),i=n("./node_modules/plotly.js/src/components/sliders/attributes.js"),a=n("./node_modules/plotly.js/src/components/sliders/constants.js").name,s=i.steps;function l(e,t,n){function a(n,o){return r.coerce(e,t,i,n,o)}for(var s=o(e,t,{name:"steps",handleItemDefaults:c}),l=0,u=0;u<s.length;u++)s[u].visible&&l++;if(l<2?t.visible=!1:a("visible")){t._stepCount=l;var d=t._visibleSteps=r.filterVisible(s);(s[a("active")]||{}).visible||(t.active=d[0]._index),a("x"),a("y"),r.noneOrAll(e,t,["x","y"]),a("xanchor"),a("yanchor"),a("len"),a("lenmode"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),r.coerceFont(a,"font",n.font),a("currentvalue.visible")&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),r.coerceFont(a,"currentvalue.font",t.font)),a("transition.duration"),a("transition.easing"),a("bgcolor"),a("activebgcolor"),a("bordercolor"),a("borderwidth"),a("ticklen"),a("tickwidth"),a("tickcolor"),a("minorticklen")}}function c(e,t){function n(n,o){return r.coerce(e,t,s,n,o)}if("skip"===e.method||Array.isArray(e.args)?n("visible"):t.visible=!1){n("method"),n("args");var o=n("label","step-"+t._index);n("value",o),n("execute")}}e.exports=function(e,t){o(e,t,{name:a,handleItemDefaults:l})}},"./node_modules/plotly.js/src/components/sliders/draw.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/plots/plots.js"),i=n("./node_modules/plotly.js/src/components/color/index.js"),a=n("./node_modules/plotly.js/src/components/drawing/index.js"),s=n("./node_modules/plotly.js/src/lib/index.js"),l=s.strTranslate,c=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),u=n("./node_modules/plotly.js/src/plot_api/plot_template.js").arrayEditor,d=n("./node_modules/plotly.js/src/components/sliders/constants.js"),f=n("./node_modules/plotly.js/src/constants/alignment.js"),h=f.LINE_SPACING,p=f.FROM_TL,m=f.FROM_BR;function g(e){return d.autoMarginIdRoot+e._index}function v(e){return e._index}function y(e,t){var n=a.tester.selectAll("g."+d.labelGroupClass).data(t._visibleSteps);n.enter().append("g").classed(d.labelGroupClass,!0);var i=0,l=0;n.each((function(e){var n=_(r.select(this),{step:e},t).node();if(n){var o=a.bBox(n);l=Math.max(l,o.height),i=Math.max(i,o.width)}})),n.remove();var u=t._dims={};u.inputAreaWidth=Math.max(d.railWidth,d.gripHeight);var f=e._fullLayout._size;u.lx=f.l+f.w*t.x,u.ly=f.t+f.h*(1-t.y),"fraction"===t.lenmode?u.outerLength=Math.round(f.w*t.len):u.outerLength=t.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-t.pad.l-t.pad.r);var h=(u.inputAreaLength-2*d.stepInset)/(t._stepCount-1),v=i+d.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(v/h)),u.labelHeight=l,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,t.currentvalue.visible){var y=a.tester.append("g");n.each((function(e){var n=b(y,t,e.label),r=n.node()&&a.bBox(n.node())||{width:0,height:0},o=c.lineCount(n);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(r.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(r.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,o)})),u.currentValueTotalHeight=u.currentValueHeight+t.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+d.tickOffset+t.ticklen+d.labelOffset+u.labelHeight+t.pad.t+t.pad.b;var x="left";s.isRightAnchor(t)&&(u.lx-=u.outerLength,x="right"),s.isCenterAnchor(t)&&(u.lx-=u.outerLength/2,x="center");var w="top";s.isBottomAnchor(t)&&(u.ly-=u.height,w="bottom"),s.isMiddleAnchor(t)&&(u.ly-=u.height/2,w="middle"),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var j={y:t.y,b:u.height*m[w],t:u.height*p[w]};"fraction"===t.lenmode?(j.l=0,j.xl=t.x-t.len*p[x],j.r=0,j.xr=t.x+t.len*m[x]):(j.x=t.x,j.l=u.outerLength*p[x],j.r=u.outerLength*m[x]),o.autoMargin(e,g(t),j)}function b(e,t,n){if(t.currentvalue.visible){var r,o,i=t._dims;switch(t.currentvalue.xanchor){case"right":r=i.inputAreaLength-d.currentValueInset-i.currentValueMaxWidth,o="left";break;case"center":r=.5*i.inputAreaLength,o="middle";break;default:r=d.currentValueInset,o="left"}var l=s.ensureSingle(e,"text",d.labelClass,(function(e){e.attr({"text-anchor":o,"data-notex":1})})),u=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"==typeof n)u+=n;else{var f=t.steps[t.active].label,p=t._gd._fullLayout._meta;p&&(f=s.templateString(f,p)),u+=f}t.currentvalue.suffix&&(u+=t.currentvalue.suffix),l.call(a.font,t.currentvalue.font).text(u).call(c.convertToTspans,t._gd);var m=c.lineCount(l),g=(i.currentValueMaxLines+1-m)*t.currentvalue.font.size*h;return c.positionText(l,r,g),l}}function x(e,t,n){s.ensureSingle(e,"rect",d.gripRectClass,(function(r){r.call(T,t,e,n).style("pointer-events","all")})).attr({width:d.gripWidth,height:d.gripHeight,rx:d.gripRadius,ry:d.gripRadius}).call(i.stroke,n.bordercolor).call(i.fill,n.bgcolor).style("stroke-width",n.borderwidth+"px")}function _(e,t,n){var r=s.ensureSingle(e,"text",d.labelClass,(function(e){e.attr({"text-anchor":"middle","data-notex":1})})),o=t.step.label,i=n._gd._fullLayout._meta;return i&&(o=s.templateString(o,i)),r.call(a.font,n.font).text(o).call(c.convertToTspans,n._gd),r}function w(e,t){var n=s.ensureSingle(e,"g",d.labelsClass),o=t._dims,i=n.selectAll("g."+d.labelGroupClass).data(o.labelSteps);i.enter().append("g").classed(d.labelGroupClass,!0),i.exit().remove(),i.each((function(e){var n=r.select(this);n.call(_,e,t),a.setTranslate(n,S(t,e.fraction),d.tickOffset+t.ticklen+t.font.size*h+d.labelOffset+o.currentValueTotalHeight)}))}function j(e,t,n,r,o){var i=Math.round(r*(n._stepCount-1)),a=n._visibleSteps[i]._index;a!==n.active&&k(e,t,n,a,!0,o)}function k(e,t,n,r,i,a){var s=n.active;n.active=r,u(e.layout,d.name,n).applyUpdate("active",r);var l=n.steps[n.active];t.call(M,n,a),t.call(b,n),e.emit("plotly_sliderchange",{slider:n,step:n.steps[n.active],interaction:i,previousActive:s}),l&&l.method&&i&&(t._nextMethod?(t._nextMethod.step=l,t._nextMethod.doCallback=i,t._nextMethod.doTransition=a):(t._nextMethod={step:l,doCallback:i,doTransition:a},t._nextMethodRaf=window.requestAnimationFrame((function(){var n=t._nextMethod.step;n.method&&(n.execute&&o.executeAPICommand(e,n.method,n.args),t._nextMethod=null,t._nextMethodRaf=null)}))))}function T(e,t,n){if(!t._context.staticPlot){var o=n.node(),a=r.select(t);e.on("mousedown",l),e.on("touchstart",l)}function s(){return n.data()[0]}function l(){var e=s();t.emit("plotly_sliderstart",{slider:e});var l=n.select("."+d.gripRectClass);r.event.stopPropagation(),r.event.preventDefault(),l.call(i.fill,e.activebgcolor);var c=C(e,r.mouse(o)[0]);function u(){var e=s(),i=C(e,r.mouse(o)[0]);j(t,n,e,i,!1)}function f(){var e=s();e._dragging=!1,l.call(i.fill,e.bgcolor),a.on("mouseup",null),a.on("mousemove",null),a.on("touchend",null),a.on("touchmove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})}j(t,n,e,c,!0),e._dragging=!0,a.on("mousemove",u),a.on("touchmove",u),a.on("mouseup",f),a.on("touchend",f)}}function A(e,t){var n=e.selectAll("rect."+d.tickRectClass).data(t._visibleSteps),o=t._dims;n.enter().append("rect").classed(d.tickRectClass,!0),n.exit().remove(),n.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),n.each((function(e,n){var s=n%o.labelStride==0,l=r.select(this);l.attr({height:s?t.ticklen:t.minorticklen}).call(i.fill,t.tickcolor),a.setTranslate(l,S(t,n/(t._stepCount-1))-.5*t.tickwidth,(s?d.tickOffset:d.minorTickOffset)+o.currentValueTotalHeight)}))}function M(e,t,n){for(var r=e.select("rect."+d.gripRectClass),o=0,i=0;i<t._stepCount;i++)if(t._visibleSteps[i]._index===t.active){o=i;break}var a=S(t,o/(t._stepCount-1));if(!t._invokingCommand){var s=r;n&&t.transition.duration>0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",l(a-.5*d.gripWidth,t._dims.currentValueTotalHeight))}}function S(e,t){var n=e._dims;return n.inputAreaStart+d.stepInset+(n.inputAreaLength-2*d.stepInset)*Math.min(1,Math.max(0,t))}function C(e,t){var n=e._dims;return Math.min(1,Math.max(0,(t-d.stepInset-n.inputAreaStart)/(n.inputAreaLength-2*d.stepInset-2*n.inputAreaStart)))}function E(e,t,n){var r=n._dims,o=s.ensureSingle(e,"rect",d.railTouchRectClass,(function(r){r.call(T,t,e,n).style("pointer-events","all")}));o.attr({width:r.inputAreaLength,height:Math.max(r.inputAreaWidth,d.tickOffset+n.ticklen+r.labelHeight)}).call(i.fill,n.bgcolor).attr("opacity",0),a.setTranslate(o,0,r.currentValueTotalHeight)}function L(e,t){var n=t._dims,r=n.inputAreaLength-2*d.railInset,o=s.ensureSingle(e,"rect",d.railRectClass);o.attr({width:r,height:d.railWidth,rx:d.railRadius,ry:d.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),a.setTranslate(o,d.railInset,.5*(n.inputAreaWidth-d.railWidth)+n.currentValueTotalHeight)}e.exports=function(e){var t=e._context.staticPlot,n=e._fullLayout,i=function(e,t){for(var n=e[d.name],r=[],o=0;o<n.length;o++){var i=n[o];i.visible&&(i._gd=t,r.push(i))}return r}(n,e),s=n._infolayer.selectAll("g."+d.containerClassName).data(i.length>0?[0]:[]);function l(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),o.autoMargin(e,g(t))}if(s.enter().append("g").classed(d.containerClassName,!0).style("cursor",t?null:"ew-resize"),s.exit().each((function(){r.select(this).selectAll("g."+d.groupClassName).each(l)})).remove(),0!==i.length){var c=s.selectAll("g."+d.groupClassName).data(i,v);c.enter().append("g").classed(d.groupClassName,!0),c.exit().each(l).remove();for(var u=0;u<i.length;u++){var f=i[u];y(e,f)}c.each((function(t){var n=r.select(this);!function(e){var t=e._dims;t.labelSteps=[];for(var n=e._stepCount,r=0;r<n;r+=t.labelStride)t.labelSteps.push({fraction:r/(n-1),step:e._visibleSteps[r]})}(t),o.manageCommandObserver(e,t,t._visibleSteps,(function(t){var r=n.data()[0];r.active!==t.index&&(r._dragging||k(e,n,r,t.index,!1,!0))})),function(e,t,n){(n.steps[n.active]||{}).visible||(n.active=n._visibleSteps[0]._index);t.call(b,n).call(L,n).call(w,n).call(A,n).call(E,e,n).call(x,e,n);var r=n._dims;a.setTranslate(t,r.lx+n.pad.l,r.ly+n.pad.t),t.call(M,n,!1),t.call(b,n)}(e,r.select(this),t)}))}}},"./node_modules/plotly.js/src/components/sliders/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/sliders/constants.js");e.exports={moduleType:"component",name:r.name,layoutAttributes:n("./node_modules/plotly.js/src/components/sliders/attributes.js"),supplyLayoutDefaults:n("./node_modules/plotly.js/src/components/sliders/defaults.js"),draw:n("./node_modules/plotly.js/src/components/sliders/draw.js")}},"./node_modules/plotly.js/src/components/titles/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/fast-isnumeric/index.js"),i=n("./node_modules/plotly.js/src/plots/plots.js"),a=n("./node_modules/plotly.js/src/registry.js"),s=n("./node_modules/plotly.js/src/lib/index.js"),l=s.strTranslate,c=n("./node_modules/plotly.js/src/components/drawing/index.js"),u=n("./node_modules/plotly.js/src/components/color/index.js"),d=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),f=n("./node_modules/plotly.js/src/constants/interactions.js"),h=n("./node_modules/plotly.js/src/constants/alignment.js").OPPOSITE_SIDE,p=/ [XY][0-9]* /;e.exports={draw:function(e,t,n){var m,g=e._fullLayout,v=n.propContainer,y=n.propName,b=n.placeholder,x=n.traceIndex,_=n.avoid||{},w=n.attributes,j=n.transform,k=n.containerGroup,T=1,A=v.title,M=(A&&A.text?A.text:"").trim(),S=!1,C=A&&A.font?A.font:{},E=C.family,L=C.size,O=C.color,R=C.weight,I=C.style,P=C.variant,D=C.textcase,z=C.lineposition,N=C.shadow,F=!!n.subtitlePropName,B=n.subtitlePlaceholder,U=(v.title||{}).subtitle||{text:"",font:{}},H=U.text.trim(),V=!1,G=1,q=U.font,W=q.family,Y=q.size,X=q.color,Z=q.weight,$=q.style,K=q.variant,J=q.textcase,Q=q.lineposition,ee=q.shadow;"title.text"===y?m="titleText":-1!==y.indexOf("axis")?m="axisTitleText":y.indexOf(!0)&&(m="colorbarTitleText");var te=e._context.edits[m];function ne(e,t){return void 0!==e&&void 0!==t&&e.replace(p," % ")===t.replace(p," % ")}""===M?T=0:ne(M,b)&&(te||(M=""),T=.2,S=!0),F&&(""===H?G=0:ne(H,B)&&(te||(H=""),G=.2,V=!0)),n._meta?M=s.templateString(M,n._meta):g._meta&&(M=s.templateString(M,g._meta));var re,oe=M||H||te;k||(k=s.ensureSingle(g._infolayer,"g","g-"+t),re=g._hColorbarMoveTitle);var ie=k.selectAll("text."+t).data(oe?[0]:[]);ie.enter().append("text"),ie.text(M).attr("class",t),ie.exit().remove();var ae=null,se=t+"-subtitle",le=H||te;if(F&&le&&((ae=k.selectAll("text."+se).data(le?[0]:[])).enter().append("text"),ae.text(H).attr("class",se),ae.exit().remove()),!oe)return k;function ce(e,t){s.syncOrAsync([ue,de],{title:e,subtitle:t})}function ue(n){var o,a=n.title,f=n.subtitle;if(!j&&re&&(j={}),j?(o="",j.rotate&&(o+="rotate("+[j.rotate,w.x,w.y]+")"),(j.offset||re)&&(o+=l(0,(j.offset||0)-(re||0)))):o=null,a.attr("transform",o),a.style("opacity",T*u.opacity(O)).call(c.font,{color:u.rgb(O),size:r.round(L,2),family:E,weight:R,style:I,variant:P,textcase:D,shadow:N,lineposition:z}).attr(w).call(d.convertToTspans,e,(function(e){if(e){var t=r.select(e.node().parentNode).select("."+se);if(!t.empty()){var n=e.node().getBBox();if(n.height){var o=n.y+n.height+1.6*Y;t.attr("y",o)}}}})),f){var h=k.select("."+t+"-math-group"),p=a.node().getBBox(),m=h.node()?h.node().getBBox():void 0,g=m?m.y+m.height+1.6*Y:p.y+p.height+1.6*Y,v=s.extendFlat({},w,{y:g});f.attr("transform",o),f.style("opacity",G*u.opacity(X)).call(c.font,{color:u.rgb(X),size:r.round(Y,2),family:W,weight:Z,style:$,variant:K,textcase:J,shadow:ee,lineposition:Q}).attr(v).call(d.convertToTspans,e)}return i.previousPromises(e)}function de(t){var n=t.title,i=r.select(n.node().parentNode);if(_&&_.selection&&_.side&&M){i.attr("transform",null);var a=h[_.side],u="left"===_.side||"top"===_.side?-1:1,d=o(_.pad)?_.pad:2,f=c.bBox(i.node()),p={t:0,b:0,l:0,r:0},m=e._fullLayout._reservedMargin;for(var y in m)for(var b in m[y]){var x=m[y][b];p[b]=Math.max(p[b],x)}var w={left:p.l,top:p.t,right:g.width-p.r,bottom:g.height-p.b},j=_.maxShift||u*(w[_.side]-f[_.side]),k=0;if(j<0)k=j;else{var T=_.offsetLeft||0,A=_.offsetTop||0;f.left-=T,f.right-=T,f.top-=A,f.bottom-=A,_.selection.each((function(){var e=c.bBox(this);s.bBoxIntersect(f,e,d)&&(k=Math.max(k,u*(e[_.side]-f[a])+d))})),k=Math.min(j,k),v._titleScoot=Math.abs(k)}if(k>0||j<0){var S={left:[-k,0],right:[k,0],top:[0,-k],bottom:[0,k]}[_.side];i.attr("transform",l(S[0],S[1]))}}}function fe(e,t){e.text(t).on("mouseover.opacity",(function(){r.select(this).transition().duration(f.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){r.select(this).transition().duration(f.HIDE_PLACEHOLDER).style("opacity",0)}))}if(ie.call(ce,ae),te&&(M?ie.on(".opacity",null):(fe(ie,b),S=!0),ie.call(d.makeEditable,{gd:e}).on("edit",(function(t){void 0!==x?a.call("_guiRestyle",e,y,t,x):a.call("_guiRelayout",e,y,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(ce)})).on("input",(function(e){this.text(e||" ").call(d.positionText,w.x,w.y)})),F)){if(F&&!M){var he=ie.node().getBBox(),pe=he.y+he.height+1.6*Y;ae.attr("y",pe)}H?ae.on(".opacity",null):(fe(ae,B),V=!0),ae.call(d.makeEditable,{gd:e}).on("edit",(function(t){a.call("_guiRelayout",e,"title.subtitle.text",t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(ce)})).on("input",(function(e){this.text(e||" ").call(d.positionText,ae.attr("x"),ae.attr("y"))}))}return ie.classed("js-placeholder",S),ae&&ae.classed("js-placeholder",V),k},SUBTITLE_PADDING_EM:1.6,SUBTITLE_PADDING_MATHJAX_EM:1.6}},"./node_modules/plotly.js/src/components/updatemenus/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/font_attributes.js"),o=n("./node_modules/plotly.js/src/components/color/attributes.js"),i=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,a=n("./node_modules/plotly.js/src/plot_api/edit_types.js").overrideAll,s=n("./node_modules/plotly.js/src/plots/pad_attributes.js"),l=n("./node_modules/plotly.js/src/plot_api/plot_template.js").templatedArray,c=l("button",{visible:{valType:"boolean",description:"Determines whether or not this button is visible."},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets a 2nd set of `args`,","these arguments values are passed to the Plotly","method set in `method` when clicking this button while in the active state.","Use this to create toggle buttons."].join(" ")},label:{valType:"string",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});e.exports=a(l("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:c,x:{valType:"number",min:-2,max:3,dflt:-.05,description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:i(s({editType:"arraydraw"}),{description:"Sets the padding around the buttons or dropdown menu."}),font:r({description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:o.borderLine,description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw",description:"Sets the width (in px) of the border enclosing the update menu."}}),"arraydraw","from-root")},"./node_modules/plotly.js/src/components/updatemenus/constants.js":function(e,t,n){"use strict";e.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:"◄",right:"►",up:"▲",down:"▼"}}},"./node_modules/plotly.js/src/components/updatemenus/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/array_container_defaults.js"),i=n("./node_modules/plotly.js/src/components/updatemenus/attributes.js"),a=n("./node_modules/plotly.js/src/components/updatemenus/constants.js").name,s=i.buttons;function l(e,t,n){function a(n,o){return r.coerce(e,t,i,n,o)}a("visible",o(e,t,{name:"buttons",handleItemDefaults:c}).length>0)&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),r.noneOrAll(e,t,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),r.coerceFont(a,"font",n.font),a("bgcolor",n.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function c(e,t){function n(n,o){return r.coerce(e,t,s,n,o)}n("visible","skip"===e.method||Array.isArray(e.args))&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}e.exports=function(e,t){o(e,t,{name:a,handleItemDefaults:l})}},"./node_modules/plotly.js/src/components/updatemenus/draw.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/plots/plots.js"),i=n("./node_modules/plotly.js/src/components/color/index.js"),a=n("./node_modules/plotly.js/src/components/drawing/index.js"),s=n("./node_modules/plotly.js/src/lib/index.js"),l=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),c=n("./node_modules/plotly.js/src/plot_api/plot_template.js").arrayEditor,u=n("./node_modules/plotly.js/src/constants/alignment.js").LINE_SPACING,d=n("./node_modules/plotly.js/src/components/updatemenus/constants.js"),f=n("./node_modules/plotly.js/src/components/updatemenus/scrollbox.js");function h(e){return e._index}function p(e,t){return+e.attr(d.menuIndexAttrName)===t._index}function m(e,t,n,r,o,i,a,s){t.active=a,c(e.layout,d.name,t).applyUpdate("active",a),"buttons"===t.type?v(e,r,null,null,t):"dropdown"===t.type&&(o.attr(d.menuIndexAttrName,"-1"),g(e,r,o,i,t),s||v(e,r,o,i,t))}function g(e,t,n,r,o){var i=s.ensureSingle(t,"g",d.headerClassName,(function(e){e.style("pointer-events","all")})),l=o._dims,c=o.active,u=o.buttons[c]||d.blankHeaderOpts,f={y:o.pad.t,yPad:0,x:o.pad.l,xPad:0,index:0},h={width:l.headerWidth,height:l.headerHeight};i.call(y,o,u,e).call(A,o,f,h),s.ensureSingle(t,"text",d.headerArrowClassName,(function(e){e.attr("text-anchor","end").call(a.font,o.font).text(d.arrowSymbol[o.direction])})).attr({x:l.headerWidth-d.arrowOffsetX+o.pad.l,y:l.headerHeight/2+d.textOffsetY+o.pad.t}),i.on("click",(function(){n.call(M,String(p(n,o)?-1:o._index)),v(e,t,n,r,o)})),i.on("mouseover",(function(){i.call(w)})),i.on("mouseout",(function(){i.call(j,o)})),a.setTranslate(t,l.lx,l.ly)}function v(e,t,n,i,a){n||(n=t).attr("pointer-events","all");var l=function(e){return-1==+e.attr(d.menuIndexAttrName)}(n)&&"buttons"!==a.type?[]:a.buttons,c="dropdown"===a.type?d.dropdownButtonClassName:d.buttonClassName,u=n.selectAll("g."+c).data(s.filterVisible(l)),f=u.enter().append("g").classed(c,!0),h=u.exit();"dropdown"===a.type?(f.attr("opacity","0").transition().attr("opacity","1"),h.transition().attr("opacity","0").remove()):h.remove();var p=0,g=0,v=a._dims,b=-1!==["up","down"].indexOf(a.direction);"dropdown"===a.type&&(b?g=v.headerHeight+d.gapButtonHeader:p=v.headerWidth+d.gapButtonHeader),"dropdown"===a.type&&"up"===a.direction&&(g=-d.gapButtonHeader+d.gapButton-v.openHeight),"dropdown"===a.type&&"left"===a.direction&&(p=-d.gapButtonHeader+d.gapButton-v.openWidth);var x={x:v.lx+p+a.pad.l,y:v.ly+g+a.pad.t,yPad:d.gapButton,xPad:d.gapButton,index:0},k={l:x.x+a.borderwidth,t:x.y+a.borderwidth};u.each((function(s,l){var c=r.select(this);c.call(y,a,s,e).call(A,a,x),c.on("click",(function(){r.event.defaultPrevented||(s.execute&&(s.args2&&a.active===l?(m(e,a,0,t,n,i,-1),o.executeAPICommand(e,s.method,s.args2)):(m(e,a,0,t,n,i,l),o.executeAPICommand(e,s.method,s.args))),e.emit("plotly_buttonclicked",{menu:a,button:s,active:a.active}))})),c.on("mouseover",(function(){c.call(w)})),c.on("mouseout",(function(){c.call(j,a),u.call(_,a)}))})),u.call(_,a),b?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=x.y-k.t):(k.w=x.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=a.direction,i&&(u.size()?function(e,t,n,r,o,i){var a,s,l,c=o.direction,u="up"===c||"down"===c,f=o._dims,h=o.active;if(u)for(s=0,l=0;l<h;l++)s+=f.heights[l]+d.gapButton;else for(a=0,l=0;l<h;l++)a+=f.widths[l]+d.gapButton;r.enable(i,a,s),r.hbar&&r.hbar.attr("opacity","0").transition().attr("opacity","1");r.vbar&&r.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,i,a,k):function(e){var t=!!e.hbar,n=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",(function(){t=!1,n||e.disable()}));n&&e.vbar.transition().attr("opacity","0").each("end",(function(){n=!1,t||e.disable()}))}(i))}function y(e,t,n,r){e.call(b,t).call(x,t,n,r)}function b(e,t){s.ensureSingle(e,"rect",d.itemRectClassName,(function(e){e.attr({rx:d.rx,ry:d.ry,"shape-rendering":"crispEdges"})})).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function x(e,t,n,r){var o=s.ensureSingle(e,"text",d.itemTextClassName,(function(e){e.attr({"text-anchor":"start","data-notex":1})})),i=n.label,c=r._fullLayout._meta;c&&(i=s.templateString(i,c)),o.call(a.font,t.font).text(i).call(l.convertToTspans,r)}function _(e,t){var n=t.active;e.each((function(e,o){var a=r.select(this);o===n&&t.showactive&&a.select("rect."+d.itemRectClassName).call(i.fill,d.activeColor)}))}function w(e){e.select("rect."+d.itemRectClassName).call(i.fill,d.hoverColor)}function j(e,t){e.select("rect."+d.itemRectClassName).call(i.fill,t.bgcolor)}function k(e,t){var n=t._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},i=a.tester.selectAll("g."+d.dropdownButtonClassName).data(s.filterVisible(t.buttons));i.enter().append("g").classed(d.dropdownButtonClassName,!0);var c=-1!==["up","down"].indexOf(t.direction);i.each((function(o,i){var s=r.select(this);s.call(y,t,o,e);var f=s.select("."+d.itemTextClassName),h=f.node()&&a.bBox(f.node()).width,p=Math.max(h+d.textPadX,d.minWidth),m=t.font.size*u,g=l.lineCount(f),v=Math.max(m*g,d.minHeight)+d.textOffsetY;v=Math.ceil(v),p=Math.ceil(p),n.widths[i]=p,n.heights[i]=v,n.height1=Math.max(n.height1,v),n.width1=Math.max(n.width1,p),c?(n.totalWidth=Math.max(n.totalWidth,p),n.openWidth=n.totalWidth,n.totalHeight+=v+d.gapButton,n.openHeight+=v+d.gapButton):(n.totalWidth+=p+d.gapButton,n.openWidth+=p+d.gapButton,n.totalHeight=Math.max(n.totalHeight,v),n.openHeight=n.totalHeight)})),c?n.totalHeight-=d.gapButton:n.totalWidth-=d.gapButton,n.headerWidth=n.width1+d.arrowPadX,n.headerHeight=n.height1,"dropdown"===t.type&&(c?(n.width1+=d.arrowPadX,n.totalHeight=n.height1):n.totalWidth=n.width1,n.totalWidth+=d.arrowPadX),i.remove();var f=n.totalWidth+t.pad.l+t.pad.r,h=n.totalHeight+t.pad.t+t.pad.b,p=e._fullLayout._size;n.lx=p.l+p.w*t.x,n.ly=p.t+p.h*(1-t.y);var m="left";s.isRightAnchor(t)&&(n.lx-=f,m="right"),s.isCenterAnchor(t)&&(n.lx-=f/2,m="center");var g="top";s.isBottomAnchor(t)&&(n.ly-=h,g="bottom"),s.isMiddleAnchor(t)&&(n.ly-=h/2,g="middle"),n.totalWidth=Math.ceil(n.totalWidth),n.totalHeight=Math.ceil(n.totalHeight),n.lx=Math.round(n.lx),n.ly=Math.round(n.ly),o.autoMargin(e,T(t),{x:t.x,y:t.y,l:f*({right:1,center:.5}[m]||0),r:f*({left:1,center:.5}[m]||0),b:h*({top:1,middle:.5}[g]||0),t:h*({bottom:1,middle:.5}[g]||0)})}function T(e){return d.autoMarginIdRoot+e._index}function A(e,t,n,r){r=r||{};var o=e.select("."+d.itemRectClassName),i=e.select("."+d.itemTextClassName),s=t.borderwidth,c=n.index,f=t._dims;a.setTranslate(e,s+n.x,s+n.y);var h=-1!==["up","down"].indexOf(t.direction),p=r.height||(h?f.heights[c]:f.height1);o.attr({x:0,y:0,width:r.width||(h?f.width1:f.widths[c]),height:p});var m=t.font.size*u,g=(l.lineCount(i)-1)*m/2;l.positionText(i,d.textOffsetX,p/2-g+d.textOffsetY),h?n.y+=f.heights[c]+n.yPad:n.x+=f.widths[c]+n.xPad,n.index++}function M(e,t){e.attr(d.menuIndexAttrName,t||"-1").selectAll("g."+d.dropdownButtonClassName).remove()}e.exports=function(e){var t=e._fullLayout,n=s.filterVisible(t[d.name]);function i(t){o.autoMargin(e,T(t))}var a=t._menulayer.selectAll("g."+d.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(d.containerClassName,!0).style("cursor","pointer"),a.exit().each((function(){r.select(this).selectAll("g."+d.headerGroupClassName).each(i)})).remove(),0!==n.length){var l=a.selectAll("g."+d.headerGroupClassName).data(n,h);l.enter().append("g").classed(d.headerGroupClassName,!0);for(var c=s.ensureSingle(a,"g",d.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),u=0;u<n.length;u++){var y=n[u];k(e,y)}var b="updatemenus"+t._uid,x=new f(e,c,b);l.enter().size()&&(c.node().parentNode.appendChild(c.node()),c.call(M)),l.exit().each((function(e){c.call(M),i(e)})).remove(),l.each((function(t){var n=r.select(this),i="dropdown"===t.type?c:null;o.manageCommandObserver(e,t,t.buttons,(function(r){m(e,t,t.buttons[r.index],n,i,x,r.index,!0)})),"dropdown"===t.type?(g(e,n,c,x,t),p(c,t)&&v(e,n,c,x,t)):v(e,n,null,null,t)}))}}},"./node_modules/plotly.js/src/components/updatemenus/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/updatemenus/constants.js");e.exports={moduleType:"component",name:r.name,layoutAttributes:n("./node_modules/plotly.js/src/components/updatemenus/attributes.js"),supplyLayoutDefaults:n("./node_modules/plotly.js/src/components/updatemenus/defaults.js"),draw:n("./node_modules/plotly.js/src/components/updatemenus/draw.js")}},"./node_modules/plotly.js/src/components/updatemenus/scrollbox.js":function(e,t,n){"use strict";e.exports=s;var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/components/color/index.js"),i=n("./node_modules/plotly.js/src/components/drawing/index.js"),a=n("./node_modules/plotly.js/src/lib/index.js");function s(e,t,n){this.gd=e,this.container=t,this.id=n,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})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor="#808BA4",s.prototype.enable=function(e,t,n){var a=this.gd._fullLayout,l=a.width,c=a.height;this.position=e;var u,d,f,h,p=this.position.l,m=this.position.w,g=this.position.t,v=this.position.h,y=this.position.direction,b="down"===y,x="left"===y,_="up"===y,w=m,j=v;b||x||"right"===y||_||(this.position.direction="down",b=!0),b||_?(d=(u=p)+w,b?(f=g,j=(h=Math.min(f+j,c))-f):j=(h=g+j)-(f=Math.max(h-j,0))):(h=(f=g)+j,x?w=(d=p+w)-(u=Math.max(d-w,0)):(u=p,w=(d=Math.min(u+w,l))-u)),this._box={l:u,t:f,w:w,h:j};var k=m>w,T=s.barLength+2*s.barPad,A=s.barWidth+2*s.barPad,M=p,S=g+v;S+A>c&&(S=c-A);var C=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);C.exit().on(".drag",null).remove(),C.enter().append("rect").classed("scrollbar-horizontal",!0).call(o.fill,s.barColor),k?(this.hbar=C.attr({rx:s.barRadius,ry:s.barRadius,x:M,y:S,width:T,height:A}),this._hbarXMin=M+T/2,this._hbarTranslateMax=w-T):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=v>j,L=s.barWidth+2*s.barPad,O=s.barLength+2*s.barPad,R=p+m,I=g;R+L>l&&(R=l-L);var P=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);P.exit().on(".drag",null).remove(),P.enter().append("rect").classed("scrollbar-vertical",!0).call(o.fill,s.barColor),E?(this.vbar=P.attr({rx:s.barRadius,ry:s.barRadius,x:R,y:I,width:L,height:O}),this._vbarYMin=I+O/2,this._vbarTranslateMax=j-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var D=this.id,z=u-.5,N=E?d+L+.5:d+.5,F=f-.5,B=k?h+A+.5:h+.5,U=a._topdefs.selectAll("#"+D).data(k||E?[0]:[]);if(U.exit().remove(),U.enter().append("clipPath").attr("id",D).append("rect"),k||E?(this._clipRect=U.select("rect").attr({x:Math.floor(z),y:Math.floor(F),width:Math.ceil(N)-Math.floor(z),height:Math.ceil(B)-Math.floor(F)}),this.container.call(i.setClipUrl,D,this.gd),this.bg.attr({x:p,y:g,width:m,height:v})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),k||E){var H=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(H);var V=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(V),E&&this.vbar.on(".drag",null).call(V)}this.setTranslate(t,n)},s.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.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)},s.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=r.event.dx),this.vbar&&(t-=r.event.dy),this.setTranslate(e,t)},s.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=r.event.deltaY),this.vbar&&(t+=r.event.deltaY),this.setTranslate(e,t)},s.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,o=n+this._hbarTranslateMax;e=(a.constrain(r.event.x,n,o)-n)/(o-n)*(this.position.w-this._box.w)}if(this.vbar){var i=t+this._vbarYMin,s=i+this._vbarTranslateMax;t=(a.constrain(r.event.y,i,s)-i)/(s-i)*(this.position.h-this._box.h)}this.setTranslate(e,t)},s.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=a.constrain(e||0,0,n),t=a.constrain(t||0,0,r),this.translateX=e,this.translateY=t,this.container.call(i.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var o=e/n;this.hbar.call(i.setTranslate,e+o*this._hbarTranslateMax,t)}if(this.vbar){var s=t/r;this.vbar.call(i.setTranslate,e,t+s*this._vbarTranslateMax)}}},"./node_modules/plotly.js/src/constants/alignment.js":function(e,t,n){"use strict";e.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"}}},"./node_modules/plotly.js/src/constants/axis_placeable_objects.js":function(e,t,n){"use strict";e.exports={axisRefDescription:function(e,t,n){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",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+n+"). 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",t,"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",t,"and the",n,"of the domain of the","second",e,"axis."].join(" ")}}},"./node_modules/plotly.js/src/constants/docs.js":function(e,t,n){"use strict";e.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"}},"./node_modules/plotly.js/src/constants/gl3d_dashes.js":function(e,t,n){"use strict";e.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]}},"./node_modules/plotly.js/src/constants/gl3d_markers.js":function(e,t,n){"use strict";e.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},"./node_modules/plotly.js/src/constants/interactions.js":function(e,t,n){"use strict";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},"./node_modules/plotly.js/src/constants/numerical.js":function(e,t,n){"use strict";e.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,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:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:""}},"./node_modules/plotly.js/src/constants/xmlns_namespaces.js":function(e,t,n){"use strict";t.xmlns="http://www.w3.org/2000/xmlns/",t.svg="http://www.w3.org/2000/svg",t.xlink="http://www.w3.org/1999/xlink",t.svgAttrs={xmlns:t.svg,"xmlns:xlink":t.xlink}},"./node_modules/plotly.js/src/core.js":function(e,t,n){"use strict";t.version=n("./node_modules/plotly.js/src/version.js").version,n("./node_modules/native-promise-only/lib/npo.src.js"),n("./node_modules/plotly.js/build/plotcss.js");for(var r=n("./node_modules/plotly.js/src/registry.js"),o=t.register=r.register,i=n("./node_modules/plotly.js/src/plot_api/index.js"),a=Object.keys(i),s=0;s<a.length;s++){var l=a[s];"_"!==l.charAt(0)&&(t[l]=i[l]),o({moduleType:"apiMethod",name:l,fn:i[l]})}o(n("./node_modules/plotly.js/src/traces/scatter/index.js")),o([n("./node_modules/plotly.js/src/components/annotations/index.js"),n("./node_modules/plotly.js/src/components/annotations3d/index.js"),n("./node_modules/plotly.js/src/components/selections/index.js"),n("./node_modules/plotly.js/src/components/shapes/index.js"),n("./node_modules/plotly.js/src/components/images/index.js"),n("./node_modules/plotly.js/src/components/updatemenus/index.js"),n("./node_modules/plotly.js/src/components/sliders/index.js"),n("./node_modules/plotly.js/src/components/rangeslider/index.js"),n("./node_modules/plotly.js/src/components/rangeselector/index.js"),n("./node_modules/plotly.js/src/components/grid/index.js"),n("./node_modules/plotly.js/src/components/errorbars/index.js"),n("./node_modules/plotly.js/src/components/colorscale/index.js"),n("./node_modules/plotly.js/src/components/colorbar/index.js"),n("./node_modules/plotly.js/src/components/legend/index.js"),n("./node_modules/plotly.js/src/components/fx/index.js"),n("./node_modules/plotly.js/src/components/modebar/index.js")]),o([n("./node_modules/plotly.js/src/locale-en.js"),n("./node_modules/plotly.js/src/locale-en-us.js")]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(o(window.PlotlyLocales),delete window.PlotlyLocales),t.Icons=n("./node_modules/plotly.js/src/fonts/ploticon.js");var c=n("./node_modules/plotly.js/src/components/fx/index.js"),u=n("./node_modules/plotly.js/src/plots/plots.js");t.Plots={resize:u.resize,graphJson:u.graphJson,sendDataToCloud:u.sendDataToCloud},t.Fx={hover:c.hover,unhover:c.unhover,loneHover:c.loneHover,loneUnhover:c.loneUnhover},t.Snapshot=n("./node_modules/plotly.js/src/snapshot/index.js"),t.PlotSchema=n("./node_modules/plotly.js/src/plot_api/plot_schema.js")},"./node_modules/plotly.js/src/fonts/ploticon.js":function(e,t,n){"use strict";e.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)"},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'>","<defs>"," <style>"," .cls-0{fill:#000;}"," .cls-1{fill:#FFF;}"," .cls-2{fill:#F26;}"," .cls-3{fill:#D69;}"," .cls-4{fill:#BAC;}"," .cls-5{fill:#9EF;}"," </style>","</defs>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect class='cls-0' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle class='cls-5' cx='102' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='54' r='6'/>"," <circle class='cls-3' cx='54' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='54' r='6'/>"," <path class='cls-1' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path class='cls-1' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path class='cls-1' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path class='cls-1' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}},"./node_modules/plotly.js/src/lib/anchor_utils.js":function(e,t,n){"use strict";t.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},t.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},t.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},t.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},t.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},t.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},"./node_modules/plotly.js/src/lib/angles.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/mod.js"),o=r.mod,i=r.modHalf,a=Math.PI,s=2*a;function l(e){return Math.abs(e[1]-e[0])>s-1e-14}function c(e,t){return i(t-e,s)}function u(e,t){if(l(t))return!0;var n,r;t[0]<t[1]?(n=t[0],r=t[1]):(n=t[1],r=t[0]),(n=o(n,s))>(r=o(r,s))&&(r+=s);var i=o(e,s),a=i+s;return i>=n&&i<=r||a>=n&&a<=r}function d(e,t,n,r,o,i,c){o=o||0,i=i||0;var u,d,f,h,p,m=l([n,r]);function g(e,t){return[e*Math.cos(t)+o,i-e*Math.sin(t)]}m?(u=0,d=a,f=s):n<r?(u=n,f=r):(u=r,f=n),e<t?(h=e,p=t):(h=t,p=e);var v,y=Math.abs(f-u)<=a?0:1;function b(e,t,n){return"A"+[e,e]+" "+[0,y,n]+" "+g(e,t)}return m?v=null===h?"M"+g(p,u)+b(p,d,0)+b(p,f,0)+"Z":"M"+g(h,u)+b(h,d,0)+b(h,f,0)+"ZM"+g(p,u)+b(p,d,1)+b(p,f,1)+"Z":null===h?(v="M"+g(p,u)+b(p,f,0),c&&(v+="L0,0Z")):v="M"+g(h,u)+"L"+g(p,u)+b(p,f,0)+"L"+g(h,f)+b(h,u,1)+"Z",v}e.exports={deg2rad:function(e){return e/180*a},rad2deg:function(e){return e/a*180},angleDelta:c,angleDist:function(e,t){return Math.abs(c(e,t))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(e,t,n,r){return!!u(t,r)&&(n[0]<n[1]?(o=n[0],i=n[1]):(o=n[1],i=n[0]),e>=o&&e<=i);var o,i},pathArc:function(e,t,n,r,o){return d(null,e,t,n,r,o,0)},pathSector:function(e,t,n,r,o){return d(null,e,t,n,r,o,1)},pathAnnulus:function(e,t,n,r,o,i){return d(e,t,n,r,o,i,1)}}},"./node_modules/plotly.js/src/lib/array.js":function(e,t,n){"use strict";var r=n("./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js").decode,o=n("./node_modules/plotly.js/src/lib/is_plain_object.js"),i=Array.isArray,a=ArrayBuffer,s=DataView;function l(e){return a.isView(e)&&!(e instanceof s)}function c(e){return i(e)||l(e)}t.isTypedArray=l,t.isArrayOrTypedArray=c,t.isArray1D=function(e){return!c(e[0])},t.ensureArray=function(e,t){return i(e)||(e=[]),e.length=t,e};var u={u1c:"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,i1:"undefined"==typeof Int8Array?void 0:Int8Array,u1:"undefined"==typeof Uint8Array?void 0:Uint8Array,i2:"undefined"==typeof Int16Array?void 0:Int16Array,u2:"undefined"==typeof Uint16Array?void 0:Uint16Array,i4:"undefined"==typeof Int32Array?void 0:Int32Array,u4:"undefined"==typeof Uint32Array?void 0:Uint32Array,f4:"undefined"==typeof Float32Array?void 0:Float32Array,f8:"undefined"==typeof Float64Array?void 0:Float64Array};function d(e){return e.constructor===ArrayBuffer}function f(e,t,n){if(c(e)){if(c(e[0])){for(var r=n,o=0;o<e.length;o++)r=t(r,e[o].length);return r}return e.length}return 0}u.uint8c=u.u1c,u.uint8=u.u1,u.int8=u.i1,u.uint16=u.u2,u.int16=u.i2,u.uint32=u.u4,u.int32=u.i4,u.float32=u.f4,u.float64=u.f8,t.isArrayBuffer=d,t.decodeTypedArraySpec=function(e){var t=[],n=function(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}(e),o=n.dtype,i=u[o];if(!i)throw new Error('Error in dtype: "'+o+'"');var a=i.BYTES_PER_ELEMENT,s=n.bdata;d(s)||(s=r(s));var l=void 0===n.shape?[s.byteLength/a]:(""+n.shape).split(",");l.reverse();var c,f,h=l.length,p=+l[0],m=a*p,g=0;if(1===h)t=new i(s);else if(2===h)for(c=+l[1],f=0;f<c;f++)t[f]=new i(s,g,p),g+=m;else{if(3!==h)throw new Error("ndim: "+h+'is not supported with the shape:"'+n.shape+'"');c=+l[1];for(var v=+l[2],y=0;y<v;y++)for(t[y]=[],f=0;f<c;f++)t[y][f]=new i(s,g,p),g+=m}return t.bdata=n.bdata,t.dtype=n.dtype,t.shape=l.reverse().join(","),e._inputArray=t,t},t.isTypedArraySpec=function(e){return o(e)&&e.hasOwnProperty("dtype")&&"string"==typeof e.dtype&&e.hasOwnProperty("bdata")&&("string"==typeof e.bdata||d(e.bdata))&&(void 0===e.shape||e.hasOwnProperty("shape")&&("string"==typeof e.shape||"number"==typeof e.shape))},t.concat=function(){var e,t,n,r,o,a,s,l,c=[],u=!0,d=0;for(n=0;n<arguments.length;n++)(a=(r=arguments[n]).length)&&(t?c.push(r):(t=r,o=a),i(r)?e=!1:(u=!1,d?e!==r.constructor&&(e=!1):e=r.constructor),d+=a);if(!d)return[];if(!c.length)return t;if(u)return t.concat.apply(t,c);if(e){for((s=new e(d)).set(t),n=0;n<c.length;n++)r=c[n],s.set(r,o),o+=r.length;return s}for(s=new Array(d),l=0;l<t.length;l++)s[l]=t[l];for(n=0;n<c.length;n++){for(r=c[n],l=0;l<r.length;l++)s[o+l]=r[l];o+=l}return s},t.maxRowLength=function(e){return f(e,Math.max,0)},t.minRowLength=function(e){return f(e,Math.min,1/0)}},"./node_modules/plotly.js/src/lib/clean_number.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/constants/numerical.js").BADNUM,i=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;e.exports=function(e){return"string"==typeof e&&(e=e.replace(i,"")),r(e)?Number(e):o}},"./node_modules/plotly.js/src/lib/clear_gl_canvases.js":function(e,t,n){"use strict";e.exports=function(e){var t=e._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each((function(e){e.regl&&e.regl.clear({color:!0,depth:!0})}))}},"./node_modules/plotly.js/src/lib/clear_responsive.js":function(e,t,n){"use strict";e.exports=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)}},"./node_modules/plotly.js/src/lib/coerce.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/tinycolor2/cjs/tinycolor.js"),i=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,a=n("./node_modules/plotly.js/src/plots/attributes.js"),s=n("./node_modules/plotly.js/src/components/colorscale/scales.js"),l=n("./node_modules/plotly.js/src/components/color/index.js"),c=n("./node_modules/plotly.js/src/constants/interactions.js").DESELECTDIM,u=n("./node_modules/plotly.js/src/lib/nested_property.js"),d=n("./node_modules/plotly.js/src/lib/regex.js").counter,f=n("./node_modules/plotly.js/src/lib/mod.js").modHalf,h=n("./node_modules/plotly.js/src/lib/array.js").isArrayOrTypedArray,p=n("./node_modules/plotly.js/src/lib/array.js").isTypedArraySpec,m=n("./node_modules/plotly.js/src/lib/array.js").decodeTypedArraySpec;function g(e,n){var r=t.valObjectMeta[n.valType];if(n.arrayOk&&h(e))return!0;if(r.validateFunction)return r.validateFunction(e,n);var o={},i=o,a={set:function(e){i=e}};return r.coerceFunction(e,a,o,n),i!==o}t.valObjectMeta={data_array:{description:["An {array} of data.","The value must represent an {array} or it will be ignored,","but this array can be provided in several forms:","(1) a regular {array} object","(2) a typed array (e.g. Float32Array)","(3) an object with keys dtype, bdata, and optionally shape.","In this 3rd form, dtype is one of","*f8*, *f4*.","*i4*, *u4*,","*i2*, *u2*,","*i1*, *u1* or *u1c* for Uint8ClampedArray.","In addition to shorthand `dtype` above one could also use the following forms:","*float64*, *float32*,","*int32*, *uint32*,","*int16*, *uint16*,","*int8*, *uint8* or *uint8c* for Uint8ClampedArray.","`bdata` is either a base64-encoded string or the ArrayBuffer of","an integer or float typed array.","For either multi-dimensional arrays you must also","provide its dimensions separated by comma via `shape`.","For example using `dtype`: *f4* and `shape`: *5,100* you can","declare a 2-D array that has 5 rows and 100 columns","containing float32 values i.e. 4 bits per value.","`shape` is optional for one dimensional arrays."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){t.set(h(e)?e:p(e)?m(e):n)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(e,t,n,r){r.coerceNumber&&(e=+e),-1===r.values.indexOf(e)?t.set(n):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var n=t.values,r=0;r<n.length;r++){var o=String(n[r]);if("/"===o.charAt(0)&&"/"===o.charAt(o.length-1)){if(new RegExp(o.substr(1,o.length-2)).test(e))return!0}else if(e===n[r])return!0}return!1}},boolean:{description:"A boolean (true/false) value.",requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){!0===e||!1===e?t.set(e):t.set(n)}},number:{description:["A number or a numeric value","(e.g. a number inside a string).","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,n,o){p(e)&&(e=m(e)),!r(e)||void 0!==o.min&&e<o.min||void 0!==o.max&&e>o.max?t.set(n):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk","extras"],coerceFunction:function(e,t,n,o){-1===(o.extras||[]).indexOf(e)?(p(e)&&(e=m(e)),e%1||!r(e)||void 0!==o.min&&e<o.min||void 0!==o.max&&e>o.max?t.set(n):t.set(+e)):t.set(e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,n,r){if("string"!=typeof e){var o="number"==typeof e;!0!==r.strict&&o?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,n){p(e)&&(e=m(e)),o(e).isValid()?t.set(e):t.set(n)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){Array.isArray(e)&&e.length&&e.every((function(e){return o(e).isValid()}))?t.set(e):t.set(n)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(s.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){t.set(s.get(e,n))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,n){p(e)&&(e=m(e)),"auto"===e?t.set("auto"):r(e)?t.set(f(+e,360)):t.set(n)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex"],coerceFunction:function(e,t,n,r){var o=r.regex||d(n);"string"==typeof e&&o.test(e)?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt;return e===n||"string"==typeof e&&!!d(n).test(e)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,n,r){if(-1===(r.extras||[]).indexOf(e))if("string"==typeof e){for(var o=e.split("+"),i=0;i<o.length;){var a=o[i];-1===r.flags.indexOf(a)||o.indexOf(a)<i?o.splice(i,1):i++}o.length?t.set(o.join("+")):t.set(n)}else t.set(n);else t.set(e)}},any:{description:"Any type.",requiredOpts:[],otherOpts:["dflt","values","arrayOk"],coerceFunction:function(e,t,n){void 0===e?t.set(n):t.set(p(e)?m(e):e)}},info_array:{description:["An {array} of plot information."].join(" "),requiredOpts:["items"],otherOpts:["dflt","freeLength","dimensions"],coerceFunction:function(e,n,r,o){function i(e,n,r){var o,i={set:function(e){o=e}};return void 0===r&&(r=n.dflt),t.valObjectMeta[n.valType].coerceFunction(e,i,r,n),o}if(p(e)&&(e=m(e)),h(e)){var a,s,l,c,u,d,f=2===o.dimensions||"1-2"===o.dimensions&&Array.isArray(e)&&h(e[0]),g=o.items,v=[],y=Array.isArray(g),b=y&&f&&h(g[0]),x=f&&y&&!b,_=y&&!x?g.length:e.length;if(r=Array.isArray(r)?r:[],f)for(a=0;a<_;a++)for(v[a]=[],l=h(e[a])?e[a]:[],u=x?g.length:y?g[a].length:l.length,s=0;s<u;s++)c=x?g[s]:y?g[a][s]:g,void 0!==(d=i(l[s],c,(r[a]||[])[s]))&&(v[a][s]=d);else for(a=0;a<_;a++)void 0!==(d=i(e[a],y?g[a]:g,r[a]))&&(v[a]=d);n.set(v)}else n.set(r)},validateFunction:function(e,t){if(!h(e))return!1;var n=t.items,r=Array.isArray(n),o=2===t.dimensions;if(!t.freeLength&&e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(o){if(!h(e[i])||!t.freeLength&&e[i].length!==n[i].length)return!1;for(var a=0;a<e[i].length;a++)if(!g(e[i][a],r?n[i][a]:n))return!1}else if(!g(e[i],r?n[i]:n))return!1;return!0}}},t.coerce=function(e,n,r,o,i){var a=u(r,o).get(),s=u(e,o),l=u(n,o),c=s.get(),d=n._template;if(void 0===c&&d&&(c=u(d,o).get(),d=0),void 0===i&&(i=a.dflt),a.arrayOk){if(h(c))return l.set(c),c;if(p(c))return c=m(c),l.set(c),c}var f=t.valObjectMeta[a.valType].coerceFunction;f(c,l,i,a);var v=l.get();return d&&v===i&&!g(c,a)&&(f(c=u(d,o).get(),l,i,a),v=l.get()),v},t.coerce2=function(e,n,r,o,i){var a=u(e,o),s=t.coerce(e,n,r,o,i),l=a.get();return null!=l&&s},t.coerceFont=function(e,t,n,r){r||(r={}),n=i({},n);var o={family:e(t+".family",(n=i(n,r.overrideDflt||{})).family),size:e(t+".size",n.size),color:e(t+".color",n.color),weight:e(t+".weight",n.weight),style:e(t+".style",n.style)};if(r.noFontVariant||(o.variant=e(t+".variant",n.variant)),r.noFontLineposition||(o.lineposition=e(t+".lineposition",n.lineposition)),r.noFontTextcase||(o.textcase=e(t+".textcase",n.textcase)),!r.noFontShadow){var a=n.shadow;"none"===a&&r.autoShadowDflt&&(a="auto"),o.shadow=e(t+".shadow",a)}return o},t.coercePattern=function(e,t,n,r){if(e(t+".shape")){e(t+".solidity"),e(t+".size");var o="overlay"===e(t+".fillmode");if(!r){var i=e(t+".bgcolor",o?n:void 0);e(t+".fgcolor",o?l.contrast(i):n)}e(t+".fgopacity",o?.5:1)}},t.coerceHoverinfo=function(e,n,r){var o,i=n._module.attributes,s=i.hoverinfo?i:a,l=s.hoverinfo;if(1===r._dataLength){var c="all"===l.dflt?l.flags.slice():l.dflt.split("+");c.splice(c.indexOf("name"),1),o=c.join("+")}return t.coerce(e,n,s,"hoverinfo",o)},t.coerceSelectionMarkerOpacity=function(e,t){if(e.marker){var n,r,o=e.marker.opacity;if(void 0!==o)h(o)||e.selected||e.unselected||(n=o,r=c*o),t("selected.marker.opacity",n),t("unselected.marker.opacity",r)}},t.validate=g},"./node_modules/plotly.js/src/lib/dates.js":function(e,t,n){"use strict";var r,o,i=n("./node_modules/d3-time-format/src/index.js").timeFormat,a=n("./node_modules/fast-isnumeric/index.js"),s=n("./node_modules/plotly.js/src/lib/loggers.js"),l=n("./node_modules/plotly.js/src/lib/mod.js").mod,c=n("./node_modules/plotly.js/src/constants/numerical.js"),u=c.BADNUM,d=c.ONEDAY,f=c.ONEHOUR,h=c.ONEMIN,p=c.ONESEC,m=c.EPOCHJD,g=n("./node_modules/plotly.js/src/registry.js"),v=n("./node_modules/d3-time-format/src/index.js").utcFormat,y=/^\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,b=/^\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,x=(new Date).getFullYear()-70;function _(e){return e&&g.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function w(e,t){return String(e+Math.pow(10,t)).substr(1)}t.dateTick0=function(e,n){var r=function(e,t){return _(e)?t?g.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:g.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}(e,!!n);if(n<2)return r;var o=t.dateTime2ms(r,e);return o+=d*(n-1),t.ms2DateTime(o,0,e)},t.dfltRange=function(e){return _(e)?g.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},t.isJSDate=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.getTime},t.dateTime2ms=function(e,n){if(t.isJSDate(e)){var i=e.getTimezoneOffset()*h,a=(e.getUTCMinutes()-e.getMinutes())*h+(e.getUTCSeconds()-e.getSeconds())*p+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var s=3*h;i=i-s/2+l(a-i+s/2,s)}return(e=Number(e)-i)>=r&&e<=o?e:u}if("string"!=typeof e&&"number"!=typeof e)return u;e=String(e);var c=_(n),v=e.charAt(0);!c||"G"!==v&&"g"!==v||(e=e.substr(1),n="");var w=c&&"chinese"===n.substr(0,7),j=e.match(w?b:y);if(!j)return u;var k=j[1],T=j[3]||"1",A=Number(j[5]||1),M=Number(j[7]||0),S=Number(j[9]||0),C=Number(j[11]||0);if(c){if(2===k.length)return u;var E;k=Number(k);try{var L=g.getComponentMethod("calendars","getCal")(n);if(w){var O="i"===T.charAt(T.length-1);T=parseInt(T,10),E=L.newDate(k,L.toMonthIndex(k,T,O),A)}else E=L.newDate(k,Number(T),A)}catch(e){return u}return E?(E.toJD()-m)*d+M*f+S*h+C*p:u}k=2===k.length?(Number(k)+2e3-x)%100+x:Number(k),T-=1;var R=new Date(Date.UTC(2e3,T,A,M,S));return R.setUTCFullYear(k),R.getUTCMonth()!==T||R.getUTCDate()!==A?u:R.getTime()+C*p},r=t.MIN_MS=t.dateTime2ms("-9999"),o=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,n){return t.dateTime2ms(e,n)!==u};var j=90*d,k=3*f,T=5*h;function A(e,t,n,r,o){if((t||n||r||o)&&(e+=" "+w(t,2)+":"+w(n,2),(r||o)&&(e+=":"+w(r,2),o))){for(var i=4;o%10==0;)i-=1,o/=10;e+="."+w(o,i)}return e}t.ms2DateTime=function(e,t,n){if("number"!=typeof e||!(e>=r&&e<=o))return u;t||(t=0);var i,a,s,c,y,b,x=Math.floor(10*l(e+.05,1)),w=Math.round(e-x/10);if(_(n)){var M=Math.floor(w/d)+m,S=Math.floor(l(e,d));try{i=g.getComponentMethod("calendars","getCal")(n).fromJD(M).formatDate("yyyy-mm-dd")}catch(e){i=v("G%Y-%m-%d")(new Date(w))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;a=t<j?Math.floor(S/f):0,s=t<j?Math.floor(S%f/h):0,c=t<k?Math.floor(S%h/p):0,y=t<T?S%p*10+x:0}else b=new Date(w),i=v("%Y-%m-%d")(b),a=t<j?b.getUTCHours():0,s=t<j?b.getUTCMinutes():0,c=t<k?b.getUTCSeconds():0,y=t<T?10*b.getUTCMilliseconds()+x:0;return A(i,a,s,c,y)},t.ms2DateTimeLocal=function(e){if(!(e>=r+d&&e<=o-d))return u;var t=Math.floor(10*l(e+.05,1)),n=new Date(Math.round(e-t/10));return A(i("%Y-%m-%d")(n),n.getHours(),n.getMinutes(),n.getSeconds(),10*n.getUTCMilliseconds()+t)},t.cleanDate=function(e,n,r){if(e===u)return n;if(t.isJSDate(e)||"number"==typeof e&&isFinite(e)){if(_(r))return s.error("JS Dates and milliseconds are incompatible with world calendars",e),n;if(!(e=t.ms2DateTimeLocal(+e))&&void 0!==n)return n}else if(!t.isDateTime(e,r))return s.error("unrecognized date",e),n;return e};var M=/%\d?f/g,S=/%h/g,C={1:"1",2:"1",3:"2",4:"2"};function E(e,t,n,r){e=e.replace(M,(function(e){var n=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0"}));var o=new Date(Math.floor(t+.05));if(e=e.replace(S,(function(){return C[n("%q")(o)]})),_(r))try{e=g.getComponentMethod("calendars","worldCalFmt")(e,t,r)}catch(e){return"Invalid"}return n(e)(o)}var L=[59,59.9,59.99,59.999,59.9999];t.formatDate=function(e,t,n,r,o,i){if(o=_(o)&&o,!t)if("y"===n)t=i.year;else if("m"===n)t=i.month;else{if("d"!==n)return function(e,t){var n=l(e+.05,d),r=w(Math.floor(n/f),2)+":"+w(l(Math.floor(n/h),60),2);if("M"!==t){a(t)||(t=0);var o=(100+Math.min(l(e/p,60),L[t])).toFixed(t).substr(1);t>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+o}return r}(e,n)+"\n"+E(i.dayMonthYear,e,r,o);t=i.dayMonth+"\n"+i.year}return E(t,e,r,o)};var O=3*d;t.incrementMonth=function(e,t,n){n=_(n)&&n;var r=l(e,d);if(e=Math.round(e-r),n)try{var o=Math.round(e/d)+m,i=g.getComponentMethod("calendars","getCal")(n),a=i.fromJD(o);return t%12?i.add(a,t,"m"):i.add(a,t/12,"y"),(a.toJD()-m)*d+r}catch(t){s.error("invalid ms "+e+" in calendar "+n)}var c=new Date(e+O);return c.setUTCMonth(c.getUTCMonth()+t)+r-O},t.findExactDates=function(e,t){for(var n,r,o=0,i=0,s=0,l=0,c=_(t)&&g.getComponentMethod("calendars","getCal")(t),u=0;u<e.length;u++)if(r=e[u],a(r)){if(!(r%d))if(c)try{1===(n=c.fromJD(r/d+m)).day()?1===n.month()?o++:i++:s++}catch(e){}else 1===(n=new Date(r)).getUTCDate()?0===n.getUTCMonth()?o++:i++:s++}else l++;s+=i+=o;var f=e.length-l;return{exactYears:o/f,exactMonths:i/f,exactDays:s/f}}},"./node_modules/plotly.js/src/lib/dom.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/lib/loggers.js"),i=n("./node_modules/plotly.js/src/lib/matrix.js"),a=n("./node_modules/gl-mat4/index.js");function s(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function l(e,t,n){var r="plotly.js-style-"+e,i=document.getElementById(r);i||((i=document.createElement("style")).setAttribute("id",r),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a.insertRule?a.insertRule(t+"{"+n+"}",0):a.addRule?a.addRule(t,n,0):o.warn("addStyleRule failed")}function c(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return"none"===n?null:n.replace("matrix","").replace("3d","").slice(1,-1).split(",").map((function(e){return+e}))}function u(e){for(var t=[];d(e);)t.push(e),e=e.parentNode,"function"==typeof ShadowRoot&&e instanceof ShadowRoot&&(e=e.host);return t}function d(e){return e&&(e instanceof Element||e instanceof HTMLElement)}e.exports={getGraphDiv:function(e){var t;if("string"==typeof e){if(null===(t=document.getElementById(e)))throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null==e)throw new Error("DOM element provided is null or undefined");return e},isPlotDiv:function(e){var t=r.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")},removeElement:s,addStyleRule:function(e,t){l("global",e,t)},addRelatedStyleRule:l,deleteRelatedStyleRule:function(e){var t="plotly.js-style-"+e,n=document.getElementById(t);n&&s(n)},getFullTransformMatrix:function(e){var t=u(e),n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach((function(e){var t=c(e);if(t){var r=i.convertCssMatrix(t);n=a.multiply(n,n,r)}})),n},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}}},"./node_modules/plotly.js/src/lib/events.js":function(e,t,n){"use strict";var r=n("./node_modules/events/events.js").EventEmitter,o={init:function(e){if(e._ev instanceof r)return e;var t=new r,n=new r;return e._ev=t,e._internalEv=n,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=n.on.bind(n),e._internalOnce=n.once.bind(n),e._removeInternalListener=n.removeListener.bind(n),e._removeAllInternalListeners=n.removeAllListeners.bind(n),e.emit=function(r,o){"undefined"!=typeof jQuery&&jQuery(e).trigger(r,o),t.emit(r,o),n.emit(r,o)},e},triggerHandler:function(e,t,n){var r,o;"undefined"!=typeof jQuery&&(r=jQuery(e).triggerHandler(t,n));var i=e._ev;if(!i)return r;var a,s=i._events[t];if(!s)return r;function l(e){return e.listener?(i.removeListener(t,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(i,[n]))):e.apply(i,[n])}for(s=Array.isArray(s)?s:[s],a=0;a<s.length-1;a++)l(s[a]);return o=l(s[a]),void 0!==r?r:o},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}};e.exports=o},"./node_modules/plotly.js/src/lib/extend.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/is_plain_object.js"),o=Array.isArray;function i(e,t,n,a){var s,l,c,u,d,f,h=e[0],p=e.length;if(2===p&&o(h)&&o(e[1])&&0===h.length){if(function(e,t){var n,r;for(n=0;n<e.length;n++){if(null!==(r=e[n])&&"object"==typeof r)return!1;void 0!==r&&(t[n]=r)}return!0}(e[1],h))return h;h.splice(0,h.length)}for(var m=1;m<p;m++)for(l in s=e[m])c=h[l],u=s[l],a&&o(u)?h[l]=u:t&&u&&(r(u)||(d=o(u)))?(d?(d=!1,f=c&&o(c)?c:[]):f=c&&r(c)?c:{},h[l]=i([f,u],t,n,a)):(void 0!==u||n)&&(h[l]=u);return h}t.extendFlat=function(){return i(arguments,!1,!1,!1)},t.extendDeep=function(){return i(arguments,!0,!1,!1)},t.extendDeepAll=function(){return i(arguments,!0,!0,!1)},t.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)}},"./node_modules/plotly.js/src/lib/filter_unique.js":function(e,t,n){"use strict";e.exports=function(e){for(var t={},n=[],r=0,o=0;o<e.length;o++){var i=e[o];1!==t[i]&&(t[i]=1,n[r++]=i)}return n}},"./node_modules/plotly.js/src/lib/filter_visible.js":function(e,t,n){"use strict";function r(e){return!0===e.visible}function o(e){var t=e[0].trace;return!0===t.visible&&0!==t._length}e.exports=function(e){for(var t,n=(t=e,Array.isArray(t)&&Array.isArray(t[0])&&t[0][0]&&t[0][0].trace?o:r),i=[],a=0;a<e.length;a++){var s=e[a];n(s)&&i.push(s)}return i}},"./node_modules/plotly.js/src/lib/geometry2d.js":function(e,t,n){"use strict";var r,o,i,a=n("./node_modules/plotly.js/src/lib/mod.js").mod;function s(e,t,n,r,o,i,a,s){var l=n-e,c=o-e,u=a-o,d=r-t,f=i-t,h=s-i,p=l*h-u*d;if(0===p)return null;var m=(c*h-u*f)/p,g=(c*d-l*f)/p;return g<0||g>1||m<0||m>1?null:{x:e+l*m,y:t+d*m}}function l(e,t,n,r,o){var i=r*e+o*t;if(i<0)return r*r+o*o;if(i>n){var a=r-e,s=o-t;return a*a+s*s}var l=r*t-o*e;return l*l/n}t.segmentsIntersect=s,t.segmentDistance=function(e,t,n,r,o,i,a,c){if(s(e,t,n,r,o,i,a,c))return 0;var u=n-e,d=r-t,f=a-o,h=c-i,p=u*u+d*d,m=f*f+h*h,g=Math.min(l(u,d,p,o-e,i-t),l(u,d,p,a-e,c-t),l(f,h,m,e-o,t-i),l(f,h,m,n-o,r-i));return Math.sqrt(g)},t.getTextLocation=function(e,t,n,s){if(e===o&&s===i||(r={},o=e,i=s),r[n])return r[n];var l=e.getPointAtLength(a(n-s/2,t)),c=e.getPointAtLength(a(n+s/2,t)),u=Math.atan((c.y-l.y)/(c.x-l.x)),d=e.getPointAtLength(a(n,t)),f={x:(4*d.x+l.x+c.x)/6,y:(4*d.y+l.y+c.y)/6,theta:u};return r[n]=f,f},t.clearLocationCache=function(){o=null},t.getVisibleSegment=function(e,t,n){var r,o,i=t.left,a=t.right,s=t.top,l=t.bottom,c=0,u=e.getTotalLength(),d=u;function f(t){var n=e.getPointAtLength(t);0===t?r=n:t===u&&(o=n);var c=n.x<i?i-n.x:n.x>a?n.x-a:0,d=n.y<s?s-n.y:n.y>l?n.y-l:0;return Math.sqrt(c*c+d*d)}for(var h=f(c);h;){if((c+=h+n)>d)return;h=f(c)}for(h=f(d);h;){if(c>(d-=h+n))return;h=f(d)}return{min:c,max:d,len:d-c,total:u,isClosed:0===c&&d===u&&Math.abs(r.x-o.x)<.1&&Math.abs(r.y-o.y)<.1}},t.findPointOnPath=function(e,t,n,r){for(var o,i,a,s=(r=r||{}).pathLength||e.getTotalLength(),l=r.tolerance||.001,c=r.iterationLimit||30,u=e.getPointAtLength(0)[n]>e.getPointAtLength(s)[n]?-1:1,d=0,f=0,h=s;d<c;){if(o=(f+h)/2,a=(i=e.getPointAtLength(o))[n]-t,Math.abs(a)<l)return i;u*a>0?h=o:f=o,d++}return i}},"./node_modules/plotly.js/src/lib/gl_format_color.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/tinycolor2/cjs/tinycolor.js"),i=n("./node_modules/plotly.js/node_modules/color-normalize/index.js"),a=n("./node_modules/plotly.js/src/components/colorscale/index.js"),s=n("./node_modules/plotly.js/src/components/color/attributes.js").defaultLine,l=n("./node_modules/plotly.js/src/lib/array.js").isArrayOrTypedArray,c=i(s);function u(e,t){var n=e;return n[3]*=t,n}function d(e){if(r(e))return c;var t=i(e);return t.length?t:c}function f(e){return r(e)?e:1}e.exports={formatColor:function(e,t,n){var r=e.color;r&&r._inputArray&&(r=r._inputArray);var o,s,h,p,m,g=l(r),v=l(t),y=a.extractOpts(e),b=[];if(o=void 0!==y.colorscale?a.makeColorScaleFuncFromTrace(e):d,s=g?function(e,t){return void 0===e[t]?c:i(o(e[t]))}:d,h=v?function(e,t){return void 0===e[t]?1:f(e[t])}:f,g||v)for(var x=0;x<n;x++)p=s(r,x),m=h(t,x),b[x]=u(p,m);else b=u(i(r),t);return b},parseColorScale:function(e){var t=a.extractOpts(e),n=t.colorscale;return t.reversescale&&(n=a.flipScale(t.colorscale)),n.map((function(e){var t=e[0],n=o(e[1]).toRgb();return{index:t,rgb:[n.r,n.g,n.b,n.a]}}))}}},"./node_modules/plotly.js/src/lib/identity.js":function(e,t,n){"use strict";e.exports=function(e){return e}},"./node_modules/plotly.js/src/lib/increment.js":function(e,t,n){"use strict";e.exports=function(e,t){if(!t)return e;var n=1/Math.abs(t),r=n>1?(n*e+n*t)/n:e+t,o=String(r).length;if(o>16){var i=String(t).length;if(o>=String(e).length+i){var a=parseFloat(r).toPrecision(12);-1===a.indexOf("e+")&&(r=+a)}}return r}},"./node_modules/plotly.js/src/lib/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/d3-time-format/src/index.js").utcFormat,i=n("./node_modules/plotly.js/node_modules/d3-format/src/index.js").format,a=n("./node_modules/fast-isnumeric/index.js"),s=n("./node_modules/plotly.js/src/constants/numerical.js"),l=s.FP_SAFE,c=-l,u=s.BADNUM,d=e.exports={};d.adjustFormat=function(e){return!e||/^\d[.]\df/.test(e)||/[.]\d%/.test(e)?e:"0.f"===e?"~f":/^\d%/.test(e)?"~%":/^\ds/.test(e)?"~s":!/^[~,.0$]/.test(e)&&/[&fps]/.test(e)?"~"+e:e};var f={};d.warnBadFormat=function(e){var t=String(e);f[t]||(f[t]=1,d.warn('encountered bad format: "'+t+'"'))},d.noFormat=function(e){return String(e)},d.numberFormat=function(e){var t;try{t=i(d.adjustFormat(e))}catch(t){return d.warnBadFormat(e),d.noFormat}return t},d.nestedProperty=n("./node_modules/plotly.js/src/lib/nested_property.js"),d.keyedContainer=n("./node_modules/plotly.js/src/lib/keyed_container.js"),d.relativeAttr=n("./node_modules/plotly.js/src/lib/relative_attr.js"),d.isPlainObject=n("./node_modules/plotly.js/src/lib/is_plain_object.js"),d.toLogRange=n("./node_modules/plotly.js/src/lib/to_log_range.js"),d.relinkPrivateKeys=n("./node_modules/plotly.js/src/lib/relink_private.js");var h=n("./node_modules/plotly.js/src/lib/array.js");d.isArrayBuffer=h.isArrayBuffer,d.isTypedArray=h.isTypedArray,d.isArrayOrTypedArray=h.isArrayOrTypedArray,d.isArray1D=h.isArray1D,d.ensureArray=h.ensureArray,d.concat=h.concat,d.maxRowLength=h.maxRowLength,d.minRowLength=h.minRowLength;var p=n("./node_modules/plotly.js/src/lib/mod.js");d.mod=p.mod,d.modHalf=p.modHalf;var m=n("./node_modules/plotly.js/src/lib/coerce.js");d.valObjectMeta=m.valObjectMeta,d.coerce=m.coerce,d.coerce2=m.coerce2,d.coerceFont=m.coerceFont,d.coercePattern=m.coercePattern,d.coerceHoverinfo=m.coerceHoverinfo,d.coerceSelectionMarkerOpacity=m.coerceSelectionMarkerOpacity,d.validate=m.validate;var g=n("./node_modules/plotly.js/src/lib/dates.js");d.dateTime2ms=g.dateTime2ms,d.isDateTime=g.isDateTime,d.ms2DateTime=g.ms2DateTime,d.ms2DateTimeLocal=g.ms2DateTimeLocal,d.cleanDate=g.cleanDate,d.isJSDate=g.isJSDate,d.formatDate=g.formatDate,d.incrementMonth=g.incrementMonth,d.dateTick0=g.dateTick0,d.dfltRange=g.dfltRange,d.findExactDates=g.findExactDates,d.MIN_MS=g.MIN_MS,d.MAX_MS=g.MAX_MS;var v=n("./node_modules/plotly.js/src/lib/search.js");d.findBin=v.findBin,d.sorterAsc=v.sorterAsc,d.sorterDes=v.sorterDes,d.distinctVals=v.distinctVals,d.roundUp=v.roundUp,d.sort=v.sort,d.findIndexOfMin=v.findIndexOfMin,d.sortObjectKeys=n("./node_modules/plotly.js/src/lib/sort_object_keys.js");var y=n("./node_modules/plotly.js/src/lib/stats.js");d.aggNums=y.aggNums,d.len=y.len,d.mean=y.mean,d.geometricMean=y.geometricMean,d.median=y.median,d.midRange=y.midRange,d.variance=y.variance,d.stdev=y.stdev,d.interp=y.interp;var b=n("./node_modules/plotly.js/src/lib/matrix.js");d.init2dArray=b.init2dArray,d.transposeRagged=b.transposeRagged,d.dot=b.dot,d.translationMatrix=b.translationMatrix,d.rotationMatrix=b.rotationMatrix,d.rotationXYMatrix=b.rotationXYMatrix,d.apply3DTransform=b.apply3DTransform,d.apply2DTransform=b.apply2DTransform,d.apply2DTransform2=b.apply2DTransform2,d.convertCssMatrix=b.convertCssMatrix,d.inverseTransformMatrix=b.inverseTransformMatrix;var x=n("./node_modules/plotly.js/src/lib/angles.js");d.deg2rad=x.deg2rad,d.rad2deg=x.rad2deg,d.angleDelta=x.angleDelta,d.angleDist=x.angleDist,d.isFullCircle=x.isFullCircle,d.isAngleInsideSector=x.isAngleInsideSector,d.isPtInsideSector=x.isPtInsideSector,d.pathArc=x.pathArc,d.pathSector=x.pathSector,d.pathAnnulus=x.pathAnnulus;var _=n("./node_modules/plotly.js/src/lib/anchor_utils.js");d.isLeftAnchor=_.isLeftAnchor,d.isCenterAnchor=_.isCenterAnchor,d.isRightAnchor=_.isRightAnchor,d.isTopAnchor=_.isTopAnchor,d.isMiddleAnchor=_.isMiddleAnchor,d.isBottomAnchor=_.isBottomAnchor;var w=n("./node_modules/plotly.js/src/lib/geometry2d.js");d.segmentsIntersect=w.segmentsIntersect,d.segmentDistance=w.segmentDistance,d.getTextLocation=w.getTextLocation,d.clearLocationCache=w.clearLocationCache,d.getVisibleSegment=w.getVisibleSegment,d.findPointOnPath=w.findPointOnPath;var j=n("./node_modules/plotly.js/src/lib/extend.js");d.extendFlat=j.extendFlat,d.extendDeep=j.extendDeep,d.extendDeepAll=j.extendDeepAll,d.extendDeepNoArrays=j.extendDeepNoArrays;var k=n("./node_modules/plotly.js/src/lib/loggers.js");d.log=k.log,d.warn=k.warn,d.error=k.error;var T=n("./node_modules/plotly.js/src/lib/regex.js");d.counterRegex=T.counter;var A=n("./node_modules/plotly.js/src/lib/throttle.js");d.throttle=A.throttle,d.throttleDone=A.done,d.clearThrottle=A.clear;var M=n("./node_modules/plotly.js/src/lib/dom.js");function S(e){var t={};for(var n in e)for(var r=e[n],o=0;o<r.length;o++)t[r[o]]=+n;return t}d.getGraphDiv=M.getGraphDiv,d.isPlotDiv=M.isPlotDiv,d.removeElement=M.removeElement,d.addStyleRule=M.addStyleRule,d.addRelatedStyleRule=M.addRelatedStyleRule,d.deleteRelatedStyleRule=M.deleteRelatedStyleRule,d.getFullTransformMatrix=M.getFullTransformMatrix,d.getElementTransformMatrix=M.getElementTransformMatrix,d.getElementAndAncestors=M.getElementAndAncestors,d.equalDomRects=M.equalDomRects,d.clearResponsive=n("./node_modules/plotly.js/src/lib/clear_responsive.js"),d.preserveDrawingBuffer=n("./node_modules/plotly.js/src/lib/preserve_drawing_buffer.js"),d.makeTraceGroups=n("./node_modules/plotly.js/src/lib/make_trace_groups.js"),d._=n("./node_modules/plotly.js/src/lib/localize.js"),d.notifier=n("./node_modules/plotly.js/src/lib/notifier.js"),d.filterUnique=n("./node_modules/plotly.js/src/lib/filter_unique.js"),d.filterVisible=n("./node_modules/plotly.js/src/lib/filter_visible.js"),d.pushUnique=n("./node_modules/plotly.js/src/lib/push_unique.js"),d.increment=n("./node_modules/plotly.js/src/lib/increment.js"),d.cleanNumber=n("./node_modules/plotly.js/src/lib/clean_number.js"),d.ensureNumber=function(e){return a(e)?(e=Number(e))>l||e<c?u:e:u},d.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&(a(e)&&e>=0&&e%1==0)},d.noop=n("./node_modules/plotly.js/src/lib/noop.js"),d.identity=n("./node_modules/plotly.js/src/lib/identity.js"),d.repeat=function(e,t){for(var n=new Array(t),r=0;r<t;r++)n[r]=e;return n},d.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var o=0;o<t.length;o++){var i=t[o],a=d.nestedProperty(e,i.replace("?",n)),s=d.nestedProperty(e,i.replace("?",r)),l=a.get();a.set(s.get()),s.set(l)}},d.raiseToTop=function(e){e.parentNode.appendChild(e)},d.cancelTransition=function(e){return e.transition().duration(0)},d.constrain=function(e,t,n){return t>n?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},d.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},d.simpleMap=function(e,t,n,r,o){for(var i=e.length,a=new Array(i),s=0;s<i;s++)a[s]=t(e[s],n,r,o);return a},d.randstr=function e(t,n,r,o){if(r||(r=16),void 0===n&&(n=24),n<=0)return"0";var i,a,s=Math.log(Math.pow(2,n))/Math.log(r),l="";for(i=2;s===1/0;i*=2)s=Math.log(Math.pow(2,n/i))/Math.log(r)*i;var c=s-Math.floor(s);for(i=0;i<Math.floor(s);i++)l=Math.floor(Math.random()*r).toString(r)+l;c&&(a=Math.pow(r,c),l=Math.floor(Math.random()*a).toString(r)+l);var u=parseInt(l,r);return t&&t[l]||u!==1/0&&u>=Math.pow(2,n)?o>10?(d.warn("randstr failed uniqueness"),l):e(t,n,r,(o||0)+1):l},d.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},d.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,o,i,a=e.length,s=2*a,l=2*t-1,c=new Array(l),u=new Array(a);for(n=0;n<l;n++)c[n]=(1-Math.cos(Math.PI*(n+1)/t))/(2*t);for(n=0;n<a;n++){for(i=0,r=0;r<l;r++)(o=n+r+1-t)<-a?o-=s*Math.round(o/s):o>=s&&(o-=s*Math.floor(o/s)),o<0?o=-1-o:o>=a&&(o=s-1-o),i+=e[o]*c[r];u[n]=i}return u},d.syncOrAsync=function(e,t,n){var r;function o(){return d.syncOrAsync(e,t,n)}for(;e.length;)if((r=(0,e.splice(0,1)[0])(t))&&r.then)return r.then(o);return n&&n(t)},d.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},d.noneOrAll=function(e,t,n){if(e){var r,o=!1,i=!0;for(r=0;r<n.length;r++)null!=e[n[r]]?o=!0:i=!1;if(o&&!i)for(r=0;r<n.length;r++)e[n[r]]=t[n[r]]}},d.mergeArray=function(e,t,n,r){var o="function"==typeof r;if(d.isArrayOrTypedArray(e))for(var i=Math.min(e.length,t.length),a=0;a<i;a++){var s=e[a];t[a][n]=o?r(s):s}},d.mergeArrayCastPositive=function(e,t,n){return d.mergeArray(e,t,n,(function(e){var t=+e;return isFinite(t)&&t>0?t:0}))},d.fillArray=function(e,t,n,r){if(r=r||d.identity,d.isArrayOrTypedArray(e))for(var o=0;o<t.length;o++)t[o][n]=r(e[o])},d.castOption=function(e,t,n,r){r=r||d.identity;var o=d.nestedProperty(e,n).get();return d.isArrayOrTypedArray(o)?Array.isArray(t)&&d.isArrayOrTypedArray(o[t[0]])?r(o[t[0]][t[1]]):r(o[t]):o},d.extractOption=function(e,t,n,r){if(n in e)return e[n];var o=d.nestedProperty(t,r).get();return Array.isArray(o)?void 0:o},d.tagSelected=function(e,t,n){var r,o,i=t.selectedpoints,a=t._indexToPoints;a&&(r=S(a));for(var s=0;s<i.length;s++){var l=i[s];if(d.isIndex(l)||d.isArrayOrTypedArray(l)&&d.isIndex(l[0])&&d.isIndex(l[1])){var c=r?r[l]:l,u=n?n[c]:c;void 0!==(o=u)&&o<e.length&&(e[u].selected=1)}}},d.selIndices2selPoints=function(e){var t=e.selectedpoints,n=e._indexToPoints;if(n){for(var r=S(n),o=[],i=0;i<t.length;i++){var a=t[i];if(d.isIndex(a)){var s=r[a];d.isIndex(s)&&o.push(s)}}return o}return t},d.getTargetArray=function(e,t){var n=t.target;if("string"==typeof n&&n){var r=d.nestedProperty(e,n).get();return!!d.isArrayOrTypedArray(r)&&r}return!!d.isArrayOrTypedArray(n)&&n},d.minExtend=function e(t,n,r){var o={};"object"!=typeof n&&(n={});var i,a,s,l="pieLike"===r?-1:3,c=Object.keys(t);for(i=0;i<c.length;i++)s=t[a=c[i]],"_"!==a.charAt(0)&&"function"!=typeof s&&("module"===a?o[a]=s:Array.isArray(s)?o[a]="colorscale"===a||-1===l?s.slice():s.slice(0,l):d.isTypedArray(s)?o[a]=-1===l?s.subarray():s.subarray(0,l):o[a]=s&&"object"==typeof s?e(t[a],n[a],r):s);for(c=Object.keys(n),i=0;i<c.length;i++)"object"==typeof(s=n[a=c[i]])&&a in o&&"object"==typeof o[a]||(o[a]=s);return o},d.titleCase=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},d.containsAny=function(e,t){for(var n=0;n<t.length;n++)if(-1!==e.indexOf(t[n]))return!0;return!1},d.isIE=function(){return void 0!==window.navigator.msSaveBlob};var C=/Version\/[\d\.]+.*Safari/;d.isSafari=function(){return C.test(window.navigator.userAgent)};var E=/iPad|iPhone|iPod/;d.isIOS=function(){return E.test(window.navigator.userAgent)};var L=/Firefox\/(\d+)\.\d+/;d.getFirefoxVersion=function(){var e=L.exec(window.navigator.userAgent);if(e&&2===e.length){var t=parseInt(e[1]);if(!isNaN(t))return t}return null},d.isD3Selection=function(e){return e instanceof r.selection},d.ensureSingle=function(e,t,n,r){var o=e.select(t+(n?"."+n:""));if(o.size())return o;var i=e.append(t);return n&&i.classed(n,!0),r&&i.call(r),i},d.ensureSingleById=function(e,t,n,r){var o=e.select(t+"#"+n);if(o.size())return o;var i=e.append(t).attr("id",n);return r&&i.call(r),i},d.objectFromPath=function(e,t){for(var n,r=e.split("."),o=n={},i=0;i<r.length;i++){var a=r[i],s=null,l=r[i].match(/(.*)\[([0-9]+)\]/);l?(a=l[1],s=l[2],n=n[a]=[],i===r.length-1?n[s]=t:n[s]={},n=n[s]):(i===r.length-1?n[a]=t:n[a]={},n=n[a])}return o};var O=/^([^\[\.]+)\.(.+)?/,R=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function I(e){return"__"===e.slice(0,2)}d.expandObjectPaths=function(e){var t,n,r,o,i,a,s;if("object"==typeof e&&!Array.isArray(e))for(n in e)if(e.hasOwnProperty(n))if(t=n.match(O)){if(o=e[n],I(r=t[1]))continue;delete e[n],e[r]=d.extendDeepNoArrays(e[r]||{},d.objectFromPath(n,d.expandObjectPaths(o))[r])}else if(t=n.match(R)){if(o=e[n],I(r=t[1]))continue;if(i=parseInt(t[2]),delete e[n],e[r]=e[r]||[],"."===t[3])s=t[4],a=e[r][i]=e[r][i]||{},d.extendDeepNoArrays(a,d.objectFromPath(s,d.expandObjectPaths(o)));else{if(I(r))continue;e[r][i]=d.expandObjectPaths(o)}}else{if(I(n))continue;e[n]=d.expandObjectPaths(e[n])}return e},d.numSeparate=function(e,t,n){if(n||(n=!1),"string"!=typeof t||0===t.length)throw new Error("Separator string required for formatting!");"number"==typeof e&&(e=String(e));var r=/(\d+)(\d{3})/,o=t.charAt(0),i=t.charAt(1),a=e.split("."),s=a[0],l=a.length>1?o+a[1]:"";if(i&&(a.length>1||s.length>4||n))for(;r.test(s);)s=s.replace(r,"$1"+i+"$2");return s+l},d.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var P=/^\w*$/;d.templateString=function(e,t){var n={};return e.replace(d.TEMPLATE_STRING_REGEX,(function(e,r){var o;return P.test(r)?o=t[r]:(n[r]=n[r]||d.nestedProperty(t,r).get,o=n[r]()),d.isValidTextValue(o)?o:""}))};var D={max:10,count:0,name:"hovertemplate"};d.hovertemplateString=function(){return H.apply(D,arguments)};var z={max:10,count:0,name:"texttemplate"};d.texttemplateString=function(){return H.apply(z,arguments)};var N=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function F(e){var t=e.match(N);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var B={max:10,count:0,name:"texttemplate",parseMultDiv:!0};d.texttemplateStringForShapes=function(){return H.apply(B,arguments)};var U=/^[:|\|]/;function H(e,t,n){var r=this,i=arguments;t||(t={});var a={};return e.replace(d.TEMPLATE_STRING_REGEX,(function(e,s,l){var c="_xother"===s||"_yother"===s,u="_xother_"===s||"_yother_"===s,f="xother_"===s||"yother_"===s,h="xother"===s||"yother"===s||c||f||u,p=s;(c||u)&&(p=p.substring(1)),(f||u)&&(p=p.substring(0,p.length-1));var m,g,v,y=null,b=null;if(r.parseMultDiv){var x=F(p);p=x.key,y=x.op,b=x.number}if(h){if(void 0===(m=t[p]))return""}else for(v=3;v<i.length;v++)if(g=i[v]){if(g.hasOwnProperty(p)){m=g[p];break}if(P.test(p)||(m=d.nestedProperty(g,p).get(),(m=a[p]||d.nestedProperty(g,p).get())&&(a[p]=m)),void 0!==m)break}if(void 0!==m&&("*"===y&&(m*=b),"/"===y&&(m/=b)),void 0===m&&r)return r.count<r.max&&(d.warn("Variable '"+p+"' in "+r.name+" could not be found!"),m=e),r.count===r.max&&d.warn("Too many "+r.name+" warnings - additional warnings will be suppressed"),r.count++,e;if(l){var _;if(":"===l[0]&&(_=n?n.numberFormat:d.numberFormat,""!==m&&(m=_(l.replace(U,""))(m))),"|"===l[0]){_=n?n.timeFormat:o;var w=d.dateTime2ms(m);m=d.formatDate(w,l.replace(U,""),!1,_)}}else{var j=p+"Label";t.hasOwnProperty(j)&&(m=t[j])}return h&&(m="("+m+")",(c||u)&&(m=" "+m),(f||u)&&(m+=" ")),m}))}d.subplotSort=function(e,t){for(var n=Math.min(e.length,t.length)+1,r=0,o=0,i=0;i<n;i++){var a=e.charCodeAt(i)||0,s=t.charCodeAt(i)||0,l=a>=48&&a<=57,c=s>=48&&s<=57;if(l&&(r=10*r+a-48),c&&(o=10*o+s-48),!l||!c){if(r!==o)return r-o;if(a!==s)return a-s}}return o-r};var V=2e9;d.seedPseudoRandom=function(){V=2e9},d.pseudoRandom=function(){var e=V;return V=(69069*V+1)%4294967296,Math.abs(V-e)<429496729?d.pseudoRandom():V/4294967296},d.fillText=function(e,t,n){var r=Array.isArray(n)?function(e){n.push(e)}:function(e){n.text=e},o=d.extractOption(e,t,"htx","hovertext");if(d.isValidTextValue(o))return r(o);var i=d.extractOption(e,t,"tx","text");return d.isValidTextValue(i)?r(i):void 0},d.isValidTextValue=function(e){return e||0===e},d.formatPercent=function(e,t){t=t||0;for(var n=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",r=0;r<t;r++)-1!==n.indexOf(".")&&(n=(n=n.replace("0%","%")).replace(".%","%"));return n},d.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||"none"===t},d.strTranslate=function(e,t){return e||t?"translate("+e+","+t+")":""},d.strRotate=function(e){return e?"rotate("+e+")":""},d.strScale=function(e){return 1!==e?"scale("+e+")":""},d.getTextTransform=function(e){var t=e.noCenter,n=e.textX,r=e.textY,o=e.targetX,i=e.targetY,a=e.anchorX||0,s=e.anchorY||0,l=e.rotate,c=e.scale;return c?c>1&&(c=1):c=0,d.strTranslate(o-c*(n+a),i-c*(r+s))+d.strScale(c)+(l?"rotate("+l+(t?"":" "+n+" "+r)+")":"")},d.setTransormAndDisplay=function(e,t){e.attr("transform",d.getTextTransform(t)),e.style("display",t.scale?null:"none")},d.ensureUniformFontSize=function(e,t){var n=d.extendFlat({},t);return n.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),n},d.join2=function(e,t,n){var r=e.length;return r>1?e.slice(0,-1).join(t)+n+e[r-1]:e.join(t)},d.bigFont=function(e){return Math.round(1.2*e)};var G=d.getFirefoxVersion(),q=null!==G&&G<86;d.getPositionFromD3Event=function(){return q?[r.event.layerX,r.event.layerY]:[r.event.offsetX,r.event.offsetY]}},"./node_modules/plotly.js/src/lib/is_plain_object.js":function(e,t,n){"use strict";e.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")}},"./node_modules/plotly.js/src/lib/keyed_container.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/nested_property.js"),o=/^\w*$/;e.exports=function(e,t,n,i){var a,s,l;n=n||"name",i=i||"value";var c={};t&&t.length?(l=r(e,t),s=l.get()):s=e,t=t||"";var u={};if(s)for(a=0;a<s.length;a++)u[s[a][n]]=a;var d=o.test(i),f={set:function(e,t){var o=null===t?4:0;if(!s){if(!l||4===o)return;s=[],l.set(s)}var a=u[e];if(void 0===a){if(4===o)return;o|=3,a=s.length,u[e]=a}else t!==(d?s[a][i]:r(s[a],i).get())&&(o|=2);var h=s[a]=s[a]||{};return h[n]=e,d?h[i]=t:r(h,i).set(t),null!==t&&(o&=-5),c[a]=c[a]|o,f},get:function(e){if(s){var t=u[e];return void 0===t?void 0:d?s[t][i]:r(s[t],i).get()}},rename:function(e,t){var r=u[e];return void 0===r||(c[r]=1|c[r],u[t]=r,delete u[e],s[r][n]=t),f},remove:function(e){var t=u[e];if(void 0===t)return f;var o=s[t];if(Object.keys(o).length>2)return c[t]=2|c[t],f.set(e,null);if(d){for(a=t;a<s.length;a++)c[a]=3|c[a];for(a=t;a<s.length;a++)u[s[a][n]]--;s.splice(t,1),delete u[e]}else r(o,i).set(null),c[t]=6|c[t];return f},constructUpdate:function(){for(var e,o,a={},l=Object.keys(c),u=0;u<l.length;u++)o=l[u],e=t+"["+o+"]",s[o]?(1&c[o]&&(a[e+"."+n]=s[o][n]),2&c[o]&&(a[e+"."+i]=d?4&c[o]?null:s[o][i]:4&c[o]?null:r(s[o],i).get())):a[e]=null;return a}};return f}},"./node_modules/plotly.js/src/lib/localize.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js");e.exports=function(e,t){for(var n=e._context.locale,o=0;o<2;o++){for(var i=e._context.locales,a=0;a<2;a++){var s=(i[n]||{}).dictionary;if(s){var l=s[t];if(l)return l}i=r.localeRegistry}var c=n.split("-")[0];if(c===n)break;n=c}return t}},"./node_modules/plotly.js/src/lib/loggers.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plot_api/plot_config.js").dfltConfig,o=n("./node_modules/plotly.js/src/lib/notifier.js"),i=e.exports={};i.log=function(){var e;if(r.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(r.notifyOnLogging>1){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);o(n.join("<br>"),"long")}},i.warn=function(){var e;if(r.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(r.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);o(n.join("<br>"),"stick")}},i.error=function(){var e;if(r.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.error.apply(console,t)}if(r.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);o(n.join("<br>"),"stick")}}},"./node_modules/plotly.js/src/lib/make_trace_groups.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js");e.exports=function(e,t,n){var o=e.selectAll("g."+n.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));o.exit().remove(),o.enter().append("g").attr("class",n),o.order();var i=e.classed("rangeplot")?"nodeRangePlot3":"node3";return o.each((function(e){e[0][i]=r.select(this)})),o}},"./node_modules/plotly.js/src/lib/matrix.js":function(e,t,n){"use strict";var r=n("./node_modules/gl-mat4/index.js");t.init2dArray=function(e,t){for(var n=new Array(e),r=0;r<e;r++)n[r]=new Array(t);return n},t.transposeRagged=function(e){var t,n,r=0,o=e.length;for(t=0;t<o;t++)r=Math.max(r,e[t].length);var i=new Array(r);for(t=0;t<r;t++)for(i[t]=new Array(o),n=0;n<o;n++)i[t][n]=e[n][t];return i},t.dot=function(e,n){if(!e.length||!n.length||e.length!==n.length)return null;var r,o,i=e.length;if(e[0].length)for(r=new Array(i),o=0;o<i;o++)r[o]=t.dot(e[o],n);else if(n[0].length){var a=t.transposeRagged(n);for(r=new Array(a.length),o=0;o<a.length;o++)r[o]=t.dot(e,a[o])}else for(r=0,o=0;o<i;o++)r+=e[o]*n[o];return r},t.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]},t.rotationMatrix=function(e){var t=e*Math.PI/180;return[[Math.cos(t),-Math.sin(t),0],[Math.sin(t),Math.cos(t),0],[0,0,1]]},t.rotationXYMatrix=function(e,n,r){return t.dot(t.dot(t.translationMatrix(n,r),t.rotationMatrix(e)),t.translationMatrix(-n,-r))},t.apply3DTransform=function(e){return function(){var n=arguments,r=1===arguments.length?n[0]:[n[0],n[1],n[2]||0];return t.dot(e,[r[0],r[1],r[2],1]).slice(0,3)}},t.apply2DTransform=function(e){return function(){var n=arguments;3===n.length&&(n=n[0]);var r=1===arguments.length?n[0]:[n[0],n[1]];return t.dot(e,[r[0],r[1],1]).slice(0,2)}},t.apply2DTransform2=function(e){var n=t.apply2DTransform(e);return function(e){return n(e.slice(0,2)).concat(n(e.slice(2,4)))}},t.convertCssMatrix=function(e){if(e){var t=e.length;if(16===t)return e;if(6===t)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 t=[];return r.invert(t,e),[[t[0],t[1],t[2],t[3]],[t[4],t[5],t[6],t[7]],[t[8],t[9],t[10],t[11]],[t[12],t[13],t[14],t[15]]]}},"./node_modules/plotly.js/src/lib/mod.js":function(e,t,n){"use strict";e.exports={mod:function(e,t){var n=e%t;return n<0?n+t:n},modHalf:function(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}}},"./node_modules/plotly.js/src/lib/nested_property.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/array.js").isArrayOrTypedArray;function i(e,t){return function(){var n,r,a,s,l,c=e;for(s=0;s<t.length-1;s++){if(-1===(n=t[s])){for(r=!0,a=[],l=0;l<c.length;l++)a[l]=i(c[l],t.slice(s+1))(),a[l]!==a[0]&&(r=!1);return r?a[0]:a}if("number"==typeof n&&!o(c))return;if("object"!=typeof(c=c[n])||null===c)return}if("object"==typeof c&&null!==c&&null!==(a=c[t[s]]))return a}}e.exports=function(e,t){if(r(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";var n,o,a,s,c=t.split(".");for(s=0;s<c.length;s++)if("__"===String(c[s]).slice(0,2))throw"bad property string";for(s=0;s<c.length;){if(n=String(c[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(n[1])c[s]=n[1];else{if(0!==s)throw"bad property string";c.splice(0,1)}for(o=n[2].substr(1,n[2].length-2).split("]["),a=0;a<o.length;a++)s++,c.splice(s,0,Number(o[a]))}s++}return"object"!=typeof e?function(e,t,n){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:n,obj:e}}(e,t,c):{set:l(e,c,t),get:i(e,c),astr:t,parts:c,obj:e}};var a=/(^|\.)args\[/;function s(e,t){return void 0===e||null===e&&!t.match(a)}function l(e,t,n){return function(r){var i,a,l=e,f="",h=[[e,f]],p=s(r,n);for(a=0;a<t.length-1;a++){if("number"==typeof(i=t[a])&&!o(l))throw"array index but container is not an array";if(-1===i){if(p=!u(l,t.slice(a+1),r,n))break;return}if(!d(l,i,t[a+1],p))break;if("object"!=typeof(l=l[i])||null===l)throw"container is not an object";f=c(f,i),h.push([l,f])}if(p){if(a===t.length-1&&(delete l[t[a]],Array.isArray(l)&&+t[a]==l.length-1))for(;l.length&&void 0===l[l.length-1];)l.pop()}else l[t[a]]=r}}function c(e,t){var n=t;return r(t)?n="["+t+"]":e&&(n="."+t),e+n}function u(e,t,n,r){var i,a=o(n),c=!0,u=n,f=r.replace("-1",0),h=!a&&s(n,f),p=t[0];for(i=0;i<e.length;i++)f=r.replace("-1",i),a&&(h=s(u=n[i%n.length],f)),h&&(c=!1),d(e,i,p,h)&&l(e[i],t,r.replace("-1",i))(u);return c}function d(e,t,n,r){if(void 0===e[t]){if(r)return!1;e[t]="number"==typeof n?[]:{}}return!0}},"./node_modules/plotly.js/src/lib/noop.js":function(e,t,n){"use strict";e.exports=function(){}},"./node_modules/plotly.js/src/lib/notifier.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/fast-isnumeric/index.js"),i=[];e.exports=function(e,t){if(-1===i.indexOf(e)){i.push(e);var n=1e3;o(t)?n=t:"long"===t&&(n=3e3);var a=r.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0),a.selectAll(".notifier-note").data(i).enter().append("div").classed("notifier-note",!0).style("opacity",0).each((function(e){var o=r.select(this);o.append("button").classed("notifier-close",!0).html("&times;").on("click",(function(){o.transition().call(s)}));for(var i=o.append("p"),a=e.split(/<br\s*\/?>/g),l=0;l<a.length;l++)l&&i.append("br"),i.append("span").text(a[l]);"stick"===t?o.transition().duration(350).style("opacity",1):o.transition().duration(700).style("opacity",1).transition().delay(n).call(s)}))}function s(e){e.duration(700).style("opacity",0).each("end",(function(e){var t=i.indexOf(e);-1!==t&&i.splice(t,1),r.select(this).remove()}))}}},"./node_modules/plotly.js/src/lib/override_cursor.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/setcursor.js"),o="data-savedcursor";e.exports=function(e,t){var n=e.attr(o);if(t){if(!n){for(var i=(e.attr("class")||"").split(" "),a=0;a<i.length;a++){var s=i[a];0===s.indexOf("cursor-")&&e.attr(o,s.substr(7)).classed(s,!1)}e.attr(o)||e.attr(o,"!!")}r(e,t)}else n&&(e.attr(o,null),"!!"===n?r(e):r(e,n))}},"./node_modules/plotly.js/src/lib/polygon.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/matrix.js").dot,o=n("./node_modules/plotly.js/src/constants/numerical.js").BADNUM,i=e.exports={};i.tester=function(e){var t,n=e.slice(),r=n[0][0],i=r,a=n[0][1],s=a;for(n[n.length-1][0]===n[0][0]&&n[n.length-1][1]===n[0][1]||n.push(n[0]),t=1;t<n.length;t++)r=Math.min(r,n[t][0]),i=Math.max(i,n[t][0]),a=Math.min(a,n[t][1]),s=Math.max(s,n[t][1]);var l,c=!1;5===n.length&&(n[0][0]===n[1][0]?n[2][0]===n[3][0]&&n[0][1]===n[3][1]&&n[1][1]===n[2][1]&&(c=!0,l=function(e){return e[0]===n[0][0]}):n[0][1]===n[1][1]&&n[2][1]===n[3][1]&&n[0][0]===n[3][0]&&n[1][0]===n[2][0]&&(c=!0,l=function(e){return e[1]===n[0][1]}));var u=!0,d=n[0];for(t=1;t<n.length;t++)if(d[0]!==n[t][0]||d[1]!==n[t][1]){u=!1;break}return{xmin:r,xmax:i,ymin:a,ymax:s,pts:n,contains:c?function(e,t){var n=e[0],c=e[1];return!(n===o||n<r||n>i||c===o||c<a||c>s)&&(!t||!l(e))}:function(e,t){var l=e[0],c=e[1];if(l===o||l<r||l>i||c===o||c<a||c>s)return!1;var u,d,f,h,p,m=n.length,g=n[0][0],v=n[0][1],y=0;for(u=1;u<m;u++)if(d=g,f=v,g=n[u][0],v=n[u][1],!(l<(h=Math.min(d,g))||l>Math.max(d,g)||c>Math.max(f,v)))if(c<Math.min(f,v))l!==h&&y++;else{if(c===(p=g===d?c:f+(l-d)*(v-f)/(g-d)))return 1!==u||!t;c<=p&&l!==h&&y++}return y%2==1},isRect:c,degenerate:u}},i.isSegmentBent=function(e,t,n,o){var i,a,s,l=e[t],c=[e[n][0]-l[0],e[n][1]-l[1]],u=r(c,c),d=Math.sqrt(u),f=[-c[1]/d,c[0]/d];for(i=t+1;i<n;i++)if(a=[e[i][0]-l[0],e[i][1]-l[1]],(s=r(a,c))<0||s>u||Math.abs(r(a,f))>o)return!0;return!1},i.filter=function(e,t){var n=[e[0]],r=0,o=0;function a(a){e.push(a);var s=n.length,l=r;n.splice(o+1);for(var c=l+1;c<e.length;c++)(c===e.length-1||i.isSegmentBent(e,l,c+1,t))&&(n.push(e[c]),n.length<s-2&&(r=c,o=n.length-1),l=c)}e.length>1&&a(e.pop());return{addPt:a,raw:e,filtered:n}}},"./node_modules/plotly.js/src/lib/preserve_drawing_buffer.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/is-mobile/index.js");e.exports=function(e){var t;if("string"!=typeof(t=e&&e.hasOwnProperty("userAgent")?e.userAgent:function(){var e;"undefined"!=typeof navigator&&(e=navigator.userAgent);e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]);return e}()))return!0;var n=o({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var i=t.split(" "),a=1;a<i.length;a++){if(-1!==i[a].indexOf("Safari"))for(var s=a-1;s>-1;s--){var l=i[s];if("Version/"===l.substr(0,8)){var c=l.substr(8).split(".")[0];if(r(c)&&(c=+c),c>=13)return!0}}}return n}},"./node_modules/plotly.js/src/lib/push_unique.js":function(e,t,n){"use strict";e.exports=function(e,t){if(t instanceof RegExp){for(var n=t.toString(),r=0;r<e.length;r++)if(e[r]instanceof RegExp&&e[r].toString()===n)return e;e.push(t)}else!t&&0!==t||-1!==e.indexOf(t)||e.push(t);return e}},"./node_modules/plotly.js/src/lib/queue.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plot_api/plot_config.js").dfltConfig;var i={add:function(e,t,n,r,i){var a,s;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},s=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(a={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(s,e.undoQueue.queue.length-s,a),e.undoQueue.index+=1):a=e.undoQueue.queue[s-1],e.undoQueue.beginSequence=!1,a&&(a.undo.calls.unshift(t),a.undo.args.unshift(n),a.redo.calls.push(r),a.redo.args.push(i)),e.undoQueue.queue.length>o.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,n;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.undo.calls.length;n++)i.plotDo(e,t.undo.calls[n],t.undo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1}},redo:function(e){var t,n;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index>=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.redo.calls.length;n++)i.plotDo(e,t.redo.calls[n],t.redo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1,e.undoQueue.index++}}};i.plotDo=function(e,t,n){e.autoplay=!0,n=function(e,t){for(var n,o=[],i=0;i<t.length;i++)n=t[i],o[i]=n===e?n:"object"==typeof n?Array.isArray(n)?r.extendDeep([],n):r.extendDeepAll({},n):n;return o}(e,n),t.apply(null,n)},e.exports=i},"./node_modules/plotly.js/src/lib/regex.js":function(e,t,n){"use strict";t.counter=function(e,t,n,r){var o=(t||"")+(n?"":"$"),i=!1===r?"":"^";return"xy"===e?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+o):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+o)}},"./node_modules/plotly.js/src/lib/relative_attr.js":function(e,t,n){"use strict";var r=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,o=/^[^\.\[\]]+$/;e.exports=function(e,t){for(;t;){var n=e.match(r);if(n)e=n[1];else{if(!e.match(o))throw new Error("bad relativeAttr call:"+[e,t]);e=""}if("^"!==t.charAt(0))break;t=t.slice(1)}return e&&"["!==t.charAt(0)?e+"."+t:e+t}},"./node_modules/plotly.js/src/lib/relink_private.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/array.js").isArrayOrTypedArray,o=n("./node_modules/plotly.js/src/lib/is_plain_object.js");e.exports=function e(t,n){for(var i in n){var a=n[i],s=t[i];if(s!==a)if("_"===i.charAt(0)||"function"==typeof a){if(i in t)continue;t[i]=a}else if(r(a)&&r(s)&&o(a[0])){if("customdata"===i||"ids"===i)continue;for(var l=Math.min(a.length,s.length),c=0;c<l;c++)s[c]!==a[c]&&o(a[c])&&o(s[c])&&e(s[c],a[c])}else o(a)&&o(s)&&(e(s,a),Object.keys(s).length||delete t[i])}}},"./node_modules/plotly.js/src/lib/search.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/loggers.js"),i=n("./node_modules/plotly.js/src/lib/identity.js"),a=n("./node_modules/plotly.js/src/constants/numerical.js").BADNUM;function s(e,t){return e<t}function l(e,t){return e<=t}function c(e,t){return e>t}function u(e,t){return e>=t}t.findBin=function(e,t,n){if(r(t.start))return n?Math.ceil((e-t.start)/t.size-1e-9)-1:Math.floor((e-t.start)/t.size+1e-9);var i,a,d=0,f=t.length,h=0,p=f>1?(t[f-1]-t[0])/(f-1):1;for(a=p>=0?n?s:l:n?u:c,e+=1e-9*p*(n?-1:1)*(p>=0?1:-1);d<f&&h++<100;)a(t[i=Math.floor((d+f)/2)],e)?d=i+1:f=i;return h>90&&o.log("Long binary search..."),d-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e){var n,r=e.slice();for(r.sort(t.sorterAsc),n=r.length-1;n>-1&&r[n]===a;n--);for(var o,i=r[n]-r[0]||1,s=i/(n||1)/1e4,l=[],c=0;c<=n;c++){var u=r[c],d=u-o;void 0===o?(l.push(u),o=u):d>s&&(i=Math.min(i,d),l.push(u),o=u)}return{vals:l,minDiff:i}},t.roundUp=function(e,t,n){for(var r,o=0,i=t.length-1,a=0,s=n?0:1,l=n?1:0,c=n?Math.ceil:Math.floor;o<i&&a++<100;)t[r=c((o+i)/2)]<=e?o=r+s:i=r-l;return t[o]},t.sort=function(e,t){for(var n=0,r=0,o=1;o<e.length;o++){var i=t(e[o],e[o-1]);if(i<0?n=1:i>0&&(r=1),n&&r)return e.sort(t)}return r?e:e.reverse()},t.findIndexOfMin=function(e,t){t=t||i;for(var n,r=1/0,o=0;o<e.length;o++){var a=t(e[o]);a<r&&(r=a,n=o)}return n}},"./node_modules/plotly.js/src/lib/setcursor.js":function(e,t,n){"use strict";e.exports=function(e,t){(e.attr("class")||"").split(" ").forEach((function(t){0===t.indexOf("cursor-")&&e.classed(t,!1)})),t&&e.classed("cursor-"+t,!0)}},"./node_modules/plotly.js/src/lib/show_no_webgl_msg.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/color/index.js"),o=function(){};e.exports=function(e){for(var t in e)"function"==typeof e[t]&&(e[t]=o);e.destroy=function(){e.container.parentNode.removeChild(e.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=r.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=r.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),e.container.appendChild(n),e.container.style.background="#FFFFFF",e.container.onclick=function(){window.open("https://get.webgl.org")},!1}},"./node_modules/plotly.js/src/lib/sort_object_keys.js":function(e,t,n){"use strict";e.exports=function(e){return Object.keys(e).sort()}},"./node_modules/plotly.js/src/lib/stats.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/array.js").isArrayOrTypedArray;t.aggNums=function(e,n,i,a){var s,l;if((!a||a>i.length)&&(a=i.length),r(n)||(n=!1),o(i[0])){for(l=new Array(a),s=0;s<a;s++)l[s]=t.aggNums(e,n,i[s]);i=l}for(s=0;s<a;s++)r(n)?r(i[s])&&(n=e(+n,+i[s])):n=i[s];return n},t.len=function(e){return t.aggNums((function(e){return e+1}),0,e)},t.mean=function(e,n){return n||(n=t.len(e)),t.aggNums((function(e,t){return e+t}),0,e)/n},t.geometricMean=function(e,n){return n||(n=t.len(e)),Math.pow(t.aggNums((function(e,t){return e*t}),1,e),1/n)},t.midRange=function(e){if(void 0!==e&&0!==e.length)return(t.aggNums(Math.max,null,e)+t.aggNums(Math.min,null,e))/2},t.variance=function(e,n,o){return n||(n=t.len(e)),r(o)||(o=t.mean(e,n)),t.aggNums((function(e,t){return e+Math.pow(t-o,2)}),0,e)/n},t.stdev=function(e,n,r){return Math.sqrt(t.variance(e,n,r))},t.median=function(e){var n=e.slice().sort();return t.interp(n,.5)},t.interp=function(e,t){if(!r(t))throw"n should be a finite number";if((t=t*e.length-.5)<0)return e[0];if(t>e.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},"./node_modules/plotly.js/src/lib/str2rgbarray.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/node_modules/color-normalize/index.js");e.exports=function(e){return e?r(e):[0,0,0,1]}},"./node_modules/plotly.js/src/lib/svg_text_utils.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=o.strTranslate,a=n("./node_modules/plotly.js/src/constants/xmlns_namespaces.js"),s=n("./node_modules/plotly.js/src/constants/alignment.js").LINE_SPACING,l=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(e,n,m){var A=e.text(),M=!e.attr("data-notex")&&n&&n._context.typesetMath&&"undefined"!=typeof MathJax&&A.match(l),E=r.select(e.node().parentNode);if(!E.empty()){var L=e.attr("class")?e.attr("class").split(" ")[0]:"text";return L+="-math",E.selectAll("svg."+L).remove(),E.selectAll("g."+L+"-group").remove(),e.style("display",null).attr({"data-unformatted":A,"data-math":"N"}),M?(n&&n._promises||[]).push(new Promise((function(t){e.style("display","none");var n=parseInt(e.node().style.fontSize,10),a={fontSize:n};!function(e,t,n){var i,a,s,l,f=parseInt((MathJax.version||"").split(".")[0]);if(2!==f&&3!==f)return void o.warn("No MathJax version:",MathJax.version);var h=function(){var n="math-output-"+o.randstr({},64),i=(l=r.select("body").append("div").attr({id:n}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(e.replace(c,"\\lt ").replace(u,"\\gt "))).node();return 2===f?MathJax.Hub.Typeset(i):MathJax.typeset([i])},p=function(){var t=l.select(2===f?".MathJax_SVG":".MathJax"),i=!t.empty()&&l.select("svg").node();if(i){var a,s=i.getBoundingClientRect();a=2===f?r.select("body").select("#MathJax_SVG_glyphs"):t.select("defs"),n(t,a,s)}else o.log("There was an error in the tex syntax.",e),n();l.remove()};2===f?MathJax.Hub.Queue((function(){return a=o.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:d},displayAlign:"left"})}),(function(){if("SVG"!==(i=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")}),h,p,(function(){if("SVG"!==i)return MathJax.Hub.setRenderer(i)}),(function(){return void 0!==s&&(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(a)})):3===f&&(a=o.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=d,"svg"!==(i=MathJax.config.startup.output)&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then((function(){h(),p(),"svg"!==i&&(MathJax.config.startup.output=i),MathJax.config=a})))}(M[2],a,(function(r,o,a){E.selectAll("svg."+L).remove(),E.selectAll("g."+L+"-group").remove();var s=r&&r.select("svg");if(!s||!s.node())return O(),void t();var l=E.append("g").classed(L+"-group",!0).attr({"pointer-events":"none","data-unformatted":A,"data-math":"Y"});l.node().appendChild(s.node()),o&&o.node()&&s.node().insertBefore(o.node().cloneNode(!0),s.node().firstChild);var c=a.width,u=a.height;s.attr({class:L,height:u,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var d=e.node().style.fill||"black",f=s.select("g");f.attr({fill:d,stroke:d});var h=f.node().getBoundingClientRect(),p=h.width,g=h.height;(p>c||g>u)&&(s.style("overflow","hidden"),p=(h=s.node().getBoundingClientRect()).width,g=h.height);var v=+e.attr("x"),y=+e.attr("y"),b=-(n||e.node().getBoundingClientRect().height)/4;if("y"===L[0])l.attr({transform:"rotate("+[-90,v,y]+")"+i(-p/2,b-g/2)});else if("l"===L[0])y=b-g/2;else if("a"===L[0]&&0!==L.indexOf("atitle"))v=0,y=b;else{var x=e.attr("text-anchor");v-=p*("middle"===x?.5:"end"===x?1:0),y=y+b-g/2}s.attr({x:v,y:y}),m&&m.call(e,l),t(l)}))}))):O(),e}function O(){E.empty()||(L=e.attr("class")+"-math",E.select("svg."+L).remove()),e.text("").style("white-space","pre"),function(e,t){t=t.replace(g," ");var n,i=!1,l=[],c=-1;function u(){c++;var t=document.createElementNS(a.svg,"tspan");r.select(t).attr({class:"line",dy:c*s+"em"}),e.appendChild(t),n=t;var o=l;if(l=[{node:t}],o.length>1)for(var i=1;i<o.length;i++)d(o[i])}function d(e){var t,o=e.type,i={};if("a"===o){t="a";var s=e.target,c=e.href,u=e.popup;c&&(i={"xlink:xlink:show":"_blank"===s||"_"!==s.charAt(0)?"new":"replace",target:s,"xlink:xlink:href":c},u&&(i.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+u+'");return false;'))}else t="tspan";e.style&&(i.style=e.style);var d=document.createElementNS(a.svg,t);if("sup"===o||"sub"===o){m(n,""),n.appendChild(d);var f=document.createElementNS(a.svg,"tspan");m(f,""),r.select(f).attr("dy",p[o]),i.dy=h[o],n.appendChild(d),n.appendChild(f)}else n.appendChild(d);r.select(d).attr(i),n=e.node=d,l.push(e)}function m(e,t){e.appendChild(document.createTextNode(t))}function A(e){if(1!==l.length){var r=l.pop();e!==r.type&&o.log("Start tag <"+r.type+"> doesnt match end tag <"+e+">. Pretending it did match.",t),n=l[l.length-1].node}else o.log("Ignoring unexpected end tag </"+e+">.",t)}b.test(t)?u():(n=e,l=[{node:e}]);for(var M=t.split(v),E=0;E<M.length;E++){var L=M[E],O=L.match(y),R=O&&O[2].toLowerCase(),I=f[R];if("br"===R)u();else if(void 0===I)m(n,S(L));else if(O[1])A(R);else{var P=O[4],D={type:R},z=k(P,x);if(z?(z=z.replace(T,"$1 fill:"),I&&(z+=";"+I)):I&&(z=I),z&&(D.style=z),"a"===R){i=!0;var N=k(P,_);if(N){var F=C(N);F&&(D.href=F,D.target=k(P,w)||"_blank",D.popup=k(P,j))}}d(D)}}return i}(e.node(),A)&&e.style("pointer-events","all"),t.positionText(e),m&&m.call(e)}};var c=/(<|&lt;|&#60;)/g,u=/(>|&gt;|&#62;)/g;var d=[["$","$"],["\\(","\\)"]];var f={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"},h={sub:"0.3em",sup:"-0.6em"},p={sub:"-0.21em",sup:"0.42em"},m=["http:","https:","mailto:","",void 0,":"],g=t.NEWLINES=/(\r\n?|\n)/g,v=/(<[^<>]*>)/,y=/<(\/?)([^ >]*)(\s+(.*))?>/i,b=/<br(\s+.*)?>/i;t.BR_TAG_ALL=/<br(\s+.*)?>/gi;var x=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,_=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,w=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,j=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function k(e,t){if(!e)return null;var n=e.match(t),r=n&&(n[3]||n[4]);return r&&S(r)}var T=/(^|;)\s*color:/;t.plainText=function(e,t){for(var n=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,r=void 0!==t.allowedTags?t.allowedTags:["br"],o="...".length,i=e.split(v),a=[],s="",l=0,c=0;c<i.length;c++){var u=i[c],d=u.match(y),f=d&&d[2].toLowerCase();if(f)-1!==r.indexOf(f)&&(a.push(u),s=f);else{var h=u.length;if(l+h<n)a.push(u),l+=h;else if(l<n){var p=n-l;s&&("br"!==s||p<=o||h<=o)&&a.pop(),n>o?a.push(u.substr(0,p-o)+"..."):a.push(u.substr(0,p));break}s=""}}return a.join("")};var A={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},M=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function S(e){return e.replace(M,(function(e,t){return("#"===t.charAt(0)?function(e){if(e>1114111)return;var t=String.fromCodePoint;if(t)return t(e);var n=String.fromCharCode;return e<=65535?n(e):n(55232+(e>>10),e%1024+56320)}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):A[t])||e}))}function C(e){var t=encodeURI(decodeURI(e)),n=document.createElement("a"),r=document.createElement("a");n.href=e,r.href=t;var o=n.protocol,i=r.protocol;return-1!==m.indexOf(o)&&-1!==m.indexOf(i)?t:""}function E(e,t,n){var r,i,a,s=n.horizontalAlign,l=n.verticalAlign||"top",c=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return i="bottom"===l?function(){return c.bottom-r.height}:"middle"===l?function(){return c.top+(c.height-r.height)/2}:function(){return c.top},a="right"===s?function(){return c.right-r.width}:"center"===s?function(){return c.left+(c.width-r.width)/2}:function(){return c.left},function(){r=this.node().getBoundingClientRect();var e=a()-u.left,t=i()-u.top,s=n.gd||{};if(n.gd){s._fullLayout._calcInverseTransform(s);var l=o.apply3DTransform(s._fullLayout._invTransform)(e,t);e=l[0],t=l[1]}return this.style({top:t+"px",left:e+"px","z-index":1e3}),this}}t.convertEntities=S,t.sanitizeHTML=function(e){e=e.replace(g," ");for(var t=document.createElement("p"),n=t,o=[],i=e.split(v),a=0;a<i.length;a++){var s=i[a],l=s.match(y),c=l&&l[2].toLowerCase();if(c in f)if(l[1])o.length&&(n=o.pop());else{var u=l[4],d=k(u,x),h=d?{style:d}:{};if("a"===c){var p=k(u,_);if(p){var m=C(p);if(m){h.href=m;var b=k(u,w);b&&(h.target=b)}}}var j=document.createElement(c);n.appendChild(j),r.select(j).attr(h),n=j,o.push(j)}else n.appendChild(document.createTextNode(S(s)))}return t.innerHTML},t.lineCount=function(e){return e.selectAll("tspan.line").size()||1},t.positionText=function(e,t,n){return e.each((function(){var e=r.select(this);function o(t,n){return void 0===n?null===(n=e.attr(t))&&(e.attr(t,0),n=0):e.attr(t,n),n}var i=o("x",t),a=o("y",n);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:i,y:a})}))};t.makeTextShadow=function(e){var t="1px ",n="1px ",r="1px ";return t+n+r+e+", -"+t+"-"+n+r+e+", "+t+"-"+n+r+e+", -"+t+n+r+e},t.makeEditable=function(e,t){var n=t.gd,o=t.delegate,i=r.dispatch("edit","input","cancel"),a=o||e;if(e.style({"pointer-events":o?"none":"all"}),1!==e.size())throw new Error("boo");function s(){!function(){var o=r.select(n).select(".svg-container"),a=o.append("div"),s=e.node().style,c=parseFloat(s.fontSize||12),u=t.text;void 0===u&&(u=e.attr("data-unformatted"));a.classed("plugin-editable editable",!0).style({position:"absolute","font-family":s.fontFamily||"Arial","font-size":c,color:t.fill||s.fill||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-c/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(u).call(E(e,o,t)).on("blur",(function(){n._editing=!1,e.text(this.textContent).style({opacity:1});var t,o=r.select(this).attr("class");(t=o?"."+o.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(t).style({opacity:0});var a=this.textContent;r.select(this).transition().duration(0).remove(),r.select(document).on("mouseup",null),i.edit.call(e,a)})).on("focus",(function(){var e=this;n._editing=!0,r.select(document).on("mouseup",(function(){if(r.event.target===e)return!1;document.activeElement===a.node()&&a.node().blur()}))})).on("keyup",(function(){27===r.event.which?(n._editing=!1,e.style({opacity:1}),r.select(this).style({opacity:0}).on("blur",(function(){return!1})).transition().remove(),i.cancel.call(e,this.textContent)):(i.input.call(e,this.textContent),r.select(this).call(E(e,o,t)))})).on("keydown",(function(){13===r.event.which&&this.blur()})).call(l)}(),e.style({opacity:0});var o,s=a.attr("class");(o=s?"."+s.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(o).style({opacity:0})}function l(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}return t.immediate?s():a.on("click",s),r.rebind(e,i,"on")}},"./node_modules/plotly.js/src/lib/throttle.js":function(e,t,n){"use strict";var r={};function o(e){e&&null!==e.timer&&(clearTimeout(e.timer),e.timer=null)}t.throttle=function(e,t,n){var i=r[e],a=Date.now();if(!i){for(var s in r)r[s].ts<a-6e4&&delete r[s];i=r[e]={ts:0,timer:null}}function l(){n(),i.ts=Date.now(),i.onDone&&(i.onDone(),i.onDone=null)}o(i),a>i.ts+t?l():i.timer=setTimeout((function(){l(),i.timer=null}),t)},t.done=function(e){var t=r[e];return t&&t.timer?new Promise((function(e){var n=t.onDone;t.onDone=function(){n&&n(),e(),t.onDone=null}})):Promise.resolve()},t.clear=function(e){if(e)o(r[e]),delete r[e];else for(var n in r)t.clear(n)}},"./node_modules/plotly.js/src/lib/to_log_range.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js");e.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},"./node_modules/plotly.js/src/locale-en-us.js":function(e,t,n){"use strict";e.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},"./node_modules/plotly.js/src/locale-en.js":function(e,t,n){"use strict";e.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"}}},"./node_modules/plotly.js/src/plot_api/container_array_match.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js");e.exports=function(e){for(var t,n,o=r.layoutArrayContainers,i=r.layoutArrayRegexes,a=e.split("[")[0],s=0;s<i.length;s++)if((n=e.match(i[s]))&&0===n.index){t=n[0];break}if(t||(t=o[o.indexOf(a)]),!t)return!1;var l=e.substr(t.length);return l?!!(n=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&&{array:t,index:Number(n[1]),property:n[3]||""}:{array:t,index:"",property:""}}},"./node_modules/plotly.js/src/plot_api/edit_types.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,o=n("./node_modules/plotly.js/src/lib/is_plain_object.js"),i={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"],description:["trace attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*clearAxisTypes* resets the types of the axes this trace is on, because new data could","cause the automatic axis type detection to change. Log type will not be cleared, as that","is never automatically chosen so must have been user-specified.","*plot* (re)plots but without first clearing `gd.calcdata`.","*style* only calls `module.style` (or module.editStyle) for all trace modules and redraws the legend.","*markerSize* is like *style*, but propagate axis-range changes due to scatter `marker.size`","*colorbars* only redraws colorbars."].join(" ")},a={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"],description:["layout attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*plot* (re)plots but without first clearing `gd.calcdata`.","*legend* only redraws the legend.","*ticks* only redraws axis ticks, labels, and gridlines.","*axrange* minimal sequence when updating axis ranges.","*layoutstyle* reapplies global and SVG cartesian axis styles.","*modebar* just updates the modebar.","*camera* just updates the camera settings for gl3d scenes.","*arraydraw* allows component arrays to invoke the redraw routines just for the","component(s) that changed.","*colorbars* only redraws colorbars."].join(" ")},s=i.flags.slice().concat(["fullReplot"]),l=a.flags.slice().concat("layoutReplot");function c(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!1;return t}function u(e,t,n){var i=r({},e);for(var a in i){var s=i[a];o(s)&&(i[a]=d(s,t,n,a))}return"from-root"===n&&(i.editType=t),i}function d(e,t,n,o){if(e.valType){var i=r({},e);if(i.editType=t,Array.isArray(e.items)){i.items=new Array(e.items.length);for(var a=0;a<e.items.length;a++)i.items[a]=d(e.items[a],t,"from-root")}return i}return u(e,t,"_"===o.charAt(0)?"nested":"from-root")}e.exports={traces:i,layout:a,traceFlags:function(){return c(s)},layoutFlags:function(){return c(l)},update:function(e,t){var n=t.editType;if(n&&"none"!==n)for(var r=n.split("+"),o=0;o<r.length;o++)e[r[o]]=!0},overrideAll:u}},"./node_modules/plotly.js/src/plot_api/helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/gl-mat4/fromQuat.js"),i=n("./node_modules/plotly.js/src/registry.js"),a=n("./node_modules/plotly.js/src/lib/index.js"),s=n("./node_modules/plotly.js/src/plots/plots.js"),l=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),c=n("./node_modules/plotly.js/src/components/color/index.js"),u=l.cleanId,d=l.getFromTrace,f=i.traceIs;function h(e,t){var n=e[t],r=t.charAt(0);n&&"paper"!==n&&(e[t]=u(n,r,!0))}function p(e){function t(t,n){var r=e[t],o=e.title&&e.title[n];r&&!o&&(e.title||(e.title={}),e.title[n]=e[t],delete e[t])}e&&("string"!=typeof e.title&&"number"!=typeof e.title||(e.title={text:e.title}),t("titlefont","font"),t("titleposition","position"),t("titleside","side"),t("titleoffset","offset"))}function m(e){if(!a.isPlainObject(e))return!1;var t=e.name;return delete e.name,delete e.showlegend,("string"==typeof t||"number"==typeof t)&&String(t)}function g(e,t,n,r){if(n&&!r)return e;if(r&&!n)return t;if(!e.trim())return t;if(!t.trim())return e;var o,i=Math.min(e.length,t.length);for(o=0;o<i&&e.charAt(o)===t.charAt(o);o++);return e.substr(0,o).trim()}function v(e){var t="middle",n="center";return"string"==typeof e&&(-1!==e.indexOf("top")?t="top":-1!==e.indexOf("bottom")&&(t="bottom"),-1!==e.indexOf("left")?n="left":-1!==e.indexOf("right")&&(n="right")),t+" "+n}function y(e,t){return t in e&&"object"==typeof e[t]&&0===Object.keys(e[t]).length}t.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&a.log("Clearing previous rejected promises from queue."),e._promises=[]},t.cleanLayout=function(e){var n,r;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 i=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,d=(s.subplotsRegistry.ternary||{}).attrRegex,f=(s.subplotsRegistry.gl3d||{}).attrRegex,m=Object.keys(e);for(n=0;n<m.length;n++){var g=m[n];if(i&&i.test(g)){var v=e[g];v.anchor&&"free"!==v.anchor&&(v.anchor=u(v.anchor)),v.overlaying&&(v.overlaying=u(v.overlaying)),v.type||(v.isdate?v.type="date":v.islog?v.type="log":!1===v.isdate&&!1===v.islog&&(v.type="linear")),"withzero"!==v.autorange&&"tozero"!==v.autorange||(v.autorange=!0,v.rangemode="tozero"),v.insiderange&&delete v.range,delete v.islog,delete v.isdate,delete v.categories,y(v,"domain")&&delete v.domain,void 0!==v.autotick&&(void 0===v.tickmode&&(v.tickmode=v.autotick?"auto":"linear"),delete v.autotick),p(v)}else if(l&&l.test(g)){p(e[g].radialaxis)}else if(d&&d.test(g)){var b=e[g];p(b.aaxis),p(b.baxis),p(b.caxis)}else if(f&&f.test(g)){var x=e[g],_=x.cameraposition;if(Array.isArray(_)&&4===_[0].length){var w=_[0],j=_[1],k=_[2],T=o([],w),A=[];for(r=0;r<3;++r)A[r]=j[r]+k*T[2+4*r];x.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:j[0],y:j[1],z:j[2]},up:{x:0,y:0,z:1}},delete x.cameraposition}p(x.xaxis),p(x.yaxis),p(x.zaxis)}}var M=Array.isArray(e.annotations)?e.annotations.length:0;for(n=0;n<M;n++){var S=e.annotations[n];a.isPlainObject(S)&&(S.ref&&("paper"===S.ref?(S.xref="paper",S.yref="paper"):"data"===S.ref&&(S.xref="x",S.yref="y"),delete S.ref),h(S,"xref"),h(S,"yref"))}var C=Array.isArray(e.shapes)?e.shapes.length:0;for(n=0;n<C;n++){var E=e.shapes[n];a.isPlainObject(E)&&(h(E,"xref"),h(E,"yref"))}var L=Array.isArray(e.images)?e.images.length:0;for(n=0;n<L;n++){var O=e.images[n];a.isPlainObject(O)&&(h(O,"xref"),h(O,"yref"))}var R=e.legend;return R&&(R.x>3?(R.x=1.02,R.xanchor="left"):R.x<-2&&(R.x=-.02,R.xanchor="right"),R.y>3?(R.y=1.02,R.yanchor="bottom"):R.y<-2&&(R.y=-.02,R.yanchor="top")),p(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),c.clean(e),e.template&&e.template.layout&&t.cleanLayout(e.template.layout),e},t.cleanData=function(e){for(var n=0;n<e.length;n++){var r,o=e[n];if("histogramy"===o.type&&"xbins"in o&&!("ybins"in o)&&(o.ybins=o.xbins,delete o.xbins),o.error_y&&"opacity"in o.error_y){var l=c.defaults,d=o.error_y.color||(f(o,"bar")?c.defaultLine:l[n%l.length]);o.error_y.color=c.addOpacity(c.rgb(d),c.opacity(d)*o.error_y.opacity),delete o.error_y.opacity}if("bardir"in o&&("h"!==o.bardir||!f(o,"bar")&&"histogram"!==o.type.substr(0,9)||(o.orientation="h",t.swapXYData(o)),delete o.bardir),"histogramy"===o.type&&t.swapXYData(o),"histogramx"!==o.type&&"histogramy"!==o.type||(o.type="histogram"),"scl"in o&&!("colorscale"in o)&&(o.colorscale=o.scl,delete o.scl),"reversescl"in o&&!("reversescale"in o)&&(o.reversescale=o.reversescl,delete o.reversescl),o.xaxis&&(o.xaxis=u(o.xaxis,"x")),o.yaxis&&(o.yaxis=u(o.yaxis,"y")),f(o,"gl3d")&&o.scene&&(o.scene=s.subplotsRegistry.gl3d.cleanId(o.scene)),!f(o,"pie-like")&&!f(o,"bar-like"))if(Array.isArray(o.textposition))for(r=0;r<o.textposition.length;r++)o.textposition[r]=v(o.textposition[r]);else o.textposition&&(o.textposition=v(o.textposition));var h=i.getModule(o);if(h&&h.colorbar){var b=h.colorbar.container,x=b?o[b]:o;x&&x.colorscale&&("YIGnBu"===x.colorscale&&(x.colorscale="YlGnBu"),"YIOrRd"===x.colorscale&&(x.colorscale="YlOrRd"))}if("surface"===o.type&&a.isPlainObject(o.contours)){var _=["x","y","z"];for(r=0;r<_.length;r++){var w=o.contours[_[r]];a.isPlainObject(w)&&(w.highlightColor&&(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&&(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if("candlestick"===o.type||"ohlc"===o.type){var j=!1!==(o.increasing||{}).showlegend,k=!1!==(o.decreasing||{}).showlegend,T=m(o.increasing),A=m(o.decreasing);if(!1!==T&&!1!==A){var M=g(T,A,j,k);M&&(o.name=M)}else!T&&!A||o.name||(o.name=T||A)}if(Array.isArray(o.transforms)){var S=o.transforms;for(r=0;r<S.length;r++){var C=S[r];if(a.isPlainObject(C))switch(C.type){case"filter":C.filtersrc&&(C.target=C.filtersrc,delete C.filtersrc),C.calendar&&(C.valuecalendar||(C.valuecalendar=C.calendar),delete C.calendar);break;case"groupby":if(C.styles=C.styles||C.style,C.styles&&!Array.isArray(C.styles)){var E=C.styles,L=Object.keys(E);C.styles=[];for(var O=0;O<L.length;O++)C.styles.push({target:L[O],value:E[L[O]]})}}}}y(o,"line")&&delete o.line,"marker"in o&&(y(o.marker,"line")&&delete o.marker.line,y(o,"marker")&&delete o.marker),c.clean(o),o.autobinx&&(delete o.autobinx,delete o.xbins),o.autobiny&&(delete o.autobiny,delete o.ybins),p(o),o.colorbar&&p(o.colorbar),o.marker&&o.marker.colorbar&&p(o.marker.colorbar),o.line&&o.line.colorbar&&p(o.line.colorbar),o.aaxis&&p(o.aaxis),o.baxis&&p(o.baxis)}},t.swapXYData=function(e){var t;if(a.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","?src","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 n=e.error_y,r="copy_ystyle"in n?n.copy_ystyle:!(n.color||n.thickness||n.width);a.swapAttrs(e,["error_?.copy_ystyle"]),r&&a.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if("string"==typeof e.hoverinfo){var o=e.hoverinfo.split("+");for(t=0;t<o.length;t++)"x"===o[t]?o[t]="y":"y"===o[t]&&(o[t]="x");e.hoverinfo=o.join("+")}},t.coerceTraceIndices=function(e,t){if(r(t))return[t];if(!Array.isArray(t)||!t.length)return e.data.map((function(e,t){return t}));if(Array.isArray(t)){for(var n=[],o=0;o<t.length;o++)a.isIndex(t[o],e.data.length)?n.push(t[o]):a.warn("trace index (",t[o],") is not a number or is out of bounds");return n}return t},t.manageArrayContainers=function(e,t,n){var o=e.obj,i=e.parts,s=i.length,l=i[s-1],c=r(l);if(c&&null===t){var u=i.slice(0,s-1).join(".");a.nestedProperty(o,u).get().splice(l,1)}else c&&void 0===e.get()?(void 0===e.get()&&(n[e.astr]=null),e.set(t)):e.set(t)};var b=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function x(e){var t=e.search(b);if(t>0)return e.substr(0,t)}t.hasParent=function(e,t){for(var n=x(t);n;){if(n in e)return!0;n=x(n)}return!1};var _=["x","y","z"];t.clearAxisTypes=function(e,t,n){for(var r=0;r<t.length;r++)for(var o=e._fullData[r],i=0;i<3;i++){var s=d(e,o,_[i]);if(s&&"log"!==s.type){var l=s._name,c=s._id.substr(1);if("scene"===c.substr(0,5)){if(void 0!==n[c])continue;l=c+"."+l}var u=l+".type";void 0===n[l]&&void 0===n[u]&&a.nestedProperty(e.layout,u).set(null)}}}},"./node_modules/plotly.js/src/plot_api/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plot_api/plot_api.js");t._doPlot=r._doPlot,t.newPlot=r.newPlot,t.restyle=r.restyle,t.relayout=r.relayout,t.redraw=r.redraw,t.update=r.update,t._guiRestyle=r._guiRestyle,t._guiRelayout=r._guiRelayout,t._guiUpdate=r._guiUpdate,t._storeDirectGUIEdit=r._storeDirectGUIEdit,t.react=r.react,t.extendTraces=r.extendTraces,t.prependTraces=r.prependTraces,t.addTraces=r.addTraces,t.deleteTraces=r.deleteTraces,t.moveTraces=r.moveTraces,t.purge=r.purge,t.addFrames=r.addFrames,t.deleteFrames=r.deleteFrames,t.animate=r.animate,t.setPlotConfig=r.setPlotConfig;var o=n("./node_modules/plotly.js/src/lib/dom.js").getGraphDiv,i=n("./node_modules/plotly.js/src/components/shapes/draw.js").eraseActiveShape;t.deleteActiveShape=function(e){return i(o(e))},t.toImage=n("./node_modules/plotly.js/src/plot_api/to_image.js"),t.validate=n("./node_modules/plotly.js/src/plot_api/validate.js"),t.downloadImage=n("./node_modules/plotly.js/src/snapshot/download.js");var a=n("./node_modules/plotly.js/src/plot_api/template_api.js");t.makeTemplate=a.makeTemplate,t.validateTemplate=a.validateTemplate},"./node_modules/plotly.js/src/plot_api/manage_arrays.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/is_plain_object.js"),o=n("./node_modules/plotly.js/src/lib/noop.js"),i=n("./node_modules/plotly.js/src/lib/loggers.js"),a=n("./node_modules/plotly.js/src/lib/search.js").sorterAsc,s=n("./node_modules/plotly.js/src/registry.js");t.containerArrayMatch=n("./node_modules/plotly.js/src/plot_api/container_array_match.js");var l=t.isAddVal=function(e){return"add"===e||r(e)},c=t.isRemoveVal=function(e){return null===e||"remove"===e};t.applyContainerArrayChanges=function(e,t,n,r,u){var d=t.astr,f=s.getComponentMethod(d,"supplyLayoutDefaults"),h=s.getComponentMethod(d,"draw"),p=s.getComponentMethod(d,"drawOne"),m=r.replot||r.recalc||f===o||h===o,g=e.layout,v=e._fullLayout;if(n[""]){Object.keys(n).length>1&&i.warn("Full array edits are incompatible with other edits",d);var y=n[""][""];if(c(y))t.set(null);else{if(!Array.isArray(y))return i.warn("Unrecognized full array edit value",d,y),!0;t.set(y)}return!m&&(f(g,v),h(e),!0)}var b,x,_,w,j,k,T,A,M=Object.keys(n).map(Number).sort(a),S=t.get(),C=S||[],E=u(v,d).get(),L=[],O=-1,R=C.length;for(b=0;b<M.length;b++)if(w=n[_=M[b]],j=Object.keys(w),k=w[""],T=l(k),_<0||_>C.length-(T?0:1))i.warn("index out of range",d,_);else if(void 0!==k)j.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",d,_),c(k)?L.push(_):T?("add"===k&&(k={}),C.splice(_,0,k),E&&E.splice(_,0,{})):i.warn("Unrecognized full object edit value",d,_,k),-1===O&&(O=_);else for(x=0;x<j.length;x++)A=d+"["+_+"].",u(C[_],j[x],A).set(w[j[x]]);for(b=L.length-1;b>=0;b--)C.splice(L[b],1),E&&E.splice(L[b],1);if(C.length?S||t.set(C):t.set(null),m)return!1;if(f(g,v),p!==o){var I;if(-1===O)I=M;else{for(R=Math.max(C.length,R),I=[],b=0;b<M.length&&!((_=M[b])>=O);b++)I.push(_);for(b=O;b<R;b++)I.push(b)}for(b=0;b<I.length;b++)p(e,I[b])}else h(e);return!0}},"./node_modules/plotly.js/src/plot_api/plot_api.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/fast-isnumeric/index.js"),i=n("./node_modules/has-hover/index.js"),a=n("./node_modules/plotly.js/src/lib/index.js"),s=a.nestedProperty,l=n("./node_modules/plotly.js/src/lib/events.js"),c=n("./node_modules/plotly.js/src/lib/queue.js"),u=n("./node_modules/plotly.js/src/registry.js"),d=n("./node_modules/plotly.js/src/plot_api/plot_schema.js"),f=n("./node_modules/plotly.js/src/plots/plots.js"),h=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),p=n("./node_modules/plotly.js/src/plots/cartesian/range_defaults.js"),m=n("./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js"),g=n("./node_modules/plotly.js/src/components/drawing/index.js"),v=n("./node_modules/plotly.js/src/components/color/index.js"),y=n("./node_modules/plotly.js/src/plots/cartesian/graph_interact.js").initInteractions,b=n("./node_modules/plotly.js/src/constants/xmlns_namespaces.js"),x=n("./node_modules/plotly.js/src/components/selections/index.js").clearOutline,_=n("./node_modules/plotly.js/src/plot_api/plot_config.js").dfltConfig,w=n("./node_modules/plotly.js/src/plot_api/manage_arrays.js"),j=n("./node_modules/plotly.js/src/plot_api/helpers.js"),k=n("./node_modules/plotly.js/src/plot_api/subroutines.js"),T=n("./node_modules/plotly.js/src/plot_api/edit_types.js"),A=n("./node_modules/plotly.js/src/plots/cartesian/constants.js").AX_NAME_PATTERN,M=0;function S(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function C(e,t){try{e._fullLayout._paper.style("background",t)}catch(e){a.error(e)}}function E(e,t){C(e,v.combine(t,"white"))}function L(e,t){if(!e._context){e._context=a.extendDeep({},_);var n=r.select("base");e._context._baseUrl=n.size()&&n.attr("href")?window.location.href.split("#")[0]:""}var o,s,l,c=e._context;if(t){for(s=Object.keys(t),o=0;o<s.length;o++)"editable"!==(l=s[o])&&"edits"!==l&&l in c&&("setBackground"===l&&"opaque"===t[l]?c[l]=E:c[l]=t[l]);t.plot3dPixelRatio&&!c.plotGlPixelRatio&&(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=t.editable;if(void 0!==u)for(c.editable=u,s=Object.keys(c.edits),o=0;o<s.length;o++)c.edits[s[o]]=u;if(t.edits)for(s=Object.keys(t.edits),o=0;o<s.length;o++)(l=s[o])in c.edits&&(c.edits[l]=t.edits[l]);c._exportedPlot=t._exportedPlot}c.staticPlot&&(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),"hover"!==c.displayModeBar||i||(c.displayModeBar=!0),"transparent"!==c.setBackground&&"function"==typeof c.setBackground||(c.setBackground=C),c._hasZeroHeight=c._hasZeroHeight||0===e.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===e.clientWidth;var d=c.scrollZoom,f=c._scrollZoom={};if(!0===d)f.cartesian=1,f.gl3d=1,f.geo=1,f.mapbox=1;else if("string"==typeof d){var h=d.split("+");for(o=0;o<h.length;o++)f[h[o]]=1}else!1!==d&&(f.gl3d=1,f.geo=1,f.mapbox=1)}function O(e,t){var n,r,o=t+1,i=[];for(n=0;n<e.length;n++)(r=e[n])<0?i.push(o+r):i.push(r);return i}function R(e,t,n){var r,o;for(r=0;r<t.length;r++){if((o=t[r])!==parseInt(o,10))throw new Error("all values in "+n+" must be integers");if(o>=e.data.length||o<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(o,r+1)>-1||o>=0&&t.indexOf(-e.data.length+o)>-1||o<0&&t.indexOf(e.data.length+o)>-1)throw new Error("each index in "+n+" must be unique.")}}function I(e,t,n){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),R(e,t,"currentIndices"),void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&R(e,n,"newIndices"),void 0!==n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function P(e,t,n,r,i){!function(e,t,n,r){var o=a.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!a.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===n)throw new Error("indices must be an integer or array of integers");for(var i in R(e,n,"indices"),t){if(!Array.isArray(t[i])||t[i].length!==n.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(o&&(!(i in r)||!Array.isArray(r[i])||r[i].length!==t[i].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,n,r);for(var l=function(e,t,n,r){var i,l,c,u,d,f=a.isPlainObject(r),h=[];for(var p in Array.isArray(n)||(n=[n]),n=O(n,e.data.length-1),t)for(var m=0;m<n.length;m++){if(i=e.data[n[m]],l=(c=s(i,p)).get(),u=t[p][m],!a.isArrayOrTypedArray(u))throw new Error("attribute: "+p+" index: "+m+" must be an array");if(!a.isArrayOrTypedArray(l))throw new Error("cannot extend missing or non-array attribute: "+p);if(l.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+p);d=f?r[p][m]:r,o(d)||(d=-1),h.push({prop:c,target:l,insert:u,maxp:Math.floor(d)})}return h}(e,t,n,r),c={},u={},d=0;d<l.length;d++){var f=l[d].prop,h=l[d].maxp,p=i(l[d].target,l[d].insert,h);f.set(p[0]),Array.isArray(c[f.astr])||(c[f.astr]=[]),c[f.astr].push(p[1]),Array.isArray(u[f.astr])||(u[f.astr]=[]),u[f.astr].push(l[d].target.length)}return{update:c,maxPoints:u}}function D(e,t){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}function z(e,n,r,o){e=a.getGraphDiv(e),j.clearPromiseQueue(e);var i={};if("string"==typeof n)i[n]=r;else{if(!a.isPlainObject(n))return a.warn("Restyle fail.",n,r,o),Promise.reject();i=a.extendFlat({},n),void 0===o&&(o=r)}Object.keys(i).length&&(e.changed=!0);var s=j.coerceTraceIndices(e,o),l=U(e,i,s),u=l.flags;u.calc&&(e.calcdata=void 0),u.clearAxisTypes&&j.clearAxisTypes(e,s,{});var d=[];u.fullReplot?d.push(t._doPlot):(d.push(f.previousPromises),f.supplyDefaults(e),u.markerSize&&(f.doCalcdata(e),q(d)),u.style&&d.push(k.doTraceStyle),u.colorbars&&d.push(k.doColorBars),d.push(S)),d.push(f.rehover,f.redrag,f.reselect),c.add(e,z,[e,l.undoit,l.traces],z,[e,l.redoit,l.traces]);var h=a.syncOrAsync(d,e);return h&&h.then||(h=Promise.resolve()),h.then((function(){return e.emit("plotly_restyle",l.eventData),e}))}function N(e){return void 0===e?null:e}function F(e,t){return t?function(t,n,r){var o=s(t,n),i=o.set;return o.set=function(t){B((r||"")+n,o.get(),t,e),i(t)},o}:s}function B(e,t,n,r){if(Array.isArray(t)||Array.isArray(n))for(var o=Array.isArray(t)?t:[],i=Array.isArray(n)?n:[],s=Math.max(o.length,i.length),l=0;l<s;l++)B(e+"["+l+"]",o[l],i[l],r);else if(a.isPlainObject(t)||a.isPlainObject(n)){var c=a.isPlainObject(t)?t:{},u=a.isPlainObject(n)?n:{},d=a.extendFlat({},c,u);for(var f in d)B(e+"."+f,c[f],u[f],r)}else void 0===r[e]&&(r[e]=N(t))}function U(e,t,n){var r,o=e._fullLayout,i=e._fullData,l=e.data,c=o._guiEditing,p=F(o._preGUI,c),m=a.extendDeepAll({},t);H(t);var g,v=T.traceFlags(),y={},b={};function x(){return n.map((function(){}))}function _(e){var t=h.id2name(e);-1===g.indexOf(t)&&g.push(t)}function w(e){return"LAYOUT"+e+".autorange"}function k(e){return"LAYOUT"+e+".range"}function A(e){for(var t=e;t<i.length;t++)if(i[t]._input===l[e])return i[t]}function M(r,i,a){if(Array.isArray(r))r.forEach((function(e){M(e,i,a)}));else if(!(r in t)&&!j.hasParent(t,r)){var s;if("LAYOUT"===r.substr(0,6))s=p(e.layout,r.replace("LAYOUT",""));else{var u=n[a];s=F(o._tracePreGUI[A(u)._fullInput.uid],c)(l[u],r)}r in b||(b[r]=x()),void 0===b[r][a]&&(b[r][a]=N(s.get())),void 0!==i&&s.set(i)}}function S(e){return function(t){return i[t][e]}}function C(e){return function(t,r){return!1===t?i[n[r]][e]:null}}for(var E in t){if(j.hasParent(t,E))throw new Error("cannot set "+E+" and a parent attribute simultaneously");var L,O,R,I,P,D,z=t[E];if("autobinx"!==E&&"autobiny"!==E||(E=E.charAt(E.length-1)+"bins",z=Array.isArray(z)?z.map(C(E)):!1===z?n.map(S(E)):null),y[E]=z,"LAYOUT"!==E.substr(0,6)){for(b[E]=x(),r=0;r<n.length;r++){if(L=l[n[r]],O=A(n[r]),I=(R=F(o._tracePreGUI[O._fullInput.uid],c)(L,E)).get(),void 0!==(P=Array.isArray(z)?z[r%z.length]:z)){var B=R.parts[R.parts.length-1],U=E.substr(0,E.length-B.length-1),V=U?U+".":"",G=U?s(O,U).get():O;if((D=d.getTraceValObject(O,R.parts))&&D.impliedEdits&&null!==P)for(var q in D.impliedEdits)M(a.relativeAttr(E,q),D.impliedEdits[q],r);else if("thicknessmode"!==B&&"lenmode"!==B||I===P||"fraction"!==P&&"pixels"!==P||!G){if("type"===E&&("pie"===P!=("pie"===I)||"funnelarea"===P!=("funnelarea"===I))){var W="x",Y="y";"bar"!==P&&"bar"!==I||"h"!==L.orientation||(W="y",Y="x"),a.swapAttrs(L,["?","?src"],"labels",W),a.swapAttrs(L,["d?","?0"],"label",W),a.swapAttrs(L,["?","?src"],"values",Y),"pie"===I||"funnelarea"===I?(s(L,"marker.color").set(s(L,"marker.colors").get()),o._pielayer.selectAll("g.trace").remove()):u.traceIs(L,"cartesian")&&s(L,"marker.colors").set(s(L,"marker.color").get())}}else{var X=o._size,Z=G.orient,$="top"===Z||"bottom"===Z;if("thicknessmode"===B){var K=$?X.h:X.w;M(V+"thickness",G.thickness*("fraction"===P?1/K:K),r)}else{var J=$?X.w:X.h;M(V+"len",G.len*("fraction"===P?1/J:J),r)}}b[E][r]=N(I);if(-1!==["swapxy","swapxyaxes","orientation","orientationaxes"].indexOf(E)){if("orientation"===E){R.set(P);var Q=L.x&&!L.y?"h":"v";if((R.get()||Q)===O.orientation)continue}else"orientationaxes"===E&&(L.orientation={v:"h",h:"v"}[O.orientation]);j.swapXYData(L),v.calc=v.clearAxisTypes=!0}else-1!==f.dataArrayContainers.indexOf(R.parts[0])?(j.manageArrayContainers(R,P,b),v.calc=!0):(D?D.arrayOk&&!u.traceIs(O,"regl")&&(a.isArrayOrTypedArray(P)||a.isArrayOrTypedArray(I))?v.calc=!0:T.update(v,D):v.calc=!0,R.set(P))}}if(-1!==["swapxyaxes","orientationaxes"].indexOf(E)&&h.swap(e,n),"orientationaxes"===E){var ee=s(e.layout,"hovermode"),te=ee.get();"x"===te?ee.set("y"):"y"===te?ee.set("x"):"x unified"===te?ee.set("y unified"):"y unified"===te&&ee.set("x unified")}if(-1!==["orientation","type"].indexOf(E)){for(g=[],r=0;r<n.length;r++){var ne=l[n[r]];u.traceIs(ne,"cartesian")&&(_(ne.xaxis||"x"),_(ne.yaxis||"y"))}M(g.map(w),!0,0),M(g.map(k),[0,1],0)}}else R=p(e.layout,E.replace("LAYOUT","")),b[E]=[N(R.get())],R.set(Array.isArray(z)?z[0]:z),v.calc=!0}return(v.calc||v.plot)&&(v.fullReplot=!0),{flags:v,undoit:b,redoit:y,traces:n,eventData:a.extendDeepNoArrays([],[m,n])}}function H(e){var t,n,r,o=a.counterRegex("axis",".title",!1,!1),i=/colorbar\.title$/,s=Object.keys(e);for(t=0;t<s.length;t++)n=s[t],r=e[n],"title"!==n&&!o.test(n)&&!i.test(n)||"string"!=typeof r&&"number"!=typeof r?n.indexOf("titlefont")>-1&&-1===n.indexOf("grouptitlefont")?l(n,n.replace("titlefont","title.font")):n.indexOf("titleposition")>-1?l(n,n.replace("titleposition","title.position")):n.indexOf("titleside")>-1?l(n,n.replace("titleside","title.side")):n.indexOf("titleoffset")>-1&&l(n,n.replace("titleoffset","title.offset")):l(n,n.replace("title","title.text"));function l(t,n){e[n]=e[t],delete e[t]}}function V(e,t,n){e=a.getGraphDiv(e),j.clearPromiseQueue(e);var r={};if("string"==typeof t)r[t]=n;else{if(!a.isPlainObject(t))return a.warn("Relayout fail.",t,n),Promise.reject();r=a.extendFlat({},t)}Object.keys(r).length&&(e.changed=!0);var o=Z(e,r),i=o.flags;i.calc&&(e.calcdata=void 0);var s=[f.previousPromises];i.layoutReplot?s.push(k.layoutReplot):Object.keys(r).length&&(G(e,i,o)||f.supplyDefaults(e),i.legend&&s.push(k.doLegend),i.layoutstyle&&s.push(k.layoutStyles),i.axrange&&q(s,o.rangesAltered),i.ticks&&s.push(k.doTicksRelayout),i.modebar&&s.push(k.doModeBar),i.camera&&s.push(k.doCamera),i.colorbars&&s.push(k.doColorBars),s.push(S)),s.push(f.rehover,f.redrag,f.reselect),c.add(e,V,[e,o.undoit],V,[e,o.redoit]);var l=a.syncOrAsync(s,e);return l&&l.then||(l=Promise.resolve(e)),l.then((function(){return e.emit("plotly_relayout",o.eventData),e}))}function G(e,t,n){var r,o,i=e._fullLayout;if(!t.axrange)return!1;for(var s in t)if("axrange"!==s&&t[s])return!1;var l=function(e,t){return a.coerce(r,o,m,e,t)},c={};for(var u in n.rangesAltered){var d=h.id2name(u);if(r=e.layout[d],o=i[d],p(r,o,l,c),o._matchGroup)for(var f in o._matchGroup)if(f!==u){var g=i[h.id2name(f)];g.autorange=o.autorange,g.range=o.range.slice(),g._input.range=o.range.slice()}}return!0}function q(e,t){var n=t?function(e){var n=[];for(var r in t){var o=h.getFromId(e,r);if(n.push(r),-1!==(o.ticklabelposition||"").indexOf("inside")&&o._anchorAxis&&n.push(o._anchorAxis._id),o._matchGroup)for(var i in o._matchGroup)t[i]||n.push(i)}return h.draw(e,n,{skipTitle:!0})}:function(e){return h.draw(e,"redraw")};e.push(x,k.doAutoRangeAndConstraints,n,k.drawData,k.finalDraw)}var W=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Y=/^[xyz]axis[0-9]*\.autorange$/,X=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Z(e,t){var n,r,o,i=e.layout,l=e._fullLayout,c=l._guiEditing,f=F(l._preGUI,c),p=Object.keys(t),m=h.list(e),g=a.extendDeepAll({},t),v={};for(H(t),p=Object.keys(t),r=0;r<p.length;r++)if(0===p[r].indexOf("allaxes")){for(o=0;o<m.length;o++){var y=m[o]._id.substr(1),b=-1!==y.indexOf("scene")?y+".":"",x=p[r].replace("allaxes",b+m[o]._name);t[x]||(t[x]=t[p[r]])}delete t[p[r]]}var _=T.layoutFlags(),k={},M={};function S(e,n){if(Array.isArray(e))e.forEach((function(e){S(e,n)}));else if(!(e in t)&&!j.hasParent(t,e)){var r=f(i,e);e in M||(M[e]=N(r.get())),void 0!==n&&r.set(n)}}var C,E={};function L(e){var t=h.name2id(e.split(".")[0]);return E[t]=1,t}for(var O in t){if(j.hasParent(t,O))throw new Error("cannot set "+O+" and a parent attribute simultaneously");for(var R=f(i,O),I=t[O],P=R.parts.length-1;P>0&&"string"!=typeof R.parts[P];)P--;var D=R.parts[P],z=R.parts[P-1]+"."+D,B=R.parts.slice(0,P).join("."),U=s(e.layout,B).get(),V=s(l,B).get(),G=R.get();if(void 0!==I){k[O]=I,M[O]="reverse"===D?I:N(G);var q=d.getLayoutValObject(l,R.parts);if(q&&q.impliedEdits&&null!==I)for(var Z in q.impliedEdits)S(a.relativeAttr(O,Z),q.impliedEdits[Z]);if(-1!==["width","height"].indexOf(O))if(I){S("autosize",null);var K="height"===O?"width":"height";S(K,l[K])}else l[O]=e._initialAutoSize[O];else if("autosize"===O)S("width",I?null:l.width),S("height",I?null:l.height);else if(z.match(W))L(z),s(l,B+"._inputRange").set(null);else if(z.match(Y)){L(z),s(l,B+"._inputRange").set(null);var J=s(l,B).get();J._inputDomain&&(J._input.domain=J._inputDomain.slice())}else z.match(X)&&s(l,B+"._inputDomain").set(null);if("type"===D){C=U;var Q="linear"===V.type&&"log"===I,ee="log"===V.type&&"linear"===I;if(Q||ee){if(C&&C.range)if(V.autorange)Q&&(C.range=C.range[1]>C.range[0]?[1,2]:[2,1]);else{var te=C.range[0],ne=C.range[1];Q?(te<=0&&ne<=0&&S(B+".autorange",!0),te<=0?te=ne/1e6:ne<=0&&(ne=te/1e6),S(B+".range[0]",Math.log(te)/Math.LN10),S(B+".range[1]",Math.log(ne)/Math.LN10)):(S(B+".range[0]",Math.pow(10,te)),S(B+".range[1]",Math.pow(10,ne)))}else S(B+".autorange",!0);Array.isArray(l._subplots.polar)&&l._subplots.polar.length&&l[R.parts[0]]&&"radialaxis"===R.parts[1]&&delete l[R.parts[0]]._subplot.viewInitial["radialaxis.range"],u.getComponentMethod("annotations","convertCoords")(e,V,I,S),u.getComponentMethod("images","convertCoords")(e,V,I,S)}else S(B+".autorange",!0),S(B+".range",null);s(l,B+"._inputRange").set(null)}else if(D.match(A)){var re=s(l,O).get(),oe=(I||{}).type;oe&&"-"!==oe||(oe="linear"),u.getComponentMethod("annotations","convertCoords")(e,re,oe,S),u.getComponentMethod("images","convertCoords")(e,re,oe,S)}var ie=w.containerArrayMatch(O);if(ie){n=ie.array,r=ie.index;var ae=ie.property,se=q||{editType:"calc"};""!==r&&""===ae&&(w.isAddVal(I)?M[O]=null:w.isRemoveVal(I)?M[O]=(s(i,n).get()||[])[r]:a.warn("unrecognized full object value",t)),T.update(_,se),v[n]||(v[n]={});var le=v[n][r];le||(le=v[n][r]={}),le[ae]=I,delete t[O]}else"reverse"===D?(U.range?U.range.reverse():(S(B+".autorange",!0),U.range=[1,0]),V.autorange?_.calc=!0:_.plot=!0):("dragmode"===O&&(!1===I&&!1!==G||!1!==I&&!1===G)||l._has("scatter-like")&&l._has("regl")&&"dragmode"===O&&("lasso"===I||"select"===I)&&"lasso"!==G&&"select"!==G||l._has("gl2d")?_.plot=!0:q?T.update(_,q):_.calc=!0,R.set(I))}}for(n in v){w.applyContainerArrayChanges(e,f(i,n),v[n],_,f)||(_.plot=!0)}for(var ce in E){var ue=(C=h.getFromId(e,ce))&&C._constraintGroup;if(ue)for(var de in _.calc=!0,ue)E[de]||(h.getFromId(e,de)._constraintShrinkable=!0)}($(e)||t.height||t.width)&&(_.plot=!0);var fe=l.shapes;for(r=0;r<fe.length;r++)if(fe[r].showlegend){_.calc=!0;break}return(_.plot||_.calc)&&(_.layoutReplot=!0),{flags:_,rangesAltered:E,undoit:M,redoit:k,eventData:g}}function $(e){var t=e._fullLayout,n=t.width,r=t.height;return e.layout.autosize&&f.plotAutoSize(e,e.layout,t),t.width!==n||t.height!==r}function K(e,n,r,o){e=a.getGraphDiv(e),j.clearPromiseQueue(e),a.isPlainObject(n)||(n={}),a.isPlainObject(r)||(r={}),Object.keys(n).length&&(e.changed=!0),Object.keys(r).length&&(e.changed=!0);var i=j.coerceTraceIndices(e,o),s=U(e,a.extendFlat({},n),i),l=s.flags,u=Z(e,a.extendFlat({},r)),d=u.flags;(l.calc||d.calc)&&(e.calcdata=void 0),l.clearAxisTypes&&j.clearAxisTypes(e,i,r);var h=[];d.layoutReplot?h.push(k.layoutReplot):l.fullReplot?h.push(t._doPlot):(h.push(f.previousPromises),G(e,d,u)||f.supplyDefaults(e),l.style&&h.push(k.doTraceStyle),(l.colorbars||d.colorbars)&&h.push(k.doColorBars),d.legend&&h.push(k.doLegend),d.layoutstyle&&h.push(k.layoutStyles),d.axrange&&q(h,u.rangesAltered),d.ticks&&h.push(k.doTicksRelayout),d.modebar&&h.push(k.doModeBar),d.camera&&h.push(k.doCamera),h.push(S)),h.push(f.rehover,f.redrag,f.reselect),c.add(e,K,[e,s.undoit,u.undoit,s.traces],K,[e,s.redoit,u.redoit,s.traces]);var p=a.syncOrAsync(h,e);return p&&p.then||(p=Promise.resolve(e)),p.then((function(){return e.emit("plotly_update",{data:s.eventData,layout:u.eventData}),e}))}function J(e){return function(t){t._fullLayout._guiEditing=!0;var n=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,n}}var Q=[{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:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],ee=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function te(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=e.match(r.pattern);if(o){var i=o[1]||"";return{head:i,tail:e.substr(i.length+1),attr:r.attr}}}}function ne(e,t){var n=s(t,e).get();if(void 0!==n)return n;var r=e.split(".");for(r.pop();r.length>1;)if(r.pop(),void 0!==(n=s(t,r.join(".")+".uirevision").get()))return n;return t.uirevision}function re(e,t){for(var n=0;n<t.length;n++)if(t[n]._fullInput.uid===e)return n;return-1}function oe(e,t,n){for(var r=0;r<t.length;r++)if(t[r].uid===e)return r;return!t[n]||t[n].uid?-1:n}function ie(e,t){var n=a.isPlainObject(e),r=Array.isArray(e);return n||r?(n&&a.isPlainObject(t)||r&&Array.isArray(t))&&JSON.stringify(e)===JSON.stringify(t):e===t}function ae(e,t,n,r){var o,i,l,c=r.getValObject,u=r.flags,d=r.immutable,f=r.inArray,h=r.arrayIndex;function p(){var e=o.editType;f&&-1!==e.indexOf("arraydraw")?a.pushUnique(u.arrays[f],h):(T.update(u,o),"none"!==e&&u.nChanges++,r.transition&&o.anim&&u.nChangesAnim++,(W.test(l)||Y.test(l))&&(u.rangesAltered[n[0]]=1),X.test(l)&&s(t,"_inputDomain").set(null),"datarevision"===i&&(u.newDataRevision=1))}function m(e){return"data_array"===e.valType||e.arrayOk}for(i in e){if(u.calc&&!r.transition)return;var g=e[i],v=t[i],y=n.concat(i);if(l=y.join("."),"_"!==i.charAt(0)&&"function"!=typeof g&&g!==v){if(("tick0"===i||"dtick"===i)&&"geo"!==n[0]){var b=t.tickmode;if("auto"===b||"array"===b||!b)continue}if(("range"!==i||!t.autorange)&&("zmin"!==i&&"zmax"!==i||"contourcarpet"!==t.type)&&(o=c(y))&&(!o._compareAsJSON||JSON.stringify(g)!==JSON.stringify(v))){var x,_=o.valType,w=m(o),j=Array.isArray(g),k=Array.isArray(v);if(j&&k){var A="_input_"+i,M=e[A],S=t[A];if(Array.isArray(M)&&M===S)continue}if(void 0===v)w&&j?u.calc=!0:p();else if(o._isLinkedToArray){var C=[],E=!1;f||(u.arrays[i]=C);var L=Math.min(g.length,v.length),O=Math.max(g.length,v.length);if(L!==O){if("arraydraw"!==o.editType){p();continue}E=!0}for(x=0;x<L;x++)ae(g[x],v[x],y.concat(x),a.extendFlat({inArray:i,arrayIndex:x},r));if(E)for(x=L;x<O;x++)C.push(x)}else!_&&a.isPlainObject(g)?ae(g,v,y,r):w?j&&k?(d&&(u.calc=!0),(d||r.newDataRevision)&&p()):j!==k?u.calc=!0:p():j&&k&&g.length===v.length&&String(g)===String(v)||p()}}}for(i in t)if(!(i in e)&&"_"!==i.charAt(0)&&"function"!=typeof t[i]){if(m(o=c(n.concat(i)))&&Array.isArray(t[i]))return void(u.calc=!0);p()}}function se(e){var t=e._fullLayout,n=e.getBoundingClientRect();if(!a.equalDomRects(n,t._lastBBox)){var r=t._invTransform=a.inverseTransformMatrix(a.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(r[0][0]*r[0][0]+r[0][1]*r[0][1]+r[0][2]*r[0][2]),t._invScaleY=Math.sqrt(r[1][0]*r[1][0]+r[1][1]*r[1][1]+r[1][2]*r[1][2]),t._lastBBox=n}}t.animate=function(e,t,n){if(e=a.getGraphDiv(e),!a.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 r=e._transitionData;r._frameQueue||(r._frameQueue=[]);var o=(n=f.supplyAnimationDefaults(n)).transition,i=n.frame;function s(e){return Array.isArray(o)?e>=o.length?o[0]:o[e]:o}function l(e){return Array.isArray(i)?e>=i.length?i[0]:i[e]:i}function c(e,t){var n=0;return function(){if(e&&++n===t)return e()}}return void 0===r._frameWaitingCnt&&(r._frameWaitingCnt=0),new Promise((function(i,u){function d(){r._currentFrame&&r._currentFrame.onComplete&&r._currentFrame.onComplete();var t=r._currentFrame=r._frameQueue.shift();if(t){var n=t.name?t.name.toString():null;e._fullLayout._currentFrame=n,r._lastFrameAt=Date.now(),r._timeToNext=t.frameOpts.duration,f.transition(e,t.frame.data,t.frame.layout,j.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:n,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(r._animationRaf),r._animationRaf=null}function h(){e.emit("plotly_animating"),r._lastFrameAt=-1/0,r._timeToNext=0,r._runningTransitions=0,r._currentFrame=null;var t=function(){r._animationRaf=window.requestAnimationFrame(t),Date.now()-r._lastFrameAt>r._timeToNext&&d()};t()}var p,m,g=0;function v(e){return Array.isArray(o)?g>=o.length?e.transitionOpts=o[g]:e.transitionOpts=o[0]:e.transitionOpts=o,g++,e}var y=[],b=null==t,x=Array.isArray(t);if(!b&&!x&&a.isPlainObject(t))y.push({type:"object",data:v(a.extendFlat({},t))});else if(b||-1!==["string","number"].indexOf(typeof t))for(p=0;p<r._frames.length;p++)(m=r._frames[p])&&(b||String(m.group)===String(t))&&y.push({type:"byname",name:String(m.name),data:v({name:m.name})});else if(x)for(p=0;p<t.length;p++){var _=t[p];-1!==["number","string"].indexOf(typeof _)?(_=String(_),y.push({type:"byname",name:_,data:v({name:_})})):a.isPlainObject(_)&&y.push({type:"object",data:v(a.extendFlat({},_))})}for(p=0;p<y.length;p++)if("byname"===(m=y[p]).type&&!r._frameHash[m.data.name])return a.warn('animate failure: frame not found: "'+m.data.name+'"'),void u();-1!==["next","immediate"].indexOf(n.mode)&&function(){if(0!==r._frameQueue.length){for(;r._frameQueue.length;){var t=r._frameQueue.pop();t.onInterrupt&&t.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}(),"reverse"===n.direction&&y.reverse();var w=e._fullLayout._currentFrame;if(w&&n.fromcurrent){var k=-1;for(p=0;p<y.length;p++)if("byname"===(m=y[p]).type&&m.name===w){k=p;break}if(k>0&&k<y.length-1){var T=[];for(p=0;p<y.length;p++)m=y[p],("byname"!==y[p].type||p>k)&&T.push(m);y=T}}y.length>0?function(t){if(0!==t.length){for(var o=0;o<t.length;o++){var a;a="byname"===t[o].type?f.computeFrame(e,t[o].name):t[o].data;var d=l(o),p=s(o);p.duration=Math.min(p.duration,d.duration);var m={frame:a,name:t[o].name,frameOpts:d,transitionOpts:p};o===t.length-1&&(m.onComplete=c(i,2),m.onInterrupt=u),r._frameQueue.push(m)}"immediate"===n.mode&&(r._lastFrameAt=-1/0),r._animationRaf||h()}}(y):(e.emit("plotly_animated"),i())}))},t.addFrames=function(e,t,n){if(e=a.getGraphDiv(e),null==t)return Promise.resolve();if(!a.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 r,o,i,s,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var d=l.length+2*t.length,h=[],p={};for(r=t.length-1;r>=0;r--)if(a.isPlainObject(t[r])){var m=t[r].name,g=(u[m]||p[m]||{}).name,v=t[r].name,y=u[g]||p[g];g&&v&&"number"==typeof v&&y&&M<5&&(M++,a.warn('addFrames: overwriting frame "'+(u[g]||p[g]).name+'" with a frame whose name of type "number" also equates to "'+g+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===M&&a.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.")),p[m]={name:m},h.push({frame:f.supplyFrameDefaults(t[r]),index:n&&void 0!==n[r]&&null!==n[r]?n[r]:d+r})}h.sort((function(e,t){return e.index>t.index?-1:e.index<t.index?1:0}));var b=[],x=[],_=l.length;for(r=h.length-1;r>=0;r--){if("number"==typeof(o=h[r].frame).name&&a.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!o.name)for(;u[o.name="frame "+e._transitionData._counter++];);if(u[o.name]){for(i=0;i<l.length&&(l[i]||{}).name!==o.name;i++);b.push({type:"replace",index:i,value:o}),x.unshift({type:"replace",index:i,value:l[i]})}else s=Math.max(0,Math.min(h[r].index,_)),b.push({type:"insert",index:s,value:o}),x.unshift({type:"delete",index:s}),_++}var w=f.modifyFrames,j=f.modifyFrames,k=[e,x],T=[e,b];return c&&c.add(e,w,k,j,T),f.modifyFrames(e,b)},t.deleteFrames=function(e,t){if(e=a.getGraphDiv(e),!a.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var n,r,o=e._transitionData._frames,i=[],s=[];if(!t)for(t=[],n=0;n<o.length;n++)t.push(n);for((t=t.slice()).sort(),n=t.length-1;n>=0;n--)r=t[n],i.push({type:"delete",index:r}),s.unshift({type:"insert",index:r,value:o[r]});var l=f.modifyFrames,u=f.modifyFrames,d=[e,s],h=[e,i];return c&&c.add(e,l,d,u,h),f.modifyFrames(e,i)},t.addTraces=function e(n,r,o){n=a.getGraphDiv(n);var i,s,l=[],u=t.deleteTraces,d=e,f=[n,l],h=[n,r];for(function(e,t,n){var r,o;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),r=0;r<t.length;r++)if("object"!=typeof(o=t[r])||Array.isArray(o)||null===o)throw new Error("all values in traces array must be non-array objects");if(void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&n.length!==t.length)throw new Error("if indices is specified, traces.length must equal indices.length")}(n,r,o),Array.isArray(r)||(r=[r]),r=r.map((function(e){return a.extendFlat({},e)})),j.cleanData(r),i=0;i<r.length;i++)n.data.push(r[i]);for(i=0;i<r.length;i++)l.push(-r.length+i);if(void 0===o)return s=t.redraw(n),c.add(n,u,f,d,h),s;Array.isArray(o)||(o=[o]);try{I(n,l,o)}catch(e){throw n.data.splice(n.data.length-r.length,r.length),e}return c.startSequence(n),c.add(n,u,f,d,h),s=t.moveTraces(n,l,o),c.stopSequence(n),s},t.deleteTraces=function e(n,r){n=a.getGraphDiv(n);var o,i,s=[],l=t.addTraces,u=e,d=[n,s,r],f=[n,r];if(void 0===r)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),R(n,r,"indices"),(r=O(r,n.data.length-1)).sort(a.sorterDes),o=0;o<r.length;o+=1)i=n.data.splice(r[o],1)[0],s.push(i);var h=t.redraw(n);return c.add(n,l,d,u,f),h},t.extendTraces=function e(n,r,o,i){function s(e,t,n){var r,o;if(a.isTypedArray(e))if(n<0){var i=new e.constructor(0),s=D(e,t);n<0?(r=s,o=i):(r=i,o=s)}else if(r=new e.constructor(n),o=new e.constructor(e.length+t.length-n),n===t.length)r.set(t),o.set(e);else if(n<t.length){var l=t.length-n;r.set(t.subarray(l)),o.set(e),o.set(t.subarray(0,l),e.length)}else{var c=n-t.length,u=e.length-c;r.set(e.subarray(u)),r.set(t,c),o.set(e.subarray(0,u))}else r=e.concat(t),o=n>=0&&n<r.length?r.splice(0,r.length-n):[];return[r,o]}var l=P(n=a.getGraphDiv(n),r,o,i,s),u=t.redraw(n),d=[n,l.update,o,l.maxPoints];return c.add(n,t.prependTraces,d,e,arguments),u},t.moveTraces=function e(n,r,o){var i,s=[],l=[],u=e,d=e,f=[n=a.getGraphDiv(n),o,r],h=[n,r,o];if(I(n,r,o),r=Array.isArray(r)?r:[r],void 0===o)for(o=[],i=0;i<r.length;i++)o.push(-r.length+i);for(o=Array.isArray(o)?o:[o],r=O(r,n.data.length-1),o=O(o,n.data.length-1),i=0;i<n.data.length;i++)-1===r.indexOf(i)&&s.push(n.data[i]);for(i=0;i<r.length;i++)l.push({newIndex:o[i],trace:n.data[r[i]]});for(l.sort((function(e,t){return e.newIndex-t.newIndex})),i=0;i<l.length;i+=1)s.splice(l[i].newIndex,0,l[i].trace);n.data=s;var p=t.redraw(n);return c.add(n,u,f,d,h),p},t.prependTraces=function e(n,r,o,i){function s(e,t,n){var r,o;if(a.isTypedArray(e))if(n<=0){var i=new e.constructor(0),s=D(t,e);n<0?(r=s,o=i):(r=i,o=s)}else if(r=new e.constructor(n),o=new e.constructor(e.length+t.length-n),n===t.length)r.set(t),o.set(e);else if(n<t.length){var l=t.length-n;r.set(t.subarray(0,l)),o.set(t.subarray(l)),o.set(e,l)}else{var c=n-t.length;r.set(t),r.set(e.subarray(0,c),t.length),o.set(e.subarray(c))}else r=t.concat(e),o=n>=0&&n<r.length?r.splice(n,r.length):[];return[r,o]}var l=P(n=a.getGraphDiv(n),r,o,i,s),u=t.redraw(n),d=[n,l.update,o,l.maxPoints];return c.add(n,t.extendTraces,d,e,arguments),u},t.newPlot=function(e,n,r,o){return e=a.getGraphDiv(e),f.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),f.purge(e),t._doPlot(e,n,r,o)},t._doPlot=function(e,n,o,i){var s;if(e=a.getGraphDiv(e),l.init(e),a.isPlainObject(n)){var c=n;n=c.data,o=c.layout,i=c.config,s=c.frames}if(!1===l.triggerHandler(e,"plotly_beforeplot",[n,o,i]))return Promise.reject();n||o||a.isPlotDiv(e)||a.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e),L(e,i),o||(o={}),r.select(e).classed("js-plotly-plot",!0),g.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var d=0===(e.data||[]).length&&Array.isArray(n);Array.isArray(n)&&(j.cleanData(n),d?e.data=n:e.data.push.apply(e.data,n),e.empty=!1),e.layout&&!d||(e.layout=j.cleanLayout(o)),f.supplyDefaults(e);var p=e._fullLayout,m=p._has("cartesian");p._replotting=!0,(d||p._shouldCreateBgLayer)&&(!function(e){var t=r.select(e),n=e._fullLayout;if(n._calcInverseTransform=se,n._calcInverseTransform(e),n._container=t.selectAll(".plot-container").data([0]),n._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),n._paperdiv=n._container.selectAll(".svg-container").data([0]),n._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),n._glcontainer=n._paperdiv.selectAll(".gl-container").data([{}]),n._glcontainer.enter().append("div").classed("gl-container",!0),n._paperdiv.selectAll(".main-svg").remove(),n._paperdiv.select(".modebar-container").remove(),n._paper=n._paperdiv.insert("svg",":first-child").classed("main-svg",!0),n._toppaper=n._paperdiv.append("svg").classed("main-svg",!0),n._modebardiv=n._paperdiv.append("div"),delete n._modeBar,n._hoverpaper=n._paperdiv.append("svg").classed("main-svg",!0),!n._uid){var o={};r.selectAll("defs").each((function(){this.id&&(o[this.id.split("-")[1]]=1)})),n._uid=a.randstr(o)}n._paperdiv.selectAll(".main-svg").attr(b.svgAttrs),n._defs=n._paper.append("defs").attr("id","defs-"+n._uid),n._clips=n._defs.append("g").classed("clips",!0),n._topdefs=n._toppaper.append("defs").attr("id","topdefs-"+n._uid),n._topclips=n._topdefs.append("g").classed("clips",!0),n._bgLayer=n._paper.append("g").classed("bglayer",!0),n._draggers=n._paper.append("g").classed("draglayer",!0);var i=n._paper.append("g").classed("layer-below",!0);n._imageLowerLayer=i.append("g").classed("imagelayer",!0),n._shapeLowerLayer=i.append("g").classed("shapelayer",!0),n._cartesianlayer=n._paper.append("g").classed("cartesianlayer",!0),n._polarlayer=n._paper.append("g").classed("polarlayer",!0),n._smithlayer=n._paper.append("g").classed("smithlayer",!0),n._ternarylayer=n._paper.append("g").classed("ternarylayer",!0),n._geolayer=n._paper.append("g").classed("geolayer",!0),n._funnelarealayer=n._paper.append("g").classed("funnelarealayer",!0),n._pielayer=n._paper.append("g").classed("pielayer",!0),n._iciclelayer=n._paper.append("g").classed("iciclelayer",!0),n._treemaplayer=n._paper.append("g").classed("treemaplayer",!0),n._sunburstlayer=n._paper.append("g").classed("sunburstlayer",!0),n._indicatorlayer=n._toppaper.append("g").classed("indicatorlayer",!0),n._glimages=n._paper.append("g").classed("glimages",!0);var s=n._toppaper.append("g").classed("layer-above",!0);n._imageUpperLayer=s.append("g").classed("imagelayer",!0),n._shapeUpperLayer=s.append("g").classed("shapelayer",!0),n._selectionLayer=n._toppaper.append("g").classed("selectionlayer",!0),n._infolayer=n._toppaper.append("g").classed("infolayer",!0),n._menulayer=n._toppaper.append("g").classed("menulayer",!0),n._zoomlayer=n._toppaper.append("g").classed("zoomlayer",!0),n._hoverlayer=n._hoverpaper.append("g").classed("hoverlayer",!0),n._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}(e),p._shouldCreateBgLayer&&delete p._shouldCreateBgLayer),g.initGradients(e),g.initPatterns(e),d&&h.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&f.doCalcdata(e);for(var x=0;x<e.calcdata.length;x++)e.calcdata[x][0].trace=e._fullData[x];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){a.isHidden(e)||f.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):a.clearResponsive(e);var _=a.extendFlat({},p._size),w=0;function T(){if(f.clearAutoMarginIds(e),k.drawMarginPushers(e),h.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&f.allowAutoMargin(e,"title.automargin"),p._has("pie"))for(var t=e._fullData,n=0;n<t.length;n++){var r=t[n];"pie"===r.type&&r.automargin&&f.allowAutoMargin(e,"pie."+r.uid+".automargin")}return f.doAutoMargin(e),f.previousPromises(e)}function A(){e._transitioning||(k.doAutoRangeAndConstraints(e),d&&h.saveRangeInitial(e),u.getComponentMethod("rangeslider","calcAutorange")(e))}var M=[f.previousPromises,function(){if(s)return t.addFrames(e,s)},function t(){for(var n=p._basePlotModules,r=0;r<n.length;r++)n[r].drawFramework&&n[r].drawFramework(e);!p._glcanvas&&p._has("gl")&&(p._glcanvas=p._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],(function(e){return e.key})),p._glcanvas.enter().append("canvas").attr("class",(function(e){return"gl-canvas gl-canvas-"+e.key.replace("Layer","")})).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var o=e._context.plotGlPixelRatio;if(p._glcanvas){p._glcanvas.attr("width",p.width*o).attr("height",p.height*o).style("width",p.width+"px").style("height",p.height+"px");var i=p._glcanvas.data()[0].regl;if(i&&(Math.floor(p.width*o)!==i._gl.drawingBufferWidth||Math.floor(p.height*o)!==i._gl.drawingBufferHeight)){var s="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!w)return a.log(s+" Clearing graph and plotting again."),f.cleanPlot([],{},e._fullData,p),f.supplyDefaults(e),p=e._fullLayout,f.doCalcdata(e),w++,t();a.error(s)}}return"h"===p.modebar.orientation?p._modebardiv.style("height",null).style("width","100%"):p._modebardiv.style("width",null).style("height",p.height+"px"),f.previousPromises(e)},T,function(){if(f.didMarginChange(_,p._size))return a.syncOrAsync([T,k.layoutStyles],e)}];m&&M.push((function(){if(v)return a.syncOrAsync([u.getComponentMethod("shapes","calcAutorange"),u.getComponentMethod("annotations","calcAutorange"),A],e);A()})),M.push(k.layoutStyles),m&&M.push((function(){return h.draw(e,d?"":"redraw")}),(function(e){var t=e._fullLayout._insideTickLabelsUpdaterange;if(t)return e._fullLayout._insideTickLabelsUpdaterange=void 0,V(e,t).then((function(){h.saveRangeInitial(e,!0)}))})),M.push(k.drawData,k.finalDraw,y,f.addLinks,f.rehover,f.redrag,f.reselect,f.doAutoMargin,f.previousPromises);var C=a.syncOrAsync(M,e);return C&&C.then||(C=Promise.resolve()),C.then((function(){return S(e),e}))},t.purge=function(e){var t=(e=a.getGraphDiv(e))._fullLayout||{},n=e._fullData||[];return f.cleanPlot([],{},n,t),f.purge(e),l.purge(e),t._container&&t._container.remove(),delete e._context,e},t.react=function(e,n,r,o){var i,l;e=a.getGraphDiv(e),j.clearPromiseQueue(e);var c=e._fullData,h=e._fullLayout;if(a.isPlotDiv(e)&&c&&h){if(a.isPlainObject(n)){var p=n;n=p.data,r=p.layout,o=p.config,i=p.frames}var m=!1;if(o){var g=a.extendDeep({},e._context);e._context=void 0,L(e,o),m=function e(t,n){var r;for(r in t)if("_"!==r.charAt(0)){var o=t[r],i=n[r];if(o!==i)if(a.isPlainObject(o)&&a.isPlainObject(i)){if(e(o,i))return!0}else{if(!Array.isArray(o)||!Array.isArray(i))return!0;if(o.length!==i.length)return!0;for(var s=0;s<o.length;s++)if(o[s]!==i[s]){if(!a.isPlainObject(o[s])||!a.isPlainObject(i[s]))return!0;if(e(o[s],i[s]))return!0}}}}(g,e._context)}e.data=n||[],j.cleanData(e.data),e.layout=r||{},j.cleanLayout(e.layout),function(e,t,n,r){var o,i,l,c,u,d,f,h,p,m,g=r._preGUI,v=[],y={},b={};for(o in g){if(u=te(o,Q)){if(p=u.head,m=u.tail,i=u.attr||p+".uirevision",(c=(l=s(r,i).get())&&ne(i,t))&&c===l){if(null===(d=g[o])&&(d=void 0),ie(h=(f=s(t,o)).get(),d)){void 0===h&&"autorange"===m&&v.push(p),f.set(N(s(r,o).get()));continue}if("autorange"===m||"range["===m.substr(0,6)){var x=g[p+".range[0]"],_=g[p+".range[1]"],w=g[p+".autorange"];if(w||null===w&&null===x&&null===_){if(!(p in y)){var j=s(t,p).get();y[p]=j&&(j.autorange||!1!==j.autorange&&(!j.range||2!==j.range.length))}if(y[p]){f.set(N(s(r,o).get()));continue}}}}}else a.warn("unrecognized GUI edit: "+o);delete g[o],u&&"range["===u.tail.substr(0,6)&&(b[u.head]=1)}for(var k=0;k<v.length;k++){var T=v[k];if(b[T]){var A=s(t,T).get();A&&delete A.autorange}}var M=r._tracePreGUI;for(var S in M){var C,E=M[S],L=null;for(o in E){if(!L){var O=re(S,n);if(O<0){delete M[S];break}var R=oe(S,e,(C=n[O]._fullInput).index);if(R<0){delete M[S];break}L=e[R]}if(u=te(o,ee)){if(u.attr?c=(l=s(r,u.attr).get())&&ne(u.attr,t):(l=C.uirevision,void 0===(c=L.uirevision)&&(c=t.uirevision)),c&&c===l&&(null===(d=E[o])&&(d=void 0),ie(h=(f=s(L,o)).get(),d))){f.set(N(s(C,o).get()));continue}}else a.warn("unrecognized GUI edit: "+o+" in trace uid "+S);delete E[o]}}}(e.data,e.layout,c,h),f.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,y=e._fullLayout,b=void 0===y.datarevision,x=y.transition,_=function(e,t,n,r,o){var i=T.layoutFlags();function a(e){return d.getLayoutValObject(n,e)}i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0,ae(t,n,[],{getValObject:a,flags:i,immutable:r,transition:o,gd:e}),(i.plot||i.calc)&&(i.layoutReplot=!0);o&&i.nChanges&&i.nChangesAnim&&(i.anim=i.nChanges===i.nChangesAnim?"all":"some");return i}(e,h,y,b,x),w=_.newDataRevision,A=function(e,t,n,r,o,i){var a=t.length===n.length;if(!o&&!a)return{fullReplot:!0,calc:!0};var s,l,c=T.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(e){var t=d.getTraceValObject(l,e);return!l._module.animatable&&t.anim&&(t.anim=!1),t},flags:c,immutable:r,transition:o,newDataRevision:i,gd:e},h={};for(s=0;s<t.length;s++)if(n[s]){if(l=n[s]._fullInput,f.hasMakesDataTransform(l)&&(l=n[s]),h[l.uid])continue;h[l.uid]=1,ae(t[s]._fullInput,l,[],u)}(c.calc||c.plot)&&(c.fullReplot=!0);o&&c.nChanges&&c.nChangesAnim&&(c.anim=c.nChanges===c.nChangesAnim&&a?"all":"some");return c}(e,c,v,b,x,w);if($(e)&&(_.layoutReplot=!0),A.calc||_.calc){e.calcdata=void 0;for(var M=Object.getOwnPropertyNames(y),C=0;C<M.length;C++){var E=M[C],O=E.substring(0,5);if("xaxis"===O||"yaxis"===O){var R=y[E]._emptyCategories;R&&R()}}}else f.supplyDefaultsUpdateCalc(e.calcdata,v);var I=[];if(i&&(e._transitionData={},f.createTransitionData(e),I.push((function(){return t.addFrames(e,i)}))),y.transition&&!m&&(A.anim||_.anim))_.ticks&&I.push(k.doTicksRelayout),f.doCalcdata(e),k.doAutoRangeAndConstraints(e),I.push((function(){return f.transitionFromReact(e,A,_,h)}));else if(A.fullReplot||_.layoutReplot||m)e._fullLayout._skipDefaults=!0,I.push(t._doPlot);else{for(var P in _.arrays){var D=_.arrays[P];if(D.length){var z=u.getComponentMethod(P,"drawOne");if(z!==a.noop)for(var F=0;F<D.length;F++)z(e,D[F]);else{var B=u.getComponentMethod(P,"draw");if(B===a.noop)throw new Error("cannot draw components: "+P);B(e)}}}I.push(f.previousPromises),A.style&&I.push(k.doTraceStyle),(A.colorbars||_.colorbars)&&I.push(k.doColorBars),_.legend&&I.push(k.doLegend),_.layoutstyle&&I.push(k.layoutStyles),_.axrange&&q(I),_.ticks&&I.push(k.doTicksRelayout),_.modebar&&I.push(k.doModeBar),_.camera&&I.push(k.doCamera),I.push(S)}I.push(f.rehover,f.redrag,f.reselect),(l=a.syncOrAsync(I,e))&&l.then||(l=Promise.resolve(e))}else l=t.newPlot(e,n,r,o);return l.then((function(){return e.emit("plotly_react",{data:n,layout:r}),e}))},t.redraw=function(e){if(e=a.getGraphDiv(e),!a.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return j.cleanData(e.data),j.cleanLayout(e.layout),e.calcdata=void 0,t._doPlot(e).then((function(){return e.emit("plotly_redraw"),e}))},t.relayout=V,t.restyle=z,t.setPlotConfig=function(e){return a.extendFlat(_,e)},t.update=K,t._guiRelayout=J(V),t._guiRestyle=J(z),t._guiUpdate=J(K),t._storeDirectGUIEdit=function(e,t,n){for(var r in n){B(r,s(e,r).get(),n[r],t)}}},"./node_modules/plotly.js/src/plot_api/plot_config.js":function(e,t,n){"use strict";var r={staticPlot:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are interactive or not.","If *false*, no interactivity, for export or image generation."].join(" ")},typesetMath:{valType:"boolean",dflt:!0,description:["Determines whether math should be typeset or not,","when MathJax (either v2 or v3) is present on the page."].join(" ")},plotlyServerURL:{valType:"string",dflt:"",description:["When set it determines base URL for","the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button","and the showLink/sendData on-graph link.","To enable sending your data to Chart Studio Cloud, you need to","set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and","also set `showSendToCloud` to true."].join(" ")},editable:{valType:"boolean",dflt:!1,description:["Determines whether the graph is editable or not.","Sets all pieces of `edits`","unless a separate `edits` config item overrides individual parts."].join(" ")},edits:{annotationPosition:{valType:"boolean",dflt:!1,description:["Determines if the main anchor of the annotation is editable.","The main anchor corresponds to the","text (if no arrow) or the arrow (which drags the whole thing leaving","the arrow length & direction unchanged)."].join(" ")},annotationTail:{valType:"boolean",dflt:!1,description:["Has only an effect for annotations with arrows.","Enables changing the length and direction of the arrow."].join(" ")},annotationText:{valType:"boolean",dflt:!1,description:"Enables editing annotation text."},axisTitleText:{valType:"boolean",dflt:!1,description:"Enables editing axis title text."},colorbarPosition:{valType:"boolean",dflt:!1,description:"Enables moving colorbars."},colorbarTitleText:{valType:"boolean",dflt:!1,description:"Enables editing colorbar title text."},legendPosition:{valType:"boolean",dflt:!1,description:"Enables moving the legend."},legendText:{valType:"boolean",dflt:!1,description:"Enables editing the trace name fields from the legend"},shapePosition:{valType:"boolean",dflt:!1,description:"Enables moving shapes."},titleText:{valType:"boolean",dflt:!1,description:"Enables editing the global layout title."}},editSelection:{valType:"boolean",dflt:!0,description:"Enables moving selections."},autosizable:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are plotted with respect to","layout.autosize:true and infer its container size."].join(" ")},responsive:{valType:"boolean",dflt:!1,description:["Determines whether to change the layout size when window is resized.","In v3, this option will be removed and will always be true."].join(" ")},fillFrame:{valType:"boolean",dflt:!1,description:["When `layout.autosize` is turned on, determines whether the graph","fills the container (the default) or the screen (if set to *true*)."].join(" ")},frameMargins:{valType:"number",dflt:0,min:0,max:.5,description:["When `layout.autosize` is turned on, set the frame margins","in fraction of the graph size."].join(" ")},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox",description:["Determines whether mouse wheel or two-finger scroll zooms is enable.","Turned on by default for gl3d, geo and mapbox subplots","(as these subplot types do not have zoombox via pan),","but turned off by default for cartesian subplots.","Set `scrollZoom` to *false* to disable scrolling for all subplots."].join(" ")},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize",description:["Sets the double click interaction mode.","Has an effect only in cartesian plots.","If *false*, double click is disable.","If *reset*, double click resets the axis ranges to their initial values.","If *autosize*, double click set the axis ranges to their autorange values.","If *reset+autosize*, the odd double clicks resets the axis ranges","to their initial values and even double clicks set the axis ranges","to their autorange values."].join(" ")},doubleClickDelay:{valType:"number",dflt:300,min:0,description:["Sets the delay for registering a double-click in ms.","This is the time interval (in ms) between first mousedown and","2nd mouseup to constitute a double-click.","This setting propagates to all on-subplot double clicks","(except for geo and mapbox) and on-legend double clicks."].join(" ")},showAxisDragHandles:{valType:"boolean",dflt:!0,description:["Set to *false* to omit cartesian axis pan/zoom drag handles."].join(" ")},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0,description:["Set to *false* to omit direct range entry at the pan/zoom drag points,","note that `showAxisDragHandles` must be enabled to have an effect."].join(" ")},showTips:{valType:"boolean",dflt:!0,description:["Determines whether or not tips are shown while interacting","with the resulting graphs."].join(" ")},showLink:{valType:"boolean",dflt:!1,description:["Determines whether a link to Chart Studio Cloud is displayed","at the bottom right corner of resulting graphs.","Use with `sendData` and `linkText`."].join(" ")},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0,description:["Sets the text appearing in the `showLink` link."].join(" ")},sendData:{valType:"boolean",dflt:!0,description:["If *showLink* is true, does it contain data","just link to a Chart Studio Cloud file?"].join(" ")},showSources:{valType:"any",dflt:!1,description:["Adds a source-displaying function to show sources on","the resulting graphs."].join(" ")},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover",description:["Determines the mode bar display mode.","If *true*, the mode bar is always visible.","If *false*, the mode bar is always hidden.","If *hover*, the mode bar is visible while the mouse cursor","is on the graph container."].join(" ")},showSendToCloud:{valType:"boolean",dflt:!1,description:['Should we include a ModeBar button, labeled "Edit in Chart Studio",',"that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server","as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0","this button was included by default, now it is opt-in using this flag.","Note that this button can (depending on `plotlyServerURL` being set) send your data","to an external server. However that server does not persist your data",'until you arrive at the Chart Studio and explicitly click "Save".'].join(" ")},showEditInChartStudio:{valType:"boolean",dflt:!1,description:["Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk.","Note that if both `showSendToCloud` and `showEditInChartStudio` are turned,","only `showEditInChartStudio` will be honored."].join(" ")},modeBarButtonsToRemove:{valType:"any",dflt:[],description:["Remove mode bar buttons by name.","See ./components/modebar/buttons.js for the list of names."].join(" ")},modeBarButtonsToAdd:{valType:"any",dflt:[],description:["Add mode bar button using config objects","See ./components/modebar/buttons.js for list of arguments.","To enable predefined modebar buttons e.g. shape drawing, hover and spikelines,","simply provide their string name(s). This could include:","*v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*,","*drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect* and *eraseshape*.","Please note that these predefined buttons will only be shown if they are compatible","with all trace types used in a graph."].join(" ")},modeBarButtons:{valType:"any",dflt:!1,description:["Define fully custom mode bar buttons as nested array,","where the outer arrays represents button groups, and","the inner arrays have buttons config objects or names of default buttons","See ./components/modebar/buttons.js for more info."].join(" ")},toImageButtonOptions:{valType:"any",dflt:{},description:["Statically override options for toImage modebar button","allowed keys are format, filename, width, height, scale","see ../components/modebar/buttons.js"].join(" ")},displaylogo:{valType:"boolean",dflt:!0,description:["Determines whether or not the plotly logo is displayed","on the end of the mode bar."].join(" ")},watermark:{valType:"boolean",dflt:!1,description:"watermark the images with the company's logo"},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4,description:["Set the pixel ratio during WebGL image export.","This config option was formerly named `plot3dPixelRatio`","which is now deprecated."].join(" ")},setBackground:{valType:"any",dflt:"transparent",description:["Set function to add the background color (i.e. `layout.paper_color`)","to a different container.","This function take the graph div as first argument and the current background","color as second argument.","Alternatively, set to string *opaque* to ensure there is white behind it."].join(" ")},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/",description:["Set the URL to topojson used in geo charts.","By default, the topojson files are fetched from cdn.plot.ly.","For example, set this option to:","<path-to-plotly.js>/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},o={};!function e(t,n){for(var r in t){var o=t[r];o.valType?n[r]=o.dflt:(n[r]||(n[r]={}),e(o,n[r]))}}(r,o),e.exports={configAttributes:r,dfltConfig:o}},"./node_modules/plotly.js/src/plot_api/plot_schema.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/plots/attributes.js"),a=n("./node_modules/plotly.js/src/plots/layout_attributes.js"),s=n("./node_modules/plotly.js/src/plots/frame_attributes.js"),l=n("./node_modules/plotly.js/src/plots/animation_attributes.js"),c=n("./node_modules/plotly.js/src/plot_api/plot_config.js").configAttributes,u=n("./node_modules/plotly.js/src/plot_api/edit_types.js"),d=o.extendDeepAll,f=o.isPlainObject,h=o.isArrayOrTypedArray,p=o.nestedProperty,m=o.valObjectMeta,g=["_isSubplotObj","_isLinkedToArray","_arrayAttrRegexps","_deprecated"];function v(e,t,n){if(!e)return!1;if(e._isLinkedToArray)if(y(t[n]))n++;else if(n<t.length)return!1;for(;n<t.length;n++){var r=e[t[n]];if(!f(r))break;if(e=r,n===t.length-1)break;if(e._isLinkedToArray){if(!y(t[++n]))return!1}else if("info_array"===e.valType){var o=t[++n];if(!y(o))return!1;var i=e.items;if(Array.isArray(i)){if(o>=i.length)return!1;if(2===e.dimensions){if(n++,t.length===n)return e;var a=t[n];if(!y(a))return!1;e=i[o][a]}else e=i[o]}else e=i}}return e}function y(e){return e===Math.round(e)&&e>=0}function b(){var e,t,n={};for(e in d(n,a),r.subplotsRegistry){if((t=r.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var o=0;o<t.attr.length;o++)w(n,t,t.attr[o]);else w(n,t,"subplot"===t.attr?t.name:t.attr)}for(e in r.componentsRegistry){var i=(t=r.componentsRegistry[e]).schema;if(i&&(i.subplots||i.layout)){var s=i.subplots;if(s&&s.xaxis&&!s.yaxis)for(var l in s.xaxis)delete n.yaxis[l];delete n.xaxis.shift,delete n.xaxis.autoshift}else"colorscale"===t.name?d(n,t.layoutAttributes):t.layoutAttributes&&j(n,t.layoutAttributes,t.name)}return{layoutAttributes:_(n)}}function x(){var e={frames:d({},s)};return _(e),e.frames}function _(e){return function(e){t.crawl(e,(function(e,n,r){t.isValObject(e)?!0!==e.arrayOk&&"data_array"!==e.valType||(r[n+"src"]=function(e){return{valType:"string",description:"Sets the source reference on Chart Studio Cloud for `"+e+"`.",editType:"none"}}(n)):f(e)&&(e.role="object")}))}(e),function(e){t.crawl(e,(function(e,t,n){if(e){var r=e._isLinkedToArray;r&&(delete e._isLinkedToArray,n[t]={items:{}},n[t].items[r]=e,n[t].role="object")}}))}(e),function(e){!function e(t){for(var n in t)if(f(t[n]))e(t[n]);else if(Array.isArray(t[n]))for(var r=0;r<t[n].length;r++)e(t[n][r]);else t[n]instanceof RegExp&&(t[n]=t[n].toString())}(e)}(e),e}function w(e,t,n){var r=p(e,n),o=d({},t.layoutAttributes);o._isSubplotObj=!0,r.set(o)}function j(e,t,n){var r=p(e,n);r.set(d(r.get()||{},t))}t.IS_SUBPLOT_OBJ="_isSubplotObj",t.IS_LINKED_TO_ARRAY="_isLinkedToArray",t.DEPRECATED="_deprecated",t.UNDERSCORE_ATTRS=g,t.get=function(){var e={};r.allTypes.forEach((function(n){e[n]=function(e){var n,o;n=r.modules[e]._module,o=n.basePlotModule;var a={type:null},s=d({},i),l=d({},n.attributes);t.crawl(l,(function(e,t,n,r,o){p(s,o).set(void 0),void 0===e&&p(l,o).set(void 0)})),d(a,s),r.traceIs(e,"noOpacity")&&delete a.opacity;r.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup);r.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel);n.selectPoints||delete a.selectedpoints;d(a,l),o.attributes&&d(a,o.attributes);a.type=e;var c={meta:n.meta||{},categories:n.categories||{},animatable:Boolean(n.animatable),type:e,attributes:_(a)};if(n.layoutAttributes){var u={};d(u,n.layoutAttributes),c.layoutAttributes=_(u)}n.animatable||t.crawl(c,(function(e){t.isValObject(e)&&"anim"in e&&delete e.anim}));return c}(n)}));var n={};return Object.keys(r.transformsRegistry).forEach((function(e){n[e]=function(e){var t=r.transformsRegistry[e],n=d({},t.attributes);return Object.keys(r.componentsRegistry).forEach((function(t){var o=r.componentsRegistry[t];o.schema&&o.schema.transforms&&o.schema.transforms[e]&&Object.keys(o.schema.transforms[e]).forEach((function(t){j(n,o.schema.transforms[e][t],t)}))})),{attributes:_(n)}}(e)})),{defs:{valObjects:m,metaKeys:g.concat(["description","role","editType","impliedEdits"]),editType:{traces:u.traces,layout:u.layout},impliedEdits:{description:["Sometimes when an attribute is changed, other attributes","must be altered as well in order to achieve the intended","result. For example, when `range` is specified, it is","important to set `autorange` to `false` or the new `range`","value would be lost in the redraw. `impliedEdits` is the","mechanism to do this: `impliedEdits: {autorange: false}`.","Each key is a relative paths to the attribute string to","change, using *^* to ascend into the parent container,","for example `range[0]` has `impliedEdits: {*^autorange*: false}`.","A value of `undefined` means that the attribute will not be","changed, but its previous value should be recorded in case","we want to reverse this change later. For example, `autorange`","has `impliedEdits: {*range[0]*: undefined, *range[1]*:undefined}","because the range will likely be changed by redraw."].join(" ")}},traces:e,layout:b(),transforms:n,frames:x(),animation:_(l),config:_(c)}},t.crawl=function(e,n,r,o){var i=r||0;o=o||"",Object.keys(e).forEach((function(r){var a=e[r];if(-1===g.indexOf(r)){var s=(o?o+".":"")+r;n(a,r,e,i,s),t.isValObject(a)||f(a)&&"impliedEdits"!==r&&t.crawl(a,n,i+1,s)}}))},t.isValObject=function(e){return e&&void 0!==e.valType},t.findArrayAttributes=function(e){var n,r,o=[],a=[],s=[];function l(e,t,i,l){a=a.slice(0,l).concat([t]),s=s.slice(0,l).concat([e&&e._isLinkedToArray]),e&&("data_array"===e.valType||!0===e.arrayOk)&&!("colorbar"===a[l-1]&&("ticktext"===t||"tickvals"===t))&&function e(t,n,i){var l=t[a[n]],c=i+a[n];if(n===a.length-1)h(l)&&o.push(r+c);else if(s[n]){if(Array.isArray(l))for(var u=0;u<l.length;u++)f(l[u])&&e(l[u],n+1,c+"["+u+"].")}else f(l)&&e(l,n+1,c+".")}(n,0,"")}n=e,r="",t.crawl(i,l),e._module&&e._module.attributes&&t.crawl(e._module.attributes,l);var c=e.transforms;if(c)for(var u=0;u<c.length;u++){var d=c[u],p=d._module;p&&(r="transforms["+u+"].",n=d,t.crawl(p.attributes,l))}return o},t.getTraceValObject=function(e,t){var n,o,a=t[0],s=1;if("transforms"===a){if(1===t.length)return i.transforms;var l=e.transforms;if(!Array.isArray(l)||!l.length)return!1;var c=t[1];if(!y(c)||c>=l.length)return!1;o=(n=(r.transformsRegistry[l[c].type]||{}).attributes)&&n[t[2]],s=3}else{var u=e._module;if(u||(u=(r.modules[e.type||i.type.dflt]||{})._module),!u)return!1;if(!(o=(n=u.attributes)&&n[a])){var d=u.basePlotModule;d&&d.attributes&&(o=d.attributes[a])}o||(o=i[a])}return v(o,t,s)},t.getLayoutValObject=function(e,t){return v(function(e,t){var n,o,i,s,l=e._basePlotModules;if(l){var c;for(n=0;n<l.length;n++){if((i=l[n]).attrRegex&&i.attrRegex.test(t)){if(i.layoutAttrOverrides)return i.layoutAttrOverrides;!c&&i.layoutAttributes&&(c=i.layoutAttributes)}var u=i.baseLayoutAttrOverrides;if(u&&t in u)return u[t]}if(c)return c}var d=e._modules;if(d)for(n=0;n<d.length;n++)if((s=d[n].layoutAttributes)&&t in s)return s[t];for(o in r.componentsRegistry){if("colorscale"===(i=r.componentsRegistry[o]).name&&0===t.indexOf("coloraxis"))return i.layoutAttributes[t];if(!i.schema&&t===i.name)return i.layoutAttributes}return t in a&&a[t]}(e,t[0]),t,1)}},"./node_modules/plotly.js/src/plot_api/plot_template.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/attributes.js"),i={name:{valType:"string",editType:"none",description:["When used in a template, named items are created in the output figure","in addition to any items the figure already has in this array.","You can modify these items in the output figure by making your own","item with `templateitemname` matching this `name`","alongside your modifications (including `visible: false` or","`enabled: false` to hide it).","Has no effect outside of a template."].join(" ")}};function a(e){return e&&"string"==typeof e}function s(e){var t=e.length-1;return"s"!==e.charAt(t)&&r.warn("bad argument to arrayDefaultKey: "+e),e.substr(0,e.length-1)+"defaults"}i.templateitemname={valType:"string",editType:"calc",description:["Used to refer to a named item in this array in the template. Named","items from the template will be created even without a matching item","in the input figure, but you can modify one by making an item with","`templateitemname` matching its `name`, alongside your modifications","(including `visible: false` or `enabled: false` to hide it).","If there is no template or no matching item, this item will be","hidden unless you explicitly show it with `visible: true`."].join(" ")},t.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=i.name,t.templateitemname=i.templateitemname,t},t.traceTemplater=function(e){var t,n,i={};for(t in e)n=e[t],Array.isArray(n)&&n.length&&(i[t]=0);return{newTrace:function(a){var s={type:t=r.coerce(a,{},o,"type"),_template:null};if(t in i){n=e[t];var l=i[t]%n.length;i[t]++,s._template=n[l]}return s}}},t.newContainer=function(e,t,n){var o=e._template,i=o&&(o[t]||n&&o[n]);return r.isPlainObject(i)||(i=null),e[t]={_template:i}},t.arrayTemplater=function(e,t,n){var r=e._template,o=r&&r[s(t)],i=r&&r[t];Array.isArray(i)&&i.length||(i=[]);var l={};return{newItem:function(e){var t={name:e.name,_input:e},r=t.templateitemname=e.templateitemname;if(!a(r))return t._template=o,t;for(var s=0;s<i.length;s++){var c=i[s];if(c.name===r)return l[r]=1,t._template=c,t}return t[n]=e[n]||!1,t._template=!1,t},defaultItems:function(){for(var e=[],t=0;t<i.length;t++){var n=i[t],r=n.name;if(a(r)&&!l[r]){var o={_template:n,name:r,_input:{_templateitemname:r}};o.templateitemname=n.templateitemname,e.push(o),l[r]=1}}return e}}},t.arrayDefaultKey=s,t.arrayEditor=function(e,t,n){var o=(r.nestedProperty(e,t).get()||[]).length,i=n._index,a=i>=o&&(n._input||{})._templateitemname;a&&(i=o);var s,l=t+"["+i+"]";function c(){s={},a&&(s[l]={},s[l].templateitemname=a)}function u(e,t){a?r.nestedProperty(s[l],e).set(t):s[l+"."+e]=t}function d(){var e=s;return c(),e}return c(),{modifyBase:function(e,t){s[e]=t},modifyItem:u,getUpdateObj:d,applyUpdate:function(t,n){t&&u(t,n);var o=d();for(var i in o)r.nestedProperty(e,i).set(o[i])}}}},"./node_modules/plotly.js/src/plot_api/subroutines.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/plots/plots.js"),a=n("./node_modules/plotly.js/src/lib/index.js"),s=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),l=n("./node_modules/plotly.js/src/lib/clear_gl_canvases.js"),c=n("./node_modules/plotly.js/src/components/color/index.js"),u=n("./node_modules/plotly.js/src/components/drawing/index.js"),d=n("./node_modules/plotly.js/src/components/titles/index.js"),f=n("./node_modules/plotly.js/src/components/modebar/index.js"),h=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),p=n("./node_modules/plotly.js/src/constants/alignment.js"),m=n("./node_modules/plotly.js/src/plots/cartesian/constraints.js"),g=m.enforce,v=m.clean,y=n("./node_modules/plotly.js/src/plots/cartesian/autorange.js").doAutoRange,b=n("./node_modules/plotly.js/src/plots/cartesian/constants.js").zindexSeparator;function x(e,t,n){for(var r=0;r<n.length;r++){var o=n[r][0],i=n[r][1];if(!(o[0]>=e[1]||o[1]<=e[0])&&(i[0]<t[1]&&i[1]>t[0]))return!0}return!1}function _(e){var n,o,s,l,d,m,g=e._fullLayout,v=g._size,y=v.p,_=h.list(e,"",!0);if(g._paperdiv.style({width:e._context.responsive&&g.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":g.width+"px",height:e._context.responsive&&g.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":g.height+"px"}).selectAll(".main-svg").call(u.setSize,g.width,g.height),e._context.setBackground(e,g.paper_bgcolor),t.drawMainTitle(e),f.manage(e),!g._has("cartesian"))return i.previousPromises(e);function j(e,t,n){var r=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===n?t._offset-y-r:t._offset+t._length+y+r:v.t+v.h*(1-(e.position||0))+r%1:t?"right"===n?t._offset+t._length+y+r:t._offset-y-r:v.l+v.w*(e.position||0)+r%1}for(n=0;n<_.length;n++){var T=(l=_[n])._anchorAxis;l._linepositions={},l._lw=u.crispRound(e,l.linewidth,1),l._mainLinePosition=j(l,T,l.side),l._mainMirrorPosition=l.mirror&&T?j(l,T,p.OPPOSITE_SIDE[l.side]):null}var A=[],M=[],S=[],C=1===c.opacity(g.paper_bgcolor)&&1===c.opacity(g.plot_bgcolor)&&g.paper_bgcolor===g.plot_bgcolor;for(o in g._plots)if((s=g._plots[o]).mainplot)s.bg&&s.bg.remove(),s.bg=void 0;else{var E=s.xaxis.domain,L=s.yaxis.domain,O=s.plotgroup;if(x(E,L,S)&&-1===o.indexOf(b)){var R=O.node(),I=s.bg=a.ensureSingle(O,"rect","bg");R.insertBefore(I.node(),R.childNodes[0]),M.push(o)}else O.select("rect.bg").remove(),S.push([E,L]),C||(A.push(o),M.push(o))}var P,D,z,N,F,B,U,H,V,G,q,W,Y,X=g._bgLayer.selectAll(".bg").data(A);for(X.enter().append("rect").classed("bg",!0),X.exit().remove(),X.each((function(e){g._plots[e].bg=r.select(this)})),n=0;n<M.length;n++)s=g._plots[M[n]],d=s.xaxis,m=s.yaxis,s.bg&&void 0!==d._offset&&void 0!==m._offset&&s.bg.call(u.setRect,d._offset-y,m._offset-y,d._length+2*y,m._length+2*y).call(c.fill,g.plot_bgcolor).style("stroke-width",0);if(!g._hasOnlyLargeSploms)for(o in g._plots){s=g._plots[o],d=s.xaxis,m=s.yaxis;var Z,$,K=s.clipId="clip"+g._uid+o+"plot",J=a.ensureSingleById(g._clips,"clipPath",K,(function(e){e.classed("plotclip",!0).append("rect")}));s.clipRect=J.select("rect").attr({width:d._length,height:m._length}),u.setTranslate(s.plot,d._offset,m._offset),s._hasClipOnAxisFalse?(Z=null,$=K):(Z=K,$=null),u.setClipUrl(s.plot,Z,e),s.layerClipId=$}function Q(e){return"M"+P+","+e+"H"+D}function ee(e){return"M"+d._offset+","+e+"h"+d._length}function te(e){return"M"+e+","+H+"V"+U}function ne(e){return void 0!==m._shift&&(e+=m._shift),"M"+e+","+m._offset+"v"+m._length}function re(e,t,n){if(!e.showline||o!==e._mainSubplot)return"";if(!e._anchorAxis)return n(e._mainLinePosition);var r=t(e._mainLinePosition);return e.mirror&&(r+=t(e._mainMirrorPosition)),r}for(o in g._plots){s=g._plots[o],d=s.xaxis,m=s.yaxis;var oe="M0,0";w(d,o)&&(F=k(d,"left",m,_),P=d._offset-(F?y+F:0),B=k(d,"right",m,_),D=d._offset+d._length+(B?y+B:0),z=j(d,m,"bottom"),N=j(d,m,"top"),!(Y=!d._anchorAxis||o!==d._mainSubplot)||"allticks"!==d.mirror&&"all"!==d.mirror||(d._linepositions[o]=[z,N]),oe=re(d,Q,ee),Y&&d.showline&&("all"===d.mirror||"allticks"===d.mirror)&&(oe+=Q(z)+Q(N)),s.xlines.style("stroke-width",d._lw+"px").call(c.stroke,d.showline?d.linecolor:"rgba(0,0,0,0)")),s.xlines.attr("d",oe);var ie="M0,0";w(m,o)&&(q=k(m,"bottom",d,_),U=m._offset+m._length+(q?y:0),W=k(m,"top",d,_),H=m._offset-(W?y:0),V=j(m,d,"left"),G=j(m,d,"right"),!(Y=!m._anchorAxis||o!==m._mainSubplot)||"allticks"!==m.mirror&&"all"!==m.mirror||(m._linepositions[o]=[V,G]),ie=re(m,te,ne),Y&&m.showline&&("all"===m.mirror||"allticks"===m.mirror)&&(ie+=te(V)+te(G)),s.ylines.style("stroke-width",m._lw+"px").call(c.stroke,m.showline?m.linecolor:"rgba(0,0,0,0)")),s.ylines.attr("d",ie)}return h.makeClipPaths(e),i.previousPromises(e)}function w(e,t){return(e.ticks||e.showline)&&(t===e._mainSubplot||"all"===e.mirror||"allticks"===e.mirror)}function j(e,t,n){if(!n.showline||!n._lw)return!1;if("all"===n.mirror||"allticks"===n.mirror)return!0;var r=n._anchorAxis;if(!r)return!1;var o=p.FROM_BL[t];return n.side===t?r.domain[o]===e.domain[o]:n.mirror&&r.domain[1-o]===e.domain[1-o]}function k(e,t,n,r){if(j(e,t,n))return n._lw;for(var o=0;o<r.length;o++){var i=r[o];if(i._mainAxis===n._mainAxis&&j(e,t,i))return i._lw}return 0}function T(e){return"top"===e?p.CAP_SHIFT+.3+"em":"bottom"===e?"-0.3em":p.MID_SHIFT+"em"}t.layoutStyles=function(e){return a.syncOrAsync([i.doAutoMargin,_],e)},t.drawMainTitle=function(e){var t=e._fullLayout.title,n=e._fullLayout,o=function(e){var t=e.title,n="middle";a.isRightAnchor(t)?n="end":a.isLeftAnchor(t)&&(n="start");return n}(n),l=function(e){var t=e.title,n="0em";a.isTopAnchor(t)?n=p.CAP_SHIFT+"em":a.isMiddleAnchor(t)&&(n=p.MID_SHIFT+"em");return n}(n),c=function(e,t){var n=e.title,r=e._size,o=0;"0em"!==t&&t?t===p.CAP_SHIFT+"em"&&(o=n.pad.t):o=-n.pad.b;if("auto"===n.y)return r.t/2;switch(n.yref){case"paper":return r.t+r.h-r.h*n.y+o;case"container":default:return e.height-e.height*n.y+o}}(n,l),f=function(e,t){var n=e.title,r=e._size,o=0;"start"===t?o=n.pad.l:"end"===t&&(o=-n.pad.r);switch(n.xref){case"paper":return r.l+r.w*n.x+o;case"container":default:return e.width*n.x+o}}(n,o);if(d.draw(e,"gtitle",{propContainer:n,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:n._dfltTitle.plot,subtitlePlaceholder:n._dfltTitle.subtitle,attributes:{x:f,y:c,"text-anchor":o,dy:l}}),t.text&&t.automargin){var h=r.selectAll(".gtitle"),m=u.bBox(r.selectAll(".g-gtitle").node()).height,g=function(e,t,n){var r=t.y,o=t.yanchor,i=r>.5?"t":"b",a=e._fullLayout.margin[i],s=0;"paper"===t.yref?s=n+t.pad.t+t.pad.b:"container"===t.yref&&(s=function(e,t,n,r,o){var i=0;"middle"===n&&(i+=o/2);"t"===e?("top"===n&&(i+=o),i+=r-t*r):("bottom"===n&&(i+=o),i+=t*r);return i}(i,r,o,e._fullLayout.height,n)+t.pad.t+t.pad.b);if(s>a)return s;return 0}(e,t,m);if(g>0){!function(e,t,n,r){var o="title.automargin",s=e._fullLayout.title,l=s.y>.5?"t":"b",c={x:s.x,y:s.y,t:0,b:0},u={};"paper"===s.yref&&function(e,t,n,r,o){var i="paper"===t.yref?e._fullLayout._size.h:e._fullLayout.height,s=a.isTopAnchor(t)?r:r-o,l="b"===n?i-s:s;return!(a.isTopAnchor(t)&&"t"===n||a.isBottomAnchor(t)&&"b"===n)&&l<o}(e,s,l,t,r)?c[l]=n:"container"===s.yref&&(u[l]=n,e._fullLayout._reservedMargin[o]=u);i.allowAutoMargin(e,o),i.autoMargin(e,o,c)}(e,c,g,m),h.attr({x:f,y:c,"text-anchor":o,dy:T(t.yanchor)}).call(s.positionText,f,c);var v=(t.text.match(s.BR_TAG_ALL)||[]).length;if(v){var y=p.LINE_SPACING*v+p.MID_SHIFT;0===t.y&&(y=-y),h.selectAll(".line").each((function(){var e=+this.getAttribute("dy").slice(0,-2)-y+"em";this.setAttribute("dy",e)}))}var b=r.selectAll(".gtitle-subtitle");if(b.node()){var x=h.node().getBBox(),_=x.y+x.height+d.SUBTITLE_PADDING_EM*t.subtitle.font.size;b.attr({x:f,y:_,"text-anchor":o,dy:T(t.yanchor)}).call(s.positionText,f,_)}}}},t.doTraceStyle=function(e){var n,r=e.calcdata,a=[];for(n=0;n<r.length;n++){var s=r[n],c=s[0]||{},u=c.trace||{},d=u._module||{},f=d.arraysToCalcdata;f&&f(s,u);var h=d.editStyle;h&&a.push({fn:h,cd0:c})}if(a.length){for(n=0;n<a.length;n++){var p=a[n];p.fn(e,p.cd0)}l(e),t.redrawReglTraces(e)}return i.style(e),o.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doColorBars=function(e){return o.getComponentMethod("colorbar","draw")(e),i.previousPromises(e)},t.layoutReplot=function(e){var t=e.layout;return e.layout=void 0,o.call("_doPlot",e,"",t)},t.doLegend=function(e){return o.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doTicksRelayout=function(e){return h.draw(e,"redraw"),e._fullLayout._hasOnlyLargeSploms&&(o.subplotsRegistry.splom.updateGrid(e),l(e),t.redrawReglTraces(e)),t.drawMainTitle(e),i.previousPromises(e)},t.doModeBar=function(e){var t=e._fullLayout;f.manage(e);for(var n=0;n<t._basePlotModules.length;n++){var r=t._basePlotModules[n].updateFx;r&&r(e)}return i.previousPromises(e)},t.doCamera=function(e){for(var t=e._fullLayout,n=t._subplots.gl3d,r=0;r<n.length;r++){var o=t[n[r]];o._scene.setViewport(o)}},t.drawData=function(e){var n=e._fullLayout;l(e);for(var r=n._basePlotModules,a=0;a<r.length;a++)r[a].plot(e);return t.redrawReglTraces(e),i.style(e),o.getComponentMethod("selections","draw")(e),o.getComponentMethod("shapes","draw")(e),o.getComponentMethod("annotations","draw")(e),o.getComponentMethod("images","draw")(e),n._replotting=!1,i.previousPromises(e)},t.redrawReglTraces=function(e){var t=e._fullLayout;if(t._has("regl")){var n,r,o=e._fullData,i=[],s=[];for(t._hasOnlyLargeSploms&&t._splomGrid.draw(),n=0;n<o.length;n++){var l=o[n];!0===l.visible&&0!==l._length&&("splom"===l.type?t._splomScenes[l.uid].draw():"scattergl"===l.type?a.pushUnique(i,l.xaxis+l.yaxis):"scatterpolargl"===l.type&&a.pushUnique(s,l.subplot))}for(n=0;n<i.length;n++)(r=t._plots[i[n]])._scene&&r._scene.draw();for(n=0;n<s.length;n++)(r=t[s[n]]._subplot)._scene&&r._scene.draw()}},t.doAutoRangeAndConstraints=function(e){for(var t,n=h.list(e,"",!0),r={},o=0;o<n.length;o++)if(!r[(t=n[o])._id]){r[t._id]=1,v(e,t),y(e,t);var i=t._matchGroup;if(i)for(var a in i){var s=h.getFromId(e,a);y(e,s,t.range),r[a]=1}}g(e)},t.finalDraw=function(e){o.getComponentMethod("rangeslider","draw")(e),o.getComponentMethod("rangeselector","draw")(e)},t.drawMarginPushers=function(e){o.getComponentMethod("legend","draw")(e),o.getComponentMethod("rangeselector","draw")(e),o.getComponentMethod("sliders","draw")(e),o.getComponentMethod("updatemenus","draw")(e),o.getComponentMethod("colorbar","draw")(e)}},"./node_modules/plotly.js/src/plot_api/template_api.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=r.isPlainObject,i=n("./node_modules/plotly.js/src/plot_api/plot_schema.js"),a=n("./node_modules/plotly.js/src/plots/plots.js"),s=n("./node_modules/plotly.js/src/plots/attributes.js"),l=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),c=n("./node_modules/plotly.js/src/plot_api/plot_config.js").dfltConfig;function u(e,t){e=r.extendDeep({},e);var n,i,a=Object.keys(e).sort();function s(t,n,r){if(o(n)&&o(t))u(t,n);else if(Array.isArray(n)&&Array.isArray(t)){var a=l.arrayTemplater({_template:e},r);for(i=0;i<n.length;i++){var s=n[i],c=a.newItem(s)._template;c&&u(c,s)}var d=a.defaultItems();for(i=0;i<d.length;i++)n.push(d[i]._template);for(i=0;i<n.length;i++)delete n[i].templateitemname}}for(n=0;n<a.length;n++){var c=a[n],f=e[c];if(c in t?s(f,t[c],c):t[c]=f,d(c)===c)for(var h in t){var p=d(h);h===p||p!==c||h in e||s(f,t[h],c)}}}function d(e){return e.replace(/[0-9]+$/,"")}function f(e,t,n,i,a){var s=a&&n(a);for(var c in e){var u=e[c],h=m(e,c,i),p=m(e,c,a),g=n(p);if(!g){var v=d(c);v!==c&&(g=n(p=m(e,v,a)))}if((!s||s!==g)&&!(!g||g._noTemplating||"data_array"===g.valType||g.arrayOk&&Array.isArray(u)))if(!g.valType&&o(u))f(u,t,n,h,p);else if(g._isLinkedToArray&&Array.isArray(u))for(var y=!1,b=0,x={},_=0;_<u.length;_++){var w=u[_];if(o(w)){var j=w.name;if(j)x[j]||(f(w,t,n,m(u,b,h),m(u,b,p)),b++,x[j]=1);else if(!y){var k=m(e,l.arrayDefaultKey(c),i),T=m(u,b,h);f(w,t,n,T,m(u,b,p));var A=r.nestedProperty(t,T);r.nestedProperty(t,k).set(A.get()),A.set(null),y=!0}}}else{r.nestedProperty(t,h).set(u)}}}function h(e,t){return i.getLayoutValObject(e,r.nestedProperty({},t).parts)}function p(e,t){return i.getTraceValObject(e,r.nestedProperty({},t).parts)}function m(e,t,n){return n?Array.isArray(e)?n+"["+t+"]":n+"."+t:t}function g(e){for(var t=0;t<e.length;t++)if(o(e[t]))return!0}function v(e){var t;switch(e.code){case"data":t="The template has no key data.";break;case"layout":t="The template has no key layout.";break;case"missing":t=e.path?"There are no templates for item "+e.path+" with name "+e.templateitemname:"There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":t=e.path?"The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?"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.":"The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":t="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."}return e.msg=t,e}t.makeTemplate=function(e){e=r.isPlainObject(e)?e:r.getGraphDiv(e),e=r.extendDeep({_context:c},{data:e.data,layout:e.layout}),a.supplyDefaults(e);var t=e.data||[],n=e.layout||{};n._basePlotModules=e._fullLayout._basePlotModules,n._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach((function(e){var t={};f(e,t,p.bind(null,e));var n=r.coerce(e,{},s,"type"),o=i.data[n];o||(o=i.data[n]=[]),o.push(t)})),f(n,i.layout,h.bind(null,n)),delete i.layout.template;var l=n.template;if(o(l)){var d,m,g,v,y,b,x=l.layout;o(x)&&u(x,i.layout);var _=l.data;if(o(_)){for(m in i.data)if(g=_[m],Array.isArray(g)){for(b=(y=i.data[m]).length,v=g.length,d=0;d<b;d++)u(g[d%v],y[d]);for(d=b;d<v;d++)y.push(r.extendDeep({},g[d]))}for(m in _)m in i.data||(i.data[m]=r.extendDeep([],_[m]))}}return i},t.validateTemplate=function(e,t){var n=r.extendDeep({},{_context:c,data:e.data,layout:e.layout}),i=n.layout||{};o(t)||(t=i.template||{});var s=t.layout,l=t.data,u=[];n.layout=i,n.layout.template=t,a.supplyDefaults(n);var f=n._fullLayout,h=n._fullData,p={};if(o(s)?(!function e(t,n){for(var r in t)if("_"!==r.charAt(0)&&o(t[r])){var i,a=d(r),s=[];for(i=0;i<n.length;i++)s.push(m(t,r,n[i])),a!==r&&s.push(m(t,a,n[i]));for(i=0;i<s.length;i++)p[s[i]]=1;e(t[r],s)}}(f,["layout"]),function e(t,n){for(var r in t)if(-1===r.indexOf("defaults")&&o(t[r])){var i=m(t,r,n);p[i]?e(t[r],i):u.push({code:"unused",path:i})}}(s,"layout")):u.push({code:"layout"}),o(l)){for(var y,b={},x=0;x<h.length;x++){var _=h[x];b[y=_.type]=(b[y]||0)+1,_._fullInput._template||u.push({code:"missing",index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,j=b[y]||0;w>j?u.push({code:"unused",traceType:y,templateCount:w,dataCount:j}):j>w&&u.push({code:"reused",traceType:y,templateCount:w,dataCount:j})}}else u.push({code:"data"});if(function e(t,n){for(var r in t)if("_"!==r.charAt(0)){var i=t[r],a=m(t,r,n);o(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&u.push({code:"missing",path:a,templateitemname:i.templateitemname}),e(i,a)):Array.isArray(i)&&g(i)&&e(i,a)}}({data:h,layout:f},""),u.length)return u.map(v)}},"./node_modules/plotly.js/src/plot_api/to_image.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/plot_api/plot_api.js"),i=n("./node_modules/plotly.js/src/plots/plots.js"),a=n("./node_modules/plotly.js/src/lib/index.js"),s=n("./node_modules/plotly.js/src/snapshot/helpers.js"),l=n("./node_modules/plotly.js/src/snapshot/tosvg.js"),c=n("./node_modules/plotly.js/src/snapshot/svgtoimg.js"),u=n("./node_modules/plotly.js/src/version.js").version,d={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}};e.exports=function(e,t){var n,f,h,p;function m(e){return!(e in t)||a.validate(t[e],d[e])}if(t=t||{},a.isPlainObject(e)?(n=e.data||[],f=e.layout||{},h=e.config||{},p={}):(e=a.getGraphDiv(e),n=a.extendDeep([],e.data),f=a.extendDeep({},e.layout),h=e._context,p=e._fullLayout||{}),!m("width")&&null!==t.width||!m("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!m("format"))throw new Error("Export format is not "+a.join2(d.format.values,", "," or ")+".");var g={};function v(e,n){return a.coerce(t,g,d,e,n)}var y=v("format"),b=v("width"),x=v("height"),_=v("scale"),w=v("setBackground"),j=v("imageDataOnly"),k=document.createElement("div");k.style.position="absolute",k.style.left="-5000px",document.body.appendChild(k);var T=a.extendFlat({},f);b?T.width=b:null===t.width&&r(p.width)&&(T.width=p.width),x?T.height=x:null===t.height&&r(p.height)&&(T.height=p.height);var A=a.extendFlat({},h,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),M=s.getRedrawFunc(k);function S(){return new Promise((function(e){setTimeout(e,s.getDelay(k._fullLayout))}))}function C(){return new Promise((function(e,t){var n=l(k,y,_),r=k._fullLayout.width,d=k._fullLayout.height;function f(){o.purge(k),document.body.removeChild(k)}if("full-json"===y){var h=i.graphJson(k,!1,"keepdata","object",!0,!0);return h.version=u,h=JSON.stringify(h),f(),e(j?h:s.encodeJSON(h))}if(f(),"svg"===y)return e(j?n:s.encodeSVG(n));var p=document.createElement("canvas");p.id=a.randstr(),c({format:y,width:r,height:d,scale:_,canvas:p,svg:n,promise:!0}).then(e).catch(t)}))}return new Promise((function(e,t){o.newPlot(k,n,T,A).then(M).then(S).then(C).then((function(t){e(function(e){return j?e.replace(s.IMAGE_URL_PREFIX,""):e}(t))})).catch((function(e){t(e)}))}))}},"./node_modules/plotly.js/src/plot_api/validate.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/plots.js"),i=n("./node_modules/plotly.js/src/plot_api/plot_schema.js"),a=n("./node_modules/plotly.js/src/plot_api/plot_config.js").dfltConfig,s=r.isPlainObject,l=Array.isArray,c=r.isArrayOrTypedArray;function u(e,t,n,o,i,a){a=a||[];for(var d=Object.keys(e),f=0;f<d.length;f++){var h=d[f];if("transforms"!==h){var v=a.slice();v.push(h);var y=e[h],b=t[h],x=g(n,h),_=(x||{}).valType,w="info_array"===_,j="colorscale"===_,k=(x||{}).items;if(m(n,h))if(s(y)&&s(b)&&"any"!==_)u(y,b,x,o,i,v);else if(w&&l(y)){y.length>b.length&&o.push(p("unused",i,v.concat(b.length)));var T,A,M,S,C,E=b.length,L=Array.isArray(k);if(L&&(E=Math.min(E,k.length)),2===x.dimensions)for(A=0;A<E;A++)if(l(y[A])){y[A].length>b[A].length&&o.push(p("unused",i,v.concat(A,b[A].length)));var O=b[A].length;for(T=0;T<(L?Math.min(O,k[A].length):O);T++)M=L?k[A][T]:k,S=y[A][T],C=b[A][T],r.validate(S,M)?C!==S&&C!==+S&&o.push(p("dynamic",i,v.concat(A,T),S,C)):o.push(p("value",i,v.concat(A,T),S))}else o.push(p("array",i,v.concat(A),y[A]));else for(A=0;A<E;A++)M=L?k[A]:k,S=y[A],C=b[A],r.validate(S,M)?C!==S&&C!==+S&&o.push(p("dynamic",i,v.concat(A),S,C)):o.push(p("value",i,v.concat(A),S))}else if(x.items&&!w&&l(y)){var R,I,P=k[Object.keys(k)[0]],D=[];for(R=0;R<b.length;R++){var z=b[R]._index||R;if((I=v.slice()).push(z),s(y[z])&&s(b[R])){D.push(z);var N=y[z],F=b[R];s(N)&&!1!==N.visible&&!1===F.visible?o.push(p("invisible",i,I)):u(N,F,P,o,i,I)}}for(R=0;R<y.length;R++)(I=v.slice()).push(R),s(y[R])?-1===D.indexOf(R)&&o.push(p("unused",i,I)):o.push(p("object",i,I,y[R]))}else!s(y)&&s(b)?o.push(p("object",i,v,y)):c(y)||!c(b)||w||j?h in t?r.validate(y,x)?"enumerated"===x.valType&&(x.coerceNumber&&y!==+b||y!==b)&&o.push(p("dynamic",i,v,y,b)):o.push(p("value",i,v,y)):o.push(p("unused",i,v,y)):o.push(p("array",i,v,y));else o.push(p("schema",i,v))}}return o}function d(e,t){for(var n=e.layout.layoutAttributes,o=0;o<t.length;o++){var i=t[o],a=e.traces[i.type],s=a.layoutAttributes;s&&(i.subplot?r.extendFlat(n[a.attributes.subplot.dflt],s):r.extendFlat(n,s))}return n}e.exports=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={});var n,c,f=i.get(),h=[],m={_context:r.extendFlat({},a)};l(e)?(m.data=r.extendDeep([],e),n=e):(m.data=[],n=[],h.push(p("array","data"))),s(t)?(m.layout=r.extendDeep({},t),c=t):(m.layout={},c={},arguments.length>1&&h.push(p("object","layout"))),o.supplyDefaults(m);for(var g=m._fullData,v=n.length,y=0;y<v;y++){var b=n[y],x=["data",y];if(s(b)){var _=g[y],w=_.type,j=f.traces[w].attributes;j.type={valType:"enumerated",values:[w]},!1===_.visible&&!1!==b.visible&&h.push(p("invisible",x)),u(b,_,j,h,x);var k=b.transforms,T=_.transforms;if(k){l(k)||h.push(p("array",x,["transforms"])),x.push("transforms");for(var A=0;A<k.length;A++){var M=["transforms",A],S=k[A].type;if(s(k[A])){var C=f.transforms[S]?f.transforms[S].attributes:{};C.type={valType:"enumerated",values:Object.keys(f.transforms)},u(k[A],T[A],C,h,x,M)}else h.push(p("object",x,M))}}}else h.push(p("object",x))}var E=m._fullLayout,L=d(f,g);return u(c,E,L,h,"layout"),0===h.length?void 0:h};var f={object:function(e,t){return("layout"===e&&""===t?"The layout argument":"data"===e[0]&&""===t?"Trace "+e[1]+" in the data argument":h(e)+"key "+t)+" must be linked to an object container"},array:function(e,t){return("data"===e?"The data argument":h(e)+"key "+t)+" must be linked to an array container"},schema:function(e,t){return h(e)+"key "+t+" is not part of the schema"},unused:function(e,t,n){var r=s(n)?"container":"key";return h(e)+r+" "+t+" did not get coerced"},dynamic:function(e,t,n,r){return[h(e)+"key",t,"(set to '"+n+"')","got reset to","'"+r+"'","during defaults."].join(" ")},invisible:function(e,t){return(t?h(e)+"item "+t:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,t,n){return[h(e)+"key "+t,"is set to an invalid value ("+n+")"].join(" ")}};function h(e){return l(e)?"In data trace "+e[1]+", ":"In "+e+", "}function p(e,t,n,o,i){var a,s;n=n||"",l(t)?(a=t[0],s=t[1]):(a=t,s=null);var c=function(e){if(!l(e))return String(e);for(var t="",n=0;n<e.length;n++){var r=e[n];"number"==typeof r?t=t.substr(0,t.length-1)+"["+r+"]":t+=r,n<e.length-1&&(t+=".")}return t}(n),u=f[e](t,c,o,i);return r.log(u),{code:e,container:a,trace:s,path:n,astr:c,msg:u}}function m(e,t){var n=y(t),r=n.keyMinusId,o=n.id;return!!(r in e&&e[r]._isSubplotObj&&o)||t in e}function g(e,t){return t in e?e[t]:e[y(t).keyMinusId]}var v=r.counterRegex("([a-z]+)");function y(e){var t=e.match(v);return{keyMinusId:t&&t[1],id:t&&t[2]}}},"./node_modules/plotly.js/src/plots/animation_attributes.js":function(e,t,n){"use strict";e.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"],description:["Describes how a new animate call interacts with currently-running","animations. If `immediate`, current animations are interrupted and","the new animation is started. If `next`, the current frame is allowed","to complete, after which the new animation is started. If `afterall`","all existing frames are animated to completion before the new animation","is started."].join(" ")},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward",description:["The direction in which to play the frames triggered by the animation call"].join(" ")},fromcurrent:{valType:"boolean",dflt:!1,description:["Play frames starting at the current frame instead of the beginning."].join(" ")},frame:{duration:{valType:"number",min:0,dflt:500,description:["The duration in milliseconds of each frame. If greater than the frame","duration, it will be limited to the frame duration."].join(" ")},redraw:{valType:"boolean",dflt:!0,description:["Redraw the plot at completion of the transition. This is desirable","for transitions that include properties that cannot be transitioned,","but may significantly slow down updates that do not require a full","redraw of the plot"].join(" ")}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none",description:["The duration of the transition, in milliseconds. If equal to zero,","updates are synchronous."].join(" ")},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",description:"The easing function used for the transition"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none",description:["Determines whether the figure's layout or traces smoothly transitions","during updates that make both traces and layout change."].join(" ")}}}},"./node_modules/plotly.js/src/plots/array_container_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plot_api/plot_template.js");e.exports=function(e,t,n){var i,a,s=n.name,l=n.inclusionAttr||"visible",c=t[s],u=r.isArrayOrTypedArray(e[s])?e[s]:[],d=t[s]=[],f=o.arrayTemplater(t,s,l);for(i=0;i<u.length;i++){var h=u[i];r.isPlainObject(h)?a=f.newItem(h):(a=f.newItem({}))[l]=!1,a._index=i,!1!==a[l]&&n.handleItemDefaults(h,a,t,n),d.push(a)}var p=f.defaultItems();for(i=0;i<p.length;i++)(a=p[i])._index=d.length,n.handleItemDefaults({},a,t,n,{}),d.push(a);if(r.isArrayOrTypedArray(c)){var m=Math.min(c.length,d.length);for(i=0;i<m;i++)r.relinkPrivateKeys(d[i],c[i])}return d}},"./node_modules/plotly.js/src/plots/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/font_attributes.js"),o=n("./node_modules/plotly.js/src/components/fx/attributes.js");e.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc",description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",dflt:!0,editType:"style",description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legend:{valType:"subplotid",dflt:"legend",editType:"style",description:["Sets the reference to a legend to show this trace in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")},legendgroup:{valType:"string",dflt:"",editType:"style",description:["Sets the legend group for this trace.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style",description:["Sets the title of the legend group."].join(" ")},font:r({editType:"style",description:["Sets this legend group's title font."].join(" ")}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style",description:["Sets the legend rank for this trace.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items.","When having unranked or equal rank items shapes would be displayed after traces","i.e. according to their order in data and layout."].join(" ")},legendwidth:{valType:"number",min:0,editType:"style",description:"Sets the width (in px or fraction) of the legend for this trace."},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the trace."},name:{valType:"string",editType:"style",description:["Sets the trace name.","The trace name appears as the legend item and on hover."].join(" ")},uid:{valType:"string",editType:"plot",anim:!0,description:["Assign an id to this trace,","Use this to provide object constancy between traces during animations","and transitions."].join(" ")},ids:{valType:"data_array",editType:"calc",anim:!0,description:["Assigns id labels to each datum.","These ids for object constancy of data points during animation.","Should be an array of strings, not numbers or any other type."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data each datum.","This may be useful when listening to hover, click and selection events.","Note that, *scatter* traces also appends customdata items in the markers","DOM elements"].join(" ")},meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information associated with this trace","that can be used in various text attributes.","Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text`","`rangeselector`, `updatemenues` and `sliders` `label` text","all support `meta`.","To access the trace `meta` values in an attribute in the same trace, simply use","`%{meta[i]}` where `i` is the index or key of the `meta`","item in question.","To access trace `meta` in layout attributes, use","`%{data[n[.meta[i]}` where `i` is the index or key of the `meta`","and `n` is the trace index."].join(" ")},selectedpoints:{valType:"any",editType:"calc",description:["Array containing integer indices of selected points.","Has an effect only for traces that support selections.","Note that an empty array means an empty selection where the `unselected`","are turned on for all points, whereas, any other non-array values means no","selection all where the `selected` and `unselected` styles have no effect."].join(" ")},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:o.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc",description:["The stream id number links a data trace on a plot with a stream.","See https://chart-studio.plotly.com/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc",description:["WARNING: All transforms are deprecated and may be removed from the API in next major version.","An array of operations that manipulate the trace data,","for example filtering or sorting the data arrays."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of some user-driven changes to the trace:","`constraintrange` in `parcoords` traces, as well as some","`editable: true` modifications such as `name` and `colorbar.title`.","Defaults to `layout.uirevision`.","Note that other user-driven trace attribute changes are controlled","by `layout` attributes:","`trace.visible` is controlled by `layout.legend.uirevision`,","`selectedpoints` is controlled by `layout.selectionrevision`,","and `colorbar.(x|y)` (accessible with `config: {editable: true}`)","is controlled by `layout.editrevision`.","Trace changes are tracked by `uid`, which only falls back on trace","index if no `uid` is provided. So if your app can add/remove traces","before the end of the `data` array, such that the same trace has a","different index, you can still preserve user-driven changes if you","give each trace a `uid` that stays with it as it moves."].join(" ")}}},"./node_modules/plotly.js/src/plots/cartesian/align_period.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=o.dateTime2ms,a=o.incrementMonth,s=n("./node_modules/plotly.js/src/constants/numerical.js").ONEAVGMONTH;e.exports=function(e,t,n,o){if("date"!==t.type)return{vals:o};var l=e[n+"periodalignment"];if(!l)return{vals:o};var c,u=e[n+"period"];if(r(u)){if((u=+u)<=0)return{vals:o}}else if("string"==typeof u&&"M"===u.charAt(0)){var d=+u.substring(1);if(!(d>0&&Math.round(d)===d))return{vals:o};c=d}for(var f=t.calendar,h="start"===l,p="end"===l,m=e[n+"period0"],g=i(m,f)||0,v=[],y=[],b=[],x=o.length,_=0;_<x;_++){var w,j,k,T=o[_];if(c){for(w=Math.round((T-g)/(c*s)),k=a(g,c*w,f);k>T;)k=a(k,-c,f);for(;k<=T;)k=a(k,c,f);j=a(k,-c,f)}else{for(k=g+(w=Math.round((T-g)/u))*u;k>T;)k-=u;for(;k<=T;)k+=u;j=k-u}v[_]=h?j:p?k:(j+k)/2,y[_]=j,b[_]=k}return{vals:v,starts:y,ends:b}}},"./node_modules/plotly.js/src/plots/cartesian/attributes.js":function(e,t,n){"use strict";e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's x coordinates and","a 2D cartesian x axis.","If *x* (the default value), the x coordinates refer to","`layout.xaxis`.","If *x2*, the x coordinates refer to `layout.xaxis2`, and so on."].join(" ")},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's y coordinates and","a 2D cartesian y axis.","If *y* (the default value), the y coordinates refer to","`layout.yaxis`.","If *y2*, the y coordinates refer to `layout.yaxis2`, and so on."].join(" ")}}},"./node_modules/plotly.js/src/plots/cartesian/autorange.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/fast-isnumeric/index.js"),i=n("./node_modules/plotly.js/src/lib/index.js"),a=n("./node_modules/plotly.js/src/constants/numerical.js").FP_SAFE,s=n("./node_modules/plotly.js/src/registry.js"),l=n("./node_modules/plotly.js/src/components/drawing/index.js"),c=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),u=c.getFromId,d=c.isLinked;function f(e,t){var n,r,o=[],a=e._fullLayout,s=p(a,t,0),l=p(a,t,1),c=m(e,t),u=c.min,d=c.max;if(0===u.length||0===d.length)return i.simpleMap(t.range,t.r2l);var f=u[0].val,g=d[0].val;for(n=1;n<u.length&&f===g;n++)f=Math.min(f,u[n].val);for(n=1;n<d.length&&f===g;n++)g=Math.max(g,d[n].val);var v=t.autorange,y="reversed"===v||"min reversed"===v||"max reversed"===v;if(!y&&t.range){var b=i.simpleMap(t.range,t.r2l);y=b[1]<b[0]}"reversed"===t.autorange&&(t.autorange=!0);var x,_,w,k,T,A,M=t.rangemode,S="tozero"===M,C="nonnegative"===M,E=t._length,L=E/10,O=0;for(n=0;n<u.length;n++)for(x=u[n],r=0;r<d.length;r++)(A=(_=d[r]).val-x.val-h(t,x.val,_.val))>0&&((T=E-s(x)-l(_))>L?A/T>O&&(w=x,k=_,O=A/T):A/E>O&&(w={val:x.val,nopad:1},k={val:_.val,nopad:1},O=A/E));if(f===g){var R=f-1,I=f+1;if(S)if(0===f)o=[0,1];else{var P=(f>0?d:u).reduce((function(e,t){return Math.max(e,l(t))}),0),D=f/(1-Math.min(.5,P/E));o=f>0?[0,D]:[D,0]}else o=C?[Math.max(0,R),Math.max(1,I)]:[R,I]}else S?(w.val>=0&&(w={val:0,nopad:1}),k.val<=0&&(k={val:0,nopad:1})):C&&(w.val-O*s(w)<0&&(w={val:0,nopad:1}),k.val<=0&&(k={val:1,nopad:1})),O=(k.val-w.val-h(t,x.val,_.val))/(E-s(w)-l(k)),o=[w.val-O*s(w),k.val+O*l(k)];return o=j(o,t),t.limitRange&&t.limitRange(),y&&o.reverse(),i.simpleMap(o,t.l2r||Number)}function h(e,t,n){var r=0;if(e.rangebreaks)for(var o=e.locateBreaks(t,n),i=0;i<o.length;i++){var a=o[i];r+=a.max-a.min}return r}function p(e,t,n){var o=.05*t._length,a=t._anchorAxis||{};if(-1!==(t.ticklabelposition||"").indexOf("inside")||-1!==(a.ticklabelposition||"").indexOf("inside")){var s=t.isReversed();if(!s){var c=i.simpleMap(t.range,t.r2l);s=c[1]<c[0]}s&&(n=!n)}var u=0;return d(e,t._id)||(u=function(e,t,n){var o=0,a="x"===t._id.charAt(0);for(var s in e._plots){var c=e._plots[s];if(t._id===c.xaxis._id||t._id===c.yaxis._id){var u=(a?c.yaxis:c.xaxis)||{};if(-1!==(u.ticklabelposition||"").indexOf("inside")&&(!n&&("left"===u.side||"bottom"===u.side)||n&&("top"===u.side||"right"===u.side))){if(u._vals){var d=i.deg2rad(u._tickAngles[u._id+"tick"]||0),f=Math.abs(Math.cos(d)),h=Math.abs(Math.sin(d));if(!u._vals[0].bb){var p=u._id+"tick";u._selections[p].each((function(e){var t=r.select(this);t.select(".text-math-group").empty()&&(e.bb=l.bBox(t.node()))}))}for(var m=0;m<u._vals.length;m++){var g=u._vals[m].bb;if(g){var v=6+g.width,y=6+g.height;o=Math.max(o,a?Math.max(v*f,y*h):Math.max(y*f,v*h))}}}"inside"===u.ticks&&"inside"===u.ticklabelposition&&(o+=u.ticklen||0)}}}return o}(e,t,n)),o=Math.max(u,o),"domain"===t.constrain&&t._inputDomain&&(o*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0])),function(e){return e.nopad?0:e.pad+(e.extrapad?o:u)}}e.exports={applyAutorangeOptions:j,getAutoRange:f,makePadFn:p,doAutoRange:function(e,t,n){if(t.setScale(),t.autorange){t.range=n?n.slice():f(e,t),t._r=t.range.slice(),t._rl=i.simpleMap(t._r,t.r2l);var r=t._input,o={};o[t._attr+".range"]=t.range,o[t._attr+".autorange"]=t.autorange,s.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,o),r.range=t.range.slice(),r.autorange=t.autorange}var a=t._anchorAxis;if(a&&a.rangeslider){var l=a.rangeslider[t._name];l&&"auto"===l.rangemode&&(l.range=f(e,t)),a._input.rangeslider[t._name]=i.extendFlat({},l)}},findExtremes:function(e,t,n){n||(n={});e._m||e.setScale();var r,i,s,l,c,u,d,f,h,p=[],m=[],y=t.length,x=n.padded||!1,_=n.tozero&&("linear"===e.type||"-"===e.type),w="log"===e.type,j=!1,k=n.vpadLinearized||!1;function T(e){if(Array.isArray(e))return j=!0,function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}var A=T((e._m>0?n.ppadplus:n.ppadminus)||n.ppad||0),M=T((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),S=T(n.vpadplus||n.vpad),C=T(n.vpadminus||n.vpad);if(!j){if(f=1/0,h=-1/0,w)for(r=0;r<y;r++)(i=t[r])<f&&i>0&&(f=i),i>h&&i<a&&(h=i);else for(r=0;r<y;r++)(i=t[r])<f&&i>-a&&(f=i),i>h&&i<a&&(h=i);t=[f,h],y=2}var E={tozero:_,extrapad:x};function L(n){s=t[n],o(s)&&(u=A(n),d=M(n),k?(l=e.c2l(s)-C(n),c=e.c2l(s)+S(n)):(f=s-C(n),h=s+S(n),w&&f<h/10&&(f=h/10),l=e.c2l(f),c=e.c2l(h)),_&&(l=Math.min(0,l),c=Math.max(0,c)),b(l)&&g(p,l,d,E),b(c)&&v(m,c,u,E))}var O=Math.min(6,y);for(r=0;r<O;r++)L(r);for(r=y-1;r>=O;r--)L(r);return{min:p,max:m,opts:n}},concatExtremes:m};function m(e,t,n){var r,o,i,a=t._id,s=e._fullData,l=e._fullLayout,c=[],d=[];function f(e,t){for(r=0;r<t.length;r++){var n=e[t[r]],s=(n._extremes||{})[a];if(!0===n.visible&&s){for(o=0;o<s.min.length;o++)i=s.min[o],g(c,i.val,i.pad,{extrapad:i.extrapad});for(o=0;o<s.max.length;o++)i=s.max[o],v(d,i.val,i.pad,{extrapad:i.extrapad})}}}if(f(s,t._traceIndices),f(l.annotations||[],t._annIndices||[]),f(l.shapes||[],t._shapeIndices||[]),t._matchGroup&&!n)for(var h in t._matchGroup)if(h!==t._id){var p=u(e,h),y=m(e,p,!0),b=t._length/p._length;for(o=0;o<y.min.length;o++)i=y.min[o],g(c,i.val,i.pad*b,{extrapad:i.extrapad});for(o=0;o<y.max.length;o++)i=y.max[o],v(d,i.val,i.pad*b,{extrapad:i.extrapad})}return{min:c,max:d}}function g(e,t,n,r){y(e,t,n,r,x)}function v(e,t,n,r){y(e,t,n,r,_)}function y(e,t,n,r,o){for(var i=r.tozero,a=r.extrapad,s=!0,l=0;l<e.length&&s;l++){var c=e[l];if(o(c.val,t)&&c.pad>=n&&(c.extrapad||!a)){s=!1;break}o(t,c.val)&&c.pad<=n&&(a||!c.extrapad)&&(e.splice(l,1),l--)}if(s){var u=i&&0===t;e.push({val:t,pad:u?0:n,extrapad:!u&&a})}}function b(e){return o(e)&&Math.abs(e)<a}function x(e,t){return e<=t}function _(e,t){return e>=t}function w(e,t,n){return void 0===t||void 0===n||(t=e.d2l(t))<(n=e.d2l(n))}function j(e,t){if(!t||!t.autorangeoptions)return e;var n=e[0],r=e[1],o=t.autorangeoptions.include;if(void 0!==o){var a=t.d2l(n),s=t.d2l(r);i.isArrayOrTypedArray(o)||(o=[o]);for(var l=0;l<o.length;l++){var c=t.d2l(o[l]);a>=c&&(a=c,n=c),s<=c&&(s=c,r=c)}}return[n=function(e,t){var n=t.autorangeoptions;return n&&void 0!==n.minallowed&&w(t,n.minallowed,n.maxallowed)?n.minallowed:n&&void 0!==n.clipmin&&w(t,n.clipmin,n.clipmax)?Math.max(e,t.d2l(n.clipmin)):e}(n,t),r=function(e,t){var n=t.autorangeoptions;return n&&void 0!==n.maxallowed&&w(t,n.minallowed,n.maxallowed)?n.maxallowed:n&&void 0!==n.clipmax&&w(t,n.clipmin,n.clipmax)?Math.min(e,t.d2l(n.clipmax)):e}(r,t)]}},"./node_modules/plotly.js/src/plots/cartesian/autorange_options_defaults.js":function(e,t,n){"use strict";e.exports=function(e,t,n){var r,o;if(n){var i="reversed"===t||"min reversed"===t||"max reversed"===t;r=n[i?1:0],o=n[i?0:1]}var a=e("autorangeoptions.minallowed",null===o?r:void 0),s=e("autorangeoptions.maxallowed",null===r?o:void 0);void 0===a&&e("autorangeoptions.clipmin"),void 0===s&&e("autorangeoptions.clipmax"),e("autorangeoptions.include")}},"./node_modules/plotly.js/src/plots/cartesian/axes.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/fast-isnumeric/index.js"),i=n("./node_modules/plotly.js/src/plots/plots.js"),a=n("./node_modules/plotly.js/src/registry.js"),s=n("./node_modules/plotly.js/src/lib/index.js"),l=s.strTranslate,c=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),u=n("./node_modules/plotly.js/src/components/titles/index.js"),d=n("./node_modules/plotly.js/src/components/color/index.js"),f=n("./node_modules/plotly.js/src/components/drawing/index.js"),h=n("./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js"),p=n("./node_modules/plotly.js/src/plots/cartesian/clean_ticks.js"),m=n("./node_modules/plotly.js/src/constants/numerical.js"),g=m.ONEMAXYEAR,v=m.ONEAVGYEAR,y=m.ONEMINYEAR,b=m.ONEMAXQUARTER,x=m.ONEAVGQUARTER,_=m.ONEMINQUARTER,w=m.ONEMAXMONTH,j=m.ONEAVGMONTH,k=m.ONEMINMONTH,T=m.ONEWEEK,A=m.ONEDAY,M=A/2,S=m.ONEHOUR,C=m.ONEMIN,E=m.ONESEC,L=m.ONEMILLI,O=m.ONEMICROSEC,R=m.MINUS_SIGN,I=m.BADNUM,P={K:"zeroline"},D={K:"gridline",L:"path"},z={K:"minor-gridline",L:"path"},N={K:"tick",L:"path"},F={K:"tick",L:"text"},B={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},U=n("./node_modules/plotly.js/src/constants/alignment.js"),H=U.MID_SHIFT,V=U.CAP_SHIFT,G=U.LINE_SPACING,q=U.OPPOSITE_SIDE,W=e.exports={};W.setConvert=n("./node_modules/plotly.js/src/plots/cartesian/set_convert.js");var Y=n("./node_modules/plotly.js/src/plots/cartesian/axis_autotype.js"),X=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),Z=X.idSort,$=X.isLinked;W.id2name=X.id2name,W.name2id=X.name2id,W.cleanId=X.cleanId,W.list=X.list,W.listIds=X.listIds,W.getFromId=X.getFromId,W.getFromTrace=X.getFromTrace;var K=n("./node_modules/plotly.js/src/plots/cartesian/autorange.js");W.getAutoRange=K.getAutoRange,W.findExtremes=K.findExtremes;function J(e){var t=1e-4*(e[1]-e[0]);return[e[0]-t,e[1]+t]}W.coerceRef=function(e,t,n,r,o,i){var a=r.charAt(r.length-1),l=n._fullLayout._subplots[a+"axis"],c=r+"ref",u={};return o||(o=l[0]||("string"==typeof i?i:i[0])),i||(i=o),l=l.concat(l.map((function(e){return e+" domain"}))),u[c]={valType:"enumerated",values:l.concat(i?"string"==typeof i?[i]:i:[]),dflt:o},s.coerce(e,t,u,c)},W.getRefType=function(e){return void 0===e?e:"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},W.coercePosition=function(e,t,n,r,o,i){var a,l;if("range"!==W.getRefType(r))a=s.ensureNumber,l=n(o,i);else{var c=W.getFromId(t,r);l=n(o,i=c.fraction2r(i)),a=c.cleanPos}e[o]=a(l)},W.cleanPosition=function(e,t,n){return("paper"===n||"pixel"===n?s.ensureNumber:W.getFromId(t,n).cleanPos)(e)},W.redrawComponents=function(e,t){t=t||W.listIds(e);var n=e._fullLayout;function r(r,o,i,s){for(var l=a.getComponentMethod(r,o),c={},u=0;u<t.length;u++)for(var d=n[W.id2name(t[u])][i],f=0;f<d.length;f++){var h=d[f];if(!c[h]&&(l(e,h),c[h]=1,s))return}}r("annotations","drawOne","_annIndices"),r("shapes","drawOne","_shapeIndices"),r("images","draw","_imgIndices",!0),r("selections","drawOne","_selectionIndices")};var Q=W.getDataConversions=function(e,t,n,r){var o,i="x"===n||"y"===n||"z"===n?n:r;if(s.isArrayOrTypedArray(i)){if(o={type:Y(r,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},W.setConvert(o),"category"===o.type)for(var a=0;a<r.length;a++)o.d2c(r[a])}else o=W.getFromTrace(e,t,i);return o?{d2c:o.d2c,c2d:o.c2d}:"ids"===i?{d2c:te,c2d:te}:{d2c:ee,c2d:ee}};function ee(e){return+e}function te(e){return String(e)}function ne(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function re(e,t){return Math.abs(e/t-1)<.001}function oe(e){return+e.substring(1)}function ie(e,t){return e.rangebreaks&&(t=t.filter((function(t){return e.maskBreaks(t.x)!==I}))),t}function ae(e){var t=e._mainAxis,n=[];if(t._vals)for(var r=0;r<t._vals.length;r++)if(!t._vals[r].noTick){var o=t.l2p(t._vals[r].x),i=e.p2l(o),a=W.tickText(e,i);t._vals[r].minor&&(a.minor=!0,a.text=""),n.push(a)}return n=ie(e,n)}function se(e,t){var n=J(s.simpleMap(e.range,e.r2l)),r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),i="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var a=[],l=0;l<=1;l++)if((void 0===t||!(t&&l||!1===t&&!l))&&(!l||e.minor)){var c=l?e.minor.tickvals:e.tickvals,u=l?[]:e.ticktext;if(c){s.isArrayOrTypedArray(u)||(u=[]);for(var d=0;d<c.length;d++){var f=i(c[d]);if(f>r&&f<o){var h=W.tickText(e,f,!1,String(u[d]));l&&(h.minor=!0,h.text=""),a.push(h)}}}}return a=ie(e,a)}W.getDataToCoordFunc=function(e,t,n,r){return Q(e,t,n,r).d2c},W.counterLetter=function(e){var t=e.charAt(0);return"x"===t?"y":"y"===t?"x":void 0},W.minDtick=function(e,t,n,r){-1===["log","category","multicategory"].indexOf(e.type)&&r?void 0===e._minDtick?(e._minDtick=t,e._forceTick0=n):e._minDtick&&((e._minDtick/t+1e-6)%1<2e-6&&((n-e._forceTick0)/t%1+1.000001)%1<2e-6?(e._minDtick=t,e._forceTick0=n):((t/e._minDtick+1e-6)%1>2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},W.saveRangeInitial=function(e,t){for(var n=W.list(e,"",!0),r=!1,o=0;o<n.length;o++){var i=n[o],a=void 0===i._rangeInitial0&&void 0===i._rangeInitial1,s=a||i.range[0]!==i._rangeInitial0||i.range[1]!==i._rangeInitial1,l=i.autorange;(a&&!0!==l||t&&s)&&(i._rangeInitial0="min"===l||"max reversed"===l?void 0:i.range[0],i._rangeInitial1="max"===l||"min reversed"===l?void 0:i.range[1],i._autorangeInitial=l,r=!0)}return r},W.saveShowSpikeInitial=function(e,t){for(var n=W.list(e,"",!0),r=!1,o="on",i=0;i<n.length;i++){var a=n[i],s=void 0===a._showSpikeInitial,l=s||!(a.showspikes===a._showspikes);(s||t&&l)&&(a._showSpikeInitial=a.showspikes,r=!0),"on"!==o||a.showspikes||(o="off")}return e._fullLayout._cartesianSpikesEnabled=o,r},W.autoBin=function(e,t,n,r,i,a){var l,c=s.aggNums(Math.min,null,e),u=s.aggNums(Math.max,null,e);if("category"===t.type||"multicategory"===t.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(a)||1),_dataSpan:u-c};if(i||(i=t.calendar),l="log"===t.type?{type:"linear",range:[c,u]}:{type:t.type,range:s.simpleMap([c,u],t.c2r,0,i),calendar:i},W.setConvert(l),a=a&&p.dtick(a,l.type))l.dtick=a,l.tick0=p.tick0(void 0,l.type,i);else{var d;if(n)d=(u-c)/n;else{var f=s.distinctVals(e),h=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),m=h*s.roundUp(f.minDiff/h,[.9,1.9,4.9,9.9],!0);d=Math.max(m,2*s.stdev(e)/Math.pow(e.length,r?.25:.4)),o(d)||(d=1)}W.autoTicks(l,d)}var g,v=l.dtick,y=W.tickIncrement(W.tickFirst(l),v,"reverse",i);if("number"==typeof v)g=(y=function(e,t,n,r,i){var a=0,s=0,l=0,c=0;function u(t){return(1+100*(t-e)/n.dtick)%100<2}for(var d=0;d<t.length;d++)t[d]%1==0?l++:o(t[d])||c++,u(t[d])&&a++,u(t[d]+n.dtick/2)&&s++;var f=t.length-c;if(l===f&&"date"!==n.type)n.dtick<1?e=r-.5*n.dtick:(e-=.5)+n.dtick<r&&(e+=n.dtick);else if(s<.1*f&&(a>.3*f||u(r)||u(i))){var h=n.dtick/2;e+=e+h<r?h:-h}return e}(y,e,l,c,u))+(1+Math.floor((u-y)/v))*v;else for("M"===l.dtick.charAt(0)&&(y=function(e,t,n,r,o){var i=s.findExactDates(t,o);if(i.exactDays>.8){var a=Number(n.substr(1));i.exactYears>.8&&a%12==0?e=W.tickIncrement(e,"M6","reverse")+1.5*A:i.exactMonths>.8?e=W.tickIncrement(e,"M1","reverse")+15.5*A:e-=M;var l=W.tickIncrement(e,n);if(l<=r)return l}return e}(y,e,v,c,i)),g=y,0;g<=u;)g=W.tickIncrement(g,v,!1,i);return{start:t.c2r(y,0,i),end:t.c2r(g,0,i),size:v,_dataSpan:u-c}},W.prepMinorTicks=function(e,t,n){if(!t.minor.dtick){delete e.dtick;var r,i=t.dtick&&o(t._tmin);if(i){var a=W.tickIncrement(t._tmin,t.dtick,!0);r=[t._tmin,.99*a+.01*t._tmin]}else{var l=s.simpleMap(t.range,t.r2l);r=[l[0],.8*l[0]+.2*l[1]]}if(e.range=s.simpleMap(r,t.l2r),e._isMinor=!0,W.prepTicks(e,n),i){var c=o(t.dtick),u=o(e.dtick),d=c?t.dtick:+t.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);c&&u?ne(d,f)?d===2*T&&f===2*A&&(e.dtick=T):d===2*T&&f===3*A?e.dtick=T:d!==T||(t._input.minor||{}).nticks?re(d/f,2.5)?e.dtick=d/2:e.dtick=d:e.dtick=A:"M"===String(t.dtick).charAt(0)?u?e.dtick="M1":ne(d,f)?d>=12&&2===f&&(e.dtick="M3"):e.dtick=t.dtick:"L"===String(e.dtick).charAt(0)?"L"===String(t.dtick).charAt(0)?ne(d,f)||(e.dtick=re(d/f,2.5)?t.dtick/2:t.dtick):e.dtick="D1":"D2"===e.dtick&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}void 0===t.minor._tick0Init&&(e.tick0=t.tick0)},W.prepTicks=function(e,t){var n=s.simpleMap(e.range,e.r2l,void 0,void 0,t);if("auto"===e.tickmode||!e.dtick){var r,i=e.nticks;i||("category"===e.type||"multicategory"===e.type?(r=e.tickfont?s.bigFont(e.tickfont.size||12):15,i=e._length/r):(r="y"===e._id.charAt(0)?40:80,i=s.constrain(e._length/r,4,9)+1),"radialaxis"===e._name&&(i*=2)),e.minor&&"array"!==e.minor.tickmode||"array"===e.tickmode&&(i*=100),e._roughDTick=Math.abs(n[1]-n[0])/i,W.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&function(e){var t;function n(){return!(o(e.dtick)||"M"!==e.dtick.charAt(0))}var r=n(),i=W.getTickFormat(e);if(i){var a=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(i)||(/%[HI]/.test(i)?(t=S,a&&!r&&e.dtick<S&&(e.dtick=S)):/%p/.test(i)?(t=M,a&&!r&&e.dtick<M&&(e.dtick=M)):/%[Aadejuwx]/.test(i)?(t=A,a&&!r&&e.dtick<A&&(e.dtick=A)):/%[UVW]/.test(i)?(t=T,a&&!r&&e.dtick<T&&(e.dtick=T)):/%[Bbm]/.test(i)?(t=j,a&&(r?oe(e.dtick)<1:e.dtick<k)&&(e.dtick="M1")):/%[q]/.test(i)?(t=x,a&&(r?oe(e.dtick)<3:e.dtick<_)&&(e.dtick="M3")):/%[Yy]/.test(i)&&(t=v,a&&(r?oe(e.dtick)<12:e.dtick<y)&&(e.dtick="M12")))}(r=n())&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0);e._definedDelta=t}(e),e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),"date"===e.type&&e.dtick<.1&&(e.dtick=.1),ge(e)},W.calcTicks=function(e,t){for(var n,r,i,a,l=e.type,c=e.calendar,u=e.ticklabelstep,d="period"===e.ticklabelmode,f=e.range[0]>e.range[1],h=!e.ticklabelindex||s.isArrayOrTypedArray(e.ticklabelindex)?e.ticklabelindex:[e.ticklabelindex],p=s.simpleMap(e.range,e.r2l,void 0,void 0,t),m=p[1]<p[0],R=Math.min(p[0],p[1]),P=Math.max(p[0],p[1]),D=Math.max(1e3,e._length||0),z=[],N=[],F=[],B=[],U=[],H=e.minor&&(e.minor.ticks||e.minor.showgrid),V=1;V>=(H?0:1);V--){var G=!V;V?(e._dtickInit=e.dtick,e._tick0Init=e.tick0):(e.minor._dtickInit=e.minor.dtick,e.minor._tick0Init=e.minor.tick0);var q=V?e:s.extendFlat({},e,e.minor);if(G?W.prepMinorTicks(q,e,t):W.prepTicks(q,t),"array"!==q.tickmode)if("sync"!==q.tickmode){var Y=J(p),X=Y[0],Z=Y[1],$=o(q.dtick),K="log"===l&&!($||"L"===q.dtick.charAt(0)),Q=W.tickFirst(q,t);if(V){if(e._tmin=Q,Q<X!==m)break;"category"!==l&&"multicategory"!==l||(Z=m?Math.max(-.5,Z):Math.min(e._categories.length-.5,Z))}var ee,te,ne=null,re=Q;if(V)$?te=e.dtick:"date"===l?"string"==typeof e.dtick&&"M"===e.dtick.charAt(0)&&(te=j*e.dtick.substring(1)):te=e._roughDTick,ee=Math.round((e.r2l(re)-e.r2l(e.tick0))/te)-1;var oe=q.dtick;for(q.rangebreaks&&q._tick0Init!==q.tick0&&(re=De(re,e),m||(re=W.tickIncrement(re,oe,!m,c))),V&&d&&(re=W.tickIncrement(re,oe,!m,c),ee--);m?re>=Z:re<=Z;re=W.tickIncrement(re,oe,m,c)){if(V&&ee++,q.rangebreaks&&!m){if(re<X)continue;if(q.maskBreaks(re)===I&&De(re,q)>=P)break}if(F.length>D||re===ne)break;ne=re;var ie={value:re};V?(K&&re!==(0|re)&&(ie.simpleLabel=!0),u>1&&ee%u&&(ie.skipLabel=!0),F.push(ie)):(ie.minor=!0,B.push(ie))}}else F=[],z=ae(e);else V?(F=[],z=se(e,!G)):(B=[],N=se(e,!G))}if(!B||B.length<2)h=!1;else{var le=(B[1].value-B[0].value)*(f?-1:1);n=le,r=e.tickformat,(/%f/.test(r)?n>=O:/%L/.test(r)?n>=L:/%[SX]/.test(r)?n>=E:/%M/.test(r)?n>=C:/%[HI]/.test(r)?n>=S:/%p/.test(r)?n>=M:/%[Aadejuwx]/.test(r)?n>=A:/%[UVW]/.test(r)?n>=T:/%[Bbm]/.test(r)?n>=k:/%[q]/.test(r)?n>=_:!/%[Yy]/.test(r)||n>=y)||(h=!1)}if(h){var ce=F.concat(B);d&&F.length&&(ce=ce.slice(1)),(ce=ce.sort((function(e,t){return e.value-t.value})).filter((function(e,t,n){return 0===t||e.value!==n[t-1].value}))).map((function(e,t){return void 0!==e.minor||e.skipLabel?null:t})).filter((function(e){return null!==e})).forEach((function(e){h.map((function(t){var n=e+t;n>=0&&n<ce.length&&s.pushUnique(U,ce[n])}))}))}else U=F;if(H&&!("inside"===e.minor.ticks&&"outside"===e.ticks||"outside"===e.minor.ticks&&"inside"===e.ticks)){for(var ue=F.map((function(e){return e.value})),de=[],fe=0;fe<B.length;fe++){var he=B[fe],pe=he.value;if(-1===ue.indexOf(pe)){for(var me=!1,ge=0;!me&&ge<F.length;ge++)1e7+F[ge].value===1e7+pe&&(me=!0);me||de.push(he)}}B=de}if(d&&function(e,t,n){for(var r=0;r<e.length;r++){var o=e[r].value,i=r,a=r+1;r<e.length-1?(i=r,a=r+1):r>0?(i=r-1,a=r):(i=r,a=r);var s,l=e[i].value,c=e[a].value,u=Math.abs(c-l),d=n||u,f=0;d>=y?f=u>=y&&u<=g?u:v:n===x&&d>=_?f=u>=_&&u<=b?u:x:d>=k?f=u>=k&&u<=w?u:j:n===T&&d>=T?f=T:d>=A?f=A:n===M&&d>=M?f=M:n===S&&d>=S&&(f=S),f>=u&&(f=u,s=!0);var h=o+f;if(t.rangebreaks&&f>0){for(var p=0,m=0;m<84;m++){var C=(m+.5)/84;t.maskBreaks(o*(1-C)+C*h)!==I&&p++}(f*=p/84)||(e[r].drop=!0),s&&u>T&&(f=u)}(f>0||0===r)&&(e[r].periodX=o+f/2)}}(U,e,e._definedDelta),e.rangebreaks){var ve="y"===e._id.charAt(0),ye=1;"auto"===e.tickmode&&(ye=e.tickfont?e.tickfont.size:12);var be=NaN;for(i=F.length-1;i>-1;i--)if(F[i].drop)F.splice(i,1);else{F[i].value=De(F[i].value,e);var xe=e.c2p(F[i].value);(ve?be>xe-ye:be<xe+ye)?F.splice(m?i+1:i,1):be=xe}}Pe(e)&&360===Math.abs(p[1]-p[0])&&F.pop(),e._tmax=(F[F.length-1]||{}).value,e._prevDateHead="",e._inCalcTicks=!0;var _e,we=function(t){t.text="",e._prevDateHead=a};function je(e,t){var n=W.tickText(e,t.value,!1,t.simpleLabel),r=t.periodX;return void 0!==r&&(n.periodX=r,(r>P||r<R)&&(r>P&&(n.periodX=P),r<R&&(n.periodX=R),we(n))),n}for(F=F.concat(B),i=0;i<F.length;i++){var ke=F[i].minor,Te=F[i].value;ke?((_e=h&&-1!==U.indexOf(F[i])?je(e,F[i]):{x:Te}).minor=!0,N.push(_e)):(a=e._prevDateHead,_e=je(e,F[i]),(F[i].skipLabel||h&&-1===U.indexOf(F[i]))&&we(_e),z.push(_e))}return z=z.concat(N),e._inCalcTicks=!1,d&&z.length&&(z[0].noTick=!0),z};var le=[2,5,10],ce=[1,2,3,6,12],ue=[1,2,5,10,15,30],de=[1,2,3,7,14],fe=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],he=[-.301,0,.301,.699,1],pe=[15,30,45,90,180];function me(e,t,n){return t*s.roundUp(e/t,n)}function ge(e){var t=e.dtick;if(e._tickexponent=0,o(t)||"string"==typeof t||(t=1),"category"!==e.type&&"multicategory"!==e.type||(e._tickround=null),"date"===e.type){var n=e.r2l(e.tick0),r=e.l2r(n).replace(/(^-|i)/g,""),i=r.length;if("M"===String(t).charAt(0))i>10||"01-01"!==r.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=A&&i<=10||t>=15*A)e._tickround="d";else if(t>=C&&i<=16||t>=S)e._tickround="M";else if(t>=E&&i<=19||t>=C)e._tickround="S";else{var a=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(o(t)||"L"===t.charAt(0)){var s=e.range.map(e.r2d||Number);o(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===e.minexponent?3:e.minexponent;Math.abs(c)>u&&(be(e.exponentformat)&&!xe(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function ve(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontWeight:r.weight,fontStyle:r.style,fontVariant:r.variant,fontTextcase:r.textcase,fontLineposition:r.lineposition,fontShadow:r.shadow,fontColor:r.color}}W.autoTicks=function(e,t,n){var r;function i(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=s.dateTick0(e.calendar,0);var a=2*t;if(a>v)t/=v,r=i(10),e.dtick="M"+12*me(t,r,le);else if(a>j)t/=j,e.dtick="M"+me(t,1,ce);else if(a>A){if(e.dtick=me(t,A,e._hasDayOfWeekBreaks?[1,2,7,14]:de),!n){var l=W.getTickFormat(e),c="period"===e.ticklabelmode;c&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=s.dateTick0(e.calendar,2):e.tick0=s.dateTick0(e.calendar,1),c&&(e._dowTick0=e.tick0)}}else a>S?e.dtick=me(t,S,ce):a>C?e.dtick=me(t,C,ue):a>E?e.dtick=me(t,E,ue):(r=i(10),e.dtick=me(t,r,le))}else if("log"===e.type){e.tick0=0;var u=s.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(u[1]-u[0])<1){var d=1.5*Math.abs((u[1]-u[0])/t);t=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/d,r=i(10),e.dtick="L"+me(t,r,le)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):Pe(e)?(e.tick0=0,r=1,e.dtick=me(t,r,pe)):(e.tick0=0,r=i(10),e.dtick=me(t,r,le));if(0===e.dtick&&(e.dtick=1),!o(e.dtick)&&"string"!=typeof e.dtick){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}},W.tickIncrement=function(e,t,n,i){var a=n?-1:1;if(o(t))return s.increment(e,a*t);var l=t.charAt(0),c=a*Number(t.substr(1));if("M"===l)return s.incrementMonth(e,c,i);if("L"===l)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===l){var u="D2"===t?he:fe,d=e+.01*a,f=s.roundUp(s.mod(d,1),u,n);return Math.floor(d)+Math.log(r.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},W.tickFirst=function(e,t){var n=e.r2l||Number,i=s.simpleMap(e.range,n,void 0,void 0,t),a=i[1]<i[0],l=a?Math.floor:Math.ceil,c=J(i)[0],u=e.dtick,d=n(e.tick0);if(o(u)){var f=l((c-d)/u)*u+d;return"category"!==e.type&&"multicategory"!==e.type||(f=s.constrain(f,0,e._categories.length-1)),f}var h=u.charAt(0),p=Number(u.substr(1));if("M"===h){for(var m,g,v,y=0,b=d;y<10;){if(((m=W.tickIncrement(b,u,a,e.calendar))-c)*(b-c)<=0)return a?Math.min(b,m):Math.max(b,m);g=(c-(b+m)/2)/(m-b),v=h+(Math.abs(Math.round(g))||1)*p,b=W.tickIncrement(b,v,g<0?!a:a,e.calendar),y++}return s.error("tickFirst did not converge",e),b}if("L"===h)return Math.log(l((Math.pow(10,c)-d)/p)*p+d)/Math.LN10;if("D"===h){var x="D2"===u?he:fe,_=s.roundUp(s.mod(c,1),x,a);return Math.floor(c)+Math.log(r.round(Math.pow(10,_),1))/Math.LN10}throw"unrecognized dtick "+String(u)},W.tickText=function(e,t,n,r){var i,a=ve(e,t),l="array"===e.tickmode,c=n||l,u=e.type,d="category"===u?e.d2l_noadd:e.d2l,f=function(t){var n=e.l2p(t);return n>=0&&n<=e._length?t:null};if(l&&s.isArrayOrTypedArray(e.ticktext)){var h=s.simpleMap(e.range,e.r2l),p=(Math.abs(h[1]-h[0])-(e._lBreaks||0))/1e4;for(i=0;i<e.ticktext.length&&!(Math.abs(t-d(e.tickvals[i]))<p);i++);if(i<e.ticktext.length)return a.text=String(e.ticktext[i]),a.xbnd=[f(a.x-.5),f(a.x+e.dtick-.5)],a}function m(r){if(void 0===r)return!0;if(n)return"none"===r;var o={first:e._tmin,last:e._tmax}[r];return"all"!==r&&t!==o}var g=n?"never":"none"!==e.exponentformat&&m(e.showexponent)?"hide":"";if("date"===u?function(e,t,n,r){var i=e._tickround,a=n&&e.hoverformat||W.getTickFormat(e);(r=!a&&r)&&(i=o(i)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[i]);var l,c=s.formatDate(t.x,a,i,e._dateFormat,e.calendar,e._extraFormat),u=c.indexOf("\n");-1!==u&&(l=c.substr(u+1),c=c.substr(0,u));r&&(void 0===l||"00:00:00"!==c&&"00:00"!==c?8===c.length&&(c=c.replace(/:00$/,"")):(c=l,l=""));if(l)if(n)"d"===i?c+=", "+l:c=l+(c?", "+c:"");else if(e._inCalcTicks&&e._prevDateHead===l){var d=ze(e),f=e._trueSide||e.side;(!d&&"top"===f||d&&"bottom"===f)&&(c+="<br> ")}else e._prevDateHead=l,c+="<br>"+l;t.text=c}(e,a,n,c):"log"===u?function(e,t,n,r,i){var a=e.dtick,l=t.x,c=e.tickformat,u="string"==typeof a&&a.charAt(0);"never"===i&&(i="");r&&"L"!==u&&(a="L3",u="L");if(c||"L"===u)t.text=_e(Math.pow(10,l),e,i,r);else if(o(a)||"D"===u&&s.mod(l+.01,1)<.1){var d=Math.round(l),f=Math.abs(d),h=e.exponentformat;"power"===h||be(h)&&xe(d)?(t.text=0===d?1:1===d?"10":"10<sup>"+(d>1?"":R)+f+"</sup>",t.fontSize*=1.25):("e"===h||"E"===h)&&f>2?t.text="1"+h+(d>0?"+":R)+f:(t.text=_e(Math.pow(10,l),e,"","fakehover"),"D1"===a&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(a);t.text=String(Math.round(Math.pow(10,s.mod(l,1)))),t.fontSize*=.75}if("D1"===e.dtick){var p=String(t.text).charAt(0);"0"!==p&&"1"!==p||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}(e,a,0,c,g):"category"===u?function(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n="");t.text=String(n)}(e,a):"multicategory"===u?function(e,t,n){var r=Math.round(t.x),o=e._categories[r]||[],i=void 0===o[1]?"":String(o[1]),a=void 0===o[0]?"":String(o[0]);n?t.text=a+" - "+i:(t.text=i,t.text2=a)}(e,a,n):Pe(e)?function(e,t,n,r,o){if("radians"!==e.thetaunit||n)t.text=_e(t.x,e,o,r);else{var i=t.x/180;if(0===i)t.text="0";else{var a=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}var n=function(e){for(var n=1;!t(Math.round(e*n)/n,e);)n*=10;return n}(e),r=e*n,o=Math.abs(function e(n,r){return t(r,0)?n:e(r,n%r)}(r,n));return[Math.round(r/o),Math.round(n/o)]}(i);if(a[1]>=100)t.text=_e(s.deg2rad(t.x),e,o,r);else{var l=t.x<0;1===a[1]?1===a[0]?t.text="π":t.text=a[0]+"π":t.text=["<sup>",a[0],"</sup>","","<sub>",a[1],"</sub>","π"].join(""),l&&(t.text=R+t.text)}}}}(e,a,n,c,g):function(e,t,n,r,o){"never"===o?o="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(o="hide");t.text=_e(t.x,e,o,r)}(e,a,0,c,g),r||(e.tickprefix&&!m(e.showtickprefix)&&(a.text=e.tickprefix+a.text),e.ticksuffix&&!m(e.showticksuffix)&&(a.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(a.text)){var v=e.labelalias[a.text];"string"==typeof v&&(a.text=v)}return("boundaries"===e.tickson||e.showdividers)&&(a.xbnd=[f(a.x-.5),f(a.x+e.dtick-.5)]),a},W.hoverLabelText=function(e,t,n){n&&(e=s.extendFlat({},e,{hoverformat:n}));var r=s.isArrayOrTypedArray(t)?t[0]:t,o=s.isArrayOrTypedArray(t)?t[1]:void 0;if(void 0!==o&&o!==r)return W.hoverLabelText(e,r,n)+" - "+W.hoverLabelText(e,o,n);var i="log"===e.type&&r<=0,a=W.tickText(e,e.c2l(i?-r:r),"hover").text;return i?0===r?"0":R+a:a};var ye=["f","p","n","μ","m","","k","M","G","T"];function be(e){return"SI"===e||"B"===e}function xe(e){return e>14||e<-15}function _e(e,t,n,r){var i=e<0,a=t._tickround,l=n||t.exponentformat||"B",c=t._tickexponent,u=W.getTickFormat(t),d=t.separatethousands;if(r){var f={exponentformat:l,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:o(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};ge(f),a=(Number(f._tickround)||0)+4,c=f._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,R);var h,p=Math.pow(10,-a)/2;if("none"===l&&(c=0),(e=Math.abs(e))<p)e="0",i=!1;else{if(e+=p,c&&(e*=Math.pow(10,-c),a+=c),0===a)e=String(Math.floor(e));else if(a<0){e=(e=String(Math.round(e))).substr(0,e.length+a);for(var m=a;m<0;m++)e+="0"}else{var g=(e=String(e)).indexOf(".")+1;g&&(e=e.substr(0,g+a).replace(/\.?0+$/,""))}e=s.numSeparate(e,t._separators,d)}c&&"hide"!==l&&(be(l)&&xe(c)&&(l="power"),h=c<0?R+-c:"power"!==l?"+"+c:String(c),"e"===l||"E"===l?e+=l+h:"power"===l?e+="×10<sup>"+h+"</sup>":"B"===l&&9===c?e+="B":be(l)&&(e+=ye[c/3+5]));return i?R+e:e}function we(e,t){if(e){var n=Object.keys(B).reduce((function(e,n){return-1!==t.indexOf(n)&&B[n].forEach((function(t){e[t]=1})),e}),{});Object.keys(e).forEach((function(t){n[t]||(1===t.length?e[t]=0:delete e[t])}))}}function je(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o];r[i.text2]?r[i.text2].push(i.x):r[i.text2]=[i.x]}for(var a in r)n.push(ve(e,s.interp(r[a],.5),a));return n}function ke(e){return void 0!==e.periodX?e.periodX:e.x}function Te(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}function Ae(e){var t=e.title.font.size,n=(e.title.text.match(c.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(V+n*G):n?t*(n+1)*G:t}function Me(e,t){var n=e.l2p(t);return n>1&&n<e._length-1}function Se(e){var t=r.select(e),n=t.select(".text-math-group");return n.empty()?t.select("text"):n}function Ce(e){return e._id+".automargin"}function Ee(e){return Ce(e)+".mirror"}function Le(e){return e._id+".rangeslider"}function Oe(e,t){for(var n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n])}function Re(e,t,n){var r,o,i=[],a=[],l=e.layout;for(r=0;r<t.length;r++)i.push(W.getFromId(e,t[r]));for(r=0;r<n.length;r++)a.push(W.getFromId(e,n[r]));var c=Object.keys(h),u=["anchor","domain","overlaying","position","side","tickangle","editType"],d=["linear","log"];for(r=0;r<c.length;r++){var f=c[r],p=i[0][f],m=a[0][f],g=!0,v=!1,y=!1;if("_"!==f.charAt(0)&&"function"!=typeof p&&-1===u.indexOf(f)){for(o=1;o<i.length&&g;o++){var b=i[o][f];"type"===f&&-1!==d.indexOf(p)&&-1!==d.indexOf(b)&&p!==b?v=!0:b!==p&&(g=!1)}for(o=1;o<a.length&&g;o++){var x=a[o][f];"type"===f&&-1!==d.indexOf(m)&&-1!==d.indexOf(x)&&m!==x?y=!0:a[o][f]!==m&&(g=!1)}g&&(v&&(l[i[0]._name].type="linear"),y&&(l[a[0]._name].type="linear"),Ie(l,f,i,a,e._fullLayout._dfltTitle))}}for(r=0;r<e._fullLayout.annotations.length;r++){var _=e._fullLayout.annotations[r];-1!==t.indexOf(_.xref)&&-1!==n.indexOf(_.yref)&&s.swapAttrs(l.annotations[r],["?"])}}function Ie(e,t,n,r,o){var i,a=s.nestedProperty,l=a(e[n[0]._name],t).get(),c=a(e[r[0]._name],t).get();for("title"===t&&(l&&l.text===o.x&&(l.text=o.y),c&&c.text===o.y&&(c.text=o.x)),i=0;i<n.length;i++)a(e,n[i]._name+"."+t).set(c);for(i=0;i<r.length;i++)a(e,r[i]._name+"."+t).set(l)}function Pe(e){return"angularaxis"===e._id}function De(e,t){for(var n=t._rangebreaks.length,r=0;r<n;r++){var o=t._rangebreaks[r];if(e>=o.min&&e<o.max)return o.max}return e}function ze(e){return-1!==(e.ticklabelposition||"").indexOf("inside")}function Ne(e,t){ze(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(t)}function Fe(e,t,n,r){var o,i="free"===e.anchor||void 0!==e.overlaying&&!1!==e.overlaying?e.overlaying:e._id;o=r?"right"===e.side?t:-t:t,i in n||(n[i]={}),e.side in n[i]||(n[i][e.side]=0),n[i][e.side]+=o}W.getTickFormat=function(e){var t,n,r,o,i,a,s,l;function c(e){return"string"!=typeof e?e:Number(e.replace("M",""))*j}function u(e,t){var n=["L","D"];if(typeof e==typeof t){if("number"==typeof e)return e-t;var r=n.indexOf(e.charAt(0)),o=n.indexOf(t.charAt(0));return r===o?Number(e.replace(/(L|D)/g,""))-Number(t.replace(/(L|D)/g,"")):r-o}return"number"==typeof e?1:-1}function d(e,t){var n=null===t[0],r=null===t[1],o=u(e,t[0])>=0,i=u(e,t[1])<=0;return(n||o)&&(r||i)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t<e.tickformatstops.length;t++)if((r=e.tickformatstops[t]).enabled&&(o=e.dtick,i=r.dtickrange,a=void 0,s=void 0,l=void 0,a=c||function(e){return e},s=i[0],l=i[1],(!s&&"number"!=typeof s||a(s)<=a(o))&&(!l&&"number"!=typeof l||a(l)>=a(o)))){n=r;break}break;case"log":for(t=0;t<e.tickformatstops.length;t++)if((r=e.tickformatstops[t]).enabled&&d(e.dtick,r.dtickrange)){n=r;break}}return n?n.value:e.tickformat},W.getSubplots=function(e,t){var n=e._fullLayout._subplots,r=n.cartesian.concat(n.gl2d||[]),o=t?W.findSubplotsWithAxis(r,t):r;return o.sort((function(e,t){var n=e.substr(1).split("y"),r=t.substr(1).split("y");return n[0]===r[0]?+n[1]-+r[1]:+n[0]-+r[0]})),o},W.findSubplotsWithAxis=function(e,t){for(var n=new RegExp("x"===t._id.charAt(0)?"^"+t._id+"y":t._id+"$"),r=[],o=0;o<e.length;o++){var i=e[o];n.test(i)&&r.push(i)}return r},W.makeClipPaths=function(e){var t=e._fullLayout;if(!t._hasOnlyLargeSploms){var n,o,i={_offset:0,_length:t.width,_id:""},a={_offset:0,_length:t.height,_id:""},s=W.list(e,"x",!0),l=W.list(e,"y",!0),c=[];for(n=0;n<s.length;n++)for(c.push({x:s[n],y:a}),o=0;o<l.length;o++)0===n&&c.push({x:i,y:l[o]}),c.push({x:s[n],y:l[o]});var u=t._clips.selectAll(".axesclip").data(c,(function(e){return e.x._id+e.y._id}));u.enter().append("clipPath").classed("axesclip",!0).attr("id",(function(e){return"clip"+t._uid+e.x._id+e.y._id})).append("rect"),u.exit().remove(),u.each((function(e){r.select(this).select("rect").attr({x:e.x._offset||0,y:e.y._offset||0,width:e.x._length||1,height:e.y._length||1})}))}},W.draw=function(e,t,n){var r=e._fullLayout;"redraw"===t&&r._paper.selectAll("g.subplot").each((function(e){var t=e[0],n=r._plots[t];if(n){var o=n.xaxis,i=n.yaxis;n.xaxislayer.selectAll("."+o._id+"tick").remove(),n.yaxislayer.selectAll("."+i._id+"tick").remove(),n.xaxislayer.selectAll("."+o._id+"tick2").remove(),n.yaxislayer.selectAll("."+i._id+"tick2").remove(),n.xaxislayer.selectAll("."+o._id+"divider").remove(),n.yaxislayer.selectAll("."+i._id+"divider").remove(),n.minorGridlayer&&n.minorGridlayer.selectAll("path").remove(),n.gridlayer&&n.gridlayer.selectAll("path").remove(),n.zerolinelayer&&n.zerolinelayer.selectAll("path").remove(),r._infolayer.select(".g-"+o._id+"title").remove(),r._infolayer.select(".g-"+i._id+"title").remove()}}));var o=t&&"redraw"!==t?t:W.listIds(e),i=W.list(e).filter((function(e){return e.autoshift})).map((function(e){return e.overlaying}));o.map((function(t){var n=W.getFromId(e,t);if("sync"===n.tickmode&&n.overlaying){var r=o.findIndex((function(e){return e===n.overlaying}));r>=0&&o.unshift(o.splice(r,1).shift())}}));var a={false:{left:0,right:0}};return s.syncOrAsync(o.map((function(t){return function(){if(t){var r=W.getFromId(e,t);n||(n={}),n.axShifts=a,n.overlayingShiftedAx=i;var o=W.drawOne(e,r,n);return r._shiftPusher&&Fe(r,r._fullDepth||0,a,!0),r._r=r.range.slice(),r._rl=s.simpleMap(r._r,r.r2l),o}}})))},W.drawOne=function(e,t,n){var r,o,l,h=(n=n||{}).axShifts||{},p=n.overlayingShiftedAx||[];t.setScale();var m=e._fullLayout,g=t._id,v=g.charAt(0),y=W.counterLetter(g),b=m._plots[t._mainSubplot];if(b){if(t._shiftPusher=t.autoshift||-1!==p.indexOf(t._id)||-1!==p.indexOf(t.overlaying),t._shiftPusher&"free"===t.anchor){var x=t.linewidth/2||0;"inside"===t.ticks&&(x+=t.ticklen),Fe(t,x,h,!0),Fe(t,t.shift||0,h,!1)}!0===n.skipTitle&&void 0!==t._shift||(t._shift=function(e,t){return e.autoshift?t[e.overlaying][e.side]:e.shift||0}(t,h));var _=b[v+"axislayer"],w=t._mainLinePosition,j=w+=t._shift,k=t._mainMirrorPosition,T=t._vals=W.calcTicks(t),A=[t.mirror,j,k].join("_");for(r=0;r<T.length;r++)T[r].axInfo=A;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var M={};if(t.visible){var S,C,E=W.makeTransTickFn(t),L=W.makeTransTickLabelFn(t),O="inside"===t.ticks,R="outside"===t.ticks;if("boundaries"===t.tickson){var I=function(e,t){var n,r=[],o=function(e,t){var n=e.xbnd[t];null!==n&&r.push(s.extendFlat({},e,{x:n}))};if(t.length){for(n=0;n<t.length;n++)o(t[n],0);o(t[n-1],1)}return r}(0,T);C=W.clipEnds(t,I),S=O?C:I}else C=W.clipEnds(t,T),S=O&&"period"!==t.ticklabelmode?C:T;var P,D=t._gridVals=C,z=function(e,t){var n,r,o=[],i=t.length&&t[t.length-1].x<t[0].x,a=function(e,t){var n=e.xbnd[t];null!==n&&o.push(s.extendFlat({},e,{x:n}))};if(e.showdividers&&t.length){for(n=0;n<t.length;n++){var l=t[n];l.text2!==r&&a(l,i?1:0),r=l.text2}a(t[n-1],i?0:1)}return o}(t,T);if(!m._hasOnlyLargeSploms){var N=t._subplotsWith,F={};for(r=0;r<N.length;r++){o=N[r];var B=(l=m._plots[o])[y+"axis"],U=B._mainAxis._id;if(!F[U]){F[U]=1;var Y="x"===v?"M0,"+B._offset+"v"+B._length:"M"+B._offset+",0h"+B._length;W.drawGrid(e,t,{vals:D,counterAxis:B,layer:l.gridlayer.select("."+g),minorLayer:l.minorGridlayer.select("."+g),path:Y,transFn:E}),W.drawZeroLine(e,t,{counterAxis:B,layer:l.zerolinelayer,path:Y,transFn:E})}}}var X=W.getTickSigns(t),Z=W.getTickSigns(t,"minor");if(t.ticks||t.minor&&t.minor.ticks){var $,K,J,Q,ee=W.makeTickPath(t,j,X[2]),te=W.makeTickPath(t,j,Z[2],{minor:!0});if(t._anchorAxis&&t.mirror&&!0!==t.mirror?($=W.makeTickPath(t,k,X[3]),K=W.makeTickPath(t,k,Z[3],{minor:!0}),J=ee+$,Q=te+K):($="",K="",J=ee,Q=te),t.showdividers&&R&&"boundaries"===t.tickson){var ne={};for(r=0;r<z.length;r++)ne[z[r].x]=1;P=function(e){return ne[e.x]?$:J}}else P=function(e){return e.minor?Q:J}}if(W.drawTicks(e,t,{vals:S,layer:_,path:P,transFn:E}),"allticks"===t.mirror){var re=Object.keys(t._linepositions||{});for(r=0;r<re.length;r++){o=re[r],l=m._plots[o];var oe=t._linepositions[o]||[],ie=oe[0],ae=oe[1],se=oe[2],le=W.makeTickPath(t,ie,se?X[0]:Z[0],{minor:se})+W.makeTickPath(t,ae,se?X[1]:Z[1],{minor:se});W.drawTicks(e,t,{vals:S,layer:l[v+"axislayer"],path:le,transFn:E})}}var ce=[];if(ce.push((function(){return W.drawLabels(e,t,{vals:T,layer:_,plotinfo:l,transFn:L,labelFns:W.makeLabelFns(t,j)})})),"multicategory"===t.type){var ue={x:2,y:10}[v];ce.push((function(){var n={x:"height",y:"width"}[v],r=fe()[n]+ue+(t._tickAngles[g+"tick"]?t.tickfont.size*G:0);return W.drawLabels(e,t,{vals:je(t,T),layer:_,cls:g+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:E,labelFns:W.makeLabelFns(t,j+r*X[4])})})),ce.push((function(){return t._depth=X[4]*(fe("tick2")[t.side]-j),function(e,t,n){var r=t._id+"divider",o=n.vals,i=n.layer.selectAll("path."+r).data(o,Te);i.exit().remove(),i.enter().insert("path",":first-child").classed(r,1).classed("crisp",1).call(d.stroke,t.dividercolor).style("stroke-width",f.crispRound(e,t.dividerwidth,1)+"px"),i.attr("transform",n.transFn).attr("d",n.path)}(e,t,{vals:z,layer:_,path:W.makeTickPath(t,j,X[4],{len:t._depth}),transFn:E})}))}else t.title.hasOwnProperty("standoff")&&ce.push((function(){t._depth=X[4]*(fe()[t.side]-j)}));var de=a.getComponentMethod("rangeslider","isVisible")(t);return n.skipTitle||de&&"bottom"===t.side||ce.push((function(){return function(e,t){var n,r=e._fullLayout,o=t._id,i=o.charAt(0),a=t.title.font.size,s=(t.title.text.match(c.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))"bottom"===t.side||"right"===t.side?n=t._depth+t.title.standoff+a*V:"top"!==t.side&&"left"!==t.side||(n=t._depth+t.title.standoff+a*(H+s*G));else{var l=ze(t);if("multicategory"===t.type)n=t._depth;else{var d=1.5*a;l&&(d=.5*a,"outside"===t.ticks&&(d+=t.ticklen)),n=10+d+(t.linewidth?t.linewidth-1:0)}l||(n+="x"===i?"top"===t.side?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):"right"===t.side?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var h,p,m,g,v=W.getPxPosition(e,t);"x"===i?(p=t._offset+t._length/2,m="top"===t.side?v-n:v+n):(m=t._offset+t._length/2,p="right"===t.side?v+n:v-n,h={rotate:"-90",offset:0});if("multicategory"!==t.type){var y=t._selections[t._id+"tick"];if(g={selection:y,side:t.side},y&&y.node()&&y.node().parentNode){var b=f.getTranslate(y.node().parentNode);g.offsetLeft=b.x,g.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(g.pad=0)}return t._titleStandoff=n,u.draw(e,o+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:g,transform:h,attributes:{x:p,y:m,"text-anchor":"middle"}})}(e,t)})),ce.push((function(){var n,r,o,s,l=t.side.charAt(0),c=q[t.side].charAt(0),u=W.getPxPosition(e,t),d=R?t.ticklen:0;(t.automargin||de||t._shiftPusher)&&("multicategory"===t.type?n=fe("tick2"):(n=fe(),"x"===v&&"b"===l&&(t._depth=Math.max(n.width>0?n.bottom-u:0,d))));var f=0,h=0;if(t._shiftPusher&&(f=Math.max(d,n.height>0?"l"===l?u-n.left:n.right-u:0),t.title.text!==m._dfltTitle[v]&&(h=(t._titleStandoff||0)+(t._titleScoot||0),"l"===l&&(h+=Ae(t))),t._fullDepth=Math.max(f,h)),t.automargin){r={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1],g="number"==typeof t._shift?t._shift:0;if("x"===v){if("b"===l?r[l]=t._depth:(r[l]=t._depth=Math.max(n.width>0?u-n.top:0,d),p.reverse()),n.width>0){var b=n.right-(t._offset+t._length);b>0&&(r.xr=1,r.r=b);var x=t._offset-n.left;x>0&&(r.xl=0,r.l=x)}}else if("l"===l?(t._depth=Math.max(n.height>0?u-n.left:0,d),r[l]=t._depth-g):(t._depth=Math.max(n.height>0?n.right-u:0,d),r[l]=t._depth+g,p.reverse()),n.height>0){var _=n.bottom-(t._offset+t._length);_>0&&(r.yb=0,r.b=_);var w=t._offset-n.top;w>0&&(r.yt=1,r.t=w)}r[y]="free"===t.anchor?t.position:t._anchorAxis.domain[p[0]],t.title.text!==m._dfltTitle[v]&&(r[l]+=Ae(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((o={x:0,y:0,r:0,l:0,t:0,b:0})[c]=t.linewidth,t.mirror&&!0!==t.mirror&&(o[c]+=d),!0===t.mirror||"ticks"===t.mirror?o[y]=t._anchorAxis.domain[p[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(o[y]=[t._counterDomainMin,t._counterDomainMax][p[1]]))}de&&(s=a.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),"string"==typeof t.automargin&&(we(r,t.automargin),we(o,t.automargin)),i.autoMargin(e,Ce(t),r),i.autoMargin(e,Ee(t),o),i.autoMargin(e,Le(t),s)})),s.syncOrAsync(ce)}}function fe(e){var n=g+(e||"tick");return M[n]||(M[n]=function(e,t,n){var r,o,i,a;if(e._selections[t].size())r=1/0,o=-1/0,i=1/0,a=-1/0,e._selections[t].each((function(){var e=Se(this),t=f.bBox(e.node().parentNode);r=Math.min(r,t.top),o=Math.max(o,t.bottom),i=Math.min(i,t.left),a=Math.max(a,t.right)}));else{var s=W.makeLabelFns(e,n);r=o=s.yFn({dx:0,dy:0,fontSize:0}),i=a=s.xFn({dx:0,dy:0,fontSize:0})}return{top:r,bottom:o,left:i,right:a,height:o-r,width:a-i}}(t,n,j)),M[n]}},W.getTickSigns=function(e,t){var n=e._id.charAt(0),r={x:"top",y:"right"}[n],o=e.side===r?1:-1,i=[-1,1,o,-o];return"inside"!==(t?(e.minor||{}).ticks:e.ticks)==("x"===n)&&(i=i.map((function(e){return-e}))),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i},W.makeTransTickFn=function(e){return"x"===e._id.charAt(0)?function(t){return l(e._offset+e.l2p(t.x),0)}:function(t){return l(0,e._offset+e.l2p(t.x))}},W.makeTransTickLabelFn=function(e){var t=function(e){var t=e.ticklabelposition||"",n=function(e){return-1!==t.indexOf(e)},r=n("top"),o=n("left"),i=n("right"),a=n("bottom"),s=n("inside"),l=a||o||r||i;if(!l&&!s)return[0,0];var c=e.side,u=l?(e.tickwidth||0)/2:0,d=3,f=e.tickfont?e.tickfont.size:12;(a||r)&&(u+=f*V,d+=(e.linewidth||0)/2);(o||i)&&(u+=(e.linewidth||0)/2,d+=3);s&&"top"===c&&(d-=f*(1-V));(o||r)&&(u=-u);"bottom"!==c&&"right"!==c||(d=-d);return[l?u:0,s?d:0]}(e),n=e.ticklabelshift||0,r=e.ticklabelstandoff||0,o=t[0],i=t[1],a=e.range[0]>e.range[1],s=e.ticklabelposition&&-1!==e.ticklabelposition.indexOf("inside"),c=!s;n&&(n*=a?-1:1);if(r){var u=e.side;r*=s&&("top"===u||"left"===u)||c&&("bottom"===u||"right"===u)?1:-1}return"x"===e._id.charAt(0)?function(t){return l(o+e._offset+e.l2p(ke(t))+n,i+r)}:function(t){return l(i+r,o+e._offset+e.l2p(ke(t))+n)}},W.makeTickPath=function(e,t,n,r){r||(r={});var o=r.minor;if(o&&!e.minor)return"";var i=void 0!==r.len?r.len:o?e.minor.ticklen:e.ticklen,a=e._id.charAt(0),s=(e.linewidth||1)/2;return"x"===a?"M0,"+(t+s*n)+"v"+i*n:"M"+(t+s*n)+",0h"+i*n},W.makeLabelFns=function(e,t,n){var r=e.ticklabelposition||"",i=function(e){return-1!==r.indexOf(e)},a=i("top"),l=i("left"),c=i("right"),u=i("bottom")||l||a||c,d=i("inside"),f="inside"===r&&"inside"===e.ticks||!d&&"outside"===e.ticks&&"boundaries"!==e.tickson,h=0,p=0,m=f?e.ticklen:0;if(d?m*=-1:u&&(m=0),f&&(h+=m,n)){var g=s.deg2rad(n);h=m*Math.cos(g)+1,p=m*Math.sin(g)}e.showticklabels&&(f||e.showline)&&(h+=.2*e.tickfont.size);var v,y,b,x,_,w={labelStandoff:h+=(e.linewidth||1)/2*(d?-1:1),labelShift:p},j=0,k=e.side,T=e._id.charAt(0),A=e.tickangle;if("x"===T)x=(_=!d&&"bottom"===k||d&&"top"===k)?1:-1,d&&(x*=-1),v=p*x,y=t+h*x,b=_?1:-.2,90===Math.abs(A)&&(d?b+=H:b=-90===A&&"bottom"===k?V:90===A&&"top"===k?H:.5,j=H/2*(A/90)),w.xFn=function(e){return e.dx+v+j*e.fontSize},w.yFn=function(e){return e.dy+y+e.fontSize*b},w.anchorFn=function(e,t){if(u){if(l)return"end";if(c)return"start"}return o(t)&&0!==t&&180!==t?t*x<0!==d?"end":"start":"middle"},w.heightFn=function(t,n,r){return n<-60||n>60?-.5*r:"top"===e.side!==d?-r:0};else if("y"===T){if(x=(_=!d&&"left"===k||d&&"right"===k)?1:-1,d&&(x*=-1),v=h,y=p*x,b=0,d||90!==Math.abs(A)||(b=-90===A&&"left"===k||90===A&&"right"===k?V:.5),d){var M=o(A)?+A:0;if(0!==M){var S=s.deg2rad(M);j=Math.abs(Math.sin(S))*V*x,b=0}}w.xFn=function(e){return e.dx+t-(v+e.fontSize*b)*x+j*e.fontSize},w.yFn=function(e){return e.dy+y+e.fontSize*H},w.anchorFn=function(e,t){return o(t)&&90===Math.abs(t)?"middle":_?"end":"start"},w.heightFn=function(t,n,r){return"right"===e.side&&(n*=-1),n<-30?-r:n<30?-.5*r:0}}return w},W.drawTicks=function(e,t,n){n=n||{};var o=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?n.vals.filter((function(e){return e.minor&&!e.noTick})):[]).concat(t.ticks?n.vals.filter((function(e){return!e.minor&&!e.noTick})):[]),a=n.layer.selectAll("path."+o).data(i,Te);a.exit().remove(),a.enter().append("path").classed(o,1).classed("ticks",1).classed("crisp",!1!==n.crisp).each((function(e){return d.stroke(r.select(this),e.minor?t.minor.tickcolor:t.tickcolor)})).style("stroke-width",(function(n){return f.crispRound(e,n.minor?t.minor.tickwidth:t.tickwidth,1)+"px"})).attr("d",n.path).style("display",null),Ne(t,[N]),a.attr("transform",n.transFn)},W.drawGrid=function(e,t,n){if(n=n||{},"sync"!==t.tickmode){var o=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?n.vals.filter((function(e){return e.minor})):[],s=t.showgrid?n.vals.filter((function(e){return!e.minor})):[],l=n.counterAxis;if(l&&W.shouldShowZeroLine(e,t,l))for(var c="array"===t.tickmode,u=0;u<s.length;u++){var h=s[u].x;if(c?!h:Math.abs(h)<t.dtick/100){if(s=s.slice(0,u).concat(s.slice(u+1)),!c)break;u--}}t._gw=f.crispRound(e,t.gridwidth,1);for(var p=i?f.crispRound(e,t.minor.gridwidth,1):0,m=n.layer,g=n.minorLayer,v=1;v>=0;v--){var y=v?m:g;if(y){var b=y.selectAll("path."+o).data(v?s:a,Te);b.exit().remove(),b.enter().append("path").classed(o,1).classed("crisp",!1!==n.crisp),b.attr("transform",n.transFn).attr("d",n.path).each((function(e){return d.stroke(r.select(this),e.minor?t.minor.gridcolor:t.gridcolor||"#ddd")})).style("stroke-dasharray",(function(e){return f.dashStyle(e.minor?t.minor.griddash:t.griddash,e.minor?t.minor.gridwidth:t.gridwidth)})).style("stroke-width",(function(e){return(e.minor?p:t._gw)+"px"})).style("display",null),"function"==typeof n.path&&b.attr("d",n.path)}}Ne(t,[D,z])}},W.drawZeroLine=function(e,t,n){n=n||n;var r=t._id+"zl",o=W.shouldShowZeroLine(e,t,n.counterAxis),i=n.layer.selectAll("path."+r).data(o?[{x:0,id:t._id}]:[]);i.exit().remove(),i.enter().append("path").classed(r,1).classed("zl",1).classed("crisp",!1!==n.crisp).each((function(){n.layer.selectAll("path").sort((function(e,t){return Z(e.id,t.id)}))})),i.attr("transform",n.transFn).attr("d",n.path).call(d.stroke,t.zerolinecolor||d.defaultLine).style("stroke-width",f.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),Ne(t,[P])},W.drawLabels=function(e,t,n){n=n||{};var i=e._fullLayout,a=t._id,u=n.cls||a+"tick",d=n.vals.filter((function(e){return e.text})),h=n.labelFns,p=n.secondary?0:t.tickangle,m=(t._prevTickAngles||{})[u],g=n.layer.selectAll("g."+u).data(t.showticklabels?d:[],Te),v=[];function y(e,i){e.each((function(e){var a=r.select(this),s=a.select(".text-math-group"),u=h.anchorFn(e,i),d=n.transFn.call(a.node(),e)+(o(i)&&0!=+i?" rotate("+i+","+h.xFn(e)+","+(h.yFn(e)-e.fontSize/2)+")":""),p=c.lineCount(a),m=G*e.fontSize,g=h.heightFn(e,o(i)?+i:0,(p-1)*m);if(g&&(d+=l(0,g)),s.empty()){var v=a.select("text");v.attr({transform:d,"text-anchor":u}),v.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var y=f.bBox(s.node()).width*{end:-.5,start:.5}[u];s.attr("transform",d+l(y,0))}}))}g.enter().append("g").classed(u,1).append("text").attr("text-anchor","middle").each((function(t){var n=r.select(this),o=e._promises.length;n.call(c.positionText,h.xFn(t),h.yFn(t)).call(f.font,{family:t.font,size:t.fontSize,color:t.fontColor,weight:t.fontWeight,style:t.fontStyle,variant:t.fontVariant,textcase:t.fontTextcase,lineposition:t.fontLineposition,shadow:t.fontShadow}).text(t.text).call(c.convertToTspans,e),e._promises[o]?v.push(e._promises.pop().then((function(){y(n,p)}))):y(n,p)})),Ne(t,[F]),g.exit().remove(),n.repositionOnUpdate&&g.each((function(e){r.select(this).select("text").call(c.positionText,h.xFn(e),h.yFn(e))})),t._adjustTickLabelsOverflow=function(){var n=t.ticklabeloverflow;if(n&&"allow"!==n){var o=-1!==n.indexOf("hide"),a="x"===t._id.charAt(0),l=0,c=a?e._fullLayout.width:e._fullLayout.height;if(-1!==n.indexOf("domain")){var u=s.simpleMap(t.range,t.r2l);l=t.l2p(u[0])+t._offset,c=t.l2p(u[1])+t._offset}var d=Math.min(l,c),h=Math.max(l,c),p=t.side,m=1/0,v=-1/0;for(var y in g.each((function(e){var n=r.select(this);if(n.select(".text-math-group").empty()){var i=f.bBox(n.node()),s=0;a?(i.right>h||i.left<d)&&(s=1):(i.bottom>h||i.top+(t.tickangle?0:e.fontSize/4)<d)&&(s=1);var l=n.select("text");s?o&&l.style("opacity",0):(l.style("opacity",1),m="bottom"===p||"right"===p?Math.min(m,a?i.top:i.left):-1/0,v="top"===p||"left"===p?Math.max(v,a?i.bottom:i.right):1/0)}})),i._plots){var b=i._plots[y];if(t._id===b.xaxis._id||t._id===b.yaxis._id){var x=a?b.yaxis:b.xaxis;x&&(x["_visibleLabelMin_"+t._id]=m,x["_visibleLabelMax_"+t._id]=v)}}}},t._hideCounterAxisInsideTickLabels=function(e){var n="x"===t._id.charAt(0),o=[];for(var a in i._plots){var s=i._plots[a];t._id!==s.xaxis._id&&t._id!==s.yaxis._id||o.push(n?s.yaxis:s.xaxis)}o.forEach((function(n,o){n&&ze(n)&&(e||[P,z,D,N,F]).forEach((function(e){var a="tick"===e.K&&"text"===e.L&&"period"===t.ticklabelmode,s=i._plots[t._mainSubplot];(e.K===P.K?s.zerolinelayer.selectAll("."+t._id+"zl"):e.K===z.K?s.minorGridlayer.selectAll("."+t._id):e.K===D.K?s.gridlayer.selectAll("."+t._id):s[t._id.charAt(0)+"axislayer"]).each((function(){var i=r.select(this);e.L&&(i=i.selectAll(e.L)),i.each((function(i){var s=t.l2p(a?ke(i):i.x)+t._offset,l=r.select(this);s<t["_visibleLabelMax_"+n._id]&&s>t["_visibleLabelMin_"+n._id]?l.style("display","none"):"tick"!==e.K||o||l.style("display",null)}))}))}))}))},y(g,m+1?m:p);var b=null;t._selections&&(t._selections[u]=g);var x=[function(){return v.length&&Promise.all(v)}];t.automargin&&i._redrawFromAutoMarginCount&&90===m?(b=m,x.push((function(){y(g,m)}))):x.push((function(){if(y(g,p),d.length&&t.autotickangles&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){b=t.autotickangles[0];var e,r=0,o=[],i=1;g.each((function(e){r=Math.max(r,e.fontSize);var n=t.l2p(e.x),a=Se(this),s=f.bBox(a.node());i=Math.max(i,c.lineCount(a)),o.push({top:0,bottom:10,height:10,left:n-s.width/2,right:n+s.width/2+2,width:s.width+2})}));var a=("boundaries"===t.tickson||t.showdividers)&&!n.secondary,l=d.length,u=Math.abs((d[l-1].x-d[0].x)*t._m)/(l-1),h=a?u/2:u,m=a?t.ticklen:1.25*r*i,v=h/Math.sqrt(Math.pow(h,2)+Math.pow(m,2)),x=t.autotickangles.map((function(e){return e*Math.PI/180})),_=x.find((function(e){return Math.abs(Math.cos(e))<=v}));void 0===_&&(_=x.reduce((function(e,t){return Math.abs(Math.cos(e))<Math.abs(Math.cos(t))?e:t}),x[0]));var w=_*(180/Math.PI);if(a){var j=2;for(t.ticks&&(j+=t.tickwidth/2),e=0;e<o.length;e++){var k=d[e].xbnd,T=o[e];if(null!==k[0]&&T.left-t.l2p(k[0])<j||null!==k[1]&&t.l2p(k[1])-T.right<j){b=w;break}}}else{var A=t.ticklabelposition||"",M=function(e){return-1!==A.indexOf(e)},S=M("top"),C=M("left"),E=M("right"),L=M("bottom")||C||S||E?(t.tickwidth||0)+6:0;for(e=0;e<o.length-1;e++)if(s.bBoxIntersect(o[e],o[e+1],L)){b=w;break}}b&&y(g,b)}})),t._tickAngles&&x.push((function(){t._tickAngles[u]=null===b?o(p)?p:0:b}));var _=function(){var e=0,n=0;return g.each((function(r,o){var i,a=Se(this);a.select(".text-math-group").empty()&&(t._vals[o]&&(i=t._vals[o].bb||f.bBox(a.node()),t._vals[o].bb=i),e=Math.max(e,i.width),n=Math.max(n,i.height))})),{labelsMaxW:e,labelsMaxH:n}},w=t._anchorAxis;if(w&&(w.autorange||w.insiderange)&&ze(t)&&!$(i,t._id)&&(i._insideTickLabelsUpdaterange||(i._insideTickLabelsUpdaterange={}),w.autorange&&(i._insideTickLabelsUpdaterange[w._name+".autorange"]=w.autorange,x.push(_)),w.insiderange)){var j=_(),k="y"===t._id.charAt(0)?j.labelsMaxW:j.labelsMaxH;k+=6,"inside"===t.ticklabelposition&&(k+=t.ticklen||0);var T="right"===t.side||"top"===t.side?1:-1,A=1===T?1:0,M=1===T?0:1,S=[];S[M]=w.range[M];var C=w.range,E=w.r2p(C[A]),L=w.r2p(C[M]),O=i._insideTickLabelsUpdaterange[w._name+".range"];if(O){var R=w.r2p(O[A]),I=w.r2p(O[M]),B=T*("y"===t._id.charAt(0)?1:-1);B*E<B*R&&(E=R,S[A]=C[A]=O[A]),B*L>B*I&&(L=I,S[M]=C[M]=O[M])}var U=Math.abs(L-E);U-k>0?k*=1+k/(U-=k):k=0,"y"!==t._id.charAt(0)&&(k=-k),S[A]=w.p2r(w.r2p(C[A])+T*k),"min"===w.autorange||"max reversed"===w.autorange?(S[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):"max"!==w.autorange&&"min reversed"!==w.autorange||(S[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[w._name+".range"]=S}var H=s.syncOrAsync(x);return H&&H.then&&e._promises.push(H),H},W.getPxPosition=function(e,t){var n,r=e._fullLayout._size,o=t._id.charAt(0),i=t.side;return"free"!==t.anchor?n=t._anchorAxis:"x"===o?n={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:"y"===o&&(n={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),"top"===i||"left"===i?n._offset:"bottom"===i||"right"===i?n._offset+n._length:void 0},W.shouldShowZeroLine=function(e,t,n){var r=s.simpleMap(t.range,t.r2l);return r[0]*r[1]<=0&&t.zeroline&&("linear"===t.type||"-"===t.type)&&!(t.rangebreaks&&t.maskBreaks(0)===I)&&(Me(t,0)||!function(e,t,n,r){var o=n._mainAxis;if(!o)return;var i=e._fullLayout,a=t._id.charAt(0),s=W.counterLetter(t._id),l=t._offset+(Math.abs(r[0])<Math.abs(r[1])==("x"===a)?0:t._length);function c(e){if(!e.showline||!e.linewidth)return!1;var n=Math.max((e.linewidth+t.zerolinewidth)/2,1);function r(e){return"number"==typeof e&&Math.abs(e-l)<n}if(r(e._mainLinePosition)||r(e._mainMirrorPosition))return!0;var o=e._linepositions||{};for(var i in o)if(r(o[i][0])||r(o[i][1]))return!0}var u=i._plots[n._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(n);for(var d=W.list(e,s),f=0;f<d.length;f++){var h=d[f];if(h._mainAxis===o&&c(h))return!0}}(e,t,n,r)||function(e,t){for(var n=e._fullData,r=t._mainSubplot,o=t._id.charAt(0),i=0;i<n.length;i++){var s=n[i];if(!0===s.visible&&s.xaxis+s.yaxis===r){if(a.traceIs(s,"bar-like")&&s.orientation==={x:"h",y:"v"}[o])return!0;if(s.fill&&s.fill.charAt(s.fill.length-1)===o)return!0}}return!1}(e,t))},W.clipEnds=function(e,t){return t.filter((function(t){return Me(e,t.x)}))},W.allowAutoMargin=function(e){for(var t=W.list(e,"",!0),n=0;n<t.length;n++){var r=t[n];r.automargin&&(i.allowAutoMargin(e,Ce(r)),r.mirror&&i.allowAutoMargin(e,Ee(r))),a.getComponentMethod("rangeslider","isVisible")(r)&&i.allowAutoMargin(e,Le(r))}},W.swap=function(e,t){for(var n=function(e,t){var n,r,o=[];for(n=0;n<t.length;n++){var i=[],a=e._fullData[t[n]].xaxis,s=e._fullData[t[n]].yaxis;if(a&&s){for(r=0;r<o.length;r++)-1===o[r].x.indexOf(a)&&-1===o[r].y.indexOf(s)||i.push(r);if(i.length){var l,c=o[i[0]];if(i.length>1)for(r=1;r<i.length;r++)l=o[i[r]],Oe(c.x,l.x),Oe(c.y,l.y);Oe(c.x,[a]),Oe(c.y,[s])}else o.push({x:[a],y:[s]})}}return o}(e,t),r=0;r<n.length;r++)Re(e,n[r].x,n[r].y)}},"./node_modules/plotly.js/src/plots/cartesian/axis_autotype.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/constants/numerical.js").BADNUM,a=o.isArrayOrTypedArray,s=o.isDateTime,l=o.cleanNumber,c=Math.round;function u(e,t){return t?r(e):"number"==typeof e}function d(e){return Math.max(1,(e-1)/1e3)}e.exports=function(e,t,n){var o=e,f=n.noMultiCategory;if(a(o)&&!o.length)return"-";if(!f&&function(e){return a(e[0])&&a(e[1])}(o))return"multicategory";if(f&&Array.isArray(o[0])){for(var h=[],p=0;p<o.length;p++)if(a(o[p]))for(var m=0;m<o[p].length;m++)h.push(o[p][m]);o=h}if(function(e,t){for(var n=e.length,o=d(n),i=0,a=0,l={},u=0;u<n;u+=o){var f=c(u),h=e[f],p=String(h);l[p]||(l[p]=1,s(h,t)&&i++,r(h)&&a++)}return i>2*a}(o,t))return"date";var g="strict"!==n.autotypenumbers;return function(e,t){for(var n=e.length,r=d(n),o=0,a=0,s={},u=0;u<n;u+=r){var f=c(u),h=e[f],p=String(h);if(!s[p]){s[p]=1;var m=typeof h;"boolean"===m?a++:(t?l(h)!==i:"number"===m)?o++:"string"===m&&a++}}return a>2*o}(o,g)?"category":function(e,t){for(var n=e.length,r=0;r<n;r++)if(u(e[r],t))return!0;return!1}(o,g)?"linear":"-"}},"./node_modules/plotly.js/src/plots/cartesian/axis_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/lib/index.js"),a=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),s=n("./node_modules/plotly.js/src/plots/array_container_defaults.js"),l=n("./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js"),c=n("./node_modules/plotly.js/src/plots/cartesian/tick_value_defaults.js"),u=n("./node_modules/plotly.js/src/plots/cartesian/tick_mark_defaults.js"),d=n("./node_modules/plotly.js/src/plots/cartesian/tick_label_defaults.js"),f=n("./node_modules/plotly.js/src/plots/cartesian/prefix_suffix_defaults.js"),h=n("./node_modules/plotly.js/src/plots/cartesian/category_order_defaults.js"),p=n("./node_modules/plotly.js/src/plots/cartesian/line_grid_defaults.js"),m=n("./node_modules/plotly.js/src/plots/cartesian/range_defaults.js"),g=n("./node_modules/plotly.js/src/plots/cartesian/set_convert.js"),v=n("./node_modules/plotly.js/src/plots/cartesian/constants.js").WEEKDAY_PATTERN,y=n("./node_modules/plotly.js/src/plots/cartesian/constants.js").HOUR_PATTERN;function b(e,t,n){function o(n,r){return i.coerce(e,t,l.rangebreaks,n,r)}if(o("enabled")){var a=o("bounds");if(a&&a.length>=2){var s,c,u="";if(2===a.length)for(s=0;s<2;s++)if(c=_(a[s])){u=v;break}var d=o("pattern",u);if(d===v)for(s=0;s<2;s++)(c=_(a[s]))&&(t.bounds[s]=a[s]=c-1);if(d)for(s=0;s<2;s++)switch(c=a[s],d){case v:if(!r(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[s]=a[s]=c;break;case y:if(!r(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[s]=a[s]=c}if(!1===n.autorange){var f=n.range;if(f[0]<f[1]){if(a[0]<f[0]&&a[1]>f[1])return void(t.enabled=!1)}else if(a[0]>f[0]&&a[1]<f[1])return void(t.enabled=!1)}}else{var h=o("values");if(!h||!h.length)return void(t.enabled=!1);o("dvalue")}}}e.exports=function(e,t,n,r,y){var x,_=r.letter,w=r.font||{},j=r.splomStash||{},k=n("visible",!r.visibleDflt),T=t._template||{},A=t.type||T.type||"-";"date"===A&&(o.getComponentMethod("calendars","handleDefaults")(e,t,"calendar",r.calendar),r.noTicklabelmode||(x=n("ticklabelmode")));r.noTicklabelindex||"date"!==A&&"linear"!==A||n("ticklabelindex");var M="";r.noTicklabelposition&&"multicategory"!==A||(M=i.coerce(e,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:"period"===x?["outside","inside"]:"x"===_?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),r.noTicklabeloverflow||n("ticklabeloverflow",-1!==M.indexOf("inside")?"hide past domain":"category"===A||"multicategory"===A?"allow":"hide past div"),g(t,y),m(e,t,n,r),h(e,t,n,r),"category"===A||r.noHover||n("hoverformat");var S=n("color"),C=S!==l.color.dflt?S:w.color,E=j.label||y._dfltTitle[_];if(f(e,t,n,A,r),!k)return t;n("title.text",E),i.coerceFont(n,"title.font",w,{overrideDflt:{size:i.bigFont(w.size),color:C}}),c(e,t,n,A);var L=r.hasMinor;if(L&&(a.newContainer(t,"minor"),c(e,t,n,A,{isMinor:!0})),d(e,t,n,A,r),u(e,t,n,r),L){var O=r.isMinor;r.isMinor=!0,u(e,t,n,r),r.isMinor=O}p(e,t,n,{dfltColor:S,bgColor:r.bgColor,showGrid:r.showGrid,hasMinor:L,attributes:l}),!L||t.minor.ticks||t.minor.showgrid||delete t.minor,(t.showline||t.ticks)&&n("mirror");var R,I="multicategory"===A;r.noTickson||"category"!==A&&!I||!t.ticks&&!t.showgrid||(I&&(R="boundaries"),"boundaries"===n("tickson",R)&&delete t.ticklabelposition);I&&(n("showdividers")&&(n("dividercolor"),n("dividerwidth")));if("date"===A)if(s(e,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:b}),t.rangebreaks.length){for(var P=0;P<t.rangebreaks.length;P++)if(t.rangebreaks[P].pattern===v){t._hasDayOfWeekBreaks=!0;break}if(g(t,y),y._has("scattergl")||y._has("splom"))for(var D=0;D<r.data.length;D++){var z=r.data[D];"scattergl"!==z.type&&"splom"!==z.type||(z.visible=!1,i.warn(z.type+" traces do not work on axes with rangebreaks. Setting trace "+z.index+" to `visible: false`."))}}else delete t.rangebreaks;return t};var x={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function _(e){if("string"==typeof e)return x[e.substr(0,3).toLowerCase()]}},"./node_modules/plotly.js/src/plots/cartesian/axis_format_attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/constants/docs.js"),o=r.FORMAT_LINK,i=r.DATE_FORMAT_LINK;function a(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+o+"."].join(" ")}function s(e,t){return a(e,t)+[" And for dates see: "+i+".","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(" ")}e.exports={axisHoverFormat:function(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?a:s)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}},descriptionOnlyNumbers:a,descriptionWithDates:s}},"./node_modules/plotly.js/src/plots/cartesian/axis_ids.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/constants.js");function i(e,t){if(t&&t.length)for(var n=0;n<t.length;n++)if(t[n][e])return!0;return!1}t.id2name=function(e){if("string"==typeof e&&e.match(o.AX_ID_PATTERN)){var t=e.split(" ")[0].substr(1);return"1"===t&&(t=""),e.charAt(0)+"axis"+t}},t.name2id=function(e){if(e.match(o.AX_NAME_PATTERN)){var t=e.substr(5);return"1"===t&&(t=""),e.charAt(0)+t}},t.cleanId=function(e,t,n){var r=/( domain)$/.test(e);if("string"==typeof e&&e.match(o.AX_ID_PATTERN)&&(!t||e.charAt(0)===t)&&(!r||n)){var i=e.split(" ")[0].substr(1).replace(/^0+/,"");return"1"===i&&(i=""),e.charAt(0)+i+(r&&n?" domain":"")}},t.list=function(e,n,r){var o=e._fullLayout;if(!o)return[];var i,a=t.listIds(e,n),s=new Array(a.length);for(i=0;i<a.length;i++){var l=a[i];s[i]=o[l.charAt(0)+"axis"+l.substr(1)]}if(!r){var c=o._subplots.gl3d||[];for(i=0;i<c.length;i++){var u=o[c[i]];n?s.push(u[n+"axis"]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},t.listIds=function(e,t){var n=e._fullLayout;if(!n)return[];var r=n._subplots;return t?r[t+"axis"]:r.xaxis.concat(r.yaxis)},t.getFromId=function(e,n,r){var o=e._fullLayout;return n=void 0===n||"string"!=typeof n?n:n.replace(" domain",""),"x"===r?n=n.replace(/y[0-9]*/,""):"y"===r&&(n=n.replace(/x[0-9]*/,"")),o[t.id2name(n)]},t.getFromTrace=function(e,n,o){var i=e._fullLayout,a=null;if(r.traceIs(n,"gl3d")){var s=n.scene;"scene"===s.substr(0,5)&&(a=i[s][o+"axis"])}else a=t.getFromId(e,n[o+"axis"]||o);return a},t.idSort=function(e,t){var n=e.charAt(0),r=t.charAt(0);return n!==r?n>r?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},t.ref2id=function(e){return!!/^[xyz]/.test(e)&&e.split(" ")[0]},t.isLinked=function(e,t){return i(t,e._axisMatchGroups)||i(t,e._axisConstraintGroups)}},"./node_modules/plotly.js/src/plots/cartesian/category_order_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/array.js").isTypedArraySpec;e.exports=function(e,t,n,o){if("category"===t.type){var i,a=e.categoryarray,s=Array.isArray(a)&&a.length>0||r(a);s&&(i="array");var l,c=n("categoryorder",i);"array"===c&&(l=n("categoryarray")),s||"array"!==c||(c=t.categoryorder="trace"),"trace"===c?t._initialCategories=[]:"array"===c?t._initialCategories=l.slice():(l=function(e,t){var n,r,o,i=t.dataAttr||e._id.charAt(0),a={};if(t.axData)n=t.axData;else for(n=[],r=0;r<t.data.length;r++){var s=t.data[r];s[i+"axis"]===e._id&&n.push(s)}for(r=0;r<n.length;r++){var l=n[r][i];for(o=0;o<l.length;o++){var c=l[o];null!=c&&(a[c]=1)}}return Object.keys(a)}(t,o).sort(),"category ascending"===c?t._initialCategories=l:"category descending"===c&&(t._initialCategories=l.reverse()))}}},"./node_modules/plotly.js/src/plots/cartesian/clean_ticks.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/constants/numerical.js"),a=i.ONEDAY,s=i.ONEWEEK;t.dtick=function(e,t){var n="log"===t,o="date"===t,i="category"===t,s=o?a:1;if(!e)return s;if(r(e))return(e=Number(e))<=0?s:i?Math.max(1,Math.round(e)):o?Math.max(.1,e):e;if("string"!=typeof e||!o&&!n)return s;var l=e.charAt(0),c=e.substr(1);return(c=r(c)?Number(c):0)<=0||!(o&&"M"===l&&c===Math.round(c)||n&&"L"===l||n&&"D"===l&&(1===c||2===c))?s:e},t.tick0=function(e,t,n,i){return"date"===t?o.cleanDate(e,o.dateTick0(n,i%s==0?1:0)):"D1"!==i&&"D2"!==i?r(e)?Number(e):0:void 0}},"./node_modules/plotly.js/src/plots/cartesian/constants.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/regex.js").counter;e.exports={idRegex:{x:r("x","( domain)?"),y:r("y","( domain)?")},attrRegex:r("[xy]axis"),xAxisMatch:r("xaxis"),yAxisMatch:r("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"}},"./node_modules/plotly.js/src/plots/cartesian/constraints.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/autorange.js"),i=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js").id2name,a=n("./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js"),s=n("./node_modules/plotly.js/src/plots/cartesian/scale_zoom.js"),l=n("./node_modules/plotly.js/src/plots/cartesian/set_convert.js"),c=n("./node_modules/plotly.js/src/constants/numerical.js").ALMOST_EQUAL,u=n("./node_modules/plotly.js/src/constants/alignment.js").FROM_BL;function d(e,t,n){var o=n.axIds,s=n.layoutOut,l=n.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,d=t._id,m=d.charAt(0),g=((s._splomAxes||{})[m]||{})[d]||{},v=t._id,y="x"===v.charAt(0);function b(n,o){return r.coerce(e,t,a,n,o)}t._matchGroup=null,t._constraintGroup=null,b("constrain",l?"domain":"range"),r.coerce(e,t,{constraintoward:{valType:"enumerated",values:y?["left","center","right"]:["bottom","middle","top"],dflt:y?"center":"middle"}},"constraintoward");var x,_,w=t.type,j=[];for(x=0;x<o.length;x++){if((_=o[x])!==v)s[i(_)].type===w&&j.push(_)}var k=h(c,v);if(k){var T=[];for(x=0;x<j.length;x++)k[_=j[x]]||T.push(_);j=T}var A,M,S=j.length;S&&(e.matches||g.matches)&&(A=r.coerce(e,t,{matches:{valType:"enumerated",values:j,dflt:-1!==j.indexOf(g.matches)?g.matches:void 0}},"matches"));var C=l&&!y?t.anchor:void 0;if(S&&!A&&(e.scaleanchor||C)&&(M=r.coerce(e,t,{scaleanchor:{valType:"enumerated",values:j.concat([!1])}},"scaleanchor",C)),A){t._matchGroup=p(u,v,A,1);var E=s[i(A)],L=f(s,t)/f(s,E);y!==("x"===A.charAt(0))&&(L=(y?"x":"y")+L),p(c,v,A,L)}else e.matches&&-1!==o.indexOf(e.matches)&&r.warn("ignored "+t._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(M){var O=b("scaleratio");O||(O=t.scaleratio=1),p(c,v,M,O)}else e.scaleanchor&&-1!==o.indexOf(e.scaleanchor)&&r.warn("ignored "+t._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function f(e,t){var n=t.domain;return n||(n=e[i(t.overlaying)].domain),n[1]-n[0]}function h(e,t){for(var n=0;n<e.length;n++)if(e[n][t])return e[n];return null}function p(e,t,n,r){var o,i,a,s,l,c=h(e,t);null===c?((c={})[t]=1,l=e.length,e.push(c)):l=e.indexOf(c);var u=Object.keys(c);for(o=0;o<e.length;o++)if(a=e[o],o!==l&&a[n]){var d=a[n];for(i=0;i<u.length;i++)a[s=u[i]]=m(d,m(r,c[s]));return void e.splice(l,1)}if(1!==r)for(i=0;i<u.length;i++){var f=u[i];c[f]=m(r,c[f])}c[n]=1}function m(e,t){var n,r,o="",i="";"string"==typeof e&&(n=(o=e.match(/^[xy]*/)[0]).length,e=+e.substr(n)),"string"==typeof t&&(r=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(r));var a=e*t;return n||r?n&&r&&o.charAt(0)!==i.charAt(0)?n===r?a:(n>r?o.substr(r):i.substr(n))+a:o+i+e*t:a}function g(e,t){for(var n=t._size,r=n.h/n.w,o={},i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],l=e[s];if("string"==typeof l){var c=l.match(/^[xy]*/)[0],u=c.length;l=+l.substr(u);for(var d="y"===c.charAt(0)?r:1/r,f=0;f<u;f++)l*=d}o[s]=l}return o}function v(e,t){var n=e._inputDomain,r=u[e.constraintoward],o=n[0]+(n[1]-n[0])*r;e.domain=e._input.domain=[o+(n[0]-o)/t,o+(n[1]-o)/t],e.setScale()}t.handleDefaults=function(e,t,n){var o,a,s,c,u,f,h,p,m=n.axIds,g=n.axHasImage,v=t._axisConstraintGroups=[],y=t._axisMatchGroups=[];for(o=0;o<m.length;o++)d(u=e[c=i(m[o])],f=t[c],{axIds:m,layoutOut:t,hasImage:g[c]});function b(e,n){for(o=0;o<e.length;o++)for(s in a=e[o])t[i(s)][n]=a}for(b(y,"_matchGroup"),o=0;o<v.length;o++)for(s in a=v[o])if((f=t[i(s)]).fixedrange){for(var x in a){var _=i(x);!1===(e[_]||{}).fixedrange&&r.warn("fixedrange was specified as false for axis "+_+" but was overridden because another axis in its constraint group has fixedrange true"),t[_].fixedrange=!0}break}for(o=0;o<v.length;){for(s in a=v[o]){(f=t[i(s)])._matchGroup&&Object.keys(f._matchGroup).length===Object.keys(a).length&&(v.splice(o,1),o--);break}o++}b(v,"_constraintGroup");var w=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],j=!1,k=!1;function T(){p=f[h],"rangebreaks"===h&&(k=f._hasDayOfWeekBreaks)}for(o=0;o<y.length;o++){a=y[o];for(var A=0;A<w.length;A++){var M;for(s in h=w[A],p=null,a)if(u=e[c=i(s)],f=t[c],h in f){if(!f.matches&&(M=f,h in u)){T();break}null===p&&h in u&&T()}if("range"===h&&p&&u.range&&2===u.range.length&&null!==u.range[0]&&null!==u.range[1]&&(j=!0),"autorange"===h&&null===p&&j&&(p=!1),null===p&&h in M&&(p=M[h]),null!==p)for(s in a)(f=t[i(s)])[h]="range"===h?p.slice():p,"rangebreaks"===h&&(f._hasDayOfWeekBreaks=k,l(f,t))}}},t.enforce=function(e){var t,n,r,a,l,u,d,f,h=e._fullLayout,p=h._axisConstraintGroups||[];for(t=0;t<p.length;t++){r=g(p[t],h);var m=Object.keys(r),y=1/0,b=0,x=1/0,_={},w={},j=!1;for(n=0;n<m.length;n++)w[a=m[n]]=l=h[i(a)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),_[a]=u=Math.abs(l._m)/r[a],y=Math.min(y,u),"domain"!==l.constrain&&l._constraintShrinkable||(x=Math.min(x,u)),delete l._constraintShrinkable,b=Math.max(b,u),"domain"===l.constrain&&(j=!0);if(!(y>c*b)||j)for(n=0;n<m.length;n++)if(u=_[a=m[n]],d=(l=w[a]).constrain,u!==x||"domain"===d)if(f=u/x,"range"===d)s(l,f);else{var k=l._inputDomain,T=(l.domain[1]-l.domain[0])/(k[1]-k[0]),A=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((f/=T)*A<1){l.domain=l._input.domain=k.slice(),s(l,f);continue}if(A<1&&(l.range=l._input.range=l._inputRange.slice(),f*=A),l.autorange){var M=l.r2l(l.range[0]),S=l.r2l(l.range[1]),C=(M+S)/2,E=C,L=C,O=Math.abs(S-C),R=C-O*f*1.0001,I=C+O*f*1.0001,P=o.makePadFn(h,l,0),D=o.makePadFn(h,l,1);v(l,f);var z,N,F=Math.abs(l._m),B=o.concatExtremes(e,l),U=B.min,H=B.max;for(N=0;N<U.length;N++)(z=U[N].val-P(U[N])/F)>R&&z<E&&(E=z);for(N=0;N<H.length;N++)(z=H[N].val+D(H[N])/F)<I&&z>L&&(L=z);f/=(L-E)/(2*O),E=l.l2r(E),L=l.l2r(L),l.range=l._input.range=M<S?[E,L]:[L,E]}v(l,f)}}},t.getAxisGroup=function(e,t){for(var n=e._axisMatchGroups,r=0;r<n.length;r++){if(n[r][t])return"g"+r}return t},t.clean=function(e,t){if(t._inputDomain){for(var n=!1,r=t._id,o=e._fullLayout._axisConstraintGroups,i=0;i<o.length;i++)if(o[i][r]){n=!0;break}n&&"domain"===t.constrain||(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}}},"./node_modules/plotly.js/src/plots/cartesian/dragbox.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=o.numberFormat,a=n("./node_modules/tinycolor2/cjs/tinycolor.js"),s=n("./node_modules/has-passive-events/index.js"),l=n("./node_modules/plotly.js/src/registry.js"),c=o.strTranslate,u=n("./node_modules/plotly.js/src/lib/svg_text_utils.js"),d=n("./node_modules/plotly.js/src/components/color/index.js"),f=n("./node_modules/plotly.js/src/components/drawing/index.js"),h=n("./node_modules/plotly.js/src/components/fx/index.js"),p=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),m=n("./node_modules/plotly.js/src/lib/setcursor.js"),g=n("./node_modules/plotly.js/src/components/dragelement/index.js"),v=n("./node_modules/plotly.js/src/components/dragelement/helpers.js"),y=v.selectingOrDrawing,b=v.freeMode,x=n("./node_modules/plotly.js/src/constants/alignment.js").FROM_TL,_=n("./node_modules/plotly.js/src/lib/clear_gl_canvases.js"),w=n("./node_modules/plotly.js/src/plot_api/subroutines.js").redrawReglTraces,j=n("./node_modules/plotly.js/src/plots/plots.js"),k=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js").getFromId,T=n("./node_modules/plotly.js/src/components/selections/index.js").prepSelect,A=n("./node_modules/plotly.js/src/components/selections/index.js").clearOutline,M=n("./node_modules/plotly.js/src/components/selections/index.js").selectOnClick,S=n("./node_modules/plotly.js/src/plots/cartesian/scale_zoom.js"),C=n("./node_modules/plotly.js/src/plots/cartesian/constants.js"),E=C.MINDRAG,L=C.MINZOOM,O=!0;function R(e,t,n,r){var i=o.ensureSingle(e.draglayer,t,n,(function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)}));return i.call(m,r),i.node()}function I(e,t,n,o,i,a,s){var l=R(e,"rect",t,n);return r.select(l).call(f.setRect,o,i,a,s),l}function P(e,t){for(var n=0;n<e.length;n++)if(!e[n].fixedrange)return t;return""}function D(e,t,n,r,o){for(var i=0;i<e.length;i++){var a=e[i];if(!a.fixedrange)if(a.rangebreaks){var s="y"===a._id.charAt(0),l=s?1-t:t,c=s?1-n:n;r[a._name+".range[0]"]=a.l2r(a.p2l(l*a._length)),r[a._name+".range[1]"]=a.l2r(a.p2l(c*a._length))}else{var u=a._rl[0],d=a._rl[1]-u;r[a._name+".range[0]"]=a.l2r(u+d*t),r[a._name+".range[1]"]=a.l2r(u+d*n)}}if(o&&o.length){var f=(t+(1-n))/2;D(o,f,1-f,r,[])}}function z(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r.fixedrange){if(r.rangebreaks){var o=r._length,i=(r.p2l(0+t)-r.p2l(0)+(r.p2l(o+t)-r.p2l(o)))/2;r.range=[r.l2r(r._rl[0]-i),r.l2r(r._rl[1]-i)]}else r.range=[r.l2r(r._rl[0]-t/r._m),r.l2r(r._rl[1]-t/r._m)];r.limitRange&&r.limitRange()}}}function N(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function F(e,t,n,r,o){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",c(n,r)).attr("d",o+"Z")}function B(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:d.background,stroke:d.defaultLine,"stroke-width":1,opacity:0}).attr("transform",c(t,n)).attr("d","M0,0Z")}function U(e,t,n,r,o,i){e.attr("d",r+"M"+n.l+","+n.t+"v"+n.h+"h"+n.w+"v-"+n.h+"h-"+n.w+"Z"),H(e,t,o,i)}function H(e,t,n,r){n||(e.transition().style("fill",r>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function V(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function G(e){O&&e.data&&e._context.showTips&&(o.notifier(o._(e,"Double-click to zoom back out"),"long"),O=!1)}function q(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,L)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function W(e,t,n,r,i){for(var a,s,l,c,u=!1,d={},f={},h=(i||{}).xaHash,p=(i||{}).yaHash,m=0;m<t.length;m++){var g=t[m];for(a in n)if(g[a]){for(l in g)i&&(h[l]||p[l])||("x"===l.charAt(0)?n:r)[l]||(d[l]=a);for(s in r)i&&(h[s]||p[s])||!g[s]||(u=!0)}for(s in r)if(g[s])for(c in g)i&&(h[c]||p[c])||("x"===c.charAt(0)?n:r)[c]||(f[c]=s)}u&&(o.extendFlat(d,f),f={});var v={},y=[];for(l in d){var b=k(e,l);y.push(b),v[b._id]=b}var x={},_=[];for(c in f){var w=k(e,c);_.push(w),x[w._id]=w}return{xaHash:v,yaHash:x,xaxes:y,yaxes:_,xLinks:d,yLinks:f,isSubplotConstrained:u}}function Y(e,t){if(s){var n=void 0!==e.onwheel?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(n,e._onwheel),e._onwheel=t,e.addEventListener(n,t,{passive:!1})}else void 0!==e.onwheel?e.onwheel=t:void 0!==e.onmousewheel?e.onmousewheel=t:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",t,{passive:!1}))}function X(e){var t=[];for(var n in e)t.push(e[n]);return t}e.exports={makeDragBox:function(e,t,n,s,c,d,m,v){var O,R,H,Z,$,K,J,Q,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,fe,he,pe,me=e._fullLayout._zoomlayer,ge=m+v==="nsew",ve=1===(m+v).length;function ye(){if(O=t.xaxis,R=t.yaxis,ee=O._length,te=R._length,J=O._offset,Q=R._offset,(H={})[O._id]=O,(Z={})[R._id]=R,m&&v)for(var n=t.overlays,r=0;r<n.length;r++){var o=n[r].xaxis;H[o._id]=o;var i=n[r].yaxis;Z[i._id]=i}$=X(H),K=X(Z),oe=P($,v),ie=P(K,m),ae=!ie&&!oe,re=W(e,e._fullLayout._axisMatchGroups,H,Z);var a=(ne=W(e,e._fullLayout._axisConstraintGroups,H,Z,re)).isSubplotConstrained||re.isSubplotConstrained;se=v||a,le=m||a;var s=e._fullLayout;ce=s._has("scattergl"),ue=s._has("splom"),de=s._has("svg")}n+=t.yaxis._shift,ye();var be=function(e,t,n){if(!e)return"pointer";if("nsew"===e)return n?"":"pan"===t?"move":"crosshair";return e.toLowerCase()+"-resize"}(ie+oe,e._fullLayout.dragmode,ge),xe=I(t,m+v+"drag",be,n,s,c,d);if(ae&&!ge)return xe.onmousedown=null,xe.style.pointerEvents="none",xe;var _e,we,je,ke,Te,Ae,Me,Se,Ce,Ee,Le={element:xe,gd:e,plotinfo:t};function Oe(){Le.plotinfo.selection=!1,A(e)}function Re(e,n){var o=Le.gd;if(o._fullLayout._activeShapeIndex>=0)o._fullLayout._deactivateShape(o);else{var a=o._fullLayout.clickmode;if(V(o),2!==e||ve||Ge(),ge)a.indexOf("select")>-1&&M(n,o,$,K,t.id,Le),a.indexOf("event")>-1&&h.click(o,n,t.id);else if(1===e&&ve){var s=m?R:O,c="s"===m||"w"===v?0:1,d=s._name+".range["+c+"]",f=function(e,t){var n,r=e.range[t],o=Math.abs(r-e.range[1-t]);return"date"===e.type?r:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(o)/Math.LN10))+3,i("."+n+"g")(Math.pow(10,r))):(n=Math.floor(Math.log(Math.abs(r))/Math.LN10)-Math.floor(Math.log(o)/Math.LN10)+4,i("."+String(n)+"g")(r))}(s,c),p="left",g="middle";if(s.fixedrange)return;m?(g="n"===m?"top":"bottom","right"===s.side&&(p="right")):"e"===v&&(p="right"),o._context.showAxisRangeEntryBoxes&&r.select(xe).call(u.makeEditable,{gd:o,immediate:!0,background:o._fullLayout.paper_bgcolor,text:String(f),fill:s.tickfont?s.tickfont.color:"#444",horizontalAlign:p,verticalAlign:g}).on("edit",(function(e){var t=s.d2r(e);void 0!==t&&l.call("_guiRelayout",o,d,t)}))}}}function Ie(t,n){if(e._transitioningWithDuration)return!1;var r=Math.max(0,Math.min(ee,he*t+_e)),o=Math.max(0,Math.min(te,pe*n+we)),i=Math.abs(r-_e),a=Math.abs(o-we);function s(){Me="",je.r=je.l,je.t=je.b,Ce.attr("d","M0,0Z")}if(je.l=Math.min(_e,r),je.r=Math.max(_e,r),je.t=Math.min(we,o),je.b=Math.max(we,o),ne.isSubplotConstrained)i>L||a>L?(Me="xy",i/ee>a/te?(a=i*te/ee,we>o?je.t=we-a:je.b=we+a):(i=a*ee/te,_e>r?je.l=_e-i:je.r=_e+i),Ce.attr("d",q(je))):s();else if(re.isSubplotConstrained)if(i>L||a>L){Me="xy";var l=Math.min(je.l/ee,(te-je.b)/te),c=Math.max(je.r/ee,(te-je.t)/te);je.l=l*ee,je.r=c*ee,je.b=(1-l)*te,je.t=(1-c)*te,Ce.attr("d",q(je))}else s();else!ie||a<Math.min(Math.max(.6*i,E),L)?i<E||!oe?s():(je.t=0,je.b=te,Me="x",Ce.attr("d",function(e,t){return"M"+(e.l-.5)+","+(t-L-.5)+"h-3v"+(2*L+1)+"h3ZM"+(e.r+.5)+","+(t-L-.5)+"h3v"+(2*L+1)+"h-3Z"}(je,we))):!oe||i<Math.min(.6*a,L)?(je.l=0,je.r=ee,Me="y",Ce.attr("d",function(e,t){return"M"+(t-L-.5)+","+(e.t-.5)+"v-3h"+(2*L+1)+"v3ZM"+(t-L-.5)+","+(e.b+.5)+"v3h"+(2*L+1)+"v-3Z"}(je,_e))):(Me="xy",Ce.attr("d",q(je)));je.w=je.r-je.l,je.h=je.b-je.t,Me&&(Ee=!0),e._dragged=Ee,U(Se,Ce,je,Te,Ae,ke),Pe(),e.emit("plotly_relayouting",fe),Ae=!0}function Pe(){fe={},"xy"!==Me&&"x"!==Me||(D($,je.l/ee,je.r/ee,fe,ne.xaxes),He("x",fe)),"xy"!==Me&&"y"!==Me||(D(K,(te-je.b)/te,(te-je.t)/te,fe,ne.yaxes),He("y",fe))}function De(){Pe(),V(e),qe(),G(e)}Le.prepFn=function(t,n,r){var i=Le.dragmode,s=e._fullLayout.dragmode;s!==i&&(Le.dragmode=s),ye(),he=e._fullLayout._invScaleX,pe=e._fullLayout._invScaleY,ae||(ge?t.shiftKey?"pan"===s?s="zoom":y(s)||(s="pan"):t.ctrlKey&&(s="pan"):s="pan"),b(s)?Le.minDrag=1:Le.minDrag=void 0,y(s)?(Le.xaxes=$,Le.yaxes=K,T(t,n,r,Le,s)):(Le.clickFn=Re,y(i)&&Oe(),ae||("zoom"===s?(Le.moveFn=Ie,Le.doneFn=De,Le.minDrag=1,function(t,n,r){var i=xe.getBoundingClientRect();_e=n-i.left,we=r-i.top,e._fullLayout._calcInverseTransform(e);var s=o.apply3DTransform(e._fullLayout._invTransform)(_e,we);_e=s[0],we=s[1],je={l:_e,r:_e,w:0,t:we,b:we,h:0},ke=e._hmpixcount?e._hmlumcount/e._hmpixcount:a(e._fullLayout.plot_bgcolor).getLuminance(),Ae=!1,Me="xy",Ee=!1,Se=F(me,ke,J,Q,Te="M0,0H"+ee+"V"+te+"H0V0"),Ce=B(me,J,Q)}(0,n,r)):"pan"===s&&(Le.moveFn=Ue,Le.doneFn=qe))),e._fullLayout._redrag=function(){var t=e._dragdata;if(t&&t.element===xe){var n=e._fullLayout.dragmode;y(n)||(ye(),We([0,0,ee,te]),Le.moveFn(t.dx,t.dy))}}},g.init(Le);var ze=[0,0,ee,te],Ne=null,Fe=C.REDRAWDELAY,Be=t.mainplot?e._fullLayout._plots[t.mainplot]:t;function Ue(t,n){if(t*=he,n*=pe,!e._transitioningWithDuration){if(e._fullLayout._replotting=!0,"ew"===oe||"ns"===ie){var r=oe?-t:0,o=ie?-n:0;if(re.isSubplotConstrained){if(oe&&ie){var i=(t/ee-n/te)/2;r=-(t=i*ee),o=-(n=-i*te)}ie?r=-o*ee/te:o=-r*te/ee}return oe&&(z($,t),He("x")),ie&&(z(K,n),He("y")),We([r,o,ee,te]),Ve(),void e.emit("plotly_relayouting",fe)}var a,s,l="w"===oe==("n"===ie)?1:-1;if(oe&&ie&&(ne.isSubplotConstrained||re.isSubplotConstrained)){var c=(t/ee+l*n/te)/2;t=c*ee,n=l*c*te}if("w"===oe?t=h($,0,t):"e"===oe?t=h($,1,-t):oe||(t=0),"n"===ie?n=h(K,1,n):"s"===ie?n=h(K,0,-n):ie||(n=0),a="w"===oe?t:0,s="n"===ie?n:0,ne.isSubplotConstrained&&!re.isSubplotConstrained||re.isSubplotConstrained&&oe&&ie&&l>0){var u;if(re.isSubplotConstrained||!oe&&1===ie.length){for(u=0;u<$.length;u++)$[u].range=$[u]._r.slice(),S($[u],1-n/te);a=(t=n*ee/te)/2}if(re.isSubplotConstrained||!ie&&1===oe.length){for(u=0;u<K.length;u++)K[u].range=K[u]._r.slice(),S(K[u],1-t/ee);s=(n=t*te/ee)/2}}re.isSubplotConstrained&&ie||He("x"),re.isSubplotConstrained&&oe||He("y");var d=ee-t,f=te-n;!re.isSubplotConstrained||oe&&ie||(oe?(s=a?0:t*te/ee,f=d*te/ee):(a=s?0:n*ee/te,d=f*ee/te)),We([a,s,d,f]),Ve(),e.emit("plotly_relayouting",fe)}function h(e,t,n){for(var r,o,i=1-t,a=0;a<e.length;a++){var s=e[a];if(!s.fixedrange){r=s,o=s._rl[i]+(s._rl[t]-s._rl[i])/N(n/s._length);var l=s.l2r(o);!1!==l&&void 0!==l&&(s.range[t]=l)}}return r._length*(r._rl[t]-o)/(r._rl[t]-r._rl[i])}}function He(e,t){for(var n=re.isSubplotConstrained?{x:K,y:$}[e]:re[e+"axes"],r=re.isSubplotConstrained?{x:$,y:K}[e]:[],o=0;o<n.length;o++){var i=n[o],a=i._id,s=re.xLinks[a]||re.yLinks[a],l=r[0]||H[s]||Z[s];l&&(t?(t[i._name+".range[0]"]=t[l._name+".range[0]"],t[i._name+".range[1]"]=t[l._name+".range[1]"]):i.range=l.range.slice())}}function Ve(){var n,r=[];function o(e){for(n=0;n<e.length;n++)e[n].fixedrange||r.push(e[n]._id)}function i(e,t){for(n=0;n<e.length;n++){var o=e[n],i=o[t];o.fixedrange||"sync"!==i.tickmode||r.push(i._id)}}for(se&&(o($),o(ne.xaxes),o(re.xaxes),i(t.overlays,"xaxis")),le&&(o(K),o(ne.yaxes),o(re.yaxes),i(t.overlays,"yaxis")),fe={},n=0;n<r.length;n++){var a=r[n],s=k(e,a);p.drawOne(e,s,{skipTitle:!0}),fe[s._name+".range[0]"]=s.range[0],fe[s._name+".range[1]"]=s.range[1]}p.redrawComponents(e,r)}function Ge(){if(!e._transitioningWithDuration){var t=e._context.doubleClick,n=[];oe&&(n=n.concat($)),ie&&(n=n.concat(K)),re.xaxes&&(n=n.concat(re.xaxes)),re.yaxes&&(n=n.concat(re.yaxes));var r,o,i={};if("reset+autosize"===t)for(t="autosize",o=0;o<n.length;o++){var a=(r=n[o])._rangeInitial0,s=r._rangeInitial1,c=void 0!==a||void 0!==s;if(c&&(void 0!==a&&a!==r.range[0]||void 0!==s&&s!==r.range[1])||!c&&!0!==r.autorange){t="reset";break}}if("autosize"===t)for(o=0;o<n.length;o++)(r=n[o]).fixedrange||(i[r._name+".autorange"]=!0);else if("reset"===t)for((oe||ne.isSubplotConstrained)&&(n=n.concat(ne.xaxes)),ie&&!ne.isSubplotConstrained&&(n=n.concat(ne.yaxes)),ne.isSubplotConstrained&&(oe?ie||(n=n.concat(K)):n=n.concat($)),o=0;o<n.length;o++)if(!(r=n[o]).fixedrange){var u=r._name,d=r._autorangeInitial;void 0===r._rangeInitial0&&void 0===r._rangeInitial1?i[u+".autorange"]=!0:void 0===r._rangeInitial0?(i[u+".autorange"]=d,i[u+".range"]=[null,r._rangeInitial1]):void 0===r._rangeInitial1?(i[u+".range"]=[r._rangeInitial0,null],i[u+".autorange"]=d):i[u+".range"]=[r._rangeInitial0,r._rangeInitial1]}e.emit("plotly_doubleclick",null),l.call("_guiRelayout",e,i)}}function qe(){We([0,0,ee,te]),o.syncOrAsync([j.previousPromises,function(){e._fullLayout._replotting=!1,l.call("_guiRelayout",e,fe)}],e)}function We(t){var n,r,i,a,s=e._fullLayout,c=s._plots,u=s._subplots.cartesian;if(ue&&l.subplotsRegistry.splom.drag(e),ce)for(n=0;n<u.length;n++)if(i=(r=c[u[n]]).xaxis,a=r.yaxis,r._scene){i.limitRange&&i.limitRange(),a.limitRange&&a.limitRange();var d=o.simpleMap(i.range,i.r2l),h=o.simpleMap(a.range,a.r2l);r._scene.update({range:[d[0],h[0],d[1],h[1]]})}if((ue||ce)&&(_(e),w(e)),de){var p=t[2]/O._length,g=t[3]/R._length;for(n=0;n<u.length;n++){i=(r=c[u[n]]).xaxis,a=r.yaxis;var y,b,x,j,k=(se||re.isSubplotConstrained)&&!i.fixedrange&&H[i._id],T=(le||re.isSubplotConstrained)&&!a.fixedrange&&Z[a._id];if(k?(y=p,x=v||re.isSubplotConstrained?t[0]:Ze(i,y)):re.xaHash[i._id]?(y=p,x=t[0]*i._length/O._length):re.yaHash[i._id]?(y=g,x="ns"===ie?-t[1]*i._length/R._length:Ze(i,y,{n:"top",s:"bottom"}[ie])):x=Xe(i,y=Ye(i,p,g)),y>1&&(void 0!==i.maxallowed&&se===(i.range[0]<i.range[1]?"e":"w")||void 0!==i.minallowed&&se===(i.range[0]<i.range[1]?"w":"e"))&&(y=1,x=0),T?(b=g,j=m||re.isSubplotConstrained?t[1]:Ze(a,b)):re.yaHash[a._id]?(b=g,j=t[1]*a._length/R._length):re.xaHash[a._id]?(b=p,j="ew"===oe?-t[0]*a._length/O._length:Ze(a,b,{e:"right",w:"left"}[oe])):j=Xe(a,b=Ye(a,p,g)),b>1&&(void 0!==a.maxallowed&&le===(a.range[0]<a.range[1]?"n":"s")||void 0!==a.minallowed&&le===(a.range[0]<a.range[1]?"s":"n"))&&(b=1,j=0),y||b){y||(y=1),b||(b=1);var A=i._offset-x/y,M=a._offset-j/b;r.clipRect.call(f.setTranslate,x,j).call(f.setScale,y,b),r.plot.call(f.setTranslate,A,M).call(f.setScale,1/y,1/b),y===r.xScaleFactor&&b===r.yScaleFactor||(f.setPointGroupScale(r.zoomScalePts,y,b),f.setTextPointsScale(r.zoomScaleTxt,y,b)),f.hideOutsideRangePoints(r.clipOnAxisFalseTraces,r),r.xScaleFactor=y,r.yScaleFactor=b}}}}function Ye(e,t,n){return e.fixedrange?0:se&&ne.xaHash[e._id]?t:le&&(ne.isSubplotConstrained?ne.xaHash:ne.yaHash)[e._id]?n:0}function Xe(e,t){return t?(e.range=e._r.slice(),S(e,t),Ze(e,t)):0}function Ze(e,t,n){return e._length*(1-t)*x[n||e.constraintoward||"middle"]}return m.length*v.length!=1&&Y(xe,(function(t){if(e._context._scrollZoom.cartesian||e._fullLayout._enablescrollzoom){if(Oe(),e._transitioningWithDuration)return t.preventDefault(),void t.stopPropagation();ye(),clearTimeout(Ne);var n=-t.deltaY;if(isFinite(n)||(n=t.wheelDelta/10),isFinite(n)){var r,i=Math.exp(-Math.min(Math.max(n,-20),20)/200),a=Be.draglayer.select(".nsewdrag").node().getBoundingClientRect(),s=(t.clientX-a.left)/a.width,l=(a.bottom-t.clientY)/a.height;if(se){for(v||(s=.5),r=0;r<$.length;r++)c($[r],s,i);He("x"),ze[2]*=i,ze[0]+=ze[2]*s*(1/i-1)}if(le){for(m||(l=.5),r=0;r<K.length;r++)c(K[r],l,i);He("y"),ze[3]*=i,ze[1]+=ze[3]*(1-l)*(1/i-1)}We(ze),Ve(),e.emit("plotly_relayouting",fe),Ne=setTimeout((function(){e._fullLayout&&(ze=[0,0,ee,te],qe())}),Fe),t.preventDefault()}else o.log("Did not find wheel motion attributes: ",t)}function c(e,t,n){if(!e.fixedrange){var r=o.simpleMap(e.range,e.r2l),i=r[0]+(r[1]-r[0])*t;e.range=r.map((function(t){return e.l2r(i+(t-i)*n)}))}}})),xe},makeDragger:R,makeRectDragger:I,makeZoombox:F,makeCorners:B,updateZoombox:U,xyCorners:q,transitionZoombox:H,removeZoombox:V,showDoubleClickNotifier:G,attachWheelEventHandler:Y}},"./node_modules/plotly.js/src/plots/cartesian/graph_interact.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/components/fx/index.js"),i=n("./node_modules/plotly.js/src/components/dragelement/index.js"),a=n("./node_modules/plotly.js/src/lib/setcursor.js"),s=n("./node_modules/plotly.js/src/plots/cartesian/dragbox.js").makeDragBox,l=n("./node_modules/plotly.js/src/plots/cartesian/constants.js").DRAGGERSIZE;t.initInteractions=function(e){var n=e._fullLayout;if(e._context.staticPlot)r.select(e).selectAll(".drag").remove();else if(n._has("cartesian")||n._has("splom")){Object.keys(n._plots||{}).sort((function(e,t){if((n._plots[e].mainplot&&!0)===(n._plots[t].mainplot&&!0)){var r=e.split("y"),o=t.split("y");return r[0]===o[0]?Number(r[1]||1)-Number(o[1]||1):Number(r[0]||1)-Number(o[0]||1)}return n._plots[e].mainplot?1:-1})).forEach((function(t){var r=n._plots[t],a=r.xaxis,c=r.yaxis;if(!r.mainplot){var u=s(e,r,a._offset,c._offset,a._length,c._length,"ns","ew");u.onmousemove=function(n){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===t&&e._fullLayout._plots[t]&&o.hover(e,n,t)},o.hover(e,n,t),e._fullLayout._lasthover=u,e._fullLayout._hoversubplot=t},u.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,i.unhover(e,t))},e._context.showAxisDragHandles&&(s(e,r,a._offset-l,c._offset-l,l,l,"n","w"),s(e,r,a._offset+a._length,c._offset-l,l,l,"n","e"),s(e,r,a._offset-l,c._offset+c._length,l,l,"s","w"),s(e,r,a._offset+a._length,c._offset+c._length,l,l,"s","e"))}if(e._context.showAxisDragHandles){if(t===a._mainSubplot){var d=a._mainLinePosition;"top"===a.side&&(d-=l),s(e,r,a._offset+.1*a._length,d,.8*a._length,l,"","ew"),s(e,r,a._offset,d,.1*a._length,l,"","w"),s(e,r,a._offset+.9*a._length,d,.1*a._length,l,"","e")}if(t===c._mainSubplot){var f=c._mainLinePosition;"right"!==c.side&&(f-=l),s(e,r,f,c._offset+.1*c._length,l,.8*c._length,"ns",""),s(e,r,f,c._offset+.9*c._length,l,.1*c._length,"s",""),s(e,r,f,c._offset,l,.1*c._length,"n","")}}}));var a=n._hoverlayer.node();a.onmousemove=function(t){t.target=e._fullLayout._lasthover,o.hover(e,t,n._hoversubplot)},a.onclick=function(t){t.target=e._fullLayout._lasthover,o.click(e,t)},a.onmousedown=function(t){e._fullLayout._lasthover.onmousedown(t)},t.updateFx(e)}},t.updateFx=function(e){var t=e._fullLayout,n="pan"===t.dragmode?"move":"crosshair";a(t._draggers,n)}},"./node_modules/plotly.js/src/plots/cartesian/include_components.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js");e.exports=function(e){return function(t,n){var a=t[e];if(Array.isArray(a))for(var s=r.subplotsRegistry.cartesian,l=s.idRegex,c=n._subplots,u=c.xaxis,d=c.yaxis,f=c.cartesian,h=n._has("cartesian")||n._has("gl2d"),p=0;p<a.length;p++){var m=a[p];if(o.isPlainObject(m)){var g=i.cleanId(m.xref,"x",!1),v=i.cleanId(m.yref,"y",!1),y=l.x.test(g),b=l.y.test(v);if(y||b){h||o.pushUnique(n._basePlotModules,s);var x=!1;y&&-1===u.indexOf(g)&&(u.push(g),x=!0),b&&-1===d.indexOf(v)&&(d.push(v),x=!0),x&&y&&b&&f.push(g+v)}}}}}},"./node_modules/plotly.js/src/plots/cartesian/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/lib/index.js"),a=n("./node_modules/plotly.js/src/plots/plots.js"),s=n("./node_modules/plotly.js/src/components/drawing/index.js"),l=n("./node_modules/plotly.js/src/plots/get_data.js").getModuleCalcData,c=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),u=n("./node_modules/plotly.js/src/plots/cartesian/constants.js"),d=n("./node_modules/plotly.js/src/constants/xmlns_namespaces.js"),f=i.ensureSingle;function h(e,t,n){return i.ensureSingle(e,t,n,(function(e){e.datum(n)}))}var p=u.zindexSeparator;function m(e,t,n,i,a){for(var c,d,f,h=u.traceLayerClasses,p=e._fullLayout,m=p._zindices,g=p._modules,v=[],y=[],b=0;b<m.length;b++)for(var x=m[b],_=0;_<g.length;_++){var w=(c=g[_]).name,j=o.modules[w].categories;if(j.svg){var k=c.layerName||w+"layer",T=k+(b?Number(b)+1:""),A=c.plot;f=(d=l(n,A,x))[0],n=d[1],f.length&&v.push({i:h.indexOf(k),zorder:b,className:T,plotMethod:A,cdModule:f}),j.zoomScale&&y.push("."+T)}}v.sort((function(e,t){return(e.zorder||0)-(t.zorder||0)||e.i-t.i}));var M=t.plot.selectAll("g.mlayer").data(v,(function(e){return e.className}));if(M.enter().append("g").attr("class",(function(e){return e.className})).classed("mlayer",!0).classed("rangeplot",t.isRangePlot),M.exit().remove(),M.order(),M.each((function(n){var o=r.select(this),l=n.className;n.plotMethod(e,t,n.cdModule,o,i,a),-1===u.clipOnAxisFalseQuery.indexOf("."+l)&&s.setClipUrl(o,t.layerClipId,e)})),p._has("scattergl")&&(c=o.getModule("scattergl"),f=l(n,c)[0],c.plot(e,t,f)),!e._context.staticPlot&&(t._hasClipOnAxisFalse&&(t.clipOnAxisFalseTraces=t.plot.selectAll(u.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),y.length)){var S=t.plot.selectAll(y.join(",")).selectAll(".trace");t.zoomScalePts=S.selectAll("path.point"),t.zoomScaleTxt=S.selectAll(".textpoint")}}function g(e,t){var n=t.plotgroup,r=t.id,o=-1!==r.indexOf(p),i=u.layerValue2layerClass[t.xaxis.layer],a=u.layerValue2layerClass[t.yaxis.layer],s=e._fullLayout._hasOnlyLargeSploms;if(t.mainplot){var l=t.mainplotinfo,d=l.plotgroup,m=r+"-x",g=r+"-y";t.minorGridlayer=l.minorGridlayer,t.gridlayer=l.gridlayer,t.zerolinelayer=l.zerolinelayer,f(l.overlinesBelow,"path",m),f(l.overlinesBelow,"path",g),f(l.overaxesBelow,"g",m),f(l.overaxesBelow,"g",g),t.plot=f(l.overplot,"g",r),f(l.overlinesAbove,"path",m),f(l.overlinesAbove,"path",g),f(l.overaxesAbove,"g",m),f(l.overaxesAbove,"g",g),t.xlines=d.select(".overlines-"+i).select("."+m),t.ylines=d.select(".overlines-"+a).select("."+g),t.xaxislayer=d.select(".overaxes-"+i).select("."+m),t.yaxislayer=d.select(".overaxes-"+a).select("."+g)}else if(s)t.xlines=f(n,"path","xlines-above"),t.ylines=f(n,"path","ylines-above"),t.xaxislayer=f(n,"g","xaxislayer-above"),t.yaxislayer=f(n,"g","yaxislayer-above");else{if(!o){var v=f(n,"g","layer-subplot");t.shapelayer=f(v,"g","shapelayer"),t.imagelayer=f(v,"g","imagelayer"),t.minorGridlayer=f(n,"g","minor-gridlayer"),t.gridlayer=f(n,"g","gridlayer"),t.zerolinelayer=f(n,"g","zerolinelayer");var y=f(n,"g","layer-between");t.shapelayerBetween=f(y,"g","shapelayer"),t.imagelayerBetween=f(y,"g","imagelayer"),f(n,"path","xlines-below"),f(n,"path","ylines-below"),t.overlinesBelow=f(n,"g","overlines-below"),f(n,"g","xaxislayer-below"),f(n,"g","yaxislayer-below"),t.overaxesBelow=f(n,"g","overaxes-below")}t.overplot=f(n,"g","overplot"),t.plot=f(t.overplot,"g",r),o||(t.xlines=f(n,"path","xlines-above"),t.ylines=f(n,"path","ylines-above"),t.overlinesAbove=f(n,"g","overlines-above"),f(n,"g","xaxislayer-above"),f(n,"g","yaxislayer-above"),t.overaxesAbove=f(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+i),t.ylines=n.select(".ylines-"+a),t.xaxislayer=n.select(".xaxislayer-"+i),t.yaxislayer=n.select(".yaxislayer-"+a))}o||(s||(h(t.minorGridlayer,"g",t.xaxis._id),h(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map((function(e){return e[0]})).sort(c.idSort),h(t.gridlayer,"g",t.xaxis._id),h(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map((function(e){return e[0]})).sort(c.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function v(e,t){if(e){var n={};for(var o in e.each((function(e){var o=e[0];r.select(this).remove(),y(o,t),n[o]=!0})),t._plots)for(var i=t._plots[o].overlays||[],a=0;a<i.length;a++){var s=i[a];n[s.id]&&s.plot.selectAll(".trace").remove()}}}function y(e,t){t._draggers.selectAll("g."+e).remove(),t._defs.select("#clip"+t._uid+e+"plot").remove()}t.name="cartesian",t.attr=["xaxis","yaxis"],t.idRoot=["x","y"],t.idRegex=u.idRegex,t.attrRegex=u.attrRegex,t.attributes=n("./node_modules/plotly.js/src/plots/cartesian/attributes.js"),t.layoutAttributes=n("./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js"),t.supplyLayoutDefaults=n("./node_modules/plotly.js/src/plots/cartesian/layout_defaults.js"),t.transitionAxes=n("./node_modules/plotly.js/src/plots/cartesian/transition_axes.js"),t.finalizeSubplots=function(e,t){var n,r,o,a=t._subplots,s=a.xaxis,l=a.yaxis,d=a.cartesian,f=d.concat(a.gl2d||[]),h={},p={};for(n=0;n<f.length;n++){var m=f[n].split("y");h[m[0]]=1,p["y"+m[1]]=1}for(n=0;n<s.length;n++)h[r=s[n]]||(o=(e[c.id2name(r)]||{}).anchor,u.idRegex.y.test(o)||(o="y"),d.push(r+o),f.push(r+o),p[o]||(p[o]=1,i.pushUnique(l,o)));for(n=0;n<l.length;n++)p[o=l[n]]||(r=(e[c.id2name(o)]||{}).anchor,u.idRegex.x.test(r)||(r="x"),d.push(r+o),f.push(r+o),h[r]||(h[r]=1,i.pushUnique(s,r)));if(!f.length){for(var g in r="",o="",e){if(u.attrRegex.test(g))"x"===g.charAt(0)?(!r||+g.substr(5)<+r.substr(5))&&(r=g):(!o||+g.substr(5)<+o.substr(5))&&(o=g)}r=r?c.name2id(r):"x",o=o?c.name2id(o):"y",s.push(r),l.push(o),d.push(r+o)}},t.plot=function(e,t,n,r){var o,a=e._fullLayout,s=a._subplots.cartesian,l=e.calcdata;if(!Array.isArray(t))for(t=[],o=0;o<l.length;o++)t.push(o);for(var c=a._zindices,u=0;u<c.length;u++){var d=c[u];for(o=0;o<s.length;o++){var f=s[o],h=a._plots[f];if(u>0){var g=h.id;if(-1!==g.indexOf(p))continue;g+=p+(u+1),h=i.extendFlat({},h,{id:g,plot:a._cartesianlayer.selectAll(".subplot").select("."+g)})}for(var v,y=[],b=0;b<l.length;b++){var x=l[b],_=x[0].trace;d===(_.zorder||0)&&(_.xaxis+_.yaxis===f&&((-1!==t.indexOf(_.index)||_.carpet)&&(v&&v[0].trace.xaxis+v[0].trace.yaxis===f&&-1!==["tonextx","tonexty","tonext"].indexOf(_.fill)&&-1===y.indexOf(v)&&y.push(v),y.push(x)),v=x))}m(e,h,y,n,r)}}},t.clean=function(e,t,n,r){var o,i,a,s=r._plots||{},l=t._plots||{},u=r._subplots||{};if(r._hasOnlyLargeSploms&&!t._hasOnlyLargeSploms)for(a in s)(o=s[a]).plotgroup&&o.plotgroup.remove();var d=r._has&&r._has("gl"),f=t._has&&t._has("gl");if(d&&!f)for(a in s)(o=s[a])._scene&&o._scene.destroy();if(u.xaxis&&u.yaxis){var h=c.listIds({_fullLayout:r});for(i=0;i<h.length;i++){var m=h[i];t[c.id2name(m)]||r._infolayer.selectAll(".g-"+m+"title").remove()}}var g=r._has&&r._has("cartesian"),b=t._has&&t._has("cartesian");if(g&&!b)v(r._cartesianlayer.selectAll(".subplot"),r),r._defs.selectAll(".axesclip").remove(),delete r._axisConstraintGroups,delete r._axisMatchGroups;else if(u.cartesian)for(i=0;i<u.cartesian.length;i++){var x=u.cartesian[i];if(-1===x.indexOf(p)&&!l[x]){var _="."+x+",."+x+"-x,."+x+"-y";r._cartesianlayer.selectAll(_).remove(),y(x,r)}}},t.drawFramework=function(e){var t,n=e._fullLayout,o=e.calcdata,a={};for(t=0;t<o.length;t++){var s=o[t][0],l=s.trace.zorder||0;a[l]||(a[l]=[]),a[l].push(s)}var c=Object.keys(a).map(Number).sort(i.sorterAsc);c.length||(c=[0]),n._zindices=c;var u=function(e){var t,n,r,o,i,a,s=e._fullLayout,l=s._zindices.length,c=s._subplots.cartesian,u=c.length,d=[],f=[];for(t=0;t<u;t++){r=c[t],o=s._plots[r],i=o.xaxis,a=o.yaxis;var h=i._mainAxis,m=a._mainAxis,g=h._id+m._id,v=s._plots[g];o.overlays=[],g!==r&&v?(o.mainplot=g,o.mainplotinfo=v,f.push(r)):(o.mainplot=void 0,o.mainplotinfo=void 0,d.push(r))}for(t=0;t<f.length;t++)r=f[t],(o=s._plots[r]).mainplotinfo.overlays.push(o);var y=d.concat(f),b=[];for(t=0;t<u;t++){r=y[t],o=s._plots[r],i=o.xaxis,a=o.yaxis;for(var x=[],_=1;_<=l;_++){var w="";for(_>1&&(w+=p+_),x.push(r+w),n=0;n<o.overlays.length;n++)x.push(o.overlays[n].id+w)}x=x.concat([i.layer,a.layer,i.overlaying||"",a.overlaying||""]),b.push(x)}return b}(e),d=u.length,h=[];for(t=0;t<d;t++)h[t]=u[t].slice();for(var m=1;m<c.length;m++){var y=[];for(t=0;t<d;t++)y[t]=u[t].slice(),y[t][0]+=p+(m+1);h=h.concat(y)}var b=n._cartesianlayer.selectAll(".subplot").data(h,String);b.enter().append("g").attr("class",(function(e){return"subplot "+e[0]})),b.order(),b.exit().call(v,n),b.each((function(t){var o=t[0],a=o.indexOf(p),s=-1!==a,l=s?o.slice(0,a):o,c=n._plots[o];c||(c=i.extendFlat({},n._plots[l]))&&(c.id=o,n._plots[o]=c,n._subplots.cartesian.push(o)),c&&(c.plotgroup=r.select(this),g(e,c),s||(c.draglayer=f(n._draggers,"g",o)))}))},t.rangePlot=function(e,t,n){g(e,t),m(e,t,n),a.style(e)},t.toSVG=function(e){var t=e._fullLayout._glimages,n=r.select(e).selectAll(".svg-container");n.filter((function(e,t){return t===n.size()-1})).selectAll(".gl-canvas-context, .gl-canvas-focus").each((function(){var e=this.toDataURL("image/png");t.append("svg:image").attr({xmlns:d.svg,"xlink:href":e,preserveAspectRatio:"none",x:0,y:0,width:this.style.width,height:this.style.height})}))},t.updateFx=n("./node_modules/plotly.js/src/plots/cartesian/graph_interact.js").updateFx},"./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/font_attributes.js"),o=n("./node_modules/plotly.js/src/components/color/attributes.js"),i=n("./node_modules/plotly.js/src/components/drawing/attributes.js").dash,a=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,s=n("./node_modules/plotly.js/src/plot_api/plot_template.js").templatedArray,l=n("./node_modules/plotly.js/src/plots/cartesian/axis_format_attributes.js").descriptionWithDates,c=n("./node_modules/plotly.js/src/constants/numerical.js").ONEDAY,u=n("./node_modules/plotly.js/src/plots/cartesian/constants.js"),d=u.HOUR_PATTERN,f=u.WEEKDAY_PATTERN,h={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0},description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},p=a({},h,{values:h.values.slice().concat(["sync"]),description:[h.description,"If *sync*, the number of ticks will sync with the overlayed axis","set by `overlaying` property."].join(" ")});function m(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")}}var g={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L<f>* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},v={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L<f>*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M<n>* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},y={valType:"data_array",editType:"ticks",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},b={valType:"enumerated",values:["outside","inside",""],editType:"ticks",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")};function x(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the tick length (in px)."};return e||(t.dflt=5),t}function _(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the tick width (in px)."};return e||(t.dflt=1),t}var w={valType:"color",dflt:o.defaultLine,editType:"ticks",description:"Sets the tick color."},j={valType:"color",dflt:o.lightLine,editType:"ticks",description:"Sets the color of the grid lines."};function k(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the width (in px) of the grid lines."};return e||(t.dflt=1),t}var T=a({},i,{editType:"ticks"}),A={valType:"boolean",editType:"ticks",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")};e.exports={visible:{valType:"boolean",editType:"plot",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:o.defaultLine,editType:"ticks",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{text:{valType:"string",editType:"ticks",description:["Sets the title of this axis.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:r({editType:"ticks",description:["Sets this axis' title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),standoff:{valType:"number",min:0,editType:"ticks",description:["Sets the standoff distance (in px) between the axis labels and the title text","The default value is a function of the axis tick labels, the title `font.size`","and the axis `linewidth`.","Note that the axis title position is always constrained within the margins,","so the actual standoff distance is always less than the set or default value.","By setting `standoff` and turning on `automargin`, plotly.js will push the","margins to fit the axis title at given standoff distance."].join(" ")},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0,description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","Defaults to layout.autotypenumbers."].join(" ")},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},description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided and it has a value for both the","lower and upper bound, `autorange` is set to *false*.","Using *min* applies autorange only to set the minimum.","Using *max* applies autorange only to set the maximum.","Using *min reversed* applies autorange only to set the minimum on a reversed axis.","Using *max reversed* applies autorange only to set the maximum on a reversed axis.","Using *reversed* applies autorange on both ends and reverses the axis direction."].join(" ")},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Use this value exactly as autorange minimum."].join(" ")},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Use this value exactly as autorange maximum."].join(" ")},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Clip autorange minimum if it goes beyond this value.","Has no effect when `autorangeoptions.minallowed` is provided."].join(" ")},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Clip autorange maximum if it goes beyond this value.","Has no effect when `autorangeoptions.maxallowed` is provided."].join(" ")},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Ensure this value is included in autorange."].join(" ")},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data.","Applies only to linear axes."].join(" ")},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,description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears.","Leaving either or both elements `null` impacts the default `autorange`."].join(" ")},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1},description:["Determines the minimum range of this axis."].join(" ")},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1},description:["Determines the maximum range of this axis."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Could be used to set the desired inside range of this axis","(excluding the labels) when `ticklabelposition` of","the anchored axis has *inside*.","Not implemented for axes with `type` *log*.","This would be ignored when `range` is provided."].join(" ")},scaleanchor:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString(),!1],editType:"plot",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Setting `false` allows to remove a default constraint (occasionally,","you may need to prevent a default `scaleanchor` constraint from",'being applied, eg. when having an image trace `yaxis: {scaleanchor: "x"}`',"is set automatically in order for pixels to be rendered as squares,","setting `yaxis: {scaleanchor: false}` allows to remove the constraint)."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range*, or by decreasing the *domain*.","Default is *domain* for axes containing image traces, *range* otherwise."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},matches:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"calc",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","will match the range of the corresponding axis in data-coordinates space.","Moreover, matching axes share auto-range values, category lists and","histogram auto-bins.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Moreover, note that matching axes must have the same `type`."].join(" ")},rangebreaks:s("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this axis rangebreak is enabled or disabled.","Please note that `rangebreaks` only work for *date* axis type."].join(" ")},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc",description:["Sets the lower and upper bounds of this axis rangebreak.","Can be used with `pattern`."].join(" ")},pattern:{valType:"enumerated",values:[f,d,""],editType:"calc",description:["Determines a pattern on the time line that generates breaks.","If *"+f+"* - days of the week in English e.g. 'Sunday' or `sun`","(matching is case-insensitive and considers only the first three characters),","as well as Sunday-based integers between 0 and 6.","If *"+d+"* - hour (24-hour clock) as decimal numbers between 0 and 24.","for more info.","Examples:","- { pattern: '"+f+"', bounds: [6, 1] }"," or simply { bounds: ['sat', 'mon'] }"," breaks from Saturday to Monday (i.e. skips the weekends).","- { pattern: '"+d+"', bounds: [17, 8] }"," breaks from 5pm to 8am (i.e. skips non-work hours)."].join(" ")},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"},description:["Sets the coordinate values corresponding to the rangebreaks.","An alternative to `bounds`.","Use `dvalue` to set the size of the values along the axis."].join(" ")},dvalue:{valType:"number",editType:"calc",min:0,dflt:c,description:["Sets the size of each `values` item.","The default is one day in milliseconds."].join(" ")},editType:"calc"}),tickmode:p,nticks:m(),tick0:g,dtick:v,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks",description:["Sets the spacing between tick labels as compared to the spacing between ticks.","A value of 1 (default) means each tick gets a label.","A value of 2 means shows every 2nd label.","A larger value n means only every nth tick is labeled.","`tick0` determines which labels are shown.","Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*."].join(" ")},tickvals:y,ticktext:{valType:"data_array",editType:"ticks",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:b,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks",description:["Determines where ticks and grid lines are drawn with respect to their","corresponding tick labels.","Only has an effect for axes of `type` *category* or *multicategory*.","When set to *boundaries*, ticks and grid lines are drawn half a category","to the left/bottom of labels."].join(" ")},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks",description:["Determines where tick labels are drawn with respect to their","corresponding ticks and grid lines.","Only has an effect for axes of `type` *date*","When set to *period*, tick labels are drawn in the middle of the period","between ticks."].join(" ")},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",description:["Determines where tick labels are drawn with respect to the axis","Please note that","top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*.","Similarly","left or right has no effect on y axes or when `ticklabelmode` is set to *period*.","Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*.","When used on axes linked by `matches` or `scaleanchor`,","no extra padding for inside labels would be added by autorange,","so that the scales could match."].join(" ")},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc",description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","Otherwise on *category* and *multicategory* axes the default is *allow*.","In other cases the default is *hide past div*."].join(" ")},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks",description:["Shifts the tick labels by the specified number of pixels in parallel to the axis.","Positive values move the labels in the positive direction of the axis."].join(" ")},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks",description:["Sets the standoff distance (in px) between the axis tick labels and their default position.","A positive `ticklabelstandoff` moves the labels farther away from the plot area","if `ticklabelposition` is *outside*, and deeper into the plot area if","`ticklabelposition` is *inside*. A negative `ticklabelstandoff` works in the opposite","direction, moving outside ticks towards the plot area and inside ticks towards","the outside. If the negative value is large enough, inside ticks can even end up","outside and vice versa."].join(" ")},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc",description:["Only for axes with `type` *date* or *linear*.","Instead of drawing the major tick label, draw the label for the minor tick","that is n positions away from the major tick. E.g. to always draw the label for the","minor tick before each major tick, choose `ticklabelindex` -1. This is useful for date","axes with `ticklabelmode` *period* if you want to label the period that ends with each","major tick instead of the period that begins there."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:x(),tickwidth:_(),tickcolor:w,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks",description:"Determines whether or not the tick labels are drawn."},labelalias:{valType:"any",dflt:!1,editType:"ticks",description:["Replacement text for specific tick or hover labels.","For example using {US: 'USA', CA: 'Canada'} changes US to USA","and CA to Canada. The labels we would have shown must match","the keys exactly, after adding any tickprefix or ticksuffix.","For negative numbers the minus sign symbol used (U+2212) is wider than the regular ascii dash.","That means you need to use 1 instead of -1.","labelalias can be used with any axis type, and both keys (if needed)","and values (if desired) can include html-like tags or MathJax."].join(" ")},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks",description:["Determines whether long tick labels automatically grow the figure","margins."].join(" ")},showspikes:{valType:"boolean",dflt:!1,editType:"modebar",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,editType:"none",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,editType:"none",description:"Sets the width (in px) of the zero line."},spikedash:a({},i,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none",description:"Determines whether spikelines are stuck to the cursor or to the closest datapoints."},tickfont:r({editType:"ticks",description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks",description:["When `tickangle` is set to *auto*, it will be set to the first","angle in this array that is large enough to prevent label","overlap."].join(" ")},tickprefix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks",description:["Hide SI prefix for 10^n if |n| is below this number.","This only has an effect when `tickformat` is *SI* or *B*."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",editType:"ticks",description:l("tick label")},tickformatstops:s("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not this stop is used.","If `false`, this stop is ignored even within its `dtickrange`."].join(" ")},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks",description:["range [*min*, *max*], where *min*, *max* - dtick values","which describe some zoom level, it is possible to omit *min*","or *max* value by passing *null*"].join(" ")},value:{valType:"string",dflt:"",editType:"ticks",description:["string - dtickformat for described zoom level, the same as *tickformat*"].join(" ")},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:l("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:o.defaultLine,editType:"layoutstyle",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle",description:"Sets the width (in px) of the axis line."},showgrid:A,gridcolor:j,gridwidth:k(),griddash:T,zeroline:{valType:"boolean",editType:"ticks",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:o.defaultLine,editType:"ticks",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,editType:"ticks",description:"Sets the width (in px) of the zero line."},showdividers:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not a dividers are drawn","between the category levels of this axis.","Only has an effect on *multicategory* axes."].join(" ")},dividercolor:{valType:"color",dflt:o.defaultLine,editType:"ticks",description:["Sets the color of the dividers","Only has an effect on *multicategory* axes."].join(" ")},dividerwidth:{valType:"number",dflt:1,editType:"ticks",description:["Sets the width (in px) of the dividers","Only has an effect on *multicategory* axes."].join(" ")},anchor:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis, with traces and axes visible for both","axes.","If *false*, this axis does not overlay any same-letter axes.","In this case, for axes with overlapping domains only the highest-numbered","axis will be visible."].join(" ")},minor:{tickmode:h,nticks:m("minor"),tick0:g,dtick:v,tickvals:y,ticks:b,ticklen:x("minor"),tickwidth:_("minor"),tickcolor:w,gridcolor:j,gridwidth:k("minor"),griddash:T,showgrid:A,editType:"ticks"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot",description:["Sets the layer on which this axis is displayed.","If *above traces*, this axis is displayed above all the subplot's traces","If *below traces*, this axis is displayed below all the subplot's traces,","but above the grid lines.","Useful when used together with scatter-like traces with `cliponaxis`","set to *false* to show markers and/or text nodes above this axis."].join(" ")},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",description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},autoshift:{valType:"boolean",dflt:!1,editType:"plot",description:["Automatically reposition the axis to avoid","overlap with other axes with the same `overlaying` value.","This repositioning will account for any `shift` amount applied to other","axes on the same side with `autoshift` is set to true.","Only has an effect if `anchor` is set to *free*."].join(" ")},shift:{valType:"number",editType:"plot",description:["Moves the axis a given number of pixels from where it would have been otherwise.","Accepts both positive and negative values, which will shift the axis either right","or left, respectively.","If `autoshift` is set to true, then this defaults to a padding of -3 if `side` is set to *left*.","and defaults to +3 if `side` is set to *right*. Defaults to 0 if `autoshift` is set to false.","Only has an effect if `anchor` is set to *free*."].join(" ")},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",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.","Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the","numerical order of the values.","Similarly, the order can be determined by the min, max, sum, mean, geometric mean or median of all the values."].join(" ")},categoryarray:{valType:"data_array",editType:"calc",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `range`,","`autorange`, and `title` if in `editable: true` configuration.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")},title:{valType:"string",editType:"ticks",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the axis' title, please use `title.text` now."].join(" ")},titlefont:r({editType:"ticks",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},"./node_modules/plotly.js/src/plots/cartesian/layout_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/color/index.js"),i=n("./node_modules/plotly.js/src/components/fx/helpers.js").isUnifiedHover,a=n("./node_modules/plotly.js/src/components/fx/hovermode_defaults.js"),s=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),l=n("./node_modules/plotly.js/src/plots/layout_attributes.js"),c=n("./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js"),u=n("./node_modules/plotly.js/src/plots/cartesian/type_defaults.js"),d=n("./node_modules/plotly.js/src/plots/cartesian/axis_defaults.js"),f=n("./node_modules/plotly.js/src/plots/cartesian/constraints.js"),h=n("./node_modules/plotly.js/src/plots/cartesian/position_defaults.js"),p=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),m=p.id2name,g=p.name2id,v=n("./node_modules/plotly.js/src/plots/cartesian/constants.js").AX_ID_PATTERN,y=n("./node_modules/plotly.js/src/registry.js"),b=y.traceIs,x=y.getComponentMethod;function _(e,t,n){Array.isArray(e[t])?e[t].push(n):e[t]=[n]}e.exports=function(e,t,n){var y,w,j=t.autotypenumbers,k={},T={},A={},M={},S={},C={},E={},L={},O={},R={};for(y=0;y<n.length;y++){var I=n[y];if(b(I,"cartesian")||b(I,"gl2d")){var P,D;if(I.xaxis)P=m(I.xaxis),_(k,P,I);else if(I.xaxes)for(w=0;w<I.xaxes.length;w++)_(k,m(I.xaxes[w]),I);if(I.yaxis)D=m(I.yaxis),_(k,D,I);else if(I.yaxes)for(w=0;w<I.yaxes.length;w++)_(k,m(I.yaxes[w]),I);if("funnel"===I.type?"h"===I.orientation?(P&&(T[P]=!0),D&&(E[D]=!0)):D&&(A[D]=!0):"image"===I.type?(D&&(L[D]=!0),P&&(L[P]=!0)):(D&&(S[D]=!0,C[D]=!0),b(I,"carpet")&&("carpet"!==I.type||I._cheater)||P&&(M[P]=!0)),"carpet"===I.type&&I._cheater&&P&&(T[P]=!0),b(I,"2dMap")&&(O[P]=!0,O[D]=!0),b(I,"oriented"))R["h"===I.orientation?D:P]=!0}}var z=t._subplots,N=z.xaxis,F=z.yaxis,B=r.simpleMap(N,m),U=r.simpleMap(F,m),H=B.concat(U),V=o.background;N.length&&F.length&&(V=r.coerce(e,t,l,"plot_bgcolor"));var G,q,W,Y,X,Z=o.combine(V,t.paper_bgcolor);function $(){var e=k[G]||[];X._traceIndices=e.map((function(e){return e._expandedIndex})),X._annIndices=[],X._shapeIndices=[],X._selectionIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=G,X._id=q}function K(e,t){return r.coerce(Y,X,c,e,t)}function J(e,t){return r.coerce2(Y,X,c,e,t)}function Q(e){return"x"===e?F:N}function ee(t,n){for(var r="x"===t?B:U,o=[],i=0;i<r.length;i++){var a=r[i];a===n||(e[a]||{}).overlaying||o.push(g(a))}return o}var te={x:Q("x"),y:Q("y")},ne=te.x.concat(te.y),re={},oe=[];function ie(){var e=Y.matches;v.test(e)&&-1===ne.indexOf(e)&&(re[e]=Y.type,oe=Object.keys(re))}var ae=a(e,t),se=i(ae);for(y=0;y<H.length;y++){G=H[y],q=g(G),W=G.charAt(0),r.isPlainObject(e[G])||(e[G]={}),Y=e[G],X=s.newContainer(t,G,W+"axis"),$();var le="x"===W&&!M[G]&&T[G]||"y"===W&&!S[G]&&A[G],ce="y"===W&&(!C[G]&&E[G]||L[G]),ue={hasMinor:!0,letter:W,font:t.font,outerTicks:O[G],showGrid:!R[G],data:k[G]||[],bgColor:Z,calendar:t.calendar,automargin:!0,visibleDflt:le,reverseDflt:ce,autotypenumbersDflt:j,splomStash:((t._splomAxes||{})[W]||{})[q],noAutotickangles:"y"===W};K("uirevision",t.uirevision),u(Y,X,K,ue),d(Y,X,K,ue,t);var de=se&&W===ae.charAt(0),fe=J("spikecolor",se?X.color:void 0),he=J("spikethickness",se?1.5:void 0),pe=J("spikedash",se?"dot":void 0),me=J("spikemode",se?"across":void 0),ge=J("spikesnap");K("showspikes",!!(de||fe||he||pe||me||ge))||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap);var ve=m(Y.overlaying),ye=[0,1];if(void 0!==t[ve]){var be=m(t[ve].anchor);void 0!==t[be]&&(ye=t[be].domain)}h(Y,X,K,{letter:W,counterAxes:te[W],overlayableAxes:ee(W,G),grid:t.grid,overlayingDomain:ye}),K("title.standoff"),ie(),X._input=Y}for(y=0;y<oe.length;){q=oe[y++],W=(G=m(q)).charAt(0),r.isPlainObject(e[G])||(e[G]={}),Y=e[G],X=s.newContainer(t,G,W+"axis"),$();var xe={letter:W,font:t.font,outerTicks:O[G],showGrid:!R[G],data:[],bgColor:Z,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:j,splomStash:((t._splomAxes||{})[W]||{})[q]};K("uirevision",t.uirevision),X.type=re[q]||"linear",d(Y,X,K,xe,t),h(Y,X,K,{letter:W,counterAxes:te[W],overlayableAxes:ee(W,G),grid:t.grid}),K("fixedrange"),ie(),X._input=Y}var _e=x("rangeslider","handleDefaults"),we=x("rangeselector","handleDefaults");for(y=0;y<B.length;y++)G=B[y],Y=e[G],X=t[G],_e(e,t,G),"date"===X.type&&we(Y,X,t,U,X.calendar),K("fixedrange");for(y=0;y<U.length;y++){G=U[y],Y=e[G],X=t[G];var je=t[m(X.anchor)];K("fixedrange",x("rangeslider","isVisible")(je))}f.handleDefaults(e,t,{axIds:ne.concat(oe).sort(p.idSort),axHasImage:L})}},"./node_modules/plotly.js/src/plots/cartesian/line_grid_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/tinycolor2/cjs/tinycolor.js").mix,o=n("./node_modules/plotly.js/src/components/color/attributes.js"),i=n("./node_modules/plotly.js/src/lib/index.js");e.exports=function(e,t,n,a){var s=(a=a||{}).dfltColor;function l(n,r){return i.coerce2(e,t,a.attributes,n,r)}var c=l("linecolor",s),u=l("linewidth");n("showline",a.showLine||!!c||!!u)||(delete t.linecolor,delete t.linewidth);var d=l("gridcolor",r(s,a.bgColor,a.blend||o.lightFraction).toRgbString()),f=l("gridwidth"),h=l("griddash");if(n("showgrid",a.showGrid||!!d||!!f||!!h)||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var p=l("minor.gridcolor",r(t.gridcolor,a.bgColor,67).toRgbString()),m=l("minor.gridwidth",t.gridwidth||1),g=l("minor.griddash",t.griddash||"solid");n("minor.showgrid",!!p||!!m||!!g)||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var v=l("zerolinecolor",s),y=l("zerolinewidth");n("zeroline",a.showGrid||!!v||!!y)||(delete t.zerolinecolor,delete t.zerolinewidth)}}},"./node_modules/plotly.js/src/plots/cartesian/position_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/index.js");e.exports=function(e,t,n,i){var a,s,l,c,u,d,f=i.counterAxes||[],h=i.overlayableAxes||[],p=i.letter,m=i.grid,g=i.overlayingDomain;m&&(s=m._domains[p][m._axisMap[t._id]],a=m._anchors[t._id],s&&(l=m[p+"side"].split(" ")[0],c=m.domain[p]["right"===l||"top"===l?1:0])),s=s||[0,1],a=a||(r(e.position)?"free":f[0]||"free"),l=l||("x"===p?"bottom":"left"),c=c||0,u=0,d=!1;var v=o.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(f),dflt:a}},"anchor"),y=o.coerce(e,t,{side:{valType:"enumerated",values:"x"===p?["bottom","top"]:["left","right"],dflt:l}},"side");if("free"===v){if("y"===p)n("autoshift")&&(c="left"===y?g[0]:g[1],d=!t.automargin||t.automargin,u="left"===y?-3:3),n("shift",u);n("position",c)}n("automargin",d);var b=!1;if(h.length&&(b=o.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(h),dflt:!1}},"overlaying")),!b){var x=n("domain",s);x[0]>x[1]-1/4096&&(t.domain=s),o.noneOrAll(e.domain,t.domain,s),"sync"===t.tickmode&&(t.tickmode="auto")}return n("layer"),t}},"./node_modules/plotly.js/src/plots/cartesian/prefix_suffix_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/cartesian/show_dflt.js");e.exports=function(e,t,n,o,i){i||(i={});var a=i.tickSuffixDflt,s=r(e);n("tickprefix")&&n("showtickprefix",s),n("ticksuffix",a)&&n("showticksuffix",s)}},"./node_modules/plotly.js/src/plots/cartesian/range_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/cartesian/autorange_options_defaults.js");e.exports=function(e,t,n,o){var i=t._template||{},a=t.type||i.type||"-";n("minallowed"),n("maxallowed");var s,l=n("range");l||(o.noInsiderange||"log"===a||(!(s=n("insiderange"))||null!==s[0]&&null!==s[1]||(t.insiderange=!1,s=void 0),s&&(l=n("range",s))));var c,u=t.getAutorangeDflt(l,o),d=n("autorange",u);!l||(null!==l[0]||null!==l[1])&&(null!==l[0]&&null!==l[1]||"reversed"!==d&&!0!==d)&&(null===l[0]||"min"!==d&&"max reversed"!==d)&&(null===l[1]||"max"!==d&&"min reversed"!==d)||(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(d=n("autorange",u=t.getAutorangeDflt(l,o))),d&&(r(n,d,l),"linear"!==a&&"-"!==a||n("rangemode")),t.cleanRange()}},"./node_modules/plotly.js/src/plots/cartesian/scale_zoom.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/constants/alignment.js").FROM_BL;e.exports=function(e,t,n){void 0===n&&(n=r[e.constraintoward||"center"]);var o=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=o[0]+(o[1]-o[0])*n;e.range=e._input.range=[e.l2r(i+(o[0]-i)*t),e.l2r(i+(o[1]-i)*t)],e.setScale()}},"./node_modules/plotly.js/src/plots/cartesian/set_convert.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/d3-time-format/src/index.js").utcFormat,i=n("./node_modules/plotly.js/src/lib/index.js"),a=i.numberFormat,s=n("./node_modules/fast-isnumeric/index.js"),l=i.cleanNumber,c=i.ms2DateTime,u=i.dateTime2ms,d=i.ensureNumber,f=i.isArrayOrTypedArray,h=n("./node_modules/plotly.js/src/constants/numerical.js"),p=h.FP_SAFE,m=h.BADNUM,g=h.LOG_CLIP,v=h.ONEWEEK,y=h.ONEDAY,b=h.ONEHOUR,x=h.ONEMIN,_=h.ONESEC,w=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),j=n("./node_modules/plotly.js/src/plots/cartesian/constants.js"),k=j.HOUR_PATTERN,T=j.WEEKDAY_PATTERN;function A(e){return Math.pow(10,e)}function M(e){return null!=e}e.exports=function(e,t){t=t||{};var n=e._id||"x",h=n.charAt(0);function S(t,n){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&n&&e.range&&2===e.range.length){var r=e.range[0],o=e.range[1];return.5*(r+o-2*g*Math.abs(r-o))}return m}function C(t,n,r,o){if((o||{}).msUTC&&s(t))return+t;var a=u(t,r||e.calendar);if(a===m){if(!s(t))return m;t=+t;var l=Math.floor(10*i.mod(t+.05,1)),c=Math.round(t-l/10);a=u(new Date(c))+l/10}return a}function E(t,n,r){return c(t,n,r||e.calendar)}function L(t){return e._categories[Math.round(t)]}function O(t){if(M(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"==typeof t?String(t):t);var n=e._categories.length-1;return e._categoriesMap[t]=n,n}return m}function R(t){if(e._categoriesMap)return e._categoriesMap[t]}function I(e){var t=R(e);return void 0!==t?t:s(e)?+e:void 0}function P(e){return s(e)?+e:R(e)}function D(e,t,n){return r.round(n+t*e,2)}function z(e,t,n){return(e-n)/t}var N=function(t){return s(t)?D(t,e._m,e._b):m},F=function(t){return z(t,e._m,e._b)};if(e.rangebreaks){var B="y"===h;N=function(t){if(!s(t))return m;var n=e._rangebreaks.length;if(!n)return D(t,e._m,e._b);var r=B;e.range[0]>e.range[1]&&(r=!r);for(var o=r?-1:1,i=o*t,a=0,l=0;l<n;l++){var c=o*e._rangebreaks[l].min,u=o*e._rangebreaks[l].max;if(i<c)break;if(!(i>u)){a=i<(c+u)/2?l:l+1;break}a=l+1}var d=e._B[a]||0;return isFinite(d)?D(t,e._m2,d):0},F=function(t){var n=e._rangebreaks.length;if(!n)return z(t,e._m,e._b);for(var r=0,o=0;o<n&&!(t<e._rangebreaks[o].pmin);o++)t>e._rangebreaks[o].pmax&&(r=o+1);return z(t,e._m2,e._B[r])}}e.c2l="log"===e.type?S:d,e.l2c="log"===e.type?A:d,e.l2p=N,e.p2l=F,e.c2p="log"===e.type?function(e,t){return N(S(e,t))}:N,e.p2c="log"===e.type?function(e){return A(F(e))}:F,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=l,e.c2d=e.c2r=e.l2d=e.l2r=d,e.d2p=e.r2p=function(t){return e.l2p(l(t))},e.p2d=e.p2r=F,e.cleanPos=d):"log"===e.type?(e.d2r=e.d2l=function(e,t){return S(l(e),t)},e.r2d=e.r2c=function(e){return A(l(e))},e.d2c=e.r2l=l,e.c2d=e.l2r=d,e.c2r=S,e.l2d=A,e.d2p=function(t,n){return e.l2p(e.d2r(t,n))},e.p2d=function(e){return A(F(e))},e.r2p=function(t){return e.l2p(l(t))},e.p2r=F,e.cleanPos=d):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=C,e.c2d=e.c2r=e.l2d=e.l2r=E,e.d2p=e.r2p=function(t,n,r){return e.l2p(C(t,0,r))},e.p2d=e.p2r=function(e,t,n){return E(F(e),t,n)},e.cleanPos=function(t){return i.cleanDate(t,m,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=O,e.r2d=e.c2d=e.l2d=L,e.d2r=e.d2l_noadd=I,e.r2c=function(t){var n=P(t);return void 0!==n?n:e.fraction2r(.5)},e.l2r=e.c2r=d,e.r2l=P,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return L(F(e))},e.r2p=e.d2p,e.p2r=F,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:d(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=L,e.d2r=e.d2l_noadd=I,e.r2c=function(t){var n=I(t);return void 0!==n?n:e.fraction2r(.5)},e.r2c_just_indices=R,e.l2r=e.c2r=d,e.r2l=I,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return L(F(e))},e.r2p=e.d2p,e.p2r=F,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:d(e)},e.setupMultiCategory=function(r){var o,a,s=e._traceIndices,l=e._matchGroup;if(l&&0===e._categories.length)for(var c in l)if(c!==n){var u=t[w.id2name(c)];s=s.concat(u._traceIndices)}var d=[[0,{}],[0,{}]],p=[];for(o=0;o<s.length;o++){var m=r[s[o]];if(h in m){var g=m[h],v=m._length||i.minRowLength(g);if(f(g[0])&&f(g[1]))for(a=0;a<v;a++){var y=g[0][a],b=g[1][a];M(y)&&M(b)&&(p.push([y,b]),y in d[0][1]||(d[0][1][y]=d[0][0]++),b in d[1][1]||(d[1][1][b]=d[1][0]++))}}}for(p.sort((function(e,t){var n=d[0][1],r=n[e[0]]-n[t[0]];if(r)return r;var o=d[1][1];return o[e[1]]-o[t[1]]})),o=0;o<p.length;o++)O(p[o])}),e.fraction2r=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return e.l2r(n+t*(r-n))},e.r2fraction=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return(e.r2l(t)-n)/(r-n)},e.limitRange=function(t){var n=e.minallowed,r=e.maxallowed;if(void 0!==n||void 0!==r){t||(t="range");var o=i.nestedProperty(e,t).get(),a=i.simpleMap(o,e.r2l),s=a[1]<a[0];s&&a.reverse();var l=i.simpleMap([n,r],e.r2l);if(void 0!==n&&a[0]<l[0]&&(o[s?1:0]=n),void 0!==r&&a[1]>l[1]&&(o[s?0:1]=r),o[0]===o[1]){var c=e.l2r(n),u=e.l2r(r);if(void 0!==n){var d=c+1;void 0!==r&&(d=Math.min(d,u)),o[s?1:0]=d}if(void 0!==r){var f=u+1;void 0!==n&&(f=Math.max(f,c)),o[s?0:1]=f}}}},e.cleanRange=function(t,n){e._cleanRange(t,n),e.limitRange(t)},e._cleanRange=function(t,n){n||(n={}),t||(t="range");var r,o,a=i.nestedProperty(e,t).get();if(o=(o="date"===e.type?i.dfltRange(e.calendar):"y"===h?j.DFLTRANGEY:"realaxis"===e._name?[0,1]:n.dfltRange||j.DFLTRANGEX).slice(),"tozero"!==e.rangemode&&"nonnegative"!==e.rangemode||(o[0]=0),a&&2===a.length){var l=null===a[0],c=null===a[1];for("date"!==e.type||e.autorange||(a[0]=i.cleanDate(a[0],m,e.calendar),a[1]=i.cleanDate(a[1],m,e.calendar)),r=0;r<2;r++)if("date"===e.type){if(!i.isDateTime(a[r],e.calendar)){e[t]=o;break}if(e.r2l(a[0])===e.r2l(a[1])){var u=i.constrain(e.r2l(a[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);a[0]=e.l2r(u-1e3),a[1]=e.l2r(u+1e3);break}}else{if(!s(a[r])){if(l||c||!s(a[1-r])){e[t]=o;break}a[r]=a[1-r]*(r?10:.1)}if(a[r]<-p?a[r]=-p:a[r]>p&&(a[r]=p),a[0]===a[1]){var d=Math.max(1,Math.abs(1e-6*a[0]));a[0]-=d,a[1]+=d}}}else i.nestedProperty(e,t).set(o)},e.setScale=function(n){var r=t._size;if(e.overlaying){var o=w.getFromId({_fullLayout:t},e.overlaying);e.domain=o.domain}var i=n&&e._r?"_r":"range",a=e.calendar;e.cleanRange(i);var s,l,c=e.r2l(e[i][0],a),u=e.r2l(e[i][1],a),d="y"===h;if((d?(e._offset=r.t+(1-e.domain[1])*r.h,e._length=r.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=r.l+e.domain[0]*r.w,e._length=r.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks)&&(e._rangebreaks=e.locateBreaks(Math.min(c,u),Math.max(c,u)),e._rangebreaks.length)){for(s=0;s<e._rangebreaks.length;s++)l=e._rangebreaks[s],e._lBreaks+=Math.abs(l.max-l.min);var f=d;c>u&&(f=!f),f&&e._rangebreaks.reverse();var p=f?-1:1;for(e._m2=p*e._length/(Math.abs(u-c)-e._lBreaks),e._B.push(-e._m2*(d?u:c)),s=0;s<e._rangebreaks.length;s++)l=e._rangebreaks[s],e._B.push(e._B[e._B.length-1]-p*e._m2*(l.max-l.min));for(s=0;s<e._rangebreaks.length;s++)(l=e._rangebreaks[s]).pmin=N(l.min),l.pmax=N(l.max)}if(!isFinite(e._m)||!isFinite(e._b)||e._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},e.maskBreaks=function(t){var n,r,o,a,s,c=e.rangebreaks||[];c._cachedPatterns||(c._cachedPatterns=c.map((function(t){return t.enabled&&t.bounds?i.simpleMap(t.bounds,t.pattern?l:e.d2c):null}))),c._cachedValues||(c._cachedValues=c.map((function(t){return t.enabled&&t.values?i.simpleMap(t.values,e.d2c).sort(i.sorterAsc):null})));for(var u=0;u<c.length;u++){var d=c[u];if(d.enabled)if(d.bounds){var f=d.pattern;switch(r=(n=c._cachedPatterns[u])[0],o=n[1],f){case T:a=(s=new Date(t)).getUTCDay(),r>o&&(o+=7,a<r&&(a+=7));break;case k:a=(s=new Date(t)).getUTCHours()+(s.getUTCMinutes()/60+s.getUTCSeconds()/3600+s.getUTCMilliseconds()/36e5),r>o&&(o+=24,a<r&&(a+=24));break;case"":a=t}if(a>=r&&a<o)return m}else for(var h=c._cachedValues[u],p=0;p<h.length;p++)if(o=(r=h[p])+d.dvalue,t>=r&&t<o)return m}return t},e.locateBreaks=function(t,n){var r,o,a,s,c=[];if(!e.rangebreaks)return c;var u=e.rangebreaks.slice().sort((function(e,t){return e.pattern===T&&t.pattern===k?-1:t.pattern===T&&e.pattern===k?1:0})),d=function(e,r){if((e=i.constrain(e,t,n))!==(r=i.constrain(r,t,n))){for(var o=!0,a=0;a<c.length;a++){var s=c[a];e<s.max&&r>=s.min&&(e<s.min&&(s.min=e),r>s.max&&(s.max=r),o=!1)}o&&c.push({min:e,max:r})}};for(r=0;r<u.length;r++){var f=u[r];if(f.enabled)if(f.bounds){var h=t,p=n;f.pattern&&(h=Math.floor(h)),a=(o=i.simpleMap(f.bounds,f.pattern?l:e.r2l))[0],s=o[1];var m,g,w=new Date(h);switch(f.pattern){case T:g=v,m=(s-a+(s<a?7:0))*y,h+=a*y-(w.getUTCDay()*y+w.getUTCHours()*b+w.getUTCMinutes()*x+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;case k:g=y,m=(s-a+(s<a?24:0))*b,h+=a*b-(w.getUTCHours()*b+w.getUTCMinutes()*x+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;default:h=Math.min(o[0],o[1]),m=g=(p=Math.max(o[0],o[1]))-h}for(var j=h;j<p;j+=g)d(j,j+m)}else for(var A=i.simpleMap(f.values,e.d2c),M=0;M<A.length;M++)d(a=A[M],s=a+f.dvalue)}return c.sort((function(e,t){return e.min-t.min})),c},e.makeCalcdata=function(t,n,r){var o,a,s,l,c=e.type,u="date"===c&&t[n+"calendar"];if(n in t){if(o=t[n],l=t._length||i.minRowLength(o),i.isTypedArray(o)&&("linear"===c||"log"===c)){if(l===o.length)return o;if(o.subarray)return o.subarray(0,l)}if("multicategory"===c)return function(e,t){for(var n=new Array(t),r=0;r<t;r++){var o=(e[0]||[])[r],i=(e[1]||[])[r];n[r]=R([o,i])}return n}(o,l);for(a=new Array(l),s=0;s<l;s++)a[s]=e.d2c(o[s],0,u,r)}else{var d=n+"0"in t?e.d2c(t[n+"0"],0,u):0,f=t["d"+n]?Number(t["d"+n]):1;for(o=t[{x:"y",y:"x"}[n]],l=t._length||o.length,a=new Array(l),s=0;s<l;s++)a[s]=d+s*f}if(e.rangebreaks)for(s=0;s<l;s++)a[s]=e.maskBreaks(a[s]);return a},e.isValidRange=function(t,n){return Array.isArray(t)&&2===t.length&&(n&&null===t[0]||s(e.r2l(t[0])))&&(n&&null===t[1]||s(e.r2l(t[1])))},e.getAutorangeDflt=function(t,n){var r=!e.isValidRange(t,"nullOk");return r&&n&&n.reverseDflt?r="reversed":t&&(null===t[0]&&null===t[1]?r=!0:null===t[0]&&null!==t[1]?r="min":null!==t[0]&&null===t[1]&&(r="max")),r},e.isReversed=function(){var t=e.autorange;return"reversed"===t||"min reversed"===t||"max reversed"===t},e.isPtWithinRange=function(t,n){var r=e.c2l(t[h],null,n),o=e.r2l(e.range[0]),i=e.r2l(e.range[1]);return o<i?o<=r&&r<=i:i<=r&&r<=o},e._emptyCategories=function(){e._categories=[],e._categoriesMap={}},e.clearCalc=function(){var n=e._matchGroup;if(n){var r=null,o=null;for(var i in n){var a=t[w.id2name(i)];if(a._categories){r=a._categories,o=a._categoriesMap;break}}r&&o?(e._categories=r,e._categoriesMap=o):e._emptyCategories()}else e._emptyCategories();if(e._initialCategories)for(var s=0;s<e._initialCategories.length;s++)O(e._initialCategories[s])},e.sortByInitialCategories=function(){var r=[];if(e._emptyCategories(),e._initialCategories)for(var o=0;o<e._initialCategories.length;o++)O(e._initialCategories[o]);r=r.concat(e._traceIndices);var i=e._matchGroup;for(var a in i)if(n!==a){var s=t[w.id2name(a)];s._categories=e._categories,s._categoriesMap=e._categoriesMap,r=r.concat(s._traceIndices)}return r};var U=t._d3locale;"date"===e.type&&(e._dateFormat=U?U.timeFormat:o,e._extraFormat=t._extraFormat),e._separators=t.separators,e._numFormat=U?U.numberFormat:a,delete e._minDtick,delete e._forceTick0}},"./node_modules/plotly.js/src/plots/cartesian/show_dflt.js":function(e,t,n){"use strict";e.exports=function(e){var t=["showexponent","showtickprefix","showticksuffix"].filter((function(t){return void 0!==e[t]}));if(t.every((function(n){return e[n]===e[t[0]]}))||1===t.length)return e[t[0]]}},"./node_modules/plotly.js/src/plots/cartesian/tick_label_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/color/index.js").contrast,i=n("./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js"),a=n("./node_modules/plotly.js/src/plots/cartesian/show_dflt.js"),s=n("./node_modules/plotly.js/src/plots/array_container_defaults.js");function l(e,t){function n(n,o){return r.coerce(e,t,i.tickformatstops,n,o)}n("enabled")&&(n("dtickrange"),n("value"))}e.exports=function(e,t,n,c,u){u||(u={});var d=n("labelalias");r.isPlainObject(d)||delete t.labelalias;var f=a(e);if(n("showticklabels")){u.noTicklabelshift||n("ticklabelshift"),u.noTicklabelstandoff||n("ticklabelstandoff");var h=u.font||{},p=t.color,m=-1!==(t.ticklabelposition||"").indexOf("inside")?o(u.bgColor):p&&p!==i.color.dflt?p:h.color;if(r.coerceFont(n,"tickfont",h,{overrideDflt:{color:m}}),u.noTicklabelstep||"multicategory"===c||"log"===c||n("ticklabelstep"),!u.noAng){var g=n("tickangle");u.noAutotickangles||"auto"!==g||n("autotickangles")}if("category"!==c){var v=n("tickformat");s(e,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:l}),t.tickformatstops.length||delete t.tickformatstops,u.noExp||v||"date"===c||(n("showexponent",f),n("exponentformat"),n("minexponent"),n("separatethousands"))}}}},"./node_modules/plotly.js/src/plots/cartesian/tick_mark_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js");e.exports=function(e,t,n,i){var a=i.isMinor,s=a?e.minor||{}:e,l=a?t.minor:t,c=a?o.minor:o,u=a?"minor.":"",d=r.coerce2(s,l,c,"ticklen",a?.6*(t.ticklen||5):void 0),f=r.coerce2(s,l,c,"tickwidth",a?t.tickwidth||1:void 0),h=r.coerce2(s,l,c,"tickcolor",(a?t.tickcolor:void 0)||l.color);n(u+"ticks",!a&&i.outerTicks||d||f||h?"outside":"")||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}},"./node_modules/plotly.js/src/plots/cartesian/tick_value_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/cartesian/clean_ticks.js"),o=n("./node_modules/plotly.js/src/lib/index.js").isArrayOrTypedArray,i=n("./node_modules/plotly.js/src/lib/array.js").isTypedArraySpec,a=n("./node_modules/plotly.js/src/lib/array.js").decodeTypedArraySpec;e.exports=function(e,t,n,s,l){l||(l={});var c=l.isMinor,u=c?e.minor||{}:e,d=c?t.minor:t,f=c?"minor.":"";function h(e){var t=u[e];return i(t)&&(t=a(t)),void 0!==t?t:(d._template||{})[e]}var p=h("tick0"),m=h("dtick"),g=h("tickvals"),v=n(f+"tickmode",o(g)?"array":m?"linear":"auto");if("auto"===v||"sync"===v)n(f+"nticks");else if("linear"===v){var y=d.dtick=r.dtick(m,s);d.tick0=r.tick0(p,s,t.calendar,y)}else if("multicategory"!==s){void 0===n(f+"tickvals")?d.tickmode="auto":c||n("ticktext")}}},"./node_modules/plotly.js/src/plots/cartesian/transition_axes.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/lib/index.js"),a=n("./node_modules/plotly.js/src/components/drawing/index.js"),s=n("./node_modules/plotly.js/src/plots/cartesian/axes.js");e.exports=function(e,t,n,l){var c=e._fullLayout;if(0!==t.length){var u,d,f,h;l&&(u=l());var p=r.ease(n.easing);return e._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(h),h=null,function(){for(var n={},r=0;r<t.length;r++){var i=t[r],a=i.plotinfo.xaxis,s=i.plotinfo.yaxis;i.xr0&&(n[a._name+".range"]=i.xr0.slice()),i.yr0&&(n[s._name+".range"]=i.yr0.slice())}return o.call("relayout",e,n).then((function(){for(var e=0;e<t.length;e++)m(t[e].plotinfo)}))}()})),d=Date.now(),h=window.requestAnimationFrame((function r(){f=Date.now();for(var i=Math.min(1,(f-d)/n.duration),a=p(i),s=0;s<t.length;s++)g(t[s],a);f-d>n.duration?(!function(){for(var n={},r=0;r<t.length;r++){var i=t[r],a=i.plotinfo.xaxis,s=i.plotinfo.yaxis;i.xr1&&(n[a._name+".range"]=i.xr1.slice()),i.yr1&&(n[s._name+".range"]=i.yr1.slice())}u&&u(),o.call("relayout",e,n).then((function(){for(var e=0;e<t.length;e++)m(t[e].plotinfo)}))}(),h=window.cancelAnimationFrame(r)):h=window.requestAnimationFrame(r)})),Promise.resolve()}function m(e){var t=e.xaxis,n=e.yaxis;c._defs.select("#"+e.clipId+"> rect").call(a.setTranslate,0,0).call(a.setScale,1,1),e.plot.call(a.setTranslate,t._offset,n._offset).call(a.setScale,1,1);var r=e.plot.selectAll(".scatterlayer .trace");r.selectAll(".point").call(a.setPointGroupScale,1,1),r.selectAll(".textpoint").call(a.setTextPointsScale,1,1),r.call(a.hideOutsideRangePoints,e)}function g(t,n){var r=t.plotinfo,o=r.xaxis,l=r.yaxis,c=o._length,u=l._length,d=!!t.xr1,f=!!t.yr1,h=[];if(d){var p=i.simpleMap(t.xr0,o.r2l),m=i.simpleMap(t.xr1,o.r2l),g=p[1]-p[0],v=m[1]-m[0];h[0]=(p[0]*(1-n)+n*m[0]-p[0])/(p[1]-p[0])*c,h[2]=c*(1-n+n*v/g),o.range[0]=o.l2r(p[0]*(1-n)+n*m[0]),o.range[1]=o.l2r(p[1]*(1-n)+n*m[1])}else h[0]=0,h[2]=c;if(f){var y=i.simpleMap(t.yr0,l.r2l),b=i.simpleMap(t.yr1,l.r2l),x=y[1]-y[0],_=b[1]-b[0];h[1]=(y[1]*(1-n)+n*b[1]-y[1])/(y[0]-y[1])*u,h[3]=u*(1-n+n*_/x),l.range[0]=o.l2r(y[0]*(1-n)+n*b[0]),l.range[1]=l.l2r(y[1]*(1-n)+n*b[1])}else h[1]=0,h[3]=u;s.drawOne(e,o,{skipTitle:!0}),s.drawOne(e,l,{skipTitle:!0}),s.redrawComponents(e,[o._id,l._id]);var w=d?c/h[2]:1,j=f?u/h[3]:1,k=d?h[0]:0,T=f?h[1]:0,A=d?h[0]/h[2]*c:0,M=f?h[1]/h[3]*u:0,S=o._offset-A,C=l._offset-M;r.clipRect.call(a.setTranslate,k,T).call(a.setScale,1/w,1/j),r.plot.call(a.setTranslate,S,C).call(a.setScale,w,j),a.setPointGroupScale(r.zoomScalePts,1/w,1/j),a.setTextPointsScale(r.zoomScaleTxt,1/w,1/j)}s.redrawComponents(e)}},"./node_modules/plotly.js/src/plots/cartesian/type_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js").traceIs,o=n("./node_modules/plotly.js/src/plots/cartesian/axis_autotype.js");function i(e){return{v:"x",h:"y"}[e.orientation||"v"]}function a(e,t){var n=i(e),o=r(e,"box-violin"),a=r(e._fullInput||{},"candlestick");return o&&!a&&t===n&&void 0===e[n]&&void 0===e[n+"0"]}e.exports=function(e,t,n,s){n("autotypenumbers",s.autotypenumbersDflt),"-"===n("type",(s.splomStash||{}).type)&&(!function(e,t){if("-"!==e.type)return;var n,s=e._id,l=s.charAt(0);-1!==s.indexOf("scene")&&(s=l);var c=function(e,t,n){for(var r=0;r<e.length;r++){var o=e[r];if("splom"===o.type&&o._length>0&&(o["_"+n+"axes"]||{})[t])return o;if((o[n+"axis"]||n)===t){if(a(o,n))return o;if((o[n]||[]).length||o[n+"0"])return o}}}(t,s,l);if(!c)return;if("histogram"===c.type&&l==={v:"y",h:"x"}[c.orientation||"v"])return void(e.type="linear");var u=l+"calendar",d=c[u],f={noMultiCategory:!r(c,"cartesian")||r(c,"noMultiCategory")};"box"===c.type&&c._hasPreCompStats&&l==={h:"x",v:"y"}[c.orientation||"v"]&&(f.noMultiCategory=!0);if(f.autotypenumbers=e.autotypenumbers,a(c,l)){var h=i(c),p=[];for(n=0;n<t.length;n++){var m=t[n];r(m,"box-violin")&&(m[l+"axis"]||l)===s&&(void 0!==m[h]?p.push(m[h][0]):void 0!==m.name?p.push(m.name):p.push("text"),m[u]!==d&&(d=void 0))}e.type=o(p,d,f)}else if("splom"===c.type){var g=c.dimensions[c._axesDim[s]];g.visible&&(e.type=o(g.values,d,f))}else e.type=o(c[l]||[c[l+"0"]],d,f)}(t,s.data),"-"===t.type?t.type="linear":e.type=t.type)}},"./node_modules/plotly.js/src/plots/command.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/lib/index.js");function i(e,t,n){var r,i,a,s=!1;if("data"===t.type)r=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;r=e._fullLayout}return i=o.nestedProperty(r,t.prop).get(),(a=n[t.type]=n[t.type]||{}).hasOwnProperty(t.prop)&&a[t.prop]!==i&&(s=!0),a[t.prop]=i,{changed:s,value:i}}function a(e,t){var n=[],r=t[0],i={};if("string"==typeof r)i[r]=t[1];else{if(!o.isPlainObject(r))return n;i=r}return l(i,(function(e,t,r){n.push({type:"layout",prop:e,value:r})}),"",0),n}function s(e,t){var n,r,i,a,s=[];if(r=t[0],i=t[1],n=t[2],a={},"string"==typeof r)a[r]=i;else{if(!o.isPlainObject(r))return s;a=r,void 0===n&&(n=i)}return void 0===n&&(n=null),l(a,(function(t,r,o){var i,a;if(Array.isArray(o)){a=o.slice();var l=Math.min(a.length,e.data.length);n&&(l=Math.min(l,n.length)),i=[];for(var c=0;c<l;c++)i[c]=n?n[c]:c}else a=o,i=n?n.slice():null;if(null===i)Array.isArray(a)&&(a=a[0]);else if(Array.isArray(i)){if(!Array.isArray(a)){var u=a;a=[];for(var d=0;d<i.length;d++)a[d]=u}a.length=Math.min(i.length,a.length)}s.push({type:"data",prop:t,traces:i,value:a})}),"",0),s}function l(e,t,n,r){Object.keys(e).forEach((function(i){var a=e[i];if("_"!==i[0]){var s=n+(r>0?".":"")+i;o.isPlainObject(a)?l(a,t,s,r+1):t(s,i,a)}}))}t.manageCommandObserver=function(e,n,r,a){var s={},l=!0;n&&n._commandObserver&&(s=n._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=t.hasSimpleAPICommandBindings(e,r,s.lookupTable);if(n&&n._commandObserver){if(c)return s;if(n._commandObserver.remove)return n._commandObserver.remove(),n._commandObserver=null,s}if(c){i(e,c,s.cache),s.check=function(){if(l){var t=i(e,c,s.cache);return t.changed&&a&&void 0!==s.lookupTable[t.value]&&(s.disable(),Promise.resolve(a({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[t.value]})).then(s.enable,s.enable)),t.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],d=0;d<u.length;d++)e._internalOn(u[d],s.check);s.remove=function(){for(var t=0;t<u.length;t++)e._removeInternalListener(u[t],s.check)}}else o.log("Unable to automatically bind plot updates to API command"),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},n&&(n._commandObserver=s),s},t.hasSimpleAPICommandBindings=function(e,n,r){var o,i,a=n.length;for(o=0;o<a;o++){var s,l=n[o],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var d=t.computeAPICommandBindings(e,c,u);if(1!==d.length)return!1;if(i){if((s=d[0]).type!==i.type)return!1;if(s.prop!==i.prop)return!1;if(Array.isArray(i.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var f=0;f<i.traces.length;f++)if(i.traces[f]!==s.traces[f])return!1}else if(s.prop!==i.prop)return!1}else i=d[0],Array.isArray(i.traces)&&i.traces.sort();var h=(s=d[0]).value;if(Array.isArray(h)){if(1!==h.length)return!1;h=h[0]}r&&(r[h]=o)}return i},t.executeAPICommand=function(e,t,n){if("skip"===t)return Promise.resolve();var i=r.apiMethodRegistry[t],a=[e];Array.isArray(n)||(n=[]);for(var s=0;s<n.length;s++)a.push(n[s]);return i.apply(null,a).catch((function(e){return o.warn("API call to Plotly."+t+" rejected.",e),Promise.reject(e)}))},t.computeAPICommandBindings=function(e,t,n){var r;switch(Array.isArray(n)||(n=[]),t){case"restyle":r=s(e,n);break;case"relayout":r=a(e,n);break;case"update":r=s(e,[n[0],n[2]]).concat(a(e,[n[1]]));break;case"animate":r=function(e,t){return Array.isArray(t[0])&&1===t[0].length&&-1!==["string","number"].indexOf(typeof t[0][0])?[{type:"layout",prop:"_currentFrame",value:t[0][0].toString()}]:[]}(0,n);break;default:r=[]}return r}},"./node_modules/plotly.js/src/plots/domain.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat;t.attributes=function(e,t){t=t||{};var n={valType:"info_array",editType:(e=e||{}).editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},o=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",s={x:r({},n,{description:["Sets the horizontal domain of this ",o,i,"(in plot fraction).",a].join("")}),y:r({},n,{description:["Sets the vertical domain of this ",o,i,"(in plot fraction).",a].join("")}),editType:e.editType};return e.noGridCell||(s.row={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this row in the grid for this ",o,i,".",a].join("")},s.column={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this column in the grid for this ",o,i,".",a].join("")}),s},t.defaults=function(e,t,n,r){var o=r&&r.x||[0,1],i=r&&r.y||[0,1],a=t.grid;if(a){var s=n("domain.column");void 0!==s&&(s<a.columns?o=a._domains.x[s]:delete e.domain.column);var l=n("domain.row");void 0!==l&&(l<a.rows?i=a._domains.y[l]:delete e.domain.row)}var c=n("domain.x",o),u=n("domain.y",i);c[0]<c[1]||(e.domain.x=o.slice()),u[0]<u[1]||(e.domain.y=i.slice())}},"./node_modules/plotly.js/src/plots/font_attributes.js":function(e,t,n){"use strict";e.exports=function(e){var t=e.variantValues,n=e.editType,r=e.colorEditType;void 0===r&&(r=n);var o={editType:n,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal",description:["Sets the weight (or boldness) of the font."].join(" ")};e.noNumericWeightValues&&(o.valType="enumerated",o.values=o.extras,o.extras=void 0,o.min=void 0,o.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:n,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",min:1,editType:n},color:{valType:"color",editType:r},weight:o,style:{editType:n,valType:"enumerated",values:["normal","italic"],dflt:"normal",description:["Sets whether a font should be styled with a normal or italic face from its family."].join(" ")},variant:e.noFontVariant?void 0:{editType:n,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal",description:["Sets the variant of the font."].join(" ")},textcase:e.noFontTextcase?void 0:{editType:n,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal",description:["Sets capitalization of text.","It can be used to make text appear in all-uppercase or all-lowercase,","or with each word capitalized."].join(" ")},lineposition:e.noFontLineposition?void 0:{editType:n,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none",description:["Sets the kind of decoration line(s) with text,","such as an *under*, *over* or *through*","as well as combinations e.g. *under+over*, etc."].join(" ")},shadow:e.noFontShadow?void 0:{editType:n,valType:"string",dflt:e.autoShadowDflt?"auto":"none",description:["Sets the shape and color of the shadow behind text.","*auto* places minimal shadow and applies contrast text font color.","See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options."].join(" ")},editType:n,description:""+(e.description||"")};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}},"./node_modules/plotly.js/src/plots/frame_attributes.js":function(e,t,n){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",description:"A label by which to identify the frame"},traces:{valType:"any",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},"./node_modules/plotly.js/src/plots/get_data.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/constants.js").SUBPLOT_PATTERN;t.getSubplotCalcData=function(e,t,n){var o=r.subplotsRegistry[t];if(!o)return[];for(var i=o.attr,a=[],s=0;s<e.length;s++){var l=e[s];l[0].trace[i]===n&&a.push(l)}return a},t.getModuleCalcData=function(e,t,n){var o,i=[],a=[];if(!(o="string"==typeof t?r.getModule(t).plot:"function"==typeof t?t:t.plot))return[i,e];for(var s=n,l=0;l<e.length;l++){var c=e[l],u=c[0].trace,d=void 0!==u.zorder;!0===u.visible&&0!==u._length&&(!u._module||u._module.plot!==o||d&&u.zorder!==s?a.push(c):i.push(c))}return[i,a]},t.getSubplotData=function(e,t,n){if(!r.subplotsRegistry[t])return[];var i,a,s,l=r.subplotsRegistry[t].attr,c=[];if("gl2d"===t){var u=n.match(o);a="x"+u[1],s="y"+u[2]}for(var d=0;d<e.length;d++)i=e[d],"gl2d"===t&&r.traceIs(i,"gl2d")?i[l[0]]===a&&i[l[1]]===s&&c.push(i):i[l]===n&&c.push(i);return c}},"./node_modules/plotly.js/src/plots/gl3d/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plot_api/edit_types.js").overrideAll,o=n("./node_modules/plotly.js/src/components/fx/layout_attributes.js"),i=n("./node_modules/plotly.js/src/plots/gl3d/scene.js"),a=n("./node_modules/plotly.js/src/plots/get_data.js").getSubplotData,s=n("./node_modules/plotly.js/src/lib/index.js"),l=n("./node_modules/plotly.js/src/constants/xmlns_namespaces.js");t.name="gl3d",t.attr="scene",t.idRoot="scene",t.idRegex=t.attrRegex=s.counterRegex("scene"),t.attributes=n("./node_modules/plotly.js/src/plots/gl3d/layout/attributes.js"),t.layoutAttributes=n("./node_modules/plotly.js/src/plots/gl3d/layout/layout_attributes.js"),t.baseLayoutAttrOverrides=r({hoverlabel:o.hoverlabel},"plot","nested"),t.supplyLayoutDefaults=n("./node_modules/plotly.js/src/plots/gl3d/layout/defaults.js"),t.plot=function(e){for(var t=e._fullLayout,n=e._fullData,r=t._subplots.gl3d,o=0;o<r.length;o++){var s=r[o],l=a(n,"gl3d",s),c=t[s],u=c.camera,d=c._scene;d||(d=new i({id:s,graphDiv:e,container:e.querySelector(".gl-container"),staticPlot:e._context.staticPlot,plotGlPixelRatio:e._context.plotGlPixelRatio,camera:u},t),c._scene=d),d.viewInitial||(d.viewInitial={up:{x:u.up.x,y:u.up.y,z:u.up.z},eye:{x:u.eye.x,y:u.eye.y,z:u.eye.z},center:{x:u.center.x,y:u.center.y,z:u.center.z}}),d.plot(l,t,e.layout)}},t.clean=function(e,t,n,r){for(var o=r._subplots.gl3d||[],i=0;i<o.length;i++){var a=o[i];!t[a]&&r[a]._scene&&(r[a]._scene.destroy(),r._infolayer&&r._infolayer.selectAll(".annotation-"+a).remove())}},t.toSVG=function(e){for(var t=e._fullLayout,n=t._subplots.gl3d,r=t._size,o=0;o<n.length;o++){var i=t[n[o]],a=i.domain,s=i._scene,c=s.toImage("png");t._glimages.append("svg:image").attr({xmlns:l.svg,"xlink:href":c,x:r.l+r.w*a.x[0],y:r.t+r.h*(1-a.y[1]),width:r.w*(a.x[1]-a.x[0]),height:r.h*(a.y[1]-a.y[0]),preserveAspectRatio:"none"}),s.destroy()}},t.cleanId=function(e){if(e.match(/^scene[0-9]*$/)){var t=e.substr(5);return"1"===t&&(t=""),"scene"+t}},t.updateFx=function(e){for(var t=e._fullLayout,n=t._subplots.gl3d,r=0;r<n.length;r++){t[n[r]]._scene.updateFx(t.dragmode,t.hovermode)}}},"./node_modules/plotly.js/src/plots/gl3d/layout/attributes.js":function(e,t,n){"use strict";e.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's 3D coordinate system and","a 3D scene.","If *scene* (the default value), the (x,y,z) coordinates refer to","`layout.scene`.","If *scene2*, the (x,y,z) coordinates refer to `layout.scene2`,","and so on."].join(" ")}}},"./node_modules/plotly.js/src/plots/gl3d/layout/axis_attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/color/index.js"),o=n("./node_modules/plotly.js/src/plots/cartesian/layout_attributes.js"),i=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,a=n("./node_modules/plotly.js/src/plot_api/edit_types.js").overrideAll;e.exports=a({visible:o.visible,showspikes:{valType:"boolean",dflt:!0,description:["Sets whether or not spikes starting from","data points to this axis' wall are shown on hover."].join(" ")},spikesides:{valType:"boolean",dflt:!0,description:["Sets whether or not spikes extending from the","projection data points to this axis' wall boundaries","are shown on hover."].join(" ")},spikethickness:{valType:"number",min:0,dflt:2,description:"Sets the thickness (in px) of the spikes."},spikecolor:{valType:"color",dflt:r.defaultLine,description:"Sets the color of the spikes."},showbackground:{valType:"boolean",dflt:!1,description:["Sets whether or not this axis' wall","has a background color."].join(" ")},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)",description:"Sets the background color of this axis' wall."},showaxeslabels:{valType:"boolean",dflt:!0,description:"Sets whether or not this axis is labeled"},color:o.color,categoryorder:o.categoryorder,categoryarray:o.categoryarray,title:{text:o.title.text,font:o.title.font},type:i({},o.type,{values:["-","linear","log","date","category"]}),autotypenumbers:o.autotypenumbers,autorange:o.autorange,autorangeoptions:{minallowed:o.autorangeoptions.minallowed,maxallowed:o.autorangeoptions.maxallowed,clipmin:o.autorangeoptions.clipmin,clipmax:o.autorangeoptions.clipmax,include:o.autorangeoptions.include,editType:"plot"},rangemode:o.rangemode,minallowed:o.minallowed,maxallowed:o.maxallowed,range:i({},o.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:o.minor.tickmode,nticks:o.nticks,tick0:o.tick0,dtick:o.dtick,tickvals:o.tickvals,ticktext:o.ticktext,ticks:o.ticks,mirror:o.mirror,ticklen:o.ticklen,tickwidth:o.tickwidth,tickcolor:o.tickcolor,showticklabels:o.showticklabels,labelalias:o.labelalias,tickfont:o.tickfont,tickangle:o.tickangle,tickprefix:o.tickprefix,showtickprefix:o.showtickprefix,ticksuffix:o.ticksuffix,showticksuffix:o.showticksuffix,showexponent:o.showexponent,exponentformat:o.exponentformat,minexponent:o.minexponent,separatethousands:o.separatethousands,tickformat:o.tickformat,tickformatstops:o.tickformatstops,hoverformat:o.hoverformat,showline:o.showline,linecolor:o.linecolor,linewidth:o.linewidth,showgrid:o.showgrid,gridcolor:i({},o.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:o.gridwidth,zeroline:o.zeroline,zerolinecolor:o.zerolinecolor,zerolinewidth:o.zerolinewidth,_deprecated:{title:o._deprecated.title,titlefont:o._deprecated.titlefont}},"plot","from-root")},"./node_modules/plotly.js/src/plots/gl3d/layout/axis_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/tinycolor2/cjs/tinycolor.js").mix,o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),a=n("./node_modules/plotly.js/src/plots/gl3d/layout/axis_attributes.js"),s=n("./node_modules/plotly.js/src/plots/cartesian/type_defaults.js"),l=n("./node_modules/plotly.js/src/plots/cartesian/axis_defaults.js"),c=["xaxis","yaxis","zaxis"];e.exports=function(e,t,n){var u,d;function f(e,t){return o.coerce(u,d,a,e,t)}for(var h=0;h<c.length;h++){var p=c[h];u=e[p]||{},(d=i.newContainer(t,p))._id=p[0]+n.scene,d._name=p,s(u,d,f,n),l(u,d,f,{font:n.font,letter:p[0],data:n.data,showGrid:!0,noAutotickangles:!0,noTicklabelindex:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,bgColor:n.bgColor,calendar:n.calendar},n.fullLayout),f("gridcolor",r(d.color,n.bgColor,13600/187).toRgbString()),f("title.text",p[0]),d.setScale=o.noop,f("showspikes")&&(f("spikesides"),f("spikethickness"),f("spikecolor",d.color)),f("showaxeslabels"),f("showbackground")&&f("backgroundcolor")}}},"./node_modules/plotly.js/src/plots/gl3d/layout/convert.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/str2rgbarray.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=["xaxis","yaxis","zaxis"];function a(){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()}a.prototype.merge=function(e,t){for(var n=0;n<3;++n){var a=t[i[n]];a.visible?(this.labels[n]=e._meta?o.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(this.labelColor[n]=r(a.title.font.color)),a.title.font.family&&(this.labelFont[n]=a.title.font.family),a.title.font.size&&(this.labelSize[n]=a.title.font.size),a.title.font.weight&&(this.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(this.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(this.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(this.lineEnable[n]=a.showline),"linecolor"in a&&(this.lineColor[n]=r(a.linecolor)),"linewidth"in a&&(this.lineWidth[n]=a.linewidth),"showgrid"in a&&(this.gridEnable[n]=a.showgrid),"gridcolor"in a&&(this.gridColor[n]=r(a.gridcolor)),"gridwidth"in a&&(this.gridWidth[n]=a.gridwidth),"log"===a.type?this.zeroEnable[n]=!1:"zeroline"in a&&(this.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(this.zeroLineColor[n]=r(a.zerolinecolor)),"zerolinewidth"in a&&(this.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?this.lineTickEnable[n]=!0:this.lineTickEnable[n]=!1,"ticklen"in a&&(this.lineTickLength[n]=this._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(this.lineTickColor[n]=r(a.tickcolor)),"tickwidth"in a&&(this.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(this.tickAngle[n]="auto"===a.tickangle?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(this.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(this.tickColor[n]=r(a.tickfont.color)),a.tickfont.family&&(this.tickFont[n]=a.tickfont.family),a.tickfont.size&&(this.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(this.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(this.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(this.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?-1!==["ticks","all","allticks"].indexOf(a.mirror)?(this.lineTickMirror[n]=!0,this.lineMirror[n]=!0):!0===a.mirror?(this.lineTickMirror[n]=!1,this.lineMirror[n]=!0):(this.lineTickMirror[n]=!1,this.lineMirror[n]=!1):this.lineMirror[n]=!1,"showbackground"in a&&!1!==a.showbackground?(this.backgroundEnable[n]=!0,this.backgroundColor[n]=r(a.backgroundcolor)):this.backgroundEnable[n]=!1):(this.tickEnable[n]=!1,this.labelEnable[n]=!1,this.lineEnable[n]=!1,this.lineTickEnable[n]=!1,this.gridEnable[n]=!1,this.zeroEnable[n]=!1,this.backgroundEnable[n]=!1)}},e.exports=function(e,t){var n=new a;return n.merge(e,t),n}},"./node_modules/plotly.js/src/plots/gl3d/layout/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/color/index.js"),i=n("./node_modules/plotly.js/src/registry.js"),a=n("./node_modules/plotly.js/src/plots/subplot_defaults.js"),s=n("./node_modules/plotly.js/src/plots/gl3d/layout/axis_defaults.js"),l=n("./node_modules/plotly.js/src/plots/gl3d/layout/layout_attributes.js"),c=n("./node_modules/plotly.js/src/plots/get_data.js").getSubplotData;function u(e,t,n,r){for(var a=n("bgcolor"),l=o.combine(a,r.paper_bgcolor),u=["up","center","eye"],d=0;d<u.length;d++)n("camera."+u[d]+".x"),n("camera."+u[d]+".y"),n("camera."+u[d]+".z");n("camera.projection.type");var f=!!n("aspectratio.x")&&!!n("aspectratio.y")&&!!n("aspectratio.z"),h=n("aspectmode",f?"manual":"auto");f||(e.aspectratio=t.aspectratio={x:1,y:1,z:1},"manual"===h&&(t.aspectmode="auto"),e.aspectmode=t.aspectmode);var p=c(r.fullData,"gl3d",r.id);s(e,t,{font:r.font,scene:r.id,data:p,bgColor:l,calendar:r.calendar,autotypenumbersDflt:r.autotypenumbersDflt,fullLayout:r.fullLayout}),i.getComponentMethod("annotations3d","handleDefaults")(e,t,r);var m=r.getDfltFromLayout("dragmode");if(!1!==m&&!m)if(m="orbit",e.camera&&e.camera.up){var g=e.camera.up.x,v=e.camera.up.y,y=e.camera.up.z;0!==y&&(g&&v&&y?y/Math.sqrt(g*g+v*v+y*y)>.999&&(m="turntable"):m="turntable")}else m="turntable";n("dragmode",m),n("hovermode",r.getDfltFromLayout("hovermode"))}e.exports=function(e,t,n){var o=t._basePlotModules.length>1;a(e,t,n,{type:"gl3d",attributes:l,handleDefaults:u,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:function(t){if(!o)return r.validate(e[t],l[t])?e[t]:void 0},autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})}},"./node_modules/plotly.js/src/plots/gl3d/layout/layout_attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/gl3d/layout/axis_attributes.js"),o=n("./node_modules/plotly.js/src/plots/domain.js").attributes,i=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,a=n("./node_modules/plotly.js/src/lib/index.js").counterRegex;function s(e,t,n){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:n,editType:"camera"},editType:"camera"}}e.exports={_arrayAttrRegexps:[a("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:i(s(0,0,1),{description:["Sets the (x,y,z) components of the 'up' camera vector.","This vector determines the up direction of this scene","with respect to the page.","The default is *{x: 0, y: 0, z: 1}* which means that","the z axis points up."].join(" ")}),center:i(s(0,0,0),{description:["Sets the (x,y,z) components of the 'center' camera vector","This vector determines the translation (x,y,z) space","about the center of this scene.","By default, there is no such translation."].join(" ")}),eye:i(s(1.25,1.25,1.25),{description:["Sets the (x,y,z) components of the 'eye' camera vector.","This vector determines the view point about the origin","of this scene."].join(" ")}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc",description:["Sets the projection type. The projection type could be","either *perspective* or *orthographic*. The default is","*perspective*."].join(" ")},editType:"calc"},editType:"camera"},domain:o({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},description:["If *cube*, this scene's axes are drawn as a cube,","regardless of the axes' ranges.","If *data*, this scene's axes are drawn","in proportion with the axes' ranges.","If *manual*, this scene's axes are drawn","in proportion with the input of *aspectratio*","(the default behavior if *aspectratio* is provided).","If *auto*, this scene's axes are drawn","using the results of *data* except when one axis","is more than four times the size of the two others,","where in that case the results of *cube* are used."].join(" ")},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"},description:["Sets this scene's axis aspectratio."].join(" ")},xaxis:r,yaxis:r,zaxis:r,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot",description:["Determines the mode of drag interactions for this scene."].join(" ")},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar",description:["Determines the mode of hover interactions for this scene."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in camera attributes.","Defaults to `layout.uirevision`."].join(" ")},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera",description:"Obsolete. Use `camera` instead."}}}},"./node_modules/plotly.js/src/plots/gl3d/layout/spikes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/str2rgbarray.js"),o=["xaxis","yaxis","zaxis"];function i(){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]}i.prototype.merge=function(e){for(var t=0;t<3;++t){var n=e[o[t]];n.visible?(this.enabled[t]=n.showspikes,this.colors[t]=r(n.spikecolor),this.drawSides[t]=n.spikesides,this.lineWidth[t]=n.spikethickness):(this.enabled[t]=!1,this.drawSides[t]=!1)}},e.exports=function(e){var t=new i;return t.merge(e),t}},"./node_modules/plotly.js/src/plots/gl3d/layout/tick_marks.js":function(e,t,n){"use strict";e.exports=function(e){for(var t=e.axesOptions,n=e.glplot.axesPixels,s=e.fullSceneLayout,l=[[],[],[]],c=0;c<3;++c){var u=s[i[c]];if(u._length=(n[c].hi-n[c].lo)*n[c].pixelsPerDataUnit/e.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=n[c].lo/e.dataScale[c],u.range[1]=n[c].hi/e.dataScale[c],u._m=1/(e.dataScale[c]*n[c].pixelsPerDataUnit),u.range[0]===u.range[1]&&(u.range[0]-=1,u.range[1]+=1);var d=u.tickmode;if("auto"===u.tickmode){u.tickmode="linear";var f=u.nticks||o.constrain(u._length/40,4,9);r.autoTicks(u,Math.abs(u.range[1]-u.range[0])/f)}for(var h=r.calcTicks(u,{msUTC:!0}),p=0;p<h.length;++p)h[p].x=h[p].x*e.dataScale[c],"date"===u.type&&(h[p].text=h[p].text.replace(/\<br\>/g," "));l[c]=h,u.tickmode=d}}t.ticks=l;for(c=0;c<3;++c){a[c]=.5*(e.glplot.bounds[0][c]+e.glplot.bounds[1][c]);for(p=0;p<2;++p)t.bounds[p][c]=e.glplot.bounds[p][c]}e.contourLevels=function(e){for(var t=new Array(3),n=0;n<3;++n){for(var r=e[n],o=new Array(r.length),i=0;i<r.length;++i)o[i]=r[i].x;t[n]=o}return t}(l)};var r=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=["xaxis","yaxis","zaxis"],a=[0,0,0]},"./node_modules/plotly.js/src/plots/gl3d/project.js":function(e,t,n){"use strict";function r(e,t){var n,r,o=[0,0,0,0];for(n=0;n<4;++n)for(r=0;r<4;++r)o[r]+=e[4*n+r]*t[n];return o}e.exports=function(e,t){return r(e.projection,r(e.view,r(e.model,[t[0],t[1],t[2],1])))}},"./node_modules/plotly.js/src/plots/gl3d/scene.js":function(e,t,n){"use strict";var r,o,i=n("./node_modules/plotly.js/stackgl_modules/index.js").gl_plot3d,a=i.createCamera,s=i.createScene,l=n("./node_modules/webgl-context/index.js"),c=n("./node_modules/has-passive-events/index.js"),u=n("./node_modules/plotly.js/src/registry.js"),d=n("./node_modules/plotly.js/src/lib/index.js"),f=d.preserveDrawingBuffer(),h=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),p=n("./node_modules/plotly.js/src/components/fx/index.js"),m=n("./node_modules/plotly.js/src/lib/str2rgbarray.js"),g=n("./node_modules/plotly.js/src/lib/show_no_webgl_msg.js"),v=n("./node_modules/plotly.js/src/plots/gl3d/project.js"),y=n("./node_modules/plotly.js/src/plots/gl3d/layout/convert.js"),b=n("./node_modules/plotly.js/src/plots/gl3d/layout/spikes.js"),x=n("./node_modules/plotly.js/src/plots/gl3d/layout/tick_marks.js"),_=n("./node_modules/plotly.js/src/plots/cartesian/autorange.js").applyAutorangeOptions,w=!1;function j(e,t){var n=document.createElement("div"),r=e.container;this.graphDiv=e.graphDiv;var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.style.position="absolute",o.style.top=o.style.left="0px",o.style.width=o.style.height="100%",o.style["z-index"]=20,o.style["pointer-events"]="none",n.appendChild(o),this.svgContainer=o,n.id=e.id,n.style.position="absolute",n.style.top=n.style.left="0px",n.style.width=n.style.height="100%",r.appendChild(n),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(t,t[this.id]),this.spikeOptions=b(t[this.id]),this.container=n,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod("annotations3d","convert"),this.drawAnnotations=u.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var k=j.prototype;k.prepareOptions=function(){var e={canvas:this.canvas,gl:this.gl,glOptions:{preserveDrawingBuffer:f,premultipliedAlpha:!0,antialias:!0},container:this.container,axes:this.axesOptions,spikes:this.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:this.camera,pixelRatio:this.pixelRatio};if(this.staticMode){if(!(o||(r=document.createElement("canvas"),o=l({canvas:r,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error("error creating static canvas/context for image server");e.gl=o,e.canvas=r}return e};var T=!0;k.tryCreatePlot=function(){var e=this.prepareOptions(),t=!0;try{this.glplot=s(e)}catch(n){if(this.staticMode||!T||f)t=!1;else{d.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{f=e.glOptions.preserveDrawingBuffer=!0,this.glplot=s(e)}catch(n){f=e.glOptions.preserveDrawingBuffer=!1,t=!1}}}return T=!1,t},k.initializeGLCamera=function(){var e=this.fullSceneLayout.camera,t="orthographic"===e.projection.type;this.camera=a(this.container,{center:[e.center.x,e.center.y,e.center.z],eye:[e.eye.x,e.eye.y,e.eye.z],up:[e.up.x,e.up.y,e.up.z],_ortho:t,zoomMin:.01,zoomMax:100,mode:"orbit"})},k.initializeGLPlot=function(){var e=this;if(e.initializeGLCamera(),!e.tryCreatePlot())return g(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,r=function(){var t={};return e.isCameraChanged(n)&&(t[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(t[e.id+".aspectratio"]=e.glplot.getAspectratio(),"manual"!==n[e.id].aspectmode&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=t[e.id+".aspectmode"]="manual")),t},o=function(e){if(!1!==e.fullSceneLayout.dragmode){var t=r();e.saveLayout(n),e.graphDiv.emit("plotly_relayout",t)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",(function(){o(e)})),e.glplot.canvas.addEventListener("touchstart",(function(){w=!0})),e.glplot.canvas.addEventListener("wheel",(function(n){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var r=n.deltaX>n.deltaY?1.1:1/1.1,i=e.glplot.getAspectratio();e.glplot.setAspectratio({x:r*i.x,y:r*i.y,z:r*i.z})}o(e)}}),!!c&&{passive:!1}),e.glplot.canvas.addEventListener("mousemove",(function(){if(!1!==e.fullSceneLayout.dragmode&&0!==e.camera.mouseListener.buttons){var t=r();e.graphDiv.emit("plotly_relayouting",t)}})),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",(function(n){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:n,layer:e.id})}),!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0},k.render=function(){var e,t=this,n=t.graphDiv,r=t.svgContainer,o=t.container.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var i=n._fullLayout._invScaleX,a=n._fullLayout._invScaleY,s=o.width*i,l=o.height*a;r.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),r.setAttributeNS(null,"width",s),r.setAttributeNS(null,"height",l),x(t),t.glplot.axes.update(t.axesOptions);for(var c=Object.keys(t.traces),u=null,f=t.glplot.selection,m=0;m<c.length;++m)"skip"!==(e=t.traces[c[m]]).data.hoverinfo&&e.handlePick(f)&&(u=e),e.setContourLevels&&e.setContourLevels();function g(e,n,r){var o=t.fullSceneLayout[e+"axis"];return"log"!==o.type&&(n=o.d2l(n)),h.hoverLabelText(o,n,r)}if(null!==u){var y=v(t.glplot.cameraParams,f.dataCoordinate);e=u.data;var b,_=n._fullData[e.index],j=f.index,k={xLabel:g("x",f.traceCoordinate[0],e.xhoverformat),yLabel:g("y",f.traceCoordinate[1],e.yhoverformat),zLabel:g("z",f.traceCoordinate[2],e.zhoverformat)},T=p.castHoverinfo(_,t.fullLayout,j),A=(T||"").split("+"),M=T&&"all"===T;_.hovertemplate||M||(-1===A.indexOf("x")&&(k.xLabel=void 0),-1===A.indexOf("y")&&(k.yLabel=void 0),-1===A.indexOf("z")&&(k.zLabel=void 0),-1===A.indexOf("text")&&(f.textLabel=void 0),-1===A.indexOf("name")&&(u.name=void 0));var S=[];"cone"===e.type||"streamtube"===e.type?(k.uLabel=g("x",f.traceCoordinate[3],e.uhoverformat),(M||-1!==A.indexOf("u"))&&S.push("u: "+k.uLabel),k.vLabel=g("y",f.traceCoordinate[4],e.vhoverformat),(M||-1!==A.indexOf("v"))&&S.push("v: "+k.vLabel),k.wLabel=g("z",f.traceCoordinate[5],e.whoverformat),(M||-1!==A.indexOf("w"))&&S.push("w: "+k.wLabel),k.normLabel=f.traceCoordinate[6].toPrecision(3),(M||-1!==A.indexOf("norm"))&&S.push("norm: "+k.normLabel),"streamtube"===e.type&&(k.divergenceLabel=f.traceCoordinate[7].toPrecision(3),(M||-1!==A.indexOf("divergence"))&&S.push("divergence: "+k.divergenceLabel)),f.textLabel&&S.push(f.textLabel),b=S.join("<br>")):"isosurface"===e.type||"volume"===e.type?(k.valueLabel=h.hoverLabelText(t._mockAxis,t._mockAxis.d2l(f.traceCoordinate[3]),e.valuehoverformat),S.push("value: "+k.valueLabel),f.textLabel&&S.push(f.textLabel),b=S.join("<br>")):b=f.textLabel;var C={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:_._input,fullData:_,curveNumber:_.index,pointNumber:j};p.appendArrayPointValue(C,_,j),e._module.eventData&&(C=_._module.eventData(C,f,_,{},j));var E={points:[C]};if(t.fullSceneLayout.hovermode){var L=[];p.loneHover({trace:_,x:(.5+.5*y[0]/y[3])*s,y:(.5-.5*y[1]/y[3])*l,xLabel:k.xLabel,yLabel:k.yLabel,zLabel:k.zLabel,text:b,name:u.name,color:p.castHoverOption(_,j,"bgcolor")||u.color,borderColor:p.castHoverOption(_,j,"bordercolor"),fontFamily:p.castHoverOption(_,j,"font.family"),fontSize:p.castHoverOption(_,j,"font.size"),fontColor:p.castHoverOption(_,j,"font.color"),nameLength:p.castHoverOption(_,j,"namelength"),textAlign:p.castHoverOption(_,j,"align"),hovertemplate:d.castOption(_,j,"hovertemplate"),hovertemplateLabels:d.extendFlat({},C,k),eventData:[C]},{container:r,gd:n,inOut_bbox:L}),C.bbox=L[0]}f.distance<5&&(f.buttons||w)?n.emit("plotly_click",E):n.emit("plotly_hover",E),this.oldEventData=E}else p.loneUnhover(r),this.oldEventData&&n.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;t.drawAnnotations(t)},k.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){e.glplot.gl.isContextLost()?requestAnimationFrame(t):e.initializeGLPlot()?e.plot.apply(e,e.plotArgs):d.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame(t)};var A=["xaxis","yaxis","zaxis"];function M(e,t,n){for(var r=e.fullSceneLayout,o=0;o<3;o++){var i=A[o],a=i.charAt(0),s=r[i],l=t[a],c=t[a+"calendar"],u=t["_"+a+"length"];if(d.isArrayOrTypedArray(l))for(var f,h=0;h<(u||l.length);h++)if(d.isArrayOrTypedArray(l[h]))for(var p=0;p<l[h].length;++p)f=s.d2l(l[h][p],0,c),!isNaN(f)&&isFinite(f)&&(n[0][o]=Math.min(n[0][o],f),n[1][o]=Math.max(n[1][o],f));else f=s.d2l(l[h],0,c),!isNaN(f)&&isFinite(f)&&(n[0][o]=Math.min(n[0][o],f),n[1][o]=Math.max(n[1][o],f));else n[0][o]=Math.min(n[0][o],0),n[1][o]=Math.max(n[1][o],u-1)}}k.plot=function(e,t,n){if(this.plotArgs=[e,t,n],!this.glplot.contextLost){var r,o,i,a,s,l,c=t[this.id],u=n[this.id];this.fullLayout=t,this.fullSceneLayout=c,this.axesOptions.merge(t,c),this.spikeOptions.merge(c),this.setViewport(c),this.updateFx(c.dragmode,c.hovermode),this.camera.enableWheel=this.graphDiv._context._scrollZoom.gl3d,this.glplot.setClearColor(m(c.bgcolor)),this.setConvert(s),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)!0===(r=e[i]).visible&&0!==r._length&&M(this,r,d);!function(e,t){for(var n=e.fullSceneLayout,r=n.annotations||[],o=0;o<3;o++)for(var i=A[o],a=i.charAt(0),s=n[i],l=0;l<r.length;l++){var c=r[l];if(c.visible){var u=s.r2l(c[a]);!isNaN(u)&&isFinite(u)&&(t[0][o]=Math.min(t[0][o],u),t[1][o]=Math.max(t[1][o],u))}}}(this,d);var f=[1,1,1];for(a=0;a<3;++a)d[1][a]===d[0][a]?f[a]=1:f[a]=1/(d[1][a]-d[0][a]);for(this.dataScale=f,this.convertAnnotations(this),i=0;i<e.length;++i)!0===(r=e[i]).visible&&0!==r._length&&((o=this.traces[r.uid])?o.data.type===r.type?o.update(r):(o.dispose(),o=r._module.plot(this,r),this.traces[r.uid]=o):(o=r._module.plot(this,r),this.traces[r.uid]=o),o.name=r.name);var h=Object.keys(this.traces);e:for(i=0;i<h.length;++i){for(a=0;a<e.length;++a)if(e[a].uid===h[i]&&!0===e[a].visible&&0!==e[a]._length)continue e;(o=this.traces[h[i]]).dispose(),delete this.traces[h[i]]}this.glplot.objects.sort((function(e,t){return e._trace.data.index-t._trace.data.index}));var p,g=[[0,0,0],[0,0,0]],v=[],y={};for(i=0;i<3;++i){var b;if((l=(s=c[A[i]]).type)in y?(y[l].acc*=f[i],y[l].count+=1):y[l]={acc:f[i],count:1},s.autorange){g[0][i]=1/0,g[1][i]=-1/0;var x=this.glplot.objects,w=this.fullSceneLayout.annotations||[],j=s._name.charAt(0);for(a=0;a<x.length;a++){var k=x[a],T=k.bounds,S=k._trace.data._pad||0;"ErrorBars"===k.constructor.name&&s._lowerLogErrorBound?g[0][i]=Math.min(g[0][i],s._lowerLogErrorBound):g[0][i]=Math.min(g[0][i],T[0][i]/f[i]-S),g[1][i]=Math.max(g[1][i],T[1][i]/f[i]+S)}for(a=0;a<w.length;a++){var C=w[a];if(C.visible){var E=s.r2l(C[j]);g[0][i]=Math.min(g[0][i],E),g[1][i]=Math.max(g[1][i],E)}}if("rangemode"in s&&"tozero"===s.rangemode&&(g[0][i]=Math.min(g[0][i],0),g[1][i]=Math.max(g[1][i],0)),g[0][i]>g[1][i])g[0][i]=-1,g[1][i]=1;else{var L=g[1][i]-g[0][i];g[0][i]-=L/32,g[1][i]+=L/32}if(b=[g[0][i],g[1][i]],b=_(b,s),g[0][i]=b[0],g[1][i]=b[1],s.isReversed()){var O=g[0][i];g[0][i]=g[1][i],g[1][i]=O}}else b=s.range,g[0][i]=s.r2l(b[0]),g[1][i]=s.r2l(b[1]);g[0][i]===g[1][i]&&(g[0][i]-=1,g[1][i]+=1),v[i]=g[1][i]-g[0][i],s.range=[g[0][i],g[1][i]],s.limitRange(),this.glplot.setBounds(i,{min:s.range[0]*f[i],max:s.range[1]*f[i]})}var R=c.aspectmode;if("cube"===R)p=[1,1,1];else if("manual"===R){var I=c.aspectratio;p=[I.x,I.y,I.z]}else{if("auto"!==R&&"data"!==R)throw new Error("scene.js aspectRatio was not one of the enumerated types");var P=[1,1,1];for(i=0;i<3;++i){var D=y[l=(s=c[A[i]]).type];P[i]=Math.pow(D.acc,1/D.count)/f[i]}p="data"===R||Math.max.apply(null,P)/Math.min.apply(null,P)<=4?P:[1,1,1]}c.aspectratio.x=u.aspectratio.x=p[0],c.aspectratio.y=u.aspectratio.y=p[1],c.aspectratio.z=u.aspectratio.z=p[2],this.glplot.setAspectratio(c.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),this.viewInitial.aspectmode||(this.viewInitial.aspectmode=c.aspectmode);var z=c.domain||null,N=t._size||null;if(z&&N){var F=this.container.style;F.position="absolute",F.left=N.l+z.x[0]*N.w+"px",F.top=N.t+(1-z.y[1])*N.h+"px",F.width=N.w*(z.x[1]-z.x[0])+"px",F.height=N.h*(z.y[1]-z.y[0])+"px"}this.glplot.redraw()}},k.destroy=function(){this.glplot&&(this.camera.mouseListener.enabled=!1,this.container.removeEventListener("wheel",this.camera.wheelListener),this.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},k.getCamera=function(){var e;return this.camera.view.recalcMatrix(this.camera.view.lastT()),{up:{x:(e=this.camera).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:!0===e._ortho?"orthographic":"perspective"}}},k.setViewport=function(e){var t,n=e.camera;this.camera.lookAt.apply(this,[[(t=n).eye.x,t.eye.y,t.eye.z],[t.center.x,t.center.y,t.center.z],[t.up.x,t.up.y,t.up.z]]),this.glplot.setAspectratio(e.aspectratio),"orthographic"===n.projection.type!==this.camera._ortho&&(this.glplot.redraw(),this.glplot.clearRGBA(),this.glplot.dispose(),this.initializeGLPlot())},k.isCameraChanged=function(e){var t=this.getCamera(),n=d.nestedProperty(e,this.id+".camera").get();function r(e,t,n,r){var o=["up","center","eye"],i=["x","y","z"];return t[o[n]]&&e[o[n]][i[r]]===t[o[n]][i[r]]}var o=!1;if(void 0===n)o=!0;else{for(var i=0;i<3;i++)for(var a=0;a<3;a++)if(!r(t,n,i,a)){o=!0;break}(!n.projection||t.projection&&t.projection.type!==n.projection.type)&&(o=!0)}return o},k.isAspectChanged=function(e){var t=this.glplot.getAspectratio(),n=d.nestedProperty(e,this.id+".aspectratio").get();return void 0===n||n.x!==t.x||n.y!==t.y||n.z!==t.z},k.saveLayout=function(e){var t,n,r,o,i,a,s=this.fullLayout,l=this.isCameraChanged(e),c=this.isAspectChanged(e),f=l||c;if(f){var h={};if(l&&(t=this.getCamera(),r=(n=d.nestedProperty(e,this.id+".camera")).get(),h[this.id+".camera"]=r),c&&(o=this.glplot.getAspectratio(),a=(i=d.nestedProperty(e,this.id+".aspectratio")).get(),h[this.id+".aspectratio"]=a),u.call("_storeDirectGUIEdit",e,s._preGUI,h),l)n.set(t),d.nestedProperty(s,this.id+".camera").set(t);if(c)i.set(o),d.nestedProperty(s,this.id+".aspectratio").set(o),this.glplot.redraw()}return f},k.updateFx=function(e,t){var n=this.camera;if(n)if("orbit"===e)n.mode="orbit",n.keyBindingMode="rotate";else if("turntable"===e){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var r=this.graphDiv,o=r._fullLayout,i=this.fullSceneLayout.camera,a=i.up.x,s=i.up.y,l=i.up.z;if(l/Math.sqrt(a*a+s*s+l*l)<.999){var c=this.id+".camera.up",f={x:0,y:0,z:1},h={};h[c]=f;var p=r.layout;u.call("_storeDirectGUIEdit",p,o._preGUI,h),i.up=f,d.nestedProperty(p,c).set(f)}}else n.keyBindingMode=e;this.fullSceneLayout.hovermode=t},k.toImage=function(e){e||(e="png"),this.staticMode&&this.container.appendChild(r),this.glplot.redraw();var t=this.glplot.gl,n=t.drawingBufferWidth,o=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var i=new Uint8Array(n*o*4);t.readPixels(0,0,n,o,t.RGBA,t.UNSIGNED_BYTE,i),function(e,t,n){for(var r=0,o=n-1;r<o;++r,--o)for(var i=0;i<t;++i)for(var a=0;a<4;++a){var s=4*(t*r+i)+a,l=4*(t*o+i)+a,c=e[s];e[s]=e[l],e[l]=c}}(i,n,o),function(e,t,n){for(var r=0;r<n;++r)for(var o=0;o<t;++o){var i=4*(t*r+o),a=e[i+3];if(a>0)for(var s=255/a,l=0;l<3;++l)e[i+l]=Math.min(s*e[i+l],255)}}(i,n,o);var a=document.createElement("canvas");a.width=n,a.height=o;var s,l=a.getContext("2d",{willReadFrequently:!0}),c=l.createImageData(n,o);switch(c.data.set(i),l.putImageData(c,0,0),e){case"jpeg":s=a.toDataURL("image/jpeg");break;case"webp":s=a.toDataURL("image/webp");break;default:s=a.toDataURL("image/png")}return this.staticMode&&this.container.removeChild(r),s},k.setConvert=function(){for(var e=0;e<3;e++){var t=this.fullSceneLayout[A[e]];h.setConvert(t,this.fullLayout),t.setScale=d.noop}},k.make4thDimension=function(){var e=this.graphDiv._fullLayout;this._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},h.setConvert(this._mockAxis,e)},e.exports=j},"./node_modules/plotly.js/src/plots/layout_attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/font_attributes.js"),o=n("./node_modules/plotly.js/src/plots/animation_attributes.js"),i=n("./node_modules/plotly.js/src/components/color/attributes.js"),a=n("./node_modules/plotly.js/src/components/shapes/draw_newshape/attributes.js"),s=n("./node_modules/plotly.js/src/components/selections/draw_newselection/attributes.js"),l=n("./node_modules/plotly.js/src/plots/pad_attributes.js"),c=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,u=r({editType:"calc",description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")});u.family.dflt='"Open Sans", verdana, arial, sans-serif',u.size.dflt=12,u.color.dflt=i.defaultLine,e.exports={font:u,title:{text:{valType:"string",editType:"layoutstyle",description:["Sets the plot's title.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:r({editType:"layoutstyle",description:["Sets the title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),subtitle:{text:{valType:"string",editType:"layoutstyle",description:"Sets the plot's subtitle."},font:r({editType:"layoutstyle",description:"Sets the subtitle font."}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle",description:["Sets the x position with respect to `xref` in normalized","coordinates from *0* (left) to *1* (right)."].join(" ")},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle",description:["Sets the y position with respect to `yref` in normalized","coordinates from *0* (bottom) to *1* (top).","*auto* places the baseline of the title onto the","vertical center of the top margin."].join(" ")},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle",description:["Sets the title's horizontal alignment with respect to its x position.","*left* means that the title starts at x,","*right* means that the title ends at x","and *center* means that the title's center is at x.","*auto* divides `xref` by three and calculates the `xanchor`","value automatically based on the value of `x`."].join(" ")},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle",description:["Sets the title's vertical alignment with respect to its y position.","*top* means that the title's cap line is at y,","*bottom* means that the title's baseline is at y","and *middle* means that the title's midline is at y.","*auto* divides `yref` by three and calculates the `yanchor`","value automatically based on the value of `y`."].join(" ")},pad:c(l({editType:"layoutstyle"}),{description:["Sets the padding of the title.","Each padding value only applies when the corresponding","`xanchor`/`yanchor` value is set accordingly. E.g. for left","padding to take effect, `xanchor` must be set to *left*.","The same rule applies if `xanchor`/`yanchor` is determined automatically.","Padding is muted if the respective anchor value is *middle*/*center*."].join(" ")}),automargin:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether the title can automatically push the figure margins.","If `yref='paper'` then the margin will expand to ensure that the title doesnt","overlap with the edges of the container. If `yref='container'` then the margins","will ensure that the title doesnt overlap with the plot area, tick labels,","and axis titles. If `automargin=true` and the margins need to be expanded,","then y will be set to a default 1 and yanchor will be set to an appropriate","default to ensure that minimal margin space is needed. Note that when `yref='paper'`,","only 1 or 0 are allowed y values. Invalid values will be reset to the default 1."].join(" ")},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot",description:["Determines how the font size for various text","elements are uniformed between each trace type.","If the computed text sizes were smaller than","the minimum size defined by `uniformtext.minsize`","using *hide* option hides the text; and","using *show* option shows the text without further downscaling.","Please note that if the size defined by `minsize` is greater than","the font size defined by trace, then the `minsize` is used."].join(" ")},minsize:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the minimum text size between traces of the same type."].join(" ")},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none",description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",min:10,dflt:700,editType:"plot",description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",min:10,dflt:450,editType:"plot",description:["Sets the plot's height (in px)."].join(" ")},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum width of the plot with margin.automargin applied (in px)"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum height of the plot with margin.automargin applied (in px)"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the left margin (in px)."},r:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the right margin (in px)."},t:{valType:"number",min:0,dflt:100,editType:"plot",description:"Sets the top margin (in px)."},b:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the bottom margin (in px)."},pad:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",dflt:!0,editType:"plot",description:["Turns on/off margin expansion computations.","Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider","are allowed to push the margins by defaults."].join(" ")},editType:"plot"},computed:{valType:"any",editType:"none",description:["Placeholder for exporting automargin-impacting values namely","`margin.t`, `margin.b`, `margin.l` and `margin.r` in *full-json* mode."].join(" ")},paper_bgcolor:{valType:"color",dflt:i.background,editType:"plot",description:"Sets the background color of the paper where the graph is drawn."},plot_bgcolor:{valType:"color",dflt:i.background,editType:"layoutstyle",description:["Sets the background color of the plotting area in-between x and y axes."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","This is the default value; however it could be overridden for individual axes."].join(" ")},separators:{valType:"string",editType:"plot",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and a space","between thousands. In English locales, dflt is *.,* but","other locales may alter this default."].join(" ")},hidesources:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise)."].join(" ")},showlegend:{valType:"boolean",editType:"legend",description:["Determines whether or not a legend is drawn.","Default is `true` if there is a trace to show and any of these:","a) Two or more traces would by default be shown in the legend.","b) One pie trace is shown in the legend.","c) One trace is explicitly given with `showlegend: true`."].join(" ")},colorway:{valType:"colorlist",dflt:i.defaults,editType:"calc",description:"Sets the default trace colors."},datarevision:{valType:"any",editType:"calc",description:["If provided, a changed value tells `Plotly.react` that","one or more data arrays has changed. This way you can modify","arrays in-place rather than making a complete new copy for an","incremental change.","If NOT provided, `Plotly.react` assumes that data arrays are","being treated as immutable, thus any data array with a","different identity from its predecessor contains new data."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Used to allow user interactions with the plot to persist after","`Plotly.react` calls that are unaware of these interactions.","If `uirevision` is omitted, or if it is given and it changed from","the previous `Plotly.react` call, the exact new figure is used.","If `uirevision` is truthy and did NOT change, any attribute","that has been affected by user interactions and did not receive a","different value in the new figure will keep the interaction value.","`layout.uirevision` attribute serves as the default for","`uirevision` attributes in various sub-containers. For finer","control you can set these sub-attributes directly. For example,","if your app separately controls the data on the x and y axes you","might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.","Then if only the y data is changed, you can update","`yaxis.uirevision=*quantity*` and the y axis range will reset but","the x axis range will retain any user-driven zoom."].join(" ")},editrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in `editable: true`","configuration, other than trace names and axis titles.","Defaults to `layout.uirevision`."].join(" ")},selectionrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in selected points","from all traces."].join(" ")},template:{valType:"any",editType:"calc",description:["Default attributes to be applied to the plot. Templates can be","created from existing plots using `Plotly.makeTemplate`, or","created manually. They should be objects with format:","`{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}`","`layoutTemplate` and `traceTemplate` are objects matching the","attribute structure of `layout` and a data trace. ","Trace templates are applied cyclically to traces of each type.","Container arrays (eg `annotations`) have special handling:","An object ending in `defaults` (eg `annotationdefaults`) is applied","to each array item. But if an item has a `templateitemname` key","we look in the template array for an item with matching `name` and","apply that instead. If no matching `name` is found we mark the item","invisible. Any named template item not referenced is appended to","the end of the array, so you can use this for a watermark annotation","or a logo image, for example. To omit one of these items on the plot,","make an item with matching `templateitemname` and `visible: false`."].join(" ")},newshape:a.newshape,activeshape:a.activeshape,newselection:s.newselection,activeselection:s.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information that can be used in various `text` attributes.","Attributes such as the graph, axis and colorbar `title.text`, annotation `text`","`trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text","all support `meta`. One can access `meta` fields using template strings:","`%{meta[i]}` where `i` is the index of the `meta`","item in question.","`meta` can also be an object for example `{key: value}` which can be accessed","%{meta[key]}."].join(" ")},transition:c({},o.transition,{description:["Sets transition options used during Plotly.react updates."].join(" "),editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the contents of the title, please use `title.text` now."].join(" ")},titlefont:r({editType:"layoutstyle",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},"./node_modules/plotly.js/src/plots/pad_attributes.js":function(e,t,n){"use strict";e.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the left side of the component."},editType:t}}},"./node_modules/plotly.js/src/plots/plots.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/d3-time-format/src/index.js").timeFormatLocale,i=n("./node_modules/plotly.js/node_modules/d3-format/src/index.js").formatLocale,a=n("./node_modules/fast-isnumeric/index.js"),s=n("./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js"),l=n("./node_modules/plotly.js/src/registry.js"),c=n("./node_modules/plotly.js/src/plot_api/plot_schema.js"),u=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),d=n("./node_modules/plotly.js/src/lib/index.js"),f=n("./node_modules/plotly.js/src/components/color/index.js"),h=n("./node_modules/plotly.js/src/constants/numerical.js").BADNUM,p=n("./node_modules/plotly.js/src/plots/cartesian/axis_ids.js"),m=n("./node_modules/plotly.js/src/components/shapes/handle_outline.js").clearOutline,g=n("./node_modules/plotly.js/src/traces/scatter/layout_attributes.js"),v=n("./node_modules/plotly.js/src/plots/animation_attributes.js"),y=n("./node_modules/plotly.js/src/plots/frame_attributes.js"),b=n("./node_modules/plotly.js/src/plots/get_data.js").getModuleCalcData,x=d.relinkPrivateKeys,_=d._,w=e.exports={};d.extendFlat(w,l),w.attributes=n("./node_modules/plotly.js/src/plots/attributes.js"),w.attributes.type.values=w.allTypes,w.fontAttrs=n("./node_modules/plotly.js/src/plots/font_attributes.js"),w.layoutAttributes=n("./node_modules/plotly.js/src/plots/layout_attributes.js");var j=w.transformsRegistry,k=n("./node_modules/plotly.js/src/plots/command.js");w.executeAPICommand=k.executeAPICommand,w.computeAPICommandBindings=k.computeAPICommandBindings,w.manageCommandObserver=k.manageCommandObserver,w.hasSimpleAPICommandBindings=k.hasSimpleAPICommandBindings,w.redrawText=function(e){return e=d.getGraphDiv(e),new Promise((function(t){setTimeout((function(){e._fullLayout&&(l.getComponentMethod("annotations","draw")(e),l.getComponentMethod("legend","draw")(e),l.getComponentMethod("colorbar","draw")(e),t(w.previousPromises(e)))}),300)}))},w.resize=function(e){var t;e=d.getGraphDiv(e);var n=new Promise((function(n,r){e&&!d.isHidden(e)||r(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout((function(){if(!e.layout||e.layout.width&&e.layout.height||d.isHidden(e))n(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,l.call("relayout",e,{autosize:!0}).then((function(){e.changed=t,e._resolveResize===n&&(delete e._resolveResize,n(e))}))}}),100)}));return t&&t(n),n},w.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then((function(){e._promises=[]}))},w.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,n=d.ensureSingle(t._paper,"text","js-plot-link-container",(function(e){e.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:f.defaultLine,"pointer-events":"all"}).each((function(){var e=r.select(this);e.append("tspan").classed("js-link-to-tool",!0),e.append("tspan").classed("js-link-spacer",!0),e.append("tspan").classed("js-sourcelinks",!0)}))})),o=n.node(),i={y:t._paper.attr("height")-9};document.body.contains(o)&&o.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),n.attr(i);var a=n.select(".js-link-to-tool"),s=n.select(".js-link-spacer"),l=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)n.on("click",(function(){w.sendDataToCloud(e)}));else{var r=window.location.pathname.split("/"),o=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+o})}}(e,a),s.text(a.text()&&l.text()?" - ":"")}},w.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var n=r.select(e).append("div").attr("id","hiddenform").style("display","none"),o=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return o.append("input").attr({type:"text",name:"data"}).node().value=w.graphJson(e,!1,"keepdata"),o.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1}};var T=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],A=["year","month","dayMonth","dayMonthYear"];function M(e,t){var n=e._context.locale;n||(n="en-US");var r=!1,o={};function i(e){for(var n=!0,i=0;i<t.length;i++){var a=t[i];o[a]||(e[a]?o[a]=e[a]:n=!1)}n&&(r=!0)}for(var a=0;a<2;a++){for(var s=e._context.locales,c=0;c<2;c++){var u=(s[n]||{}).format;if(u&&(i(u),r))break;s=l.localeRegistry}var d=n.split("-")[0];if(r||d===n)break;n=d}return r||i(l.localeRegistry.en.format),o}function S(e,t){var n={_fullLayout:t},r="x"===e._id.charAt(0),o=e._mainAxis._anchorAxis,i="",a="",s="";if(o&&(s=o._mainAxis._id,i=r?e._id+s:s+e._id),!i||!t._plots[i]){i="";for(var l=e._counterAxes,c=0;c<l.length;c++){var u=l[c],d=r?e._id+u:u+e._id;a||(a=d);var f=p.getFromId(n,u);if(s&&f.overlaying===s){i=d;break}}}return i||a}function C(e){var t=e.transforms;if(Array.isArray(t)&&t.length)for(var n=0;n<t.length;n++){var r=t[n],o=r._module||j[r.type];if(o&&o.makesData)return!0}return!1}function E(e,t,n,r){for(var o=e.transforms,i=[e],a=0;a<o.length;a++){var s=o[a],l=j[s.type];l&&l.transform&&(i=l.transform(i,{transform:s,fullTrace:e,fullData:t,layout:n,fullLayout:r,transformIndex:a}))}return i}function L(e){return"string"==typeof e&&"px"===e.substr(e.length-2)&&parseFloat(e)}function O(e){var t=e.margin;if(!e._size){var n=e._size={l:Math.round(t.l),r:Math.round(t.r),t:Math.round(t.t),b:Math.round(t.b),p:Math.round(t.pad)};n.w=Math.round(e.width)-n.l-n.r,n.h=Math.round(e.height)-n.t-n.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={}),e._reservedMargin||(e._reservedMargin={})}w.supplyDefaults=function(e,t){var n=t&&t.skipUpdateCalc,r=e._fullLayout||{};if(r._skipDefaults)delete r._skipDefaults;else{var a,s=e._fullLayout={},c=e.layout||{},u=e._fullData||[],f=e._fullData=[],h=e.data||[],p=e.calcdata||[],g=e._context||{};e._transitionData||w.createTransitionData(e),s._dfltTitle={plot:_(e,"Click to enter Plot title"),subtitle:_(e,"Click to enter Plot subtitle"),x:_(e,"Click to enter X axis title"),y:_(e,"Click to enter Y axis title"),colorbar:_(e,"Click to enter Colorscale title"),annotation:_(e,"new text")},s._traceWord=_(e,"trace");var v=M(e,T);if(s._mapboxAccessToken=g.mapboxAccessToken,r._initialAutoSizeIsDone){var y=r.width,b=r.height;w.supplyLayoutGlobalDefaults(c,s,v),c.width||(s.width=y),c.height||(s.height=b),w.sanitizeMargins(s)}else{w.supplyLayoutGlobalDefaults(c,s,v);var j=!c.width||!c.height,k=s.autosize,S=g.autosizable;j&&(k||S)?w.plotAutoSize(e,c,s):j&&w.sanitizeMargins(s),!k&&j&&(c.width=s.width,c.height=s.height)}s._d3locale=function(e,t){return e.decimal=t.charAt(0),e.thousands=t.charAt(1),{numberFormat:function(t){try{t=i(e).format(d.adjustFormat(t))}catch(e){return d.warnBadFormat(t),d.noFormat}return t},timeFormat:o(e).utcFormat}}(v,s.separators),s._extraFormat=M(e,A),s._initialAutoSizeIsDone=!0,s._dataLength=h.length,s._modules=[],s._visibleModules=[],s._basePlotModules=[];var C=s._subplots=function(){var e,t,n=l.collectableSubplotTypes,r={};if(!n){n=[];var o=l.subplotsRegistry;for(var i in o){var a=o[i].attr;if(a&&(n.push(i),Array.isArray(a)))for(t=0;t<a.length;t++)d.pushUnique(n,a[t])}}for(e=0;e<n.length;e++)r[n[e]]=[];return r}(),E=s._splomAxes={x:{},y:{}},L=s._splomSubplots={};s._splomGridDflt={},s._scatterStackOpts={},s._firstScatter={},s._alignmentOpts={},s._colorAxes={},s._requestRangeslider={},s._traceUids=function(e,t){var n,r,o=t.length,i=[];for(n=0;n<e.length;n++){var a=e[n]._fullInput;a!==r&&i.push(a),r=a}var s=i.length,l=new Array(o),c={};function u(e,t){l[t]=e,c[e]=1}function f(e,t){if(e&&"string"==typeof e&&!c[e])return u(e,t),!0}for(n=0;n<o;n++){var h=t[n].uid;"number"==typeof h&&(h=String(h)),f(h,n)||(n<s&&f(i[n].uid,n)||u(d.randstr(c),n))}return l}(u,h),s._globalTransforms=(e._context||{}).globalTransforms,w.supplyDataDefaults(h,f,c,s);var R=Object.keys(E.x),I=Object.keys(E.y);if(R.length>1&&I.length>1){for(l.getComponentMethod("grid","sizeDefaults")(c,s),a=0;a<R.length;a++)d.pushUnique(C.xaxis,R[a]);for(a=0;a<I.length;a++)d.pushUnique(C.yaxis,I[a]);for(var P in L)d.pushUnique(C.cartesian,P)}if(s._has=w._hasPlotType.bind(s),u.length===f.length)for(a=0;a<f.length;a++)x(f[a],u[a]);w.supplyLayoutModuleDefaults(c,s,f,e._transitionData);var D=s._visibleModules,z=[];for(a=0;a<D.length;a++){var N=D[a].crossTraceDefaults;N&&d.pushUnique(z,N)}for(a=0;a<z.length;a++)z[a](f,s);s._hasOnlyLargeSploms=1===s._basePlotModules.length&&"splom"===s._basePlotModules[0].name&&R.length>15&&I.length>15&&0===s.shapes.length&&0===s.images.length,w.linkSubplots(f,s,u,r),w.cleanPlot(f,s,u,r);var F=!(!r._has||!r._has("gl2d")),B=!(!s._has||!s._has("gl2d")),U=!(!r._has||!r._has("cartesian"))||F,H=!(!s._has||!s._has("cartesian"))||B;U&&!H?r._bgLayer.remove():H&&!U&&(s._shouldCreateBgLayer=!0),r._zoomlayer&&!e._dragging&&m({_fullLayout:r}),function(e,t){var n,r=[];t.meta&&(n=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var o=0;o<e.length;o++){var i=e[o];i.meta?r[i.index]=i._meta={meta:i.meta}:t.meta&&(i._meta={meta:t.meta}),t.meta&&(i._meta.layout={meta:t.meta})}r.length&&(n||(n=t._meta={}),n.data=r)}(f,s),x(s,r),l.getComponentMethod("colorscale","crossTraceDefaults")(f,s),s._preGUI||(s._preGUI={}),s._tracePreGUI||(s._tracePreGUI={});var V,G=s._tracePreGUI,q={};for(V in G)q[V]="old";for(a=0;a<f.length;a++)q[V=f[a]._fullInput.uid]||(G[V]={}),q[V]="new";for(V in q)"old"===q[V]&&delete G[V];O(s),l.getComponentMethod("rangeslider","makeData")(s),n||p.length!==f.length||w.supplyDefaultsUpdateCalc(p,f)}},w.supplyDefaultsUpdateCalc=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=(e[n]||[])[0];if(o&&o.trace){var i=o.trace;if(i._hasCalcTransform){var a,s,l,c=i._arrayAttrs;for(a=0;a<c.length;a++)s=c[a],l=d.nestedProperty(i,s).get().slice(),d.nestedProperty(r,s).set(l)}o.trace=r}}},w.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=[])},w._hasPlotType=function(e){var t,n=this._basePlotModules||[];for(t=0;t<n.length;t++)if(n[t].name===e)return!0;var r=this._modules||[];for(t=0;t<r.length;t++){var o=r[t].name;if(o===e)return!0;var i=l.modules[o];if(i&&i.categories[e])return!0}return!1},w.cleanPlot=function(e,t,n,r){var o,i,a=r._basePlotModules||[];for(o=0;o<a.length;o++){var s=a[o];s.clean&&s.clean(e,t,n,r)}var l=r._has&&r._has("gl"),c=t._has&&t._has("gl");l&&!c&&void 0!==r._glcontainer&&(r._glcontainer.selectAll(".gl-canvas").remove(),r._glcontainer.selectAll(".no-webgl").remove(),r._glcanvas=null);var u=!!r._infolayer;e:for(o=0;o<n.length;o++){var d=n[o].uid;for(i=0;i<e.length;i++){if(d===e[i].uid)continue e}u&&r._infolayer.select(".cb"+d).remove()}},w.linkSubplots=function(e,t,n,r){var o,i,a=r._plots||{},s=t._plots={},c=t._subplots,u={_fullData:e,_fullLayout:t},f=c.cartesian.concat(c.gl2d||[]);for(o=0;o<f.length;o++){var h,m=f[o],g=a[m],v=p.getFromId(u,m,"x"),y=p.getFromId(u,m,"y");for(g?h=s[m]=g:(h=s[m]={}).id=m,v._counterAxes.push(y._id),y._counterAxes.push(v._id),v._subplotsWith.push(m),y._subplotsWith.push(m),h.xaxis=v,h.yaxis=y,h._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var b=e[i];if(b.xaxis===h.xaxis._id&&b.yaxis===h.yaxis._id&&!1===b.cliponaxis){h._hasClipOnAxisFalse=!0;break}}}var x,_=p.list(u,null,!0);for(o=0;o<_.length;o++){var w=null;(x=_[o]).overlaying&&(w=p.getFromId(u,x.overlaying))&&w.overlaying&&(x.overlaying=!1,w=null),x._mainAxis=w||x,w&&(x.domain=w.domain.slice()),x._anchorAxis="free"===x.anchor?null:p.getFromId(u,x.anchor)}for(o=0;o<_.length;o++)if((x=_[o])._counterAxes.sort(p.idSort),x._subplotsWith.sort(d.subplotSort),x._mainSubplot=S(x,t),x._counterAxes.length&&(x.spikemode&&-1!==x.spikemode.indexOf("across")||x.automargin&&x.mirror&&"free"!==x.anchor||l.getComponentMethod("rangeslider","isVisible")(x))){var j=1,k=0;for(i=0;i<x._counterAxes.length;i++){var T=p.getFromId(u,x._counterAxes[i]);j=Math.min(j,T.domain[0]),k=Math.max(k,T.domain[1])}j<k&&(x._counterDomainMin=j,x._counterDomainMax=k)}},w.clearExpandedTraceDefaultColors=function(e){var t,n,r;for(n=[],(t=e._module._colorAttrs)||(e._module._colorAttrs=t=[],c.crawl(e._module.attributes,(function(e,r,o,i){n[i]=r,n.length=i+1,"color"===e.valType&&void 0===e.dflt&&t.push(n.join("."))}))),r=0;r<t.length;r++){d.nestedProperty(e,"_input."+t[r]).get()||d.nestedProperty(e,t[r]).set(null)}},w.supplyDataDefaults=function(e,t,n,r){var o,i,a,s=r._modules,c=r._visibleModules,f=r._basePlotModules,h=0,p=0;function m(e){t.push(e);var n=e._module;n&&(d.pushUnique(s,n),!0===e.visible&&d.pushUnique(c,n),d.pushUnique(f,e._module.basePlotModule),h++,!1!==e._input.visible&&p++)}r._transformModules=[];var g={},v=[],y=(n.template||{}).data||{},b=u.traceTemplater(y);for(o=0;o<e.length;o++){if(a=e[o],(i=b.newTrace(a)).uid=r._traceUids[o],w.supplyTraceDefaults(a,i,p,r,o),i.index=o,i._input=a,i._expandedIndex=h,i.transforms&&i.transforms.length)for(var _=!1!==a.visible&&!1===i.visible,j=E(i,t,n,r),k=0;k<j.length;k++){var T=j[k],A={_template:i._template,type:i.type,uid:i.uid+k};_&&!1===T.visible&&delete T.visible,w.supplyTraceDefaults(T,A,h,r,o),x(A,T),A.index=o,A._input=a,A._fullInput=i,A._expandedIndex=h,A._expandedInput=T,m(A)}else i._fullInput=i,i._expandedInput=i,m(i);l.traceIs(i,"carpetAxis")&&(g[i.carpet]=i),l.traceIs(i,"carpetDependent")&&v.push(o)}for(o=0;o<v.length;o++)if((i=t[v[o]]).visible){var M=g[i.carpet];i._carpet=M,M&&M.visible?(i.xaxis=M.xaxis,i.yaxis=M.yaxis):i.visible=!1}},w.supplyAnimationDefaults=function(e){var t;e=e||{};var n={};function r(t,r){return d.coerce(e||{},n,v,t,r)}if(r("mode"),r("direction"),r("fromcurrent"),Array.isArray(e.frame))for(n.frame=[],t=0;t<e.frame.length;t++)n.frame[t]=w.supplyAnimationFrameDefaults(e.frame[t]||{});else n.frame=w.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(n.transition=[],t=0;t<e.transition.length;t++)n.transition[t]=w.supplyAnimationTransitionDefaults(e.transition[t]||{});else n.transition=w.supplyAnimationTransitionDefaults(e.transition||{});return n},w.supplyAnimationFrameDefaults=function(e){var t={};function n(n,r){return d.coerce(e||{},t,v.frame,n,r)}return n("duration"),n("redraw"),t},w.supplyAnimationTransitionDefaults=function(e){var t={};function n(n,r){return d.coerce(e||{},t,v.transition,n,r)}return n("duration"),n("easing"),t},w.supplyFrameDefaults=function(e){var t={};function n(n,r){return d.coerce(e,t,y,n,r)}return n("group"),n("name"),n("traces"),n("baseframe"),n("data"),n("layout"),t},w.supplyTraceDefaults=function(e,t,n,r,o){var i,a=r.colorway||f.defaults,s=a[n%a.length];function c(n,r){return d.coerce(e,t,w.attributes,n,r)}var u=c("visible");c("type"),c("name",r._traceWord+" "+o),c("uirevision",r.uirevision);var h=w.getModule(t);if(t._module=h,h){var p=h.basePlotModule,m=p.attr,g=p.attributes;if(m&&g){var v=r._subplots,y="";if(u||"gl2d"!==p.name){if(Array.isArray(m))for(i=0;i<m.length;i++){var b=m[i],x=d.coerce(e,t,g,b);v[b]&&d.pushUnique(v[b],x),y+=x}else y=d.coerce(e,t,g,m);v[p.name]&&d.pushUnique(v[p.name],y)}}}if(u){if(c("customdata"),c("ids"),c("meta"),l.traceIs(t,"showLegend")?(d.coerce(e,t,h.attributes.showlegend?h.attributes:w.attributes,"showlegend"),c("legend"),c("legendwidth"),c("legendgroup"),c("legendgrouptitle.text"),c("legendrank"),t._dfltShowLegend=!0):t._dfltShowLegend=!1,h&&h.supplyDefaults(e,t,s,r),l.traceIs(t,"noOpacity")||c("opacity"),l.traceIs(t,"notLegendIsolatable")&&(t.visible=!!t.visible),l.traceIs(t,"noHover")||(t.hovertemplate||d.coerceHoverinfo(e,t,r),"parcats"!==t.type&&l.getComponentMethod("fx","supplyDefaults")(e,t,s,r)),h&&h.selectPoints){var _=c("selectedpoints");d.isTypedArray(_)&&(t.selectedpoints=Array.from(_))}w.supplyTransformDefaults(e,t,r)}return t},w.hasMakesDataTransform=C,w.supplyTransformDefaults=function(e,t,n){if(t._length||C(e)){var r=n._globalTransforms||[],o=n._transformModules||[];if(Array.isArray(e.transforms)||0!==r.length)for(var i=e.transforms||[],a=r.concat(i),s=t.transforms=[],l=0;l<a.length;l++){var c,u=a[l],f=u.type,h=j[f],p=!(u._module&&u._module===h),m=h&&"function"==typeof h.transform;h||d.warn("Unrecognized transform type "+f+"."),h&&h.supplyDefaults&&(p||m)?((c=h.supplyDefaults(u,t,n,e)).type=f,c._module=h,d.pushUnique(o,h)):c=d.extendFlat({},u),s.push(c)}}},w.supplyLayoutGlobalDefaults=function(e,t,n){function r(n,r){return d.coerce(e,t,w.layoutAttributes,n,r)}var o=e.template;d.isPlainObject(o)&&(t.template=o,t._template=o.layout,t._dataTemplate=o.data),r("autotypenumbers");var i=d.coerceFont(r,"font"),a=i.size;d.coerceFont(r,"title.font",i,{overrideDflt:{size:Math.round(1.4*a)}}),r("title.text",t._dfltTitle.plot),r("title.xref");var s=r("title.yref");r("title.pad.t"),r("title.pad.r"),r("title.pad.b"),r("title.pad.l");var c=r("title.automargin");r("title.x"),r("title.xanchor"),r("title.y"),r("title.yanchor"),r("title.subtitle.text",t._dfltTitle.subtitle),d.coerceFont(r,"title.subtitle.font",i,{overrideDflt:{size:Math.round(.7*t.title.font.size)}}),c&&("paper"===s&&(0!==t.title.y&&(t.title.y=1),"auto"===t.title.yanchor&&(t.title.yanchor=0===t.title.y?"top":"bottom")),"container"===s&&("auto"===t.title.y&&(t.title.y=1),"auto"===t.title.yanchor&&(t.title.yanchor=t.title.y<.5?"bottom":"top"))),r("uniformtext.mode")&&r("uniformtext.minsize"),r("autosize",!(e.width&&e.height)),r("width"),r("height"),r("minreducedwidth"),r("minreducedheight"),r("margin.l"),r("margin.r"),r("margin.t"),r("margin.b"),r("margin.pad"),r("margin.autoexpand"),e.width&&e.height&&w.sanitizeMargins(t),l.getComponentMethod("grid","sizeDefaults")(e,t),r("paper_bgcolor"),r("separators",n.decimal+n.thousands),r("hidesources"),r("colorway"),r("datarevision");var u=r("uirevision");r("editrevision",u),r("selectionrevision",u),l.getComponentMethod("modebar","supplyLayoutDefaults")(e,t),l.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,t,r),l.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,t,r),r("meta"),d.isPlainObject(e.transition)&&(r("transition.duration"),r("transition.easing"),r("transition.ordering")),l.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),l.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,r),d.coerce(e,t,g,"scattermode")},w.plotAutoSize=function(e,t,n){var r,o,i=e._context||{},s=i.frameMargins,l=d.isPlotDiv(e);if(l&&e.emit("plotly_autosize"),i.fillFrame)r=window.innerWidth,o=window.innerHeight,document.body.style.overflow="hidden";else{var c=l?window.getComputedStyle(e):{};if(r=L(c.width)||L(c.maxWidth)||n.width,o=L(c.height)||L(c.maxHeight)||n.height,a(s)&&s>0){var u=1-2*s;r=Math.round(u*r),o=Math.round(u*o)}}var f=w.layoutAttributes.width.min,h=w.layoutAttributes.height.min;r<f&&(r=f),o<h&&(o=h);var p=!t.width&&Math.abs(n.width-r)>1,m=!t.height&&Math.abs(n.height-o)>1;(m||p)&&(p&&(n.width=r),m&&(n.height=o)),e._initialAutoSize||(e._initialAutoSize={width:r,height:o}),w.sanitizeMargins(n)},w.supplyLayoutModuleDefaults=function(e,t,n,r){var o,i,a,s=l.componentsRegistry,c=t._basePlotModules,u=l.subplotsRegistry.cartesian;for(o in s)(a=s[o]).includeBasePlot&&a.includeBasePlot(e,t);for(var f in c.length||c.push(u),t._has("cartesian")&&(l.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t)),t._subplots)t._subplots[f].sort(d.subplotSort);for(i=0;i<c.length;i++)(a=c[i]).supplyLayoutDefaults&&a.supplyLayoutDefaults(e,t,n);var h=t._modules;for(i=0;i<h.length;i++)(a=h[i]).supplyLayoutDefaults&&a.supplyLayoutDefaults(e,t,n);var p=t._transformModules;for(i=0;i<p.length;i++)(a=p[i]).supplyLayoutDefaults&&a.supplyLayoutDefaults(e,t,n,r);for(o in s)(a=s[o]).supplyLayoutDefaults&&a.supplyLayoutDefaults(e,t,n)},w.purge=function(e){var t=e._fullLayout||{};void 0!==t._glcontainer&&(t._glcontainer.selectAll(".gl-canvas").remove(),t._glcontainer.remove(),t._glcanvas=null),t._modeBar&&t._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),d.clearThrottle(),d.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()},w.style=function(e){var t,n=e._fullLayout._visibleModules,r=[];for(t=0;t<n.length;t++){var o=n[t];o.style&&d.pushUnique(r,o.style)}for(t=0;t<r.length;t++)r[t](e)},w.sanitizeMargins=function(e){if(e&&e.margin){var t,n=e.width,r=e.height,o=e.margin,i=n-(o.l+o.r),a=r-(o.t+o.b);i<0&&(t=(n-1)/(o.l+o.r),o.l=Math.floor(t*o.l),o.r=Math.floor(t*o.r)),a<0&&(t=(r-1)/(o.t+o.b),o.t=Math.floor(t*o.t),o.b=Math.floor(t*o.b))}},w.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}},w.allowAutoMargin=function(e,t){e._fullLayout._pushmarginIds[t]=1};w.autoMargin=function(e,t,n){var r=e._fullLayout,o=r.width,i=r.height,a=r.margin,s=r.minreducedwidth,l=r.minreducedheight,c=d.constrain(o-a.l-a.r,2,s),u=d.constrain(i-a.t-a.b,2,l),f=Math.max(0,o-c),h=Math.max(0,i-u),p=r._pushmargin,m=r._pushmarginIds;if(!1!==a.autoexpand){if(n){var g=n.pad;if(void 0===g&&(g=Math.min(12,a.l,a.r,a.t,a.b)),f){var v=(n.l+n.r)/f;v>1&&(n.l/=v,n.r/=v)}if(h){var y=(n.t+n.b)/h;y>1&&(n.t/=y,n.b/=y)}var b=void 0!==n.xl?n.xl:n.x,x=void 0!==n.xr?n.xr:n.x,_=void 0!==n.yt?n.yt:n.y,j=void 0!==n.yb?n.yb:n.y;p[t]={l:{val:b,size:n.l+g},r:{val:x,size:n.r+g},b:{val:j,size:n.b+g},t:{val:_,size:n.t+g}},m[t]=1}else delete p[t],delete m[t];if(!r._replotting)return w.doAutoMargin(e)}},w.doAutoMargin=function(e){var t=e._fullLayout,n=t.width,r=t.height;t._size||(t._size={}),O(t);var o=t._size,i=t.margin,s={t:0,b:0,l:0,r:0},c=d.extendFlat({},o),u=i.l,f=i.r,h=i.t,m=i.b,g=t._pushmargin,v=t._pushmarginIds,y=t.minreducedwidth,b=t.minreducedheight;if(!1!==i.autoexpand){for(var x in g)v[x]||delete g[x];var _=e._fullLayout._reservedMargin;for(var j in _)for(var k in _[j]){var T=_[j][k];s[k]=Math.max(s[k],T)}for(var A in g.base={l:{val:0,size:u},r:{val:1,size:f},t:{val:1,size:h},b:{val:0,size:m}},s){var M=0;for(var S in g)"base"!==S&&a(g[S][A].size)&&(M=g[S][A].size>M?g[S][A].size:M);var C=Math.max(0,i[A]-M);s[A]=Math.max(0,s[A]-C)}for(var E in g){var L=g[E].l||{},R=g[E].b||{},I=L.val,P=L.size,D=R.val,z=R.size,N=n-s.r-s.l,F=r-s.t-s.b;for(var B in g){if(a(P)&&g[B].r){var U=g[B].r.val,H=g[B].r.size;if(U>I){var V=(P*U+(H-N)*I)/(U-I),G=(H*(1-I)+(P-N)*(1-U))/(U-I);V+G>u+f&&(u=V,f=G)}}if(a(z)&&g[B].t){var q=g[B].t.val,W=g[B].t.size;if(q>D){var Y=(z*q+(W-F)*D)/(q-D),X=(W*(1-D)+(z-F)*(1-q))/(q-D);Y+X>m+h&&(m=Y,h=X)}}}}}var Z=d.constrain(n-i.l-i.r,2,y),$=d.constrain(r-i.t-i.b,2,b),K=Math.max(0,n-Z),J=Math.max(0,r-$);if(K){var Q=(u+f)/K;Q>1&&(u/=Q,f/=Q)}if(J){var ee=(m+h)/J;ee>1&&(m/=ee,h/=ee)}if(o.l=Math.round(u)+s.l,o.r=Math.round(f)+s.r,o.t=Math.round(h)+s.t,o.b=Math.round(m)+s.b,o.p=Math.round(i.pad),o.w=Math.round(n)-o.l-o.r,o.h=Math.round(r)-o.t-o.b,!t._replotting&&(w.didMarginChange(c,o)||function(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=p.list(e,"",!0);for(var n in t)if(t[n].autoshift||t[n].shift)return!0;return!1}(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var te=3*(1+Object.keys(v).length);if(t._redrawFromAutoMarginCount<te)return l.call("_doPlot",e);t._size=c,d.warn("Too many auto-margin redraws.")}!function(e){var t=p.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach((function(e){for(var n=0;n<t.length;n++){var r=t[n][e];r&&r()}}))}(e)};var R=["l","r","t","b","p","w","h"];function I(e,t,n){var r=!1;var o=[w.previousPromises,function(){if(e._transitionData)return e._transitioning=!1,function(e){var t=Promise.resolve();if(!e)return t;for(;e.length;)t=t.then(e.shift());return t}(e._transitionData._interruptCallbacks)},n.prepareFn,w.rehover,w.reselect,function(){return e.emit("plotly_transitioning",[]),new Promise((function(o){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){r=!0})),n.redraw&&e._transitionData._interruptCallbacks.push((function(){return l.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var i=0,a=0;function s(){return i++,function(){a++,r||a!==i||function(t){if(!e._transitionData)return;(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(n.redraw)return l.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}(o)}}n.runFn(s),setTimeout(s())}))}],i=d.syncOrAsync(o,e);return i&&i.then||(i=Promise.resolve()),i.then((function(){return e}))}w.didMarginChange=function(e,t){for(var n=0;n<R.length;n++){var r=R[n],o=e[r],i=t[r];if(!a(o)||Math.abs(i-o)>1)return!0}return!1},w.graphJson=function(e,t,n,r,o,i){(o&&t&&!e._fullData||o&&!t&&!e._fullLayout)&&w.supplyDefaults(e);var a=o?e._fullData:e.data,l=o?e._fullLayout:e.layout,c=(e._transitionData||{})._frames;function u(e,t){if("function"==typeof e)return t?"_function_":null;if(d.isPlainObject(e)){var r,o={};return Object.keys(e).sort().forEach((function(i){if(-1===["_","["].indexOf(i.charAt(0)))if("function"!=typeof e[i]){if("keepdata"===n){if("src"===i.substr(i.length-3))return}else if("keepstream"===n){if("string"==typeof(r=e[i+"src"])&&r.indexOf(":")>0&&!d.isPlainObject(e.stream))return}else if("keepall"!==n&&"string"==typeof(r=e[i+"src"])&&r.indexOf(":")>0)return;o[i]=u(e[i],t)}else t&&(o[i]="_function")})),o}var i=Array.isArray(e),a=d.isTypedArray(e);if((i||a)&&e.dtype&&e.shape){var l=e.bdata;return u({dtype:e.dtype,shape:e.shape,bdata:d.isArrayBuffer(l)?s.encode(l):l},t)}return i?e.map((function(e){return u(e,t)})):a?d.simpleMap(e,d.identity):d.isJSDate(e)?d.ms2DateTimeLocal(+e):e}var f={data:(a||[]).map((function(e){var n=u(e);return t&&delete n.fit,n}))};if(!t&&(f.layout=u(l),o)){var h=l._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return c&&(f.frames=u(c)),i&&(f.config=u(e._context,!0)),"object"===r?f:JSON.stringify(f)},w.modifyFrames=function(e,t){var n,r,o,i=e._transitionData._frames,a=e._transitionData._frameHash;for(n=0;n<t.length;n++)switch((r=t[n]).type){case"replace":o=r.value;var s=(i[r.index]||{}).name,l=o.name;i[r.index]=a[l]=o,l!==s&&(delete a[s],a[l]=o);break;case"insert":a[(o=r.value).name]=o,i.splice(r.index,0,o);break;case"delete":delete a[(o=i[r.index]).name],i.splice(r.index,1)}return Promise.resolve()},w.computeFrame=function(e,t){var n,r,o,i,a=e._transitionData._frameHash;if(!t)throw new Error("computeFrame must be given a string frame name");var s=a[t.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&&(s=a[s.baseframe.toString()])&&-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&&(u.layout=w.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(r=s.traces))for(r=[],n=0;n<s.data.length;n++)r[n]=n;for(u.traces||(u.traces=[]),n=0;n<s.data.length;n++)null!=(o=r[n])&&(-1===(i=u.traces.indexOf(o))&&(i=u.data.length,u.traces[i]=o),u.data[i]=w.extendTrace(u.data[i],s.data[n]))}return u},w.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},n=e._transitionData._frames,r=0;r<n.length;r++){var o=n[r];o&&o.name&&(t[o.name]=o)}},w.extendObjectWithContainers=function(e,t,n){var r,o,i,a,s,l,c,u=d.extendDeepNoArrays({},t||{}),f=d.expandObjectPaths(u),h={};if(n&&n.length)for(i=0;i<n.length;i++)void 0===(o=(r=d.nestedProperty(f,n[i])).get())?d.nestedProperty(h,n[i]).set(null):(r.set(null),d.nestedProperty(h,n[i]).set(o));if(e=d.extendDeepNoArrays(e||{},f),n&&n.length)for(i=0;i<n.length;i++)if(l=d.nestedProperty(h,n[i]).get()){for(c=(s=d.nestedProperty(e,n[i])).get(),Array.isArray(c)||(c=[],s.set(c)),a=0;a<l.length;a++){var p=l[a];c[a]=null===p?null:w.extendObjectWithContainers(c[a],p)}s.set(c)}return e},w.dataArrayContainers=["transforms","dimensions"],w.layoutArrayContainers=l.layoutArrayContainers,w.extendTrace=function(e,t){return w.extendObjectWithContainers(e,t,w.dataArrayContainers)},w.extendLayout=function(e,t){return w.extendObjectWithContainers(e,t,w.layoutArrayContainers)},w.transition=function(e,t,n,r,o,i){var a={redraw:o.redraw},s={},l=[];return a.prepareFn=function(){for(var o=Array.isArray(t)?t.length:0,i=r.slice(0,o),a=0;a<i.length;a++){var c=i[a],u=e._fullData[c]._module;if(u){if(u.animatable){var f=u.basePlotModule.name;s[f]||(s[f]=[]),s[f].push(c)}e.data[i[a]]=w.extendTrace(e.data[i[a]],t[a])}}var h=d.expandObjectPaths(d.extendDeepNoArrays({},n)),p=/^[xy]axis[0-9]*$/;for(var m in h)p.test(m)&&delete h[m].range;w.extendLayout(e.layout,h),delete e.calcdata,w.supplyDefaults(e),w.doCalcdata(e);var g=d.expandObjectPaths(n);if(g){var v=e._fullLayout._plots;for(var y in v){var b=v[y],x=b.xaxis,_=b.yaxis,j=x.range.slice(),k=_.range.slice(),T=null,A=null,M=null,S=null;Array.isArray(g[x._name+".range"])?T=g[x._name+".range"].slice():Array.isArray((g[x._name]||{}).range)&&(T=g[x._name].range.slice()),Array.isArray(g[_._name+".range"])?A=g[_._name+".range"].slice():Array.isArray((g[_._name]||{}).range)&&(A=g[_._name].range.slice()),j&&T&&(x.r2l(j[0])!==x.r2l(T[0])||x.r2l(j[1])!==x.r2l(T[1]))&&(M={xr0:j,xr1:T}),k&&A&&(_.r2l(k[0])!==_.r2l(A[0])||_.r2l(k[1])!==_.r2l(A[1]))&&(S={yr0:k,yr1:A}),(M||S)&&l.push(d.extendFlat({plotinfo:b},M,S))}}return Promise.resolve()},a.runFn=function(t){var r,o,a=e._fullLayout._basePlotModules,c=l.length;if(n)for(o=0;o<a.length;o++)a[o].transitionAxes&&a[o].transitionAxes(e,l,i,t);for(var u in c?((r=d.extendFlat({},i)).duration=0,delete s.cartesian):r=i,s){var f=s[u];e._fullData[f[0]]._module.basePlotModule.plot(e,f,r,t)}},I(e,i,a)},w.transitionFromReact=function(e,t,n,r){var o=e._fullLayout,i=o.transition,a={},s=[];return a.prepareFn=function(){var e=o._plots;for(var i in a.redraw=!1,"some"===t.anim&&(a.redraw=!0),"some"===n.anim&&(a.redraw=!0),e){var l=e[i],c=l.xaxis,u=l.yaxis,f=r[c._name].range.slice(),h=r[u._name].range.slice(),p=c.range.slice(),m=u.range.slice();c.setScale(),u.setScale();var g=null,v=null;c.r2l(f[0])===c.r2l(p[0])&&c.r2l(f[1])===c.r2l(p[1])||(g={xr0:f,xr1:p}),u.r2l(h[0])===u.r2l(m[0])&&u.r2l(h[1])===u.r2l(m[1])||(v={yr0:h,yr1:m}),(g||v)&&s.push(d.extendFlat({plotinfo:l},g,v))}return Promise.resolve()},a.runFn=function(n){for(var r,o,a,l=e._fullData,c=e._fullLayout._basePlotModules,u=[],f=0;f<l.length;f++)u.push(f);function h(){if(e._fullLayout)for(var t=0;t<c.length;t++)c[t].transitionAxes&&c[t].transitionAxes(e,s,r,n)}function p(){if(e._fullLayout)for(var t=0;t<c.length;t++)c[t].plot(e,a,o,n)}s.length&&t.anim?"traces first"===i.ordering?(r=d.extendFlat({},i,{duration:0}),a=u,o=i,setTimeout(h,i.duration),p()):(r=i,a=null,o=d.extendFlat({},i,{duration:0}),setTimeout(p,r.duration),h()):s.length?(r=i,h()):t.anim&&(a=u,o=i,p())},I(e,i,a)},w.doCalcdata=function(e,t){var n,r,o,i,a=p.list(e),s=e._fullData,u=e._fullLayout,f=new Array(s.length),m=(e.calcdata||[]).slice();for(e.calcdata=f,u._numBoxes=0,u._numViolins=0,u._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,u._piecolormap={},u._sunburstcolormap={},u._treemapcolormap={},u._iciclecolormap={},u._funnelareacolormap={},o=0;o<s.length;o++)Array.isArray(t)&&-1===t.indexOf(o)&&(f[o]=m[o]);for(o=0;o<s.length;o++)(n=s[o])._arrayAttrs=c.findArrayAttributes(n),n._extremes={};var g=u._subplots.polar||[];for(o=0;o<g.length;o++)a.push(u[g[o]].radialaxis,u[g[o]].angularaxis);for(var v in u._colorAxes){var y=u[v];!1!==y.cauto&&(delete y.cmin,delete y.cmax)}var b=!1;function x(t){if(n=s[t],r=n._module,!0===n.visible&&n.transforms){if(r&&r.calc){var o=r.calc(e,n);o[0]&&o[0].t&&o[0].t._scene&&delete o[0].t._scene.dirty}for(i=0;i<n.transforms.length;i++){var a=n.transforms[i];(r=j[a.type])&&r.calcTransform&&(n._hasCalcTransform=!0,b=!0,r.calcTransform(e,n,a))}}}function _(t,o){if(n=s[t],!!(r=n._module).isContainer===o){var a=[];if(!0===n.visible&&0!==n._length){delete n._indexToPoints;var l=n.transforms||[];for(i=l.length-1;i>=0;i--)if(l[i].enabled){n._indexToPoints=l[i]._indexToPoints;break}r&&r.calc&&(a=r.calc(e,n))}Array.isArray(a)&&a[0]||(a=[{x:h,y:h}]),a[0].t||(a[0].t={}),a[0].trace=n,f[t]=a}}for(D(a,s,u),o=0;o<s.length;o++)_(o,!0);for(o=0;o<s.length;o++)x(o);for(b&&D(a,s,u),o=0;o<s.length;o++)_(o,!0);for(o=0;o<s.length;o++)_(o,!1);z(e);var w=function(e,t){var n,r,o,i,a,s=[];function c(e,n,r){var o=n._id.charAt(0);if("histogram2dcontour"===e){var i=n._counterAxes[0],a=p.getFromId(t,i),s="x"===o||"x"===i&&"category"===a.type,l="y"===o||"y"===i&&"category"===a.type;return function(e,t){return 0===e||0===t||s&&e===r[t].length-1||l&&t===r.length-1?-1:("y"===o?t:e)-1}}return function(e,t){return"y"===o?t:e}}var u={min:function(e){return d.aggNums(Math.min,null,e)},max:function(e){return d.aggNums(Math.max,null,e)},sum:function(e){return d.aggNums((function(e,t){return e+t}),null,e)},total:function(e){return d.aggNums((function(e,t){return e+t}),null,e)},mean:function(e){return d.mean(e)},"geometric mean":function(e){return d.geometricMean(e)},median:function(e){return d.median(e)}};function f(e,t){return e[1]-t[1]}function h(e,t){return t[1]-e[1]}for(n=0;n<e.length;n++){var m=e[n];if("category"===m.type){var g=m.categoryorder.match(P);if(g){var v=g[1],y=g[2],b=m._id.charAt(0),x="x"===b,_=[];for(r=0;r<m._categories.length;r++)_.push([m._categories[r],[]]);for(r=0;r<m._traceIndices.length;r++){var w=m._traceIndices[r],j=t._fullData[w];if(!0===j.visible){var k=j.type;l.traceIs(j,"histogram")&&(delete j._xautoBinFinished,delete j._yautoBinFinished);var T="splom"===k,A="scattergl"===k,M=t.calcdata[w];for(o=0;o<M.length;o++){var S,C,E=M[o];if(T){var L=j._axesDim[m._id];if(!x){var O=j._diag[L][0];O&&(m=t._fullLayout[p.id2name(O)])}var R=E.trace.dimensions[L].values;for(i=0;i<R.length;i++)for(S=m._categoriesMap[R[i]],a=0;a<E.trace.dimensions.length;a++)if(a!==L){var I=E.trace.dimensions[a];_[S][1].push(I.values[i])}}else if(A){for(i=0;i<E.t.x.length;i++)x?(S=E.t.x[i],C=E.t.y[i]):(S=E.t.y[i],C=E.t.x[i]),_[S][1].push(C);E.t&&E.t._scene&&delete E.t._scene.dirty}else if(E.hasOwnProperty("z")){C=E.z;var D=c(j.type,m,C);for(i=0;i<C.length;i++)for(a=0;a<C[i].length;a++)(S=D(a,i))+1&&_[S][1].push(C[i][a])}else for(void 0===(S=E.p)&&(S=E[b]),void 0===(C=E.s)&&(C=E.v),void 0===C&&(C=x?E.y:E.x),Array.isArray(C)||(C=void 0===C?[]:[C]),i=0;i<C.length;i++)_[S][1].push(C[i])}}}m._categoriesValue=_;var z=[];for(r=0;r<_.length;r++)z.push([_[r][0],u[v](_[r][1])]);z.sort("descending"===y?h:f),m._categoriesAggregatedValue=z,m._initialCategories=z.map((function(e){return e[0]})),s=s.concat(m.sortByInitialCategories())}}}return s}(a,e);if(w.length){for(u._numBoxes=0,u._numViolins=0,o=0;o<w.length;o++)_(w[o],!0);for(o=0;o<w.length;o++)_(w[o],!1);z(e)}l.getComponentMethod("fx","calc")(e),l.getComponentMethod("errorbars","calc")(e)};var P=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function D(e,t,n){var r={};function o(e){e.clearCalc(),"multicategory"===e.type&&e.setupMultiCategory(t),r[e._id]=1}d.simpleMap(e,o);for(var i=n._axisMatchGroups||[],a=0;a<i.length;a++)for(var s in i[a])r[s]||o(n[p.id2name(s)])}function z(e){var t,n,r,o=e._fullLayout,i=o._visibleModules,a={};for(n=0;n<i.length;n++){var s=i[n],l=s.crossTraceCalc;if(l){var c=s.basePlotModule.name;a[c]?d.pushUnique(a[c],l):a[c]=[l]}}for(r in a){var u=a[r],f=o._subplots[r];if(Array.isArray(f))for(t=0;t<f.length;t++){var h=f[t],p="cartesian"===r?o._plots[h]:o[h];for(n=0;n<u.length;n++)u[n](e,p,h)}else for(n=0;n<u.length;n++)u[n](e)}}w.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()},w.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()},w.reselect=function(e){var t=e._fullLayout,n=(e.layout||{}).selections,r=t._previousSelections;t._previousSelections=n;var o=t._reselect||JSON.stringify(n)!==JSON.stringify(r);l.getComponentMethod("selections","reselect")(e,o)},w.generalUpdatePerTraceModule=function(e,t,n,r){var o,i=t.traceHash,a={};for(o=0;o<n.length;o++){var s=n[o],l=s[0].trace;l.visible&&(a[l.type]=a[l.type]||[],a[l.type].push(s))}for(var c in i)if(!a[c]){var u=i[c][0];u[0].trace.visible=!1,a[c]=[u]}for(var f in a){var h=a[f];h[0][0].trace._module.plot(e,t,d.filterVisible(h),r)}t.traceHash=a},w.plotBasePlot=function(e,t,n,r,o){var i=l.getModule(e),a=b(t.calcdata,i)[0];i.plot(t,a,r,o)},w.cleanBasePlot=function(e,t,n,r,o){var i=o._has&&o._has(e),a=n._has&&n._has(e);i&&!a&&o["_"+e+"layer"].selectAll("g.trace").remove()}},"./node_modules/plotly.js/src/plots/subplot_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plot_api/plot_template.js"),i=n("./node_modules/plotly.js/src/plots/domain.js").defaults;e.exports=function(e,t,n,a){var s,l,c=a.type,u=a.attributes,d=a.handleDefaults,f=a.partition||"x",h=t._subplots[c],p=h.length,m=p&&h[0].replace(/\d+$/,"");function g(e,t){return r.coerce(s,l,u,e,t)}for(var v=0;v<p;v++){var y=h[v];s=e[y]?e[y]:e[y]={},l=o.newContainer(t,y,m),a.noUirevision||g("uirevision",t.uirevision);var b={};b[f]=[v/p,(v+1)/p],i(l,t,g,b),a.id=y,d(s,l,g,a)}}},"./node_modules/plotly.js/src/plots/template_attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/constants/docs.js"),o=r.FORMAT_LINK,i=r.DATE_FORMAT_LINK;function a(e){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e&&e.supportOther?" 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}".',o,"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}".',i,"for details on the date formatting syntax."].join(" ")}function s(e){var t=e.description?" "+e.description:"",n=e.keys||[];if(n.length>0){for(var r=[],o=0;o<n.length;o++)r[o]="`"+n[o]+"`";t+="Finally, the template string has access to ",t=1===n.length?t+"variable "+r[0]:t+"variables "+r.slice(0,-1).join(", ")+" and "+r.slice(-1)+"."}return t}t.hovertemplateAttrs=function(e,t){e=e||{};var n=s(t=t||{}),r={valType:"string",dflt:"",editType:e.editType||"none",description:["Template string used for rendering the information that appear on hover box.","Note that this will override `hoverinfo`.",a({supportOther:!0}),"The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data.","Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",n,'Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>".',"To hide the secondary box completely, use an empty tag `<extra></extra>`."].join(" ")};return!1!==e.arrayOk&&(r.arrayOk=!0),r},t.texttemplateAttrs=function(e,t){e=e||{};var n=s(t=t||{}),r={valType:"string",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",a(),"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",n].join(" ")};return!1!==e.arrayOk&&(r.arrayOk=!0),r},t.shapeTexttemplateAttrs=function(e,t){t=t||{};var n=(e=e||{}).newshape?"new ":"",r=s(t);return{valType:"string",dflt:"",editType:e.editType||"arraydraw",description:["Template string used for rendering the "+n+"shape's label.","Note that this will override `text`.",["Variables are inserted using %{variable},",'for example "x0: %{x0}".','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{x0:$.2f}". See',o,"for details on the formatting syntax.",'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example "Day: %{x0|%m %b %Y}". See',i,"for details on the date formatting syntax.","A single multiplication or division operation may be applied to numeric variables, and combined with",'d3 number formatting, for example "Length in cm: %{x0*2.54}", "%{slope*60:.1f} meters per second."',"For log axes, variable values are given in log units.","For date axes, x/y coordinate variables and center variables use datetimes, while all other variable values use values in ms."].join(" "),r].join(" ")}}},"./node_modules/plotly.js/src/registry.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/loggers.js"),o=n("./node_modules/plotly.js/src/lib/noop.js"),i=n("./node_modules/plotly.js/src/lib/push_unique.js"),a=n("./node_modules/plotly.js/src/lib/is_plain_object.js"),s=n("./node_modules/plotly.js/src/lib/dom.js").addStyleRule,l=n("./node_modules/plotly.js/src/lib/extend.js"),c=n("./node_modules/plotly.js/src/plots/attributes.js"),u=n("./node_modules/plotly.js/src/plots/layout_attributes.js"),d=l.extendFlat,f=l.extendDeepAll;function h(e){var n=e.name,o=e.categories,i=e.meta;if(t.modules[n])r.log("Type "+n+" already registered");else{t.subplotsRegistry[e.basePlotModule.name]||function(e){var n=e.name;if(t.subplotsRegistry[n])return void r.log("Plot type "+n+" already registered.");for(var o in v(e),t.subplotsRegistry[n]=e,t.componentsRegistry)x(o,e.name)}(e.basePlotModule);for(var a={},l=0;l<o.length;l++)a[o[l]]=!0,t.allCategories[o[l]]=!0;for(var c in t.modules[n]={_module:e,categories:a},i&&Object.keys(i).length&&(t.modules[n].meta=i),t.allTypes.push(n),t.componentsRegistry)y(c,n);e.layoutAttributes&&d(t.traceLayoutAttributes,e.layoutAttributes);var u=e.basePlotModule,f=u.name;if("mapbox"===f){var h=u.constants.styleRules;for(var p in h)s(".js-plotly-plot .plotly .mapboxgl-"+p,h[p])}"geo"!==f&&"mapbox"!==f||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function p(e){if("string"!=typeof e.name)throw new Error("Component module *name* must be a string.");var n=e.name;for(var r in t.componentsRegistry[n]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&i(t.layoutArrayContainers,n),v(e)),t.modules)y(n,r);for(var o in t.subplotsRegistry)x(n,o);for(var a in t.transformsRegistry)b(n,a);e.schema&&e.schema.layout&&f(u,e.schema.layout)}function m(e){if("string"!=typeof e.name)throw new Error("Transform module *name* must be a string.");var n="Transform module "+e.name,o="function"==typeof e.transform,i="function"==typeof e.calcTransform;if(!o&&!i)throw new Error(n+" is missing a *transform* or *calcTransform* method.");for(var s in o&&i&&r.log([n+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),a(e.attributes)||r.log(n+" registered without an *attributes* object."),"function"!=typeof e.supplyDefaults&&r.log(n+" registered without a *supplyDefaults* method."),t.transformsRegistry[e.name]=e,t.componentsRegistry)b(s,e.name)}function g(e){var n=e.name,r=n.split("-")[0],o=e.dictionary,i=e.format,a=o&&Object.keys(o).length,s=i&&Object.keys(i).length,l=t.localeRegistry,c=l[n];if(c||(l[n]=c={}),r!==n){var u=l[r];u||(l[r]=u={}),a&&u.dictionary===c.dictionary&&(u.dictionary=o),s&&u.format===c.format&&(u.format=i)}a&&(c.dictionary=o),s&&(c.format=i)}function v(e){if(e.layoutAttributes){var n=e.layoutAttributes._arrayAttrRegexps;if(n)for(var r=0;r<n.length;r++)i(t.layoutArrayRegexes,n[r])}}function y(e,n){var r=t.componentsRegistry[e].schema;if(r&&r.traces){var o=r.traces[n];o&&f(t.modules[n]._module.attributes,o)}}function b(e,n){var r=t.componentsRegistry[e].schema;if(r&&r.transforms){var o=r.transforms[n];o&&f(t.transformsRegistry[n].attributes,o)}}function x(e,n){var r=t.componentsRegistry[e].schema;if(r&&r.subplots){var o=t.subplotsRegistry[n],i=o.layoutAttributes,a="subplot"===o.attr?o.name:o.attr;Array.isArray(a)&&(a=a[0]);var s=r.subplots[a];i&&s&&f(i,s)}}function _(e){return"object"==typeof e&&(e=e.type),e}t.modules={},t.allCategories={},t.allTypes=[],t.subplotsRegistry={},t.transformsRegistry={},t.componentsRegistry={},t.layoutArrayContainers=[],t.layoutArrayRegexes=[],t.traceLayoutAttributes={},t.localeRegistry={},t.apiMethodRegistry={},t.collectableSubplotTypes=null,t.register=function(e){if(t.collectableSubplotTypes=null,!e)throw new Error("No argument passed to Plotly.register.");e&&!Array.isArray(e)&&(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(!r)throw new Error("Invalid module was attempted to be registered!");switch(r.moduleType){case"trace":h(r);break;case"transform":m(r);break;case"component":p(r);break;case"locale":g(r);break;case"apiMethod":var o=r.name;t.apiMethodRegistry[o]=r.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},t.getModule=function(e){var n=t.modules[_(e)];return!!n&&n._module},t.traceIs=function(e,n){if("various"===(e=_(e)))return!1;var o=t.modules[e];return o||(e&&r.log("Unrecognized trace type "+e+"."),o=t.modules[c.type.dflt]),!!o.categories[n]},t.getTransformIndices=function(e,t){for(var n=[],r=e.transforms||[],o=0;o<r.length;o++)r[o].type===t&&n.push(o);return n},t.hasTransform=function(e,t){for(var n=e.transforms||[],r=0;r<n.length;r++)if(n[r].type===t)return!0;return!1},t.getComponentMethod=function(e,n){var r=t.componentsRegistry[e];return r&&r[n]||o},t.call=function(){var e=arguments[0],n=[].slice.call(arguments,1);return t.apiMethodRegistry[e].apply(null,n)}},"./node_modules/plotly.js/src/snapshot/cloneplot.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=o.extendFlat,a=o.extendDeep;function s(e){var t;switch(e){case"themes__thumb":t={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":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}e.exports=function(e,t){var n,o,l=e.data,c=e.layout,u=a([],l),d=a({},c,s(t.tileClass)),f=e._context||{};if(t.width&&(d.width=t.width),t.height&&(d.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){d.annotations=[];var h=Object.keys(d);for(n=0;n<h.length;n++)o=h[n],["xaxis","yaxis","zaxis"].indexOf(o.slice(0,5))>-1&&(d[h[n]].title={text:""});for(n=0;n<u.length;n++){var p=u[n];p.showscale=!1,p.marker&&(p.marker.showscale=!1),r.traceIs(p,"pie-like")&&(p.textposition="none")}}if(Array.isArray(t.annotations))for(n=0;n<t.annotations.length;n++)d.annotations.push(t.annotations[n]);var m=Object.keys(d).filter((function(e){return e.match(/^scene\d*$/)}));if(m.length){var g={};for("thumbnail"===t.tileClass&&(g={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<m.length;n++){var v=d[m[n]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),i(v.xaxis,g),i(v.yaxis,g),i(v.zaxis,g),v._scene=null}}var y=document.createElement("div");t.tileClass&&(y.className=t.tileClass);var b={gd:y,td:y,layout:d,data:u,config:{staticPlot:void 0===t.staticPlot||t.staticPlot,plotGlPixelRatio:void 0===t.plotGlPixelRatio?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showLink:t.showLink||!1,showTips:t.showTips||!1,mapboxAccessToken:f.mapboxAccessToken}};return"transparent"!==t.setBackground&&(b.config.setBackground=t.setBackground||"opaque"),b.gd.defaultLayout=s(t.tileClass),b}},"./node_modules/plotly.js/src/snapshot/download.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/plot_api/to_image.js"),i=n("./node_modules/plotly.js/src/snapshot/filesaver.js"),a=n("./node_modules/plotly.js/src/snapshot/helpers.js");e.exports=function(e,t){var n;return r.isPlainObject(e)||(n=r.getGraphDiv(e)),(t=t||{}).format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise((function(s,l){n&&n._snapshotInProgress&&l(new Error("Snapshotting already in progress.")),r.isIE()&&"svg"!==t.format&&l(new Error(a.MSG_IE_BAD_FORMAT)),n&&(n._snapshotInProgress=!0);var c=o(e,t),u=t.filename||e.fn||"newplot";u+="."+t.format.replace("-","."),c.then((function(e){return n&&(n._snapshotInProgress=!1),i(e,u,t.format)})).then((function(e){s(e)})).catch((function(e){n&&(n._snapshotInProgress=!1),l(e)}))}))}},"./node_modules/plotly.js/src/snapshot/filesaver.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/snapshot/helpers.js");e.exports=function(e,t,n){var i=document.createElement("a"),a="download"in i;return new Promise((function(s,l){var c,u;if(r.isIE())return c=o.createBlob(e,"svg"),window.navigator.msSaveBlob(c,t),c=null,s(t);if(a)return c=o.createBlob(e,n),u=o.createObjectURL(c),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),o.revokeObjectURL(u),c=null,s(t);if(r.isSafari()){var d="svg"===n?",":";base64,";return o.octetStream(d+encodeURIComponent(e)),s(t)}l(new Error("download error"))}))}},"./node_modules/plotly.js/src/snapshot/helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js");t.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0},t.getRedrawFunc=function(e){return function(){r.getComponentMethod("colorbar","draw")(e)}},t.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)},t.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var o=window.URL||window.webkitURL;t.createObjectURL=function(e){return o.createObjectURL(e)},t.revokeObjectURL=function(e){return o.revokeObjectURL(e)},t.createBlob=function(e,t){if("svg"===t)return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if("full-json"===t)return new window.Blob([e],{type:"application/json;charset=utf-8"});var n=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o<t;o++)r[o]=e.charCodeAt(o);return n}(window.atob(e));return new window.Blob([n],{type:"image/"+t})},t.octetStream=function(e){document.location.href="data:application/octet-stream"+e},t.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,t.MSG_IE_BAD_FORMAT="Sorry IE does not support downloading from canvas. Try {format:'svg'} instead."},"./node_modules/plotly.js/src/snapshot/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/snapshot/helpers.js"),o={getDelay:r.getDelay,getRedrawFunc:r.getRedrawFunc,clone:n("./node_modules/plotly.js/src/snapshot/cloneplot.js"),toSVG:n("./node_modules/plotly.js/src/snapshot/tosvg.js"),svgToImg:n("./node_modules/plotly.js/src/snapshot/svgtoimg.js"),toImage:n("./node_modules/plotly.js/src/snapshot/toimage.js"),downloadImage:n("./node_modules/plotly.js/src/snapshot/download.js")};e.exports=o},"./node_modules/plotly.js/src/snapshot/svgtoimg.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/events/events.js").EventEmitter,i=n("./node_modules/plotly.js/src/snapshot/helpers.js");e.exports=function(e){var t=e.emitter||new o,n=new Promise((function(o,a){var s=window.Image,l=e.svg,c=e.format||"png";if(r.isIE()&&"svg"!==c){var u=new Error(i.MSG_IE_BAD_FORMAT);return a(u),e.promise?n:t.emit("error",u)}var d,f,h=e.canvas,p=e.scale||1,m=e.width||300,g=e.height||150,v=p*m,y=p*g,b=h.getContext("2d",{willReadFrequently:!0}),x=new s;"svg"===c||r.isSafari()?f=i.encodeSVG(l):(d=i.createBlob(l,"svg"),f=i.createObjectURL(d)),h.width=v,h.height=y,x.onload=function(){var n;switch(d=null,i.revokeObjectURL(f),"svg"!==c&&b.drawImage(x,0,0,v,y),c){case"jpeg":n=h.toDataURL("image/jpeg");break;case"png":n=h.toDataURL("image/png");break;case"webp":n=h.toDataURL("image/webp");break;case"svg":n=f;break;default:var r="Image format is not jpeg, png, svg or webp.";if(a(new Error(r)),!e.promise)return t.emit("error",r)}o(n),e.promise||t.emit("success",n)},x.onerror=function(n){if(d=null,i.revokeObjectURL(f),a(n),!e.promise)return t.emit("error",n)},x.src=f}));return e.promise?n:t}},"./node_modules/plotly.js/src/snapshot/toimage.js":function(e,t,n){"use strict";var r=n("./node_modules/events/events.js").EventEmitter,o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/lib/index.js"),a=n("./node_modules/plotly.js/src/snapshot/helpers.js"),s=n("./node_modules/plotly.js/src/snapshot/cloneplot.js"),l=n("./node_modules/plotly.js/src/snapshot/tosvg.js"),c=n("./node_modules/plotly.js/src/snapshot/svgtoimg.js");e.exports=function(e,t){var n=new r,u=s(e,{format:"png"}),d=u.gd;d.style.position="absolute",d.style.left="-5000px",document.body.appendChild(d);var f=a.getRedrawFunc(d);return o.call("_doPlot",d,u.data,u.layout,u.config).then(f).then((function(){var e=a.getDelay(d._fullLayout);setTimeout((function(){var e=l(d),r=document.createElement("canvas");r.id=i.randstr(),(n=c({format:t.format,width:d._fullLayout.width,height:d._fullLayout.height,canvas:r,emitter:n,svg:e})).clean=function(){d&&document.body.removeChild(d)}}),e)})).catch((function(e){n.emit("error",e)})),n}},"./node_modules/plotly.js/src/snapshot/tosvg.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/components/drawing/index.js"),a=n("./node_modules/plotly.js/src/components/color/index.js"),s=n("./node_modules/plotly.js/src/constants/xmlns_namespaces.js"),l=/"/g,c=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");e.exports=function(e,t,n){var u,d=e._fullLayout,f=d._paper,h=d._toppaper,p=d.width,m=d.height;f.insert("rect",":first-child").call(i.setRect,0,0,p,m).call(a.fill,d.paper_bgcolor);var g=d._basePlotModules||[];for(u=0;u<g.length;u++){var v=g[u];v.toSVG&&v.toSVG(e)}if(h){var y=h.node().childNodes,b=Array.prototype.slice.call(y);for(u=0;u<b.length;u++){var x=b[u];x.childNodes.length&&f.node().appendChild(x)}}d._draggers&&d._draggers.remove(),f.node().style.background="",f.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each((function(){var e=r.select(this);if("hidden"!==this.style.visibility&&"none"!==this.style.display){e.style({visibility:null,display:null});var t=this.style.fontFamily;t&&-1!==t.indexOf('"')&&e.style("font-family",t.replace(l,"TOBESTRIPPED"));var n=this.style.fontWeight;!n||"normal"!==n&&"400"!==n||e.style("font-weight",void 0);var o=this.style.fontStyle;o&&"normal"===o&&e.style("font-style",void 0);var i=this.style.fontVariant;i&&"normal"===i&&e.style("font-variant",void 0)}else e.remove()})),f.selectAll(".gradient_filled,.pattern_filled").each((function(){var e=r.select(this),t=this.style.fill;t&&-1!==t.indexOf("url(")&&e.style("fill",t.replace(l,"TOBESTRIPPED"));var n=this.style.stroke;n&&-1!==n.indexOf("url(")&&e.style("stroke",n.replace(l,"TOBESTRIPPED"))})),"pdf"!==t&&"eps"!==t||f.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),f.node().setAttributeNS(s.xmlns,"xmlns",s.svg),f.node().setAttributeNS(s.xmlns,"xmlns:xlink",s.xlink),"svg"===t&&n&&(f.attr("width",n*p),f.attr("height",n*m),f.attr("viewBox","0 0 "+p+" "+m));var _=(new window.XMLSerializer).serializeToString(f.node());return _=function(e){var t=r.select("body").append("div").style({display:"none"}).html(""),n=e.replace(/(&[^;]*;)/gi,(function(e){return"&lt;"===e?"&#60;":"&rt;"===e?"&#62;":-1!==e.indexOf("<")||-1!==e.indexOf(">")?"":t.html(e).text()}));return t.remove(),n}(_),_=(_=_.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")).replace(c,"'"),o.isIE()&&(_=(_=(_=_.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),_}},"./node_modules/plotly.js/src/traces/bar/cross_trace_calc.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/index.js").isArrayOrTypedArray,i=n("./node_modules/plotly.js/src/constants/numerical.js").BADNUM,a=n("./node_modules/plotly.js/src/registry.js"),s=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),l=n("./node_modules/plotly.js/src/plots/cartesian/constraints.js").getAxisGroup,c=n("./node_modules/plotly.js/src/traces/bar/sieve.js");function u(e,t,n,a,u){if(a.length){var x,_,w,j;switch(function(e,t){var n,i;for(n=0;n<t.length;n++){var a,s=t[n],l=s[0].trace,c="funnel"===l.type?l._base:l.base,u="h"===l.orientation?l.xcalendar:l.ycalendar,d="category"===e.type||"multicategory"===e.type?function(){return null}:e.d2c;if(o(c)){for(i=0;i<Math.min(c.length,s.length);i++)a=d(c[i],0,u),r(a)?(s[i].b=+a,s[i].hasB=1):s[i].b=0;for(;i<s.length;i++)s[i].b=0}else{a=d(c,0,u);var f=r(a);for(a=f?a:0,i=0;i<s.length;i++)s[i].b=a,f&&(s[i].hasB=1)}}}(n,a),u.mode){case"overlay":d(t,n,a,u);break;case"group":for(x=[],_=[],w=0;w<a.length;w++)void 0===(j=a[w])[0].trace.offset?_.push(j):x.push(j);_.length&&function(e,t,n,r,o){var a=new c(r,{posAxis:t,sepNegVal:!1,overlapNoMerge:!o.norm});(function(e,t,n,r){for(var o=e._fullLayout,i=n.positions,a=n.distinctPositions,s=n.minDiff,c=n.traces,u=c.length,d=i.length!==a.length,f=s*(1-r.gap),g=l(o,t._id)+c[0][0].trace.orientation,v=o._alignmentOpts[g]||{},y=0;y<u;y++){var b,x,_=c[y],w=_[0].trace,j=v[w.alignmentgroup]||{},k=Object.keys(j.offsetGroups||{}).length,T=(b=k?f/k:d?f/u:f)*(1-(r.groupgap||0));x=k?((2*w._offsetIndex+1-k)*b-T)/2:d?((2*y+1-u)*b-T)/2:-T/2;var A=_[0].t;A.barwidth=T,A.poffset=x,A.bargroupwidth=f,A.bardelta=s}n.binWidth=c[0][0].t.barwidth/100,h(n),p(t,n),m(t,n,d)})(e,t,a,o),function(e,t){for(var n=e.traces,r=0;r<n.length;r++){var o=n[r];if(void 0===o[0].trace.base)for(var a=new c([o],{posAxis:t,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<o.length;s++){var l=o[s];if(l.p!==i){var u=a.put(l.p,l.b+l.s);u&&(l.b=u)}}}}(a,t),o.norm?(v(a),y(n,a,o)):g(n,a)}(e,t,n,_,u),x.length&&d(t,n,x,u);break;case"stack":case"relative":for(x=[],_=[],w=0;w<a.length;w++)void 0===(j=a[w])[0].trace.base?_.push(j):x.push(j);!function(e){if(e.length<2)return;var t,n,o,i,a,s,l;for(t=0;t<e.length&&(n=e[t],o=n[0].trace,void 0===(a=o.marker?o.marker.cornerradius:void 0));t++);if(void 0!==a)for(s=r(a)?+a:+a.slice(0,-1),l=r(a)?"px":"%",t=0;t<e.length;t++)n=e[t],(i=n[0].t).cornerradiusvalue=s,i.cornerradiusform=l}(_),_.length&&function(e,t,n,r,o){var a=new c(r,{posAxis:t,sepNegVal:"relative"===o.mode,overlapNoMerge:!(o.norm||"stack"===o.mode||"relative"===o.mode)});f(t,a,o),function(e,t,n){var r,o,a,l,c,u,d=b(e),f=t.traces;for(l=0;l<f.length;l++)if(r=f[l],"funnel"===(o=r[0].trace).type)for(c=0;c<r.length;c++)(u=r[c]).s!==i&&t.put(u.p,-.5*u.s);for(l=0;l<f.length;l++){r=f[l],o=r[0].trace,a="funnel"===o.type;var h=[];for(c=0;c<r.length;c++)if((u=r[c]).s!==i){var p;p=a?u.s:u.s+u.b;var m=t.put(u.p,p),g=m+p;u.b=m,u[d]=g,n.norm||(h.push(g),u.hasB&&h.push(m))}n.norm||(o._extremes[e._id]=s.findExtremes(e,h,{tozero:!0,padded:!0}))}}(n,a,o);for(var l=0;l<r.length;l++)for(var u=r[l],d=0;d<u.length;d++){var h=u[d];if(h.s!==i)h.b+h.s===a.get(h.p,h.s)&&(h._outmost=!0)}o.norm&&y(n,a,o)}(0,t,n,_,u),x.length&&d(t,n,x,u)}!function(e){var t,n,o,i,a,s,l;for(t=0;t<e.length;t++)n=e[t],o=n[0].trace,void 0===(i=n[0].t).cornerradiusvalue&&void 0!==(a=o.marker?o.marker.cornerradius:void 0)&&(s=r(a)?+a:+a.slice(0,-1),l=r(a)?"px":"%",i.cornerradiusvalue=s,i.cornerradiusform=l)}(a),function(e,t){var n,i,a,s=b(t),l={},c=1/0,u=-1/0;for(n=0;n<e.length;n++)for(a=e[n],i=0;i<a.length;i++){var d=a[i].p;r(d)&&(c=Math.min(c,d),u=Math.max(u,d))}var f=1e4/(u-c),h=l.round=function(e){return String(Math.round(f*(e-c)))},p={},m={},g=e.some((function(e){var t=e[0].trace;return"marker"in t&&t.marker.cornerradius}));for(n=0;n<e.length;n++){(a=e[n])[0].t.extents=l;var v=a[0].t.poffset,y=o(v);for(i=0;i<a.length;i++){var x=a[i],_=x[s]-x.w/2;if(r(_)){var w=x[s]+x.w/2,j=h(x.p);l[j]?l[j]=[Math.min(_,l[j][0]),Math.max(w,l[j][1])]:l[j]=[_,w]}if(x.p0=x.p+(y?v[i]:v),x.p1=x.p0+x.w,x.s0=x.b,x.s1=x.s0+x.s,g){var k=Math.min(x.s0,x.s1)||0,T=Math.max(x.s0,x.s1)||0,A=x[s];p[A]=A in p?Math.min(p[A],k):k,m[A]=A in m?Math.max(m[A],T):T}}}g&&function(e,t,n,r){for(var o=b(r),i=0;i<e.length;i++)for(var a=e[i],s=0;s<a.length;s++){var l=a[s],c=l[o];l._sMin=t[c],l._sMax=n[c]}}(e,p,m,t)}(a,t)}}function d(e,t,n,r){for(var o=0;o<n.length;o++){var i=n[o],a=new c([i],{posAxis:e,sepNegVal:!1,overlapNoMerge:!r.norm});f(e,a,r),r.norm?(v(a),y(t,a,r)):g(t,a)}}function f(e,t,n){for(var r=t.minDiff,o=t.traces,i=r*(1-n.gap),a=i*(1-(n.groupgap||0)),s=-a/2,l=0;l<o.length;l++){var c=o[l][0].t;c.barwidth=a,c.poffset=s,c.bargroupwidth=i,c.bardelta=r}t.binWidth=o[0][0].t.barwidth/100,h(t),p(e,t),m(e,t)}function h(e){var t,n,i=e.traces;for(t=0;t<i.length;t++){var a,s=i[t],l=s[0],c=l.trace,u=l.t,d=c._offset||c.offset,f=u.poffset;if(o(d)){for(a=Array.prototype.slice.call(d,0,s.length),n=0;n<a.length;n++)r(a[n])||(a[n]=f);for(n=a.length;n<s.length;n++)a.push(f);u.poffset=a}else void 0!==d&&(u.poffset=d);var h=c._width||c.width,p=u.barwidth;if(o(h)){var m=Array.prototype.slice.call(h,0,s.length);for(n=0;n<m.length;n++)r(m[n])||(m[n]=p);for(n=m.length;n<s.length;n++)m.push(p);if(u.barwidth=m,void 0===d){for(a=[],n=0;n<s.length;n++)a.push(f+(p-m[n])/2);u.poffset=a}}else void 0!==h&&(u.barwidth=h,void 0===d&&(u.poffset=f+(p-h)/2))}}function p(e,t){for(var n=t.traces,r=b(e),i=0;i<n.length;i++)for(var a=n[i],s=a[0].t,l=s.poffset,c=o(l),u=s.barwidth,d=o(u),f=0;f<a.length;f++){var h=a[f],p=h.w=d?u[f]:u;void 0===h.p&&(h.p=h[r],h["orig_"+r]=h[r]);var m=(c?l[f]:l)+p/2;h[r]=h.p+m}}function m(e,t,n){var r=t.traces,i=t.minDiff/2;s.minDtick(e,t.minDiff,t.distinctPositions[0],n);for(var a=0;a<r.length;a++){var l,c,u,d,f=r[a],h=f[0],p=h.trace,m=[];for(d=0;d<f.length;d++)c=(l=f[d]).p-i,u=l.p+i,m.push(c,u);if(p.width||p.offset){var g=h.t,v=g.poffset,y=g.barwidth,b=o(v),x=o(y);for(d=0;d<f.length;d++){l=f[d];var _=b?v[d]:v,w=x?y[d]:y;u=(c=l.p+_)+w,m.push(c,u)}}p._extremes[e._id]=s.findExtremes(e,m,{padded:!1})}}function g(e,t){for(var n=t.traces,r=b(e),o=0;o<n.length;o++){for(var i=n[o],a=i[0].trace,l="scatter"===a.type,c="v"===a.orientation,u=[],d=!1,f=0;f<i.length;f++){var h=i[f],p=l?0:h.b,m=l?c?h.y:h.x:p+h.s;h[r]=m,u.push(m),h.hasB&&u.push(p),h.hasB&&h.b||(d=!0)}a._extremes[e._id]=s.findExtremes(e,u,{tozero:d,padded:!0})}}function v(e){for(var t=e.traces,n=0;n<t.length;n++)for(var r=t[n],o=0;o<r.length;o++){var a=r[o];a.s!==i&&e.put(a.p,a.b+a.s)}}function y(e,t,n){var o=t.traces,a=b(e),l="fraction"===n.norm?1:100,c=l/1e9,u=e.l2c(e.c2l(0)),d="stack"===n.mode?l:u;function f(t){return r(e.c2l(t))&&(t<u-c||t>d+c||!r(u))}for(var h=0;h<o.length;h++){for(var p=o[h],m=p[0].trace,g=[],v=!1,y=!1,x=0;x<p.length;x++){var _=p[x];if(_.s!==i){var w=Math.abs(l/t.get(_.p,_.s));_.b*=w,_.s*=w;var j=_.b,k=j+_.s;_[a]=k,g.push(k),y=y||f(k),_.hasB&&(g.push(j),y=y||f(j)),_.hasB&&_.b||(v=!0)}}m._extremes[e._id]=s.findExtremes(e,g,{tozero:v,padded:y})}}function b(e){return e._id.charAt(0)}e.exports={crossTraceCalc:function(e,t){for(var n=t.xaxis,r=t.yaxis,o=e._fullLayout,i=e._fullData,s=e.calcdata,l=[],c=[],d=0;d<i.length;d++){var f=i[d];if(!0===f.visible&&a.traceIs(f,"bar")&&f.xaxis===n._id&&f.yaxis===r._id&&("h"===f.orientation?l.push(s[d]):c.push(s[d]),f._computePh))for(var h=e.calcdata[d],p=0;p<h.length;p++)"function"==typeof h[p].ph0&&(h[p].ph0=h[p].ph0()),"function"==typeof h[p].ph1&&(h[p].ph1=h[p].ph1())}var m={xCat:"category"===n.type||"multicategory"===n.type,yCat:"category"===r.type||"multicategory"===r.type,mode:o.barmode,norm:o.barnorm,gap:o.bargap,groupgap:o.bargroupgap};u(e,n,r,c,m),u(e,r,n,l,m)},setGroupPositions:u}},"./node_modules/plotly.js/src/traces/bar/sieve.js":function(e,t,n){"use strict";e.exports=o;var r=n("./node_modules/plotly.js/src/lib/index.js").distinctVals;function o(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var n=1/0,o=t.posAxis._id.charAt(0),i=[],a=0;a<e.length;a++){for(var s=e[a],l=0;l<s.length;l++){var c=s[l],u=c.p;void 0===u&&(u=c[o]),void 0!==u&&i.push(u)}s[0]&&s[0].width1&&(n=Math.min(s[0].width1,n))}this.positions=i;var d=r(i);this.distinctPositions=d.vals,1===d.vals.length&&n!==1/0?this.minDiff=n:this.minDiff=Math.min(d.minDiff,n);var f=(t.posAxis||{}).type;"category"!==f&&"multicategory"!==f||(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}o.prototype.put=function(e,t){var n=this.getLabel(e,t),r=this.bins[n]||0;return this.bins[n]=r+t,r},o.prototype.get=function(e,t){var n=this.getLabel(e,t);return this.bins[n]||0},o.prototype.getLabel=function(e,t){return(t<0&&this.sepNegVal?"v":"^")+(this.overlapNoMerge?e:Math.round(e/this.binWidth))}},"./node_modules/plotly.js/src/traces/pie/fill_one.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/drawing/index.js"),o=n("./node_modules/plotly.js/src/components/color/index.js");e.exports=function(e,t,n,i){var a=n.marker.pattern;a&&a.shape?r.pointStyle(e,n,i,t):o.fill(e,t.color)}},"./node_modules/plotly.js/src/traces/pie/helpers.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js");function o(e){return-1!==e.indexOf("e")?e.replace(/[.]?0+e/,"e"):-1!==e.indexOf(".")?e.replace(/[.]?0+$/,""):e}t.formatPiePercent=function(e,t){var n=o((100*e).toPrecision(3));return r.numSeparate(n,t)+"%"},t.formatPieValue=function(e,t){var n=o(e.toPrecision(10));return r.numSeparate(n,t)},t.getFirstFilled=function(e,t){if(r.isArrayOrTypedArray(e))for(var n=0;n<t.length;n++){var o=e[t[n]];if(o||0===o||""===o)return o}},t.castOption=function(e,n){return r.isArrayOrTypedArray(e)?t.getFirstFilled(e,n):e||void 0},t.getRotationAngle=function(e){return("auto"===e?0:e)*Math.PI/180}},"./node_modules/plotly.js/src/traces/pie/style_one.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/color/index.js"),o=n("./node_modules/plotly.js/src/traces/pie/helpers.js").castOption,i=n("./node_modules/plotly.js/src/traces/pie/fill_one.js");e.exports=function(e,t,n,a){var s=n.marker.line,l=o(s.color,t.pts)||r.defaultLine,c=o(s.width,t.pts)||0;e.call(i,t,n,a).style("stroke-width",c).call(r.stroke,l)}},"./node_modules/plotly.js/src/traces/scatter/arrays_to_calcdata.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js");e.exports=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;r.mergeArray(t.text,e,"tx"),r.mergeArray(t.texttemplate,e,"txt"),r.mergeArray(t.hovertext,e,"htx"),r.mergeArray(t.customdata,e,"data"),r.mergeArray(t.textposition,e,"tp"),t.textfont&&(r.mergeArrayCastPositive(t.textfont.size,e,"ts"),r.mergeArray(t.textfont.color,e,"tc"),r.mergeArray(t.textfont.family,e,"tf"),r.mergeArray(t.textfont.weight,e,"tw"),r.mergeArray(t.textfont.style,e,"ty"),r.mergeArray(t.textfont.variant,e,"tv"),r.mergeArray(t.textfont.textcase,e,"tC"),r.mergeArray(t.textfont.lineposition,e,"tE"),r.mergeArray(t.textfont.shadow,e,"tS"));var o=t.marker;if(o){r.mergeArrayCastPositive(o.size,e,"ms"),r.mergeArrayCastPositive(o.opacity,e,"mo"),r.mergeArray(o.symbol,e,"mx"),r.mergeArray(o.angle,e,"ma"),r.mergeArray(o.standoff,e,"mf"),r.mergeArray(o.color,e,"mc");var i=o.line;o.line&&(r.mergeArray(i.color,e,"mlc"),r.mergeArrayCastPositive(i.width,e,"mlw"));var a=o.gradient;a&&"none"!==a.type&&(r.mergeArray(a.type,e,"mgt"),r.mergeArray(a.color,e,"mgc"))}}},"./node_modules/plotly.js/src/traces/scatter/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/cartesian/axis_format_attributes.js").axisHoverFormat,o=n("./node_modules/plotly.js/src/plots/template_attributes.js").texttemplateAttrs,i=n("./node_modules/plotly.js/src/plots/template_attributes.js").hovertemplateAttrs,a=n("./node_modules/plotly.js/src/components/colorscale/attributes.js"),s=n("./node_modules/plotly.js/src/plots/font_attributes.js"),l=n("./node_modules/plotly.js/src/components/drawing/attributes.js").dash,c=n("./node_modules/plotly.js/src/components/drawing/attributes.js").pattern,u=n("./node_modules/plotly.js/src/components/drawing/index.js"),d=n("./node_modules/plotly.js/src/traces/scatter/constants.js"),f=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,h=n("./node_modules/plotly.js/src/traces/scatter/fillcolor_attribute.js");function p(e){return{valType:"any",dflt:0,editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the period positioning in milliseconds or *M<n>* on the "+e+" axis.","Special values in the form of *M<n>* could be used to declare","the number of months. In this case `n` must be a positive integer."].join(" ")}}function m(e){return{valType:"any",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the base for period positioning in milliseconds or date string on the "+e+" axis.","When `"+e+"period` is round number of weeks,","the `"+e+"period0` by default would be on a Sunday i.e. 2000-01-02,","otherwise it would be at 2000-01-01."].join(" ")}}function g(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the alignment of data points on the "+e+" axis."].join(" ")}}e.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `x`.","Builds a linear space of x coordinates.","Use with `dx`","where `x0` is the starting coordinate and `dx` the step."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the x coordinate step.","See `x0` for more info."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the y coordinates."},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `y`.","Builds a linear space of y coordinates.","Use with `dy`","where `y0` is the starting coordinate and `dy` the step."].join(" ")},dy:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},xperiod:p("x"),yperiod:p("y"),xperiod0:m("x0"),yperiod0:m("y0"),xperiodalignment:g("x"),yperiodalignment:g("y"),xhoverformat:r("x"),yhoverformat:r("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","offsetgroup where bars of the same position coordinate will line up."].join(" ")},alignmentgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","alignmentgroup. This controls whether bars compute their positional","range dependently or independently."].join(" ")},stackgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several scatter traces (on the same subplot) to the same","stackgroup in order to add their y values (or their x values if","`orientation` is *h*). If blank or omitted this trace will not be","stacked. Stacking also turns `fill` on by default, using *tonexty*","(*tonextx*) if `orientation` is *h* (*v*) and sets the default","`mode` to *lines* irrespective of point count.","You can only stack on a numeric (linear or log) axis.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},orientation:{valType:"enumerated",values:["v","h"],editType:"calc",description:["Only relevant in the following cases:","1. when `scattermode` is set to *group*.","2. when `stackgroup` is used, and only the first","`orientation` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`. Sets the","stacking direction. With *v* (*h*), the y (x) values of subsequent","traces are added. Also affects the default value of `fill`."].join(" ")},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`groupnorm` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Sets the normalization for the sum of this `stackgroup`.","With *fraction*, the value of each trace at each location is","divided by the sum of all trace values at that location.","*percent* is the same but multiplied by 100 to show percentages.","If there are multiple subplots, or multiple `stackgroup`s on one","subplot, each will be normalized within its own set."].join(" ")},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`stackgaps` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Determines how we handle locations at which other traces in this","group have data but this one does not.","With *infer zero* we insert a zero at these locations.","With *interpolate* we linearly interpolate between existing","values, and extrapolate a constant beyond the existing values."].join(" ")},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},texttemplate:o({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover.","If there are less than "+d.PTS_LINESONLY+" points","and the trace is not stacked","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style",description:["Do the hover effects highlight individual points (markers or","line points) or do they highlight filled regions?","If the fill is *toself* or *tonext* and there are no markers","or text, then the default is *fills*, otherwise it is *points*."].join(" ")},hovertemplate:i({},{keys:d.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0,description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0,description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot",description:["Determines the line shape.","With *spline* the lines are drawn using spline interpolation.","The other available values correspond to step-wise line shapes."].join(" ")},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot",description:["Has an effect only if `shape` is set to *spline*","Sets the amount of smoothing.","*0* corresponds to no smoothing (equivalent to a *linear* shape)."].join(" ")},dash:f({},l,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot",description:["Sets the line back off from the end point of the nth line segment (in px).","This option is useful e.g. to avoid overlap with arrowhead markers.","With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*."].join(" ")},simplify:{valType:"boolean",dflt:!0,editType:"plot",description:["Simplifies lines by removing nearly-collinear points. When transitioning","lines, it may be desirable to disable this so that the number of points","along the resulting SVG path is unaffected."].join(" ")},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the provided data arrays are connected."].join(" ")},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines whether or not markers and text nodes","are clipped about the subplot axes.","To show markers and text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc",description:["Sets the area to fill with a solid color.","Defaults to *none* unless this trace is stacked, then it gets","*tonexty* (*tonextx*) if `orientation` is *v* (*h*)","Use with `fillcolor` if not *none*.","*tozerox* and *tozeroy* fill to x=0 and y=0 respectively.","*tonextx* and *tonexty* fill between the endpoints of this","trace and the endpoints of the trace before it, connecting those","endpoints with straight lines (to make a stacked area graph);","if there is no trace before it, they behave like *tozerox* and","*tozeroy*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},fillcolor:h(!0),fillgradient:f({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc",description:["Sets the type/orientation of the color gradient for the fill.","Defaults to *none*."].join(" ")},start:{valType:"number",editType:"calc",description:["Sets the gradient start value.","It is given as the absolute position on the axis determined by","the orientiation. E.g., if orientation is *horizontal*, the","gradient will be horizontal and start from the x-position","given by start. If omitted, the gradient starts at the lowest","value of the trace along the respective axis.","Ignored if orientation is *radial*."].join(" ")},stop:{valType:"number",editType:"calc",description:["Sets the gradient end value.","It is given as the absolute position on the axis determined by","the orientiation. E.g., if orientation is *horizontal*, the","gradient will be horizontal and end at the x-position","given by end. If omitted, the gradient ends at the highest","value of the trace along the respective axis.","Ignored if orientation is *radial*."].join(" ")},colorscale:{valType:"colorscale",editType:"style",description:["Sets the fill gradient colors as a color scale.","The color scale is interpreted as a gradient","applied in the direction specified by *orientation*,","from the lowest to the highest value of the scatter","plot along that axis, or from the center to the most","distant point from it, if orientation is *radial*."].join(" ")},editType:"calc",description:["Sets a fill gradient.","If not specified, the fillcolor is used instead."].join(" ")}),fillpattern:c,marker:f({symbol:{valType:"enumerated",values:u.symbolList,dflt:"circle",arrayOk:!0,editType:"style",description:["Sets the marker symbol type.","Adding 100 is equivalent to appending *-open* to a symbol name.","Adding 200 is equivalent to appending *-dot* to a symbol name.","Adding 300 is equivalent to appending *-open-dot*","or *dot-open* to a symbol name."].join(" ")},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0,description:"Sets the marker opacity."},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1,description:["Sets the marker angle in respect to `angleref`."].join(" ")},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1,description:["Sets the reference for marker angle.","With *previous*, angle 0 points along the line from the previous point to this one.","With *up*, angle 0 points toward the top of the screen."].join(" ")},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0,description:["Moves the marker away from the data point in the direction of `angle` (in px).","This can be useful for example if you have another marker at this","location and you want to point an arrowhead marker at it."].join(" ")},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0,description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets a maximum number of points to be drawn on the graph.","*0* corresponds to no limit."].join(" ")},sizeref:{valType:"number",dflt:1,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the scale factor used to determine the rendered size of","marker points. Use with `sizemin` and `sizemode`."].join(" ")},sizemin:{valType:"number",min:0,dflt:0,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the minimum size (in px) of the rendered marker points."].join(" ")},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the rule for which the data in `size` is converted","to pixels."].join(" ")},line:f({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0,description:"Sets the width (in px) of the lines bounding the marker points."},editType:"calc"},a("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,editType:"calc",description:["Sets the final color of the gradient fill:","the center color for radial, the right for horizontal,","or the bottom for vertical."].join(" ")},editType:"calc"},editType:"calc"},a("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of selected points."},color:{valType:"color",editType:"style",description:"Sets the marker color of selected points."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of selected points."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of selected points."},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of unselected points, applied only when a selection exists."},color:{valType:"color",editType:"style",description:"Sets the marker color of unselected points, applied only when a selection exists."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of unselected points, applied only when a selection exists."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of unselected points, applied only when a selection exists."},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",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:s({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."}),zorder:{valType:"integer",dflt:0,editType:"plot",description:["Sets the layer on which this trace is displayed, relative to","other SVG traces on the same subplot. SVG traces with higher `zorder`","appear in front of those with lower `zorder`."].join(" ")}}},"./node_modules/plotly.js/src/traces/scatter/calc.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),a=n("./node_modules/plotly.js/src/plots/cartesian/align_period.js"),s=n("./node_modules/plotly.js/src/constants/numerical.js").BADNUM,l=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js"),c=n("./node_modules/plotly.js/src/traces/scatter/colorscale_calc.js"),u=n("./node_modules/plotly.js/src/traces/scatter/arrays_to_calcdata.js"),d=n("./node_modules/plotly.js/src/traces/scatter/calc_selection.js");function f(e,t,n,r,o,a,s){var c=t._length,u=e._fullLayout,d=n._id,f=r._id,h=u._firstScatter[m(t)]===t.uid,p=(g(t,u,n,r)||{}).orientation,v=t.fill;n._minDtick=0,r._minDtick=0;var y={padded:!0},b={padded:!0};s&&(y.ppad=b.ppad=s);var x=c<2||o[0]!==o[c-1]||a[0]!==a[c-1];x&&("tozerox"===v||"tonextx"===v&&(h||"h"===p))?y.tozero=!0:(t.error_y||{}).visible||"tonexty"!==v&&"tozeroy"!==v&&(l.hasMarkers(t)||l.hasText(t))||(y.padded=!1,y.ppad=0),x&&("tozeroy"===v||"tonexty"===v&&(h||"v"===p))?b.tozero=!0:"tonextx"!==v&&"tozerox"!==v||(b.padded=!1),d&&(t._extremes[d]=i.findExtremes(n,o,y)),f&&(t._extremes[f]=i.findExtremes(r,a,b))}function h(e,t){if(l.hasMarkers(e)){var n,r=e.marker,a=1.6*(e.marker.sizeref||1);if(n="area"===e.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/a),3)}:function(e){return Math.max((e||0)/a,3)},o.isArrayOrTypedArray(r.size)){var s={type:"linear"};i.setConvert(s);for(var c=s.makeCalcdata(e.marker,"size"),u=new Array(t),d=0;d<t;d++)u[d]=n(c[d]);return u}return n(r.size)}}function p(e,t){var n=m(t),r=e._firstScatter;r[n]||(r[n]=t.uid)}function m(e){var t=e.stackgroup;return e.xaxis+e.yaxis+e.type+(t?"-"+t:"")}function g(e,t,n,r){var o=e.stackgroup;if(o){var i=t._scatterStackOpts[n._id+r._id][o],a="v"===i.orientation?r:n;return"linear"===a.type||"log"===a.type?i:void 0}}e.exports={calc:function(e,t){var n,l,m,v,y,b,x=e._fullLayout,_=t._xA=i.getFromId(e,t.xaxis||"x","x"),w=t._yA=i.getFromId(e,t.yaxis||"y","y"),j=_.makeCalcdata(t,"x"),k=w.makeCalcdata(t,"y"),T=a(t,_,"x",j),A=a(t,w,"y",k),M=T.vals,S=A.vals,C=t._length,E=new Array(C),L=t.ids,O=g(t,x,_,w),R=!1;p(x,t);var I,P="x",D="y";O?(o.pushUnique(O.traceIndices,t._expandedIndex),(n="v"===O.orientation)?(D="s",I="x"):(P="s",I="y"),y="interpolate"===O.stackgaps):f(e,t,_,w,M,S,h(t,C));var z=!!t.xperiodalignment,N=!!t.yperiodalignment;for(l=0;l<C;l++){var F=E[l]={},B=r(M[l]),U=r(S[l]);B&&U?(F[P]=M[l],F[D]=S[l],z&&(F.orig_x=j[l],F.xEnd=T.ends[l],F.xStart=T.starts[l]),N&&(F.orig_y=k[l],F.yEnd=A.ends[l],F.yStart=A.starts[l])):O&&(n?B:U)?(F[I]=n?M[l]:S[l],F.gap=!0,y?(F.s=s,R=!0):F.s=0):F[P]=F[D]=s,L&&(F.id=String(L[l]))}if(u(E,t),c(e,t),d(E,t),O){for(l=0;l<E.length;)E[l][I]===s?E.splice(l,1):l++;if(o.sort(E,(function(e,t){return e[I]-t[I]||e.i-t.i})),R){for(l=0;l<E.length-1&&E[l].gap;)l++;for((b=E[l].s)||(b=E[l].s=0),m=0;m<l;m++)E[m].s=b;for(v=E.length-1;v>l&&E[v].gap;)v--;for(b=E[v].s,m=E.length-1;m>v;m--)E[m].s=b;for(;l<v;)if(E[++l].gap){for(m=l+1;E[m].gap;)m++;for(var H=E[l-1][I],V=E[l-1].s,G=(E[m].s-V)/(E[m][I]-H);l<m;)E[l].s=V+(E[l][I]-H)*G,l++}}}return E},calcMarkerSize:h,calcAxisExpansion:f,setFirstScatter:p,getStackOpts:g}},"./node_modules/plotly.js/src/traces/scatter/calc_selection.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js");e.exports=function(e,t){r.isArrayOrTypedArray(t.selectedpoints)&&r.tagSelected(e,t)}},"./node_modules/plotly.js/src/traces/scatter/colorscale_calc.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/colorscale/helpers.js").hasColorscale,o=n("./node_modules/plotly.js/src/components/colorscale/calc.js"),i=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js");e.exports=function(e,t){i.hasLines(t)&&r(t,"line")&&o(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),i.hasMarkers(t)&&(r(t,"marker")&&o(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),r(t,"marker.line")&&o(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}},"./node_modules/plotly.js/src/traces/scatter/constants.js":function(e,t,n){"use strict";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},"./node_modules/plotly.js/src/traces/scatter/cross_trace_calc.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/traces/scatter/calc.js"),o=n("./node_modules/plotly.js/src/traces/bar/cross_trace_calc.js").setGroupPositions;function i(e,t,n,r,o,i,a){o[r]=!0;var s={i:null,gap:!0,s:0};if(s[a]=n,e.splice(t,0,s),t&&n===e[t-1][a]){var l=e[t-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else i&&(s.s=function(e,t,n,r){var o=e[t-1],i=e[t+1];return i?o?o.s+(i.s-o.s)*(n-o[r])/(i[r]-o[r]):i.s:o.s}(e,t,n,a));t||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}e.exports=function(e,t){"group"===e._fullLayout.scattermode&&function(e,t){for(var n=t.xaxis,r=t.yaxis,i=e._fullLayout,a=e._fullData,s=e.calcdata,l=[],c=[],u=0;u<a.length;u++){var d=a[u];!0===d.visible&&"scatter"===d.type&&d.xaxis===n._id&&d.yaxis===r._id&&("h"===d.orientation?l.push(s[u]):"v"===d.orientation&&c.push(s[u]))}var f={mode:i.scattermode,gap:i.scattergap};o(e,n,r,c,f),o(e,r,n,l,f)}(e,t);var n=t.xaxis,a=t.yaxis,s=n._id+a._id,l=e._fullLayout._scatterStackOpts[s];if(l){var c,u,d,f,h,p,m,g,v,y,b,x,_,w,j,k=e.calcdata;for(var T in l){var A=(y=l[T]).traceIndices;if(A.length){for(b="interpolate"===y.stackgaps,x=y.groupnorm,"v"===y.orientation?(_="x",w="y"):(_="y",w="x"),j=new Array(A.length),c=0;c<j.length;c++)j[c]=!1;p=k[A[0]];var M=new Array(p.length);for(c=0;c<p.length;c++)M[c]=p[c][_];for(c=1;c<A.length;c++){for(h=k[A[c]],u=d=0;u<h.length;u++){for(m=h[u][_];m>M[d]&&d<M.length;d++)i(h,u,M[d],c,j,b,_),u++;if(m!==M[d]){for(f=0;f<c;f++)i(k[A[f]],d,m,f,j,b,_);M.splice(d,0,m)}d++}for(;d<M.length;d++)i(h,u,M[d],c,j,b,_),u++}var S=M.length;for(u=0;u<p.length;u++){for(g=p[u][w]=p[u].s,c=1;c<A.length;c++)(h=k[A[c]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[u].s,h[u][w]=g;if(x)for(v=("fraction"===x?g:g/100)||1,c=0;c<A.length;c++){var C=k[A[c]][u];C[w]/=v,C.sNorm=C.s/v}}for(c=0;c<A.length;c++){var E=(h=k[A[c]])[0].trace,L=r.calcMarkerSize(E,E._rawLength),O=Array.isArray(L);if(L&&j[c]||O){var R=L;for(L=new Array(S),u=0;u<S;u++)L[u]=h[u].gap?0:O?R[h[u].i]:R}var I=new Array(S),P=new Array(S);for(u=0;u<S;u++)I[u]=h[u].x,P[u]=h[u].y;r.calcAxisExpansion(e,E,n,a,I,P,L),h[0].t.orientation=y.orientation}}}}}},"./node_modules/plotly.js/src/traces/scatter/cross_trace_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/traces/scatter/grouping_defaults.js"),i=n("./node_modules/plotly.js/src/traces/scatter/attributes.js");e.exports=function(e,t){var n,a,s;function l(e){return r.coerce(a._input,a,i,e)}if("group"===t.scattermode)for(s=0;s<e.length;s++)"scatter"===(a=e[s]).type&&(n=a._input,o(n,a,t,l));for(s=0;s<e.length;s++){var c=e[s];if("scatter"===c.type){var u=c.fill;if("none"!==u&&"toself"!==u&&(c.opacity=void 0,"tonexty"===u||"tonextx"===u))for(var d=s-1;d>=0;d--){var f=e[d];if("scatter"===f.type&&f.xaxis===c.xaxis&&f.yaxis===c.yaxis){f.opacity=void 0;break}}}}}},"./node_modules/plotly.js/src/traces/scatter/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/traces/scatter/attributes.js"),a=n("./node_modules/plotly.js/src/traces/scatter/constants.js"),s=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js"),l=n("./node_modules/plotly.js/src/traces/scatter/xy_defaults.js"),c=n("./node_modules/plotly.js/src/traces/scatter/period_defaults.js"),u=n("./node_modules/plotly.js/src/traces/scatter/stack_defaults.js"),d=n("./node_modules/plotly.js/src/traces/scatter/marker_defaults.js"),f=n("./node_modules/plotly.js/src/traces/scatter/line_defaults.js"),h=n("./node_modules/plotly.js/src/traces/scatter/line_shape_defaults.js"),p=n("./node_modules/plotly.js/src/traces/scatter/text_defaults.js"),m=n("./node_modules/plotly.js/src/traces/scatter/fillcolor_defaults.js"),g=n("./node_modules/plotly.js/src/lib/index.js").coercePattern;e.exports=function(e,t,n,v){function y(n,o){return r.coerce(e,t,i,n,o)}var b=l(e,t,v,y);if(b||(t.visible=!1),t.visible){c(e,t,v,y),y("xhoverformat"),y("yhoverformat"),y("zorder");var x=u(e,t,v,y);"group"===v.scattermode&&void 0===t.orientation&&y("orientation","v");var _=!x&&b<a.PTS_LINESONLY?"lines+markers":"lines";y("text"),y("hovertext"),y("mode",_),s.hasMarkers(t)&&d(e,t,n,v,y,{gradient:!0}),s.hasLines(t)&&(f(e,t,n,v,y,{backoff:!0}),h(e,t,y),y("connectgaps"),y("line.simplify")),s.hasText(t)&&(y("texttemplate"),p(e,t,v,y));var w=[];(s.hasMarkers(t)||s.hasText(t))&&(y("cliponaxis"),y("marker.maxdisplayed"),w.push("points")),y("fill",x?x.fillDflt:"none"),"none"!==t.fill&&(m(e,t,n,y,{moduleHasFillgradient:!0}),s.hasLines(t)||h(e,t,y),g(y,"fillpattern",t.fillcolor,!1));var j=(t.line||{}).color,k=(t.marker||{}).color;"tonext"!==t.fill&&"toself"!==t.fill||w.push("fills"),y("hoveron",w.join("+")||"points"),"fills"!==t.hoveron&&y("hovertemplate");var T=o.getComponentMethod("errorbars","supplyDefaults");T(e,t,j||k||n,{axis:"y"}),T(e,t,j||k||n,{axis:"x",inherit:"y"}),r.coerceSelectionMarkerOpacity(t,y)}}},"./node_modules/plotly.js/src/traces/scatter/fillcolor_attribute.js":function(e,t,n){"use strict";e.exports=function(e){return{valType:"color",editType:"style",anim:!0,description:["Sets the fill color.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."+(e?" If fillgradient is specified, fillcolor is ignored except for setting the background color of the hover label, if any.":"")].join(" ")}}},"./node_modules/plotly.js/src/traces/scatter/fillcolor_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/color/index.js"),o=n("./node_modules/plotly.js/src/lib/index.js").isArrayOrTypedArray;e.exports=function(e,t,n,i,a){a||(a={});var s,l=!1;if(t.marker){var c=t.marker.color,u=(t.marker.line||{}).color;c&&!o(c)?l=c:u&&!o(u)&&(l=u)}if(a.moduleHasFillgradient&&"none"!==i("fillgradient.type")){i("fillgradient.start"),i("fillgradient.stop");var d=i("fillgradient.colorscale");d&&(s=function(e){for(var t=r.interpolate(e[0][1],e[1][1],.5),n=2;n<e.length;n++){var o=r.interpolate(e[n-1][1],e[n][1],.5);t=r.interpolate(t,o,e[n-1][0]/e[n][0])}return t}(d))}i("fillcolor",r.addOpacity((t.line||{}).color||l||s||n,.5))}},"./node_modules/plotly.js/src/traces/scatter/format_labels.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/cartesian/axes.js");e.exports=function(e,t,n){var o={},i={_fullLayout:n},a=r.getFromTrace(i,t,"x"),s=r.getFromTrace(i,t,"y"),l=e.orig_x;void 0===l&&(l=e.x);var c=e.orig_y;return void 0===c&&(c=e.y),o.xLabel=r.tickText(a,a.c2l(l),!0).text,o.yLabel=r.tickText(s,s.c2l(c),!0).text,o}},"./node_modules/plotly.js/src/traces/scatter/get_trace_color.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/color/index.js"),o=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js");e.exports=function(e,t){var n,i;if("lines"===e.mode)return(n=e.line.color)&&r.opacity(n)?n:e.fillcolor;if("none"===e.mode)return e.fill?e.fillcolor:"";var a=t.mcc||(e.marker||{}).color,s=t.mlcc||((e.marker||{}).line||{}).color;return(i=a&&r.opacity(a)?a:s&&r.opacity(s)&&(t.mlw||((e.marker||{}).line||{}).width)?s:"")?r.opacity(i)<.3?r.addOpacity(i,.3):i:(n=(e.line||{}).color)&&r.opacity(n)&&o.hasLines(e)&&e.line.width?n:e.fillcolor}},"./node_modules/plotly.js/src/traces/scatter/grouping_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/plots/cartesian/constraints.js").getAxisGroup;e.exports=function(e,t,n,o){var i=t.orientation,a=t[{v:"x",h:"y"}[i]+"axis"],s=r(n,a)+i,l=n._alignmentOpts||{},c=o("alignmentgroup"),u=l[s];u||(u=l[s]={});var d=u[c];d?d.traces.push(t):d=u[c]={traces:[t],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var f=o("offsetgroup"),h=d.offsetGroups,p=h[f];f&&(p||(p=h[f]={offsetIndex:Object.keys(h).length}),t._offsetIndex=p.offsetIndex)}},"./node_modules/plotly.js/src/traces/scatter/hover.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/components/fx/index.js"),i=n("./node_modules/plotly.js/src/registry.js"),a=n("./node_modules/plotly.js/src/traces/scatter/get_trace_color.js"),s=n("./node_modules/plotly.js/src/components/color/index.js"),l=r.fillText;e.exports=function(e,t,n,c){var u=e.cd,d=u[0].trace,f=e.xa,h=e.ya,p=f.c2p(t),m=h.c2p(n),g=[p,m],v=d.hoveron||"",y=-1!==d.mode.indexOf("markers")?3:.5,b=!!d.xperiodalignment,x=!!d.yperiodalignment;if(-1!==v.indexOf("points")){var _=function(e){var t=Math.max(y,e.mrc||0),n=f.c2p(e.x)-p,r=h.c2p(e.y)-m;return Math.max(Math.sqrt(n*n+r*r)-t,1-y/t)},w=o.getDistanceFunction(c,(function(e){if(b){var t=f.c2p(e.xStart),n=f.c2p(e.xEnd);return p>=Math.min(t,n)&&p<=Math.max(t,n)?0:1/0}var r=Math.max(3,e.mrc||0),o=1-1/r,i=Math.abs(f.c2p(e.x)-p);return i<r?o*i/r:i-r+o}),(function(e){if(x){var t=h.c2p(e.yStart),n=h.c2p(e.yEnd);return m>=Math.min(t,n)&&m<=Math.max(t,n)?0:1/0}var r=Math.max(3,e.mrc||0),o=1-1/r,i=Math.abs(h.c2p(e.y)-m);return i<r?o*i/r:i-r+o}),_);if(o.getClosest(u,w,e),!1!==e.index){var j=u[e.index],k=f.c2p(j.x,!0),T=h.c2p(j.y,!0),A=j.mrc||1;e.index=j.i;var M=u[0].t.orientation,S=M&&(j.sNorm||j.s),C="h"===M?S:void 0!==j.orig_x?j.orig_x:j.x,E="v"===M?S:void 0!==j.orig_y?j.orig_y:j.y;return r.extendFlat(e,{color:a(d,j),x0:k-A,x1:k+A,xLabelVal:C,y0:T-A,y1:T+A,yLabelVal:E,spikeDistance:_(j),hovertemplate:d.hovertemplate}),l(j,d,e),i.getComponentMethod("errorbars","hoverInfo")(j,d,e),[e]}}function L(e){if(!e)return!1;var t=e.node();try{var n=new DOMPoint(g[0],g[1]);return t.isPointInFill(n)}catch(e){var r=t.ownerSVGElement.createSVGPoint();return r.x=g[0],r.y=g[1],t.isPointInFill(r)}}if(-1!==v.indexOf("fills")&&d._fillElement&&(L(d._fillElement)&&!L(d._fillExclusionElement))){var O=function(e){var t,n,r,o,i,a,s,l,c,u=[],d=1/0,p=-1/0,m=1/0,v=-1/0;for(t=0;t<e.length;t++){var y=e[t];y.contains(g)&&(u.push(y),m=Math.min(m,y.ymin),v=Math.max(v,y.ymax))}if(0===u.length)return null;for(n=((m=Math.max(m,0))+(v=Math.min(v,h._length)))/2,t=0;t<u.length;t++)for(o=u[t].pts,r=1;r<o.length;r++)(l=o[r-1][1])>n!=(c=o[r][1])>=n&&(a=o[r-1][0],s=o[r][0],c-l&&(i=a+(s-a)*(n-l)/(c-l),d=Math.min(d,i),p=Math.max(p,i)));return{x0:d=Math.max(d,0),x1:p=Math.min(p,f._length),y0:n,y1:n}}(d._polygons);null===O&&(O={x0:g[0],x1:g[0],y0:g[1],y1:g[1]});var R=s.defaultLine;return s.opacity(d.fillcolor)?R=d.fillcolor:s.opacity((d.line||{}).color)&&(R=d.line.color),r.extendFlat(e,{distance:e.maxHoverDistance,x0:O.x0,x1:O.x1,y0:O.y0,y1:O.y1,color:R,hovertemplate:!1}),delete e.index,d.text&&!r.isArrayOrTypedArray(d.text)?e.text=String(d.text):e.text=d.name,[e]}}},"./node_modules/plotly.js/src/traces/scatter/index.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js");e.exports={hasLines:r.hasLines,hasMarkers:r.hasMarkers,hasText:r.hasText,isBubble:r.isBubble,attributes:n("./node_modules/plotly.js/src/traces/scatter/attributes.js"),layoutAttributes:n("./node_modules/plotly.js/src/traces/scatter/layout_attributes.js"),supplyDefaults:n("./node_modules/plotly.js/src/traces/scatter/defaults.js"),crossTraceDefaults:n("./node_modules/plotly.js/src/traces/scatter/cross_trace_defaults.js"),supplyLayoutDefaults:n("./node_modules/plotly.js/src/traces/scatter/layout_defaults.js"),calc:n("./node_modules/plotly.js/src/traces/scatter/calc.js").calc,crossTraceCalc:n("./node_modules/plotly.js/src/traces/scatter/cross_trace_calc.js"),arraysToCalcdata:n("./node_modules/plotly.js/src/traces/scatter/arrays_to_calcdata.js"),plot:n("./node_modules/plotly.js/src/traces/scatter/plot.js"),colorbar:n("./node_modules/plotly.js/src/traces/scatter/marker_colorbar.js"),formatLabels:n("./node_modules/plotly.js/src/traces/scatter/format_labels.js"),style:n("./node_modules/plotly.js/src/traces/scatter/style.js").style,styleOnSelect:n("./node_modules/plotly.js/src/traces/scatter/style.js").styleOnSelect,hoverPoints:n("./node_modules/plotly.js/src/traces/scatter/hover.js"),selectPoints:n("./node_modules/plotly.js/src/traces/scatter/select.js"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:n("./node_modules/plotly.js/src/plots/cartesian/index.js"),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{description:["The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.","The data visualized as scatter point or lines is set in `x` and `y`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}},"./node_modules/plotly.js/src/traces/scatter/layout_attributes.js":function(e,t,n){"use strict";e.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc",description:["Determines how scatter points at the same location coordinate","are displayed on the graph.","With *group*, the scatter points are plotted next to one another","centered around the shared location.","With *overlay*, the scatter points are plotted over one another,","you might need to reduce *opacity* to see multiple scatter points."].join(" ")},scattergap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between scatter points of","adjacent location coordinates.","Defaults to `bargap`."].join(" ")}}},"./node_modules/plotly.js/src/traces/scatter/layout_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/traces/scatter/layout_attributes.js");e.exports=function(e,t){var n,i,a="group"===t.barmode;"group"===t.scattermode&&(n="scattergap",i=a?t.bargap:.2,r.coerce(e,t,o,n,i))}},"./node_modules/plotly.js/src/traces/scatter/line_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js").isArrayOrTypedArray,o=n("./node_modules/plotly.js/src/components/colorscale/helpers.js").hasColorscale,i=n("./node_modules/plotly.js/src/components/colorscale/defaults.js");e.exports=function(e,t,n,a,s,l){l||(l={});var c=(e.marker||{}).color;(c&&c._inputArray&&(c=c._inputArray),s("line.color",n),o(e,"line"))?i(e,t,a,s,{prefix:"line.",cLetter:"c"}):s("line.color",!r(c)&&c||n);s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}},"./node_modules/plotly.js/src/traces/scatter/line_points.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/drawing/index.js"),o=n("./node_modules/plotly.js/src/constants/numerical.js"),i=o.BADNUM,a=o.LOG_CLIP,s=a+.5,l=a-.5,c=n("./node_modules/plotly.js/src/lib/index.js"),u=c.segmentsIntersect,d=c.constrain,f=n("./node_modules/plotly.js/src/traces/scatter/constants.js");e.exports=function(e,t){var n,o,a,h,p,m,g,v,y,b,x,_,w,j,k,T,A,M,S=t.trace||{},C=t.xaxis,E=t.yaxis,L="log"===C.type,O="log"===E.type,R=C._length,I=E._length,P=t.backoff,D=S.marker,z=t.connectGaps,N=t.baseTolerance,F=t.shape,B="linear"===F,U=S.fill&&"none"!==S.fill,H=[],V=f.minTolerance,G=e.length,q=new Array(G),W=0;function Y(n){var r=e[n];if(!r)return!1;var o=t.linearized?C.l2p(r.x):C.c2p(r.x),a=t.linearized?E.l2p(r.y):E.c2p(r.y);if(o===i){if(L&&(o=C.c2p(r.x,!0)),o===i)return!1;O&&a===i&&(o*=Math.abs(C._m*I*(C._m>0?s:l)/(E._m*R*(E._m>0?s:l)))),o*=1e3}if(a===i){if(O&&(a=E.c2p(r.y,!0)),a===i)return!1;a*=1e3}return[o,a]}function X(e,t,n,r){var o=n-e,i=r-t,a=.5-e,s=.5-t,l=o*o+i*i,c=o*a+i*s;if(c>0&&c<l){var u=a*i-s*o;if(u*u<l)return!0}}function Z(e,t){var n=e[0]/R,r=e[1]/I,o=Math.max(0,-n,n-1,-r,r-1);return o&&void 0!==A&&X(n,r,A,M)&&(o=0),o&&t&&X(n,r,t[0]/R,t[1]/I)&&(o=0),(1+f.toleranceGrowth*o)*N}function $(e,t){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}var K,J,Q,ee,te,ne,re,oe=f.maxScreensAway,ie=-R*oe,ae=R*(1+oe),se=-I*oe,le=I*(1+oe),ce=[[ie,se,ae,se],[ae,se,ae,le],[ae,le,ie,le],[ie,le,ie,se]];function ue(e){if(e[0]<ie||e[0]>ae||e[1]<se||e[1]>le)return[d(e[0],ie,ae),d(e[1],se,le)]}function de(e,t){return e[0]===t[0]&&(e[0]===ie||e[0]===ae)||(e[1]===t[1]&&(e[1]===se||e[1]===le)||void 0)}function fe(e,t,n){return function(r,o){var i=ue(r),a=ue(o),s=[];if(i&&a&&de(i,a))return s;i&&s.push(i),a&&s.push(a);var l=2*c.constrain((r[e]+o[e])/2,t,n)-((i||r)[e]+(a||o)[e]);l&&((i&&a?l>0==i[e]>a[e]?i:a:i||a)[e]+=l);return s}}function he(e){var t=e[0],n=e[1],r=t===q[W-1][0],o=n===q[W-1][1];if(!r||!o)if(W>1){var i=t===q[W-2][0],a=n===q[W-2][1];r&&(t===ie||t===ae)&&i?a?W--:q[W-1]=e:o&&(n===se||n===le)&&a?i?W--:q[W-1]=e:q[W++]=e}else q[W++]=e}function pe(e){q[W-1][0]!==e[0]&&q[W-1][1]!==e[1]&&he([Q,ee]),he(e),te=null,Q=ee=0}"linear"===F||"spline"===F?re=function(e,t){for(var n=[],r=0,o=0;o<4;o++){var i=ce[o],a=u(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);a&&(!r||Math.abs(a.x-n[0][0])>1||Math.abs(a.y-n[0][1])>1)&&(a=[a.x,a.y],r&&$(a,e)<$(n[0],e)?n.unshift(a):n.push(a),r++)}return n}:"hv"===F||"vh"===F?re=function(e,t){var n=[],r=ue(e),o=ue(t);return r&&o&&de(r,o)||(r&&n.push(r),o&&n.push(o)),n}:"hvh"===F?re=fe(0,ie,ae):"vhv"===F&&(re=fe(1,se,le));var me=c.isArrayOrTypedArray(D);function ge(t){if(t&&P&&(t.i=n,t.d=e,t.trace=S,t.marker=me?D[t.i]:D,t.backoff=P),A=t[0]/R,M=t[1]/I,K=t[0]<ie?ie:t[0]>ae?ae:0,J=t[1]<se?se:t[1]>le?le:0,K||J){if(W)if(te){var r=re(te,t);r.length>1&&(pe(r[0]),q[W++]=r[1])}else ne=re(q[W-1],t)[0],q[W++]=ne;else q[W++]=[K||t[0],J||t[1]];var o=q[W-1];K&&J&&(o[0]!==K||o[1]!==J)?(te&&(Q!==K&&ee!==J?he(Q&&ee?(i=te,s=(a=t)[0]-i[0],l=(a[1]-i[1])/s,(i[1]*a[0]-a[1]*i[0])/s>0?[l>0?ie:ae,le]:[l>0?ae:ie,se]):[Q||K,ee||J]):Q&&ee&&he([Q,ee])),he([K,J])):Q-K&&ee-J&&he([K||Q,J||ee]),te=t,Q=K,ee=J}else te&&pe(re(te,t)[0]),q[W++]=t;var i,a,s,l}for(n=0;n<G;n++)if(o=Y(n)){for(W=0,te=null,ge(o),n++;n<G;n++){if(!(h=Y(n))){if(z)continue;break}if(B&&t.simplify){var ve=Y(n+1);if(b=$(h,o),U&&(0===W||W===G-1)||!(b<Z(h,ve)*V)){for(v=[(h[0]-o[0])/b,(h[1]-o[1])/b],p=o,x=b,_=j=k=0,g=!1,a=h,n++;n<e.length;n++){if(m=ve,ve=Y(n+1),!m){if(z)continue;break}if(T=(y=[m[0]-o[0],m[1]-o[1]])[0]*v[1]-y[1]*v[0],j=Math.min(j,T),(k=Math.max(k,T))-j>Z(m,ve))break;a=m,(w=y[0]*v[0]+y[1]*v[1])>x?(x=w,h=m,g=!1):w<_&&(_=w,p=m,g=!0)}if(g?(ge(h),a!==p&&ge(p)):(p!==o&&ge(p),a!==h&&ge(h)),ge(a),n>=e.length||!m)break;ge(m),o=m}}else ge(h)}te&&he([Q||te[0],ee||te[1]]),H.push(q.slice(0,W))}var ye=F.slice(F.length-1);if(P&&"h"!==ye&&"v"!==ye){for(var be=!1,xe=-1,_e=[],we=0;we<H.length;we++)for(var je=0;je<H[we].length-1;je++){var ke=H[we][je],Te=H[we][je+1],Ae=r.applyBackoff(Te,ke);Ae[0]===Te[0]&&Ae[1]===Te[1]||(be=!0),_e[xe+1]||(_e[++xe]=[ke,[Ae[0],Ae[1]]])}return be?_e:H}return H}},"./node_modules/plotly.js/src/traces/scatter/line_shape_defaults.js":function(e,t,n){"use strict";e.exports=function(e,t,n){"spline"===n("line.shape")&&n("line.smoothing")}},"./node_modules/plotly.js/src/traces/scatter/link_traces.js":function(e,t,n){"use strict";var r={tonextx:1,tonexty:1,tonext:1};e.exports=function(e,t,n){var o,i,a,s,l,c={},u=!1,d=-1,f=0,h=-1;for(i=0;i<n.length;i++)(a=(o=n[i][0].trace).stackgroup||"")?a in c?l=c[a]:(l=c[a]=f,f++):o.fill in r&&h>=0?l=h:(l=h=f,f++),l<d&&(u=!0),o._groupIndex=d=l;var p=n.slice();u&&p.sort((function(e,t){var n=e[0].trace,r=t[0].trace;return n._groupIndex-r._groupIndex||n.index-r.index}));var m={};for(i=0;i<p.length;i++)a=(o=p[i][0].trace).stackgroup||"",!0===o.visible?(o._nexttrace=null,o.fill in r&&(s=m[a],o._prevtrace=s||null,s&&(s._nexttrace=o)),o._ownfill=o.fill&&("tozero"===o.fill.substr(0,6)||"toself"===o.fill||"to"===o.fill.substr(0,2)&&!o._prevtrace),m[a]=o):o._prevtrace=o._nexttrace=o._ownfill=null;return p}},"./node_modules/plotly.js/src/traces/scatter/make_bubble_size_func.js":function(e,t,n){"use strict";var r=n("./node_modules/fast-isnumeric/index.js");e.exports=function(e,t){t||(t=2);var n=e.marker,o=n.sizeref||1,i=n.sizemin||0,a="area"===n.sizemode?function(e){return Math.sqrt(e/o)}:function(e){return e/o};return function(e){var n=a(e/t);return r(n)&&n>0?Math.max(n,i):0}}},"./node_modules/plotly.js/src/traces/scatter/marker_colorbar.js":function(e,t,n){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},"./node_modules/plotly.js/src/traces/scatter/marker_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/components/color/index.js"),o=n("./node_modules/plotly.js/src/components/colorscale/helpers.js").hasColorscale,i=n("./node_modules/plotly.js/src/components/colorscale/defaults.js"),a=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js");e.exports=function(e,t,n,s,l,c){var u=a.isBubble(e),d=(e.line||{}).color;(c=c||{},d&&(n=d),l("marker.symbol"),l("marker.opacity",u?.7:1),l("marker.size"),c.noAngle||(l("marker.angle"),c.noAngleRef||l("marker.angleref"),c.noStandOff||l("marker.standoff")),l("marker.color",n),o(e,"marker")&&i(e,t,s,l,{prefix:"marker.",cLetter:"c"}),c.noSelect||(l("selected.marker.color"),l("unselected.marker.color"),l("selected.marker.size"),l("unselected.marker.size")),c.noLine||(l("marker.line.color",d&&!Array.isArray(d)&&t.marker.color!==d?d:u?r.background:r.defaultLine),o(e,"marker.line")&&i(e,t,s,l,{prefix:"marker.line.",cLetter:"c"}),l("marker.line.width",u?1:0)),u&&(l("marker.sizeref"),l("marker.sizemin"),l("marker.sizemode")),c.gradient)&&("none"!==l("marker.gradient.type")&&l("marker.gradient.color"))}},"./node_modules/plotly.js/src/traces/scatter/period_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js").dateTick0,o=n("./node_modules/plotly.js/src/constants/numerical.js").ONEWEEK;function i(e,t){return r(t,e%o==0?1:0)}e.exports=function(e,t,n,r,o){if(o||(o={x:!0,y:!0}),o.x){var a=r("xperiod");a&&(r("xperiod0",i(a,t.xcalendar)),r("xperiodalignment"))}if(o.y){var s=r("yperiod");s&&(r("yperiod0",i(s,t.ycalendar)),r("yperiodalignment"))}}},"./node_modules/plotly.js/src/traces/scatter/plot.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/registry.js"),i=n("./node_modules/plotly.js/src/lib/index.js"),a=i.ensureSingle,s=i.identity,l=n("./node_modules/plotly.js/src/components/drawing/index.js"),c=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js"),u=n("./node_modules/plotly.js/src/traces/scatter/line_points.js"),d=n("./node_modules/plotly.js/src/traces/scatter/link_traces.js"),f=n("./node_modules/plotly.js/src/lib/polygon.js").tester;function h(e,t,n,d,h,p,m){var g,v=e._context.staticPlot;!function(e,t,n,o,a){var s=n.xaxis,l=n.yaxis,u=r.extent(i.simpleMap(s.range,s.r2c)),d=r.extent(i.simpleMap(l.range,l.r2c)),f=o[0].trace;if(!c.hasMarkers(f))return;var h=f.marker.maxdisplayed;if(0===h)return;var p=o.filter((function(e){return e.x>=u[0]&&e.x<=u[1]&&e.y>=d[0]&&e.y<=d[1]})),m=Math.ceil(p.length/h),g=0;a.forEach((function(e,n){var r=e[0].trace;c.hasMarkers(r)&&r.marker.maxdisplayed>0&&n<t&&g++}));var v=Math.round(g*m/3+Math.floor(g/3)*m/7.1);o.forEach((function(e){delete e.vis})),p.forEach((function(e,t){0===Math.round((t+v)%m)&&(e.vis=!0)}))}(0,t,n,d,h);var y=!!m&&m.duration>0;function b(e){return y?e.transition():e}var x=n.xaxis,_=n.yaxis,w=d[0].trace,j=w.line,k=r.select(p),T=a(k,"g","errorbars"),A=a(k,"g","lines"),M=a(k,"g","points"),S=a(k,"g","text");if(o.getComponentMethod("errorbars","plot")(e,T,n,m),!0===w.visible){var C,E;b(k).style("opacity",w.opacity);var L,O,R=w.fill.charAt(w.fill.length-1);"x"!==R&&"y"!==R&&(R=""),"y"===R?(L=1,O=_.c2p(0,!0)):"x"===R&&(L=0,O=x.c2p(0,!0)),d[0][n.isRangePlot?"nodeRangePlot3":"node3"]=k;var I,P,D="",z=[],N=w._prevtrace,F=null,B=null;N&&(D=N._prevRevpath||"",E=N._nextFill,z=N._ownPolygons,F=N._fillsegments,B=N._fillElement);var U,H,V,G,q,W,Y="",X="",Z=[];w._polygons=[];var $=[],K=[],J=i.noop;if(C=w._ownFill,c.hasLines(w)||"none"!==w.fill){E&&E.datum(d),-1!==["hv","vh","hvh","vhv"].indexOf(j.shape)?(U=l.steps(j.shape),H=l.steps(j.shape.split("").reverse().join(""))):U=H="spline"===j.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?l.smoothclosed(e.slice(1),j.smoothing):l.smoothopen(e,j.smoothing)}:function(e){return"M"+e.join("L")},V=function(e){return H(e.reverse())},K=u(d,{xaxis:x,yaxis:_,trace:w,connectGaps:w.connectgaps,baseTolerance:Math.max(j.width||1,3)/4,shape:j.shape,backoff:j.backoff,simplify:j.simplify,fill:w.fill}),$=new Array(K.length);var Q=0;for(g=0;g<K.length;g++){var ee,te=K[g];ee&&R?ee.push.apply(ee,te):(ee=te.slice(),$[Q]=ee,Q++)}w._fillElement=null,w._fillExclusionElement=B,w._fillsegments=$.slice(0,Q),$=w._fillsegments,K.length&&(G=K[0][0].slice(),W=(q=K[K.length-1])[q.length-1].slice()),J=function(e){return function(t){if(I=U(t),P=V(t),Y?R?(Y+="L"+I.substr(1),X=P+"L"+X.substr(1)):(Y+="Z"+I,X=P+"Z"+X):(Y=I,X=P),c.hasLines(w)){var n=r.select(this);if(n.datum(d),e)b(n.style("opacity",0).attr("d",I).call(l.lineGroupStyle)).style("opacity",1);else{var o=b(n);o.attr("d",I),l.singleLineStyle(d,o)}}}}}var ne=A.selectAll(".js-line").data(K);b(ne.exit()).style("opacity",0).remove(),ne.each(J(!1)),ne.enter().append("path").classed("js-line",!0).style("vector-effect",v?"none":"non-scaling-stroke").call(l.lineGroupStyle).each(J(!0)),l.setClipUrl(ne,n.layerClipId,e);var re=function(){var e=new Array($.length);for(g=0;g<$.length;g++)e[g]=f($[g]);return e},oe=function(e){var t,n;if(e&&0!==e.length){for(t=new Array(e.length-1+$.length),n=0;n<e.length-1;n++)t[n]=f(e[n]);var r=e[e.length-1].slice();for(r.reverse(),n=0;n<$.length;n++)t[e.length-1+n]=f($[n].concat(r))}else for(t=new Array($.length),n=0;n<$.length;n++){var o=$[n][0].slice(),i=$[n][$[n].length-1].slice();o[L]=i[L]=O;var a=[i,o].concat($[n]);t[n]=f(a)}return t};K.length?(C?(C.datum(d),G&&W&&(R?(G[L]=W[L]=O,b(C).attr("d","M"+W+"L"+G+"L"+Y.substr(1)).call(l.singleFillStyle,e),Z=oe(null)):(b(C).attr("d",Y+"Z").call(l.singleFillStyle,e),Z=re())),w._polygons=Z,w._fillElement=C):E&&("tonext"===w.fill.substr(0,6)&&Y&&D?("tonext"===w.fill?(b(E).attr("d",Y+"Z"+D+"Z").call(l.singleFillStyle,e),Z=re(),w._polygons=Z.concat(z)):(b(E).attr("d",Y+"L"+D.substr(1)+"Z").call(l.singleFillStyle,e),Z=oe(F),w._polygons=Z),w._fillElement=E):ae(E)),w._prevRevpath=X):(C?ae(C):E&&ae(E),w._prevRevpath=null),w._ownPolygons=Z,M.datum(d),S.datum(d),function(t,o,i){var a,u=i[0].trace,d=c.hasMarkers(u),f=c.hasText(u),h=de(u),p=fe,m=fe;if(d||f){var g=s,v=u.stackgroup,w=v&&"infer zero"===e._fullLayout._scatterStackOpts[x._id+_._id][v].stackgaps;u.marker.maxdisplayed||u._needsCull?g=w?le:se:v&&!w&&(g=ce),d&&(p=g),f&&(m=g)}var j,k=(a=t.selectAll("path.point").data(p,h)).enter().append("path").classed("point",!0);y&&k.call(l.pointStyle,u,e).call(l.translatePoints,x,_).style("opacity",0).transition().style("opacity",1),a.order(),d&&(j=l.makePointStyleFns(u)),a.each((function(t){var o=r.select(this),i=b(o);l.translatePoint(t,i,x,_)?(l.singlePointStyle(t,i,u,j,e),n.layerClipId&&l.hideOutsideRangePoint(t,i,x,_,u.xcalendar,u.ycalendar),u.customdata&&o.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()})),y?a.exit().transition().style("opacity",0).remove():a.exit().remove(),(a=o.selectAll("g").data(m,h)).enter().append("g").classed("textpoint",!0).append("text"),a.order(),a.each((function(e){var t=r.select(this),o=b(t.select("text"));l.translatePoint(e,o,x,_)?n.layerClipId&&l.hideOutsideRangePoint(e,t,x,_,u.xcalendar,u.ycalendar):t.remove()})),a.selectAll("text").call(l.textPointStyle,u,e).each((function(e){var t=x.c2p(e.x),n=_.c2p(e.y);r.select(this).selectAll("tspan.line").each((function(){b(r.select(this)).attr({x:t,y:n})}))})),a.exit().remove()}(M,S,d);var ie=!1===w.cliponaxis?null:n.layerClipId;l.setClipUrl(M,ie,e),l.setClipUrl(S,ie,e)}function ae(e){b(e).attr("d","M0,0Z")}function se(e){return e.filter((function(e){return!e.gap&&e.vis}))}function le(e){return e.filter((function(e){return e.vis}))}function ce(e){return e.filter((function(e){return!e.gap}))}function ue(e){return e.id}function de(e){if(e.ids)return ue}function fe(){return!1}}e.exports=function(e,t,n,o,i,c){var u,f,p=!i,m=!!i&&i.duration>0,g=d(e,t,n);((u=o.selectAll("g.trace").data(g,(function(e){return e[0].trace.uid}))).enter().append("g").attr("class",(function(e){return"trace scatter trace"+e[0].trace.uid})).style("stroke-miterlimit",2),u.order(),function(e,t,n){t.each((function(t){var o=a(r.select(this),"g","fills");l.setClipUrl(o,n.layerClipId,e);var i=t[0].trace,c=[];i._ownfill&&c.push("_ownFill"),i._nexttrace&&c.push("_nextFill");var u=o.selectAll("g").data(c,s);u.enter().append("g"),u.exit().each((function(e){i[e]=null})).remove(),u.order().each((function(e){i[e]=a(r.select(this),"path","js-fill")}))}))}(e,u,t),m)?(c&&(f=c()),r.transition().duration(i.duration).ease(i.easing).each("end",(function(){f&&f()})).each("interrupt",(function(){f&&f()})).each((function(){o.selectAll("g.trace").each((function(n,r){h(e,r,t,n,g,this,i)}))}))):u.each((function(n,r){h(e,r,t,n,g,this,i)}));p&&u.exit().remove(),o.selectAll("path:not([d])").remove()}},"./node_modules/plotly.js/src/traces/scatter/select.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js");e.exports=function(e,t){var n,o,i,a,s=e.cd,l=e.xaxis,c=e.yaxis,u=[],d=s[0].trace;if(!r.hasMarkers(d)&&!r.hasText(d))return[];if(!1===t)for(n=0;n<s.length;n++)s[n].selected=0;else for(n=0;n<s.length;n++)o=s[n],i=l.c2p(o.x),a=c.c2p(o.y),null!==o.i&&t.contains([i,a],!1,n,e)?(u.push({pointNumber:o.i,x:l.c2d(o.x),y:c.c2d(o.y)}),o.selected=1):o.selected=0;return u}},"./node_modules/plotly.js/src/traces/scatter/stack_defaults.js":function(e,t,n){"use strict";var r=["orientation","groupnorm","stackgaps"];e.exports=function(e,t,n,o){var i=n._scatterStackOpts,a=o("stackgroup");if(a){var s=t.xaxis+t.yaxis,l=i[s];l||(l=i[s]={});var c=l[a],u=!1;c?c.traces.push(t):(c=l[a]={traceIndices:[],traces:[t]},u=!0);for(var d={orientation:t.x&&!t.y?"h":"v"},f=0;f<r.length;f++){var h=r[f],p=h+"Found";if(!c[p]){var m=void 0!==e[h],g="orientation"===h;if((m||u)&&(c[h]=o(h,d[h]),g&&(c.fillDflt="h"===c[h]?"tonextx":"tonexty"),m&&(c[p]=!0,!u&&(delete c.traces[0][h],g))))for(var v=0;v<c.traces.length-1;v++){var y=c.traces[v];y._input.fill!==y.fill&&(y.fill=c.fillDflt)}}}return c}}},"./node_modules/plotly.js/src/traces/scatter/style.js":function(e,t,n){"use strict";var r=n("./node_modules/@plotly/d3/d3.js"),o=n("./node_modules/plotly.js/src/components/drawing/index.js"),i=n("./node_modules/plotly.js/src/registry.js");function a(e,t,n){o.pointStyle(e.selectAll("path.point"),t,n)}function s(e,t,n){o.textPointStyle(e.selectAll("text"),t,n)}e.exports={style:function(e){var t=r.select(e).selectAll("g.trace.scatter");t.style("opacity",(function(e){return e[0].trace.opacity})),t.selectAll("g.points").each((function(t){a(r.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.text").each((function(t){s(r.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.trace path.js-line").call(o.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(o.fillGroupStyle,e,!1),i.getComponentMethod("errorbars","style")(t)},stylePoints:a,styleText:s,styleOnSelect:function(e,t,n){var r=t[0].trace;r.selectedpoints?(o.selectedPointStyle(n.selectAll("path.point"),r),o.selectedTextStyle(n.selectAll("text"),r)):(a(n,r,e),s(n,r,e))}}},"./node_modules/plotly.js/src/traces/scatter/subtypes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/lib/array.js").isTypedArraySpec;e.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&(e.mode&&-1!==e.mode.indexOf("markers")||"splom"===e.type)},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){var t=e.marker;return r.isPlainObject(t)&&(r.isArrayOrTypedArray(t.size)||o(t.size))}}},"./node_modules/plotly.js/src/traces/scatter/text_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js");e.exports=function(e,t,n,o,i){i=i||{},o("textposition"),r.coerceFont(o,"textfont",i.font||n.font,i),i.noSelect||(o("selected.textfont.color"),o("unselected.textfont.color"))}},"./node_modules/plotly.js/src/traces/scatter/xy_defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/lib/index.js"),o=n("./node_modules/plotly.js/src/registry.js");e.exports=function(e,t,n,i){var a,s=i("x"),l=i("y");if(o.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],n),s){var c=r.minRowLength(s);l?a=Math.min(c,r.minRowLength(l)):(a=c,i("y0"),i("dy"))}else{if(!l)return 0;a=r.minRowLength(l),i("x0"),i("dx")}return t._length=a,a}},"./node_modules/plotly.js/src/traces/scatter3d/attributes.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/traces/scatter/attributes.js"),o=n("./node_modules/plotly.js/src/plots/font_attributes.js"),i=n("./node_modules/plotly.js/src/components/colorscale/attributes.js"),a=n("./node_modules/plotly.js/src/plots/cartesian/axis_format_attributes.js").axisHoverFormat,s=n("./node_modules/plotly.js/src/plots/template_attributes.js").hovertemplateAttrs,l=n("./node_modules/plotly.js/src/plots/template_attributes.js").texttemplateAttrs,c=n("./node_modules/plotly.js/src/plots/attributes.js"),u=n("./node_modules/plotly.js/src/constants/gl3d_dashes.js"),d=n("./node_modules/plotly.js/src/constants/gl3d_markers.js"),f=n("./node_modules/plotly.js/src/lib/extend.js").extendFlat,h=n("./node_modules/plotly.js/src/plot_api/edit_types.js").overrideAll,p=n("./node_modules/plotly.js/src/lib/sort_object_keys.js"),m=r.line,g=r.marker,v=g.line,y=f({width:m.width,dash:{valType:"enumerated",values:p(u),dflt:"solid",description:"Sets the dash style of the lines."}},i("line"));function b(e){return{show:{valType:"boolean",dflt:!1,description:["Sets whether or not projections are shown along the",e,"axis."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,description:"Sets the projection color."},scale:{valType:"number",min:0,max:10,dflt:2/3,description:["Sets the scale factor determining the size of the","projection marker points."].join(" ")}}}var x=e.exports=h({x:r.x,y:r.y,z:{valType:"data_array",description:"Sets the z coordinates."},text:f({},r.text,{description:["Sets text elements associated with each (x,y,z) triplet.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y,z) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")}),texttemplate:l({},{}),hovertext:f({},r.hovertext,{description:["Sets text elements associated with each (x,y,z) triplet.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y,z) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),hovertemplate:s(),xhoverformat:a("x"),yhoverformat:a("y"),zhoverformat:a("z"),mode:f({},r.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1,description:["If *-1*, the scatter points are not fill with a surface","If *0*, *1*, *2*, the scatter points are filled with","a Delaunay surface about the x, y, z respectively."].join(" ")},surfacecolor:{valType:"color",description:"Sets the surface fill color."},projection:{x:b("x"),y:b("y"),z:b("z")},connectgaps:r.connectgaps,line:y,marker:f({symbol:{valType:"enumerated",values:p(d),dflt:"circle",arrayOk:!0,description:"Sets the marker symbol type."},size:f({},g.size,{dflt:8}),sizeref:g.sizeref,sizemin:g.sizemin,sizemode:g.sizemode,opacity:f({},g.opacity,{arrayOk:!1,description:["Sets the marker opacity.","Note that the marker opacity for scatter3d traces","must be a scalar value for performance reasons.","To set a blending opacity value","(i.e. which is not transparent), set *marker.color*","to an rgba color and use its alpha channel."].join(" ")}),colorbar:g.colorbar,line:f({width:f({},v.width,{arrayOk:!1})},i("marker.line"))},i("marker")),textposition:f({},r.textposition,{dflt:"top center"}),textfont:o({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"],description:"Sets the text font."}),opacity:c.opacity,hoverinfo:f({},c.hoverinfo)},"calc","nested");x.x.editType=x.y.editType=x.z.editType="calc+clearAxisTypes"},"./node_modules/plotly.js/src/traces/scatter3d/calc.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/traces/scatter/arrays_to_calcdata.js"),o=n("./node_modules/plotly.js/src/traces/scatter/colorscale_calc.js");e.exports=function(e,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return r(n,t),o(e,t),n}},"./node_modules/plotly.js/src/traces/scatter3d/calc_errors.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js");function o(e,t,n,o){if(!t||!t.visible)return null;for(var i=r.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),s=0;s<e.length;s++){var l=i(+e[s],s);if("log"===o.type){var c=o.c2l(e[s]),u=e[s]-l[0],d=e[s]+l[1];if(a[s]=[(o.c2l(u,!0)-c)*n,(o.c2l(d,!0)-c)*n],u>0){var f=o.c2l(u);o._lowerLogErrorBound||(o._lowerLogErrorBound=f),o._lowerErrorBound=Math.min(o._lowerLogErrorBound,f)}}else a[s]=[-l[0]*n,l[1]*n]}return a}e.exports=function(e,t,n){var r=[o(e.x,e.error_x,t[0],n.xaxis),o(e.y,e.error_y,t[1],n.yaxis),o(e.z,e.error_z,t[2],n.zaxis)],i=function(e){for(var t=0;t<e.length;t++)if(e[t])return e[t].length;return 0}(r);if(0===i)return null;for(var a=new Array(i),s=0;s<i;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c<3;c++)if(r[c])for(var u=0;u<2;u++)l[u][c]=r[c][s][u];a[s]=l}return a}},"./node_modules/plotly.js/src/traces/scatter3d/convert.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/stackgl_modules/index.js").gl_line3d,o=n("./node_modules/plotly.js/stackgl_modules/index.js").gl_scatter3d,i=n("./node_modules/plotly.js/stackgl_modules/index.js").gl_error3d,a=n("./node_modules/plotly.js/stackgl_modules/index.js").gl_mesh3d,s=n("./node_modules/plotly.js/stackgl_modules/index.js").delaunay_triangulate,l=n("./node_modules/plotly.js/src/lib/index.js"),c=n("./node_modules/plotly.js/src/lib/str2rgbarray.js"),u=n("./node_modules/plotly.js/src/lib/gl_format_color.js").formatColor,d=n("./node_modules/plotly.js/src/traces/scatter/make_bubble_size_func.js"),f=n("./node_modules/plotly.js/src/constants/gl3d_dashes.js"),h=n("./node_modules/plotly.js/src/constants/gl3d_markers.js"),p=n("./node_modules/plotly.js/src/plots/cartesian/axes.js"),m=n("./node_modules/plotly.js/src/components/fx/helpers.js").appendArrayPointValue,g=n("./node_modules/plotly.js/src/traces/scatter3d/calc_errors.js");function v(e,t){this.scene=e,this.uid=t,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 y=v.prototype;function b(e){return null==e?0:e.indexOf("left")>-1?-1:e.indexOf("right")>-1?1:0}function x(e){return null==e?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function _(e,t){return t(4*e)}function w(e){return h[e]}function j(e,t,n,r,o){var i=null;if(l.isArrayOrTypedArray(e)){i=[];for(var a=0;a<t;a++)void 0===e[a]?i[a]=r:i[a]=n(e[a],o)}else i=n(e,l.identity);return i}function k(e,t){var n,r,o,i,a,s,f=[],h=e.fullSceneLayout,v=e.dataScale,y=h.xaxis,k=h.yaxis,T=h.zaxis,A=t.marker,M=t.line,S=t.x||[],C=t.y||[],E=t.z||[],L=S.length,O=t.xcalendar,R=t.ycalendar,I=t.zcalendar;for(a=0;a<L;a++)n=y.d2l(S[a],0,O)*v[0],r=k.d2l(C[a],0,R)*v[1],o=T.d2l(E[a],0,I)*v[2],f[a]=[n,r,o];if(Array.isArray(t.text))s=t.text;else if(l.isTypedArray(t.text))s=Array.from(t.text);else if(void 0!==t.text)for(s=new Array(L),a=0;a<L;a++)s[a]=t.text;function P(e,t){var n=h[e];return p.tickText(n,n.d2l(t),!0).text}var D=t.texttemplate;if(D){var z=e.fullLayout._d3locale,N=Array.isArray(D),F=N?Math.min(D.length,L):L,B=N?function(e){return D[e]}:function(){return D};for(s=new Array(F),a=0;a<F;a++){var U={x:S[a],y:C[a],z:E[a]},H={xLabel:P("xaxis",S[a]),yLabel:P("yaxis",C[a]),zLabel:P("zaxis",E[a])},V={};m(V,t,a);var G=t._meta||{};s[a]=l.texttemplateString(B(a),H,z,V,U,G)}}if(i={position:f,mode:t.mode,text:s},"line"in t&&(i.lineColor=u(M,1,L),i.lineWidth=M.width,i.lineDashes=M.dash),"marker"in t){var q=d(t);i.scatterColor=u(A,1,L),i.scatterSize=j(A.size,L,_,20,q),i.scatterMarker=j(A.symbol,L,w,"●"),i.scatterLineWidth=A.line.width,i.scatterLineColor=u(A.line,1,L),i.scatterAngle=0}"textposition"in t&&(i.textOffset=function(e){var t=[0,0];if(Array.isArray(e))for(var n=0;n<e.length;n++)t[n]=[0,0],e[n]&&(t[n][0]=b(e[n]),t[n][1]=x(e[n]));else t[0]=b(e),t[1]=x(e);return t}(t.textposition),i.textColor=u(t.textfont,1,L),i.textSize=j(t.textfont.size,L,l.identity,12),i.textFontFamily=t.textfont.family,i.textFontWeight=t.textfont.weight,i.textFontStyle=t.textfont.style,i.textFontVariant=t.textfont.variant,i.textAngle=0);var W=["x","y","z"];for(i.project=[!1,!1,!1],i.projectScale=[1,1,1],i.projectOpacity=[1,1,1],a=0;a<3;++a){var Y=t.projection[W[a]];(i.project[a]=Y.show)&&(i.projectOpacity[a]=Y.opacity,i.projectScale[a]=Y.scale)}i.errorBounds=g(t,v,h);var X=function(e){for(var t=[0,0,0],n=[[0,0,0],[0,0,0],[0,0,0]],r=[1,1,1],o=0;o<3;o++){var i=e[o];i&&!1!==i.copy_zstyle&&!1!==e[2].visible&&(i=e[2]),i&&i.visible&&(t[o]=i.width/2,n[o]=c(i.color),r[o]=i.thickness)}return{capSize:t,color:n,lineWidth:r}}([t.error_x,t.error_y,t.error_z]);return i.errorColor=X.color,i.errorLineWidth=X.lineWidth,i.errorCapSize=X.capSize,i.delaunayAxis=t.surfaceaxis,i.delaunayColor=c(t.surfacecolor),i}function T(e){if(l.isArrayOrTypedArray(e)){var t=e[0];return l.isArrayOrTypedArray(t)&&(e=t),"rgb("+e.slice(0,3).map((function(e){return Math.round(255*e)}))+")"}return null}function A(e){return l.isArrayOrTypedArray(e)?4===e.length&&"number"==typeof e[0]?T(e):e.map(T):null}y.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=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&&(l.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||0===this.textLabels[t])&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}},y.update=function(e){var t,n,l,c,u=this.scene.glplot.gl,d=f.solid;this.data=e;var h=k(this.scene,e);"mode"in h&&(this.mode=h.mode),"lineDashes"in h&&h.lineDashes in f&&(d=f[h.lineDashes]),this.color=A(h.scatterColor)||A(h.lineColor),this.dataPoints=h.position,t={gl:this.scene.glplot.gl,position:h.position,color:h.lineColor,lineWidth:h.lineWidth||1,dashes:d[0],dashScale:d[1],opacity:e.opacity,connectGaps:e.connectgaps},-1!==this.mode.indexOf("lines")?this.linePlot?this.linePlot.update(t):(this.linePlot=r(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 p=e.opacity;if(e.marker&&void 0!==e.marker.opacity&&(p*=e.marker.opacity),n={gl:this.scene.glplot.gl,position:h.position,color:h.scatterColor,size:h.scatterSize,glyph:h.scatterMarker,opacity:p,orthographic:!0,lineWidth:h.scatterLineWidth,lineColor:h.scatterLineColor,project:h.project,projectScale:h.projectScale,projectOpacity:h.projectOpacity},-1!==this.mode.indexOf("markers")?this.scatterPlot?this.scatterPlot.update(n):(this.scatterPlot=o(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),c={gl:this.scene.glplot.gl,position:h.position,glyph:h.text,color:h.textColor,size:h.textSize,angle:h.textAngle,alignment:h.textOffset,font:h.textFontFamily,fontWeight:h.textFontWeight,fontStyle:h.textFontStyle,fontVariant:h.textFontVariant,orthographic:!0,lineWidth:0,project:!1,opacity:e.opacity},this.textLabels=e.hovertext||e.text,-1!==this.mode.indexOf("text")?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=o(c),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),l={gl:this.scene.glplot.gl,position:h.position,color:h.errorColor,error:h.errorBounds,lineWidth:h.errorLineWidth,capSize:h.errorCapSize,opacity:e.opacity},this.errorBars?h.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):h.errorBounds&&(this.errorBars=i(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),h.delaunayAxis>=0){var m=function(e,t,n){var r,o=(n+1)%3,i=(n+2)%3,a=[],l=[];for(r=0;r<e.length;++r){var c=e[r];!isNaN(c[o])&&isFinite(c[o])&&!isNaN(c[i])&&isFinite(c[i])&&(a.push([c[o],c[i]]),l.push(r))}var u=s(a);for(r=0;r<u.length;++r)for(var d=u[r],f=0;f<d.length;++f)d[f]=l[d[f]];return{positions:e,cells:u,meshColor:t}}(h.position,h.delaunayColor,h.delaunayAxis);m.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(m):(m.gl=u,this.delaunayMesh=a(m),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)},y.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())},e.exports=function(e,t){var n=new v(e,t.uid);return n.update(t),n}},"./node_modules/plotly.js/src/traces/scatter3d/defaults.js":function(e,t,n){"use strict";var r=n("./node_modules/plotly.js/src/registry.js"),o=n("./node_modules/plotly.js/src/lib/index.js"),i=n("./node_modules/plotly.js/src/traces/scatter/subtypes.js"),a=n("./node_modules/plotly.js/src/traces/scatter/marker_defaults.js"),s=n("./node_modules/plotly.js/src/traces/scatter/line_defaults.js"),l=n("./node_modules/plotly.js/src/traces/scatter/text_defaults.js"),c=n("./node_modules/plotly.js/src/traces/scatter3d/attributes.js");e.exports=function(e,t,n,u){function d(n,r){return o.coerce(e,t,c,n,r)}if(function(e,t,n,o){var i=0,a=n("x"),s=n("y"),l=n("z");r.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y","z"],o),a&&s&&l&&(i=Math.min(a.length,s.length,l.length),t._length=t._xlength=t._ylength=t._zlength=i);return i}(e,t,d,u)){d("text"),d("hovertext"),d("hovertemplate"),d("xhoverformat"),d("yhoverformat"),d("zhoverformat"),d("mode"),i.hasMarkers(t)&&a(e,t,n,u,d,{noSelect:!0,noAngle:!0}),i.hasLines(t)&&(d("connectgaps"),s(e,t,n,u,d)),i.hasText(t)&&(d("texttemplate"),l(e,t,u,d,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var f=(t.line||{}).color,h=(t.marker||{}).color;d("surfaceaxis")>=0&&d("surfacecolor",f||h);for(var p=["x","y","z"],m=0;m<3;++m){var g="projection."+p[m];d(g+".show")&&(d(g+".opacity"),d(g+".scale"))}var v=r.getComponentMethod("errorbars","supplyDefaults");v(e,t,f||h||n,{axis:"z"}),v(e,t,f||h||n,{axis:"y",inherit:"z"}),v(e,t,f||h||n,{axis:"x",inherit:"z"})}else t.visible=!1}},"./node_modules/plotly.js/src/traces/scatter3d/index.js":function(e,t,n){"use strict";e.exports={plot:n("./node_modules/plotly.js/src/traces/scatter3d/convert.js"),attributes:n("./node_modules/plotly.js/src/traces/scatter3d/attributes.js"),markerSymbols:n("./node_modules/plotly.js/src/constants/gl3d_markers.js"),supplyDefaults:n("./node_modules/plotly.js/src/traces/scatter3d/defaults.js"),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:n("./node_modules/plotly.js/src/traces/scatter3d/calc.js"),moduleType:"trace",name:"scatter3d",basePlotModule:n("./node_modules/plotly.js/src/plots/gl3d/index.js"),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{hrName:"scatter_3d",description:["The data visualized as scatter point or lines in 3D dimension","is set in `x`, `y`, `z`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","Projections are achieved via `projection`.","Surface fills are achieved via `surfaceaxis`."].join(" ")}}},"./node_modules/plotly.js/src/version.js":function(e,t,n){"use strict";t.version="2.34.0"},"./node_modules/plotly.js/stackgl_modules/index.js":function(e,t,n){(function(t,n){!function(){var r={1964:function(e,t,n){e.exports={alpha_shape:n(3502),convex_hull:n(7352),delaunay_triangulate:n(7642),gl_cone3d:n(6405),gl_error3d:n(9165),gl_heatmap2d:n(2510),gl_line3d:n(5714),gl_mesh3d:n(7201),gl_plot2d:n(1850),gl_plot3d:n(4100),gl_pointcloud2d:n(4696),gl_scatter3d:n(8418),gl_select_box:n(3161),gl_spikes2d:n(4098),gl_streamtube3d:n(7815),gl_surface3d:n(9499),ndarray:n(9618),ndarray_linear_interpolate:n(4317)}},4793:function(e,t,n){"use strict";
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}function a(e,t,n){return t=s(t),function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=n(7507),d=n(3778),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=p,t.IS=50;function h(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,p.prototype),t}function p(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return v(e)}return m(e,t,n)}function m(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|_(e,t),r=h(n),o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return y(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(e));if(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return b(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return b(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return p.from(r,t,n);var o=function(e){if(p.isBuffer(e)){var t=0|x(e.length),n=h(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||te(e.length)?h(0):y(e);if("Buffer"===e.type&&Array.isArray(e.data))return y(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return p.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(e))}function g(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function v(e){return g(e),h(e<0?0:0|x(e))}function y(e){for(var t=e.length<0?0:0|x(e.length),n=h(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function b(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,p.prototype),r}function x(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function _(e,t){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+c(e));var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(o)return r?-1:K(e).length;t=(""+t).toLowerCase(),o=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function j(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function k(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),te(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=p.from(t,r)),p.isBuffer(t))return 0===t.length?-1:T(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):T(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function T(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(c(e,i+f)!==c(t,f)){d=!1;break}if(d)return i}return-1}function A(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i,a=t.length;for(r>a/2&&(r=a/2),i=0;i<r;++i){var s=parseInt(t.substr(2*i,2),16);if(te(s))return i;e[n+i]=s}return i}function M(e,t,n,r){return Q(K(t,e.length-n),e,n,r)}function S(e,t,n,r){return Q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function C(e,t,n,r){return Q(J(t),e,n,r)}function E(e,t,n,r){return Q(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function L(e,t,n){return 0===t&&n===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i=e[o],a=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=n){var l=void 0,c=void 0,u=void 0,d=void 0;switch(s){case 1:i<128&&(a=i);break;case 2:128==(192&(l=e[o+1]))&&(d=(31&i)<<6|63&l)>127&&(a=d);break;case 3:l=e[o+1],c=e[o+2],128==(192&l)&&128==(192&c)&&(d=(15&i)<<12|(63&l)<<6|63&c)>2047&&(d<55296||d>57343)&&(a=d);break;case 4:l=e[o+1],c=e[o+2],u=e[o+3],128==(192&l)&&128==(192&c)&&128==(192&u)&&(d=(15&i)<<18|(63&l)<<12|(63&c)<<6|63&u)>65535&&d<1114112&&(a=d)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=s}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}p.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),p.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(e,t,n){return m(e,t,n)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(e,t,n){return function(e,t,n){return g(e),e<=0?h(e):void 0!==t?"string"==typeof n?h(e).fill(t,n):h(e).fill(t):h(e)}(e,t,n)},p.allocUnsafe=function(e){return v(e)},p.allocUnsafeSlow=function(e){return v(e)},p.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==p.prototype},p.compare=function(e,t){if(ee(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),ee(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(e)||!p.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},p.isEncoding=function(e){switch(String(e).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}},p.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return p.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=p.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(ee(i,Uint8Array))o+i.length>r.length?(p.isBuffer(i)||(i=p.from(i)),i.copy(r,o)):Uint8Array.prototype.set.call(r,i,o);else{if(!p.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o)}o+=i.length}return r},p.byteLength=_,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)j(this,t,t+1);return this},p.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)j(this,t,t+3),j(this,t+1,t+2);return this},p.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)j(this,t,t+7),j(this,t+1,t+6),j(this,t+2,t+5),j(this,t+3,t+4);return this},p.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):w.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(e){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===p.compare(this,e)},p.prototype.inspect=function(){var e="",n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},f&&(p.prototype[f]=p.prototype.inspect),p.prototype.compare=function(e,t,n,r,o){if(ee(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+c(e));if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(r,o),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){i=l[d],a=u[d];break}return i<a?-1:a<i?1:0},p.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},p.prototype.indexOf=function(e,t,n){return k(this,e,t,n,!0)},p.prototype.lastIndexOf=function(e,t,n){return k(this,e,t,n,!1)},p.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return A(this,e,t,n);case"utf8":case"utf-8":return M(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=ne[e[i]];return o}function D(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function z(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,o,i){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function F(e,t,n,r,o){Y(t,r,o,e,n,7);var i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;var a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function B(e,t,n,r,o){Y(t,r,o,e,n,7);var i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;var a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function U(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,o){return t=+t,n>>>=0,o||U(e,0,n,4),d.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,o){return t=+t,n>>>=0,o||U(e,0,n,8),d.write(e,t,n,r,52,8),n+8}p.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,p.prototype),r},p.prototype.readUintLE=p.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},p.prototype.readUintBE=p.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},p.prototype.readUint8=p.prototype.readUInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]|this[e+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]<<8|this[e+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},p.prototype.readBigUInt64LE=re((function(e){X(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),o=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(o)<<BigInt(32))})),p.prototype.readBigUInt64BE=re((function(e){X(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],o=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),p.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},p.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},p.prototype.readInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},p.prototype.readInt16LE=function(e,t){e>>>=0,t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt16BE=function(e,t){e>>>=0,t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},p.prototype.readInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},p.prototype.readBigInt64LE=re((function(e){X(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),p.prototype.readBigInt64BE=re((function(e){X(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n)})),p.prototype.readFloatLE=function(e,t){return e>>>=0,t||z(e,4,this.length),d.read(this,e,!0,23,4)},p.prototype.readFloatBE=function(e,t){return e>>>=0,t||z(e,4,this.length),d.read(this,e,!1,23,4)},p.prototype.readDoubleLE=function(e,t){return e>>>=0,t||z(e,8,this.length),d.read(this,e,!0,52,8)},p.prototype.readDoubleBE=function(e,t){return e>>>=0,t||z(e,8,this.length),d.read(this,e,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},p.prototype.writeUint8=p.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigUInt64LE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeBigUInt64BE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);N(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},p.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);N(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},p.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},p.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},p.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigInt64LE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeBigInt64BE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},p.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},p.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},p.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},p.prototype.copy=function(e,t,n,r){if(!p.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},p.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!p.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=p.isBuffer(e)?e:p.from(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var G={};function q(e,t,n){G[e]=function(n){function i(){var n;return r(this,i),n=a(this,i),Object.defineProperty(n,"message",{value:t.apply(n,arguments),writable:!0,configurable:!0}),n.name="".concat(n.name," [").concat(e,"]"),n.stack,delete n.name,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(i,n),s=i,(c=[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}])&&o(s.prototype,c),u&&o(s,u),Object.defineProperty(s,"prototype",{writable:!1}),s;var s,c,u}(n)}function W(e){for(var t="",n=e.length,r="-"===e[0]?1:0;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function Y(e,t,n,r,o,i){if(e>n||e<t){var a,s="bigint"==typeof t?"n":"";throw a=i>3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(i+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(i+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(n).concat(s),new G.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,n){X(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||Z(t,e.length-(n+1))}(r,o,i)}function X(e,t){if("number"!=typeof e)throw new G.ERR_INVALID_ARG_TYPE(t,"number",e)}function Z(e,t,n){if(Math.floor(e)!==e)throw X(e,n),new G.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(c(t))}),TypeError),q("ERR_OUT_OF_RANGE",(function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),o=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?o=W(String(n)):"bigint"==typeof n&&(o=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(o=W(o)),o+="n"),r+=" It must be ".concat(t,". Received ").concat(o)}),RangeError);var $=/[^+/0-9A-Za-z-_]/g;function K(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function J(e){return u.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace($,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,n,r){var o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!=e}var ne=function(){for(var e=new Array(256),t=0;t<16;++t)for(var n=16*t,r=0;r<16;++r)e[n+r]="0123456789abcdef"[t]+"0123456789abcdef"[r];return e}();function re(e){return"undefined"==typeof BigInt?oe:e}function oe(){throw new Error("BigInt not supported")}},9216:function(e){"use strict";e.exports=o,e.exports.isMobile=o,e.exports.default=o;var t=/(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,n=/CrOS/,r=/android|ipad|playbook|silk/i;function o(e){e||(e={});var o=e.ua;if(o||"undefined"==typeof navigator||(o=navigator.userAgent),o&&o.headers&&"string"==typeof o.headers["user-agent"]&&(o=o.headers["user-agent"]),"string"!=typeof o)return!1;var i=t.test(o)&&!n.test(o)||!!e.tablet&&r.test(o);return!i&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==o.indexOf("Macintosh")&&-1!==o.indexOf("Safari")&&(i=!0),i}},6296:function(e,t,n){"use strict";e.exports=function(e){var t=(e=e||{}).eye||[0,0,1],n=e.center||[0,0,0],s=e.up||[0,1,0],l=e.distanceLimits||[0,1/0],c=e.mode||"turntable",u=r(),d=o(),f=i();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,t,n,s),d.setDistanceLimits(l[0],l[1]),d.lookAt(0,t,n,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,t,n,s),new a({turntable:u,orbit:d,matrix:f},c)};var r=n(7261),o=n(9977),i=n(4192);function a(e,t){this._controllerNames=Object.keys(e),this._controllerList=this._controllerNames.map((function(t){return e[t]})),this._mode=t,this._active=e[t],this._active||(this._mode="turntable",this._active=e.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 s=a.prototype;s.flush=function(e){for(var t=this._controllerList,n=0;n<t.length;++n)t[n].flush(e)},s.idle=function(e){for(var t=this._controllerList,n=0;n<t.length;++n)t[n].idle(e)},s.lookAt=function(e,t,n,r){for(var o=this._controllerList,i=0;i<o.length;++i)o[i].lookAt(e,t,n,r)},s.rotate=function(e,t,n,r){for(var o=this._controllerList,i=0;i<o.length;++i)o[i].rotate(e,t,n,r)},s.pan=function(e,t,n,r){for(var o=this._controllerList,i=0;i<o.length;++i)o[i].pan(e,t,n,r)},s.translate=function(e,t,n,r){for(var o=this._controllerList,i=0;i<o.length;++i)o[i].translate(e,t,n,r)},s.setMatrix=function(e,t){for(var n=this._controllerList,r=0;r<n.length;++r)n[r].setMatrix(e,t)},s.setDistanceLimits=function(e,t){for(var n=this._controllerList,r=0;r<n.length;++r)n[r].setDistanceLimits(e,t)},s.setDistance=function(e,t){for(var n=this._controllerList,r=0;r<n.length;++r)n[r].setDistance(e,t)},s.recalcMatrix=function(e){this._active.recalcMatrix(e)},s.getDistance=function(e){return this._active.getDistance(e)},s.getDistanceLimits=function(e){return this._active.getDistanceLimits(e)},s.lastT=function(){return this._active.lastT()},s.setMode=function(e){if(e!==this._mode){var t=this._controllerNames.indexOf(e);if(!(t<0)){var n=this._active,r=this._controllerList[t],o=Math.max(n.lastT(),r.lastT());n.recalcMatrix(o),r.setMatrix(o,n.computedMatrix),this._active=r,this._mode=e,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}}},s.getMode=function(){return this._mode}},7169:function(e,t,n){"use strict";var r="undefined"==typeof WeakMap?n(1538):WeakMap,o=n(2762),i=n(8116),a=new r;e.exports=function(e){var t=a.get(e),n=t&&(t._triangleBuffer.handle||t._triangleBuffer.buffer);if(!n||!e.isBuffer(n)){var r=o(e,new Float32Array([-1,-1,-1,4,4,-1]));(t=i(e,[{buffer:r,type:e.FLOAT,size:2}]))._triangleBuffer=r,a.set(e,t)}t.bind(),e.drawArrays(e.TRIANGLES,0,3),t.unbind()}},1085:function(e,t,n){var r=n(1371);e.exports=function(e,t,n){t="number"==typeof t?t:1,n=n||": ";var o=e.split(/\r?\n/),i=String(o.length+t-1).length;return o.map((function(e,o){var a=o+t,s=String(a).length;return r(a,i-s)+n+e})).join("\n")}},3952:function(e,t,n){"use strict";e.exports=function(e){var t=e.length;if(0===t)return[];if(1===t)return[0];for(var n=e[0].length,r=[e[0]],i=[0],a=1;a<t;++a)if(r.push(e[a]),o(r,n)){if(i.push(a),i.length===n+1)return i}else r.pop();return i};var r=n(3250);function o(e,t){for(var n=new Array(t+1),o=0;o<e.length;++o)n[o]=e[o];for(o=0;o<=e.length;++o){for(var i=e.length;i<=t;++i){for(var a=new Array(t),s=0;s<t;++s)a[s]=Math.pow(i+1-o,s);n[i]=a}if(r.apply(void 0,n))return!0}return!1}},5995:function(e,t,n){"use strict";e.exports=function(e,t){return r(t).filter((function(n){for(var r=new Array(n.length),i=0;i<n.length;++i)r[i]=t[n[i]];return o(r)*e<1}))};var r=n(7642),o=n(6037)},3502:function(e,t,n){e.exports=function(e,t){return o(r(e,t))};var r=n(5995),o=n(9127)},6468:function(e){e.exports=function(e){return atob(e)}},2642:function(e,t,n){"use strict";e.exports=function(e,t){for(var n=t.length,i=new Array(n+1),a=0;a<n;++a){for(var s=new Array(n+1),l=0;l<=n;++l)s[l]=e[l][a];i[a]=s}i[n]=new Array(n+1);for(a=0;a<=n;++a)i[n][a]=1;var c=new Array(n+1);for(a=0;a<n;++a)c[a]=t[a];c[n]=1;var u=r(i,c),d=o(u[n+1]);0===d&&(d=1);var f=new Array(n+1);for(a=0;a<=n;++a)f[a]=o(u[a])/d;return f};var r=n(727);function o(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return t}},7507:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],s=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,s=r-o;a<s;a+=16383)i.push(c(e,a,a+16383>s?s:a+16383));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},3865:function(e,t,n){"use strict";var r=n(869);e.exports=function(e,t){return r(e[0].mul(t[1]).add(t[0].mul(e[1])),e[1].mul(t[1]))}},1318:function(e){"use strict";e.exports=function(e,t){return e[0].mul(t[1]).cmp(t[0].mul(e[1]))}},8697:function(e,t,n){"use strict";var r=n(869);e.exports=function(e,t){return r(e[0].mul(t[1]),e[1].mul(t[0]))}},7842:function(e,t,n){"use strict";var r=n(6330),o=n(1533),i=n(2651),a=n(4387),s=n(869),l=n(8697);e.exports=function e(t,n){if(r(t))return n?l(t,e(n)):[t[0].clone(),t[1].clone()];var c,u,d=0;if(o(t))c=t.clone();else if("string"==typeof t)c=a(t);else{if(0===t)return[i(0),i(1)];if(t===Math.floor(t))c=i(t);else{for(;t!==Math.floor(t);)t*=Math.pow(2,256),d-=256;c=i(t)}}if(r(n))c.mul(n[1]),u=n[0].clone();else if(o(n))u=n.clone();else if("string"==typeof n)u=a(n);else if(n)if(n===Math.floor(n))u=i(n);else{for(;n!==Math.floor(n);)n*=Math.pow(2,256),d+=256;u=i(n)}else u=i(1);d>0?c=c.ushln(d):d<0&&(u=u.ushln(-d));return s(c,u)}},6330:function(e,t,n){"use strict";var r=n(1533);e.exports=function(e){return Array.isArray(e)&&2===e.length&&r(e[0])&&r(e[1])}},5716:function(e,t,n){"use strict";var r=n(6859);e.exports=function(e){return e.cmp(new r(0))}},1369:function(e,t,n){"use strict";var r=n(5716);e.exports=function(e){var t=e.length,n=e.words,o=0;if(1===t)o=n[0];else if(2===t)o=n[0]+67108864*n[1];else for(var i=0;i<t;i++){var a=n[i];o+=a*Math.pow(67108864,i)}return r(e)*o}},4025:function(e,t,n){"use strict";var r=n(2361),o=n(8828).countTrailingZeros;e.exports=function(e){var t=o(r.lo(e));if(t<32)return t;var n=o(r.hi(e));if(n>20)return 52;return n+32}},1533:function(e,t,n){"use strict";n(6859);e.exports=function(e){return e&&"object"==typeof e&&Boolean(e.words)}},2651:function(e,t,n){"use strict";var r=n(6859),o=n(2361);e.exports=function(e){var t=o.exponent(e);return t<52?new r(e):new r(e*Math.pow(2,52-t)).ushln(t-52)}},869:function(e,t,n){"use strict";var r=n(2651),o=n(5716);e.exports=function(e,t){var n=o(e),i=o(t);if(0===n)return[r(0),r(1)];if(0===i)return[r(0),r(0)];i<0&&(e=e.neg(),t=t.neg());var a=e.gcd(t);if(a.cmpn(1))return[e.div(a),t.div(a)];return[e,t]}},4387:function(e,t,n){"use strict";var r=n(6859);e.exports=function(e){return new r(e)}},6504:function(e,t,n){"use strict";var r=n(869);e.exports=function(e,t){return r(e[0].mul(t[0]),e[1].mul(t[1]))}},7721:function(e,t,n){"use strict";var r=n(5716);e.exports=function(e){return r(e[0])*r(e[1])}},5572:function(e,t,n){"use strict";var r=n(869);e.exports=function(e,t){return r(e[0].mul(t[1]).sub(e[1].mul(t[0])),e[1].mul(t[1]))}},946:function(e,t,n){"use strict";var r=n(1369),o=n(4025);e.exports=function(e){var t=e[0],n=e[1];if(0===t.cmpn(0))return 0;var i=t.abs().divmod(n.abs()),a=i.div,s=r(a),l=i.mod,c=t.negative!==n.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=o(s)+4,d=r(l.ushln(u).divRound(n));return c*(s+d*Math.pow(2,-u))}var f=n.bitLength()-l.bitLength()+53;d=r(l.ushln(f).divRound(n));return f<1023?c*d*Math.pow(2,-f):(d*=Math.pow(2,-1023),c*d*Math.pow(2,1023-f))}},2478:function(e){"use strict";function t(e,t,n,r,o){for(var i=o+1;r<=o;){var a=r+o>>>1,s=e[a];(void 0!==n?n(s,t):s-t)>=0?(i=a,o=a-1):r=a+1}return i}function n(e,t,n,r,o){for(var i=o+1;r<=o;){var a=r+o>>>1,s=e[a];(void 0!==n?n(s,t):s-t)>0?(i=a,o=a-1):r=a+1}return i}function r(e,t,n,r,o){for(var i=r-1;r<=o;){var a=r+o>>>1,s=e[a];(void 0!==n?n(s,t):s-t)<0?(i=a,r=a+1):o=a-1}return i}function o(e,t,n,r,o){for(var i=r-1;r<=o;){var a=r+o>>>1,s=e[a];(void 0!==n?n(s,t):s-t)<=0?(i=a,r=a+1):o=a-1}return i}function i(e,t,n,r,o){for(;r<=o;){var i=r+o>>>1,a=e[i],s=void 0!==n?n(a,t):a-t;if(0===s)return i;s<=0?r=i+1:o=i-1}return-1}function a(e,t,n,r,o,i){return"function"==typeof n?i(e,t,n,void 0===r?0:0|r,void 0===o?e.length-1:0|o):i(e,t,void 0,void 0===n?0:0|n,void 0===r?e.length-1:0|r)}e.exports={ge:function(e,n,r,o,i){return a(e,n,r,o,i,t)},gt:function(e,t,r,o,i){return a(e,t,r,o,i,n)},lt:function(e,t,n,o,i){return a(e,t,n,o,i,r)},le:function(e,t,n,r,i){return a(e,t,n,r,i,o)},eq:function(e,t,n,r,o){return a(e,t,n,r,o,i)}}},8828:function(e,t){"use strict";function n(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}t.INT_BITS=32,t.INT_MAX=2147483647,t.INT_MIN=-1<<31,t.sign=function(e){return(e>0)-(e<0)},t.abs=function(e){var t=e>>31;return(e^t)-t},t.min=function(e,t){return t^(e^t)&-(e<t)},t.max=function(e,t){return e^(e^t)&-(e<t)},t.isPow2=function(e){return!(e&e-1||!e)},t.log2=function(e){var t,n;return t=(e>65535)<<4,t|=n=((e>>>=t)>255)<<3,t|=n=((e>>>=n)>15)<<2,(t|=n=((e>>>=n)>3)<<1)|(e>>>=n)>>1},t.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},t.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},t.countTrailingZeros=n,t.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},t.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},t.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var r=new Array(256);!function(e){for(var t=0;t<256;++t){var n=t,r=t,o=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--o;e[t]=r<<o&255}}(r),t.reverse=function(e){return r[255&e]<<24|r[e>>>8&255]<<16|r[e>>>16&255]<<8|r[e>>>24&255]},t.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},t.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},t.interleave3=function(e,t,n){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(n=1227133513&((n=3272356035&((n=251719695&((n=4278190335&((n&=1023)|n<<16))|n<<8))|n<<4))|n<<2))<<2},t.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},t.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>n(e)+1}},6859:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(7790).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,n,r){for(var o=0,i=Math.min(e.length,n),a=t;a<i;a++){var s=e.charCodeAt(a)-48;o*=r,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<e.length&&(16===t?this._parseHex(e,o,n):(this._parseBase(e,t,o),"le"===n&&this._initArray(this.toArray(),t,n)))},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===n)for(o=e.length-1,i=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(o=0,i=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,i=0,a=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)o=l(e,t,r)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)o=l(e,t,r)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=t)r++;r--,o=o/t|0;for(var i=e.length-n,a=i%r,s=Math.min(i,i-a)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(o),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var d=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","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"],d=[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],f=[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];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var u=l>>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(a=(o=0|e.words[p])*(i=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|i)).toString(16);n=0!==(i=s>>>24-o&16777215)||a!==this.length-1?u[6-l.length]+l+n:l+n,(o+=2)>=26&&(o-=26,a--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],h=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?m+n:u[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var o=this.byteLength(),i=n||Math.max(1,o);r(o<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,c=new e(i),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s<i;s++)c[s]=0}else{for(s=0;s<i-o;s++)c[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[i-s-1]=a}return c},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var o=0;o<t;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var o=0,i=0;i<r.length;i++)t=(0|n.words[i])+(0|r.words[i])+o,this.words[i]=67108863&t,o=t>>>26;for(;0!==o&&i<n.length;i++)t=(0|n.words[i])+o,this.words[i]=67108863&t,o=t>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;i<n.length;i++)this.words[i]=n.words[i];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)i=(t=(0|n.words[a])-(0|r.words[a])+i)>>26,this.words[a]=67108863&t;for(;0!==i&&a<n.length;a++)i=(t=(0|n.words[a])+i)>>26,this.words[a]=67108863&t;if(0===i&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,o,i,a=e.words,s=t.words,l=n.words,c=0,u=0|a[0],d=8191&u,f=u>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],x=8191&b,_=b>>>13,w=0|a[4],j=8191&w,k=w>>>13,T=0|a[5],A=8191&T,M=T>>>13,S=0|a[6],C=8191&S,E=S>>>13,L=0|a[7],O=8191&L,R=L>>>13,I=0|a[8],P=8191&I,D=I>>>13,z=0|a[9],N=8191&z,F=z>>>13,B=0|s[0],U=8191&B,H=B>>>13,V=0|s[1],G=8191&V,q=V>>>13,W=0|s[2],Y=8191&W,X=W>>>13,Z=0|s[3],$=8191&Z,K=Z>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],ne=8191&te,re=te>>>13,oe=0|s[6],ie=8191&oe,ae=oe>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(d,U))|0)+((8191&(o=(o=Math.imul(d,H))+Math.imul(f,U)|0))<<13)|0;c=((i=Math.imul(f,H))+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,U),o=(o=Math.imul(p,H))+Math.imul(m,U)|0,i=Math.imul(m,H);var ve=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(o=(o=o+Math.imul(d,q)|0)+Math.imul(f,G)|0))<<13)|0;c=((i=i+Math.imul(f,q)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,U),o=(o=Math.imul(v,H))+Math.imul(y,U)|0,i=Math.imul(y,H),r=r+Math.imul(p,G)|0,o=(o=o+Math.imul(p,q)|0)+Math.imul(m,G)|0,i=i+Math.imul(m,q)|0;var ye=(c+(r=r+Math.imul(d,Y)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(f,Y)|0))<<13)|0;c=((i=i+Math.imul(f,X)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(x,U),o=(o=Math.imul(x,H))+Math.imul(_,U)|0,i=Math.imul(_,H),r=r+Math.imul(v,G)|0,o=(o=o+Math.imul(v,q)|0)+Math.imul(y,G)|0,i=i+Math.imul(y,q)|0,r=r+Math.imul(p,Y)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,Y)|0,i=i+Math.imul(m,X)|0;var be=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,K)|0)+Math.imul(f,$)|0))<<13)|0;c=((i=i+Math.imul(f,K)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(j,U),o=(o=Math.imul(j,H))+Math.imul(k,U)|0,i=Math.imul(k,H),r=r+Math.imul(x,G)|0,o=(o=o+Math.imul(x,q)|0)+Math.imul(_,G)|0,i=i+Math.imul(_,q)|0,r=r+Math.imul(v,Y)|0,o=(o=o+Math.imul(v,X)|0)+Math.imul(y,Y)|0,i=i+Math.imul(y,X)|0,r=r+Math.imul(p,$)|0,o=(o=o+Math.imul(p,K)|0)+Math.imul(m,$)|0,i=i+Math.imul(m,K)|0;var xe=(c+(r=r+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,ee)|0)+Math.imul(f,Q)|0))<<13)|0;c=((i=i+Math.imul(f,ee)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(A,U),o=(o=Math.imul(A,H))+Math.imul(M,U)|0,i=Math.imul(M,H),r=r+Math.imul(j,G)|0,o=(o=o+Math.imul(j,q)|0)+Math.imul(k,G)|0,i=i+Math.imul(k,q)|0,r=r+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,X)|0)+Math.imul(_,Y)|0,i=i+Math.imul(_,X)|0,r=r+Math.imul(v,$)|0,o=(o=o+Math.imul(v,K)|0)+Math.imul(y,$)|0,i=i+Math.imul(y,K)|0,r=r+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,ee)|0;var _e=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(o=(o=o+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;c=((i=i+Math.imul(f,re)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(C,U),o=(o=Math.imul(C,H))+Math.imul(E,U)|0,i=Math.imul(E,H),r=r+Math.imul(A,G)|0,o=(o=o+Math.imul(A,q)|0)+Math.imul(M,G)|0,i=i+Math.imul(M,q)|0,r=r+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,X)|0)+Math.imul(k,Y)|0,i=i+Math.imul(k,X)|0,r=r+Math.imul(x,$)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(_,$)|0,i=i+Math.imul(_,K)|0,r=r+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,o=(o=o+Math.imul(p,re)|0)+Math.imul(m,ne)|0,i=i+Math.imul(m,re)|0;var we=(c+(r=r+Math.imul(d,ie)|0)|0)+((8191&(o=(o=o+Math.imul(d,ae)|0)+Math.imul(f,ie)|0))<<13)|0;c=((i=i+Math.imul(f,ae)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(O,U),o=(o=Math.imul(O,H))+Math.imul(R,U)|0,i=Math.imul(R,H),r=r+Math.imul(C,G)|0,o=(o=o+Math.imul(C,q)|0)+Math.imul(E,G)|0,i=i+Math.imul(E,q)|0,r=r+Math.imul(A,Y)|0,o=(o=o+Math.imul(A,X)|0)+Math.imul(M,Y)|0,i=i+Math.imul(M,X)|0,r=r+Math.imul(j,$)|0,o=(o=o+Math.imul(j,K)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,ee)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,ee)|0,r=r+Math.imul(v,ne)|0,o=(o=o+Math.imul(v,re)|0)+Math.imul(y,ne)|0,i=i+Math.imul(y,re)|0,r=r+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var je=(c+(r=r+Math.imul(d,le)|0)|0)+((8191&(o=(o=o+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((i=i+Math.imul(f,ce)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(P,U),o=(o=Math.imul(P,H))+Math.imul(D,U)|0,i=Math.imul(D,H),r=r+Math.imul(O,G)|0,o=(o=o+Math.imul(O,q)|0)+Math.imul(R,G)|0,i=i+Math.imul(R,q)|0,r=r+Math.imul(C,Y)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(E,Y)|0,i=i+Math.imul(E,X)|0,r=r+Math.imul(A,$)|0,o=(o=o+Math.imul(A,K)|0)+Math.imul(M,$)|0,i=i+Math.imul(M,K)|0,r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(x,ne)|0,o=(o=o+Math.imul(x,re)|0)+Math.imul(_,ne)|0,i=i+Math.imul(_,re)|0,r=r+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,ae)|0,r=r+Math.imul(p,le)|0,o=(o=o+Math.imul(p,ce)|0)+Math.imul(m,le)|0,i=i+Math.imul(m,ce)|0;var ke=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(o=(o=o+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((i=i+Math.imul(f,fe)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(N,U),o=(o=Math.imul(N,H))+Math.imul(F,U)|0,i=Math.imul(F,H),r=r+Math.imul(P,G)|0,o=(o=o+Math.imul(P,q)|0)+Math.imul(D,G)|0,i=i+Math.imul(D,q)|0,r=r+Math.imul(O,Y)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(R,Y)|0,i=i+Math.imul(R,X)|0,r=r+Math.imul(C,$)|0,o=(o=o+Math.imul(C,K)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,i=i+Math.imul(M,ee)|0,r=r+Math.imul(j,ne)|0,o=(o=o+Math.imul(j,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(x,ie)|0,o=(o=o+Math.imul(x,ae)|0)+Math.imul(_,ie)|0,i=i+Math.imul(_,ae)|0,r=r+Math.imul(v,le)|0,o=(o=o+Math.imul(v,ce)|0)+Math.imul(y,le)|0,i=i+Math.imul(y,ce)|0,r=r+Math.imul(p,de)|0,o=(o=o+Math.imul(p,fe)|0)+Math.imul(m,de)|0,i=i+Math.imul(m,fe)|0;var Te=(c+(r=r+Math.imul(d,pe)|0)|0)+((8191&(o=(o=o+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((i=i+Math.imul(f,me)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(N,G),o=(o=Math.imul(N,q))+Math.imul(F,G)|0,i=Math.imul(F,q),r=r+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,X)|0)+Math.imul(D,Y)|0,i=i+Math.imul(D,X)|0,r=r+Math.imul(O,$)|0,o=(o=o+Math.imul(O,K)|0)+Math.imul(R,$)|0,i=i+Math.imul(R,K)|0,r=r+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(A,ne)|0,o=(o=o+Math.imul(A,re)|0)+Math.imul(M,ne)|0,i=i+Math.imul(M,re)|0,r=r+Math.imul(j,ie)|0,o=(o=o+Math.imul(j,ae)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,ae)|0,r=r+Math.imul(x,le)|0,o=(o=o+Math.imul(x,ce)|0)+Math.imul(_,le)|0,i=i+Math.imul(_,ce)|0,r=r+Math.imul(v,de)|0,o=(o=o+Math.imul(v,fe)|0)+Math.imul(y,de)|0,i=i+Math.imul(y,fe)|0;var Ae=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,Y),o=(o=Math.imul(N,X))+Math.imul(F,Y)|0,i=Math.imul(F,X),r=r+Math.imul(P,$)|0,o=(o=o+Math.imul(P,K)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,r=r+Math.imul(C,ne)|0,o=(o=o+Math.imul(C,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(A,ie)|0,o=(o=o+Math.imul(A,ae)|0)+Math.imul(M,ie)|0,i=i+Math.imul(M,ae)|0,r=r+Math.imul(j,le)|0,o=(o=o+Math.imul(j,ce)|0)+Math.imul(k,le)|0,i=i+Math.imul(k,ce)|0,r=r+Math.imul(x,de)|0,o=(o=o+Math.imul(x,fe)|0)+Math.imul(_,de)|0,i=i+Math.imul(_,fe)|0;var Me=(c+(r=r+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;c=((i=i+Math.imul(y,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(N,$),o=(o=Math.imul(N,K))+Math.imul(F,$)|0,i=Math.imul(F,K),r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,ee)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(O,ne)|0,o=(o=o+Math.imul(O,re)|0)+Math.imul(R,ne)|0,i=i+Math.imul(R,re)|0,r=r+Math.imul(C,ie)|0,o=(o=o+Math.imul(C,ae)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,ae)|0,r=r+Math.imul(A,le)|0,o=(o=o+Math.imul(A,ce)|0)+Math.imul(M,le)|0,i=i+Math.imul(M,ce)|0,r=r+Math.imul(j,de)|0,o=(o=o+Math.imul(j,fe)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,fe)|0;var Se=(c+(r=r+Math.imul(x,pe)|0)|0)+((8191&(o=(o=o+Math.imul(x,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((i=i+Math.imul(_,me)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(N,Q),o=(o=Math.imul(N,ee))+Math.imul(F,Q)|0,i=Math.imul(F,ee),r=r+Math.imul(P,ne)|0,o=(o=o+Math.imul(P,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(O,ie)|0,o=(o=o+Math.imul(O,ae)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,ae)|0,r=r+Math.imul(C,le)|0,o=(o=o+Math.imul(C,ce)|0)+Math.imul(E,le)|0,i=i+Math.imul(E,ce)|0,r=r+Math.imul(A,de)|0,o=(o=o+Math.imul(A,fe)|0)+Math.imul(M,de)|0,i=i+Math.imul(M,fe)|0;var Ce=(c+(r=r+Math.imul(j,pe)|0)|0)+((8191&(o=(o=o+Math.imul(j,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((i=i+Math.imul(k,me)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(N,ne),o=(o=Math.imul(N,re))+Math.imul(F,ne)|0,i=Math.imul(F,re),r=r+Math.imul(P,ie)|0,o=(o=o+Math.imul(P,ae)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,ae)|0,r=r+Math.imul(O,le)|0,o=(o=o+Math.imul(O,ce)|0)+Math.imul(R,le)|0,i=i+Math.imul(R,ce)|0,r=r+Math.imul(C,de)|0,o=(o=o+Math.imul(C,fe)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,fe)|0;var Ee=(c+(r=r+Math.imul(A,pe)|0)|0)+((8191&(o=(o=o+Math.imul(A,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((i=i+Math.imul(M,me)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,ie),o=(o=Math.imul(N,ae))+Math.imul(F,ie)|0,i=Math.imul(F,ae),r=r+Math.imul(P,le)|0,o=(o=o+Math.imul(P,ce)|0)+Math.imul(D,le)|0,i=i+Math.imul(D,ce)|0,r=r+Math.imul(O,de)|0,o=(o=o+Math.imul(O,fe)|0)+Math.imul(R,de)|0,i=i+Math.imul(R,fe)|0;var Le=(c+(r=r+Math.imul(C,pe)|0)|0)+((8191&(o=(o=o+Math.imul(C,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((i=i+Math.imul(E,me)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(N,le),o=(o=Math.imul(N,ce))+Math.imul(F,le)|0,i=Math.imul(F,ce),r=r+Math.imul(P,de)|0,o=(o=o+Math.imul(P,fe)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,fe)|0;var Oe=(c+(r=r+Math.imul(O,pe)|0)|0)+((8191&(o=(o=o+Math.imul(O,me)|0)+Math.imul(R,pe)|0))<<13)|0;c=((i=i+Math.imul(R,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(N,de),o=(o=Math.imul(N,fe))+Math.imul(F,de)|0,i=Math.imul(F,fe);var Re=(c+(r=r+Math.imul(P,pe)|0)|0)+((8191&(o=(o=o+Math.imul(P,me)|0)+Math.imul(D,pe)|0))<<13)|0;c=((i=i+Math.imul(D,me)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ie=(c+(r=Math.imul(N,pe))|0)+((8191&(o=(o=Math.imul(N,me))+Math.imul(F,pe)|0))<<13)|0;return c=((i=Math.imul(F,me))+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,l[0]=ge,l[1]=ve,l[2]=ye,l[3]=be,l[4]=xe,l[5]=_e,l[6]=we,l[7]=je,l[8]=ke,l[9]=Te,l[10]=Ae,l[11]=Me,l[12]=Se,l[13]=Ce,l[14]=Ee,l[15]=Le,l[16]=Oe,l[17]=Re,l[18]=Ie,0!==c&&(l[19]=c,n.length++),n};function m(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,i=0;i<n.length-1;i++){var a=o;o=0;for(var s=67108863&r,l=Math.min(i,t.length-1),c=Math.max(0,i-e.length+1);c<=l;c++){var u=i-c,d=(0|e.words[u])*(0|t.words[c]),f=67108863&d;s=67108863&(f=f+s|0),o+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}n.words[i]=s,r=a,a=o}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},g.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,o=0;o<t;o++)r|=(1&e)<<t-o-1,e>>=1;return r},g.prototype.permute=function(e,t,n,r,o,i){for(var a=0;a<i;a++)r[a]=t[e[a]],o[a]=n[e[a]]},g.prototype.transform=function(e,t,n,r,o,i){this.permute(i,e,t,n,r,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<o;u+=s)for(var d=l,f=c,h=0;h<a;h++){var p=n[u+h],m=r[u+h],g=n[u+h+a],v=r[u+h+a],y=d*g-f*v;v=d*v+f*g,g=y,n[u+h]=p+g,r[u+h]=m+v,n[u+h+a]=p-g,r[u+h+a]=m-v,h!==s&&(y=l*d-c*f,f=l*f+c*d,d=y)}},g.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+r},g.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var o=e[r];e[r]=e[n-r-1],e[n-r-1]=o,o=t[r],t[r]=-t[n-r-1],t[n-r-1]=-o}},g.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var o=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&o,n=o<67108864?0:o/67108864|0}return e},g.prototype.convert13b=function(e,t,n,o){for(var i=0,a=0;a<t;a++)i+=0|e[a],n[2*a]=8191&i,i>>>=13,n[2*a+1]=8191&i,i>>>=13;for(a=2*t;a<o;++a)n[a]=0;r(0===i),r(0==(-8192&i))},g.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(r),i=this.stub(r),a=new Array(r),s=new Array(r),l=new Array(r),c=new Array(r),u=new Array(r),d=new Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,c,r),this.transform(a,i,s,l,r,o),this.transform(c,i,u,d,r,o);for(var h=0;h<r;h++){var p=s[h]*u[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,r),this.transform(s,l,f,i,r,o),this.conjugate(f,i,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),m(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var o=(0|this.words[n])*e,i=(67108863&o)+(67108863&t);t>>=26,t+=o/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,o=n%26;t[n]=(e.words[r]&1<<o)>>>o}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,o=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&i,l=(0|this.words[t])-s<<n;this.words[t]=l|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t<o;t++)this.words[t]=0;this.length+=o}return this.strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,n){var o;r("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<<i,l=n;if(o-=a,o=Math.max(0,o),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=o);c--){var d=0|this.words[c];this.words[c]=u<<26-i|d>>>i,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,o=1<<t;return!(this.length<=n)&&!!(this.words[n]&o)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var o=67108863^67108863>>>t<<t;this.words[this.length-1]&=o}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,n){var o,i,a=e.length+n;this._expand(a);var s=0;for(o=0;o<e.length;o++){i=(0|this.words[o+n])+s;var l=(0|e.words[o])*t;s=((i-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&i}for(;o<this.length-n;o++)s=(i=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,l=r.length-o.length;if("mod"!==t){(s=new i(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=r.clone()._ishlnsubmul(o,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),o=e.andln(1),i=n.cmp(r);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,o=this.length-1;o>=0;o--)n=(t*n+(0|this.words[o]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*t;this.words[n]=o/e|0,t=o%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),l=new i(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(u),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s),a.isub(l)):(n.isub(t),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0==(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=t.cmp(n);if(o<0){var i=t;t=n,n=i}else if(0===o||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,o=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var i=o,a=n;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],o=0|e.words[n];if(r!==o){r<o?t=-1:r>o&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new j(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function j(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){j.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}y.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},o(b,y),b.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=4194303&o,r=10;r<e.length;r++){var i=0|e.words[r];e.words[r-10]=(4194303&i)<<4|o>>>22,o=i}o>>>=22,e.words[r-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(x,y),o(_,y),o(w,y),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,o=67108863&r;r>>>=26,e.words[n]=o,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new x;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return v[e]=t,t},j.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},j.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},j.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},j.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},j.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},j.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},j.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},j.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},j.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},j.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},j.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},j.prototype.isqr=function(e){return this.imul(e,e.clone())},j.prototype.sqr=function(e){return this.mul(e,e)},j.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);r(!o.isZero());var s=new i(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<p);var v=this.pow(d,new i(1).iushln(p-g-1));f=f.redMul(v),d=v.redSqr(),h=h.redMul(d),p=g}return f},j.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},j.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=l-1;u>=0;u--){var d=c>>u&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===r&&0===u)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},j.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},j.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},o(k,j),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},6204:function(e){"use strict";e.exports=function(e){var t,n,r,o=e.length,i=0;for(t=0;t<o;++t)i+=e[t].length;var a=new Array(i),s=0;for(t=0;t<o;++t){var l=e[t],c=l.length;for(n=0;n<c;++n){var u=a[s++]=new Array(c-1),d=0;for(r=0;r<c;++r)r!==n&&(u[d++]=l[r]);if(1&n){var f=u[1];u[1]=u[0],u[0]=f}}}return a}},6867:function(e,t,n){"use strict";e.exports=function(e,t,n){switch(arguments.length){case 1:return d(e);case 2:return"function"==typeof t?c(e,e,t,!0):f(e,t);case 3:return c(e,t,n,!1);default:throw new Error("box-intersect: Invalid arguments")}};var r,o=n(1888),i=n(855),a=n(7150);function s(e,t){for(var n=0;n<e;++n)if(!(t[n]<=t[n+e]))return!0;return!1}function l(e,t,n,r){for(var o=0,i=0,a=0,l=e.length;a<l;++a){var c=e[a];if(!s(t,c)){for(var u=0;u<2*t;++u)n[o++]=c[u];r[i++]=a}}return i}function c(e,t,n,r){var s=e.length,c=t.length;if(!(s<=0||c<=0)){var u=e[0].length>>>1;if(!(u<=0)){var d,f=o.mallocDouble(2*u*s),h=o.mallocInt32(s);if((s=l(e,u,f,h))>0){if(1===u&&r)i.init(s),d=i.sweepComplete(u,n,0,s,f,h,0,s,f,h);else{var p=o.mallocDouble(2*u*c),m=o.mallocInt32(c);(c=l(t,u,p,m))>0&&(i.init(s+c),d=1===u?i.sweepBipartite(u,n,0,s,f,h,0,c,p,m):a(u,n,r,s,f,h,c,p,m),o.free(p),o.free(m))}o.free(f),o.free(h)}return d}}}function u(e,t){r.push([e,t])}function d(e){return r=[],c(e,e,u,!0),r}function f(e,t){return r=[],c(e,t,u,!1),r}},2455:function(e,t){"use strict";function n(e){return e?function(e,t,n,r,o,i,a,s,l,c,u){return o-r>l-s?function(e,t,n,r,o,i,a,s,l,c,u){for(var d=2*e,f=r,h=d*r;f<o;++f,h+=d){var p=i[t+h],m=i[t+h+e],g=a[f];e:for(var v=s,y=d*s;v<l;++v,y+=d){var b=c[t+y],x=c[t+y+e],_=u[v];if(!(x<p||m<b)){for(var w=t+1;w<e;++w){var j=i[w+h],k=i[w+e+h],T=c[w+y],A=c[w+e+y];if(k<T||A<j)continue e}var M=n(g,_);if(void 0!==M)return M}}}}(e,t,n,r,o,i,a,s,l,c,u):function(e,t,n,r,o,i,a,s,l,c,u){for(var d=2*e,f=s,h=d*s;f<l;++f,h+=d){var p=c[t+h],m=c[t+h+e],g=u[f];e:for(var v=r,y=d*r;v<o;++v,y+=d){var b=i[t+y],x=i[t+y+e],_=a[v];if(!(m<b||x<p)){for(var w=t+1;w<e;++w){var j=i[w+y],k=i[w+e+y],T=c[w+h],A=c[w+e+h];if(k<T||A<j)continue e}var M=n(_,g);if(void 0!==M)return M}}}}(e,t,n,r,o,i,a,s,l,c,u)}:function(e,t,n,r,o,i,a,s,l,c,u,d){return i-o>c-l?r?function(e,t,n,r,o,i,a,s,l,c,u){for(var d=2*e,f=r,h=d*r;f<o;++f,h+=d){var p=i[t+h],m=i[t+h+e],g=a[f];e:for(var v=s,y=d*s;v<l;++v,y+=d){var b=c[t+y],x=u[v];if(!(b<=p||m<b)){for(var _=t+1;_<e;++_){var w=i[_+h],j=i[_+e+h],k=c[_+y],T=c[_+e+y];if(j<k||T<w)continue e}var A=n(x,g);if(void 0!==A)return A}}}}(e,t,n,o,i,a,s,l,c,u,d):function(e,t,n,r,o,i,a,s,l,c,u){for(var d=2*e,f=r,h=d*r;f<o;++f,h+=d){var p=i[t+h],m=i[t+h+e],g=a[f];e:for(var v=s,y=d*s;v<l;++v,y+=d){var b=c[t+y],x=u[v];if(!(b<p||m<b)){for(var _=t+1;_<e;++_){var w=i[_+h],j=i[_+e+h],k=c[_+y],T=c[_+e+y];if(j<k||T<w)continue e}var A=n(g,x);if(void 0!==A)return A}}}}(e,t,n,o,i,a,s,l,c,u,d):r?function(e,t,n,r,o,i,a,s,l,c,u){for(var d=2*e,f=s,h=d*s;f<l;++f,h+=d){var p=c[t+h],m=u[f];e:for(var g=r,v=d*r;g<o;++g,v+=d){var y=i[t+v],b=i[t+v+e],x=a[g];if(!(p<=y||b<p)){for(var _=t+1;_<e;++_){var w=i[_+v],j=i[_+e+v],k=c[_+h],T=c[_+e+h];if(j<k||T<w)continue e}var A=n(m,x);if(void 0!==A)return A}}}}(e,t,n,o,i,a,s,l,c,u,d):function(e,t,n,r,o,i,a,s,l,c,u){for(var d=2*e,f=s,h=d*s;f<l;++f,h+=d){var p=c[t+h],m=u[f];e:for(var g=r,v=d*r;g<o;++g,v+=d){var y=i[t+v],b=i[t+v+e],x=a[g];if(!(p<y||b<p)){for(var _=t+1;_<e;++_){var w=i[_+v],j=i[_+e+v],k=c[_+h],T=c[_+e+h];if(j<k||T<w)continue e}var A=n(x,m);if(void 0!==A)return A}}}}(e,t,n,o,i,a,s,l,c,u,d)}}t.partial=n(!1),t.full=n(!0)},7150:function(e,t,n){"use strict";e.exports=function(e,t,n,i,u,w,j,k,T){!function(e,t){var n=8*o.log2(t+1)*(e+1)|0,i=o.nextPow2(6*n);v.length<i&&(r.free(v),v=r.mallocInt32(i));var a=o.nextPow2(2*n);y.length<a&&(r.free(y),y=r.mallocDouble(a))}(e,i+j);var A,M=0,S=2*e;b(M++,0,0,i,0,j,n?16:0,-1/0,1/0),n||b(M++,0,0,j,0,i,1,-1/0,1/0);for(;M>0;){var C=6*(M-=1),E=v[C],L=v[C+1],O=v[C+2],R=v[C+3],I=v[C+4],P=v[C+5],D=2*M,z=y[D],N=y[D+1],F=1&P,B=!!(16&P),U=u,H=w,V=k,G=T;if(F&&(U=k,H=T,V=u,G=w),!(2&P&&(O=h(e,E,L,O,U,H,N),L>=O)||4&P&&(L=p(e,E,L,O,U,H,z))>=O)){var q=O-L,W=I-R;if(B){if(e*q*(q+W)<1<<22){if(void 0!==(A=l.scanComplete(e,E,t,L,O,U,H,R,I,V,G)))return A;continue}}else{if(e*Math.min(q,W)<128){if(void 0!==(A=a(e,E,t,F,L,O,U,H,R,I,V,G)))return A;continue}if(e*q*W<1<<22){if(void 0!==(A=l.scanBipartite(e,E,t,F,L,O,U,H,R,I,V,G)))return A;continue}}var Y=d(e,E,L,O,U,H,z,N);if(L<Y)if(e*(Y-L)<128){if(void 0!==(A=s(e,E+1,t,L,Y,U,H,R,I,V,G)))return A}else if(E===e-2){if(void 0!==(A=F?l.sweepBipartite(e,t,R,I,V,G,L,Y,U,H):l.sweepBipartite(e,t,L,Y,U,H,R,I,V,G)))return A}else b(M++,E+1,L,Y,R,I,F,-1/0,1/0),b(M++,E+1,R,I,L,Y,1^F,-1/0,1/0);if(Y<O){var X=c(e,E,R,I,V,G),Z=V[S*X+E],$=f(e,E,X,I,V,G,Z);if($<I&&b(M++,E,Y,O,$,I,(4|F)+(B?16:0),Z,N),R<X&&b(M++,E,Y,O,R,X,(2|F)+(B?16:0),z,Z),X+1===$){if(void 0!==(A=B?_(e,E,t,Y,O,U,H,X,V,G[X]):x(e,E,t,F,Y,O,U,H,X,V,G[X])))return A}else if(X<$){var K;if(B){if(K=m(e,E,Y,O,U,H,Z),Y<K){var J=f(e,E,Y,K,U,H,Z);if(E===e-2){if(Y<J&&void 0!==(A=l.sweepComplete(e,t,Y,J,U,H,X,$,V,G)))return A;if(J<K&&void 0!==(A=l.sweepBipartite(e,t,J,K,U,H,X,$,V,G)))return A}else Y<J&&b(M++,E+1,Y,J,X,$,16,-1/0,1/0),J<K&&(b(M++,E+1,J,K,X,$,0,-1/0,1/0),b(M++,E+1,X,$,J,K,1,-1/0,1/0))}}else K=F?g(e,E,Y,O,U,H,Z):m(e,E,Y,O,U,H,Z),Y<K&&(E===e-2?A=F?l.sweepBipartite(e,t,X,$,V,G,Y,K,U,H):l.sweepBipartite(e,t,Y,K,U,H,X,$,V,G):(b(M++,E+1,Y,K,X,$,F,-1/0,1/0),b(M++,E+1,X,$,Y,K,1^F,-1/0,1/0)))}}}}};var r=n(1888),o=n(8828),i=n(2455),a=i.partial,s=i.full,l=n(855),c=n(3545),u=n(8105),d=u("!(lo>=p0)&&!(p1>=hi)"),f=u("lo===p0"),h=u("lo<p0"),p=u("hi<=p0"),m=u("lo<=p0&&p0<=hi"),g=u("lo<p0&&p0<=hi"),v=r.mallocInt32(1024),y=r.mallocDouble(1024);function b(e,t,n,r,o,i,a,s,l){var c=6*e;v[c]=t,v[c+1]=n,v[c+2]=r,v[c+3]=o,v[c+4]=i,v[c+5]=a;var u=2*e;y[u]=s,y[u+1]=l}function x(e,t,n,r,o,i,a,s,l,c,u){var d=2*e,f=l*d,h=c[f+t];e:for(var p=o,m=o*d;p<i;++p,m+=d){var g=a[m+t],v=a[m+t+e];if(!(h<g||v<h)&&(!r||h!==g)){for(var y,b=s[p],x=t+1;x<e;++x){g=a[m+x],v=a[m+x+e];var _=c[f+x],w=c[f+x+e];if(v<_||w<g)continue e}if(void 0!==(y=r?n(u,b):n(b,u)))return y}}}function _(e,t,n,r,o,i,a,s,l,c){var u=2*e,d=s*u,f=l[d+t];e:for(var h=r,p=r*u;h<o;++h,p+=u){var m=a[h];if(m!==c){var g=i[p+t],v=i[p+t+e];if(!(f<g||v<f)){for(var y=t+1;y<e;++y){g=i[p+y],v=i[p+y+e];var b=l[d+y],x=l[d+y+e];if(v<b||x<g)continue e}var _=n(m,c);if(void 0!==_)return _}}}}},3545:function(e,t,n){"use strict";e.exports=function(e,t,n,i,a,s){if(i<=n+1)return n;var l=n,c=i,u=i+n>>>1,d=2*e,f=u,h=a[d*u+t];for(;l<c;){if(c-l<8){o(e,t,l,c,a,s),h=a[d*u+t];break}var p=c-l,m=Math.random()*p+l|0,g=a[d*m+t],v=Math.random()*p+l|0,y=a[d*v+t],b=Math.random()*p+l|0,x=a[d*b+t];g<=y?x>=y?(f=v,h=y):g>=x?(f=m,h=g):(f=b,h=x):y>=x?(f=v,h=y):x>=g?(f=m,h=g):(f=b,h=x);for(var _=d*(c-1),w=d*f,j=0;j<d;++j,++_,++w){var k=a[_];a[_]=a[w],a[w]=k}var T=s[c-1];s[c-1]=s[f],s[f]=T,f=r(e,t,l,c-1,a,s,h);for(_=d*(c-1),w=d*f,j=0;j<d;++j,++_,++w){k=a[_];a[_]=a[w],a[w]=k}T=s[c-1];if(s[c-1]=s[f],s[f]=T,u<f){for(c=f-1;l<c&&a[d*(c-1)+t]===h;)c-=1;c+=1}else{if(!(f<u))break;for(l=f+1;l<c&&a[d*l+t]===h;)l+=1}}return r(e,t,n,u,a,s,a[d*u+t])};var r=n(8105)("lo<p0");function o(e,t,n,r,o,i){for(var a=2*e,s=a*(n+1)+t,l=n+1;l<r;++l,s+=a)for(var c=o[s],u=l,d=a*(l-1);u>n&&o[d+t]>c;--u,d-=a){for(var f=d,h=d+a,p=0;p<a;++p,++f,++h){var m=o[f];o[f]=o[h],o[h]=m}var g=i[u];i[u]=i[u-1],i[u-1]=g}}},8105:function(e){"use strict";e.exports=function(e){return t[e]};var t={"lo===p0":function(e,t,n,r,o,i,a){for(var s=2*e,l=s*n,c=l,u=n,d=t,f=n;r>f;++f,l+=s){if(o[l+d]===a)if(u===f)u+=1,c+=s;else{for(var h=0;s>h;++h){var p=o[l+h];o[l+h]=o[c],o[c++]=p}var m=i[f];i[f]=i[u],i[u++]=m}}return u},"lo<p0":function(e,t,n,r,o,i,a){for(var s=2*e,l=s*n,c=l,u=n,d=t,f=n;r>f;++f,l+=s){if(o[l+d]<a)if(u===f)u+=1,c+=s;else{for(var h=0;s>h;++h){var p=o[l+h];o[l+h]=o[c],o[c++]=p}var m=i[f];i[f]=i[u],i[u++]=m}}return u},"lo<=p0":function(e,t,n,r,o,i,a){for(var s=2*e,l=s*n,c=l,u=n,d=e+t,f=n;r>f;++f,l+=s){if(o[l+d]<=a)if(u===f)u+=1,c+=s;else{for(var h=0;s>h;++h){var p=o[l+h];o[l+h]=o[c],o[c++]=p}var m=i[f];i[f]=i[u],i[u++]=m}}return u},"hi<=p0":function(e,t,n,r,o,i,a){for(var s=2*e,l=s*n,c=l,u=n,d=e+t,f=n;r>f;++f,l+=s){if(o[l+d]<=a)if(u===f)u+=1,c+=s;else{for(var h=0;s>h;++h){var p=o[l+h];o[l+h]=o[c],o[c++]=p}var m=i[f];i[f]=i[u],i[u++]=m}}return u},"lo<p0&&p0<=hi":function(e,t,n,r,o,i,a){for(var s=2*e,l=s*n,c=l,u=n,d=t,f=e+t,h=n;r>h;++h,l+=s){var p=o[l+d],m=o[l+f];if(p<a&&a<=m)if(u===h)u+=1,c+=s;else{for(var g=0;s>g;++g){var v=o[l+g];o[l+g]=o[c],o[c++]=v}var y=i[h];i[h]=i[u],i[u++]=y}}return u},"lo<=p0&&p0<=hi":function(e,t,n,r,o,i,a){for(var s=2*e,l=s*n,c=l,u=n,d=t,f=e+t,h=n;r>h;++h,l+=s){var p=o[l+d],m=o[l+f];if(p<=a&&a<=m)if(u===h)u+=1,c+=s;else{for(var g=0;s>g;++g){var v=o[l+g];o[l+g]=o[c],o[c++]=v}var y=i[h];i[h]=i[u],i[u++]=y}}return u},"!(lo>=p0)&&!(p1>=hi)":function(e,t,n,r,o,i,a,s){for(var l=2*e,c=l*n,u=c,d=n,f=t,h=e+t,p=n;r>p;++p,c+=l){var m=o[c+f],g=o[c+h];if(!(m>=a||s>=g))if(d===p)d+=1,u+=l;else{for(var v=0;l>v;++v){var y=o[c+v];o[c+v]=o[u],o[u++]=y}var b=i[p];i[p]=i[d],i[d++]=b}}return d}}},1811:function(e){"use strict";e.exports=function(e,l){l<=128?t(0,l-1,e):function e(l,c,u){var d=(c-l+1)/6|0,f=l+d,h=c-d,p=l+c>>1,m=p-d,g=p+d,v=f,y=m,b=p,x=g,_=h,w=l+1,j=c-1,k=0;a(v,y,u)&&(k=v,v=y,y=k);a(x,_,u)&&(k=x,x=_,_=k);a(v,b,u)&&(k=v,v=b,b=k);a(y,b,u)&&(k=y,y=b,b=k);a(v,x,u)&&(k=v,v=x,x=k);a(b,x,u)&&(k=b,b=x,x=k);a(y,_,u)&&(k=y,y=_,_=k);a(y,b,u)&&(k=y,y=b,b=k);a(x,_,u)&&(k=x,x=_,_=k);for(var T=u[2*y],A=u[2*y+1],M=u[2*x],S=u[2*x+1],C=2*v,E=2*b,L=2*_,O=2*f,R=2*p,I=2*h,P=0;P<2;++P){var D=u[C+P],z=u[E+P],N=u[L+P];u[O+P]=D,u[R+P]=z,u[I+P]=N}r(m,l,u),r(g,c,u);for(var F=w;F<=j;++F)if(s(F,T,A,u))F!==w&&n(F,w,u),++w;else if(!s(F,M,S,u))for(;;){if(s(j,M,S,u)){s(j,T,A,u)?(o(F,w,j,u),++w,--j):(n(F,j,u),--j);break}if(--j<F)break}i(l,w-1,T,A,u),i(c,j+1,M,S,u),w-2-l<=32?t(l,w-2,u):e(l,w-2,u);c-(j+2)<=32?t(j+2,c,u):e(j+2,c,u);j-w<=32?t(w,j,u):e(w,j,u)}(0,l-1,e)};function t(e,t,n){for(var r=2*(e+1),o=e+1;o<=t;++o){for(var i=n[r++],a=n[r++],s=o,l=r-2;s-- >e;){var c=n[l-2],u=n[l-1];if(c<i)break;if(c===i&&u<a)break;n[l]=c,n[l+1]=u,l-=2}n[l]=i,n[l+1]=a}}function n(e,t,n){t*=2;var r=n[e*=2],o=n[e+1];n[e]=n[t],n[e+1]=n[t+1],n[t]=r,n[t+1]=o}function r(e,t,n){t*=2,n[e*=2]=n[t],n[e+1]=n[t+1]}function o(e,t,n,r){t*=2,n*=2;var o=r[e*=2],i=r[e+1];r[e]=r[t],r[e+1]=r[t+1],r[t]=r[n],r[t+1]=r[n+1],r[n]=o,r[n+1]=i}function i(e,t,n,r,o){t*=2,o[e*=2]=o[t],o[t]=n,o[e+1]=o[t+1],o[t+1]=r}function a(e,t,n){t*=2;var r=n[e*=2],o=n[t];return!(r<o)&&(r!==o||n[e+1]>n[t+1])}function s(e,t,n,r){var o=r[e*=2];return o<t||o===t&&r[e+1]<n}},855:function(e,t,n){"use strict";e.exports={init:function(e){var t=o.nextPow2(e);a.length<t&&(r.free(a),a=r.mallocInt32(t));s.length<t&&(r.free(s),s=r.mallocInt32(t));l.length<t&&(r.free(l),l=r.mallocInt32(t));c.length<t&&(r.free(c),c=r.mallocInt32(t));u.length<t&&(r.free(u),u=r.mallocInt32(t));d.length<t&&(r.free(d),d=r.mallocInt32(t));var n=8*t;f.length<n&&(r.free(f),f=r.mallocDouble(n))},sweepBipartite:function(e,t,n,r,o,u,d,m,g,v){for(var y=0,b=2*e,x=e-1,_=b-1,w=n;w<r;++w){var j=u[w],k=b*w;f[y++]=o[k+x],f[y++]=-(j+1),f[y++]=o[k+_],f[y++]=j}for(w=d;w<m;++w){j=v[w]+(1<<28);var T=b*w;f[y++]=g[T+x],f[y++]=-j,f[y++]=g[T+_],f[y++]=j}var A=y>>>1;i(f,A);var M=0,S=0;for(w=0;w<A;++w){var C=0|f[2*w+1];if(C>=1<<28)h(l,c,S--,C=C-(1<<28)|0);else if(C>=0)h(a,s,M--,C);else if(C<=-(1<<28)){C=-C-(1<<28)|0;for(var E=0;E<M;++E){if(void 0!==(L=t(a[E],C)))return L}p(l,c,S++,C)}else{C=-C-1|0;for(E=0;E<S;++E){var L;if(void 0!==(L=t(C,l[E])))return L}p(a,s,M++,C)}}},sweepComplete:function(e,t,n,r,o,m,g,v,y,b){for(var x=0,_=2*e,w=e-1,j=_-1,k=n;k<r;++k){var T=m[k]+1<<1,A=_*k;f[x++]=o[A+w],f[x++]=-T,f[x++]=o[A+j],f[x++]=T}for(k=g;k<v;++k){T=b[k]+1<<1;var M=_*k;f[x++]=y[M+w],f[x++]=1|-T,f[x++]=y[M+j],f[x++]=1|T}var S=x>>>1;i(f,S);var C=0,E=0,L=0;for(k=0;k<S;++k){var O=0|f[2*k+1],R=1&O;if(k<S-1&&O>>1==f[2*k+3]>>1&&(R=2,k+=1),O<0){for(var I=-(O>>1)-1,P=0;P<L;++P){if(void 0!==(D=t(u[P],I)))return D}if(0!==R)for(P=0;P<C;++P){if(void 0!==(D=t(a[P],I)))return D}if(1!==R)for(P=0;P<E;++P){var D;if(void 0!==(D=t(l[P],I)))return D}0===R?p(a,s,C++,I):1===R?p(l,c,E++,I):2===R&&p(u,d,L++,I)}else{I=(O>>1)-1;0===R?h(a,s,C--,I):1===R?h(l,c,E--,I):2===R&&h(u,d,L--,I)}}},scanBipartite:function(e,t,n,r,o,l,c,u,d,m,g,v){var y=0,b=2*e,x=t,_=t+e,w=1,j=1;r?j=1<<28:w=1<<28;for(var k=o;k<l;++k){var T=k+w,A=b*k;f[y++]=c[A+x],f[y++]=-T,f[y++]=c[A+_],f[y++]=T}for(k=d;k<m;++k){T=k+j;var M=b*k;f[y++]=g[M+x],f[y++]=-T}var S=y>>>1;i(f,S);var C=0;for(k=0;k<S;++k){var E=0|f[2*k+1];if(E<0){var L=!1;if((T=-E)>=1<<28?(L=!r,T-=1<<28):(L=!!r,T-=1),L)p(a,s,C++,T);else{var O=v[T],R=b*T,I=g[R+t+1],P=g[R+t+1+e];e:for(var D=0;D<C;++D){var z=a[D],N=b*z;if(!(P<c[N+t+1]||c[N+t+1+e]<I)){for(var F=t+2;F<e;++F)if(g[R+F+e]<c[N+F]||c[N+F+e]<g[R+F])continue e;var B,U=u[z];if(void 0!==(B=r?n(O,U):n(U,O)))return B}}}}else h(a,s,C--,E-w)}},scanComplete:function(e,t,n,r,o,s,l,c,u,d,h){for(var p=0,m=2*e,g=t,v=t+e,y=r;y<o;++y){var b=y+(1<<28),x=m*y;f[p++]=s[x+g],f[p++]=-b,f[p++]=s[x+v],f[p++]=b}for(y=c;y<u;++y){b=y+1;var _=m*y;f[p++]=d[_+g],f[p++]=-b}var w=p>>>1;i(f,w);var j=0;for(y=0;y<w;++y){var k=0|f[2*y+1];if(k<0){if((b=-k)>=1<<28)a[j++]=b-(1<<28);else{var T=h[b-=1],A=m*b,M=d[A+t+1],S=d[A+t+1+e];e:for(var C=0;C<j;++C){var E=a[C],L=l[E];if(L===T)break;var O=m*E;if(!(S<s[O+t+1]||s[O+t+1+e]<M)){for(var R=t+2;R<e;++R)if(d[A+R+e]<s[O+R]||s[O+R+e]<d[A+R])continue e;var I=n(L,T);if(void 0!==I)return I}}}}else{for(b=k-(1<<28),C=j-1;C>=0;--C)if(a[C]===b){for(R=C+1;R<j;++R)a[R-1]=a[R];break}--j}}}};var r=n(1888),o=n(8828),i=n(1811),a=r.mallocInt32(1024),s=r.mallocInt32(1024),l=r.mallocInt32(1024),c=r.mallocInt32(1024),u=r.mallocInt32(1024),d=r.mallocInt32(1024),f=r.mallocDouble(8192);function h(e,t,n,r){var o=t[r],i=e[n-1];e[o]=i,t[i]=o}function p(e,t,n,r){e[n]=r,t[r]=n}},2538:function(e,t,n){"use strict";var r=n(8902),o=n(5542),i=n(2272),a=n(5023);function s(e){return[Math.min(e[0],e[1]),Math.max(e[0],e[1])]}function l(e,t){return e[0]-t[0]||e[1]-t[1]}function c(e,t,n){return t in e?e[t]:n}e.exports=function(e,t,n){Array.isArray(t)?(n=n||{},t=t||[]):(n=t||{},t=[]);var u=!!c(n,"delaunay",!0),d=!!c(n,"interior",!0),f=!!c(n,"exterior",!0),h=!!c(n,"infinity",!1);if(!d&&!f||0===e.length)return[];var p=r(e,t);if(u||d!==f||h){for(var m=o(e.length,function(e){return e.map(s).sort(l)}(t)),g=0;g<p.length;++g){var v=p[g];m.addTriangle(v[0],v[1],v[2])}return u&&i(e,m),f?d?h?a(m,0,h):m.cells():a(m,1,h):a(m,-1)}return p}},2272:function(e,t,n){"use strict";var r=n(2646)[4];n(2478);function o(e,t,n,o,i,a){var s=t.opposite(o,i);if(!(s<0)){if(i<o){var l=o;o=i,i=l,l=a,a=s,s=l}t.isConstraint(o,i)||r(e[o],e[i],e[a],e[s])<0&&n.push(o,i)}}e.exports=function(e,t){for(var n=[],i=e.length,a=t.stars,s=0;s<i;++s)for(var l=a[s],c=1;c<l.length;c+=2){if(!((h=l[c])<s)&&!t.isConstraint(s,h)){for(var u=l[c-1],d=-1,f=1;f<l.length;f+=2)if(l[f-1]===h){d=l[f];break}d<0||r(e[s],e[h],e[u],e[d])<0&&n.push(s,h)}}for(;n.length>0;){for(var h=n.pop(),p=(s=n.pop(),u=-1,d=-1,l=a[s],1);p<l.length;p+=2){var m=l[p-1],g=l[p];m===h?d=g:g===h&&(u=m)}u<0||d<0||(r(e[s],e[h],e[u],e[d])>=0||(t.flip(s,h),o(e,t,n,u,s,d),o(e,t,n,s,d,u),o(e,t,n,d,h,u),o(e,t,n,h,u,d)))}}},5023:function(e,t,n){"use strict";var r,o=n(2478);function i(e,t,n,r,o,i,a){this.cells=e,this.neighbor=t,this.flags=r,this.constraint=n,this.active=o,this.next=i,this.boundary=a}function a(e,t){return e[0]-t[0]||e[1]-t[1]||e[2]-t[2]}e.exports=function(e,t,n){var r=function(e,t){for(var n=e.cells(),r=n.length,o=0;o<r;++o){var s=(v=n[o])[0],l=v[1],c=v[2];l<c?l<s&&(v[0]=l,v[1]=c,v[2]=s):c<s&&(v[0]=c,v[1]=s,v[2]=l)}n.sort(a);var u=new Array(r);for(o=0;o<u.length;++o)u[o]=0;var d=[],f=[],h=new Array(3*r),p=new Array(3*r),m=null;t&&(m=[]);var g=new i(n,h,p,u,d,f,m);for(o=0;o<r;++o)for(var v=n[o],y=0;y<3;++y){s=v[y],l=v[(y+1)%3];var b=h[3*o+y]=g.locate(l,s,e.opposite(l,s)),x=p[3*o+y]=e.isConstraint(s,l);b<0&&(x?f.push(o):(d.push(o),u[o]=1),t&&m.push([l,s,-1]))}return g}(e,n);if(0===t)return n?r.cells.concat(r.boundary):r.cells;var o=1,s=r.active,l=r.next,c=r.flags,u=r.cells,d=r.constraint,f=r.neighbor;for(;s.length>0||l.length>0;){for(;s.length>0;){var h=s.pop();if(c[h]!==-o){c[h]=o;u[h];for(var p=0;p<3;++p){var m=f[3*h+p];m>=0&&0===c[m]&&(d[3*h+p]?l.push(m):(s.push(m),c[m]=o))}}}var g=l;l=s,s=g,l.length=0,o=-o}var v=function(e,t,n){for(var r=0,o=0;o<e.length;++o)t[o]===n&&(e[r++]=e[o]);return e.length=r,e}(u,c,t);if(n)return v.concat(r.boundary);return v},i.prototype.locate=(r=[0,0,0],function(e,t,n){var i=e,s=t,l=n;return t<n?t<e&&(i=t,s=n,l=e):n<e&&(i=n,s=e,l=t),i<0?-1:(r[0]=i,r[1]=s,r[2]=l,o.eq(this.cells,r,a))})},8902:function(e,t,n){"use strict";var r=n(2478),o=n(3250)[3];function i(e,t,n,r,o){this.a=e,this.b=t,this.idx=n,this.lowerIds=r,this.upperIds=o}function a(e,t,n,r){this.a=e,this.b=t,this.type=n,this.idx=r}function s(e,t){var n=e.a[0]-t.a[0]||e.a[1]-t.a[1]||e.type-t.type;return n||(0!==e.type&&(n=o(e.a,e.b,t.b))?n:e.idx-t.idx)}function l(e,t){return o(e.a,e.b,t)}function c(e,t,n,i,a){for(var s=r.lt(t,i,l),c=r.gt(t,i,l),u=s;u<c;++u){for(var d=t[u],f=d.lowerIds,h=f.length;h>1&&o(n[f[h-2]],n[f[h-1]],i)>0;)e.push([f[h-1],f[h-2],a]),h-=1;f.length=h,f.push(a);var p=d.upperIds;for(h=p.length;h>1&&o(n[p[h-2]],n[p[h-1]],i)<0;)e.push([p[h-2],p[h-1],a]),h-=1;p.length=h,p.push(a)}}function u(e,t){var n;return(n=e.a[0]<t.a[0]?o(e.a,e.b,t.a):o(t.b,t.a,e.a))?n:(n=t.b[0]<e.b[0]?o(e.a,e.b,t.b):o(t.b,t.a,e.b))||e.idx-t.idx}function d(e,t,n){var o=r.le(e,n,u),a=e[o],s=a.upperIds,l=s[s.length-1];a.upperIds=[l],e.splice(o+1,0,new i(n.a,n.b,n.idx,[l],s))}function f(e,t,n){var o=n.a;n.a=n.b,n.b=o;var i=r.eq(e,n,u),a=e[i];e[i-1].upperIds=a.upperIds,e.splice(i,1)}e.exports=function(e,t){for(var n=e.length,r=t.length,o=[],l=0;l<n;++l)o.push(new a(e[l],null,0,l));for(l=0;l<r;++l){var u=t[l],h=e[u[0]],p=e[u[1]];h[0]<p[0]?o.push(new a(h,p,2,l),new a(p,h,1,l)):h[0]>p[0]&&o.push(new a(p,h,2,l),new a(h,p,1,l))}o.sort(s);for(var m=o[0].a[0]-(1+Math.abs(o[0].a[0]))*Math.pow(2,-52),g=[new i([m,1],[m,0],-1,[],[],[],[])],v=[],y=(l=0,o.length);l<y;++l){var b=o[l],x=b.type;0===x?c(v,g,e,b.a,b.idx):2===x?d(g,e,b):f(g,e,b)}return v}},5542:function(e,t,n){"use strict";var r=n(2478);function o(e,t){this.stars=e,this.edges=t}e.exports=function(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=[];return new o(n,t)};var i=o.prototype;function a(e,t,n){for(var r=1,o=e.length;r<o;r+=2)if(e[r-1]===t&&e[r]===n)return e[r-1]=e[o-2],e[r]=e[o-1],void(e.length=o-2)}i.isConstraint=function(){var e=[0,0];function t(e,t){return e[0]-t[0]||e[1]-t[1]}return function(n,o){return e[0]=Math.min(n,o),e[1]=Math.max(n,o),r.eq(this.edges,e,t)>=0}}(),i.removeTriangle=function(e,t,n){var r=this.stars;a(r[e],t,n),a(r[t],n,e),a(r[n],e,t)},i.addTriangle=function(e,t,n){var r=this.stars;r[e].push(t,n),r[t].push(n,e),r[n].push(e,t)},i.opposite=function(e,t){for(var n=this.stars[t],r=1,o=n.length;r<o;r+=2)if(n[r]===e)return n[r-1];return-1},i.flip=function(e,t){var n=this.opposite(e,t),r=this.opposite(t,e);this.removeTriangle(e,t,n),this.removeTriangle(t,e,r),this.addTriangle(e,r,n),this.addTriangle(t,n,r)},i.edges=function(){for(var e=this.stars,t=[],n=0,r=e.length;n<r;++n)for(var o=e[n],i=0,a=o.length;i<a;i+=2)t.push([o[i],o[i+1]]);return t},i.cells=function(){for(var e=this.stars,t=[],n=0,r=e.length;n<r;++n)for(var o=e[n],i=0,a=o.length;i<a;i+=2){var s=o[i],l=o[i+1];n<Math.min(s,l)&&t.push([n,s,l])}return t}},2419:function(e){"use strict";e.exports=function(e){for(var t=1,n=1;n<e.length;++n)for(var r=0;r<n;++r)if(e[n]<e[r])t=-t;else if(e[r]===e[n])return 0;return t}},3628:function(e,t,n){"use strict";var r=n(1338),o=n(727);function i(e,t){for(var n=0,r=e.length,o=0;o<r;++o)n+=e[o]*t[o];return n}function a(e){var t=e.length;if(0===t)return[];e[0].length;var n=r([e.length+1,e.length+1],1),a=r([e.length+1],1);n[t][t]=0;for(var s=0;s<t;++s){for(var l=0;l<=s;++l)n[l][s]=n[s][l]=2*i(e[s],e[l]);a[s]=i(e[s],e[s])}var c=o(n,a),u=0,d=c[t+1];for(s=0;s<d.length;++s)u+=d[s];var f=new Array(t);for(s=0;s<t;++s){d=c[s];var h=0;for(l=0;l<d.length;++l)h+=d[l];f[s]=h/u}return f}function s(e){if(0===e.length)return[];for(var t=e[0].length,n=r([t]),o=a(e),i=0;i<e.length;++i)for(var s=0;s<t;++s)n[s]+=e[i][s]*o[i];return n}s.barycenetric=a,e.exports=s},6037:function(e,t,n){e.exports=function(e){for(var t=r(e),n=0,o=0;o<e.length;++o)for(var i=e[o],a=0;a<t.length;++a)n+=Math.pow(i[a]-t[a],2);return Math.sqrt(n/e.length)};var r=n(3628)},332:function(e,t,n){"use strict";e.exports=function(e,t,n){var r;if(n){r=t;for(var o=new Array(t.length),i=0;i<t.length;++i){var a=t[i];o[i]=[a[0],a[1],n[i]]}t=o}var s=function(e,t,n){var r=p(e,[],h(e));return v(t,r,n),!!r}(e,t,!!n);for(;y(e,t,!!n);)s=!0;if(n&&s){r.length=0,n.length=0;for(i=0;i<t.length;++i){a=t[i];r.push([a[0],a[1]]),n.push(a[2])}}return s};var r=n(1755),o=n(6867),i=n(1125),a=n(7842),s=n(1318),l=n(946),c=n(5838),u=n(1278),d=n(3637);function f(e){var t=l(e);return[u(t,-1/0),u(t,1/0)]}function h(e){for(var t=new Array(e.length),n=0;n<e.length;++n){var r=e[n];t[n]=[u(r[0],-1/0),u(r[1],-1/0),u(r[0],1/0),u(r[1],1/0)]}return t}function p(e,t,n){for(var i=t.length,a=new r(i),s=[],l=0;l<t.length;++l){var c=t[l],d=f(c[0]),h=f(c[1]);s.push([u(d[0],-1/0),u(h[0],-1/0),u(d[1],1/0),u(h[1],1/0)])}o(s,(function(e,t){a.link(e,t)}));var p=!0,m=new Array(i);for(l=0;l<i;++l){(v=a.find(l))!==l&&(p=!1,e[v]=[Math.min(e[l][0],e[v][0]),Math.min(e[l][1],e[v][1])])}if(p)return null;var g=0;for(l=0;l<i;++l){var v;(v=a.find(l))===l?(m[l]=g,e[g++]=e[l]):m[l]=-1}e.length=g;for(l=0;l<i;++l)m[l]<0&&(m[l]=m[a.find(l)]);return m}function m(e,t){return e[0]-t[0]||e[1]-t[1]}function g(e,t){var n=e[0]-t[0]||e[1]-t[1];return n||(e[2]<t[2]?-1:e[2]>t[2]?1:0)}function v(e,t,n){if(0!==e.length){if(t)for(var r=0;r<e.length;++r){var o=t[(a=e[r])[0]],i=t[a[1]];a[0]=Math.min(o,i),a[1]=Math.max(o,i)}else for(r=0;r<e.length;++r){var a;o=(a=e[r])[0],i=a[1];a[0]=Math.min(o,i),a[1]=Math.max(o,i)}n?e.sort(g):e.sort(m);var s=1;for(r=1;r<e.length;++r){var l=e[r-1],c=e[r];(c[0]!==l[0]||c[1]!==l[1]||n&&c[2]!==l[2])&&(e[s++]=c)}e.length=s}}function y(e,t,n){var r=function(e,t){for(var n=new Array(t.length),r=0;r<t.length;++r){var o=t[r],i=e[o[0]],a=e[o[1]];n[r]=[u(Math.min(i[0],a[0]),-1/0),u(Math.min(i[1],a[1]),-1/0),u(Math.max(i[0],a[0]),1/0),u(Math.max(i[1],a[1]),1/0)]}return n}(e,t),f=function(e,t,n){var r=[];return o(n,(function(n,o){var a=t[n],s=t[o];if(a[0]!==s[0]&&a[0]!==s[1]&&a[1]!==s[0]&&a[1]!==s[1]){var l=e[a[0]],c=e[a[1]],u=e[s[0]],d=e[s[1]];i(l,c,u,d)&&r.push([n,o])}})),r}(e,t,r),m=h(e),g=function(e,t,n,r){var a=[];return o(n,r,(function(n,r){var o=t[n];if(o[0]!==r&&o[1]!==r){var s=e[r],l=e[o[0]],c=e[o[1]];i(l,c,s,s)&&a.push([n,r])}})),a}(e,t,r,m),y=p(e,function(e,t,n,r,o){var i,u,f=e.map((function(e){return[a(e[0]),a(e[1])]}));for(i=0;i<n.length;++i){var h=n[i];u=h[0];var p=h[1],m=t[u],g=t[p],v=d(c(e[m[0]]),c(e[m[1]]),c(e[g[0]]),c(e[g[1]]));if(v){var y=e.length;e.push([l(v[0]),l(v[1])]),f.push(v),r.push([u,y],[p,y])}}for(r.sort((function(e,t){if(e[0]!==t[0])return e[0]-t[0];var n=f[e[1]],r=f[t[1]];return s(n[0],r[0])||s(n[1],r[1])})),i=r.length-1;i>=0;--i){var b=t[u=(M=r[i])[0]],x=b[0],_=b[1],w=e[x],j=e[_];if((w[0]-j[0]||w[1]-j[1])<0){var k=x;x=_,_=k}b[0]=x;var T,A=b[1]=M[1];for(o&&(T=b[2]);i>0&&r[i-1][0]===u;){var M,S=(M=r[--i])[1];o?t.push([A,S,T]):t.push([A,S]),A=S}o?t.push([A,_,T]):t.push([A,_])}return f}(e,t,f,g,n));return v(t,y,n),!!y||(f.length>0||g.length>0)}},3637:function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i=s(t,e),d=s(r,n),f=u(i,d);if(0===a(f))return null;var h=s(e,n),p=u(d,h),m=o(p,f),g=c(i,m);return l(e,g)};var r=n(6504),o=n(8697),i=n(5572),a=n(7721),s=n(544),l=n(2653),c=n(8987);function u(e,t){return i(r(e[0],t[1]),r(e[1],t[0]))}},3642:function(e){e.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(e,t,n){"use strict";var r=n(3642),o=n(395);function i(e){return[e[0]/255,e[1]/255,e[2]/255,e[3]]}function a(e){for(var t,n="#",r=0;r<3;++r)n+=("00"+(t=(t=e[r]).toString(16))).substr(t.length);return n}function s(e){return"rgba("+e.join(",")+")"}e.exports=function(e){var t,n,l,c,u,d,f,h,p,m;e||(e={});h=(e.nshades||72)-1,f=e.format||"hex",(d=e.colormap)||(d="jet");if("string"==typeof d){if(d=d.toLowerCase(),!r[d])throw Error(d+" not a supported colorscale");u=r[d]}else{if(!Array.isArray(d))throw Error("unsupported colormap option",d);u=d.slice()}if(u.length>h+1)throw new Error(d+" map requires nshades to be at least size "+u.length);p=Array.isArray(e.alpha)?2!==e.alpha.length?[1,1]:e.alpha.slice():"number"==typeof e.alpha?[e.alpha,e.alpha]:[1,1];t=u.map((function(e){return Math.round(e.index*h)})),p[0]=Math.min(Math.max(p[0],0),1),p[1]=Math.min(Math.max(p[1],0),1);var g=u.map((function(e,t){var n=u[t].index,r=u[t].rgb.slice();return 4===r.length&&r[3]>=0&&r[3]<=1||(r[3]=p[0]+(p[1]-p[0])*n),r})),v=[];for(m=0;m<t.length-1;++m){c=t[m+1]-t[m],n=g[m],l=g[m+1];for(var y=0;y<c;y++){var b=y/c;v.push([Math.round(o(n[0],l[0],b)),Math.round(o(n[1],l[1],b)),Math.round(o(n[2],l[2],b)),o(n[3],l[3],b)])}}v.push(u[u.length-1].rgb.concat(p[1])),"hex"===f?v=v.map(a):"rgbaString"===f?v=v.map(s):"float"===f&&(v=v.map(i));return v}},3140:function(e,t,n){"use strict";e.exports=function(e,t,n,i){var a=r(t,n,i);if(0===a){var s=o(r(e,t,n)),c=o(r(e,t,i));if(s===c){if(0===s){var u=l(e,t,n),d=l(e,t,i);return u===d?0:u?1:-1}return 0}return 0===c?s>0||l(e,t,i)?-1:1:0===s?c>0||l(e,t,n)?1:-1:o(c-s)}var f=r(e,t,n);return f>0?a>0&&r(e,t,i)>0?1:-1:f<0?a>0||r(e,t,i)>0?1:-1:r(e,t,i)>0||l(e,t,n)?1:-1};var r=n(3250),o=n(8572),i=n(9362),a=n(5382),s=n(8210);function l(e,t,n){var r=i(e[0],-t[0]),o=i(e[1],-t[1]),l=i(n[0],-t[0]),c=i(n[1],-t[1]),u=s(a(r,l),a(o,c));return u[u.length-1]>=0}},8572:function(e){"use strict";e.exports=function(e){return e<0?-1:e>0?1:0}},8507:function(e){e.exports=function(e,r){var o=e.length,i=e.length-r.length;if(i)return i;switch(o){case 0:return 0;case 1:return e[0]-r[0];case 2:return e[0]+e[1]-r[0]-r[1]||t(e[0],e[1])-t(r[0],r[1]);case 3:var a=e[0]+e[1],s=r[0]+r[1];if(i=a+e[2]-(s+r[2]))return i;var l=t(e[0],e[1]),c=t(r[0],r[1]);return t(l,e[2])-t(c,r[2])||t(l+e[2],a)-t(c+r[2],s);case 4:var u=e[0],d=e[1],f=e[2],h=e[3],p=r[0],m=r[1],g=r[2],v=r[3];return u+d+f+h-(p+m+g+v)||t(u,d,f,h)-t(p,m,g,v,p)||t(u+d,u+f,u+h,d+f,d+h,f+h)-t(p+m,p+g,p+v,m+g,m+v,g+v)||t(u+d+f,u+d+h,u+f+h,d+f+h)-t(p+m+g,p+m+v,p+g+v,m+g+v);default:for(var y=e.slice().sort(n),b=r.slice().sort(n),x=0;x<o;++x)if(i=y[x]-b[x])return i;return 0}};var t=Math.min;function n(e,t){return e-t}},3788:function(e,t,n){"use strict";var r=n(8507),o=n(2419);e.exports=function(e,t){return r(e,t)||o(e)-o(t)}},7352:function(e,t,n){"use strict";var r=n(5721),o=n(4750),i=n(2690);e.exports=function(e){var t=e.length;if(0===t)return[];if(1===t)return[[0]];var n=e[0].length;if(0===n)return[];if(1===n)return r(e);if(2===n)return o(e);return i(e,n)}},5721:function(e){"use strict";e.exports=function(e){for(var t=0,n=0,r=1;r<e.length;++r)e[r][0]<e[t][0]&&(t=r),e[r][0]>e[n][0]&&(n=r);return t<n?[[t],[n]]:t>n?[[n],[t]]:[[t]]}},4750:function(e,t,n){"use strict";e.exports=function(e){var t=r(e),n=t.length;if(n<=2)return[];for(var o=new Array(n),i=t[n-1],a=0;a<n;++a){var s=t[a];o[a]=[i,s],i=s}return o};var r=n(3090)},2690:function(e,t,n){"use strict";e.exports=function(e,t){try{return r(e,!0)}catch(a){var n=o(e);if(n.length<=t)return[];var i=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<t.length;++o)r[o]=e[t[o]];var i=t.length;for(o=0;o<n;++o)t.indexOf(o)<0&&(r[i++]=e[o]);return r}(e,n);return function(e,t){for(var n=e.length,r=t.length,o=0;o<n;++o)for(var i=e[o],a=0;a<i.length;++a){var s=i[a];if(s<r)i[a]=t[s];else{s-=r;for(var l=0;l<r;++l)s>=t[l]&&(s+=1);i[a]=s}}return e}(r(i,!0),n)}};var r=n(8954),o=n(3952)},4769:function(e){"use strict";e.exports=function(e,t,n,r,o,i){var a=o-1,s=o*o,l=a*a,c=(1+2*o)*l,u=o*l,d=s*(3-2*o),f=s*a;if(e.length){i||(i=new Array(e.length));for(var h=e.length-1;h>=0;--h)i[h]=c*e[h]+u*t[h]+d*n[h]+f*r[h];return i}return c*e+u*t+d*n+f*r},e.exports.derivative=function(e,t,n,r,o,i){var a=6*o*o-6*o,s=3*o*o-4*o+1,l=-6*o*o+6*o,c=3*o*o-2*o;if(e.length){i||(i=new Array(e.length));for(var u=e.length-1;u>=0;--u)i[u]=a*e[u]+s*t[u]+l*n[u]+c*r[u];return i}return a*e+s*t+l*n[u]+c*r}},7642:function(e,t,n){"use strict";var r=n(8954),o=n(1682);function i(e,t){this.point=e,this.index=t}function a(e,t){for(var n=e.point,r=t.point,o=n.length,i=0;i<o;++i){var a=r[i]-n[i];if(a)return a}return 0}e.exports=function(e,t){var n=e.length;if(0===n)return[];var s=e[0].length;if(s<1)return[];if(1===s)return function(e,t,n){if(1===e)return n?[[-1,0]]:[];var r=t.map((function(e,t){return[e[0],t]}));r.sort((function(e,t){return e[0]-t[0]}));for(var o=new Array(e-1),i=1;i<e;++i){var a=r[i-1],s=r[i];o[i-1]=[a[1],s[1]]}n&&o.push([-1,o[0][1]],[o[e-1][1],-1]);return o}(n,e,t);for(var l=new Array(n),c=1,u=0;u<n;++u){for(var d=e[u],f=new Array(s+1),h=0,p=0;p<s;++p){var m=d[p];f[p]=m,h+=m*m}f[s]=h,l[u]=new i(f,u),c=Math.max(h,c)}o(l,a),n=l.length;var g=new Array(n+s+1),v=new Array(n+s+1),y=(s+1)*(s+1)*c,b=new Array(s+1);for(u=0;u<=s;++u)b[u]=0;b[s]=y,g[0]=b.slice(),v[0]=-1;for(u=0;u<=s;++u){(f=b.slice())[u]=1,g[u+1]=f,v[u+1]=-1}for(u=0;u<n;++u){var x=l[u];g[u+s+1]=x.point,v[u+s+1]=x.index}var _=r(g,!1);_=t?_.filter((function(e){for(var t=0,n=0;n<=s;++n){var r=v[e[n]];if(r<0&&++t>=2)return!1;e[n]=r}return!0})):_.filter((function(e){for(var t=0;t<=s;++t){var n=v[e[t]];if(n<0)return!1;e[t]=n}return!0}));if(1&s)for(u=0;u<_.length;++u){f=(x=_[u])[0];x[0]=x[1],x[1]=f}return _}},2361:function(e){var n=!1;if("undefined"!=typeof Float64Array){var r=new Float64Array(1),o=new Uint32Array(r.buffer);if(r[0]=1,n=!0,1072693248===o[1]){e.exports=function(e){return r[0]=e,[o[0],o[1]]},e.exports.pack=function(e,t){return o[0]=e,o[1]=t,r[0]},e.exports.lo=function(e){return r[0]=e,o[0]},e.exports.hi=function(e){return r[0]=e,o[1]}}else if(1072693248===o[0]){e.exports=function(e){return r[0]=e,[o[1],o[0]]},e.exports.pack=function(e,t){return o[1]=e,o[0]=t,r[0]},e.exports.lo=function(e){return r[0]=e,o[1]},e.exports.hi=function(e){return r[0]=e,o[0]}}else n=!1}if(!n){var i=new t(8);e.exports=function(e){return i.writeDoubleLE(e,0,!0),[i.readUInt32LE(0,!0),i.readUInt32LE(4,!0)]},e.exports.pack=function(e,t){return i.writeUInt32LE(e,0,!0),i.writeUInt32LE(t,4,!0),i.readDoubleLE(0,!0)},e.exports.lo=function(e){return i.writeDoubleLE(e,0,!0),i.readUInt32LE(0,!0)},e.exports.hi=function(e){return i.writeDoubleLE(e,0,!0),i.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)>>>31},e.exports.exponent=function(t){return(e.exports.hi(t)<<1>>>21)-1023},e.exports.fraction=function(t){var n=e.exports.lo(t),r=e.exports.hi(t),o=1048575&r;return 2146435072&r&&(o+=1<<20),[n,o]},e.exports.denormalized=function(t){return!(2146435072&e.exports.hi(t))}},1338:function(e){"use strict";e.exports=function(e,t){switch(void 0===t&&(t=0),typeof e){case"number":if(e>0)return function(e,t){var n,r;for(n=new Array(e),r=0;r<e;++r)n[r]=t;return n}(0|e,t);break;case"object":if("number"==typeof e.length)return function e(t,n,r){var o=0|t[r];if(o<=0)return[];var i,a=new Array(o);if(r===t.length-1)for(i=0;i<o;++i)a[i]=n;else for(i=0;i<o;++i)a[i]=e(t,n,r+1);return a}(e,t,0)}return[]}},3134:function(e,t,n){"use strict";e.exports=function(e,t){var n=e.length;if("number"!=typeof t){t=0;for(var o=0;o<n;++o){var i=e[o];t=Math.max(t,i[0],i[1])}t=1+(0|t)}t|=0;var a=new Array(t);for(o=0;o<t;++o)a[o]=[];for(o=0;o<n;++o){i=e[o];a[i[0]].push(i[1]),a[i[1]].push(i[0])}for(var s=0;s<t;++s)r(a[s],(function(e,t){return e-t}));return a};var r=n(1682)},5033:function(e){"use strict";e.exports=function(e,t,n){var r=t||0,o=n||1;return[[e[12]+e[0],e[13]+e[1],e[14]+e[2],e[15]+e[3]],[e[12]-e[0],e[13]-e[1],e[14]-e[2],e[15]-e[3]],[e[12]+e[4],e[13]+e[5],e[14]+e[6],e[15]+e[7]],[e[12]-e[4],e[13]-e[5],e[14]-e[6],e[15]-e[7]],[r*e[12]+e[8],r*e[13]+e[9],r*e[14]+e[10],r*e[15]+e[11]],[o*e[12]-e[8],o*e[13]-e[9],o*e[14]-e[10],o*e[15]-e[11]]]}},9215:function(e,t,n){"use strict";e.exports=function(e,t,n){switch(arguments.length){case 0:return new a([0],[0],0);case 1:return"number"==typeof e?new a(r=l(e),r,0):new a(e,l(e.length),0);case 2:if("number"==typeof t){var r=l(e.length);return new a(e,r,+t)}n=0;case 3:if(e.length!==t.length)throw new Error("state and velocity lengths must match");return new a(e,t,n)}};var r=n(4769),o=n(2478);function i(e,t,n){return Math.min(t,Math.max(e,n))}function a(e,t,n){this.dimension=e.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var r=0;r<this.dimension;++r)this.bounds[0][r]=-1/0,this.bounds[1][r]=1/0;this._state=e.slice().reverse(),this._velocity=t.slice().reverse(),this._time=[n],this._scratch=[e.slice(),e.slice(),e.slice(),e.slice(),e.slice()]}var s=a.prototype;function l(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}s.flush=function(e){var t=o.gt(this._time,e)-1;t<=0||(this._time.splice(0,t),this._state.splice(0,t*this.dimension),this._velocity.splice(0,t*this.dimension))},s.curve=function(e){var t=this._time,n=t.length,a=o.le(t,e),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,d=this.bounds;if(a<0)for(var f=u-1,h=0;h<u;++h,--f)s[h]=l[f];else if(a>=n-1){f=l.length-1;var p=e-t[n-1];for(h=0;h<u;++h,--f)s[h]=l[f]+p*c[f]}else{f=u*(a+1)-1;var m=t[a],g=t[a+1]-m||1,v=this._scratch[1],y=this._scratch[2],b=this._scratch[3],x=this._scratch[4],_=!0;for(h=0;h<u;++h,--f)v[h]=l[f],b[h]=c[f]*g,y[h]=l[f+u],x[h]=c[f+u]*g,_=_&&v[h]===y[h]&&b[h]===x[h]&&0===b[h];if(_)for(h=0;h<u;++h)s[h]=v[h];else r(v,b,y,x,(e-m)/g,s)}var w=d[0],j=d[1];for(h=0;h<u;++h)s[h]=i(w[h],j[h],s[h]);return s},s.dcurve=function(e){var t=this._time,n=t.length,i=o.le(t,e),a=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(i>=n-1)for(var u=s.length-1,d=(t[n-1],0);d<c;++d,--u)a[d]=l[u];else{u=c*(i+1)-1;var f=t[i],h=t[i+1]-f||1,p=this._scratch[1],m=this._scratch[2],g=this._scratch[3],v=this._scratch[4],y=!0;for(d=0;d<c;++d,--u)p[d]=s[u],g[d]=l[u]*h,m[d]=s[u+c],v[d]=l[u+c]*h,y=y&&p[d]===m[d]&&g[d]===v[d]&&0===g[d];if(y)for(d=0;d<c;++d)a[d]=0;else{r.derivative(p,g,m,v,(e-f)/h,a);for(d=0;d<c;++d)a[d]/=h}}return a},s.lastT=function(){var e=this._time;return e[e.length-1]},s.stable=function(){for(var e=this._velocity,t=e.length,n=this.dimension-1;n>=0;--n)if(e[--t])return!1;return!0},s.jump=function(e){var t=this.lastT(),n=this.dimension;if(!(e<t||arguments.length!==n+1)){var r=this._state,o=this._velocity,a=r.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(t,e);for(var u=0;u<2;++u)for(var d=0;d<n;++d)r.push(r[a++]),o.push(0);this._time.push(e);for(d=n;d>0;--d)r.push(i(l[d-1],c[d-1],arguments[d])),o.push(0)}},s.push=function(e){var t=this.lastT(),n=this.dimension;if(!(e<t||arguments.length!==n+1)){var r=this._state,o=this._velocity,a=r.length-this.dimension,s=e-t,l=this.bounds,c=l[0],u=l[1],d=s>1e-6?1/s:0;this._time.push(e);for(var f=n;f>0;--f){var h=i(c[f-1],u[f-1],arguments[f]);r.push(h),o.push((h-r[a++])*d)}}},s.set=function(e){var t=this.dimension;if(!(e<this.lastT()||arguments.length!==t+1)){var n=this._state,r=this._velocity,o=this.bounds,a=o[0],s=o[1];this._time.push(e);for(var l=t;l>0;--l)n.push(i(a[l-1],s[l-1],arguments[l])),r.push(0)}},s.move=function(e){var t=this.lastT(),n=this.dimension;if(!(e<=t||arguments.length!==n+1)){var r=this._state,o=this._velocity,a=r.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=e-t,d=u>1e-6?1/u:0;this._time.push(e);for(var f=n;f>0;--f){var h=arguments[f];r.push(i(l[f-1],c[f-1],r[a++]+h)),o.push(h*d)}}},s.idle=function(e){var t=this.lastT();if(!(e<t)){var n=this.dimension,r=this._state,o=this._velocity,a=r.length-n,s=this.bounds,l=s[0],c=s[1],u=e-t;this._time.push(e);for(var d=n-1;d>=0;--d)r.push(i(l[d],c[d],r[a]+u*o[a])),o.push(0),a+=1}}},3840:function(e){"use strict";e.exports=function(e){return new i(e||h,null)};function t(e,t,n,r,o,i){this._color=e,this.key=t,this.value=n,this.left=r,this.right=o,this._count=i}function n(e){return new t(e._color,e.key,e.value,e.left,e.right,e._count)}function r(e,n){return new t(e,n.key,n.value,n.left,n.right,n._count)}function o(e){e._count=1+(e.left?e.left._count:0)+(e.right?e.right._count:0)}function i(e,t){this._compare=e,this.root=t}var a=i.prototype;function s(e,t){var n;if(t.left&&(n=s(e,t.left)))return n;return(n=e(t.key,t.value))||(t.right?s(e,t.right):void 0)}function l(e,t,n,r){if(t(e,r.key)<=0){var o;if(r.left)if(o=l(e,t,n,r.left))return o;if(o=n(r.key,r.value))return o}if(r.right)return l(e,t,n,r.right)}function c(e,t,n,r,o){var i,a=n(e,o.key),s=n(t,o.key);if(a<=0){if(o.left&&(i=c(e,t,n,r,o.left)))return i;if(s>0&&(i=r(o.key,o.value)))return i}if(s>0&&o.right)return c(e,t,n,r,o.right)}function u(e,t){this.tree=e,this._stack=t}Object.defineProperty(a,"keys",{get:function(){var e=[];return this.forEach((function(t,n){e.push(t)})),e}}),Object.defineProperty(a,"values",{get:function(){var e=[];return this.forEach((function(t,n){e.push(n)})),e}}),Object.defineProperty(a,"length",{get:function(){return this.root?this.root._count:0}}),a.insert=function(e,n){for(var a=this._compare,s=this.root,l=[],c=[];s;){var u=a(e,s.key);l.push(s),c.push(u),s=u<=0?s.left:s.right}l.push(new t(0,e,n,null,null,1));for(var d=l.length-2;d>=0;--d){s=l[d];c[d]<=0?l[d]=new t(s._color,s.key,s.value,l[d+1],s.right,s._count+1):l[d]=new t(s._color,s.key,s.value,s.left,l[d+1],s._count+1)}for(d=l.length-1;d>1;--d){var f=l[d-1];s=l[d];if(1===f._color||1===s._color)break;var h=l[d-2];if(h.left===f)if(f.left===s){if(!(p=h.right)||0!==p._color){if(h._color=0,h.left=f.right,f._color=1,f.right=h,l[d-2]=f,l[d-1]=s,o(h),o(f),d>=3)(m=l[d-3]).left===h?m.left=f:m.right=f;break}f._color=1,h.right=r(1,p),h._color=0,d-=1}else{if(!(p=h.right)||0!==p._color){if(f.right=s.left,h._color=0,h.left=s.right,s._color=1,s.left=f,s.right=h,l[d-2]=s,l[d-1]=f,o(h),o(f),o(s),d>=3)(m=l[d-3]).left===h?m.left=s:m.right=s;break}f._color=1,h.right=r(1,p),h._color=0,d-=1}else if(f.right===s){if(!(p=h.left)||0!==p._color){if(h._color=0,h.right=f.left,f._color=1,f.left=h,l[d-2]=f,l[d-1]=s,o(h),o(f),d>=3)(m=l[d-3]).right===h?m.right=f:m.left=f;break}f._color=1,h.left=r(1,p),h._color=0,d-=1}else{var p;if(!(p=h.left)||0!==p._color){var m;if(f.left=s.right,h._color=0,h.right=s.left,s._color=1,s.right=f,s.left=h,l[d-2]=s,l[d-1]=f,o(h),o(f),o(s),d>=3)(m=l[d-3]).right===h?m.right=s:m.left=s;break}f._color=1,h.left=r(1,p),h._color=0,d-=1}}return l[0]._color=1,new i(a,l[0])},a.forEach=function(e,t,n){if(this.root)switch(arguments.length){case 1:return s(e,this.root);case 2:return l(t,this._compare,e,this.root);case 3:if(this._compare(t,n)>=0)return;return c(t,n,this._compare,e,this.root)}},Object.defineProperty(a,"begin",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.left;return new u(this,e)}}),Object.defineProperty(a,"end",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.right;return new u(this,e)}}),a.at=function(e){if(e<0)return new u(this,[]);for(var t=this.root,n=[];;){if(n.push(t),t.left){if(e<t.left._count){t=t.left;continue}e-=t.left._count}if(!e)return new u(this,n);if(e-=1,!t.right)break;if(e>=t.right._count)break;t=t.right}return new u(this,[])},a.ge=function(e){for(var t=this._compare,n=this.root,r=[],o=0;n;){var i=t(e,n.key);r.push(n),i<=0&&(o=r.length),n=i<=0?n.left:n.right}return r.length=o,new u(this,r)},a.gt=function(e){for(var t=this._compare,n=this.root,r=[],o=0;n;){var i=t(e,n.key);r.push(n),i<0&&(o=r.length),n=i<0?n.left:n.right}return r.length=o,new u(this,r)},a.lt=function(e){for(var t=this._compare,n=this.root,r=[],o=0;n;){var i=t(e,n.key);r.push(n),i>0&&(o=r.length),n=i<=0?n.left:n.right}return r.length=o,new u(this,r)},a.le=function(e){for(var t=this._compare,n=this.root,r=[],o=0;n;){var i=t(e,n.key);r.push(n),i>=0&&(o=r.length),n=i<0?n.left:n.right}return r.length=o,new u(this,r)},a.find=function(e){for(var t=this._compare,n=this.root,r=[];n;){var o=t(e,n.key);if(r.push(n),0===o)return new u(this,r);n=o<=0?n.left:n.right}return new u(this,[])},a.remove=function(e){var t=this.find(e);return t?t.remove():this},a.get=function(e){for(var t=this._compare,n=this.root;n;){var r=t(e,n.key);if(0===r)return n.value;n=r<=0?n.left:n.right}};var d=u.prototype;function f(e,t){e.key=t.key,e.value=t.value,e.left=t.left,e.right=t.right,e._color=t._color,e._count=t._count}function h(e,t){return e<t?-1:e>t?1:0}Object.defineProperty(d,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(d,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),d.clone=function(){return new u(this.tree,this._stack.slice())},d.remove=function(){var e=this._stack;if(0===e.length)return this.tree;var a=new Array(e.length),s=e[e.length-1];a[a.length-1]=new t(s._color,s.key,s.value,s.left,s.right,s._count);for(var l=e.length-2;l>=0;--l){(s=e[l]).left===e[l+1]?a[l]=new t(s._color,s.key,s.value,a[l+1],s.right,s._count):a[l]=new t(s._color,s.key,s.value,s.left,a[l+1],s._count)}if((s=a[a.length-1]).left&&s.right){var c=a.length;for(s=s.left;s.right;)a.push(s),s=s.right;var u=a[c-1];a.push(new t(s._color,u.key,u.value,s.left,s.right,s._count)),a[c-1].key=s.key,a[c-1].value=s.value;for(l=a.length-2;l>=c;--l)s=a[l],a[l]=new t(s._color,s.key,s.value,s.left,a[l+1],s._count);a[c-1].left=a[c]}if(0===(s=a[a.length-1])._color){var d=a[a.length-2];d.left===s?d.left=null:d.right===s&&(d.right=null),a.pop();for(l=0;l<a.length;++l)a[l]._count--;return new i(this.tree._compare,a[0])}if(s.left||s.right){s.left?f(s,s.left):s.right&&f(s,s.right),s._color=1;for(l=0;l<a.length-1;++l)a[l]._count--;return new i(this.tree._compare,a[0])}if(1===a.length)return new i(this.tree._compare,null);for(l=0;l<a.length;++l)a[l]._count--;var h=a[a.length-2];return function(e){for(var t,i,a,s,l=e.length-1;l>=0;--l){if(t=e[l],0===l)return void(t._color=1);if((i=e[l-1]).left===t){if((a=i.right).right&&0===a.right._color){if(s=(a=i.right=n(a)).right=n(a.right),i.right=a.left,a.left=i,a.right=s,a._color=i._color,t._color=1,i._color=1,s._color=1,o(i),o(a),l>1)(c=e[l-2]).left===i?c.left=a:c.right=a;return void(e[l-1]=a)}if(a.left&&0===a.left._color){if(s=(a=i.right=n(a)).left=n(a.left),i.right=s.left,a.left=s.right,s.left=i,s.right=a,s._color=i._color,i._color=1,a._color=1,t._color=1,o(i),o(a),o(s),l>1)(c=e[l-2]).left===i?c.left=s:c.right=s;return void(e[l-1]=s)}if(1===a._color){if(0===i._color)return i._color=1,void(i.right=r(0,a));i.right=r(0,a);continue}a=n(a),i.right=a.left,a.left=i,a._color=i._color,i._color=0,o(i),o(a),l>1&&((c=e[l-2]).left===i?c.left=a:c.right=a),e[l-1]=a,e[l]=i,l+1<e.length?e[l+1]=t:e.push(t),l+=2}else{if((a=i.left).left&&0===a.left._color){if(s=(a=i.left=n(a)).left=n(a.left),i.left=a.right,a.right=i,a.left=s,a._color=i._color,t._color=1,i._color=1,s._color=1,o(i),o(a),l>1)(c=e[l-2]).right===i?c.right=a:c.left=a;return void(e[l-1]=a)}if(a.right&&0===a.right._color){if(s=(a=i.left=n(a)).right=n(a.right),i.left=s.right,a.right=s.left,s.right=i,s.left=a,s._color=i._color,i._color=1,a._color=1,t._color=1,o(i),o(a),o(s),l>1)(c=e[l-2]).right===i?c.right=s:c.left=s;return void(e[l-1]=s)}if(1===a._color){if(0===i._color)return i._color=1,void(i.left=r(0,a));i.left=r(0,a);continue}var c;a=n(a),i.left=a.right,a.right=i,a._color=i._color,i._color=0,o(i),o(a),l>1&&((c=e[l-2]).right===i?c.right=a:c.left=a),e[l-1]=a,e[l]=i,l+1<e.length?e[l+1]=t:e.push(t),l+=2}}}(a),h.left===s?h.left=null:h.right=null,new i(this.tree._compare,a[0])},Object.defineProperty(d,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(d,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(d,"index",{get:function(){var e=0,t=this._stack;if(0===t.length){var n=this.tree.root;return n?n._count:0}t[t.length-1].left&&(e=t[t.length-1].left._count);for(var r=t.length-2;r>=0;--r)t[r+1]===t[r].right&&(++e,t[r].left&&(e+=t[r].left._count));return e},enumerable:!0}),d.next=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.right)for(t=t.right;t;)e.push(t),t=t.left;else for(e.pop();e.length>0&&e[e.length-1].right===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(d,"hasNext",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].right)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].left===e[t])return!0;return!1}}),d.update=function(e){var n=this._stack;if(0===n.length)throw new Error("Can't update empty node!");var r=new Array(n.length),o=n[n.length-1];r[r.length-1]=new t(o._color,o.key,e,o.left,o.right,o._count);for(var a=n.length-2;a>=0;--a)(o=n[a]).left===n[a+1]?r[a]=new t(o._color,o.key,o.value,r[a+1],o.right,o._count):r[a]=new t(o._color,o.key,o.value,o.left,r[a+1],o._count);return new i(this.tree._compare,r[0])},d.prev=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.left)for(t=t.left;t;)e.push(t),t=t.right;else for(e.pop();e.length>0&&e[e.length-1].left===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(d,"hasPrev",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].left)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].right===e[t])return!0;return!1}})},3837:function(e,t,n){"use strict";e.exports=function(e,t){var n=new h(e);return n.update(t),n};var r=n(4935),o=n(501),i=n(5304),a=n(6429),s=n(6444),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),c=ArrayBuffer,u=DataView;function d(e){return Array.isArray(e)||function(e){return c.isView(e)&&!(e instanceof u)}(e)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function h(e){this.gl=e,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=i(e)}var p=h.prototype;function m(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}p.update=function(e){function t(t,n,r){if(r in e){var o,i=e[r],a=this[r];(t?d(i)&&d(i[0]):d(i))?this[r]=o=[n(i[0]),n(i[1]),n(i[2])]:this[r]=o=[n(i),n(i),n(i)];for(var s=0;s<3;++s)if(o[s]!==a[s])return!0}return!1}e=e||{};var n,i=t.bind(this,!1,Number),a=t.bind(this,!1,Boolean),l=t.bind(this,!1,String),c=t.bind(this,!0,(function(e){if(d(e)){if(3===e.length)return[+e[0],+e[1],+e[2],1];if(4===e.length)return[+e[0],+e[1],+e[2],+e[3]]}return[0,0,0,1]})),u=!1,f=!1;if("bounds"in e)for(var h=e.bounds,p=0;p<2;++p)for(var m=0;m<3;++m)h[p][m]!==this.bounds[p][m]&&(f=!0),this.bounds[p][m]=h[p][m];if("ticks"in e){n=e.ticks,u=!0,this.autoTicks=!1;for(p=0;p<3;++p)this.tickSpacing[p]=0}else i("tickSpacing")&&(this.autoTicks=!0,f=!0);if(this._firstInit&&("ticks"in e||"tickSpacing"in e||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&&this.autoTicks&&(n=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p<3;++p)n[p].sort((function(e,t){return e.x-t.x}));s.equal(n,this.ticks)?u=!1:this.ticks=n}a("tickEnable"),l("tickFont")&&(u=!0),l("tickFontStyle")&&(u=!0),l("tickFontWeight")&&(u=!0),l("tickFontVariant")&&(u=!0),i("tickSize"),i("tickAngle"),i("tickPad"),c("tickColor");var g=l("labels");l("labelFont")&&(g=!0),l("labelFontStyle")&&(g=!0),l("labelFontWeight")&&(g=!0),l("labelFontVariant")&&(g=!0),a("labelEnable"),i("labelSize"),i("labelPad"),c("labelColor"),a("lineEnable"),a("lineMirror"),i("lineWidth"),c("lineColor"),a("lineTickEnable"),a("lineTickMirror"),i("lineTickLength"),i("lineTickWidth"),c("lineTickColor"),a("gridEnable"),i("gridWidth"),c("gridColor"),a("zeroEnable"),c("zeroLineColor"),i("zeroLineWidth"),a("backgroundEnable"),c("backgroundColor");var v=[{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]}],y=[{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&&(g||u)&&this._text.update(this.bounds,this.labels,v,this.ticks,y):this._text=r(this.gl,this.bounds,this.labels,v,this.ticks,y),this._lines&&u&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=o(this.gl,this.bounds,this.ticks))};var g=[new m,new m,new m];function v(e,t,n,r,o){for(var i=e.primalOffset,a=e.primalMinor,s=e.mirrorOffset,l=e.mirrorMinor,c=r[t],u=0;u<3;++u)if(t!==u){var d=i,f=s,h=a,p=l;c&1<<u&&(d=s,f=i,h=l,p=a),d[u]=n[0][u],f[u]=n[1][u],o[u]>0?(h[u]=-1,p[u]=0):(h[u]=0,p[u]=1)}}var y=[0,0,0],b={model:l,view:l,projection:l,_ortho:!1};p.isOpaque=function(){return!0},p.isTransparent=function(){return!1},p.drawTransparent=function(e){};var x=[0,0,0],_=[0,0,0],w=[0,0,0];p.draw=function(e){e=e||b;for(var t=this.gl,n=e.model||l,r=e.view||l,o=e.projection||l,i=this.bounds,s=e._ortho||!1,c=a(n,r,o,i,s),u=c.cubeEdges,d=c.axis,h=r[12],p=r[13],m=r[14],j=r[15],k=(s?2:1)*this.pixelRatio*(o[3]*h+o[7]*p+o[11]*m+o[15]*j)/t.drawingBufferHeight,T=0;T<3;++T)this.lastCubeProps.cubeEdges[T]=u[T],this.lastCubeProps.axis[T]=d[T];var A=g;for(T=0;T<3;++T)v(g[T],T,this.bounds,u,d);t=this.gl;var M,S=y;for(T=0;T<3;++T)this.backgroundEnable[T]?S[T]=d[T]:S[T]=0;this._background.draw(n,r,o,i,S,this.backgroundColor),this._lines.bind(n,r,o,this);for(T=0;T<3;++T){var C=[0,0,0];d[T]>0?C[T]=i[1][T]:C[T]=i[0][T];for(var E=0;E<2;++E){var L=(T+1+E)%3,O=(T+1+(1^E))%3;this.gridEnable[L]&&this._lines.drawGrid(L,O,this.bounds,C,this.gridColor[L],this.gridWidth[L]*this.pixelRatio)}for(E=0;E<2;++E){L=(T+1+E)%3,O=(T+1+(1^E))%3;this.zeroEnable[O]&&Math.min(i[0][O],i[1][O])<=0&&Math.max(i[0][O],i[1][O])>=0&&this._lines.drawZero(L,O,this.bounds,C,this.zeroLineColor[O],this.zeroLineWidth[O]*this.pixelRatio)}}for(T=0;T<3;++T){this.lineEnable[T]&&this._lines.drawAxisLine(T,this.bounds,A[T].primalOffset,this.lineColor[T],this.lineWidth[T]*this.pixelRatio),this.lineMirror[T]&&this._lines.drawAxisLine(T,this.bounds,A[T].mirrorOffset,this.lineColor[T],this.lineWidth[T]*this.pixelRatio);var R=f(x,A[T].primalMinor),I=f(_,A[T].mirrorMinor),P=this.lineTickLength;for(E=0;E<3;++E){var D=k/n[5*E];R[E]*=P[E]*D,I[E]*=P[E]*D}this.lineTickEnable[T]&&this._lines.drawAxisTicks(T,A[T].primalOffset,R,this.lineTickColor[T],this.lineTickWidth[T]*this.pixelRatio),this.lineTickMirror[T]&&this._lines.drawAxisTicks(T,A[T].mirrorOffset,I,this.lineTickColor[T],this.lineTickWidth[T]*this.pixelRatio)}this._lines.unbind(),this._text.bind(n,r,o,this.pixelRatio);var z,N;function F(e){(N=[0,0,0])[e]=1}function B(e,t,n){var r=(e+1)%3,o=(e+2)%3,i=t[r],a=t[o],s=n[r],l=n[o];i>0&&l>0||i>0&&l<0||i<0&&l>0||i<0&&l<0?F(r):(a>0&&s>0||a>0&&s<0||a<0&&s>0||a<0&&s<0)&&F(o)}for(T=0;T<3;++T){var U=A[T].primalMinor,H=A[T].mirrorMinor,V=f(w,A[T].primalOffset);for(E=0;E<3;++E)this.lineTickEnable[T]&&(V[E]+=k*U[E]*Math.max(this.lineTickLength[E],0)/n[5*E]);var G=[0,0,0];if(G[T]=1,this.tickEnable[T]){-3600===this.tickAngle[T]?(this.tickAngle[T]=0,this.tickAlign[T]="auto"):this.tickAlign[T]=-1,z=1,"auto"===(M=[this.tickAlign[T],.5,z])[0]?M[0]=0:M[0]=parseInt(""+M[0]),N=[0,0,0],B(T,U,H);for(E=0;E<3;++E)V[E]+=k*U[E]*this.tickPad[E]/n[5*E];this._text.drawTicks(T,this.tickSize[T],this.tickAngle[T],V,this.tickColor[T],G,N,M)}if(this.labelEnable[T]){z=0,N=[0,0,0],this.labels[T].length>4&&(F(T),z=1),"auto"===(M=[this.labelAlign[T],.5,z])[0]?M[0]=0:M[0]=parseInt(""+M[0]);for(E=0;E<3;++E)V[E]+=k*U[E]*this.labelPad[E]/n[5*E];V[T]+=.5*(i[0][T]+i[1][T]),this._text.drawLabel(T,this.labelSize[T],this.labelAngle[T],V,this.labelColor[T],[0,0,0],N,M)}}this._text.unbind()},p.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},5304:function(e,t,n){"use strict";e.exports=function(e){for(var t=[],n=[],s=0,l=0;l<3;++l)for(var c=(l+1)%3,u=(l+2)%3,d=[0,0,0],f=[0,0,0],h=-1;h<=1;h+=2){n.push(s,s+2,s+1,s+1,s+2,s+3),d[l]=h,f[l]=h;for(var p=-1;p<=1;p+=2){d[c]=p;for(var m=-1;m<=1;m+=2)d[u]=m,t.push(d[0],d[1],d[2],f[0],f[1],f[2]),s+=1}var g=c;c=u,u=g}var v=r(e,new Float32Array(t)),y=r(e,new Uint16Array(n),e.ELEMENT_ARRAY_BUFFER),b=o(e,[{buffer:v,type:e.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:e.FLOAT,size:3,offset:12,stride:24}],y),x=i(e);return x.attributes.position.location=0,x.attributes.normal.location=1,new a(e,v,b,x)};var r=n(2762),o=n(8116),i=n(1879).bg;function a(e,t,n,r){this.gl=e,this.buffer=t,this.vao=n,this.shader=r}var s=a.prototype;s.draw=function(e,t,n,r,o,i){for(var a=!1,s=0;s<3;++s)a=a||o[s];if(a){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:e,view:t,projection:n,bounds:r,enable:o,colors:i},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},6429:function(e,t,n){"use strict";e.exports=function(e,t,n,i,h){o(s,t,e),o(s,n,s);for(var y=0,b=0;b<2;++b){u[2]=i[b][2];for(var x=0;x<2;++x){u[1]=i[x][1];for(var _=0;_<2;++_)u[0]=i[_][0],f(l[y],u,s),y+=1}}var w=-1;for(b=0;b<8;++b){for(var j=l[b][3],k=0;k<3;++k)c[b][k]=l[b][k]/j;h&&(c[b][2]*=-1),j<0&&(w<0||c[b][2]<c[w][2])&&(w=b)}if(w<0){w=0;for(var T=0;T<3;++T){for(var A=(T+2)%3,M=(T+1)%3,S=-1,C=-1,E=0;E<2;++E){var L=(R=E<<T)+(E<<A)+(1-E<<M),O=R+(1-E<<A)+(E<<M);a(c[R],c[L],c[O],d)<0||(E?S=1:C=1)}if(S<0||C<0)C>S&&(w|=1<<T);else{for(E=0;E<2;++E){L=(R=E<<T)+(E<<A)+(1-E<<M),O=R+(1-E<<A)+(E<<M);var R,I=p([l[R],l[L],l[O],l[R+(1<<A)+(1<<M)]]);E?S=I:C=I}C>S&&(w|=1<<T)}}}var P=7^w,D=-1;for(b=0;b<8;++b)b!==w&&b!==P&&(D<0||c[D][1]>c[b][1])&&(D=b);var z=-1;for(b=0;b<3;++b){if((F=D^1<<b)!==w&&F!==P)z<0&&(z=F),(M=c[F])[0]<c[z][0]&&(z=F)}var N=-1;for(b=0;b<3;++b){var F;if((F=D^1<<b)!==w&&F!==P&&F!==z)N<0&&(N=F),(M=c[F])[0]>c[N][0]&&(N=F)}var B=m;B[0]=B[1]=B[2]=0,B[r.log2(z^D)]=D&z,B[r.log2(D^N)]=D&N;var U=7^N;U===w||U===P?(U=7^z,B[r.log2(N^U)]=U&N):B[r.log2(z^U)]=U&z;var H=g,V=w;for(T=0;T<3;++T)H[T]=V&1<<T?-1:1;return v};var r=n(8828),o=n(6760),i=n(5202),a=n(3250),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),d=[0,0,0];function f(e,t,n){for(var r=0;r<4;++r){e[r]=n[12+r];for(var o=0;o<3;++o)e[r]+=t[o]*n[4*o+r]}}!function(){for(var e=0;e<8;++e)l[e]=[1,1,1,1],c[e]=[1,1,1]}();var h=[[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 p(e){for(var t=0;t<h.length;++t)if((e=i.positive(e,h[t])).length<3)return 0;var n=e[0],r=n[0]/n[3],o=n[1]/n[3],a=0;for(t=1;t+1<e.length;++t){var s=e[t],l=e[t+1],c=s[0]/s[3]-r,u=s[1]/s[3]-o,d=l[0]/l[3]-r,f=l[1]/l[3]-o;a+=Math.abs(c*f-u*d)}return a}var m=[1,1,1],g=[0,0,0],v={cubeEdges:m,axis:g}},501:function(e,t,n){"use strict";e.exports=function(e,t,n){var a=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];a.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var d=0;d<3;++d){for(var f=a.length/3|0,p=0;p<n[d].length;++p){var m=+n[d][p].x;a.push(m,0,1,m,1,1,m,0,-1,m,0,-1,m,1,1,m,1,-1)}var g=a.length/3|0;s[d]=f,l[d]=g-f;f=a.length/3|0;for(var v=0;v<n[d].length;++v){m=+n[d][v].x;a.push(m,0,1,m,1,1,m,0,-1,m,0,-1,m,1,1,m,1,-1)}g=a.length/3|0;c[d]=f,u[d]=g-f}var y=r(e,new Float32Array(a)),b=o(e,[{buffer:y,type:e.FLOAT,size:3,stride:0,offset:0}]),x=i(e);return x.attributes.position.location=0,new h(e,y,b,x,l,s,u,c)};var r=n(2762),o=n(8116),i=n(1879).n,a=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function d(e){return e[0]=e[1]=e[2]=0,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function h(e,t,n,r,o,i,a,s){this.gl=e,this.vertBuffer=t,this.vao=n,this.shader=r,this.tickCount=o,this.tickOffset=i,this.gridCount=a,this.gridOffset=s}var p=h.prototype;p.bind=function(e,t,n){this.shader.bind(),this.shader.uniforms.model=e,this.shader.uniforms.view=t,this.shader.uniforms.projection=n,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},p.unbind=function(){this.vao.unbind()},p.drawAxisLine=function(e,t,n,r,o){var i=d(s);this.shader.uniforms.majorAxis=s,i[e]=t[1][e]-t[0][e],this.shader.uniforms.minorAxis=i;var a,u=f(c,n);u[e]+=t[0][e],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=o,this.shader.uniforms.color=r,(a=d(l))[(e+2)%3]=1,this.shader.uniforms.screenAxis=a,this.vao.draw(this.gl.TRIANGLES,6),(a=d(l))[(e+1)%3]=1,this.shader.uniforms.screenAxis=a,this.vao.draw(this.gl.TRIANGLES,6)},p.drawAxisTicks=function(e,t,n,r,o){if(this.tickCount[e]){var i=d(a);i[e]=1,this.shader.uniforms.majorAxis=i,this.shader.uniforms.offset=t,this.shader.uniforms.minorAxis=n,this.shader.uniforms.color=r,this.shader.uniforms.lineWidth=o;var s=d(l);s[e]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[e],this.tickOffset[e])}},p.drawGrid=function(e,t,n,r,o,i){if(this.gridCount[e]){var u=d(s);u[t]=n[1][t]-n[0][t],this.shader.uniforms.minorAxis=u;var h=f(c,r);h[t]+=n[0][t],this.shader.uniforms.offset=h;var p=d(a);p[e]=1,this.shader.uniforms.majorAxis=p;var m=d(l);m[e]=1,this.shader.uniforms.screenAxis=m,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=o,this.vao.draw(this.gl.TRIANGLES,this.gridCount[e],this.gridOffset[e])}},p.drawZero=function(e,t,n,r,o,i){var a=d(s);this.shader.uniforms.majorAxis=a,a[e]=n[1][e]-n[0][e],this.shader.uniforms.minorAxis=a;var u=f(c,r);u[e]+=n[0][e],this.shader.uniforms.offset=u;var h=d(l);h[t]=1,this.shader.uniforms.screenAxis=h,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=o,this.vao.draw(this.gl.TRIANGLES,6)},p.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},1879:function(e,t,n){"use strict";var r=n(3236),o=n(9405),i=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n vec4 pp = projection * (view * (model * vec4(p, 1.0)));\n return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n vec3 major = position.x * majorAxis;\n vec3 minor = position.y * minorAxis;\n\n vec3 vPosition = major + minor + offset;\n vec3 pPosition = project(vPosition);\n vec3 offset = project(vPosition + screenAxis * position.z);\n\n vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n"]),a=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n gl_FragColor = color;\n}"]);t.n=function(e){return o(e,i,a,null,[{name:"position",type:"vec3"}])};var s=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n vec4 pp = projection * (view * (model * vec4(p, 1.0)));\n return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n vec3 A = project(a);\n vec3 B = project(b);\n\n return atan(\n (B.y - A.y) * resolution.y,\n (B.x - A.x) * resolution.x\n );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio = alignOpt.y;\nbool enableAlign = (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n return mod_angle((a < 0.0) ?\n a + TWO_PI :\n a\n );\n}\n\nfloat look_upwards(float a) {\n float b = positive_angle(a);\n return ((b > HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\n b - PI :\n b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\n // if ratio is set to 0.5 then it is 50%, 50%.\n // when using a higher ratio e.g. 0.75 the result would\n // likely be more horizontal than vertical.\n\n float b = positive_angle(a);\n\n return\n (b < ( ratio) * HALF_PI) ? 0.0 :\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\n 0.0;\n}\n\nfloat roundTo(float a, float b) {\n return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n float b = positive_angle(a);\n float div = TWO_PI / float(n);\n float c = roundTo(b, div);\n return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n return\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\n rawAngle; // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &&\n (axis.y == 0.0) &&\n (axis.z == 0.0);\n\nvoid main() {\n //Compute world offset\n float axisDistance = position.z;\n vec3 dataPosition = axisDistance * axis + offset;\n\n float beta = angle; // i.e. user defined attributes for each tick\n\n float axisAngle;\n float clipAngle;\n float flip;\n\n if (enableAlign) {\n axisAngle = (isAxisTitle) ? HALF_PI :\n computeViewAngle(dataPosition, dataPosition + axis);\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\n\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\n\n beta += applyAlignOption(clipAngle, flip * PI);\n }\n\n //Compute plane offset\n vec2 planeCoord = position.xy * pixelScale;\n\n mat2 planeXform = scale * mat2(\n cos(beta), sin(beta),\n -sin(beta), cos(beta)\n );\n\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n //Compute clip position\n vec3 clipPosition = project(dataPosition);\n\n //Apply text offset in clip coordinates\n clipPosition += vec3(viewOffset, 0.0);\n\n //Done\n gl_Position = vec4(clipPosition, 1.0);\n}\n"]),l=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n gl_FragColor = color;\n}"]);t.Q=function(e){return o(e,s,l,null,[{name:"position",type:"vec3"}])};var c=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n vec3 realNormal = signAxis * normal;\n\n if(dot(realNormal, enable) > 0.0) {\n vec3 minRange = min(bounds[0], bounds[1]);\n vec3 maxRange = max(bounds[0], bounds[1]);\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n gl_Position = projection * (view * (model * vec4(nPosition, 1.0)));\n } else {\n gl_Position = vec4(0,0,0,0);\n }\n\n colorChannel = abs(realNormal);\n}\n"]),u=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n gl_FragColor = colorChannel.x * colors[0] +\n colorChannel.y * colors[1] +\n colorChannel.z * colors[2];\n}"]);t.bg=function(e){return o(e,c,u,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(e,t,r){"use strict";e.exports=function(e,t,n,r,a,l){var c=o(e),d=i(e,[{buffer:c,size:3}]),f=s(e);f.attributes.position.location=0;var h=new u(e,f,c,d);return h.update(t,n,r,a,l),h};var o=r(2762),i=r(8116),a=r(4359),s=r(1879).Q,l=window||n.global||{},c=l.__TEXT_CACHE||{};l.__TEXT_CACHE={};function u(e,t,n,r){this.gl=e,this.shader=t,this.buffer=n,this.vao=r,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var d=u.prototype,f=[0,0];d.bind=function(e,t,n,r){this.vao.bind(),this.shader.bind();var o=this.shader.uniforms;o.model=e,o.view=t,o.projection=n,o.pixelScale=r,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},d.unbind=function(){this.vao.unbind()},d.update=function(e,t,n,r,o){var i=[];function s(e,t,n,r,o,s){var l=[n.style,n.weight,n.variant,n.family].join("_"),u=c[l];u||(u=c[l]={});var d=u[t];d||(d=u[t]=function(e,t){try{return a(e,t)}catch(t){return console.warn('error vectorizing text:"'+e+'" error:',t),{cells:[],positions:[]}}}(t,{triangles:!0,font:n.family,fontStyle:n.style,fontWeight:n.weight,fontVariant:n.variant,textAlign:"center",textBaseline:"middle",lineSpacing:o,styletags:s}));for(var f=(r||12)/12,h=d.positions,p=d.cells,m=0,g=p.length;m<g;++m)for(var v=p[m],y=2;y>=0;--y){var b=h[v[y]];i.push(f*b[0],-f*b[1],e)}}for(var l=[0,0,0],u=[0,0,0],d=[0,0,0],f=[0,0,0],h={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},p=0;p<3;++p){d[p]=i.length/3|0,s(.5*(e[0][p]+e[1][p]),t[p],n[p],12,1.25,h),f[p]=(i.length/3|0)-d[p],l[p]=i.length/3|0;for(var m=0;m<r[p].length;++m)if(r[p][m].text){var g={family:r[p][m].font||o[p].family,style:o[p].fontStyle||o[p].style,weight:o[p].fontWeight||o[p].weight,variant:o[p].fontVariant||o[p].variant};s(r[p][m].x,r[p][m].text,g,r[p][m].fontSize||12,1.25,h)}u[p]=(i.length/3|0)-l[p]}this.buffer.update(i),this.tickOffset=l,this.tickCount=u,this.labelOffset=d,this.labelCount=f},d.drawTicks=function(e,t,n,r,o,i,a,s){this.tickCount[e]&&(this.shader.uniforms.axis=i,this.shader.uniforms.color=o,this.shader.uniforms.angle=n,this.shader.uniforms.scale=t,this.shader.uniforms.offset=r,this.shader.uniforms.alignDir=a,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[e],this.tickOffset[e]))},d.drawLabel=function(e,t,n,r,o,i,a,s){this.labelCount[e]&&(this.shader.uniforms.axis=i,this.shader.uniforms.color=o,this.shader.uniforms.angle=n,this.shader.uniforms.scale=t,this.shader.uniforms.offset=r,this.shader.uniforms.alignDir=a,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[e],this.labelOffset[e]))},d.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}},6444:function(e,t){"use strict";function n(e,t){var n=e+"",r=n.indexOf("."),o=0;r>=0&&(o=n.length-r-1);var i=Math.pow(10,o),a=Math.round(e*t*i),s=a+"";if(s.indexOf("e")>=0)return s;var l=a/i,c=a%i;a<0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=""+l;if(a<0&&(u="-"+u),o){for(var d=""+c;d.length<o;)d="0"+d;return u+"."+d}return u}t.create=function(e,t){for(var r=[],o=0;o<3;++o){for(var i=[],a=(e[0][o],e[1][o],0);a*t[o]<=e[1][o];++a)i.push({x:a*t[o],text:n(t[o],a)});for(a=-1;a*t[o]>=e[0][o];--a)i.push({x:a*t[o],text:n(t[o],a)});r.push(i)}return r},t.equal=function(e,t){for(var n=0;n<3;++n){if(e[n].length!==t[n].length)return!1;for(var r=0;r<e[n].length;++r){var o=e[n][r],i=t[n][r];if(o.x!==i.x||o.text!==i.text||o.font!==i.font||o.fontColor!==i.fontColor||o.fontSize!==i.fontSize||o.dx!==i.dx||o.dy!==i.dy)return!1}}return!0}},5445:function(e,t,n){"use strict";e.exports=function(e,t,n,l,d){var f=t.model||c,h=t.view||c,v=t.projection||c,y=t._ortho||!1,b=e.bounds,x=(d=d||i(f,h,v,b,y)).axis;a(u,h,f),a(u,v,u);for(var _=m,w=0;w<3;++w)_[w].lo=1/0,_[w].hi=-1/0,_[w].pixelsPerDataUnit=1/0;var j=r(s(u,u));s(u,u);for(var k=0;k<3;++k){var T=(k+1)%3,A=(k+2)%3,M=g;e:for(w=0;w<2;++w){var S=[];if(x[k]<0!=!!w){M[k]=b[w][k];for(var C=0;C<2;++C){M[T]=b[C^w][T];for(var E=0;E<2;++E)M[A]=b[E^C^w][A],S.push(M.slice())}var L=y?5:4;for(C=L;C===L;++C){if(0===S.length)continue e;S=o.positive(S,j[C])}for(C=0;C<S.length;++C){A=S[C];var O=p(g,u,A,n,l);for(E=0;E<3;++E)_[E].lo=Math.min(_[E].lo,A[E]),_[E].hi=Math.max(_[E].hi,A[E]),E!==k&&(_[E].pixelsPerDataUnit=Math.min(_[E].pixelsPerDataUnit,Math.abs(O[E])))}}}}return _};var r=n(5033),o=n(5202),i=n(6429),a=n(6760),s=n(5665),l=n(5352),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function d(e,t,n){this.lo=e,this.hi=t,this.pixelsPerDataUnit=n}var f=[0,0,0,1],h=[0,0,0,1];function p(e,t,n,r,o){for(var i=0;i<3;++i){for(var a=f,s=h,c=0;c<3;++c)s[c]=a[c]=n[c];s[3]=a[3]=1,s[i]+=1,l(s,s,t),s[3]<0&&(e[i]=1/0),a[i]-=1,l(a,a,t),a[3]<0&&(e[i]=1/0);var u=(a[0]/a[3]-s[0]/s[3])*r,d=(a[1]/a[3]-s[1]/s[3])*o;e[i]=.25*Math.sqrt(u*u+d*d)}return e}var m=[new d(1/0,-1/0,1/0),new d(1/0,-1/0,1/0),new d(1/0,-1/0,1/0)],g=[0,0,0]},2762:function(e,t,n){"use strict";var r=n(1888),o=n(5298),i=n(9618),a=["uint8","uint8_clamped","uint16","uint32","int8","int16","int32","float32"];function s(e,t,n,r,o){this.gl=e,this.type=t,this.handle=n,this.length=r,this.usage=o}var l=s.prototype;function c(e,t,n,r,o,i){var a=o.length*o.BYTES_PER_ELEMENT;if(i<0)return e.bufferData(t,o,r),a;if(a+i>n)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return e.bufferSubData(t,i,o),n}function u(e,t){for(var n=r.malloc(e.length,t),o=e.length,i=0;i<o;++i)n[i]=e[i];return n}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(e,t){if("number"!=typeof t&&(t=-1),this.bind(),"object"==typeof e&&void 0!==e.shape){var n=e.dtype;if(a.indexOf(n)<0&&(n="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER)n=gl.getExtension("OES_element_index_uint")&&"uint16"!==n?"uint32":"uint16";if(n===e.dtype&&function(e,t){for(var n=1,r=t.length-1;r>=0;--r){if(t[r]!==n)return!1;n*=e[r]}return!0}(e.shape,e.stride))0===e.offset&&e.data.length===e.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,e.data,t):this.length=c(this.gl,this.type,this.length,this.usage,e.data.subarray(e.offset,e.shape[0]),t);else{var s=r.malloc(e.size,n),l=i(s,e.shape);o.assign(l,e),this.length=c(this.gl,this.type,this.length,this.usage,t<0?s:s.subarray(0,e.size),t),r.free(s)}}else if(Array.isArray(e)){var d;d=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(e,"uint16"):u(e,"float32"),this.length=c(this.gl,this.type,this.length,this.usage,t<0?d:d.subarray(0,e.length),t),r.free(d)}else if("object"==typeof e&&"number"==typeof e.length)this.length=c(this.gl,this.type,this.length,this.usage,e,t);else{if("number"!=typeof e&&void 0!==e)throw new Error("gl-buffer: Invalid data type");if(t>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");(e|=0)<=0&&(e=1),this.gl.bufferData(this.type,0|e,this.usage),this.length=e}},e.exports=function(e,t,n,r){if(n=n||e.ARRAY_BUFFER,r=r||e.DYNAMIC_DRAW,n!==e.ARRAY_BUFFER&&n!==e.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(r!==e.DYNAMIC_DRAW&&r!==e.STATIC_DRAW&&r!==e.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 o=e.createBuffer(),i=new s(e,n,o,0,r);return i.update(t),i}},6405:function(e,t,n){"use strict";var r=n(2931);e.exports=function(e,t){var n=e.positions,o=e.vectors,i={positions:[],vertexIntensity:[],vertexIntensityBounds:e.vertexIntensityBounds,vectors:[],cells:[],coneOffset:e.coneOffset,colormap:e.colormap};if(0===e.positions.length)return t&&(t[0]=[0,0,0],t[1]=[0,0,0]),i;for(var a=0,s=1/0,l=-1/0,c=1/0,u=-1/0,d=1/0,f=-1/0,h=null,p=null,m=[],g=1/0,v=!1,y="raw"===e.coneSizemode,b=0;b<n.length;b++){var x=n[b];s=Math.min(x[0],s),l=Math.max(x[0],l),c=Math.min(x[1],c),u=Math.max(x[1],u),d=Math.min(x[2],d),f=Math.max(x[2],f);var _=o[b];if(r.length(_)>a&&(a=r.length(_)),b&&!y){var w=2*r.distance(h,x)/(r.length(p)+r.length(_));w?(g=Math.min(g,w),v=!1):v=!0}v||(h=x,p=_),m.push(_)}var j=[s,c,d],k=[l,u,f];t&&(t[0]=j,t[1]=k),0===a&&(a=1);var T=1/a;isFinite(g)||(g=1),i.vectorScale=g;var A=e.coneSize||(y?1:.5);e.absoluteConeSize&&(A=e.absoluteConeSize*T),i.coneScale=A;b=0;for(var M=0;b<n.length;b++)for(var S=(x=n[b])[0],C=x[1],E=x[2],L=m[b],O=r.length(L)*T,R=0;R<8;R++){i.positions.push([S,C,E,M++]),i.positions.push([S,C,E,M++]),i.positions.push([S,C,E,M++]),i.positions.push([S,C,E,M++]),i.positions.push([S,C,E,M++]),i.positions.push([S,C,E,M++]),i.vectors.push(L),i.vectors.push(L),i.vectors.push(L),i.vectors.push(L),i.vectors.push(L),i.vectors.push(L),i.vertexIntensity.push(O,O,O),i.vertexIntensity.push(O,O,O);var I=i.positions.length;i.cells.push([I-6,I-5,I-4],[I-3,I-2,I-1])}return i};var o=n(614);e.exports.createMesh=n(9060),e.exports.createConeMesh=function(t,n){return e.exports.createMesh(t,n,{shaders:o,traceType:"cone"})}},9060:function(e,t,n){"use strict";var r=n(9405),o=n(2762),i=n(8116),a=n(7766),s=n(6760),l=n(7608),c=n(9618),u=n(6729),d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(e,t,n,r,o,i,a,s,l,c,u){this.gl=e,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=t,this.dirty=!0,this.triShader=n,this.pickShader=r,this.trianglePositions=o,this.triangleVectors=i,this.triangleColors=s,this.triangleUVs=l,this.triangleIds=a,this.triangleVAO=c,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=u,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=d,this._view=d,this._projection=d,this._resolution=[1,1]}var h=f.prototype;function p(e,t){var n=r(e,t.meshShader.vertex,t.meshShader.fragment,null,t.meshShader.attributes);return n.attributes.position.location=0,n.attributes.color.location=2,n.attributes.uv.location=3,n.attributes.vector.location=4,n}function m(e,t){var n=r(e,t.pickShader.vertex,t.pickShader.fragment,null,t.pickShader.attributes);return n.attributes.position.location=0,n.attributes.id.location=1,n.attributes.vector.location=4,n}h.isOpaque=function(){return this.opacity>=1},h.isTransparent=function(){return this.opacity<1},h.pickSlots=1,h.setPickBase=function(e){this.pickId=e},h.update=function(e){e=e||{};var t=this.gl;this.dirty=!0,"lightPosition"in e&&(this.lightPosition=e.lightPosition),"opacity"in e&&(this.opacity=e.opacity),"ambient"in e&&(this.ambientLight=e.ambient),"diffuse"in e&&(this.diffuseLight=e.diffuse),"specular"in e&&(this.specularLight=e.specular),"roughness"in e&&(this.roughness=e.roughness),"fresnel"in e&&(this.fresnel=e.fresnel),void 0!==e.tubeScale&&(this.tubeScale=e.tubeScale),void 0!==e.vectorScale&&(this.vectorScale=e.vectorScale),void 0!==e.coneScale&&(this.coneScale=e.coneScale),void 0!==e.coneOffset&&(this.coneOffset=e.coneOffset),e.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=t.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=t.LINEAR,this.texture.setPixels(function(e){for(var t=u({colormap:e,nshades:256,format:"rgba"}),n=new Uint8Array(1024),r=0;r<256;++r){for(var o=t[r],i=0;i<3;++i)n[4*r+i]=o[i];n[4*r+3]=255*o[3]}return c(n,[256,256,4],[4,0,1])}(e.colormap)),this.texture.generateMipmap());var n=e.cells,r=e.positions,o=e.vectors;if(r&&n&&o){var i=[],a=[],s=[],l=[],d=[];this.cells=n,this.positions=r,this.vectors=o;var f=e.meshColor||[1,1,1,1],h=e.vertexIntensity,p=1/0,m=-1/0;if(h)if(e.vertexIntensityBounds)p=+e.vertexIntensityBounds[0],m=+e.vertexIntensityBounds[1];else for(var g=0;g<h.length;++g){var v=h[g];p=Math.min(p,v),m=Math.max(m,v)}else for(g=0;g<r.length;++g){v=r[g][2];p=Math.min(p,v),m=Math.max(m,v)}this.intensity=h||function(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e[r][2];return n}(r),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(g=0;g<r.length;++g)for(var y=r[g],b=0;b<3;++b)!isNaN(y[b])&&isFinite(y[b])&&(this.bounds[0][b]=Math.min(this.bounds[0][b],y[b]),this.bounds[1][b]=Math.max(this.bounds[1][b],y[b]));var x=0;e:for(g=0;g<n.length;++g){var _=n[g];switch(_.length){case 3:for(b=0;b<3;++b){y=r[j=_[b]];for(var w=0;w<3;++w)if(isNaN(y[w])||!isFinite(y[w]))continue e}for(b=0;b<3;++b){var j;y=r[j=_[2-b]];i.push(y[0],y[1],y[2],y[3]);var k=o[j];a.push(k[0],k[1],k[2],k[3]||0);var T,A=f;3===A.length?s.push(A[0],A[1],A[2],1):s.push(A[0],A[1],A[2],A[3]),T=h?[(h[j]-p)/(m-p),0]:[(y[2]-p)/(m-p),0],l.push(T[0],T[1]),d.push(g)}x+=1}}this.triangleCount=x,this.trianglePositions.update(i),this.triangleVectors.update(a),this.triangleColors.update(s),this.triangleUVs.update(l),this.triangleIds.update(new Uint32Array(d))}},h.drawTransparent=h.draw=function(e){e=e||{};for(var t=this.gl,n=e.model||d,r=e.view||d,o=e.projection||d,i=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],a=0;a<3;++a)i[0][a]=Math.max(i[0][a],this.clipBounds[0][a]),i[1][a]=Math.min(i[1][a],this.clipBounds[1][a]);var c={model:n,view:r,projection:o,inverseModel:d.slice(),clipBounds:i,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};c.inverseModel=l(c.inverseModel,c.model),t.disable(t.CULL_FACE),this.texture.bind(0);var u=new Array(16);s(u,c.view,c.model),s(u,c.projection,u),l(u,u);for(a=0;a<3;++a)c.eyePosition[a]=u[12+a]/u[15];var f=u[15];for(a=0;a<3;++a)f+=this.lightPosition[a]*u[4*a+3];for(a=0;a<3;++a){for(var h=u[12+a],p=0;p<3;++p)h+=u[4*p+a]*this.lightPosition[p];c.lightPosition[a]=h/f}if(this.triangleCount>0){var m=this.triShader;m.bind(),m.uniforms=c,this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},h.drawPick=function(e){e=e||{};for(var t=this.gl,n=e.model||d,r=e.view||d,o=e.projection||d,i=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],a=0;a<3;++a)i[0][a]=Math.max(i[0][a],this.clipBounds[0][a]),i[1][a]=Math.min(i[1][a],this.clipBounds[1][a]);this._model=[].slice.call(n),this._view=[].slice.call(r),this._projection=[].slice.call(o),this._resolution=[t.drawingBufferWidth,t.drawingBufferHeight];var s={model:n,view:r,projection:o,clipBounds:i,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount>0&&(this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},h.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;var t=e.value[0]+256*e.value[1]+65536*e.value[2],n=this.cells[t],r=this.positions[n[1]].slice(0,3),o={position:r,dataCoordinate:r,index:Math.floor(n[1]/48)};return"cone"===this.traceType?o.index=Math.floor(n[1]/48):"streamtube"===this.traceType&&(o.intensity=this.intensity[n[1]],o.velocity=this.vectors[n[1]].slice(0,3),o.divergence=this.vectors[n[1]][3],o.index=t),o},h.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()},e.exports=function(e,t,n){var r=n.shaders;1===arguments.length&&(e=(t=e).gl);var s=p(e,r),l=m(e,r),u=a(e,c(new Uint8Array([255,255,255,255]),[1,1,4]));u.generateMipmap(),u.minFilter=e.LINEAR_MIPMAP_LINEAR,u.magFilter=e.LINEAR;var d=o(e),h=o(e),g=o(e),v=o(e),y=o(e),b=i(e,[{buffer:d,type:e.FLOAT,size:4},{buffer:y,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:e.FLOAT,size:4},{buffer:v,type:e.FLOAT,size:2},{buffer:h,type:e.FLOAT,size:4}]),x=new f(e,u,s,l,d,h,y,g,v,b,n.traceType||"cone");return x.update(t),x}},614:function(e,t,n){var r=n(3236),o=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // 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).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),i=r(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),a=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // 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).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n gl_Position = projection * (view * conePosition);\n f_id = id;\n f_position = position.xyz;\n}\n"]),s=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);t.meshShader={vertex:o,fragment:i,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},t.pickShader={vertex:a,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(e){e.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(e,t,n){var r=n(737);e.exports=function(e){return r[e]}},9165:function(e,t,n){"use strict";e.exports=function(e){var t=e.gl,n=r(t),a=o(t,[{buffer:n,type:t.FLOAT,size:3,offset:0,stride:40},{buffer:n,type:t.FLOAT,size:4,offset:12,stride:40},{buffer:n,type:t.FLOAT,size:3,offset:28,stride:40}]),l=i(t);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(t,n,a,l);return c.update(e),c};var r=n(2762),o=n(8116),i=n(3436),a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(e,t,n,r){this.gl=e,this.shader=r,this.buffer=t,this.vao=n,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 l=s.prototype;function c(e,t){for(var n=0;n<3;++n)e[0][n]=Math.min(e[0][n],t[n]),e[1][n]=Math.max(e[1][n],t[n])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(e){var t=this.gl,n=this.shader.uniforms;this.shader.bind();var r=n.view=e.view||a,o=n.projection=e.projection||a;n.model=e.model||a,n.clipBounds=this.clipBounds,n.opacity=this.opacity;var i=r[12],s=r[13],l=r[14],c=r[15],u=(e._ortho||!1?2:1)*this.pixelRatio*(o[3]*i+o[7]*s+o[11]*l+o[15]*c)/t.drawingBufferHeight;this.vao.bind();for(var d=0;d<3;++d)t.lineWidth(this.lineWidth[d]*this.pixelRatio),n.capSize=this.capSize[d]*u,this.lineCount[d]&&t.drawArrays(t.LINES,this.lineOffset[d],this.lineCount[d]);this.vao.unbind()};var u=function(){for(var e=new Array(3),t=0;t<3;++t){for(var n=[],r=1;r<=2;++r)for(var o=-1;o<=1;o+=2){var i=[0,0,0];i[(r+t)%3]=o,n.push(i)}e[t]=n}return e}();function d(e,t,n,r){for(var o=u[r],i=0;i<o.length;++i){var a=o[i];e.push(t[0],t[1],t[2],n[0],n[1],n[2],n[3],a[0],a[1],a[2])}return o.length}l.update=function(e){"lineWidth"in(e=e||{})&&(this.lineWidth=e.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),"capSize"in e&&(this.capSize=e.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,"opacity"in e&&(this.opacity=+e.opacity,this.opacity<1&&(this.hasAlpha=!0));var t=e.color||[[0,0,0],[0,0,0],[0,0,0]],n=e.position,r=e.error;if(Array.isArray(t[0])||(t=[t,t,t]),n&&r){var o=[],i=n.length,a=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s<3;++s){this.lineOffset[s]=a;e:for(var l=0;l<i;++l){for(var u=n[l],f=0;f<3;++f)if(isNaN(u[f])||!isFinite(u[f]))continue e;var h=r[l],p=t[s];if(Array.isArray(p[0])&&(p=t[l]),3===p.length?p=[p[0],p[1],p[2],1]:4===p.length&&(p=[p[0],p[1],p[2],p[3]],!this.hasAlpha&&p[3]<1&&(this.hasAlpha=!0)),!isNaN(h[0][s])&&!isNaN(h[1][s])){var m;if(h[0][s]<0)(m=u.slice())[s]+=h[0][s],o.push(u[0],u[1],u[2],p[0],p[1],p[2],p[3],0,0,0,m[0],m[1],m[2],p[0],p[1],p[2],p[3],0,0,0),c(this.bounds,m),a+=2+d(o,m,p,s);if(h[1][s]>0)(m=u.slice())[s]+=h[1][s],o.push(u[0],u[1],u[2],p[0],p[1],p[2],p[3],0,0,0,m[0],m[1],m[2],p[0],p[1],p[2],p[3],0,0,0),c(this.bounds,m),a+=2+d(o,m,p,s)}}this.lineCount[s]=a-this.lineOffset[s]}this.buffer.update(o)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},3436:function(e,t,n){"use strict";var r=n(3236),o=n(9405),i=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n vec4 worldPosition = model * vec4(position, 1.0);\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n gl_Position = projection * (view * worldPosition);\n fragColor = color;\n fragPosition = position;\n}"]),a=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n gl_FragColor = opacity * fragColor;\n}"]);e.exports=function(e){return o(e,i,a,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(e,t,n){"use strict";var r=n(7766);e.exports=function(e,t,n,r){o||(o=e.FRAMEBUFFER_UNSUPPORTED,i=e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,a=e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=e.getExtension("WEBGL_draw_buffers");!l&&c&&function(e,t){var n=e.getParameter(t.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(n+1);for(var r=0;r<=n;++r){for(var o=new Array(n),i=0;i<r;++i)o[i]=e.COLOR_ATTACHMENT0+i;for(i=r;i<n;++i)o[i]=e.NONE;l[r]=o}}(e,c);Array.isArray(t)&&(r=n,n=0|t[1],t=0|t[0]);if("number"!=typeof t)throw new Error("gl-fbo: Missing shape parameter");var u=e.getParameter(e.MAX_RENDERBUFFER_SIZE);if(t<0||t>u||n<0||n>u)throw new Error("gl-fbo: Parameters are too large for FBO");var d=1;if("color"in(r=r||{})){if((d=Math.max(0|r.color,0))<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(d>1){if(!c)throw new Error("gl-fbo: Multiple draw buffer extension not supported");if(d>e.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+d+" draw buffers")}}var f=e.UNSIGNED_BYTE,h=e.getExtension("OES_texture_float");if(r.float&&d>0){if(!h)throw new Error("gl-fbo: Context does not support floating point textures");f=e.FLOAT}else r.preferFloat&&d>0&&h&&(f=e.FLOAT);var m=!0;"depth"in r&&(m=!!r.depth);var g=!1;"stencil"in r&&(g=!!r.stencil);return new p(e,t,n,f,d,m,g,c)};var o,i,a,s,l=null;function c(e){return[e.getParameter(e.FRAMEBUFFER_BINDING),e.getParameter(e.RENDERBUFFER_BINDING),e.getParameter(e.TEXTURE_BINDING_2D)]}function u(e,t){e.bindFramebuffer(e.FRAMEBUFFER,t[0]),e.bindRenderbuffer(e.RENDERBUFFER,t[1]),e.bindTexture(e.TEXTURE_2D,t[2])}function d(e){switch(e){case o:throw new Error("gl-fbo: Framebuffer unsupported");case i:throw new Error("gl-fbo: Framebuffer incomplete attachment");case a:throw new Error("gl-fbo: Framebuffer incomplete dimensions");case s:throw new Error("gl-fbo: Framebuffer incomplete missing attachment");default:throw new Error("gl-fbo: Framebuffer failed for unspecified reason")}}function f(e,t,n,o,i,a){if(!o)return null;var s=r(e,t,n,i,o);return s.magFilter=e.NEAREST,s.minFilter=e.NEAREST,s.mipSamples=1,s.bind(),e.framebufferTexture2D(e.FRAMEBUFFER,a,e.TEXTURE_2D,s.handle,0),s}function h(e,t,n,r,o){var i=e.createRenderbuffer();return e.bindRenderbuffer(e.RENDERBUFFER,i),e.renderbufferStorage(e.RENDERBUFFER,r,t,n),e.framebufferRenderbuffer(e.FRAMEBUFFER,o,e.RENDERBUFFER,i),i}function p(e,t,n,r,o,i,a,s){this.gl=e,this._shape=[0|t,0|n],this._destroyed=!1,this._ext=s,this.color=new Array(o);for(var p=0;p<o;++p)this.color[p]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=r,this._useDepth=i,this._useStencil=a;var m=this,g=[0|t,0|n];Object.defineProperties(g,{0:{get:function(){return m._shape[0]},set:function(e){return m.width=e}},1:{get:function(){return m._shape[1]},set:function(e){return m.height=e}}}),this._shapeVector=g,function(e){var t=c(e.gl),n=e.gl,r=e.handle=n.createFramebuffer(),o=e._shape[0],i=e._shape[1],a=e.color.length,s=e._ext,p=e._useStencil,m=e._useDepth,g=e._colorType;n.bindFramebuffer(n.FRAMEBUFFER,r);for(var v=0;v<a;++v)e.color[v]=f(n,o,i,g,n.RGBA,n.COLOR_ATTACHMENT0+v);0===a?(e._color_rb=h(n,o,i,n.RGBA4,n.COLOR_ATTACHMENT0),s&&s.drawBuffersWEBGL(l[0])):a>1&&s.drawBuffersWEBGL(l[a]);var y=n.getExtension("WEBGL_depth_texture");y?p?e.depth=f(n,o,i,y.UNSIGNED_INT_24_8_WEBGL,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):m&&(e.depth=f(n,o,i,n.UNSIGNED_SHORT,n.DEPTH_COMPONENT,n.DEPTH_ATTACHMENT)):m&&p?e._depth_rb=h(n,o,i,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):m?e._depth_rb=h(n,o,i,n.DEPTH_COMPONENT16,n.DEPTH_ATTACHMENT):p&&(e._depth_rb=h(n,o,i,n.STENCIL_INDEX,n.STENCIL_ATTACHMENT));var b=n.checkFramebufferStatus(n.FRAMEBUFFER);if(b!==n.FRAMEBUFFER_COMPLETE){e._destroyed=!0,n.bindFramebuffer(n.FRAMEBUFFER,null),n.deleteFramebuffer(e.handle),e.handle=null,e.depth&&(e.depth.dispose(),e.depth=null),e._depth_rb&&(n.deleteRenderbuffer(e._depth_rb),e._depth_rb=null);for(v=0;v<e.color.length;++v)e.color[v].dispose(),e.color[v]=null;e._color_rb&&(n.deleteRenderbuffer(e._color_rb),e._color_rb=null),u(n,t),d(b)}u(n,t)}(this)}var m=p.prototype;function g(e,t,n){if(e._destroyed)throw new Error("gl-fbo: Can't resize destroyed FBO");if(e._shape[0]!==t||e._shape[1]!==n){var r=e.gl,o=r.getParameter(r.MAX_RENDERBUFFER_SIZE);if(t<0||t>o||n<0||n>o)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");e._shape[0]=t,e._shape[1]=n;for(var i=c(r),a=0;a<e.color.length;++a)e.color[a].shape=e._shape;e._color_rb&&(r.bindRenderbuffer(r.RENDERBUFFER,e._color_rb),r.renderbufferStorage(r.RENDERBUFFER,r.RGBA4,e._shape[0],e._shape[1])),e.depth&&(e.depth.shape=e._shape),e._depth_rb&&(r.bindRenderbuffer(r.RENDERBUFFER,e._depth_rb),e._useDepth&&e._useStencil?r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,e._shape[0],e._shape[1]):e._useDepth?r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_COMPONENT16,e._shape[0],e._shape[1]):e._useStencil&&r.renderbufferStorage(r.RENDERBUFFER,r.STENCIL_INDEX,e._shape[0],e._shape[1])),r.bindFramebuffer(r.FRAMEBUFFER,e.handle);var s=r.checkFramebufferStatus(r.FRAMEBUFFER);s!==r.FRAMEBUFFER_COMPLETE&&(e.dispose(),u(r,i),d(s)),u(r,i)}}Object.defineProperties(m,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(e){if(Array.isArray(e)||(e=[0|e,0|e]),2!==e.length)throw new Error("gl-fbo: Shape vector must be length 2");var t=0|e[0],n=0|e[1];return g(this,t,n),[t,n]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(e){return g(this,e|=0,this._shape[1]),e},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(e){return e|=0,g(this,this._shape[0],e),e},enumerable:!1}}),m.bind=function(){if(!this._destroyed){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,this.handle),e.viewport(0,0,this._shape[0],this._shape[1])}},m.dispose=function(){if(!this._destroyed){this._destroyed=!0;var e=this.gl;e.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(e.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var t=0;t<this.color.length;++t)this.color[t].dispose(),this.color[t]=null;this._color_rb&&(e.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},2992:function(e,t,n){var r=n(3387).sprintf,o=n(5171),i=n(1848),a=n(1085);e.exports=function(e,t,n){"use strict";var s=i(t)||"of unknown name (see npm glsl-shader-name)",l="unknown type";void 0!==n&&(l=n===o.FRAGMENT_SHADER?"fragment":"vertex");for(var c=r("Error compiling %s shader %s:\n",l,s),u=r("%s%s",c,e),d=e.split("\n"),f={},h=0;h<d.length;h++){var p=d[h];if(""!==p&&"\0"!==p){var m=parseInt(p.split(":")[2]);if(isNaN(m))throw new Error(r("Could not parse error: %s",p));f[m]=p}}var g=a(t).split("\n");for(h=0;h<g.length;h++)if(f[h+3]||f[h+2]||f[h+1]){var v=g[h];if(c+=v+"\n",f[h+1]){var y=f[h+1];y=y.substr(y.split(":",3).join(":").length+1).trim(),c+=r("^^^ %s\n\n",y)}}return{long:c.trim(),short:u.trim()}}},2510:function(e,t,n){"use strict";e.exports=function(e,t){var n=e.gl,r=a(n,l.vertex,l.fragment),o=a(n,l.pickVertex,l.pickFragment),i=s(n),u=s(n),d=s(n),f=s(n),h=new c(e,r,o,i,u,d,f);return h.update(t),e.addObject(h),h};var r=n(2478),o=n(7762),i=n(1888),a=n(9405),s=n(2762),l=n(6768);function c(e,t,n,r,o,i,a){this.plot=e,this.shader=t,this.pickShader=n,this.positionBuffer=r,this.weightBuffer=o,this.colorBuffer=i,this.idBuffer=a,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,d=c.prototype,f=[0,0,1,0,0,1,1,0,1,1,0,1];d.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var e=this.plot,t=this.shader,n=this.bounds,r=this.numVertices;if(!(r<=0)){var o=e.gl,i=e.dataBox,a=n[2]-n[0],s=n[3]-n[1],l=i[2]-i[0],c=i[3]-i[1];u[0]=2*a/l,u[4]=2*s/c,u[6]=2*(n[0]-i[0])/l-1,u[7]=2*(n[1]-i[1])/c-1,t.bind();var d=t.uniforms;d.viewTransform=u,d.shape=this.shape;var f=t.attributes;this.positionBuffer.bind(),f.position.pointer(),this.weightBuffer.bind(),f.weight.pointer(o.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),f.color.pointer(o.UNSIGNED_BYTE,!0),o.drawArrays(o.TRIANGLES,0,r)}}),d.drawPick=function(){var e=[1,0,0,0,1,0,0,0,1],t=[0,0,0,0];return function(n){var r=this.plot,o=this.pickShader,i=this.bounds,a=this.numVertices;if(!(a<=0)){var s=r.gl,l=r.dataBox,c=i[2]-i[0],u=i[3]-i[1],d=l[2]-l[0],f=l[3]-l[1];e[0]=2*c/d,e[4]=2*u/f,e[6]=2*(i[0]-l[0])/d-1,e[7]=2*(i[1]-l[1])/f-1;for(var h=0;h<4;++h)t[h]=n>>8*h&255;this.pickOffset=n,o.bind();var p=o.uniforms;p.viewTransform=e,p.pickOffset=t,p.shape=this.shape;var m=o.attributes;return this.positionBuffer.bind(),m.position.pointer(),this.weightBuffer.bind(),m.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),m.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,a),n+this.shape[0]*this.shape[1]}}}(),d.pick=function(e,t,n){var r=this.pickOffset,o=this.shape[0]*this.shape[1];if(n<r||n>=r+o)return null;var i=n-r,a=this.xData,s=this.yData;return{object:this,pointId:i,dataCoord:[a[i%this.shape[0]],s[i/this.shape[0]|0]]}},d.update=function(e){var t=(e=e||{}).shape||[0,0],n=e.x||o(t[0]),a=e.y||o(t[1]),s=e.z||new Float32Array(t[0]*t[1]),l=!1!==e.zsmooth;this.xData=n,this.yData=a;var c,u,d,h,p=e.colorLevels||[0],m=e.colorValues||[0,0,0,1],g=p.length,v=this.bounds;l?(c=v[0]=n[0],u=v[1]=a[0],d=v[2]=n[n.length-1],h=v[3]=a[a.length-1]):(c=v[0]=n[0]+(n[1]-n[0])/2,u=v[1]=a[0]+(a[1]-a[0])/2,d=v[2]=n[n.length-1]+(n[n.length-1]-n[n.length-2])/2,h=v[3]=a[a.length-1]+(a[a.length-1]-a[a.length-2])/2);var y=1/(d-c),b=1/(h-u),x=t[0],_=t[1];this.shape=[x,_];var w=(l?(x-1)*(_-1):x*_)*(f.length>>>1);this.numVertices=w;for(var j=i.mallocUint8(4*w),k=i.mallocFloat32(2*w),T=i.mallocUint8(2*w),A=i.mallocUint32(w),M=0,S=l?x-1:x,C=l?_-1:_,E=0;E<C;++E){var L,O;l?(L=b*(a[E]-u),O=b*(a[E+1]-u)):(L=E<_-1?b*(a[E]-(a[E+1]-a[E])/2-u):b*(a[E]-(a[E]-a[E-1])/2-u),O=E<_-1?b*(a[E]+(a[E+1]-a[E])/2-u):b*(a[E]+(a[E]-a[E-1])/2-u));for(var R=0;R<S;++R){var I,P;l?(I=y*(n[R]-c),P=y*(n[R+1]-c)):(I=R<x-1?y*(n[R]-(n[R+1]-n[R])/2-c):y*(n[R]-(n[R]-n[R-1])/2-c),P=R<x-1?y*(n[R]+(n[R+1]-n[R])/2-c):y*(n[R]+(n[R]-n[R-1])/2-c));for(var D=0;D<f.length;D+=2){var z,N,F,B,U=f[D],H=f[D+1],V=s[l?(E+H)*x+(R+U):E*x+R],G=r.le(p,V);if(G<0)z=m[0],N=m[1],F=m[2],B=m[3];else if(G===g-1)z=m[4*g-4],N=m[4*g-3],F=m[4*g-2],B=m[4*g-1];else{var q=(V-p[G])/(p[G+1]-p[G]),W=1-q,Y=4*G,X=4*(G+1);z=W*m[Y]+q*m[X],N=W*m[Y+1]+q*m[X+1],F=W*m[Y+2]+q*m[X+2],B=W*m[Y+3]+q*m[X+3]}j[4*M]=255*z,j[4*M+1]=255*N,j[4*M+2]=255*F,j[4*M+3]=255*B,k[2*M]=.5*I+.5*P,k[2*M+1]=.5*L+.5*O,T[2*M]=U,T[2*M+1]=H,A[M]=E*x+R,M+=1}}}this.positionBuffer.update(k),this.weightBuffer.update(T),this.colorBuffer.update(j),this.idBuffer.update(A),i.free(k),i.free(j),i.free(T),i.free(A)},d.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},6768:function(e,t,n){"use strict";var r=n(3236);e.exports={fragment:r(["precision lowp float;\n#define GLSLIFY 1\nvarying vec4 fragColor;\nvoid main() {\n gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\n}\n"]),vertex:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 color;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragColor;\n\nvoid main() {\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n fragColor = color;\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n"]),pickFragment:r(["precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nuniform vec2 shape;\nuniform vec4 pickOffset;\n\nvoid main() {\n vec2 d = step(.5, vWeight);\n vec4 id = fragId + pickOffset;\n id.x += d.x + d.y*shape.x;\n\n id.y += floor(id.x / 256.0);\n id.x -= floor(id.x / 256.0) * 256.0;\n\n id.z += floor(id.y / 256.0);\n id.y -= floor(id.y / 256.0) * 256.0;\n\n id.w += floor(id.z / 256.0);\n id.z -= floor(id.z / 256.0) * 256.0;\n\n gl_FragColor = id/255.;\n}\n"]),pickVertex:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nvoid main() {\n vWeight = weight;\n\n fragId = pickId;\n\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n"])}},7319:function(e,t,n){var r=n(3236),o=n(9405),i=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n vec4 startPoint = project(position);\n vec4 endPoint = project(nextPosition);\n\n vec2 A = startPoint.xy / startPoint.w;\n vec2 B = endPoint.xy / endPoint.w;\n\n float clipAngle = atan(\n (B.y - A.y) * screenShape.y,\n (B.x - A.x) * screenShape.x\n );\n\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n sin(clipAngle),\n -cos(clipAngle)\n ) / screenShape;\n\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n worldPosition = position;\n pixelArcLength = arcLength;\n fragColor = color;\n}\n"]),a=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float dashScale;\nuniform float opacity;\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n if(dashWeight < 0.5) {\n discard;\n }\n gl_FragColor = fragColor * opacity;\n}\n"]),s=r(["precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX 1.70141184e38\n#define FLOAT_MIN 1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n float av = abs(v);\n\n //Handle special cases\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n }\n\n vec4 c = vec4(0,0,0,0);\n\n //Compute exponent and mantissa\n float e = floor(log2(av));\n float m = av * pow(2.0, -e) - 1.0;\n\n //Unpack mantissa\n c[1] = floor(128.0 * m);\n m -= c[1] / 128.0;\n c[2] = floor(32768.0 * m);\n m -= c[2] / 32768.0;\n c[3] = floor(8388608.0 * m);\n\n //Unpack exponent\n float ebias = e + 127.0;\n c[0] = floor(ebias / 2.0);\n ebias -= c[0] * 2.0;\n c[1] += floor(ebias) * 128.0;\n\n //Unpack sign bit\n c[0] += 128.0 * step(0.0, -v);\n\n //Scale back to range\n return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}"]),l=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];t.createShader=function(e){return o(e,i,a,null,l)},t.createPickShader=function(e){return o(e,i,s,null,l)}},5714:function(e,t,n){"use strict";e.exports=function(e){var t=e.gl||e.scene&&e.scene.gl,n=d(t);n.attributes.position.location=0,n.attributes.nextPosition.location=1,n.attributes.arcLength.location=2,n.attributes.lineWidth.location=3,n.attributes.color.location=4;var a=f(t);a.attributes.position.location=0,a.attributes.nextPosition.location=1,a.attributes.arcLength.location=2,a.attributes.lineWidth.location=3,a.attributes.color.location=4;for(var s=r(t),l=o(t,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),h=0;h<1024;++h)u.data[h]=255;var p=i(t,u);p.wrap=t.REPEAT;var m=new v(t,n,a,s,l,p);return m.update(e),m};var r=n(2762),o=n(8116),i=n(7766),a=new Uint8Array(4),s=new Float32Array(a.buffer);var l=n(2478),c=n(9618),u=n(7319),d=u.createShader,f=u.createPickShader,h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function p(e,t){for(var n=0,r=0;r<3;++r){var o=e[r]-t[r];n+=o*o}return Math.sqrt(n)}function m(e){for(var t=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],n=0;n<3;++n)t[0][n]=Math.max(e[0][n],t[0][n]),t[1][n]=Math.min(e[1][n],t[1][n]);return t}function g(e,t,n,r){this.arcLength=e,this.position=t,this.index=n,this.dataCoordinate=r}function v(e,t,n,r,o,i){this.gl=e,this.shader=t,this.pickShader=n,this.buffer=r,this.vao=o,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=i,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(e){this.pickId=e},y.drawTransparent=y.draw=function(e){if(this.vertexCount){var t=this.gl,n=this.shader,r=this.vao;n.bind(),n.uniforms={model:e.model||h,view:e.view||h,projection:e.projection||h,clipBounds:m(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[t.drawingBufferWidth,t.drawingBufferHeight],pixelRatio:this.pixelRatio},r.bind(),r.draw(t.TRIANGLE_STRIP,this.vertexCount),r.unbind()}},y.drawPick=function(e){if(this.vertexCount){var t=this.gl,n=this.pickShader,r=this.vao;n.bind(),n.uniforms={model:e.model||h,view:e.view||h,projection:e.projection||h,pickId:this.pickId,clipBounds:m(this.clipBounds),screenShape:[t.drawingBufferWidth,t.drawingBufferHeight],pixelRatio:this.pixelRatio},r.bind(),r.draw(t.TRIANGLE_STRIP,this.vertexCount),r.unbind()}},y.update=function(e){var t,n;this.dirty=!0;var r=!!e.connectGaps;"dashScale"in e&&(this.dashScale=e.dashScale),this.hasAlpha=!1,"opacity"in e&&(this.opacity=+e.opacity,this.opacity<1&&(this.hasAlpha=!0));var o=[],i=[],a=[],s=0,u=0,d=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],f=e.position||e.positions;if(f){var h=e.color||e.colors||[0,0,0,1],m=e.lineWidth||1,g=!1;e:for(t=1;t<f.length;++t){var v,y,b,x=f[t-1],_=f[t];for(i.push(s),a.push(x.slice()),n=0;n<3;++n){if(isNaN(x[n])||isNaN(_[n])||!isFinite(x[n])||!isFinite(_[n])){if(!r&&o.length>0){for(var w=0;w<24;++w)o.push(o[o.length-12]);u+=2,g=!0}continue e}d[0][n]=Math.min(d[0][n],x[n],_[n]),d[1][n]=Math.max(d[1][n],x[n],_[n])}Array.isArray(h[0])?(v=h.length>t-1?h[t-1]:h.length>0?h[h.length-1]:[0,0,0,1],y=h.length>t?h[t]:h.length>0?h[h.length-1]:[0,0,0,1]):v=y=h,3===v.length&&(v=[v[0],v[1],v[2],1]),3===y.length&&(y=[y[0],y[1],y[2],1]),!this.hasAlpha&&v[3]<1&&(this.hasAlpha=!0),b=Array.isArray(m)?m.length>t-1?m[t-1]:m.length>0?m[m.length-1]:[0,0,0,1]:m;var j=s;if(s+=p(x,_),g){for(n=0;n<2;++n)o.push(x[0],x[1],x[2],_[0],_[1],_[2],j,b,v[0],v[1],v[2],v[3]);u+=2,g=!1}o.push(x[0],x[1],x[2],_[0],_[1],_[2],j,b,v[0],v[1],v[2],v[3],x[0],x[1],x[2],_[0],_[1],_[2],j,-b,v[0],v[1],v[2],v[3],_[0],_[1],_[2],x[0],x[1],x[2],s,-b,y[0],y[1],y[2],y[3],_[0],_[1],_[2],x[0],x[1],x[2],s,b,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(o),i.push(s),a.push(f[f.length-1].slice()),this.bounds=d,this.vertexCount=u,this.points=a,this.arcLength=i,"dashes"in e){var k=e.dashes.slice();for(k.unshift(0),t=1;t<k.length;++t)k[t]=k[t-1]+k[t];var T=c(new Array(1024),[256,1,4]);for(t=0;t<256;++t){for(n=0;n<4;++n)T.set(t,0,n,0);1&l.le(k,k[k.length-1]*t/255)?T.set(t,0,0,0):T.set(t,0,0,255)}this.texture.setPixels(T)}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;var t=function(e,t,n,r){return a[0]=r,a[1]=n,a[2]=t,a[3]=e,s[0]}(e.value[0],e.value[1],e.value[2],0),n=l.le(this.arcLength,t);if(n<0)return null;if(n===this.arcLength.length-1)return new g(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),n);for(var r=this.points[n],o=this.points[Math.min(n+1,this.points.length-1)],i=(t-this.arcLength[n])/(this.arcLength[n+1]-this.arcLength[n]),c=1-i,u=[0,0,0],d=0;d<3;++d)u[d]=c*r[d]+i*o[d];var f=Math.min(i<.5?n:n+1,this.points.length-1);return new g(t,u,f,this.points[f])}},1903:function(e){e.exports=function(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},6864:function(e){e.exports=function(){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}},9921:function(e){e.exports=function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=e[12],p=e[13],m=e[14],g=e[15];return(t*a-n*i)*(d*g-f*m)-(t*s-r*i)*(u*g-f*p)+(t*l-o*i)*(u*m-d*p)+(n*s-r*a)*(c*g-f*h)-(n*l-o*a)*(c*m-d*h)+(r*l-o*s)*(c*p-u*h)}},7399:function(e){e.exports=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n+n,s=r+r,l=o+o,c=n*a,u=r*a,d=r*s,f=o*a,h=o*s,p=o*l,m=i*a,g=i*s,v=i*l;return e[0]=1-d-p,e[1]=u+v,e[2]=f-g,e[3]=0,e[4]=u-v,e[5]=1-c-p,e[6]=h+m,e[7]=0,e[8]=f+g,e[9]=h-m,e[10]=1-c-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},6743:function(e){e.exports=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],s=r+r,l=o+o,c=i+i,u=r*s,d=r*l,f=r*c,h=o*l,p=o*c,m=i*c,g=a*s,v=a*l,y=a*c;return e[0]=1-(h+m),e[1]=d+y,e[2]=f-v,e[3]=0,e[4]=d-y,e[5]=1-(u+m),e[6]=p+g,e[7]=0,e[8]=f+v,e[9]=p-g,e[10]=1-(u+h),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}},7894:function(e){e.exports=function(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}},7608:function(e){e.exports=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],f=t[10],h=t[11],p=t[12],m=t[13],g=t[14],v=t[15],y=n*s-r*a,b=n*l-o*a,x=n*c-i*a,_=r*l-o*s,w=r*c-i*s,j=o*c-i*l,k=u*m-d*p,T=u*g-f*p,A=u*v-h*p,M=d*g-f*m,S=d*v-h*m,C=f*v-h*g,E=y*C-b*S+x*M+_*A-w*T+j*k;if(!E)return null;return E=1/E,e[0]=(s*C-l*S+c*M)*E,e[1]=(o*S-r*C-i*M)*E,e[2]=(m*j-g*w+v*_)*E,e[3]=(f*w-d*j-h*_)*E,e[4]=(l*A-a*C-c*T)*E,e[5]=(n*C-o*A+i*T)*E,e[6]=(g*x-p*j-v*b)*E,e[7]=(u*j-f*x+h*b)*E,e[8]=(a*S-s*A+c*k)*E,e[9]=(r*A-n*S-i*k)*E,e[10]=(p*w-m*x+v*y)*E,e[11]=(d*x-u*w-h*y)*E,e[12]=(s*T-a*M-l*k)*E,e[13]=(n*M-r*T+o*k)*E,e[14]=(m*b-p*_-g*y)*E,e[15]=(u*_-d*b+f*y)*E,e}},6582:function(e,t,n){var r=n(7894);e.exports=function(e,t,n,o){var i,a,s,l,c,u,d,f,h,p,m=t[0],g=t[1],v=t[2],y=o[0],b=o[1],x=o[2],_=n[0],w=n[1],j=n[2];if(Math.abs(m-_)<1e-6&&Math.abs(g-w)<1e-6&&Math.abs(v-j)<1e-6)return r(e);d=m-_,f=g-w,h=v-j,p=1/Math.sqrt(d*d+f*f+h*h),i=b*(h*=p)-x*(f*=p),a=x*(d*=p)-y*h,s=y*f-b*d,(p=Math.sqrt(i*i+a*a+s*s))?(i*=p=1/p,a*=p,s*=p):(i=0,a=0,s=0);l=f*s-h*a,c=h*i-d*s,u=d*a-f*i,(p=Math.sqrt(l*l+c*c+u*u))?(l*=p=1/p,c*=p,u*=p):(l=0,c=0,u=0);return e[0]=i,e[1]=l,e[2]=d,e[3]=0,e[4]=a,e[5]=c,e[6]=f,e[7]=0,e[8]=s,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*m+a*g+s*v),e[13]=-(l*m+c*g+u*v),e[14]=-(d*m+f*g+h*v),e[15]=1,e}},6760:function(e){e.exports=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],f=t[9],h=t[10],p=t[11],m=t[12],g=t[13],v=t[14],y=t[15],b=n[0],x=n[1],_=n[2],w=n[3];return e[0]=b*r+x*s+_*d+w*m,e[1]=b*o+x*l+_*f+w*g,e[2]=b*i+x*c+_*h+w*v,e[3]=b*a+x*u+_*p+w*y,b=n[4],x=n[5],_=n[6],w=n[7],e[4]=b*r+x*s+_*d+w*m,e[5]=b*o+x*l+_*f+w*g,e[6]=b*i+x*c+_*h+w*v,e[7]=b*a+x*u+_*p+w*y,b=n[8],x=n[9],_=n[10],w=n[11],e[8]=b*r+x*s+_*d+w*m,e[9]=b*o+x*l+_*f+w*g,e[10]=b*i+x*c+_*h+w*v,e[11]=b*a+x*u+_*p+w*y,b=n[12],x=n[13],_=n[14],w=n[15],e[12]=b*r+x*s+_*d+w*m,e[13]=b*o+x*l+_*f+w*g,e[14]=b*i+x*c+_*h+w*v,e[15]=b*a+x*u+_*p+w*y,e}},4040:function(e){e.exports=function(e,t,n,r,o,i,a){var s=1/(t-n),l=1/(r-o),c=1/(i-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(o+r)*l,e[14]=(a+i)*c,e[15]=1,e}},4772:function(e){e.exports=function(e,t,n,r,o){var i=1/Math.tan(t/2),a=1/(r-o);return e[0]=i/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(o+r)*a,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*o*r*a,e[15]=0,e}},6079:function(e){e.exports=function(e,t,n,r){var o,i,a,s,l,c,u,d,f,h,p,m,g,v,y,b,x,_,w,j,k,T,A,M,S=r[0],C=r[1],E=r[2],L=Math.sqrt(S*S+C*C+E*E);if(Math.abs(L)<1e-6)return null;S*=L=1/L,C*=L,E*=L,o=Math.sin(n),i=Math.cos(n),a=1-i,s=t[0],l=t[1],c=t[2],u=t[3],d=t[4],f=t[5],h=t[6],p=t[7],m=t[8],g=t[9],v=t[10],y=t[11],b=S*S*a+i,x=C*S*a+E*o,_=E*S*a-C*o,w=S*C*a-E*o,j=C*C*a+i,k=E*C*a+S*o,T=S*E*a+C*o,A=C*E*a-S*o,M=E*E*a+i,e[0]=s*b+d*x+m*_,e[1]=l*b+f*x+g*_,e[2]=c*b+h*x+v*_,e[3]=u*b+p*x+y*_,e[4]=s*w+d*j+m*k,e[5]=l*w+f*j+g*k,e[6]=c*w+h*j+v*k,e[7]=u*w+p*j+y*k,e[8]=s*T+d*A+m*M,e[9]=l*T+f*A+g*M,e[10]=c*T+h*A+v*M,e[11]=u*T+p*A+y*M,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e}},5567:function(e){e.exports=function(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],f=t[11];t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[4]=i*o+c*r,e[5]=a*o+u*r,e[6]=s*o+d*r,e[7]=l*o+f*r,e[8]=c*o-i*r,e[9]=u*o-a*r,e[10]=d*o-s*r,e[11]=f*o-l*r,e}},2408:function(e){e.exports=function(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[0],a=t[1],s=t[2],l=t[3],c=t[8],u=t[9],d=t[10],f=t[11];t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=i*o-c*r,e[1]=a*o-u*r,e[2]=s*o-d*r,e[3]=l*o-f*r,e[8]=i*r+c*o,e[9]=a*r+u*o,e[10]=s*r+d*o,e[11]=l*r+f*o,e}},7089:function(e){e.exports=function(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[0],a=t[1],s=t[2],l=t[3],c=t[4],u=t[5],d=t[6],f=t[7];t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=i*o+c*r,e[1]=a*o+u*r,e[2]=s*o+d*r,e[3]=l*o+f*r,e[4]=c*o-i*r,e[5]=u*o-a*r,e[6]=d*o-s*r,e[7]=f*o-l*r,e}},2504:function(e){e.exports=function(e,t,n){var r=n[0],o=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*o,e[5]=t[5]*o,e[6]=t[6]*o,e[7]=t[7]*o,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},7656:function(e){e.exports=function(e,t,n){var r,o,i,a,s,l,c,u,d,f,h,p,m=n[0],g=n[1],v=n[2];t===e?(e[12]=t[0]*m+t[4]*g+t[8]*v+t[12],e[13]=t[1]*m+t[5]*g+t[9]*v+t[13],e[14]=t[2]*m+t[6]*g+t[10]*v+t[14],e[15]=t[3]*m+t[7]*g+t[11]*v+t[15]):(r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],f=t[9],h=t[10],p=t[11],e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=d,e[9]=f,e[10]=h,e[11]=p,e[12]=r*m+s*g+d*v+t[12],e[13]=o*m+l*g+f*v+t[13],e[14]=i*m+c*g+h*v+t[14],e[15]=a*m+u*g+p*v+t[15]);return e}},5665:function(e){e.exports=function(e,t){if(e===t){var n=t[1],r=t[2],o=t[3],i=t[6],a=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=i,e[11]=t[14],e[12]=o,e[13]=a,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}},7626:function(e,t,n){"use strict";var r=n(2642),o=n(9346);function i(e,t){for(var n=[0,0,0,0],r=0;r<4;++r)for(var o=0;o<4;++o)n[o]+=e[4*r+o]*t[r];return n}function a(e,t,n,r,o){for(var a=i(r,i(n,i(t,[e[0],e[1],e[2],1]))),s=0;s<3;++s)a[s]/=a[3];return[.5*o[0]*(1+a[0]),.5*o[1]*(1-a[1])]}function s(e,t){for(var n=[0,0,0],r=0;r<e.length;++r)for(var o=e[r],i=t[r],a=0;a<3;++a)n[a]+=i*o[a];return n}e.exports=function(e,t,n,i,l,c){if(1===e.length)return[0,e[0].slice()];for(var u=new Array(e.length),d=0;d<e.length;++d)u[d]=a(e[d],n,i,l,c);var f=0,h=1/0;for(d=0;d<u.length;++d){for(var p=0,m=0;m<2;++m)p+=Math.pow(u[d][m]-t[m],2);p<h&&(h=p,f=d)}var g=function(e,t){if(2===e.length){for(var n=0,i=0,a=0;a<2;++a)n+=Math.pow(t[a]-e[0][a],2),i+=Math.pow(t[a]-e[1][a],2);return n=Math.sqrt(n),i=Math.sqrt(i),n+i<1e-6?[1,0]:[i/(n+i),n/(i+n)]}if(3===e.length){var s=[0,0];return o(e[0],e[1],e[2],t,s),r(e,s)}return[]}(u,t),v=0;for(d=0;d<3;++d){if(g[d]<-.001||g[d]>1.0001)return null;v+=g[d]}if(Math.abs(v-1)>.001)return null;return[f,s(e,g),g]}},840:function(e,t,n){var r=n(3236),o=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n , view\n , projection\n , inverseModel;\nuniform vec3 eyePosition\n , lightPosition;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n gl_Position = project(position);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * vec4(position , 1.0);\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n f_color = color;\n f_data = position;\n f_uv = uv;\n}\n"]),i=r(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n , fresnel\n , kambient\n , kdiffuse\n , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (f_color.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], f_data)\n ) discard;\n\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * f_color.a;\n}\n"]),a=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n f_color = color;\n f_data = position;\n f_uv = uv;\n}"]),s=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),l=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n } else {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n }\n gl_PointSize = pointSize;\n f_color = color;\n f_uv = uv;\n}"]),c=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n if(dot(pointR, pointR) > 0.25) {\n discard;\n }\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),u=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n f_id = id;\n f_position = position;\n}"]),d=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]),f=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute float pointSize;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n } else {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n gl_PointSize = pointSize;\n }\n f_id = id;\n f_position = position;\n}"]),h=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n}"]),p=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n gl_FragColor = vec4(contourColor, 1.0);\n}\n"]);t.meshShader={vertex:o,fragment:i,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},t.wireShader={vertex:a,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},t.pointShader={vertex:l,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},t.pickShader={vertex:u,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},t.pointPickShader={vertex:f,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},t.contourShader={vertex:h,fragment:p,attributes:[{name:"position",type:"vec3"}]}},7201:function(e,t,n){"use strict";var r=n(9405),o=n(2762),i=n(8116),a=n(7766),s=n(8406),l=n(6760),c=n(7608),u=n(9618),d=n(6729),f=n(7765),h=n(1888),p=n(840),m=n(7626),g=p.meshShader,v=p.wireShader,y=p.pointShader,b=p.pickShader,x=p.pointPickShader,_=p.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function j(e,t,n,r,o,i,a,s,l,c,u,d,f,h,p,m,g,v,y,b,x,_,j,k,T,A,M){this.gl=e,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=t,this.dirty=!0,this.triShader=n,this.lineShader=r,this.pointShader=o,this.pickShader=i,this.pointPickShader=a,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=f,this.triangleUVs=d,this.triangleIds=c,this.triangleVAO=h,this.triangleCount=0,this.lineWidth=1,this.edgePositions=p,this.edgeColors=g,this.edgeUVs=v,this.edgeIds=m,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=b,this.pointColors=_,this.pointUVs=j,this.pointSizes=k,this.pointIds=x,this.pointVAO=T,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=A,this.contourVAO=M,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=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=j.prototype;function T(e,t){if(!t)return 1;if(!t.length)return 1;for(var n=0;n<t.length;++n){if(t.length<2)return 1;if(t[n][0]===e)return t[n][1];if(t[n][0]>e&&n>0){var r=(t[n][0]-e)/(t[n][0]-t[n-1][0]);return t[n][1]*(1-r)+r*t[n-1][1]}}return 1}function A(e){var t=r(e,g.vertex,g.fragment);return t.attributes.position.location=0,t.attributes.color.location=2,t.attributes.uv.location=3,t.attributes.normal.location=4,t}function M(e){var t=r(e,v.vertex,v.fragment);return t.attributes.position.location=0,t.attributes.color.location=2,t.attributes.uv.location=3,t}function S(e){var t=r(e,y.vertex,y.fragment);return t.attributes.position.location=0,t.attributes.color.location=2,t.attributes.uv.location=3,t.attributes.pointSize.location=4,t}function C(e){var t=r(e,b.vertex,b.fragment);return t.attributes.position.location=0,t.attributes.id.location=1,t}function E(e){var t=r(e,x.vertex,x.fragment);return t.attributes.position.location=0,t.attributes.id.location=1,t.attributes.pointSize.location=4,t}function L(e){var t=r(e,_.vertex,_.fragment);return t.attributes.position.location=0,t}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(e){this.pickId=e},k.highlight=function(e){if(e&&this.contourEnable){for(var t=f(this.cells,this.intensity,e.intensity),n=t.cells,r=t.vertexIds,o=t.vertexWeights,i=n.length,a=h.mallocFloat32(6*i),s=0,l=0;l<i;++l)for(var c=n[l],u=0;u<2;++u){var d=c[0];2===c.length&&(d=c[u]);for(var p=r[d][0],m=r[d][1],g=o[d],v=1-g,y=this.positions[p],b=this.positions[m],x=0;x<3;++x)a[s++]=g*y[x]+v*b[x]}this.contourCount=s/3|0,this.contourPositions.update(a.subarray(0,s)),h.free(a)}else this.contourCount=0},k.update=function(e){e=e||{};var t=this.gl;this.dirty=!0,"contourEnable"in e&&(this.contourEnable=e.contourEnable),"contourColor"in e&&(this.contourColor=e.contourColor),"lineWidth"in e&&(this.lineWidth=e.lineWidth),"lightPosition"in e&&(this.lightPosition=e.lightPosition),this.hasAlpha=!1,"opacity"in e&&(this.opacity=e.opacity,this.opacity<1&&(this.hasAlpha=!0)),"opacityscale"in e&&(this.opacityscale=e.opacityscale,this.hasAlpha=!0),"ambient"in e&&(this.ambientLight=e.ambient),"diffuse"in e&&(this.diffuseLight=e.diffuse),"specular"in e&&(this.specularLight=e.specular),"roughness"in e&&(this.roughness=e.roughness),"fresnel"in e&&(this.fresnel=e.fresnel),e.texture?(this.texture.dispose(),this.texture=a(t,e.texture)):e.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=t.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=t.LINEAR,this.texture.setPixels(function(e,t){for(var n=d({colormap:e,nshades:256,format:"rgba"}),r=new Uint8Array(1024),o=0;o<256;++o){for(var i=n[o],a=0;a<3;++a)r[4*o+a]=i[a];r[4*o+3]=t?255*T(o/255,t):255*i[3]}return u(r,[256,256,4],[4,0,1])}(e.colormap,this.opacityscale)),this.texture.generateMipmap());var n=e.cells,r=e.positions;if(r&&n){var o=[],i=[],l=[],c=[],f=[],h=[],p=[],m=[],g=[],v=[],y=[],b=[],x=[],_=[];this.cells=n,this.positions=r;var w=e.vertexNormals,j=e.cellNormals,k=void 0===e.vertexNormalsEpsilon?1e-6:e.vertexNormalsEpsilon,A=void 0===e.faceNormalsEpsilon?1e-6:e.faceNormalsEpsilon;e.useFacetNormals&&!j&&(j=s.faceNormals(n,r,A)),j||w||(w=s.vertexNormals(n,r,k));var M=e.vertexColors,S=e.cellColors,C=e.meshColor||[1,1,1,1],E=e.vertexUVs,L=e.vertexIntensity,O=e.cellUVs,R=e.cellIntensity,I=1/0,P=-1/0;if(!E&&!O)if(L)if(e.vertexIntensityBounds)I=+e.vertexIntensityBounds[0],P=+e.vertexIntensityBounds[1];else for(var D=0;D<L.length;++D){var z=L[D];I=Math.min(I,z),P=Math.max(P,z)}else if(R)if(e.cellIntensityBounds)I=+e.cellIntensityBounds[0],P=+e.cellIntensityBounds[1];else for(D=0;D<R.length;++D){z=R[D];I=Math.min(I,z),P=Math.max(P,z)}else for(D=0;D<r.length;++D){z=r[D][2];I=Math.min(I,z),P=Math.max(P,z)}this.intensity=L||(R||function(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e[r][2];return n}(r)),this.pickVertex=!(R||S);var N=e.pointSizes,F=e.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(D=0;D<r.length;++D)for(var B=r[D],U=0;U<3;++U)!isNaN(B[U])&&isFinite(B[U])&&(this.bounds[0][U]=Math.min(this.bounds[0][U],B[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],B[U]));var H=0,V=0,G=0;e:for(D=0;D<n.length;++D){var q=n[D];switch(q.length){case 1:for(B=r[Y=q[0]],U=0;U<3;++U)if(isNaN(B[U])||!isFinite(B[U]))continue e;v.push(B[0],B[1],B[2]),X=M?M[Y]:S?S[D]:C,this.opacityscale&&L?i.push(X[0],X[1],X[2],this.opacity*T((L[Y]-I)/(P-I),this.opacityscale)):3===X.length?y.push(X[0],X[1],X[2],this.opacity):(y.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]<1&&(this.hasAlpha=!0)),Z=E?E[Y]:L?[(L[Y]-I)/(P-I),0]:O?O[D]:R?[(R[D]-I)/(P-I),0]:[(B[2]-I)/(P-I),0],b.push(Z[0],Z[1]),N?x.push(N[Y]):x.push(F),_.push(D),G+=1;break;case 2:for(U=0;U<2;++U){B=r[Y=q[U]];for(var W=0;W<3;++W)if(isNaN(B[W])||!isFinite(B[W]))continue e}for(U=0;U<2;++U){B=r[Y=q[U]];h.push(B[0],B[1],B[2]),X=M?M[Y]:S?S[D]:C,this.opacityscale&&L?i.push(X[0],X[1],X[2],this.opacity*T((L[Y]-I)/(P-I),this.opacityscale)):3===X.length?p.push(X[0],X[1],X[2],this.opacity):(p.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]<1&&(this.hasAlpha=!0)),Z=E?E[Y]:L?[(L[Y]-I)/(P-I),0]:O?O[D]:R?[(R[D]-I)/(P-I),0]:[(B[2]-I)/(P-I),0],m.push(Z[0],Z[1]),g.push(D)}V+=1;break;case 3:for(U=0;U<3;++U)for(B=r[Y=q[U]],W=0;W<3;++W)if(isNaN(B[W])||!isFinite(B[W]))continue e;for(U=0;U<3;++U){var Y,X,Z,$;B=r[Y=q[2-U]];o.push(B[0],B[1],B[2]),(X=M?M[Y]:S?S[D]:C)?this.opacityscale&&L?i.push(X[0],X[1],X[2],this.opacity*T((L[Y]-I)/(P-I),this.opacityscale)):3===X.length?i.push(X[0],X[1],X[2],this.opacity):(i.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]<1&&(this.hasAlpha=!0)):i.push(.5,.5,.5,1),Z=E?E[Y]:L?[(L[Y]-I)/(P-I),0]:O?O[D]:R?[(R[D]-I)/(P-I),0]:[(B[2]-I)/(P-I),0],c.push(Z[0],Z[1]),$=w?w[Y]:j[D],l.push($[0],$[1],$[2]),f.push(D)}H+=1}}this.pointCount=G,this.edgeCount=V,this.triangleCount=H,this.pointPositions.update(v),this.pointColors.update(y),this.pointUVs.update(b),this.pointSizes.update(x),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(h),this.edgeColors.update(p),this.edgeUVs.update(m),this.edgeIds.update(new Uint32Array(g)),this.trianglePositions.update(o),this.triangleColors.update(i),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(f))}},k.drawTransparent=k.draw=function(e){e=e||{};for(var t=this.gl,n=e.model||w,r=e.view||w,o=e.projection||w,i=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],a=0;a<3;++a)i[0][a]=Math.max(i[0][a],this.clipBounds[0][a]),i[1][a]=Math.min(i[1][a],this.clipBounds[1][a]);var s={model:n,view:r,projection:o,inverseModel:w.slice(),clipBounds:i,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};s.inverseModel=c(s.inverseModel,s.model),t.disable(t.CULL_FACE),this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(a=0;a<3;++a)s.eyePosition[a]=u[12+a]/u[15];var d,f=u[15];for(a=0;a<3;++a)f+=this.lightPosition[a]*u[4*a+3];for(a=0;a<3;++a){for(var h=u[12+a],p=0;p<3;++p)h+=u[4*p+a]*this.lightPosition[p];s.lightPosition[a]=h/f}this.triangleCount>0&&((d=this.triShader).bind(),d.uniforms=s,this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount>0&&this.lineWidth>0&&((d=this.lineShader).bind(),d.uniforms=s,this.edgeVAO.bind(),t.lineWidth(this.lineWidth*this.pixelRatio),t.drawArrays(t.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount>0&&((d=this.pointShader).bind(),d.uniforms=s,this.pointVAO.bind(),t.drawArrays(t.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((d=this.contourShader).bind(),d.uniforms=s,this.contourVAO.bind(),t.drawArrays(t.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(e){e=e||{};for(var t=this.gl,n=e.model||w,r=e.view||w,o=e.projection||w,i=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],a=0;a<3;++a)i[0][a]=Math.max(i[0][a],this.clipBounds[0][a]),i[1][a]=Math.min(i[1][a],this.clipBounds[1][a]);this._model=[].slice.call(n),this._view=[].slice.call(r),this._projection=[].slice.call(o),this._resolution=[t.drawingBufferWidth,t.drawingBufferHeight];var s,l={model:n,view:r,projection:o,clipBounds:i,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),t.lineWidth(this.lineWidth*this.pixelRatio),t.drawArrays(t.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0)&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),t.drawArrays(t.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;for(var t=e.value[0]+256*e.value[1]+65536*e.value[2],n=this.cells[t],r=this.positions,o=new Array(n.length),i=0;i<n.length;++i)o[i]=r[n[i]];var a=e.coord[0],s=e.coord[1];if(!this.pickVertex){var l=this.positions[n[0]],c=this.positions[n[1]],u=this.positions[n[2]],d=[(l[0]+c[0]+u[0])/3,(l[1]+c[1]+u[1])/3,(l[2]+c[2]+u[2])/3];return{_cellCenter:!0,position:[a,s],index:t,cell:n,cellId:t,intensity:this.intensity[t],dataCoordinate:d}}var f=m(o,[a*this.pixelRatio,this._resolution[1]-s*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!f)return null;var h=f[2],p=0;for(i=0;i<n.length;++i)p+=h[i]*this.intensity[n[i]];return{position:f[1],index:n[f[0]],cell:n,cellId:t,intensity:p,dataCoordinate:this.positions[n[f[0]]]}},k.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()},e.exports=function(e,t){1===arguments.length&&(e=(t=e).gl);var n=e.getExtension("OES_standard_derivatives")||e.getExtension("MOZ_OES_standard_derivatives")||e.getExtension("WEBKIT_OES_standard_derivatives");if(!n)throw new Error("derivatives not supported");var r=A(e),s=M(e),l=S(e),c=C(e),d=E(e),f=L(e),h=a(e,u(new Uint8Array([255,255,255,255]),[1,1,4]));h.generateMipmap(),h.minFilter=e.LINEAR_MIPMAP_LINEAR,h.magFilter=e.LINEAR;var p=o(e),m=o(e),g=o(e),v=o(e),y=o(e),b=i(e,[{buffer:p,type:e.FLOAT,size:3},{buffer:y,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:e.FLOAT,size:4},{buffer:g,type:e.FLOAT,size:2},{buffer:v,type:e.FLOAT,size:3}]),x=o(e),_=o(e),w=o(e),k=o(e),T=i(e,[{buffer:x,type:e.FLOAT,size:3},{buffer:k,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:e.FLOAT,size:4},{buffer:w,type:e.FLOAT,size:2}]),O=o(e),R=o(e),I=o(e),P=o(e),D=o(e),z=i(e,[{buffer:O,type:e.FLOAT,size:3},{buffer:D,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:R,type:e.FLOAT,size:4},{buffer:I,type:e.FLOAT,size:2},{buffer:P,type:e.FLOAT,size:1}]),N=o(e),F=i(e,[{buffer:N,type:e.FLOAT,size:3}]),B=new j(e,h,r,s,l,c,d,f,p,y,m,g,v,b,x,k,_,w,T,O,D,R,I,P,z,N,F);return B.update(t),B}},8120:function(e,t,n){"use strict";e.exports=function(e){var t=e.gl,n=r(t,[0,0,0,1,1,0,1,1]),s=o(t,i.boxVert,i.lineFrag);return new a(e,n,s)};var r=n(2762),o=n(9405),i=n(3603);function a(e,t,n){this.plot=e,this.vbo=t,this.shader=n}var s,l,c=a.prototype;c.bind=function(){var e=this.shader;this.vbo.bind(),this.shader.bind(),e.attributes.coord.pointer(),e.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(e,t,n,r,o){var i=this.plot,a=this.shader,c=i.gl;s[0]=e,s[1]=t,l[0]=n,l[1]=r,a.uniforms.lo=s,a.uniforms.hi=l,a.uniforms.color=o,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},1913:function(e,t,n){"use strict";e.exports=function(e){var t=e.gl,n=r(t),i=o(t,a.gridVert,a.gridFrag),l=o(t,a.tickVert,a.gridFrag);return new s(e,n,i,l)};var r=n(2762),o=n(9405),i=n(2478),a=n(3603);function s(e,t,n,r){this.plot=e,this.vbo=t,this.shader=n,this.tickShader=r,this.ticks=[[],[]]}function l(e,t){return e-t}var c,u,d,f,h,p=s.prototype;p.draw=(c=[0,0],u=[0,0],d=[0,0],function(){for(var e=this.plot,t=this.vbo,n=this.shader,r=this.ticks,o=e.gl,i=e._tickBounds,a=e.dataBox,s=e.viewBox,l=e.gridLineWidth,f=e.gridLineColor,h=e.gridLineEnable,p=e.pixelRatio,m=0;m<2;++m){var g=i[m],v=i[m+2]-g,y=.5*(a[m+2]+a[m]),b=a[m+2]-a[m];u[m]=2*v/b,c[m]=2*(g-y)/b}n.bind(),t.bind(),n.attributes.dataCoord.pointer(),n.uniforms.dataShift=c,n.uniforms.dataScale=u;var x=0;for(m=0;m<2;++m){d[0]=d[1]=0,d[m]=1,n.uniforms.dataAxis=d,n.uniforms.lineWidth=l[m]/(s[m+2]-s[m])*p,n.uniforms.color=f[m];var _=6*r[m].length;h[m]&&_&&o.drawArrays(o.TRIANGLES,x,_),x+=_}}),p.drawTickMarks=function(){var e=[0,0],t=[0,0],n=[1,0],r=[0,1],o=[0,0],a=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,d=this.ticks,f=s.gl,h=s._tickBounds,p=s.dataBox,m=s.viewBox,g=s.pixelRatio,v=s.screenBox,y=v[2]-v[0],b=v[3]-v[1],x=m[2]-m[0],_=m[3]-m[1],w=0;w<2;++w){var j=h[w],k=h[w+2]-j,T=.5*(p[w+2]+p[w]),A=p[w+2]-p[w];t[w]=2*k/A,e[w]=2*(j-T)/A}t[0]*=x/y,e[0]*=x/y,t[1]*=_/b,e[1]*=_/b,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var M=u.uniforms;M.dataShift=e,M.dataScale=t;var S=s.tickMarkLength,C=s.tickMarkWidth,E=s.tickMarkColor,L=6*d[0].length,O=Math.min(i.ge(d[0],(p[0]-h[0])/(h[2]-h[0]),l),d[0].length),R=Math.min(i.gt(d[0],(p[2]-h[0])/(h[2]-h[0]),l),d[0].length),I=0+6*O,P=6*Math.max(0,R-O),D=Math.min(i.ge(d[1],(p[1]-h[1])/(h[3]-h[1]),l),d[1].length),z=Math.min(i.gt(d[1],(p[3]-h[1])/(h[3]-h[1]),l),d[1].length),N=L+6*D,F=6*Math.max(0,z-D);o[0]=2*(m[0]-S[1])/y-1,o[1]=(m[3]+m[1])/b-1,a[0]=S[1]*g/y,a[1]=C[1]*g/b,F&&(M.color=E[1],M.tickScale=a,M.dataAxis=r,M.screenOffset=o,f.drawArrays(f.TRIANGLES,N,F)),o[0]=(m[2]+m[0])/y-1,o[1]=2*(m[1]-S[0])/b-1,a[0]=C[0]*g/y,a[1]=S[0]*g/b,P&&(M.color=E[0],M.tickScale=a,M.dataAxis=n,M.screenOffset=o,f.drawArrays(f.TRIANGLES,I,P)),o[0]=2*(m[2]+S[3])/y-1,o[1]=(m[3]+m[1])/b-1,a[0]=S[3]*g/y,a[1]=C[3]*g/b,F&&(M.color=E[3],M.tickScale=a,M.dataAxis=r,M.screenOffset=o,f.drawArrays(f.TRIANGLES,N,F)),o[0]=(m[2]+m[0])/y-1,o[1]=2*(m[3]+S[2])/b-1,a[0]=C[2]*g/y,a[1]=S[2]*g/b,P&&(M.color=E[2],M.tickScale=a,M.dataAxis=n,M.screenOffset=o,f.drawArrays(f.TRIANGLES,I,P))}}(),p.update=(f=[1,1,-1,-1,1,-1],h=[1,-1,1,1,-1,-1],function(e){for(var t=e.ticks,n=e.bounds,r=new Float32Array(18*(t[0].length+t[1].length)),o=(this.plot.zeroLineEnable,0),i=[[],[]],a=0;a<2;++a)for(var s=i[a],l=t[a],c=n[a],u=n[a+2],d=0;d<l.length;++d){var p=(l[d].x-c)/(u-c);s.push(p);for(var m=0;m<6;++m)r[o++]=p,r[o++]=f[m],r[o++]=h[m]}this.ticks=i,this.vbo.update(r)}),p.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},4747:function(e,t,n){"use strict";e.exports=function(e){var t=e.gl,n=r(t,[-1,-1,-1,1,1,-1,1,1]),s=o(t,i.lineVert,i.lineFrag);return new a(e,n,s)};var r=n(2762),o=n(9405),i=n(3603);function a(e,t,n){this.plot=e,this.vbo=t,this.shader=n}var s,l,c=a.prototype;c.bind=function(){var e=this.shader;this.vbo.bind(),this.shader.bind(),e.attributes.coord.pointer(),e.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(e,t,n,r,o,i){var a=this.plot,c=this.shader,u=a.gl;s[0]=e,s[1]=t,l[0]=n,l[1]=r,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=o*a.pixelRatio,c.uniforms.color=i,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},3603:function(e,t,n){"use strict";var r=n(3236),o=r(["precision lowp float;\n#define GLSLIFY 1\nuniform vec4 color;\nvoid main() {\n gl_FragColor = vec4(color.xyz * color.w, color.w);\n}\n"]);e.exports={lineVert:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 start, end;\nuniform float width;\n\nvec2 perp(vec2 v) {\n return vec2(v.y, -v.x);\n}\n\nvec2 screen(vec2 v) {\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n vec2 delta = normalize(perp(start - end));\n vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\n gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\n}\n"]),lineFrag:o,textVert:r(["#define GLSLIFY 1\nattribute vec3 textCoordinate;\n\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\nuniform float angle;\n\nvoid main() {\n float dataOffset = textCoordinate.z;\n vec2 glyphOffset = textCoordinate.xy;\n mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\n glyphMatrix * glyphOffset * textScale + screenOffset;\n gl_Position = vec4(screenCoordinate, 0, 1);\n}\n"]),textFrag:o,gridVert:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale;\nuniform float lineWidth;\n\nvoid main() {\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\n gl_Position = vec4(pos, 0, 1);\n}\n"]),gridFrag:o,boxVert:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 lo, hi;\n\nvec2 screen(vec2 v) {\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\n}\n"]),tickVert:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\n\nvoid main() {\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\n}\n"])}},2142:function(e,t,n){"use strict";e.exports=function(e){var t=e.gl,n=r(t),i=o(t,s.textVert,s.textFrag);return new l(e,n,i)};var r=n(2762),o=n(9405),i=n(529),a=n(2478),s=n(3603);function l(e,t,n){this.plot=e,this.vbo=t,this.shader=n,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,d,f,h,p,m=l.prototype;m.drawTicks=(c=[0,0],u=[0,0],d=[0,0],function(e){var t=this.plot,n=this.shader,r=this.tickX[e],o=this.tickOffset[e],i=t.gl,s=t.viewBox,l=t.dataBox,f=t.screenBox,h=t.pixelRatio,p=t.tickEnable,m=t.tickPad,g=t.tickColor,v=t.tickAngle,y=t.labelEnable,b=t.labelPad,x=t.labelColor,_=t.labelAngle,w=this.labelOffset[e],j=this.labelCount[e],k=a.lt(r,l[e]),T=a.le(r,l[e+2]);c[0]=c[1]=0,c[e]=1,u[e]=(s[2+e]+s[e])/(f[2+e]-f[e])-1;var A=2/f[2+(1^e)]-f[1^e];u[1^e]=A*s[1^e]-1,p[e]&&(u[1^e]-=A*h*m[e],k<T&&o[T]>o[k]&&(n.uniforms.dataAxis=c,n.uniforms.screenOffset=u,n.uniforms.color=g[e],n.uniforms.angle=v[e],i.drawArrays(i.TRIANGLES,o[k],o[T]-o[k]))),y[e]&&j&&(u[1^e]-=A*h*b[e],n.uniforms.dataAxis=d,n.uniforms.screenOffset=u,n.uniforms.color=x[e],n.uniforms.angle=_[e],i.drawArrays(i.TRIANGLES,w,j)),u[1^e]=A*s[2+(1^e)]-1,p[e+2]&&(u[1^e]+=A*h*m[e+2],k<T&&o[T]>o[k]&&(n.uniforms.dataAxis=c,n.uniforms.screenOffset=u,n.uniforms.color=g[e+2],n.uniforms.angle=v[e+2],i.drawArrays(i.TRIANGLES,o[k],o[T]-o[k]))),y[e+2]&&j&&(u[1^e]+=A*h*b[e+2],n.uniforms.dataAxis=d,n.uniforms.screenOffset=u,n.uniforms.color=x[e+2],n.uniforms.angle=_[e+2],i.drawArrays(i.TRIANGLES,w,j))}),m.drawTitle=function(){var e=[0,0],t=[0,0];return function(){var n=this.plot,r=this.shader,o=n.gl,i=n.screenBox,a=n.titleCenter,s=n.titleAngle,l=n.titleColor,c=n.pixelRatio;if(this.titleCount){for(var u=0;u<2;++u)t[u]=2*(a[u]*c-i[u])/(i[2+u]-i[u])-1;r.bind(),r.uniforms.dataAxis=e,r.uniforms.screenOffset=t,r.uniforms.angle=s,r.uniforms.color=l,o.drawArrays(o.TRIANGLES,this.titleOffset,this.titleCount)}}}(),m.bind=(f=[0,0],h=[0,0],p=[0,0],function(){var e=this.plot,t=this.shader,n=e._tickBounds,r=e.dataBox,o=e.screenBox,i=e.viewBox;t.bind();for(var a=0;a<2;++a){var s=n[a],l=n[a+2]-s,c=.5*(r[a+2]+r[a]),u=r[a+2]-r[a],d=i[a],m=i[a+2]-d,g=o[a],v=o[a+2]-g;h[a]=2*l/u*m/v,f[a]=2*(s-c)/u*m/v}p[1]=2*e.pixelRatio/(o[3]-o[1]),p[0]=p[1]*(o[3]-o[1])/(o[2]-o[0]),t.uniforms.dataScale=h,t.uniforms.dataShift=f,t.uniforms.textScale=p,this.vbo.bind(),t.attributes.textCoordinate.pointer()}),m.update=function(e){var t,n,r,o,a,s=[],l=e.ticks,c=e.bounds;for(a=0;a<2;++a){var u=[Math.floor(s.length/3)],d=[-1/0],f=l[a];for(t=0;t<f.length;++t){var h=f[t],p=h.x,m=h.text,g=h.font||"sans-serif",v=h.fontStyle||"normal",y=h.fontWeight||"normal",b=h.fontVariant||"normal";o=h.fontSize||12;for(var x=1/(c[a+2]-c[a]),_=c[a],w=m.split("\n"),j=0;j<w.length;j++)for(r=i(g,w[j],{fontStyle:v,fontWeight:y,fontVariant:b}).data,n=0;n<r.length;n+=2)s.push(r[n]*o,-r[n+1]*o-j*o*1.2,(p-_)*x);u.push(Math.floor(s.length/3)),d.push(p)}this.tickOffset[a]=u,this.tickX[a]=d}for(a=0;a<2;++a){for(this.labelOffset[a]=Math.floor(s.length/3),r=i(e.labelFont[a],e.labels[a],{fontStyle:e.labelFontStyle[a],fontWeight:e.labelFontWeight[a],fontVariant:e.labelFontVariant[a],textAlign:"center"}).data,o=e.labelSize[a],t=0;t<r.length;t+=2)s.push(r[t]*o,-r[t+1]*o,0);this.labelCount[a]=Math.floor(s.length/3)-this.labelOffset[a]}for(this.titleOffset=Math.floor(s.length/3),r=i(e.titleFont,e.title,{fontStyle:e.titleFontStyle,fontWeight:e.titleFontWeight,fontVariant:e.titleFontVariant}).data,o=e.titleSize,t=0;t<r.length;t+=2)s.push(r[t]*o,-r[t+1]*o,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},m.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},1850:function(e,t,n){"use strict";e.exports=function(e){var t=e.gl,n=r(t,[t.drawingBufferWidth,t.drawingBufferHeight]),c=new l(t,n);return c.grid=o(c),c.text=i(c),c.line=a(c),c.box=s(c),c.update(e),c};var r=n(3589),o=n(1913),i=n(2142),a=n(4747),s=n(8120);function l(e,t){this.gl=e,this.pickBuffer=t,this.screenBox=[0,0,e.drawingBufferWidth,e.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(e){for(var t=e.slice(),n=0;n<t.length;++n)t[n]=t[n].slice();return t}function d(e,t){return e.x-t.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var e=this.gl,t=this.screenBox,n=this.viewBox,r=this.dataBox,o=this.pixelRatio,i=this.grid,a=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&&(this._pickTimeout&&clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,e.bindFramebuffer(e.FRAMEBUFFER,null),e.enable(e.SCISSOR_TEST),e.disable(e.DEPTH_TEST),e.depthFunc(e.LESS),e.depthMask(!1),e.enable(e.BLEND),e.blendEquation(e.FUNC_ADD,e.FUNC_ADD),e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA),this.borderColor){e.scissor(t[0],t[1],t[2]-t[0],t[3]-t[1]);var c=this.borderColor;e.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}e.scissor(n[0],n[1],n[2]-n[0],n[3]-n[1]),e.viewport(n[0],n[1],n[2]-n[0],n[3]-n[1]);var u=this.backgroundColor;e.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),e.clear(e.COLOR_BUFFER_BIT),i.draw();var d=this.zeroLineEnable,f=this.zeroLineColor,h=this.zeroLineWidth;if(d[0]||d[1]){a.bind();for(var p=0;p<2;++p)if(d[p]&&r[p]<=0&&r[p+2]>=0){var m=t[p]-r[p]*(t[p+2]-t[p])/(r[p+2]-r[p]);0===p?a.drawLine(m,t[1],m,t[3],h[p],f[p]):a.drawLine(t[0],m,t[2],m,h[p],f[p])}}for(p=0;p<l.length;++p)l[p].draw();e.viewport(t[0],t[1],t[2]-t[0],t[3]-t[1]),e.scissor(t[0],t[1],t[2]-t[0],t[3]-t[1]),this.grid.drawTickMarks(),a.bind();var g=this.borderLineEnable,v=this.borderLineWidth,y=this.borderLineColor;for(g[1]&&a.drawLine(n[0],n[1]-.5*v[1]*o,n[0],n[3]+.5*v[3]*o,v[1],y[1]),g[0]&&a.drawLine(n[0]-.5*v[0]*o,n[1],n[2]+.5*v[2]*o,n[1],v[0],y[0]),g[3]&&a.drawLine(n[2],n[1]-.5*v[1]*o,n[2],n[3]+.5*v[3]*o,v[3],y[3]),g[2]&&a.drawLine(n[0]-.5*v[0]*o,n[3],n[2]+.5*v[2]*o,n[3],v[2],y[2]),s.bind(),p=0;p<2;++p)s.drawTicks(p);this.titleEnable&&s.drawTitle();var b=this.overlays;for(p=0;p<b.length;++p)b[p].draw();e.disable(e.SCISSOR_TEST),e.disable(e.BLEND),e.depthMask(!0)}},c.drawPick=function(){if(!this.static){var e=this.pickBuffer;this.gl,this._pickTimeout=null,e.begin();for(var t=1,n=this.objects,r=0;r<n.length;++r)t=n[r].drawPick(t);e.end()}},c.pick=function(e,t){if(!this.static){var n=this.pixelRatio,r=this.pickPixelRatio,o=this.viewBox,i=0|Math.round((e-o[0]/n)*r),a=0|Math.round((t-o[1]/n)*r),s=this.pickBuffer.query(i,a,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]<<8)+(s.value[1]<<16)+(s.value[2]<<24),c=this.objects,u=0;u<c.length;++u){var d=c[u].pick(i,a,l);if(d)return d}return null}},c.setScreenBox=function(e){var t=this.screenBox,n=this.pixelRatio;t[0]=0|Math.round(e[0]*n),t[1]=0|Math.round(e[1]*n),t[2]=0|Math.round(e[2]*n),t[3]=0|Math.round(e[3]*n),this.setDirty()},c.setDataBox=function(e){var t=this.dataBox;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3])&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],this.setDirty())},c.setViewBox=function(e){var t=this.pixelRatio,n=this.viewBox;n[0]=0|Math.round(e[0]*t),n[1]=0|Math.round(e[1]*t),n[2]=0|Math.round(e[2]*t),n[3]=0|Math.round(e[3]*t);var r=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((e[2]-e[0])*r),0|Math.round((e[3]-e[1])*r)],this.setDirty()},c.update=function(e){e=e||{};var t=this.gl;this.pixelRatio=e.pixelRatio||1;var n=this.pixelRatio;this.pickPixelRatio=Math.max(n,1),this.setScreenBox(e.screenBox||[0,0,t.drawingBufferWidth/n,t.drawingBufferHeight/n]);this.screenBox;this.setViewBox(e.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/n,.125*(this.screenBox[3]-this.screenBox[1])/n,.875*(this.screenBox[2]-this.screenBox[0])/n,.875*(this.screenBox[3]-this.screenBox[1])/n]);var r=this.viewBox,o=(r[2]-r[0])/(r[3]-r[1]);this.setDataBox(e.dataBox||[-10,-10/o,10,10/o]),this.borderColor=!1!==e.borderColor&&(e.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(e.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(e.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(e.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(e.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(e.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(e.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(e.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(e.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(e.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(e.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(e.titleCenter||[.5*(r[0]+r[2])/n,(r[3]+120)/n]).slice(),this.titleEnable=!("titleEnable"in e)||!!e.titleEnable,this.titleAngle=e.titleAngle||0,this.titleColor=(e.titleColor||[0,0,0,1]).slice(),this.labelPad=(e.labelPad||[15,15,15,15]).slice(),this.labelAngle=(e.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(e.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(e.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(e.tickPad||[15,15,15,15]).slice(),this.tickAngle=(e.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(e.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(e.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(e.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(e.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(e.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var i=e.ticks||[[],[]],a=this._tickBounds;a[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(var s=0;s<2;++s){var l=i[s].slice(0);0!==l.length&&(l.sort(d),a[s]=Math.min(a[s],l[0].x),a[s+2]=Math.max(a[s+2],l[l.length-1].x))}this.grid.update({bounds:a,ticks:i}),this.text.update({bounds:a,ticks:i,labels:e.labels||["x","y"],labelSize:e.labelSize||[12,12],labelFont:e.labelFont||["sans-serif","sans-serif"],labelFontStyle:e.labelFontStyle||["normal","normal"],labelFontWeight:e.labelFontWeight||["normal","normal"],labelFontVariant:e.labelFontVariant||["normal","normal"],title:e.title||"",titleSize:e.titleSize||18,titleFont:e.titleFont||"sans-serif",titleFontStyle:e.titleFontStyle||"normal",titleFontWeight:e.titleFontWeight||"normal",titleFontVariant:e.titleFontVariant||"normal"}),this.static=!!e.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var e=this.objects.length-1;e>=0;--e)this.objects[e].dispose();this.objects.length=0;for(e=this.overlays.length-1;e>=0;--e)this.overlays[e].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(e){this.objects.indexOf(e)<0&&(this.objects.push(e),this.setDirty())},c.removeObject=function(e){for(var t=this.objects,n=0;n<t.length;++n)if(t[n]===e){t.splice(n,1),this.setDirty();break}},c.addOverlay=function(e){this.overlays.indexOf(e)<0&&(this.overlays.push(e),this.setOverlayDirty())},c.removeOverlay=function(e){for(var t=this.overlays,n=0;n<t.length;++n)if(t[n]===e){t.splice(n,1),this.setOverlayDirty();break}}},4437:function(e,t,n){"use strict";e.exports=function(e,t){e=e||document.body,t=t||{};var n=[.01,1/0];"distanceLimits"in t&&(n[0]=t.distanceLimits[0],n[1]=t.distanceLimits[1]);"zoomMin"in t&&(n[0]=t.zoomMin);"zoomMax"in t&&(n[1]=t.zoomMax);var c=o({center:t.center||[0,0,0],up:t.up||[0,1,0],eye:t.eye||[0,0,10],mode:t.mode||"orbit",distanceLimits:n}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=0,f=e.clientWidth,h=e.clientHeight,p={keyBindingMode:"rotate",enableWheel:!0,view:c,element:e,delay:t.delay||16,rotateSpeed:t.rotateSpeed||1,zoomSpeed:t.zoomSpeed||1,translateSpeed:t.translateSpeed||1,flipX:!!t.flipX,flipY:!!t.flipY,modes:c.modes,_ortho:t._ortho||t.projection&&"orthographic"===t.projection.type||!1,tick:function(){var t=r(),n=this.delay,o=t-2*n;c.idle(t-n),c.recalcMatrix(o),c.flush(t-(100+2*n));for(var i=!0,a=c.computedMatrix,s=0;s<16;++s)i=i&&u[s]===a[s],u[s]=a[s];var l=e.clientWidth===f&&e.clientHeight===h;return f=e.clientWidth,h=e.clientHeight,i?!l:(d=Math.exp(c.computedRadius[0]),!0)},lookAt:function(e,t,n){c.lookAt(c.lastT(),e,t,n)},rotate:function(e,t,n){c.rotate(c.lastT(),e,t,n)},pan:function(e,t,n){c.pan(c.lastT(),e,t,n)},translate:function(e,t,n){c.translate(c.lastT(),e,t,n)}};return Object.defineProperties(p,{matrix:{get:function(){return c.computedMatrix},set:function(e){return c.setMatrix(c.lastT(),e),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(e){var t=c.computedUp.slice(),n=c.computedEye.slice(),o=c.computedCenter.slice();if(c.setMode(e),"turntable"===e){var i=r();c._active.lookAt(i,n,o,t),c._active.lookAt(i+500,n,o,[0,0,1]),c._active.flush(i)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(e){return c.lookAt(c.lastT(),null,e),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(e){return c.lookAt(c.lastT(),e),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(e){return c.lookAt(c.lastT(),null,null,e),c.computedUp},enumerable:!0},distance:{get:function(){return d},set:function(e){return c.setDistance(c.lastT(),e),e},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(n)},set:function(e){return c.setDistanceLimits(e),e},enumerable:!0}}),e.addEventListener("contextmenu",(function(e){return e.preventDefault(),!1})),p._lastX=-1,p._lastY=-1,p._lastMods={shift:!1,control:!1,alt:!1,meta:!1},p.enableMouseListeners=function(){function t(t,n,o,i){var a=p.keyBindingMode;if(!1!==a){var s="rotate"===a,l="pan"===a,u="zoom"===a,f=!!i.control,h=!!i.alt,m=!!i.shift,g=!!(1&t),v=!!(2&t),y=!!(4&t),b=1/e.clientHeight,x=b*(n-p._lastX),_=b*(o-p._lastY),w=p.flipX?1:-1,j=p.flipY?1:-1,k=Math.PI*p.rotateSpeed,T=r();if(-1!==p._lastX&&-1!==p._lastY&&((s&&g&&!f&&!h&&!m||g&&!f&&!h&&m)&&c.rotate(T,w*k*x,-j*k*_,0),(l&&g&&!f&&!h&&!m||v||g&&f&&!h&&!m)&&c.pan(T,-p.translateSpeed*x*d,p.translateSpeed*_*d,0),u&&g&&!f&&!h&&!m||y||g&&!f&&h&&!m)){var A=-p.zoomSpeed*_/window.innerHeight*(T-c.lastT())*100;c.pan(T,0,0,d*(Math.exp(A)-1))}return p._lastX=n,p._lastY=o,p._lastMods=i,!0}}p.mouseListener=i(e,t),e.addEventListener("touchstart",(function(n){var r=s(n.changedTouches[0],e);t(0,r[0],r[1],p._lastMods),t(1,r[0],r[1],p._lastMods)}),!!l&&{passive:!0}),e.addEventListener("touchmove",(function(n){var r=s(n.changedTouches[0],e);t(1,r[0],r[1],p._lastMods),n.preventDefault()}),!!l&&{passive:!1}),e.addEventListener("touchend",(function(e){t(0,p._lastX,p._lastY,p._lastMods)}),!!l&&{passive:!0}),p.wheelListener=a(e,(function(e,t){if(!1!==p.keyBindingMode&&p.enableWheel){var n=p.flipX?1:-1,o=p.flipY?1:-1,i=r();if(Math.abs(e)>Math.abs(t))c.rotate(i,0,0,-e*n*Math.PI*p.rotateSpeed/window.innerWidth);else if(!p._ortho){var a=-p.zoomSpeed*o*t/window.innerHeight*(i-c.lastT())/20;c.pan(i,0,0,d*(Math.exp(a)-1))}}}),!0)},p.enableMouseListeners(),p};var r=n(3025),o=n(6296),i=n(351),a=n(8512),s=n(24),l=n(7520)},799:function(e,t,n){var r=n(3236),o=n(9405),i=r(["precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n uv = position;\n gl_Position = vec4(position, 0, 1);\n}"]),a=r(["precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n gl_FragColor = min(vec4(1,1,1,1), accum);\n}"]);e.exports=function(e){return o(e,i,a,null,[{name:"position",type:"vec2"}])}},4100:function(e,t,n){"use strict";var r=n(4437),o=n(3837),i=n(5445),a=n(4449),s=n(3589),l=n(2260),c=n(7169),u=n(351),d=n(4772),f=n(4040),h=n(799),p=n(9216)({tablet:!0,featureDetect:!0});function m(){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 g(e){var t=Math.round(Math.log(Math.abs(e))/Math.log(10));if(t<0){var n=Math.round(Math.pow(10,-t));return Math.ceil(e*n)/n}if(t>0){n=Math.round(Math.pow(10,t));return Math.ceil(e/n)*n}return Math.ceil(e)}function v(e){return"boolean"!=typeof e||e}e.exports={createScene:function(e){(e=e||{}).camera=e.camera||{};var t=e.canvas;if(!t){if(t=document.createElement("canvas"),e.container)e.container.appendChild(t);else document.body.appendChild(t)}var n=e.gl;n||(e.glOptions&&(p=!!e.glOptions.preserveDrawingBuffer),n=function(e,t){var n=null;try{(n=e.getContext("webgl",t))||(n=e.getContext("experimental-webgl",t))}catch(e){return null}return n}(t,e.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:p}));if(!n)throw new Error("webgl not supported");var y=e.bounds||[[-10,-10,-10],[10,10,10]],b=new m,x=l(n,n.drawingBufferWidth,n.drawingBufferHeight,{preferFloat:!p}),_=h(n),w=e.cameraObject&&!0===e.cameraObject._ortho||e.camera.projection&&"orthographic"===e.camera.projection.type||!1,j={eye:e.camera.eye||[2,0,0],center:e.camera.center||[0,0,0],up:e.camera.up||[0,1,0],zoomMin:e.camera.zoomMax||.1,zoomMax:e.camera.zoomMin||100,mode:e.camera.mode||"turntable",_ortho:w},k=e.axes||{},T=o(n,k);T.enable=!k.disable;var A=e.spikes||{},M=a(n,A),S=[],C=[],E=[],L=[],O=!0,R=!0,I=new Array(16),P=new Array(16),D={view:null,projection:I,model:P,_ortho:!1},z=(R=!0,[n.drawingBufferWidth,n.drawingBufferHeight]),N=e.cameraObject||r(t,j),F={gl:n,contextLost:!1,pixelRatio:e.pixelRatio||1,canvas:t,selection:b,camera:N,axes:T,axesPixels:null,spikes:M,bounds:y,objects:S,shape:z,aspect:e.aspectRatio||[1,1,1],pickRadius:e.pickRadius||10,zNear:e.zNear||.01,zFar:e.zFar||1e3,fovy:e.fovy||Math.PI/4,clearColor:e.clearColor||[0,0,0,0],autoResize:v(e.autoResize),autoBounds:v(e.autoBounds),autoScale:!!e.autoScale,autoCenter:v(e.autoCenter),clipToBounds:v(e.clipToBounds),snapToData:!!e.snapToData,onselect:e.onselect||null,onrender:e.onrender||null,onclick:e.onclick||null,cameraParams:D,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(e){this.aspect[0]=e.x,this.aspect[1]=e.y,this.aspect[2]=e.z,R=!0},setBounds:function(e,t){this.bounds[0][e]=t.min,this.bounds[1][e]=t.max},setClearColor:function(e){this.clearColor=e},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)}},B=[n.drawingBufferWidth/F.pixelRatio|0,n.drawingBufferHeight/F.pixelRatio|0];function U(){if(!F._stopped&&F.autoResize){var e=t.parentNode,n=1,r=1;e&&e!==document.body?(n=e.clientWidth,r=e.clientHeight):(n=window.innerWidth,r=window.innerHeight);var o=0|Math.ceil(n*F.pixelRatio),i=0|Math.ceil(r*F.pixelRatio);if(o!==t.width||i!==t.height){t.width=o,t.height=i;var a=t.style;a.position=a.position||"absolute",a.left="0px",a.top="0px",a.width=n+"px",a.height=r+"px",O=!0}}}F.autoResize&&U();function H(){for(var e=S.length,t=L.length,r=0;r<t;++r)E[r]=0;e:for(r=0;r<e;++r){var o=S[r],i=o.pickSlots;if(i){for(var a=0;a<t;++a)if(E[a]+i<255){C[r]=a,o.setPickBase(E[a]+1),E[a]+=i;continue e}var l=s(n,z);C[r]=t,L.push(l),E.push(i),o.setPickBase(1),t+=1}else C[r]=-1}for(;t>0&&0===E[t-1];)E.pop(),L.pop().dispose()}function V(){if(F.contextLost)return!0;n.isContextLost()&&(F.contextLost=!0,F.mouseListener.enabled=!1,F.selection.object=null,F.oncontextloss&&F.oncontextloss())}window.addEventListener("resize",U),F.update=function(e){F._stopped||(e=e||{},O=!0,R=!0)},F.add=function(e){F._stopped||(e.axes=T,S.push(e),C.push(-1),O=!0,R=!0,H())},F.remove=function(e){if(!F._stopped){var t=S.indexOf(e);t<0||(S.splice(t,1),C.pop(),O=!0,R=!0,H())}},F.dispose=function(){if(!F._stopped&&(F._stopped=!0,window.removeEventListener("resize",U),t.removeEventListener("webglcontextlost",V),F.mouseListener.enabled=!1,!F.contextLost)){T.dispose(),M.dispose();for(var e=0;e<S.length;++e)S[e].dispose();x.dispose();for(e=0;e<L.length;++e)L[e].dispose();_.dispose(),n=null,T=null,M=null,S=[]}},F._mouseRotating=!1,F._prevButtons=0,F.enableMouseListeners=function(){F.mouseListener=u(t,(function(e,t,n){if(!F._stopped){var r=L.length,o=S.length,i=b.object;b.distance=1/0,b.mouse[0]=t,b.mouse[1]=n,b.object=null,b.screen=null,b.dataCoordinate=b.dataPosition=null;var a=!1;if(e&&F._prevButtons)F._mouseRotating=!0;else{F._mouseRotating&&(R=!0),F._mouseRotating=!1;for(var s=0;s<r;++s){var l=L[s].query(t,B[1]-n-1,F.pickRadius);if(l){if(l.distance>b.distance)continue;for(var c=0;c<o;++c){var u=S[c];if(C[c]===s){var d=u.pick(l);d&&(b.buttons=e,b.screen=l.coord,b.distance=l.distance,b.object=u,b.index=d.distance,b.dataPosition=d.position,b.dataCoordinate=d.dataCoordinate,b.data=d,a=!0)}}}}}i&&i!==b.object&&(i.highlight&&i.highlight(null),O=!0),b.object&&(b.object.highlight&&b.object.highlight(b.data),O=!0),(a=a||b.object!==i)&&F.onselect&&F.onselect(b),1&e&&!(1&F._prevButtons)&&F.onclick&&F.onclick(b),F._prevButtons=e}}))},t.addEventListener("webglcontextlost",V);var G=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],q=[G[0].slice(),G[1].slice()];function W(){if(!V()){U();var e=F.camera.tick();D.view=F.camera.matrix,O=O||e,R=R||e,T.pixelRatio=F.pixelRatio,M.pixelRatio=F.pixelRatio;var t=S.length,r=G[0],o=G[1];r[0]=r[1]=r[2]=1/0,o[0]=o[1]=o[2]=-1/0;for(var a=0;a<t;++a){(E=S[a]).pixelRatio=F.pixelRatio,E.axes=F.axes,O=O||!!E.dirty,R=R||!!E.dirty;var s=E.bounds;if(s)for(var l=s[0],u=s[1],h=0;h<3;++h)r[h]=Math.min(r[h],l[h]),o[h]=Math.max(o[h],u[h])}var p=F.bounds;if(F.autoBounds)for(h=0;h<3;++h){if(o[h]<r[h])r[h]=-1,o[h]=1;else{r[h]===o[h]&&(r[h]-=1,o[h]+=1);var m=.05*(o[h]-r[h]);r[h]=r[h]-m,o[h]=o[h]+m}p[0][h]=r[h],p[1][h]=o[h]}var v=!1;for(h=0;h<3;++h)v=v||q[0][h]!==p[0][h]||q[1][h]!==p[1][h],q[0][h]=p[0][h],q[1][h]=p[1][h];if(R=R||v,O=O||v){if(v){var y=[0,0,0];for(a=0;a<3;++a)y[a]=g((p[1][a]-p[0][a])/10);T.autoTicks?T.update({bounds:p,tickSpacing:y}):T.update({bounds:p})}var j=n.drawingBufferWidth,k=n.drawingBufferHeight;z[0]=j,z[1]=k,B[0]=0|Math.max(j/F.pixelRatio,1),B[1]=0|Math.max(k/F.pixelRatio,1),function(e,t){var n=e.bounds,r=e.cameraParams,o=r.projection,i=r.model,a=e.gl.drawingBufferWidth,s=e.gl.drawingBufferHeight,l=e.zNear,c=e.zFar,u=e.fovy,h=a/s;t?(f(o,-h,h,-1,1,l,c),r._ortho=!0):(d(o,u,h,l,c),r._ortho=!1);for(var p=0;p<16;++p)i[p]=0;i[15]=1;var m=0;for(p=0;p<3;++p)m=Math.max(m,n[1][p]-n[0][p]);for(p=0;p<3;++p)e.autoScale?i[5*p]=e.aspect[p]/(n[1][p]-n[0][p]):i[5*p]=1/m,e.autoCenter&&(i[12+p]=.5*-i[5*p]*(n[0][p]+n[1][p]))}(F,w);for(a=0;a<t;++a){(E=S[a]).axesBounds=p,F.clipToBounds&&(E.clipBounds=p)}b.object&&(F.snapToData?M.position=b.dataCoordinate:M.position=b.dataPosition,M.bounds=p),R&&(R=!1,function(){if(!V()){n.colorMask(!0,!0,!0,!0),n.depthMask(!0),n.disable(n.BLEND),n.enable(n.DEPTH_TEST),n.depthFunc(n.LEQUAL);for(var e=S.length,t=L.length,r=0;r<t;++r){var o=L[r];o.shape=B,o.begin();for(var i=0;i<e;++i)if(C[i]===r){var a=S[i];a.drawPick&&(a.pixelRatio=1,a.drawPick(D))}o.end()}}}()),F.axesPixels=i(F.axes,D,j,k),F.onrender&&F.onrender(),n.bindFramebuffer(n.FRAMEBUFFER,null),n.viewport(0,0,j,k),F.clearRGBA(),n.depthMask(!0),n.colorMask(!0,!0,!0,!0),n.enable(n.DEPTH_TEST),n.depthFunc(n.LEQUAL),n.disable(n.BLEND),n.disable(n.CULL_FACE);var A=!1;T.enable&&(A=A||T.isTransparent(),T.draw(D)),M.axes=T,b.object&&M.draw(D),n.disable(n.CULL_FACE);for(a=0;a<t;++a){(E=S[a]).axes=T,E.pixelRatio=F.pixelRatio,E.isOpaque&&E.isOpaque()&&E.draw(D),E.isTransparent&&E.isTransparent()&&(A=!0)}if(A){x.shape=z,x.bind(),n.clear(n.DEPTH_BUFFER_BIT),n.colorMask(!1,!1,!1,!1),n.depthMask(!0),n.depthFunc(n.LESS),T.enable&&T.isTransparent()&&T.drawTransparent(D);for(a=0;a<t;++a){(E=S[a]).isOpaque&&E.isOpaque()&&E.draw(D)}n.enable(n.BLEND),n.blendEquation(n.FUNC_ADD),n.blendFunc(n.ONE,n.ONE_MINUS_SRC_ALPHA),n.colorMask(!0,!0,!0,!0),n.depthMask(!1),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),T.isTransparent()&&T.drawTransparent(D);for(a=0;a<t;++a){var E;(E=S[a]).isTransparent&&E.isTransparent()&&E.drawTransparent(D)}n.bindFramebuffer(n.FRAMEBUFFER,null),n.blendFunc(n.ONE,n.ONE_MINUS_SRC_ALPHA),n.disable(n.DEPTH_TEST),_.bind(),x.color[0].bind(0),_.uniforms.accumBuffer=0,c(n),n.disable(n.BLEND)}O=!1;for(a=0;a<t;++a)S[a].dirty=!1}}}return F.enableMouseListeners(),function e(){if(F._stopped||F.contextLost)return;W(),requestAnimationFrame(e)}(),F.redraw=function(){F._stopped||(O=!0,W())},F},createCamera:r}},6640:function(e,t,n){var r=n(3236);t.pointVertex=r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n highp float a = 12.9898;\n highp float b = 78.233;\n highp float c = 43758.5453;\n highp float d = dot(co.xy, vec2(a, b));\n highp float e = mod(d, 3.14);\n return fract(sin(e) * c);\n}\n\nvoid main() {\n vec3 hgPosition = matrix * vec3(position, 1);\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\n // if we don't jitter the point size a bit, overall point cloud\n // saturation 'jumps' on zooming, which is disturbing and confusing\n gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n if(pointCloud != 0.0) { // pointCloud is truthy\n // get the same square surface as circle would be\n gl_PointSize *= 0.886;\n }\n}"]),t.pointFragment=r(["precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n float radius;\n vec4 baseColor;\n if(pointCloud != 0.0) { // pointCloud is truthy\n if(centerFraction == 1.0) {\n gl_FragColor = color;\n } else {\n gl_FragColor = mix(borderColor, color, centerFraction);\n }\n } else {\n radius = length(2.0 * gl_PointCoord.xy - 1.0);\n if(radius > 1.0) {\n discard;\n }\n baseColor = mix(borderColor, color, step(radius, centerFraction));\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n }\n}\n"]),t.pickVertex=r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n vec3 hgPosition = matrix * vec3(position, 1);\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\n gl_PointSize = pointSize;\n\n vec4 id = pickId + pickOffset;\n id.y += floor(id.x / 256.0);\n id.x -= floor(id.x / 256.0) * 256.0;\n\n id.z += floor(id.y / 256.0);\n id.y -= floor(id.y / 256.0) * 256.0;\n\n id.w += floor(id.z / 256.0);\n id.z -= floor(id.z / 256.0) * 256.0;\n\n fragId = id;\n}\n"]),t.pickFragment=r(["precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n if(radius > 1.0) {\n discard;\n }\n gl_FragColor = fragId / 255.0;\n}\n"])},4696:function(e,t,n){"use strict";var r=n(9405),o=n(2762),i=n(1888),a=n(6640);function s(e,t,n,r,o){this.plot=e,this.offsetBuffer=t,this.pickBuffer=n,this.shader=r,this.pickShader=o,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(e,t){var n=e.gl,i=o(n),l=o(n),c=r(n,a.pointVertex,a.pointFragment),u=r(n,a.pickVertex,a.pickFragment),d=new s(e,i,l,c,u);return d.update(t),e.addObject(d),d};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(e){var t;function n(t,n){return t in e?e[t]:n}e=e||{},this.sizeMin=n("sizeMin",.5),this.sizeMax=n("sizeMax",20),this.color=n("color",[1,0,0,1]).slice(),this.areaRatio=n("areaRatio",1),this.borderColor=n("borderColor",[0,0,0,1]).slice(),this.blend=n("blend",!1);var r=e.positions.length>>>1,o=e.positions instanceof Float32Array,a=e.idToIndex instanceof Int32Array&&e.idToIndex.length>=r,s=e.positions,l=o?s:i.mallocFloat32(s.length),c=a?e.idToIndex:i.mallocInt32(r);if(o||l.set(s),!a)for(l.set(s),t=0;t<r;t++)c[t]=t;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),o||i.free(l),a||i.free(c),this.pointCount=r,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(e){var t=void 0!==e,n=t?this.pickShader:this.shader,r=this.plot.gl,o=this.plot.dataBox;if(0===this.pointCount)return e;var i=o[2]-o[0],a=o[3]-o[1],s=function(e,t){var n,r=0,o=e.length>>>1;for(n=0;n<o;n++){var i=e[2*n],a=e[2*n+1];i>=t[0]&&i<=t[2]&&a>=t[1]&&a<=t[3]&&r++}return r}(this.points,o),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/i,l[4]=2/a,l[6]=-2*o[0]/i-1,l[7]=-2*o[1]/a-1,this.offsetBuffer.bind(),n.bind(),n.attributes.position.pointer(),n.uniforms.matrix=l,n.uniforms.color=this.color,n.uniforms.borderColor=this.borderColor,n.uniforms.pointCloud=u<5,n.uniforms.pointSize=u,n.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),t&&(c[0]=255&e,c[1]=e>>8&255,c[2]=e>>16&255,c[3]=e>>24&255,this.pickBuffer.bind(),n.attributes.pickId.pointer(r.UNSIGNED_BYTE),n.uniforms.pickOffset=c,this.pickOffset=e);var d=r.getParameter(r.BLEND),f=r.getParameter(r.DITHER);return d&&!this.blend&&r.disable(r.BLEND),f&&r.disable(r.DITHER),r.drawArrays(r.POINTS,0,this.pointCount),d&&!this.blend&&r.enable(r.BLEND),f&&r.enable(r.DITHER),e+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(e,t,n){var r=this.pickOffset,o=this.pointCount;if(n<r||n>=r+o)return null;var i=n-r,a=this.points;return{object:this,pointId:i,dataCoord:[a[2*i],a[2*i+1]]}}},783:function(e){e.exports=function(e,t,n,r){var o,i,a,s,l,c=t[0],u=t[1],d=t[2],f=t[3],h=n[0],p=n[1],m=n[2],g=n[3];(i=c*h+u*p+d*m+f*g)<0&&(i=-i,h=-h,p=-p,m=-m,g=-g);1-i>1e-6?(o=Math.acos(i),a=Math.sin(o),s=Math.sin((1-r)*o)/a,l=Math.sin(r*o)/a):(s=1-r,l=r);return e[0]=s*c+l*h,e[1]=s*u+l*p,e[2]=s*d+l*m,e[3]=s*f+l*g,e}},5964:function(e){"use strict";e.exports=function(e){return e||0===e?e.toString():""}},9366:function(e,t,n){"use strict";var r=n(4359);e.exports=function(e,t,n){var i=[t.style,t.weight,t.variant,t.family].join("_"),a=o[i];a||(a=o[i]={});if(e in a)return a[e];var s={textAlign:"center",textBaseline:"middle",lineHeight:1,font:t.family,fontStyle:t.style,fontWeight:t.weight,fontVariant:t.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},l=r(e,s);s.triangles=!1;var c,u,d=r(e,s);if(n&&1!==n){for(c=0;c<l.positions.length;++c)for(u=0;u<l.positions[c].length;++u)l.positions[c][u]/=n;for(c=0;c<d.positions.length;++c)for(u=0;u<d.positions[c].length;++u)d.positions[c][u]/=n}var f=[[1/0,1/0],[-1/0,-1/0]],h=d.positions.length;for(c=0;c<h;++c){var p=d.positions[c];for(u=0;u<2;++u)f[0][u]=Math.min(f[0][u],p[u]),f[1][u]=Math.max(f[1][u],p[u])}return a[e]=[l,d,f]};var o={}},1283:function(e,t,n){var r=n(9405),o=n(3236),i=o(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = 1.0;\n if(distance(highlightId, id) < 0.0001) {\n scale = highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1);\n vec4 viewPosition = view * worldPosition;\n viewPosition = viewPosition / viewPosition.w;\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),a=o(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = pixelRatio;\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\n scale *= highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1.0);\n vec4 viewPosition = view * worldPosition;\n vec4 clipPosition = projection * viewPosition;\n clipPosition /= clipPosition.w;\n\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),s=o(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float lscale = pixelRatio * scale;\n if(distance(highlightId, id) < 0.0001) {\n lscale *= highlightScale;\n }\n\n vec4 clipCenter = projection * (view * (model * vec4(position, 1)));\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n vec4 clipPosition = projection * (view * (model * vec4(dataPosition, 1)));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = dataPosition;\n }\n}\n"]),l=o(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (\n outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n interpColor.a * opacity == 0.\n ) discard;\n gl_FragColor = interpColor * opacity;\n}\n"]),c=o(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n gl_FragColor = vec4(pickGroup, pickId.bgr);\n}"]),u=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],d={vertex:i,fragment:l,attributes:u},f={vertex:a,fragment:l,attributes:u},h={vertex:s,fragment:l,attributes:u},p={vertex:i,fragment:c,attributes:u},m={vertex:a,fragment:c,attributes:u},g={vertex:s,fragment:c,attributes:u};function v(e,t){var n=r(e,t),o=n.attributes;return o.position.location=0,o.color.location=1,o.glyph.location=2,o.id.location=3,n}t.createPerspective=function(e){return v(e,d)},t.createOrtho=function(e){return v(e,f)},t.createProject=function(e){return v(e,h)},t.createPickPerspective=function(e){return v(e,p)},t.createPickOrtho=function(e){return v(e,m)},t.createPickProject=function(e){return v(e,g)}},8418:function(e,t,n){"use strict";var r=n(5219),o=n(2762),i=n(8116),a=n(1888),s=n(6760),l=n(1283),c=n(9366),u=n(5964),d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],f=ArrayBuffer,h=DataView;function p(e){return Array.isArray(e)||function(e){return f.isView(e)&&!(e instanceof h)}(e)}function m(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];return e[0]=t[0]*n+t[4]*r+t[8]*o+t[12]*i,e[1]=t[1]*n+t[5]*r+t[9]*o+t[13]*i,e[2]=t[2]*n+t[6]*r+t[10]*o+t[14]*i,e[3]=t[3]*n+t[7]*r+t[11]*o+t[15]*i,e}function g(e,t,n,r){return m(r,r),m(r,r),m(r,r)}function v(e,t){this.index=e,this.dataCoordinate=this.position=t}function y(e){return!0===e||e>1?1:e}function b(e,t,n,r,o,i,a,s,l,c,u,d){this.gl=e,this.pixelRatio=1,this.shader=t,this.orthoShader=n,this.projectShader=r,this.pointBuffer=o,this.colorBuffer=i,this.glyphBuffer=a,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=d,this.points=[],this._selectResult=new v(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}e.exports=function(e){var t=e.gl,n=l.createPerspective(t),r=l.createOrtho(t),a=l.createProject(t),s=l.createPickPerspective(t),c=l.createPickOrtho(t),u=l.createPickProject(t),d=o(t),f=o(t),h=o(t),p=o(t),m=i(t,[{buffer:d,size:3,type:t.FLOAT},{buffer:f,size:4,type:t.FLOAT},{buffer:h,size:2,type:t.FLOAT},{buffer:p,size:4,type:t.UNSIGNED_BYTE,normalized:!0}]),g=new b(t,n,r,a,d,f,h,p,m,s,c,u);return g.update(e),g};var x=b.prototype;x.pickSlots=1,x.setPickBase=function(e){this.pickId=e},x.isTransparent=function(){if(this.hasAlpha)return!0;for(var e=0;e<3;++e)if(this.axesProject[e]&&this.projectHasAlpha)return!0;return!1},x.isOpaque=function(){if(!this.hasAlpha)return!0;for(var e=0;e<3;++e)if(this.axesProject[e]&&!this.projectHasAlpha)return!0;return!1};var _=[0,0],w=[0,0,0],j=[0,0,0],k=[0,0,0,1],T=[0,0,0,1],A=d.slice(),M=[0,0,0],S=[[0,0,0],[0,0,0]];function C(e){return e[0]=e[1]=e[2]=0,e}function E(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=1,e}function L(e,t,n,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[n]=r,e}function O(e,t,n,r){var o,i=t.axesProject,a=t.gl,l=e.uniforms,c=n.model||d,u=n.view||d,f=n.projection||d,h=t.axesBounds,p=function(e){for(var t=S,n=0;n<2;++n)for(var r=0;r<3;++r)t[n][r]=Math.max(Math.min(e[n][r],1e8),-1e8);return t}(t.clipBounds);o=t.axes&&t.axes.lastCubeProps?t.axes.lastCubeProps.axis:[1,1,1],_[0]=2/a.drawingBufferWidth,_[1]=2/a.drawingBufferHeight,e.bind(),l.view=u,l.projection=f,l.screenSize=_,l.highlightId=t.highlightId,l.highlightScale=t.highlightScale,l.clipBounds=p,l.pickGroup=t.pickId/255,l.pixelRatio=r;for(var m=0;m<3;++m)if(i[m]){l.scale=t.projectScale[m],l.opacity=t.projectOpacity[m];for(var v=A,y=0;y<16;++y)v[y]=0;for(y=0;y<4;++y)v[5*y]=1;v[5*m]=0,o[m]<0?v[12+m]=h[0][m]:v[12+m]=h[1][m],s(v,c,v),l.model=v;var b=(m+1)%3,x=(m+2)%3,O=C(w),R=C(j);O[b]=1,R[x]=1;var I=g(0,0,0,E(k,O)),P=g(0,0,0,E(T,R));if(Math.abs(I[1])>Math.abs(P[1])){var D=I;I=P,P=D,D=O,O=R,R=D;var z=b;b=x,x=z}I[0]<0&&(O[b]=-1),P[1]>0&&(R[x]=-1);var N=0,F=0;for(y=0;y<4;++y)N+=Math.pow(c[4*b+y],2),F+=Math.pow(c[4*x+y],2);O[b]/=Math.sqrt(N),R[x]/=Math.sqrt(F),l.axes[0]=O,l.axes[1]=R,l.fragClipBounds[0]=L(M,p[0],m,-1e8),l.fragClipBounds[1]=L(M,p[1],m,1e8),t.vao.bind(),t.vao.draw(a.TRIANGLES,t.vertexCount),t.lineWidth>0&&(a.lineWidth(t.lineWidth*r),t.vao.draw(a.LINES,t.lineVertexCount,t.vertexCount)),t.vao.unbind()}}var R=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function I(e,t,n,r,o,i,a){var s=n.gl;if((i===n.projectHasAlpha||a)&&O(t,n,r,o),i===n.hasAlpha||a){e.bind();var l=e.uniforms;l.model=r.model||d,l.view=r.view||d,l.projection=r.projection||d,_[0]=2/s.drawingBufferWidth,_[1]=2/s.drawingBufferHeight,l.screenSize=_,l.highlightId=n.highlightId,l.highlightScale=n.highlightScale,l.fragClipBounds=R,l.clipBounds=n.axes.bounds,l.opacity=n.opacity,l.pickGroup=n.pickId/255,l.pixelRatio=o,n.vao.bind(),n.vao.draw(s.TRIANGLES,n.vertexCount),n.lineWidth>0&&(s.lineWidth(n.lineWidth*o),n.vao.draw(s.LINES,n.lineVertexCount,n.vertexCount)),n.vao.unbind()}}function P(e,t,n,o){var i;i=p(e)?t<e.length?e[t]:void 0:e,i=u(i);var a=!0;r(i)&&(i="▼",a=!1),n||(n={});var s=n.family;p(s)&&(s=s[t]),s||(s="normal");var l=n.weight;p(l)&&(l=l[t]),l||(l="normal");var d=n.style;p(d)&&(d=d[t]),d||(d="normal");var f=n.variant;p(f)&&(f=f[t]),f||(f="normal");var h=c(i,{family:s,weight:l,style:d,variant:f},o);return{mesh:(h=c(i,n,o))[0],lines:h[1],bounds:h[2],visible:a}}x.draw=function(e){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,e,this.pixelRatio,!1,!1)},x.drawTransparent=function(e){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,e,this.pixelRatio,!0,!1)},x.drawPick=function(e){I(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,e,1,!0,!0)},x.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;var t=e.value[2]+(e.value[1]<<8)+(e.value[0]<<16);if(t>=this.pointCount||t<0)return null;var n=this.points[t],r=this._selectResult;r.index=t;for(var o=0;o<3;++o)r.position[o]=r.dataCoordinate[o]=n[o];return r},x.highlight=function(e){if(e){var t=e.index,n=255&t,r=t>>8&255,o=t>>16&255;this.highlightId=[n/255,r/255,o/255,0]}else this.highlightId=[1,1,1,1]},x.update=function(e){if("perspective"in(e=e||{})&&(this.useOrtho=!e.perspective),"orthographic"in e&&(this.useOrtho=!!e.orthographic),"lineWidth"in e&&(this.lineWidth=e.lineWidth),"project"in e)if(p(e.project))this.axesProject=e.project;else{var t=!!e.project;this.axesProject=[t,t,t]}if("projectScale"in e)if(p(e.projectScale))this.projectScale=e.projectScale.slice();else{var n=+e.projectScale;this.projectScale=[n,n,n]}if(this.projectHasAlpha=!1,"projectOpacity"in e){if(p(e.projectOpacity))this.projectOpacity=e.projectOpacity.slice();else{n=+e.projectOpacity;this.projectOpacity=[n,n,n]}for(var r=0;r<3;++r)this.projectOpacity[r]=y(this.projectOpacity[r]),this.projectOpacity[r]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in e&&(this.opacity=y(e.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var o,i,s=e.position,l={family:e.font||"normal",style:e.fontStyle||"normal",weight:e.fontWeight||"normal",variant:e.fontVariant||"normal"},c=e.alignment||[0,0];if(2===c.length)o=c[0],i=c[1];else{o=[],i=[];for(r=0;r<c.length;++r)o[r]=c[r][0],i[r]=c[r][1]}var u=[1/0,1/0,1/0],d=[-1/0,-1/0,-1/0],f=e.glyph,h=e.color,m=e.size,g=e.angle,v=e.lineColor,b=-1,x=0,_=0,w=0;if(s.length){w=s.length;e:for(r=0;r<w;++r){for(var j=s[r],k=0;k<3;++k)if(isNaN(j[k])||!isFinite(j[k]))continue e;var T=(B=P(f,r,l,this.pixelRatio)).mesh,A=B.lines,M=B.bounds;x+=3*T.cells.length,_+=2*A.edges.length}}var S=x+_,C=a.mallocFloat(3*S),E=a.mallocFloat(4*S),L=a.mallocFloat(2*S),O=a.mallocUint32(S);if(S>0){var R=0,I=x,D=[0,0,0,1],z=[0,0,0,1],N=p(h)&&p(h[0]),F=p(v)&&p(v[0]);e:for(r=0;r<w;++r){b+=1;for(j=s[r],k=0;k<3;++k){if(isNaN(j[k])||!isFinite(j[k]))continue e;d[k]=Math.max(d[k],j[k]),u[k]=Math.min(u[k],j[k])}T=(B=P(f,r,l,this.pixelRatio)).mesh,A=B.lines,M=B.bounds;var B,U=B.visible;if(U)if(p(h)){if(3===(H=N?r<h.length?h[r]:[0,0,0,0]:h).length){for(k=0;k<3;++k)D[k]=H[k];D[3]=1}else if(4===H.length){for(k=0;k<4;++k)D[k]=H[k];!this.hasAlpha&&H[3]<1&&(this.hasAlpha=!0)}}else D[0]=D[1]=D[2]=0,D[3]=1;else D=[1,1,1,0];if(U)if(p(v)){var H;if(3===(H=F?r<v.length?v[r]:[0,0,0,0]:v).length){for(k=0;k<3;++k)z[k]=H[k];z[k]=1}else if(4===H.length){for(k=0;k<4;++k)z[k]=H[k];!this.hasAlpha&&H[3]<1&&(this.hasAlpha=!0)}}else z[0]=z[1]=z[2]=0,z[3]=1;else z=[1,1,1,0];var V=.5;U?p(m)?V=r<m.length?+m[r]:12:m?V=+m:this.useOrtho&&(V=12):V=0;var G=0;p(g)?G=r<g.length?+g[r]:0:g&&(G=+g);var q=Math.cos(G),W=Math.sin(G);for(j=s[r],k=0;k<3;++k)d[k]=Math.max(d[k],j[k]),u[k]=Math.min(u[k],j[k]);var Y=o,X=i;Y=0;p(o)?Y=r<o.length?o[r]:0:o&&(Y=o);X=0;p(i)?X=r<i.length?i[r]:0:i&&(X=i);var Z=[Y*=Y>0?1-M[0][0]:Y<0?1+M[1][0]:1,X*=X>0?1-M[0][1]:X<0?1+M[1][1]:1],$=T.cells||[],K=T.positions||[];for(k=0;k<$.length;++k)for(var J=$[k],Q=0;Q<3;++Q){for(var ee=0;ee<3;++ee)C[3*R+ee]=j[ee];for(ee=0;ee<4;++ee)E[4*R+ee]=D[ee];O[R]=b;var te=K[J[Q]];L[2*R]=V*(q*te[0]-W*te[1]+Z[0]),L[2*R+1]=V*(W*te[0]+q*te[1]+Z[1]),R+=1}for($=A.edges,K=A.positions,k=0;k<$.length;++k)for(J=$[k],Q=0;Q<2;++Q){for(ee=0;ee<3;++ee)C[3*I+ee]=j[ee];for(ee=0;ee<4;++ee)E[4*I+ee]=z[ee];O[I]=b;te=K[J[Q]];L[2*I]=V*(q*te[0]-W*te[1]+Z[0]),L[2*I+1]=V*(W*te[0]+q*te[1]+Z[1]),I+=1}}}this.bounds=[u,d],this.points=s,this.pointCount=s.length,this.vertexCount=x,this.lineVertexCount=_,this.pointBuffer.update(C),this.colorBuffer.update(E),this.glyphBuffer.update(L),this.idBuffer.update(O),a.free(C),a.free(E),a.free(L),a.free(O)},x.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()}},4298:function(e,t,n){"use strict";var r=n(3236);t.boxVertex=r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 vertex;\n\nuniform vec2 cornerA, cornerB;\n\nvoid main() {\n gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\n}\n"]),t.boxFragment=r(["precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n gl_FragColor = color;\n}\n"])},3161:function(e,t,n){"use strict";var r=n(9405),o=n(2762),i=n(4298);function a(e,t,n){this.plot=e,this.boxBuffer=t,this.boxShader=n,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(e,t){var n=e.gl,s=o(n,[0,0,0,1,1,0,1,1]),l=r(n,i.boxVertex,i.boxFragment),c=new a(e,s,l);return c.update(t),e.addOverlay(c),c};var s=a.prototype;s.draw=function(){if(this.enabled){var e=this.plot,t=this.selectBox,n=this.borderWidth,r=(this.innerFill,this.innerColor),o=(this.outerFill,this.outerColor),i=this.borderColor,a=e.box,s=e.screenBox,l=e.dataBox,c=e.viewBox,u=e.pixelRatio,d=(t[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],f=(t[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],h=(t[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],p=(t[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(d=Math.max(d,c[0]),f=Math.max(f,c[1]),h=Math.min(h,c[2]),p=Math.min(p,c[3]),!(h<d||p<f)){a.bind();var m=s[2]-s[0],g=s[3]-s[1];if(this.outerFill&&(a.drawBox(0,0,m,f,o),a.drawBox(0,f,d,p,o),a.drawBox(0,p,m,g,o),a.drawBox(h,f,m,p,o)),this.innerFill&&a.drawBox(d,f,h,p,r),n>0){var v=n*u;a.drawBox(d-v,f-v,h+v,f+v,i),a.drawBox(d-v,p-v,h+v,p+v,i),a.drawBox(d-v,f-v,d+v,p+v,i),a.drawBox(h-v,f-v,h+v,p+v,i)}}}},s.update=function(e){e=e||{},this.innerFill=!!e.innerFill,this.outerFill=!!e.outerFill,this.innerColor=(e.innerColor||[0,0,0,.5]).slice(),this.outerColor=(e.outerColor||[0,0,0,.5]).slice(),this.borderColor=(e.borderColor||[0,0,0,1]).slice(),this.borderWidth=e.borderWidth||0,this.selectBox=(e.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},3589:function(e,t,n){"use strict";e.exports=function(e,t){var n=t[0],i=t[1],a=r(e,n,i,{}),s=o.mallocUint8(n*i*4);return new l(e,a,s)};var r=n(2260),o=n(1888),i=n(9618),a=n(8828).nextPow2;function s(e,t,n,r,o){this.coord=[e,t],this.id=n,this.value=r,this.distance=o}function l(e,t,n){this.gl=e,this.fbo=t,this.buffer=n,this._readTimeout=null;var r=this;this._readCallback=function(){r.gl&&(t.bind(),e.readPixels(0,0,t.shape[0],t.shape[1],e.RGBA,e.UNSIGNED_BYTE,r.buffer),r._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(e){if(this.gl){this.fbo.shape=e;var t=this.fbo.shape[0],n=this.fbo.shape[1];if(n*t*4>this.buffer.length){o.free(this.buffer);for(var r=this.buffer=o.mallocUint8(a(n*t*4)),i=0;i<n*t*4;++i)r[i]=255}return e}}}),c.begin=function(){var e=this.gl;this.shape;e&&(this.fbo.bind(),e.clearColor(1,1,1,1),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT))},c.end=function(){var e=this.gl;e&&(e.bindFramebuffer(e.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(e,t,n){if(!this.gl)return null;var r=this.fbo.shape.slice();e|=0,t|=0,"number"!=typeof n&&(n=1);var o=0|Math.min(Math.max(e-n,0),r[0]),a=0|Math.min(Math.max(e+n,0),r[0]),l=0|Math.min(Math.max(t-n,0),r[1]),c=0|Math.min(Math.max(t+n,0),r[1]);if(a<=o||c<=l)return null;var u=[a-o,c-l],d=i(this.buffer,[u[0],u[1],4],[4,4*r[0],1],4*(o+r[0]*l)),f=function(e,t,n){for(var r=1e8,o=-1,i=-1,a=e.shape[0],s=e.shape[1],l=0;l<a;l++)for(var c=0;c<s;c++){var u=e.get(l,c,0),d=e.get(l,c,1),f=e.get(l,c,2),h=e.get(l,c,3);if(u<255||d<255||f<255||h<255){var p=t-l,m=n-c,g=p*p+m*m;g<r&&(r=g,o=l,i=c)}}return[o,i,r]}(d.hi(u[0],u[1],1),n,n),h=f[0],p=f[1];return h<0||Math.pow(this.radius,2)<f[2]?null:new s(h+o|0,p+l|0,d.get(h,p,0),[d.get(h,p,1),d.get(h,p,2),d.get(h,p,3)],Math.sqrt(f[2]))},c.dispose=function(){this.gl&&(this.fbo.dispose(),o.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))}},9405:function(e,t,n){"use strict";var r=n(3327),o=n(8731),i=n(216),a=n(5091),s=n(2145),l=n(8866);function c(e){this.gl=e,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function d(e,t){return e.name<t.name?-1:1}u.bind=function(){var e;this.program||this._relink();var t=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),n=this.gl.lastAttribCount;if(t>n)for(e=n;e<t;e++)this.gl.enableVertexAttribArray(e);else if(n>t)for(e=t;e<n;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=t,this.gl.useProgram(this.program)},u.dispose=function(){for(var e=this.gl.lastAttribCount,t=0;t<e;t++)this.gl.disableVertexAttribArray(t);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},u.update=function(e,t,n,c){if(!t||1===arguments.length){var u=e;e=u.vertex,t=u.fragment,n=u.uniforms,c=u.attributes}var f=this,h=f.gl,p=f._vref;f._vref=a.shader(h,h.VERTEX_SHADER,e),p&&p.dispose(),f.vertShader=f._vref.shader;var m=this._fref;if(f._fref=a.shader(h,h.FRAGMENT_SHADER,t),m&&m.dispose(),f.fragShader=f._fref.shader,!n||!c){var g=h.createProgram();if(h.attachShader(g,f.fragShader),h.attachShader(g,f.vertShader),h.linkProgram(g),!h.getProgramParameter(g,h.LINK_STATUS)){var v=h.getProgramInfoLog(g);throw new l(v,"Error linking program:"+v)}n=n||s.uniforms(h,g),c=c||s.attributes(h,g),h.deleteProgram(g)}(c=c.slice()).sort(d);var y,b=[],x=[],_=[];for(y=0;y<c.length;++y){var w=c[y];if(w.type.indexOf("mat")>=0){for(var j=0|w.type.charAt(w.type.length-1),k=new Array(j),T=0;T<j;++T)k[T]=_.length,x.push(w.name+"["+T+"]"),"number"==typeof w.location?_.push(w.location+T):Array.isArray(w.location)&&w.location.length===j&&"number"==typeof w.location[T]?_.push(0|w.location[T]):_.push(-1);b.push({name:w.name,type:w.type,locations:k})}else b.push({name:w.name,type:w.type,locations:[_.length]}),x.push(w.name),"number"==typeof w.location?_.push(0|w.location):_.push(-1)}var A=0;for(y=0;y<_.length;++y)if(_[y]<0){for(;_.indexOf(A)>=0;)A+=1;_[y]=A}var M=new Array(n.length);function S(){f.program=a.program(h,f._vref,f._fref,x,_);for(var e=0;e<n.length;++e)M[e]=h.getUniformLocation(f.program,n[e].name)}S(),f._relink=S,f.types={uniforms:i(n),attributes:i(c)},f.attributes=o(h,f,b,_),Object.defineProperty(f,"uniforms",r(h,f,n,M))},e.exports=function(e,t,n,r,o){var i=new c(e);return i.update(t,n,r,o),i}},8866:function(e){function t(e,t,n){this.shortMessage=t||"",this.longMessage=n||"",this.rawError=e||"",this.message="gl-shader: "+(t||e||"")+(n?"\n"+n:""),this.stack=(new Error).stack}t.prototype=new Error,t.prototype.name="GLError",t.prototype.constructor=t,e.exports=t},8731:function(e,t,n){"use strict";e.exports=function(e,t,n,o){for(var i={},a=0,c=n.length;a<c;++a){var u=n[a],d=u.name,f=u.type,h=u.locations;switch(f){case"bool":case"int":case"float":s(e,t,h[0],o,1,i,d);break;default:if(f.indexOf("vec")>=0){if((p=f.charCodeAt(f.length-1)-48)<2||p>4)throw new r("","Invalid data type for attribute "+d+": "+f);s(e,t,h[0],o,p,i,d)}else{if(!(f.indexOf("mat")>=0))throw new r("","Unknown data type for attribute "+d+": "+f);var p;if((p=f.charCodeAt(f.length-1)-48)<2||p>4)throw new r("","Invalid data type for attribute "+d+": "+f);l(e,t,h,o,p,i,d)}}}return i};var r=n(8866);function o(e,t,n,r,o,i){this._gl=e,this._wrapper=t,this._index=n,this._locations=r,this._dimension=o,this._constFunc=i}var i=o.prototype;i.pointer=function(e,t,n,r){var o=this._gl,i=this._locations[this._index];o.vertexAttribPointer(i,this._dimension,e||o.FLOAT,!!t,n||0,r||0),o.enableVertexAttribArray(i)},i.set=function(e,t,n,r){return this._constFunc(this._locations[this._index],e,t,n,r)},Object.defineProperty(i,"location",{get:function(){return this._locations[this._index]},set:function(e){return e!==this._locations[this._index]&&(this._locations[this._index]=0|e,this._wrapper.program=null),0|e}});var a=[function(e,t,n){return void 0===n.length?e.vertexAttrib1f(t,n):e.vertexAttrib1fv(t,n)},function(e,t,n,r){return void 0===n.length?e.vertexAttrib2f(t,n,r):e.vertexAttrib2fv(t,n)},function(e,t,n,r,o){return void 0===n.length?e.vertexAttrib3f(t,n,r,o):e.vertexAttrib3fv(t,n)},function(e,t,n,r,o,i){return void 0===n.length?e.vertexAttrib4f(t,n,r,o,i):e.vertexAttrib4fv(t,n)}];function s(e,t,n,r,i,s,l){var c=a[i],u=new o(e,t,n,r,i,c);Object.defineProperty(s,l,{set:function(t){return e.disableVertexAttribArray(r[n]),c(e,r[n],t),t},get:function(){return u},enumerable:!0})}function l(e,t,n,r,o,i,a){for(var l=new Array(o),c=new Array(o),u=0;u<o;++u)s(e,t,n[u],r,o,l,u),c[u]=l[u];Object.defineProperty(l,"location",{set:function(e){if(Array.isArray(e))for(var t=0;t<o;++t)c[t].location=e[t];else for(t=0;t<o;++t)c[t].location=e+t;return e},get:function(){for(var e=new Array(o),t=0;t<o;++t)e[t]=r[n[t]];return e},enumerable:!0}),l.pointer=function(t,i,a,s){t=t||e.FLOAT,i=!!i,a=a||o*o,s=s||0;for(var l=0;l<o;++l){var c=r[n[l]];e.vertexAttribPointer(c,o,t,i,a,s+l*o),e.enableVertexAttribArray(c)}};var d=new Array(o),f=e["vertexAttrib"+o+"fv"];Object.defineProperty(i,a,{set:function(t){for(var i=0;i<o;++i){var a=r[n[i]];if(e.disableVertexAttribArray(a),Array.isArray(t[0]))f.call(e,a,t[i]);else{for(var s=0;s<o;++s)d[s]=t[o*i+s];f.call(e,a,d)}}return t},get:function(){return l},enumerable:!0})}},3327:function(e,t,n){"use strict";var r=n(216),o=n(8866);function i(e){return function(){return e}}function a(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=t;return n}e.exports=function(e,t,n,s){function l(t){return function(r){for(var i=function e(t,n){if("object"!=typeof n)return[[t,n]];var r=[];for(var o in n){var i=n[o],a=t;parseInt(o)+""===o?a+="["+o+"]":a+="."+o,"object"==typeof i?r.push.apply(r,e(a,i)):r.push([a,i])}return r}("",t),a=0;a<i.length;++a){var l=i[a],c=l[0],u=l[1];if(s[u]){var d=r;if("string"==typeof c&&(0===c.indexOf(".")||0===c.indexOf("["))){var f=c;if(0===c.indexOf(".")&&(f=c.slice(1)),f.indexOf("]")===f.length-1){var h=f.indexOf("["),p=f.slice(0,h),m=f.slice(h+1,f.length-1);d=p?r[p][m]:r[m]}else d=r[f]}var g,v=n[u].type;switch(v){case"bool":case"int":case"sampler2D":case"samplerCube":e.uniform1i(s[u],d);break;case"float":e.uniform1f(s[u],d);break;default:var y=v.indexOf("vec");if(!(0<=y&&y<=1&&v.length===4+y)){if(0===v.indexOf("mat")&&4===v.length){if((g=v.charCodeAt(v.length-1)-48)<2||g>4)throw new o("","Invalid uniform dimension type for matrix "+name+": "+v);e["uniformMatrix"+g+"fv"](s[u],!1,d);break}throw new o("","Unknown uniform data type for "+name+": "+v)}if((g=v.charCodeAt(v.length-1)-48)<2||g>4)throw new o("","Invalid data type");switch(v.charAt(0)){case"b":case"i":e["uniform"+g+"iv"](s[u],d);break;case"v":e["uniform"+g+"fv"](s[u],d);break;default:throw new o("","Unrecognized data type for vector "+name+": "+v)}}}}}}function c(e,t,r){if("object"==typeof r){var c=u(r);Object.defineProperty(e,t,{get:i(c),set:l(r),enumerable:!0,configurable:!1})}else s[r]?Object.defineProperty(e,t,{get:(d=r,function(e,t,n){return e.getUniform(t.program,n[d])}),set:l(r),enumerable:!0,configurable:!1}):e[t]=function(e){switch(e){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":case"float":return 0;default:var t=e.indexOf("vec");if(0<=t&&t<=1&&e.length===4+t){if((n=e.charCodeAt(e.length-1)-48)<2||n>4)throw new o("","Invalid data type");return"b"===e.charAt(0)?a(n,!1):a(n,0)}if(0===e.indexOf("mat")&&4===e.length){var n;if((n=e.charCodeAt(e.length-1)-48)<2||n>4)throw new o("","Invalid uniform dimension type for matrix "+name+": "+e);return a(n*n,0)}throw new o("","Unknown uniform data type for "+name+": "+e)}}(n[r].type);var d}function u(e){var t;if(Array.isArray(e)){t=new Array(e.length);for(var n=0;n<e.length;++n)c(t,n,e[n])}else for(var r in t={},e)c(t,r,e[r]);return t}var d=r(n,!0);return{get:i(u(d)),set:l(d),enumerable:!0,configurable:!0}}},216:function(e){"use strict";e.exports=function(e,t){for(var n={},r=0;r<e.length;++r)for(var o=e[r].name.split("."),i=n,a=0;a<o.length;++a){var s=o[a].split("[");if(s.length>1){s[0]in i||(i[s[0]]=[]),i=i[s[0]];for(var l=1;l<s.length;++l){var c=parseInt(s[l]);l<s.length-1||a<o.length-1?(c in i||(l<s.length-1?i[c]=[]:i[c]={}),i=i[c]):i[c]=t?r:e[r].type}}else a<o.length-1?(s[0]in i||(i[s[0]]={}),i=i[s[0]]):i[s[0]]=t?r:e[r].type}return n}},2145:function(e,t){"use strict";t.uniforms=function(e,t){for(var n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),r=[],i=0;i<n;++i){var a=e.getActiveUniform(t,i);if(a){var s=o(e,a.type);if(a.size>1)for(var l=0;l<a.size;++l)r.push({name:a.name.replace("[0]","["+l+"]"),type:s});else r.push({name:a.name,type:s})}}return r},t.attributes=function(e,t){for(var n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),r=[],i=0;i<n;++i){var a=e.getActiveAttrib(t,i);a&&r.push({name:a.name,type:o(e,a.type)})}return r};var n={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"},r=null;function o(e,t){if(!r){var o=Object.keys(n);r={};for(var i=0;i<o.length;++i){var a=o[i];r[e[a]]=n[a]}}return r[t]}},5091:function(e,t,n){"use strict";t.shader=function(e,t,n){return u(e).getShaderReference(t,n)},t.program=function(e,t,n,r,o){return u(e).getProgram(t,n,r,o)};var r=n(8866),o=n(2992),i=new("undefined"==typeof WeakMap?n(606):WeakMap),a=0;function s(e,t,n,r,o,i,a){this.id=e,this.src=t,this.type=n,this.shader=r,this.count=i,this.programs=[],this.cache=a}function l(e){this.gl=e,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var e=this.cache,t=e.gl,n=this.programs,r=0,o=n.length;r<o;++r){var i=e.programs[n[r]];i&&(delete e.programs[r],t.deleteProgram(i))}t.deleteShader(this.shader),delete e.shaders[this.type===t.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(e){var t=i.get(e);return t||(t=new l(e),i.set(e,t)),t}c.getShaderReference=function(e,t){var n=this.gl,i=this.shaders[e===n.FRAGMENT_SHADER|0],l=i[t];if(l&&n.isShader(l.shader))l.count+=1;else{var c=function(e,t,n){var i=e.createShader(t);if(e.shaderSource(i,n),e.compileShader(i),!e.getShaderParameter(i,e.COMPILE_STATUS)){var a=e.getShaderInfoLog(i);try{var s=o(a,n,t)}catch(e){throw console.warn("Failed to format compiler error: "+e),new r(a,"Error compiling shader:\n"+a)}throw new r(a,s.short,s.long)}return i}(n,e,t);l=i[t]=new s(a++,t,e,c,[],1,this)}return l},c.getProgram=function(e,t,n,o){var i=[e.id,t.id,n.join(":"),o.join(":")].join("@"),a=this.programs[i];return a&&this.gl.isProgram(a)||(this.programs[i]=a=function(e,t,n,o,i){var a=e.createProgram();e.attachShader(a,t),e.attachShader(a,n);for(var s=0;s<o.length;++s)e.bindAttribLocation(a,i[s],o[s]);if(e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS)){var l=e.getProgramInfoLog(a);throw new r(l,"Error linking program: "+l)}return a}(this.gl,e.shader,t.shader,n,o),e.programs.push(i),t.programs.push(i)),a}},4098:function(e){"use strict";function t(e){this.plot=e,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(e,n){var r=new t(e);return r.update(n),e.addOverlay(r),r};var n=t.prototype;n.update=function(e){e=e||{},this.enable=(e.enable||[!0,!0,!1,!1]).slice(),this.width=(e.width||[1,1,1,1]).slice(),this.color=(e.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(e){return e.slice()})),this.center=(e.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},n.draw=function(){var e=this.enable,t=this.width,n=this.color,r=this.center,o=this.plot,i=o.line,a=o.dataBox,s=o.viewBox;if(i.bind(),a[0]<=r[0]&&r[0]<=a[2]&&a[1]<=r[1]&&r[1]<=a[3]){var l=s[0]+(r[0]-a[0])/(a[2]-a[0])*(s[2]-s[0]),c=s[1]+(r[1]-a[1])/(a[3]-a[1])*(s[3]-s[1]);e[0]&&i.drawLine(l,c,s[0],c,t[0],n[0]),e[1]&&i.drawLine(l,c,l,s[1],t[1],n[1]),e[2]&&i.drawLine(l,c,s[2],c,t[2],n[2]),e[3]&&i.drawLine(l,c,l,s[3],t[3],n[3])}},n.dispose=function(){this.plot.removeOverlay(this)}},1493:function(e,t,n){"use strict";var r=n(3236),o=n(9405),i=r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n vec3 vertexPosition = mix(coordinates[0],\n mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n vec4 clipPos = projection * (view * (model * vec4(vertexPosition, 1.0)));\n vec2 clipOffset = (projection * (view * (model * vec4(color, 0.0)))).xy;\n vec2 delta = weight * clipOffset * screenShape;\n vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n gl_Position = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n fragColor = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n"]),a=r(["precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n gl_FragColor = fragColor;\n}"]);e.exports=function(e){return o(e,i,a,null,[{name:"position",type:"vec3"},{name:"color",type:"vec3"},{name:"weight",type:"float"}])}},4449:function(e,t,n){"use strict";var r=n(2762),o=n(8116),i=n(1493);e.exports=function(e,t){var n=[];function a(e,t,r,o,i,a){var s=[e,t,r,0,0,0,1];s[o+3]=1,s[o]=i,n.push.apply(n,s),s[6]=-1,n.push.apply(n,s),s[o]=a,n.push.apply(n,s),n.push.apply(n,s),s[6]=1,n.push.apply(n,s),s[o]=i,n.push.apply(n,s)}a(0,0,0,0,0,1),a(0,0,0,1,0,1),a(0,0,0,2,0,1),a(1,0,0,1,-1,1),a(1,0,0,2,-1,1),a(0,1,0,0,-1,1),a(0,1,0,2,-1,1),a(0,0,1,0,-1,1),a(0,0,1,1,-1,1);var l=r(e,n),c=o(e,[{type:e.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:e.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:e.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=i(e);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var d=new s(e,l,c,u);return d.update(t),d};var a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(e,t,n,r){this.gl=e,this.buffer=t,this.vao=n,this.shader=r,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 l=s.prototype,c=[0,0,0],u=[0,0,0],d=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(e){},l.draw=function(e){var t=this.gl,n=this.vao,r=this.shader;n.bind(),r.bind();var o,i=e.model||a,s=e.view||a,l=e.projection||a;this.axes&&(o=this.axes.lastCubeProps.axis);for(var f=c,h=u,p=0;p<3;++p)o&&o[p]<0?(f[p]=this.bounds[0][p],h[p]=this.bounds[1][p]):(f[p]=this.bounds[1][p],h[p]=this.bounds[0][p]);d[0]=t.drawingBufferWidth,d[1]=t.drawingBufferHeight,r.uniforms.model=i,r.uniforms.view=s,r.uniforms.projection=l,r.uniforms.coordinates=[this.position,f,h],r.uniforms.colors=this.colors,r.uniforms.screenShape=d;for(p=0;p<3;++p)r.uniforms.lineWidth=this.lineWidth[p]*this.pixelRatio,this.enabled[p]&&(n.draw(t.TRIANGLES,6,6*p),this.drawSides[p]&&n.draw(t.TRIANGLES,12,18+12*p));n.unbind()},l.update=function(e){e&&("bounds"in e&&(this.bounds=e.bounds),"position"in e&&(this.position=e.position),"lineWidth"in e&&(this.lineWidth=e.lineWidth),"colors"in e&&(this.colors=e.colors),"enabled"in e&&(this.enabled=e.enabled),"drawSides"in e&&(this.drawSides=e.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},6740:function(e,t,n){var r=n(3236),o=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // 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).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * tubePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(tubePosition, 1.0);\n vec4 t_position = view * tubePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = tubePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),i=r(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),a=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // 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).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n gl_Position = projection * (view * tubePosition);\n f_id = id;\n f_position = position.xyz;\n}\n"]),s=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);t.meshShader={vertex:o,fragment:i,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},t.pickShader={vertex:a,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(e,t,n){"use strict";var r=n(2931),o=n(9970),i=["xyz","xzy","yxz","yzx","zxy","zyx"],a=function(e,t,n,i){for(var a=0,s=0;s<e.length;s++)for(var l=e[s].velocities,c=0;c<l.length;c++)a=Math.max(a,r.length(l[c]));var u=e.map((function(e){return function(e,t,n,i){for(var a=e.points,s=e.velocities,l=e.divergences,c=[],u=[],d=[],f=[],h=[],p=[],m=0,g=0,v=o.create(),y=o.create(),b=0;b<a.length;b++){var x=a[b],_=s[b],w=l[b];0===t&&(w=.05*n),g=r.length(_)/i,v=o.create(),r.copy(v,_),v[3]=w;for(var j=0;j<8;j++)h[j]=[x[0],x[1],x[2],j];if(f.length>0)for(j=0;j<8;j++){var k=(j+1)%8;c.push(f[j],h[j],h[k],h[k],f[k],f[j]),d.push(y,v,v,v,y,y),p.push(m,g,g,g,m,m);var T=c.length;u.push([T-6,T-5,T-4],[T-3,T-2,T-1])}var A=f;f=h,h=A;var M=y;y=v,v=M;var S=m;m=g,g=S}return{positions:c,cells:u,vectors:d,vertexIntensity:p}}(e,n,i,a)})),d=[],f=[],h=[],p=[];for(s=0;s<u.length;s++){var m=u[s],g=d.length;d=d.concat(m.positions),h=h.concat(m.vectors),p=p.concat(m.vertexIntensity);for(c=0;c<m.cells.length;c++){var v=m.cells[c],y=[];f.push(y);for(var b=0;b<v.length;b++)y.push(v[b]+g)}}return{positions:d,cells:f,vectors:h,vertexIntensity:p,colormap:t}},s=function(e,t){var n,r=e.length;for(n=0;n<r;n++){var o=e[n];if(o===t)return n;if(o>t)return n-1}return n},l=function(e,t,n){return e<t?t:e>n?n:e},c=function(e){var t=1/0;e.sort((function(e,t){return e-t}));for(var n=e.length,r=1;r<n;r++){var o=Math.abs(e[r]-e[r-1]);o<t&&(t=o)}return t};e.exports=function(e,t){var n=e.startingPositions,o=e.maxLength||1e3,u=e.tubeSize||1,d=e.absoluteTubeSize,f=e.gridFill||"+x+y+z",h={};-1!==f.indexOf("-x")&&(h.reversedX=!0),-1!==f.indexOf("-y")&&(h.reversedY=!0),-1!==f.indexOf("-z")&&(h.reversedZ=!0),h.filled=i.indexOf(f.replace(/-/g,"").replace(/\+/g,""));var p=e.getVelocity||function(t){return function(e,t,n){var o=t.vectors,i=t.meshgrid,a=e[0],c=e[1],u=e[2],d=i[0].length,f=i[1].length,h=i[2].length,p=s(i[0],a),m=s(i[1],c),g=s(i[2],u),v=p+1,y=m+1,b=g+1;if(p=l(p,0,d-1),v=l(v,0,d-1),m=l(m,0,f-1),y=l(y,0,f-1),g=l(g,0,h-1),b=l(b,0,h-1),p<0||m<0||g<0||v>d-1||y>f-1||b>h-1)return r.create();var x,_,w,j,k,T,A=i[0][p],M=i[0][v],S=i[1][m],C=i[1][y],E=i[2][g],L=(a-A)/(M-A),O=(c-S)/(C-S),R=(u-E)/(i[2][b]-E);switch(isFinite(L)||(L=.5),isFinite(O)||(O=.5),isFinite(R)||(R=.5),n.reversedX&&(p=d-1-p,v=d-1-v),n.reversedY&&(m=f-1-m,y=f-1-y),n.reversedZ&&(g=h-1-g,b=h-1-b),n.filled){case 5:k=g,T=b,w=m*h,j=y*h,x=p*h*f,_=v*h*f;break;case 4:k=g,T=b,x=p*h,_=v*h,w=m*h*d,j=y*h*d;break;case 3:w=m,j=y,k=g*f,T=b*f,x=p*f*h,_=v*f*h;break;case 2:w=m,j=y,x=p*f,_=v*f,k=g*f*d,T=b*f*d;break;case 1:x=p,_=v,k=g*d,T=b*d,w=m*d*h,j=y*d*h;break;default:x=p,_=v,w=m*d,j=y*d,k=g*d*f,T=b*d*f}var I=o[x+w+k],P=o[x+w+T],D=o[x+j+k],z=o[x+j+T],N=o[_+w+k],F=o[_+w+T],B=o[_+j+k],U=o[_+j+T],H=r.create(),V=r.create(),G=r.create(),q=r.create();r.lerp(H,I,N,L),r.lerp(V,P,F,L),r.lerp(G,D,B,L),r.lerp(q,z,U,L);var W=r.create(),Y=r.create();r.lerp(W,H,G,O),r.lerp(Y,V,q,O);var X=r.create();return r.lerp(X,W,Y,R),X}(t,e,h)},m=e.getDivergence||function(e,t){var n=r.create(),o=1e-4;r.add(n,e,[o,0,0]);var i=p(n);r.subtract(i,i,t),r.scale(i,i,1/o),r.add(n,e,[0,o,0]);var a=p(n);r.subtract(a,a,t),r.scale(a,a,1/o),r.add(n,e,[0,0,o]);var s=p(n);return r.subtract(s,s,t),r.scale(s,s,1/o),r.add(n,i,a),r.add(n,n,s),n},g=[],v=t[0][0],y=t[0][1],b=t[0][2],x=t[1][0],_=t[1][1],w=t[1][2],j=function(e){var t=e[0],n=e[1],r=e[2];return!(t<v||t>x||n<y||n>_||r<b||r>w)},k=10*r.distance(t[0],t[1])/o,T=k*k,A=1,M=0,S=n.length;S>1&&(A=function(e){for(var t=[],n=[],r=[],o={},i={},a={},s=e.length,l=0;l<s;l++){var u=e[l],d=u[0],f=u[1],h=u[2];o[d]||(t.push(d),o[d]=!0),i[f]||(n.push(f),i[f]=!0),a[h]||(r.push(h),a[h]=!0)}var p=c(t),m=c(n),g=c(r),v=Math.min(p,m,g);return isFinite(v)?v:1}(n));for(var C=0;C<S;C++){var E=r.create();r.copy(E,n[C]);var L=[E],O=[],R=p(E),I=E;O.push(R);var P=[],D=m(E,R),z=r.length(D);isFinite(z)&&z>M&&(M=z),P.push(z),g.push({points:L,velocities:O,divergences:P});for(var N=0;N<100*o&&L.length<o&&j(E);){N++;var F=r.clone(R),B=r.squaredLength(F);if(0===B)break;if(B>T&&r.scale(F,F,k/Math.sqrt(B)),r.add(F,F,E),R=p(F),r.squaredDistance(I,F)-T>-1e-4*T){L.push(F),I=F,O.push(R);D=m(F,R),z=r.length(D);isFinite(z)&&z>M&&(M=z),P.push(z)}E=F}}var U=a(g,e.colormap,M,A);return d?U.tubeScale=d:(0===M&&(M=1),U.tubeScale=.5*u*A/M),U};var u=n(6740),d=n(6405).createMesh;e.exports.createTubeMesh=function(e,t){return d(e,t,{shaders:u,traceType:"streamtube"})}},990:function(e,t,n){var r=n(9405),o=n(3236),i=o(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 localCoordinate = vec3(uv.zw, f.x);\n worldCoordinate = objectOffset + localCoordinate;\n mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0));\n vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0);\n vec4 clipPosition = projection * (view * worldPosition);\n gl_Position = clipPosition;\n kill = f.y;\n value = f.z;\n planeCoordinate = uv.xy;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * worldPosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n lightDirection = lightPosition - cameraCoordinate.xyz;\n eyeDirection = eyePosition - cameraCoordinate.xyz;\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n"]),a=o(["precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness) {\n return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n if (\n kill > 0.0 ||\n vColor.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n ) discard;\n\n vec3 N = normalize(surfaceNormal);\n vec3 V = normalize(eyeDirection);\n vec3 L = normalize(lightDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n //decide how to interpolate color — in vertex or in fragment\n vec4 surfaceColor =\n step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n step(.5, vertexColor) * vColor;\n\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n"]),s=o(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n worldCoordinate = objectOffset + dataCoordinate;\n mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0));\n vec4 worldPosition = (model * objectOffsetTranslation) * vec4(dataCoordinate, 1.0);\n\n vec4 clipPosition = projection * (view * worldPosition);\n clipPosition.z += zOffset;\n\n gl_Position = clipPosition;\n value = f + objectOffset.z;\n kill = -1.0;\n planeCoordinate = uv.zw;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Don't do lighting for contours\n surfaceNormal = vec3(1,0,0);\n eyeDirection = vec3(0,1,0);\n lightDirection = vec3(0,0,1);\n}\n"]),l=o(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n float vh = 255.0 * v;\n float upper = floor(vh);\n float lower = fract(vh);\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n if ((kill > 0.0) ||\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n"]);t.createShader=function(e){var t=r(e,i,a,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t.attributes.normal.location=2,t},t.createPickShader=function(e){var t=r(e,i,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t.attributes.normal.location=2,t},t.createContourShader=function(e){var t=r(e,s,a,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t},t.createPickContourShader=function(e){var t=r(e,s,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t}},9499:function(e,t,n){"use strict";e.exports=function(e){var t=e.gl,n=y(t),r=x(t),s=b(t),l=_(t),c=o(t),u=i(t,[{buffer:c,size:4,stride:40,offset:0},{buffer:c,size:3,stride:40,offset:16},{buffer:c,size:3,stride:40,offset:28}]),d=o(t),f=i(t,[{buffer:d,size:4,stride:20,offset:0},{buffer:d,size:1,stride:20,offset:16}]),h=o(t),p=i(t,[{buffer:h,size:2,type:t.FLOAT}]),m=a(t,1,256,t.RGBA,t.UNSIGNED_BYTE);m.minFilter=t.LINEAR,m.magFilter=t.LINEAR;var g=new A(t,[0,0],[[0,0,0],[0,0,0]],n,r,c,u,m,s,l,d,f,h,p,[0,0,0]),v={levels:[[],[],[]]};for(var w in e)v[w]=e[w];return v.colormap=v.colormap||"jet",g.update(v),g};var r=n(8828),o=n(2762),i=n(8116),a=n(7766),s=n(1888),l=n(6729),c=n(5298),u=n(9994),d=n(9618),f=n(3711),h=n(6760),p=n(7608),m=n(2478),g=n(6199),v=n(990),y=v.createShader,b=v.createContourShader,x=v.createPickShader,_=v.createPickContourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],j=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[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 T(e,t,n,r,o){this.position=e,this.index=t,this.uv=n,this.level=r,this.dataCoordinate=o}!function(){for(var e=0;e<3;++e){var t=k[e],n=(e+2)%3;t[(e+1)%3+0]=1,t[n+3]=1,t[e+6]=1}}();function A(e,t,n,r,o,i,a,l,c,u,f,h,p,m,g){this.gl=e,this.shape=t,this.bounds=n,this.objectOffset=g,this.intensityBounds=[],this._shader=r,this._pickShader=o,this._coordinateBuffer=i,this._vao=a,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=f,this._contourVAO=h,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new T([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=p,this._dynamicVAO=m,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=[d(s.mallocFloat(1024),[0,0]),d(s.mallocFloat(1024),[0,0]),d(s.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 M=A.prototype;M.genColormap=function(e,t){var n=!1,r=u([l({colormap:e,nshades:256,format:"rgba"}).map((function(e,r){var o=t?function(e,t){if(!t)return 1;if(!t.length)return 1;for(var n=0;n<t.length;++n){if(t.length<2)return 1;if(t[n][0]===e)return t[n][1];if(t[n][0]>e&&n>0){var r=(t[n][0]-e)/(t[n][0]-t[n-1][0]);return t[n][1]*(1-r)+r*t[n-1][1]}}return 1}(r/255,t):e[3];return o<1&&(n=!0),[e[0],e[1],e[2],255*o]}))]);return c.divseq(r,255),this.hasAlphaScale=n,r},M.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},M.isOpaque=function(){return!this.isTransparent()},M.pickSlots=1,M.setPickBase=function(e){this.pickId=e};var S=[0,0,0],C={showSurface:!1,showContour:!1,projections:[w.slice(),w.slice(),w.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function E(e,t){var n,r,o,i=t.axes&&t.axes.lastCubeProps.axis||S,a=t.showSurface,s=t.showContour;for(n=0;n<3;++n)for(a=a||t.surfaceProject[n],r=0;r<3;++r)s=s||t.contourProject[n][r];for(n=0;n<3;++n){var l=C.projections[n];for(r=0;r<16;++r)l[r]=0;for(r=0;r<4;++r)l[5*r]=1;l[5*n]=0,l[12+n]=t.axesBounds[+(i[n]>0)][n],h(l,e.model,l);var c=C.clipBounds[n];for(o=0;o<2;++o)for(r=0;r<3;++r)c[o][r]=e.clipBounds[o][r];c[0][n]=-1e8,c[1][n]=1e8}return C.showSurface=a,C.showContour=s,C}var L={model:w,view:w,projection:w,inverseModel:w.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},O=w.slice(),R=[1,0,0,0,1,0,0,0,1];function I(e,t){e=e||{};var n=this.gl;n.disable(n.CULL_FACE),this._colorMap.bind(0);var r=L;r.model=e.model||w,r.view=e.view||w,r.projection=e.projection||w,r.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],r.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],r.objectOffset=this.objectOffset,r.contourColor=this.contourColor[0],r.inverseModel=p(r.inverseModel,r.model);for(var o=0;o<2;++o)for(var i=r.clipBounds[o],a=0;a<3;++a)i[a]=Math.min(Math.max(this.clipBounds[o][a],-1e8),1e8);r.kambient=this.ambientLight,r.kdiffuse=this.diffuseLight,r.kspecular=this.specularLight,r.roughness=this.roughness,r.fresnel=this.fresnel,r.opacity=this.opacity,r.height=0,r.permutation=R,r.vertexColor=this.vertexColor;var s=O;for(h(s,r.view,r.model),h(s,r.projection,s),p(s,s),o=0;o<3;++o)r.eyePosition[o]=s[12+o]/s[15];var l=s[15];for(o=0;o<3;++o)l+=this.lightPosition[o]*s[4*o+3];for(o=0;o<3;++o){var c=s[12+o];for(a=0;a<3;++a)c+=s[4*a+o]*this.lightPosition[a];r.lightPosition[o]=c/l}var u=E(r,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=r,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(n.TRIANGLES,this._vertexCount),o=0;o<3;++o)this.surfaceProject[o]&&this.vertexCount&&(this._shader.uniforms.model=u.projections[o],this._shader.uniforms.clipBounds=u.clipBounds[o],this._vao.draw(n.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var d=this._contourShader;r.kambient=1,r.kdiffuse=0,r.kspecular=0,r.opacity=1,d.bind(),d.uniforms=r;var f=this._contourVAO;for(f.bind(),o=0;o<3;++o)for(d.uniforms.permutation=k[o],n.lineWidth(this.contourWidth[o]*this.pixelRatio),a=0;a<this.contourLevels[o].length;++a)a===this.highlightLevel[o]?(d.uniforms.contourColor=this.highlightColor[o],d.uniforms.contourTint=this.highlightTint[o]):0!==a&&a-1!==this.highlightLevel[o]||(d.uniforms.contourColor=this.contourColor[o],d.uniforms.contourTint=this.contourTint[o]),this._contourCounts[o][a]&&(d.uniforms.height=this.contourLevels[o][a],f.draw(n.LINES,this._contourCounts[o][a],this._contourOffsets[o][a]));for(o=0;o<3;++o)for(d.uniforms.model=u.projections[o],d.uniforms.clipBounds=u.clipBounds[o],a=0;a<3;++a)if(this.contourProject[o][a]){d.uniforms.permutation=k[a],n.lineWidth(this.contourWidth[a]*this.pixelRatio);for(var m=0;m<this.contourLevels[a].length;++m)m===this.highlightLevel[a]?(d.uniforms.contourColor=this.highlightColor[a],d.uniforms.contourTint=this.highlightTint[a]):0!==m&&m-1!==this.highlightLevel[a]||(d.uniforms.contourColor=this.contourColor[a],d.uniforms.contourTint=this.contourTint[a]),this._contourCounts[a][m]&&(d.uniforms.height=this.contourLevels[a][m],f.draw(n.LINES,this._contourCounts[a][m],this._contourOffsets[a][m]))}for(f.unbind(),(f=this._dynamicVAO).bind(),o=0;o<3;++o)if(0!==this._dynamicCounts[o])for(d.uniforms.model=r.model,d.uniforms.clipBounds=r.clipBounds,d.uniforms.permutation=k[o],n.lineWidth(this.dynamicWidth[o]*this.pixelRatio),d.uniforms.contourColor=this.dynamicColor[o],d.uniforms.contourTint=this.dynamicTint[o],d.uniforms.height=this.dynamicLevel[o],f.draw(n.LINES,this._dynamicCounts[o],this._dynamicOffsets[o]),a=0;a<3;++a)this.contourProject[a][o]&&(d.uniforms.model=u.projections[a],d.uniforms.clipBounds=u.clipBounds[a],f.draw(n.LINES,this._dynamicCounts[o],this._dynamicOffsets[o]));f.unbind()}}M.draw=function(e){return I.call(this,e,!1)},M.drawTransparent=function(e){return I.call(this,e,!0)};var P={model:w,view:w,projection:w,inverseModel:w,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]};function D(e,t){return Array.isArray(e)?[t(e[0]),t(e[1]),t(e[2])]:[t(e),t(e),t(e)]}function z(e){return Array.isArray(e)?3===e.length?[e[0],e[1],e[2],1]:[e[0],e[1],e[2],e[3]]:[0,0,0,1]}function N(e){if(Array.isArray(e)){if(Array.isArray(e))return[z(e[0]),z(e[1]),z(e[2])];var t=z(e);return[t.slice(),t.slice(),t.slice()]}}M.drawPick=function(e){e=e||{};var t=this.gl;t.disable(t.CULL_FACE);var n=P;n.model=e.model||w,n.view=e.view||w,n.projection=e.projection||w,n.shape=this._field[2].shape,n.pickId=this.pickId/255,n.lowerBound=this.bounds[0],n.upperBound=this.bounds[1],n.objectOffset=this.objectOffset,n.permutation=R;for(var r=0;r<2;++r)for(var o=n.clipBounds[r],i=0;i<3;++i)o[i]=Math.min(Math.max(this.clipBounds[r][i],-1e8),1e8);var a=E(n,this);if(a.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=n,this._vao.bind(),this._vao.draw(t.TRIANGLES,this._vertexCount),r=0;r<3;++r)this.surfaceProject[r]&&(this._pickShader.uniforms.model=a.projections[r],this._pickShader.uniforms.clipBounds=a.clipBounds[r],this._vao.draw(t.TRIANGLES,this._vertexCount));this._vao.unbind()}if(a.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=n;var l=this._contourVAO;for(l.bind(),i=0;i<3;++i)for(t.lineWidth(this.contourWidth[i]*this.pixelRatio),s.uniforms.permutation=k[i],r=0;r<this.contourLevels[i].length;++r)this._contourCounts[i][r]&&(s.uniforms.height=this.contourLevels[i][r],l.draw(t.LINES,this._contourCounts[i][r],this._contourOffsets[i][r]));for(r=0;r<3;++r)for(s.uniforms.model=a.projections[r],s.uniforms.clipBounds=a.clipBounds[r],i=0;i<3;++i)if(this.contourProject[r][i]){s.uniforms.permutation=k[i],t.lineWidth(this.contourWidth[i]*this.pixelRatio);for(var c=0;c<this.contourLevels[i].length;++c)this._contourCounts[i][c]&&(s.uniforms.height=this.contourLevels[i][c],l.draw(t.LINES,this._contourCounts[i][c],this._contourOffsets[i][c]))}l.unbind()}},M.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;var t=this._field[2].shape,n=this._pickResult,r=t[0]*(e.value[0]+(e.value[2]>>4)/16)/255,o=Math.floor(r),i=r-o,a=t[1]*(e.value[1]+(15&e.value[2])/16)/255,s=Math.floor(a),l=a-s;o+=1,s+=1;var c=n.position;c[0]=c[1]=c[2]=0;for(var u=0;u<2;++u)for(var d=u?i:1-i,f=0;f<2;++f)for(var h=o+u,p=s+f,g=d*(f?l:1-l),v=0;v<3;++v)c[v]+=this._field[v].get(h,p)*g;for(var y=this._pickResult.level,b=0;b<3;++b)if(y[b]=m.le(this.contourLevels[b],c[b]),y[b]<0)this.contourLevels[b].length>0&&(y[b]=0);else if(y[b]<this.contourLevels[b].length-1){var x=this.contourLevels[b][y[b]],_=this.contourLevels[b][y[b]+1];Math.abs(x-c[b])>Math.abs(_-c[b])&&(y[b]+=1)}for(n.index[0]=i<.5?o:o+1,n.index[1]=l<.5?s:s+1,n.uv[0]=r/t[0],n.uv[1]=a/t[1],v=0;v<3;++v)n.dataCoordinate[v]=this._field[v].get(n.index[0],n.index[1]);return n},M.padField=function(e,t){var n=t.shape.slice(),r=e.shape.slice();c.assign(e.lo(1,1).hi(n[0],n[1]),t),c.assign(e.lo(1).hi(n[0],1),t.hi(n[0],1)),c.assign(e.lo(1,r[1]-1).hi(n[0],1),t.lo(0,n[1]-1).hi(n[0],1)),c.assign(e.lo(0,1).hi(1,n[1]),t.hi(1)),c.assign(e.lo(r[0]-1,1).hi(1,n[1]),t.lo(n[0]-1)),e.set(0,0,t.get(0,0)),e.set(0,r[1]-1,t.get(0,n[1]-1)),e.set(r[0]-1,0,t.get(n[0]-1,0)),e.set(r[0]-1,r[1]-1,t.get(n[0]-1,n[1]-1))},M.update=function(e){e=e||{},this.objectOffset=e.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in e&&(this.contourWidth=D(e.contourWidth,Number)),"showContour"in e&&(this.showContour=D(e.showContour,Boolean)),"showSurface"in e&&(this.showSurface=!!e.showSurface),"contourTint"in e&&(this.contourTint=D(e.contourTint,Boolean)),"contourColor"in e&&(this.contourColor=N(e.contourColor)),"contourProject"in e&&(this.contourProject=D(e.contourProject,(function(e){return D(e,Boolean)}))),"surfaceProject"in e&&(this.surfaceProject=e.surfaceProject),"dynamicColor"in e&&(this.dynamicColor=N(e.dynamicColor)),"dynamicTint"in e&&(this.dynamicTint=D(e.dynamicTint,Number)),"dynamicWidth"in e&&(this.dynamicWidth=D(e.dynamicWidth,Number)),"opacity"in e&&(this.opacity=e.opacity),"opacityscale"in e&&(this.opacityscale=e.opacityscale),"colorBounds"in e&&(this.colorBounds=e.colorBounds),"vertexColor"in e&&(this.vertexColor=e.vertexColor?1:0),"colormap"in e&&this._colorMap.setPixels(this.genColormap(e.colormap,this.opacityscale));var t=e.field||e.coords&&e.coords[2]||null,n=!1;if(t||(t=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in e||"coords"in e){var o=(t.shape[0]+2)*(t.shape[1]+2);o>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(r.nextPow2(o))),this._field[2]=d(this._field[2].data,[t.shape[0]+2,t.shape[1]+2]),this.padField(this._field[2],t),this.shape=t.shape.slice();for(var i=this.shape,a=0;a<2;++a)this._field[2].size>this._field[a].data.length&&(s.freeFloat(this._field[a].data),this._field[a].data=s.mallocFloat(this._field[2].size)),this._field[a]=d(this._field[a].data,[i[0]+2,i[1]+2]);if(e.coords){var l=e.coords;if(!Array.isArray(l)||3!==l.length)throw new Error("gl-surface: invalid coordinates for x/y");for(a=0;a<2;++a){var c=l[a];for(v=0;v<2;++v)if(c.shape[v]!==i[v])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[a],c)}}else if(e.ticks){var u=e.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error("gl-surface: invalid ticks");for(a=0;a<2;++a){var h=u[a];if((Array.isArray(h)||h.length)&&(h=d(h)),h.shape[0]!==i[a])throw new Error("gl-surface: invalid tick length");var p=d(h.data,i);p.stride[a]=h.stride[0],p.stride[1^a]=0,this.padField(this._field[a],p)}}else{for(a=0;a<2;++a){var m=[0,0];m[a]=1,this._field[a]=d(this._field[a].data,[i[0]+2,i[1]+2],m,0)}this._field[0].set(0,0,0);for(var v=0;v<i[0];++v)this._field[0].set(v+1,0,v);for(this._field[0].set(i[0]+1,0,i[0]-1),this._field[1].set(0,0,0),v=0;v<i[1];++v)this._field[1].set(0,v+1,v);this._field[1].set(0,i[1]+1,i[1]-1)}var y=this._field,b=d(s.mallocFloat(3*y[2].size*2),[3,i[0]+2,i[1]+2,2]);for(a=0;a<3;++a)g(b.pick(a),y[a],"mirror");var x=d(s.mallocFloat(3*y[2].size),[i[0]+2,i[1]+2,3]);for(a=0;a<i[0]+2;++a)for(v=0;v<i[1]+2;++v){var _=b.get(0,a,v,0),w=b.get(0,a,v,1),k=b.get(1,a,v,0),T=b.get(1,a,v,1),A=b.get(2,a,v,0),M=b.get(2,a,v,1),S=k*M-T*A,C=A*w-M*_,E=_*T-w*k,L=Math.sqrt(S*S+C*C+E*E);L<1e-8?(L=Math.max(Math.abs(S),Math.abs(C),Math.abs(E)))<1e-8?(E=1,C=S=0,L=1):L=1/L:L=1/Math.sqrt(L),x.set(a,v,0,S*L),x.set(a,v,1,C*L),x.set(a,v,2,E*L)}s.free(b.data);var O=[1/0,1/0,1/0],R=[-1/0,-1/0,-1/0],I=1/0,P=-1/0,z=(i[0]-1)*(i[1]-1)*6,F=s.mallocFloat(r.nextPow2(10*z)),B=0,U=0;for(a=0;a<i[0]-1;++a)e:for(v=0;v<i[1]-1;++v){for(var H=0;H<2;++H)for(var V=0;V<2;++V)for(var G=0;G<3;++G){var q=this._field[G].get(1+a+H,1+v+V);if(isNaN(q)||!isFinite(q))continue e}for(G=0;G<6;++G){var W=a+j[G][0],Y=v+j[G][1],X=this._field[0].get(W+1,Y+1),Z=this._field[1].get(W+1,Y+1);q=this._field[2].get(W+1,Y+1),S=x.get(W+1,Y+1,0),C=x.get(W+1,Y+1,1),E=x.get(W+1,Y+1,2),e.intensity&&($=e.intensity.get(W,Y));var $=e.intensity?e.intensity.get(W,Y):q+this.objectOffset[2];F[B++]=W,F[B++]=Y,F[B++]=X,F[B++]=Z,F[B++]=q,F[B++]=0,F[B++]=$,F[B++]=S,F[B++]=C,F[B++]=E,O[0]=Math.min(O[0],X+this.objectOffset[0]),O[1]=Math.min(O[1],Z+this.objectOffset[1]),O[2]=Math.min(O[2],q+this.objectOffset[2]),I=Math.min(I,$),R[0]=Math.max(R[0],X+this.objectOffset[0]),R[1]=Math.max(R[1],Z+this.objectOffset[1]),R[2]=Math.max(R[2],q+this.objectOffset[2]),P=Math.max(P,$),U+=1}}for(e.intensityBounds&&(I=+e.intensityBounds[0],P=+e.intensityBounds[1]),a=6;a<B;a+=10)F[a]=(F[a]-I)/(P-I);this._vertexCount=U,this._coordinateBuffer.update(F.subarray(0,B)),s.freeFloat(F),s.free(x.data),this.bounds=[O,R],this.intensity=e.intensity||this._field[2],this.intensityBounds[0]===I&&this.intensityBounds[1]===P||(n=!0),this.intensityBounds=[I,P]}if("levels"in e){var K=e.levels;for(K=Array.isArray(K[0])?K.slice():[[],[],K],a=0;a<3;++a)K[a]=K[a].slice(),K[a].sort((function(e,t){return e-t}));for(a=0;a<3;++a)for(v=0;v<K[a].length;++v)K[a][v]-=this.objectOffset[a];e:for(a=0;a<3;++a){if(K[a].length!==this.contourLevels[a].length){n=!0;break}for(v=0;v<K[a].length;++v)if(K[a][v]!==this.contourLevels[a][v]){n=!0;break e}}this.contourLevels=K}if(n){y=this._field,i=this.shape;for(var J=[],Q=0;Q<3;++Q){var ee=this.contourLevels[Q],te=[],ne=[],re=[0,0,0];for(a=0;a<ee.length;++a){var oe=f(this._field[Q],ee[a]);te.push(J.length/5|0),U=0;e:for(v=0;v<oe.cells.length;++v){var ie=oe.cells[v];for(G=0;G<2;++G){var ae=oe.positions[ie[G]],se=ae[0],le=0|Math.floor(se),ce=se-le,ue=ae[1],de=0|Math.floor(ue),fe=ue-de,he=!1;t:for(var pe=0;pe<3;++pe){re[pe]=0;var me=(Q+pe+1)%3;for(H=0;H<2;++H){var ge=H?ce:1-ce;for(W=0|Math.min(Math.max(le+H,0),i[0]),V=0;V<2;++V){var ve=V?fe:1-fe;if(Y=0|Math.min(Math.max(de+V,0),i[1]),q=pe<2?this._field[me].get(W,Y):(this.intensity.get(W,Y)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(q)||isNaN(q)){he=!0;break t}var ye=ge*ve;re[pe]+=ye*q}}}if(he){if(G>0){for(var be=0;be<5;++be)J.pop();U-=1}continue e}J.push(re[0],re[1],ae[0],ae[1],re[2]),U+=1}}ne.push(U)}this._contourOffsets[Q]=te,this._contourCounts[Q]=ne}var xe=s.mallocFloat(J.length);for(a=0;a<J.length;++a)xe[a]=J[a];this._contourBuffer.update(xe),s.freeFloat(xe)}},M.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 e=0;e<3;++e)s.freeFloat(this._field[e].data)},M.highlight=function(e){var t,n;if(!e)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(t=0;t<3;++t)this.enableHighlight[t]?this.highlightLevel[t]=e.level[t]:this.highlightLevel[t]=-1;for(n=this.snapToData?e.dataCoordinate:e.position,t=0;t<3;++t)n[t]-=this.objectOffset[t];if(this.enableDynamic[0]&&n[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&&n[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&&n[2]!==this.dynamicLevel[2]){for(var r=0,o=this.shape,i=s.mallocFloat(12*o[0]*o[1]),a=0;a<3;++a)if(this.enableDynamic[a]){this.dynamicLevel[a]=n[a];var l=(a+1)%3,c=(a+2)%3,u=this._field[a],d=this._field[l],h=this._field[c],p=f(u,n[a]),m=p.cells,g=p.positions;for(this._dynamicOffsets[a]=r,t=0;t<m.length;++t)for(var v=m[t],y=0;y<2;++y){var b=g[v[y]],x=+b[0],_=0|x,w=0|Math.min(_+1,o[0]),j=x-_,k=1-j,T=+b[1],A=0|T,M=0|Math.min(A+1,o[1]),S=T-A,C=1-S,E=k*C,L=k*S,O=j*C,R=j*S,I=E*d.get(_,A)+L*d.get(_,M)+O*d.get(w,A)+R*d.get(w,M),P=E*h.get(_,A)+L*h.get(_,M)+O*h.get(w,A)+R*h.get(w,M);if(isNaN(I)||isNaN(P)){y&&(r-=1);break}i[2*r+0]=I,i[2*r+1]=P,r+=1}this._dynamicCounts[a]=r-this._dynamicOffsets[a]}else this.dynamicLevel[a]=NaN,this._dynamicCounts[a]=0;this._dynamicBuffer.update(i.subarray(0,2*r)),s.freeFloat(i)}}},7766:function(e,t,n){"use strict";var r=n(9618),o=n(5298),i=n(1888);e.exports=function(e){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");a||c(e);if("number"==typeof arguments[1])return v(e,arguments[1],arguments[2],arguments[3]||e.RGBA,arguments[4]||e.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(e,0|arguments[1][0],0|arguments[1][1],arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if("object"==typeof arguments[1]){var t=arguments[1],n=u(t)?t:t.raw;if(n)return y(e,n,0|t.width,0|t.height,arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if(t.shape&&t.data&&t.stride)return b(e,t)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")};var a=null,s=null,l=null;function c(e){a=[e.LINEAR,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_NEAREST],s=[e.NEAREST,e.LINEAR,e.NEAREST_MIPMAP_NEAREST,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_LINEAR],l=[e.REPEAT,e.CLAMP_TO_EDGE,e.MIRRORED_REPEAT]}function u(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement||"undefined"!=typeof ImageData&&e instanceof ImageData}var d=function(e,t){o.muls(e,t,255)};function f(e,t,n){var r=e.gl,o=r.getParameter(r.MAX_TEXTURE_SIZE);if(t<0||t>o||n<0||n>o)throw new Error("gl-texture2d: Invalid texture size");return e._shape=[t,n],e.bind(),r.texImage2D(r.TEXTURE_2D,0,e.format,t,n,0,e.format,e.type,null),e._mipLevels=[0],e}function h(e,t,n,r,o,i){this.gl=e,this.handle=t,this.format=o,this.type=i,this._shape=[n,r],this._mipLevels=[0],this._magFilter=e.NEAREST,this._minFilter=e.NEAREST,this._wrapS=e.CLAMP_TO_EDGE,this._wrapT=e.CLAMP_TO_EDGE,this._anisoSamples=1;var a=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return a._wrapS},set:function(e){return a.wrapS=e}},{get:function(){return a._wrapT},set:function(e){return a.wrapT=e}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return a._shape[0]},set:function(e){return a.width=e}},{get:function(){return a._shape[1]},set:function(e){return a.height=e}}]),this._shapeVector=l}var p=h.prototype;function m(e,t){return 3===e.length?1===t[2]&&t[1]===e[0]*e[2]&&t[0]===e[2]:1===t[0]&&t[1]===e[0]}function g(e){var t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),t}function v(e,t,n,r,o){var i=e.getParameter(e.MAX_TEXTURE_SIZE);if(t<0||t>i||n<0||n>i)throw new Error("gl-texture2d: Invalid texture shape");if(o===e.FLOAT&&!e.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var a=g(e);return e.texImage2D(e.TEXTURE_2D,0,r,t,n,0,r,o,null),new h(e,a,t,n,r,o)}function y(e,t,n,r,o,i){var a=g(e);return e.texImage2D(e.TEXTURE_2D,0,o,o,i,t),new h(e,a,n,r,o,i)}function b(e,t){var n=t.dtype,a=t.shape.slice(),s=e.getParameter(e.MAX_TEXTURE_SIZE);if(a[0]<0||a[0]>s||a[1]<0||a[1]>s)throw new Error("gl-texture2d: Invalid texture size");var l=m(a,t.stride.slice()),c=0;"float32"===n?c=e.FLOAT:"float64"===n?(c=e.FLOAT,l=!1,n="float32"):"uint8"===n?c=e.UNSIGNED_BYTE:(c=e.UNSIGNED_BYTE,l=!1,n="uint8");var u,f,p=0;if(2===a.length)p=e.LUMINANCE,a=[a[0],a[1],1],t=r(t.data,a,[t.stride[0],t.stride[1],1],t.offset);else{if(3!==a.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===a[2])p=e.ALPHA;else if(2===a[2])p=e.LUMINANCE_ALPHA;else if(3===a[2])p=e.RGB;else{if(4!==a[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");p=e.RGBA}}c!==e.FLOAT||e.getExtension("OES_texture_float")||(c=e.UNSIGNED_BYTE,l=!1);var v=t.size;if(l)u=0===t.offset&&t.data.length===v?t.data:t.data.subarray(t.offset,t.offset+v);else{var y=[a[2],a[2]*a[0],1];f=i.malloc(v,n);var b=r(f,a,y,0);"float32"!==n&&"float64"!==n||c!==e.UNSIGNED_BYTE?o.assign(b,t):d(b,t),u=f.subarray(0,v)}var x=g(e);return e.texImage2D(e.TEXTURE_2D,0,p,a[0],a[1],0,p,c,u),l||i.free(f),new h(e,x,a[0],a[1],p,c)}Object.defineProperties(p,{minFilter:{get:function(){return this._minFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&a.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),s.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e),this._minFilter=e}},magFilter:{get:function(){return this._magFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&a.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),s.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e),this._magFilter=e}},mipSamples:{get:function(){return this._anisoSamples},set:function(e){var t=this._anisoSamples;if(this._anisoSamples=0|Math.max(e,1),t!==this._anisoSamples){var n=this.gl.getExtension("EXT_texture_filter_anisotropic");n&&this.gl.texParameterf(this.gl.TEXTURE_2D,n.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(e){if(this.bind(),l.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,e),this._wrapS=e}},wrapT:{get:function(){return this._wrapT},set:function(e){if(this.bind(),l.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,e),this._wrapT=e}},wrap:{get:function(){return this._wrapVector},set:function(e){if(Array.isArray(e)||(e=[e,e]),2!==e.length)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var t=0;t<2;++t)if(l.indexOf(e[t])<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);this._wrapS=e[0],this._wrapT=e[1];var n=this.gl;return this.bind(),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,this._wrapS),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,this._wrapT),e}},shape:{get:function(){return this._shapeVector},set:function(e){if(Array.isArray(e)){if(2!==e.length)throw new Error("gl-texture2d: Invalid texture shape")}else e=[0|e,0|e];return f(this,0|e[0],0|e[1]),[0|e[0],0|e[1]]}},width:{get:function(){return this._shape[0]},set:function(e){return f(this,e|=0,this._shape[1]),e}},height:{get:function(){return this._shape[1]},set:function(e){return e|=0,f(this,this._shape[0],e),e}}}),p.bind=function(e){var t=this.gl;return void 0!==e&&t.activeTexture(t.TEXTURE0+(0|e)),t.bindTexture(t.TEXTURE_2D,this.handle),void 0!==e?0|e:t.getParameter(t.ACTIVE_TEXTURE)-t.TEXTURE0},p.dispose=function(){this.gl.deleteTexture(this.handle)},p.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var e=Math.min(this._shape[0],this._shape[1]),t=0;e>0;++t,e>>>=1)this._mipLevels.indexOf(t)<0&&this._mipLevels.push(t)},p.setPixels=function(e,t,n,a){var s=this.gl;this.bind(),Array.isArray(t)?(a=n,n=0|t[1],t=0|t[0]):(t=t||0,n=n||0),a=a||0;var l=u(e)?e:e.raw;if(l){this._mipLevels.indexOf(a)<0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(a)):s.texSubImage2D(s.TEXTURE_2D,a,t,n,this.format,this.type,l)}else{if(!(e.shape&&e.stride&&e.data))throw new Error("gl-texture2d: Unsupported data type");if(e.shape.length<2||t+e.shape[1]>this._shape[1]>>>a||n+e.shape[0]>this._shape[0]>>>a||t<0||n<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");!function(e,t,n,a,s,l,c,u){var f=u.dtype,h=u.shape.slice();if(h.length<2||h.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var p=0,g=0,v=m(h,u.stride.slice());"float32"===f?p=e.FLOAT:"float64"===f?(p=e.FLOAT,v=!1,f="float32"):"uint8"===f?p=e.UNSIGNED_BYTE:(p=e.UNSIGNED_BYTE,v=!1,f="uint8");if(2===h.length)g=e.LUMINANCE,h=[h[0],h[1],1],u=r(u.data,h,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==h.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===h[2])g=e.ALPHA;else if(2===h[2])g=e.LUMINANCE_ALPHA;else if(3===h[2])g=e.RGB;else{if(4!==h[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");g=e.RGBA}h[2]}g!==e.LUMINANCE&&g!==e.ALPHA||s!==e.LUMINANCE&&s!==e.ALPHA||(g=s);if(g!==s)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var y=u.size,b=c.indexOf(a)<0;b&&c.push(a);if(p===l&&v)0===u.offset&&u.data.length===y?b?e.texImage2D(e.TEXTURE_2D,a,s,h[0],h[1],0,s,l,u.data):e.texSubImage2D(e.TEXTURE_2D,a,t,n,h[0],h[1],s,l,u.data):b?e.texImage2D(e.TEXTURE_2D,a,s,h[0],h[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):e.texSubImage2D(e.TEXTURE_2D,a,t,n,h[0],h[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var x;x=l===e.FLOAT?i.mallocFloat32(y):i.mallocUint8(y);var _=r(x,h,[h[2],h[2]*h[0],1]);p===e.FLOAT&&l===e.UNSIGNED_BYTE?d(_,u):o.assign(_,u),b?e.texImage2D(e.TEXTURE_2D,a,s,h[0],h[1],0,s,l,x.subarray(0,y)):e.texSubImage2D(e.TEXTURE_2D,a,t,n,h[0],h[1],s,l,x.subarray(0,y)),l===e.FLOAT?i.freeFloat32(x):i.freeUint8(x)}}(s,t,n,a,this.format,this.type,this._mipLevels,e)}}},1433:function(e){"use strict";e.exports=function(e,t,n){t?t.bind():e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null);var r=0|e.getParameter(e.MAX_VERTEX_ATTRIBS);if(n){if(n.length>r)throw new Error("gl-vao: Too many vertex attributes");for(var o=0;o<n.length;++o){var i=n[o];if(i.buffer){var a=i.buffer,s=i.size||4,l=i.type||e.FLOAT,c=!!i.normalized,u=i.stride||0,d=i.offset||0;a.bind(),e.enableVertexAttribArray(o),e.vertexAttribPointer(o,s,l,c,u,d)}else{if("number"==typeof i)e.vertexAttrib1f(o,i);else if(1===i.length)e.vertexAttrib1f(o,i[0]);else if(2===i.length)e.vertexAttrib2f(o,i[0],i[1]);else if(3===i.length)e.vertexAttrib3f(o,i[0],i[1],i[2]);else{if(4!==i.length)throw new Error("gl-vao: Invalid vertex attribute");e.vertexAttrib4f(o,i[0],i[1],i[2],i[3])}e.disableVertexAttribArray(o)}}for(;o<r;++o)e.disableVertexAttribArray(o)}else{e.bindBuffer(e.ARRAY_BUFFER,null);for(o=0;o<r;++o)e.disableVertexAttribArray(o)}}},870:function(e,t,n){"use strict";var r=n(1433);function o(e){this.gl=e,this._elements=null,this._attributes=null,this._elementsType=e.UNSIGNED_SHORT}o.prototype.bind=function(){r(this.gl,this._elements,this._attributes)},o.prototype.update=function(e,t,n){this._elements=t,this._attributes=e,this._elementsType=n||this.gl.UNSIGNED_SHORT},o.prototype.dispose=function(){},o.prototype.unbind=function(){},o.prototype.draw=function(e,t,n){n=n||0;var r=this.gl;this._elements?r.drawElements(e,t,this._elementsType,n):r.drawArrays(e,n,t)},e.exports=function(e){return new o(e)}},7518:function(e,t,n){"use strict";var r=n(1433);function o(e,t,n,r,o,i){this.location=e,this.dimension=t,this.a=n,this.b=r,this.c=o,this.d=i}function i(e,t,n){this.gl=e,this._ext=t,this.handle=n,this._attribs=[],this._useElements=!1,this._elementsType=e.UNSIGNED_SHORT}o.prototype.bind=function(e){switch(this.dimension){case 1:e.vertexAttrib1f(this.location,this.a);break;case 2:e.vertexAttrib2f(this.location,this.a,this.b);break;case 3:e.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:e.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},i.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var e=0;e<this._attribs.length;++e)this._attribs[e].bind(this.gl)},i.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},i.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},i.prototype.update=function(e,t,n){if(this.bind(),r(this.gl,t,e),this.unbind(),this._attribs.length=0,e)for(var i=0;i<e.length;++i){var a=e[i];"number"==typeof a?this._attribs.push(new o(i,1,a)):Array.isArray(a)&&this._attribs.push(new o(i,a.length,a[0],a[1],a[2],a[3]))}this._useElements=!!t,this._elementsType=n||this.gl.UNSIGNED_SHORT},i.prototype.draw=function(e,t,n){n=n||0;var r=this.gl;this._useElements?r.drawElements(e,t,this._elementsType,n):r.drawArrays(e,n,t)},e.exports=function(e,t){return new i(e,t,t.createVertexArrayOES())}},8116:function(e,t,n){"use strict";var r=n(7518),o=n(870);function i(e){this.bindVertexArrayOES=e.bindVertexArray.bind(e),this.createVertexArrayOES=e.createVertexArray.bind(e),this.deleteVertexArrayOES=e.deleteVertexArray.bind(e)}e.exports=function(e,t,n,a){var s,l=e.createVertexArray?new i(e):e.getExtension("OES_vertex_array_object");return(s=l?r(e,l):o(e)).update(t,n,a),s}},5632:function(e){e.exports=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}},8192:function(e,t,n){e.exports=function(e,t){var n=r(e[0],e[1],e[2]),a=r(t[0],t[1],t[2]);o(n,n),o(a,a);var s=i(n,a);return s>1?0:Math.acos(s)};var r=n(2825),o=n(3536),i=n(244)},9226:function(e){e.exports=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}},3126:function(e){e.exports=function(e){var t=new Float32Array(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},3990:function(e){e.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},1091:function(e){e.exports=function(){var e=new Float32Array(3);return e[0]=0,e[1]=0,e[2]=0,e}},5911:function(e){e.exports=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=n[0],s=n[1],l=n[2];return e[0]=o*l-i*s,e[1]=i*a-r*l,e[2]=r*s-o*a,e}},5455:function(e,t,n){e.exports=n(7056)},7056:function(e){e.exports=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return Math.sqrt(n*n+r*r+o*o)}},4008:function(e,t,n){e.exports=n(6690)},6690:function(e){e.exports=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}},244:function(e){e.exports=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}},2613:function(e){e.exports=1e-6},9922:function(e,t,n){e.exports=function(e,t){var n=e[0],o=e[1],i=e[2],a=t[0],s=t[1],l=t[2];return Math.abs(n-a)<=r*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(o-s)<=r*Math.max(1,Math.abs(o),Math.abs(s))&&Math.abs(i-l)<=r*Math.max(1,Math.abs(i),Math.abs(l))};var r=n(2613)},9265:function(e){e.exports=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}},2681:function(e){e.exports=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}},5137:function(e,t,n){e.exports=function(e,t,n,o,i,a){var s,l;t||(t=3);n||(n=0);l=o?Math.min(o*t+n,e.length):e.length;for(s=n;s<l;s+=t)r[0]=e[s],r[1]=e[s+1],r[2]=e[s+2],i(r,r,a),e[s]=r[0],e[s+1]=r[1],e[s+2]=r[2];return e};var r=n(1091)()},2825:function(e){e.exports=function(e,t,n){var r=new Float32Array(3);return r[0]=e,r[1]=t,r[2]=n,r}},2931:function(e,t,n){e.exports={EPSILON:n(2613),create:n(1091),clone:n(3126),angle:n(8192),fromValues:n(2825),copy:n(3990),set:n(1463),equals:n(9922),exactEquals:n(9265),add:n(5632),subtract:n(6843),sub:n(2229),multiply:n(5847),mul:n(4505),divide:n(6690),div:n(4008),min:n(8107),max:n(7417),floor:n(2681),ceil:n(9226),round:n(2447),scale:n(6621),scaleAndAdd:n(8489),distance:n(7056),dist:n(5455),squaredDistance:n(2953),sqrDist:n(6141),length:n(1387),len:n(868),squaredLength:n(3066),sqrLen:n(5486),negate:n(5093),inverse:n(811),normalize:n(3536),dot:n(244),cross:n(5911),lerp:n(6658),random:n(7636),transformMat4:n(5673),transformMat3:n(492),transformQuat:n(264),rotateX:n(6894),rotateY:n(109),rotateZ:n(8692),forEach:n(5137)}},811:function(e){e.exports=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}},868:function(e,t,n){e.exports=n(1387)},1387:function(e){e.exports=function(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}},6658:function(e){e.exports=function(e,t,n,r){var o=t[0],i=t[1],a=t[2];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e[2]=a+r*(n[2]-a),e}},7417:function(e){e.exports=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}},8107:function(e){e.exports=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}},4505:function(e,t,n){e.exports=n(5847)},5847:function(e){e.exports=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}},5093:function(e){e.exports=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}},3536:function(e){e.exports=function(e,t){var n=t[0],r=t[1],o=t[2],i=n*n+r*r+o*o;i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i);return e}},7636:function(e){e.exports=function(e,t){t=t||1;var n=2*Math.random()*Math.PI,r=2*Math.random()-1,o=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=r*t,e}},6894:function(e){e.exports=function(e,t,n,r){var o=n[1],i=n[2],a=t[1]-o,s=t[2]-i,l=Math.sin(r),c=Math.cos(r);return e[0]=t[0],e[1]=o+a*c-s*l,e[2]=i+a*l+s*c,e}},109:function(e){e.exports=function(e,t,n,r){var o=n[0],i=n[2],a=t[0]-o,s=t[2]-i,l=Math.sin(r),c=Math.cos(r);return e[0]=o+s*l+a*c,e[1]=t[1],e[2]=i+s*c-a*l,e}},8692:function(e){e.exports=function(e,t,n,r){var o=n[0],i=n[1],a=t[0]-o,s=t[1]-i,l=Math.sin(r),c=Math.cos(r);return e[0]=o+a*c-s*l,e[1]=i+a*l+s*c,e[2]=t[2],e}},2447:function(e){e.exports=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e}},6621:function(e){e.exports=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}},8489:function(e){e.exports=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}},1463:function(e){e.exports=function(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}},6141:function(e,t,n){e.exports=n(2953)},5486:function(e,t,n){e.exports=n(3066)},2953:function(e){e.exports=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return n*n+r*r+o*o}},3066:function(e){e.exports=function(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}},2229:function(e,t,n){e.exports=n(6843)},6843:function(e){e.exports=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}},492:function(e){e.exports=function(e,t,n){var r=t[0],o=t[1],i=t[2];return e[0]=r*n[0]+o*n[3]+i*n[6],e[1]=r*n[1]+o*n[4]+i*n[7],e[2]=r*n[2]+o*n[5]+i*n[8],e}},5673:function(e){e.exports=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=n[3]*r+n[7]*o+n[11]*i+n[15];return a=a||1,e[0]=(n[0]*r+n[4]*o+n[8]*i+n[12])/a,e[1]=(n[1]*r+n[5]*o+n[9]*i+n[13])/a,e[2]=(n[2]*r+n[6]*o+n[10]*i+n[14])/a,e}},264:function(e){e.exports=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=n[0],s=n[1],l=n[2],c=n[3],u=c*r+s*i-l*o,d=c*o+l*r-a*i,f=c*i+a*o-s*r,h=-a*r-s*o-l*i;return e[0]=u*c+h*-a+d*-l-f*-s,e[1]=d*c+h*-s+f*-a-u*-l,e[2]=f*c+h*-l+u*-s-d*-a,e}},4361:function(e){e.exports=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}},2335:function(e){e.exports=function(e){var t=new Float32Array(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},2933:function(e){e.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},7536:function(e){e.exports=function(){var e=new Float32Array(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e}},4691:function(e){e.exports=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2],i=t[3]-e[3];return Math.sqrt(n*n+r*r+o*o+i*i)}},1373:function(e){e.exports=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}},3750:function(e){e.exports=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}},3390:function(e){e.exports=function(e,t,n,r){var o=new Float32Array(4);return o[0]=e,o[1]=t,o[2]=n,o[3]=r,o}},9970:function(e,t,n){e.exports={create:n(7536),clone:n(2335),fromValues:n(3390),copy:n(2933),set:n(4578),add:n(4361),subtract:n(6860),multiply:n(3576),divide:n(1373),min:n(2334),max:n(160),scale:n(9288),scaleAndAdd:n(4844),distance:n(4691),squaredDistance:n(7960),length:n(6808),squaredLength:n(483),negate:n(1498),inverse:n(4494),normalize:n(5177),dot:n(3750),lerp:n(2573),random:n(9131),transformMat4:n(5352),transformQuat:n(4041)}},4494:function(e){e.exports=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e}},6808:function(e){e.exports=function(e){var t=e[0],n=e[1],r=e[2],o=e[3];return Math.sqrt(t*t+n*n+r*r+o*o)}},2573:function(e){e.exports=function(e,t,n,r){var o=t[0],i=t[1],a=t[2],s=t[3];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e[2]=a+r*(n[2]-a),e[3]=s+r*(n[3]-s),e}},160:function(e){e.exports=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}},2334:function(e){e.exports=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}},3576:function(e){e.exports=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}},1498:function(e){e.exports=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e}},5177:function(e){e.exports=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n*n+r*r+o*o+i*i;a>0&&(a=1/Math.sqrt(a),e[0]=n*a,e[1]=r*a,e[2]=o*a,e[3]=i*a);return e}},9131:function(e,t,n){var r=n(5177),o=n(9288);e.exports=function(e,t){return t=t||1,e[0]=Math.random(),e[1]=Math.random(),e[2]=Math.random(),e[3]=Math.random(),r(e,e),o(e,e,t),e}},9288:function(e){e.exports=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}},4844:function(e){e.exports=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e}},4578:function(e){e.exports=function(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e}},7960:function(e){e.exports=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2],i=t[3]-e[3];return n*n+r*r+o*o+i*i}},483:function(e){e.exports=function(e){var t=e[0],n=e[1],r=e[2],o=e[3];return t*t+n*n+r*r+o*o}},6860:function(e){e.exports=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}},5352:function(e){e.exports=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3];return e[0]=n[0]*r+n[4]*o+n[8]*i+n[12]*a,e[1]=n[1]*r+n[5]*o+n[9]*i+n[13]*a,e[2]=n[2]*r+n[6]*o+n[10]*i+n[14]*a,e[3]=n[3]*r+n[7]*o+n[11]*i+n[15]*a,e}},4041:function(e){e.exports=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=n[0],s=n[1],l=n[2],c=n[3],u=c*r+s*i-l*o,d=c*o+l*r-a*i,f=c*i+a*o-s*r,h=-a*r-s*o-l*i;return e[0]=u*c+h*-a+d*-l-f*-s,e[1]=d*c+h*-s+f*-a-u*-l,e[2]=f*c+h*-l+u*-s-d*-a,e[3]=t[3],e}},1848:function(e,t,n){var r=n(4905),o=n(6468);e.exports=function(e){for(var t=Array.isArray(e)?e:r(e),n=0;n<t.length;n++){var i=t[n];if("preprocessor"===i.type){var a=i.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(a&&a[2]){var s=a[1],l=a[2];return(s?o(l):l).trim()}}}}},5874:function(e,t,n){e.exports=function(e){var t,n,c,u=0,d=0,f=999,h=[],p=[],m=1,g=0,v=0,y=!1,b=!1,x="",_=i,w=r;"300 es"===(e=e||{}).version&&(_=s,w=a);var j={},k={};for(u=0;u<_.length;u++)j[_[u]]=!0;for(u=0;u<w.length;u++)k[w[u]]=!0;return function(e){return p=[],null!==e?function(e){u=0,e.toString&&(e=e.toString());var n;x+=e.replace(/\r\n/g,"\n"),c=x.length;for(;t=x[u],u<c;){switch(n=u,f){case 0:u=C();break;case 1:case 2:u=S();break;case 3:u=E();break;case 4:u=R();break;case 11:u=O();break;case 5:u=I();break;case 9999:u=P();break;case 9:u=M();break;case 999:u=A()}if(n!==u)switch(x[n]){case"\n":g=0,++m;break;default:++g}}return d+=u,x=x.slice(u),p}(e):function(e){h.length&&T(h.join(""));return f=10,T("(eof)"),p}()};function T(e){e.length&&p.push({type:l[f],data:e,position:v,line:m,column:g})}function A(){return h=h.length?[]:h,"/"===n&&"*"===t?(v=d+u-1,f=0,n=t,u+1):"/"===n&&"/"===t?(v=d+u-1,f=1,n=t,u+1):"#"===t?(f=2,v=d+u,u):/\s/.test(t)?(f=9,v=d+u,u):(y=/\d/.test(t),b=/[^\w_]/.test(t),v=d+u,f=y?4:b?3:9999,u)}function M(){return/[^\s]/g.test(t)?(T(h.join("")),f=999,u):(h.push(t),n=t,u+1)}function S(){return"\r"!==t&&"\n"!==t||"\\"===n?(h.push(t),n=t,u+1):(T(h.join("")),f=999,u)}function C(){return"/"===t&&"*"===n?(h.push(t),T(h.join("")),f=999,u+1):(h.push(t),n=t,u+1)}function E(){if("."===n&&/\d/.test(t))return f=5,u;if("/"===n&&"*"===t)return f=0,u;if("/"===n&&"/"===t)return f=1,u;if("."===t&&h.length){for(;L(h););return f=5,u}if(";"===t||")"===t||"("===t){if(h.length)for(;L(h););return T(t),f=999,u+1}var e=2===h.length&&"="!==t;if(/[\w_\d\s]/.test(t)||e){for(;L(h););return f=999,u}return h.push(t),n=t,u+1}function L(e){for(var t,n,r=0;;){if(t=o.indexOf(e.slice(0,e.length+r).join("")),n=o[t],-1===t){if(r--+e.length>0)continue;n=e.slice(0,1).join("")}return T(n),v+=n.length,(h=h.slice(n.length)).length}}function O(){return/[^a-fA-F0-9]/.test(t)?(T(h.join("")),f=999,u):(h.push(t),n=t,u+1)}function R(){return"."===t||/[eE]/.test(t)?(h.push(t),f=5,n=t,u+1):"x"===t&&1===h.length&&"0"===h[0]?(f=11,h.push(t),n=t,u+1):/[^\d]/.test(t)?(T(h.join("")),f=999,u):(h.push(t),n=t,u+1)}function I(){return"f"===t&&(h.push(t),n=t,u+=1),/[eE]/.test(t)?(h.push(t),n=t,u+1):("-"!==t&&"+"!==t||!/[eE]/.test(n))&&/[^\d]/.test(t)?(T(h.join("")),f=999,u):(h.push(t),n=t,u+1)}function P(){if(/[^\d\w_]/.test(t)){var e=h.join("");return f=k[e]?8:j[e]?7:6,T(h.join("")),f=999,u}return h.push(t),n=t,u+1}};var r=n(620),o=n(7827),i=n(6852),a=n(7932),s=n(3508),l=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},3508:function(e,t,n){var r=n(6852);r=r.slice().filter((function(e){return!/^(gl\_|texture)/.test(e)})),e.exports=r.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(e){e.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(e,t,n){var r=n(620);e.exports=r.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(e){e.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(e){e.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(e,t,n){var r=n(5874);e.exports=function(e,t){var n=r(t),o=[];return o=(o=o.concat(n(e))).concat(n(null))}},3236:function(e){e.exports=function(e){"string"==typeof e&&(e=[e]);for(var t=[].slice.call(arguments,1),n=[],r=0;r<e.length-1;r++)n.push(e[r],t[r]||"");return n.push(e[r]),n.join("")}},7520:function(e,t,n){"use strict";var r=n(9507);e.exports=r&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return e}()},3778:function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,f=n?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},8954:function(e,t,n){"use strict";e.exports=function(e,t){var n=e.length;if(0===n)throw new Error("Must have at least d+1 points");var o=e[0].length;if(n<=o)throw new Error("Must input at least d+1 points");var a=e.slice(0,o+1),s=r.apply(void 0,a);if(0===s)throw new Error("Input not in general position");for(var l=new Array(o+1),u=0;u<=o;++u)l[u]=u;s<0&&(l[0]=1,l[1]=0);var d=new i(l,new Array(o+1),!1),f=d.adjacent,h=new Array(o+2);for(u=0;u<=o;++u){for(var p=l.slice(),m=0;m<=o;++m)m===u&&(p[m]=-1);var g=p[0];p[0]=p[1],p[1]=g;var v=new i(p,new Array(o+1),!0);f[u]=v,h[u]=v}h[o+1]=d;for(u=0;u<=o;++u){p=f[u].vertices;var y=f[u].adjacent;for(m=0;m<=o;++m){var b=p[m];if(b<0)y[m]=d;else for(var x=0;x<=o;++x)f[x].vertices.indexOf(b)<0&&(y[m]=f[x])}}var _=new c(o,a,h),w=!!t;for(u=o+1;u<n;++u)_.insert(e[u],w);return _.boundary()};var r=n(3250),o=n(6803).Fw;function i(e,t,n){this.vertices=e,this.adjacent=t,this.boundary=n,this.lastVisited=-1}function a(e,t,n){this.vertices=e,this.cell=t,this.index=n}function s(e,t){return o(e.vertices,t.vertices)}i.prototype.flip=function(){var e=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=e;var t=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=t};var l=[];function c(e,t,n){this.dimension=e,this.vertices=t,this.simplices=n,this.interior=n.filter((function(e){return!e.boundary})),this.tuple=new Array(e+1);for(var o=0;o<=e;++o)this.tuple[o]=this.vertices[o];var i,a=l[e];a||(a=l[e]=((i=r[e+1])||(i=r),function(e){return function(){var t=this.tuple;return e.apply(this,t)}}(i))),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(e,t){var n=this.dimension,r=this.vertices.length-1,o=this.tuple,i=this.vertices,a=[e];for(e.lastVisited=-r;a.length>0;)for(var s=(e=a.pop()).adjacent,l=0;l<=n;++l){var c=s[l];if(c.boundary&&!(c.lastVisited<=-r)){for(var u=c.vertices,d=0;d<=n;++d){var f=u[d];o[d]=f<0?t:i[f]}var h=this.orient();if(h>0)return c;c.lastVisited=-r,0===h&&a.push(c)}}return null},u.walk=function(e,t){var n=this.vertices.length-1,r=this.dimension,o=this.vertices,i=this.tuple,a=t?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[a];e:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u<=r;++u)i[u]=o[l[u]];s.lastVisited=n;for(u=0;u<=r;++u){var d=c[u];if(!(d.lastVisited>=n)){var f=i[u];i[u]=e;var h=this.orient();if(i[u]=f,h<0){s=d;continue e}d.boundary?d.lastVisited=-n:d.lastVisited=n}}return}return s},u.addPeaks=function(e,t){var n=this.vertices.length-1,r=this.dimension,o=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,d=[t];t.lastVisited=n,t.vertices[t.vertices.indexOf(-1)]=n,t.boundary=!1,c.push(t);for(var f=[];d.length>0;){var h=(t=d.pop()).vertices,p=t.adjacent,m=h.indexOf(n);if(!(m<0))for(var g=0;g<=r;++g)if(g!==m){var v=p[g];if(v.boundary&&!(v.lastVisited>=n)){var y=v.vertices;if(v.lastVisited!==-n){for(var b=0,x=0;x<=r;++x)y[x]<0?(b=x,l[x]=e):l[x]=o[y[x]];if(this.orient()>0){y[b]=n,v.boundary=!1,c.push(v),d.push(v),v.lastVisited=n;continue}v.lastVisited=-n}var _=v.adjacent,w=h.slice(),j=p.slice(),k=new i(w,j,!0);u.push(k);var T=_.indexOf(t);if(!(T<0)){_[T]=k,j[m]=v,w[g]=-1,j[g]=t,p[g]=k,k.flip();for(x=0;x<=r;++x){var A=w[x];if(!(A<0||A===n)){for(var M=new Array(r-1),S=0,C=0;C<=r;++C){var E=w[C];E<0||C===x||(M[S++]=E)}f.push(new a(M,k,x))}}}}}}f.sort(s);for(g=0;g+1<f.length;g+=2){var L=f[g],O=f[g+1],R=L.index,I=O.index;R<0||I<0||(L.cell.adjacent[L.index]=O.cell,O.cell.adjacent[O.index]=L.cell)}},u.insert=function(e,t){var n=this.vertices;n.push(e);var r=this.walk(e,t);if(r){for(var o=this.dimension,i=this.tuple,a=0;a<=o;++a){var s=r.vertices[a];i[a]=s<0?e:n[s]}var l=this.orient(i);l<0||(0!==l||(r=this.handleBoundaryDegeneracy(r,e)))&&this.addPeaks(e,r)}},u.boundary=function(){for(var e=this.dimension,t=[],n=this.simplices,r=n.length,o=0;o<r;++o){var i=n[o];if(i.boundary){for(var a=new Array(e),s=i.vertices,l=0,c=0,u=0;u<=e;++u)s[u]>=0?a[l++]=s[u]:c=1&u;if(c===(1&e)){var d=a[0];a[0]=a[1],a[1]=d}t.push(a)}}return t}},3352:function(e,t,n){"use strict";var r=n(2478);function o(e,t,n,r,o){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=o,this.count=(t?t.count:0)+(n?n.count:0)+r.length}e.exports=function(e){if(!e||0===e.length)return new v(null);return new v(g(e))};var i=o.prototype;function a(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function s(e,t){var n=g(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function l(e,t){var n=e.intervals([]);n.push(t),s(e,n)}function c(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),s(e,n),1)}function u(e,t,n){for(var r=0;r<e.length&&e[r][0]<=t;++r){var o=n(e[r]);if(o)return o}}function d(e,t,n){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var o=n(e[r]);if(o)return o}}function f(e,t){for(var n=0;n<e.length;++n){var r=t(e[n]);if(r)return r}}function h(e,t){return e-t}function p(e,t){var n=e[0]-t[0];return n||e[1]-t[1]}function m(e,t){var n=e[1]-t[1];return n||e[0]-t[0]}function g(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(h);var r=t[t.length>>1],i=[],a=[],s=[];for(n=0;n<e.length;++n){var l=e[n];l[1]<r?i.push(l):r<l[0]?a.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(p),u.sort(m),new o(r,g(i),g(a),c,u)}function v(e){this.root=e}i.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},i.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?l(this,e):this.left.insert(e):this.left=g([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?l(this,e):this.right.insert(e):this.right=g([e]);else{var n=r.ge(this.leftPoints,e,p),o=r.ge(this.rightPoints,e,m);this.leftPoints.splice(n,0,e),this.rightPoints.splice(o,0,e)}},i.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?c(this,e):2===(s=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===s&&(this.count-=1),s):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?c(this,e):2===(s=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===s&&(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,o=this.left;o.right;)n=o,o=o.right;if(n===this)o.right=this.right;else{var i=this.left,s=this.right;n.count-=o.count,n.right=o.left,o.left=i,o.right=s}a(this,o),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?a(this,this.left):a(this,this.right);return 1}for(i=r.ge(this.leftPoints,e,p);i<this.leftPoints.length&&this.leftPoints[i][0]===e[0];++i)if(this.leftPoints[i]===e){this.count-=1,this.leftPoints.splice(i,1);for(s=r.ge(this.rightPoints,e,m);s<this.rightPoints.length&&this.rightPoints[s][1]===e[1];++s)if(this.rightPoints[s]===e)return this.rightPoints.splice(s,1),1}return 0},i.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(n=this.left.queryPoint(e,t))return n;return u(this.leftPoints,e,t)}if(e>this.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return d(this.rightPoints,e,t)}return f(this.leftPoints,t)},i.queryInterval=function(e,t,n){var r;if(e<this.mid&&this.left&&(r=this.left.queryInterval(e,t,n)))return r;if(t>this.mid&&this.right&&(r=this.right.queryInterval(e,t,n)))return r;return t<this.mid?u(this.leftPoints,t,n):e>this.mid?d(this.rightPoints,e,n):f(this.leftPoints,n)};var y=v.prototype;y.insert=function(e){this.root?this.root.insert(e):this.root=new o(e[0],null,null,[e],[e])},y.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},y.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},y.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(y,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},7762:function(e){"use strict";e.exports=function(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=n;return t}},9507:function(e){e.exports=!0},7163:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},5219:function(e){"use strict";e.exports=function(e){for(var t,n=e.length,r=0;r<n;r++)if(((t=e.charCodeAt(r))<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},395:function(e){e.exports=function(e,t,n){return e*(1-n)+t*n}},2652:function(e,t,n){var r=n(4335),o=n(6864),i=n(1903),a=n(9921),s=n(7608),l=n(5665),c={length:n(1387),normalize:n(3536),dot:n(244),cross:n(5911)},u=o(),d=o(),f=[0,0,0,0],h=[[0,0,0],[0,0,0],[0,0,0]],p=[0,0,0];function m(e,t,n,r,o){e[0]=t[0]*r+n[0]*o,e[1]=t[1]*r+n[1]*o,e[2]=t[2]*r+n[2]*o}e.exports=function(e,t,n,o,g,v){if(t||(t=[0,0,0]),n||(n=[0,0,0]),o||(o=[0,0,0]),g||(g=[0,0,0,1]),v||(v=[0,0,0,1]),!r(u,e))return!1;if(i(d,u),d[3]=0,d[7]=0,d[11]=0,d[15]=1,Math.abs(a(d)<1e-8))return!1;var y,b,x,_,w,j,k,T=u[3],A=u[7],M=u[11],S=u[12],C=u[13],E=u[14],L=u[15];if(0!==T||0!==A||0!==M){if(f[0]=T,f[1]=A,f[2]=M,f[3]=L,!s(d,d))return!1;l(d,d),y=g,x=d,_=(b=f)[0],w=b[1],j=b[2],k=b[3],y[0]=x[0]*_+x[4]*w+x[8]*j+x[12]*k,y[1]=x[1]*_+x[5]*w+x[9]*j+x[13]*k,y[2]=x[2]*_+x[6]*w+x[10]*j+x[14]*k,y[3]=x[3]*_+x[7]*w+x[11]*j+x[15]*k}else g[0]=g[1]=g[2]=0,g[3]=1;if(t[0]=S,t[1]=C,t[2]=E,function(e,t){e[0][0]=t[0],e[0][1]=t[1],e[0][2]=t[2],e[1][0]=t[4],e[1][1]=t[5],e[1][2]=t[6],e[2][0]=t[8],e[2][1]=t[9],e[2][2]=t[10]}(h,u),n[0]=c.length(h[0]),c.normalize(h[0],h[0]),o[0]=c.dot(h[0],h[1]),m(h[1],h[1],h[0],1,-o[0]),n[1]=c.length(h[1]),c.normalize(h[1],h[1]),o[0]/=n[1],o[1]=c.dot(h[0],h[2]),m(h[2],h[2],h[0],1,-o[1]),o[2]=c.dot(h[1],h[2]),m(h[2],h[2],h[1],1,-o[2]),n[2]=c.length(h[2]),c.normalize(h[2],h[2]),o[1]/=n[2],o[2]/=n[2],c.cross(p,h[1],h[2]),c.dot(h[0],p)<0)for(var O=0;O<3;O++)n[O]*=-1,h[O][0]*=-1,h[O][1]*=-1,h[O][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+h[0][0]-h[1][1]-h[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-h[0][0]+h[1][1]-h[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-h[0][0]-h[1][1]+h[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+h[0][0]+h[1][1]+h[2][2],0)),h[2][1]>h[1][2]&&(v[0]=-v[0]),h[0][2]>h[2][0]&&(v[1]=-v[1]),h[1][0]>h[0][1]&&(v[2]=-v[2]),!0}},4335:function(e){e.exports=function(e,t){var n=t[15];if(0===n)return!1;for(var r=1/n,o=0;o<16;o++)e[o]=t[o]*r;return!0}},7442:function(e,t,n){var r=n(6658),o=n(7182),i=n(2652),a=n(9921),s=n(8648),l=d(),c=d(),u=d();function d(){return{translate:f(),scale:f(1),skew:f(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function f(e){return[e||0,e||0,e||0]}e.exports=function(e,t,n,d){if(0===a(t)||0===a(n))return!1;var f=i(t,l.translate,l.scale,l.skew,l.perspective,l.quaternion),h=i(n,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!f||!h)&&(r(u.translate,l.translate,c.translate,d),r(u.skew,l.skew,c.skew,d),r(u.scale,l.scale,c.scale,d),r(u.perspective,l.perspective,c.perspective,d),s(u.quaternion,l.quaternion,c.quaternion,d),o(e,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},7182:function(e,t,n){var r={identity:n(7894),translate:n(7656),multiply:n(6760),create:n(6864),scale:n(2504),fromRotationTranslation:n(6743)},o=(r.create(),r.create());e.exports=function(e,t,n,i,a,s){return r.identity(e),r.fromRotationTranslation(e,s,t),e[3]=a[0],e[7]=a[1],e[11]=a[2],e[15]=a[3],r.identity(o),0!==i[2]&&(o[9]=i[2],r.multiply(e,e,o)),0!==i[1]&&(o[9]=0,o[8]=i[1],r.multiply(e,e,o)),0!==i[0]&&(o[8]=0,o[4]=i[0],r.multiply(e,e,o)),r.scale(e,e,n),e}},4192:function(e,t,n){"use strict";var r=n(2478),o=n(7442),i=n(7608),a=n(5567),s=n(2408),l=n(7089),c=n(6582),u=n(7656),d=(n(2504),n(3536)),f=[0,0,0];function h(e){this._components=e.slice(),this._time=[0],this.prevMatrix=e.slice(),this.nextMatrix=e.slice(),this.computedMatrix=e.slice(),this.computedInverse=e.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]}e.exports=function(e){return new h((e=e||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var p=h.prototype;p.recalcMatrix=function(e){var t=this._time,n=r.le(t,e),a=this.computedMatrix;if(!(n<0)){var s=this._components;if(n===t.length-1)for(var l=16*n,c=0;c<16;++c)a[c]=s[l++];else{var u=t[n+1]-t[n],f=(l=16*n,this.prevMatrix),h=!0;for(c=0;c<16;++c)f[c]=s[l++];var p=this.nextMatrix;for(c=0;c<16;++c)p[c]=s[l++],h=h&&f[c]===p[c];if(u<1e-6||h)for(c=0;c<16;++c)a[c]=f[c];else o(a,f,p,(e-t[n])/u)}var m=this.computedUp;m[0]=a[1],m[1]=a[5],m[2]=a[9],d(m,m);var g=this.computedInverse;i(g,a);var v=this.computedEye,y=g[15];v[0]=g[12]/y,v[1]=g[13]/y,v[2]=g[14]/y;var b=this.computedCenter,x=Math.exp(this.computedRadius[0]);for(c=0;c<3;++c)b[c]=v[c]-a[2+4*c]*x}},p.idle=function(e){if(!(e<this.lastT())){for(var t=this._components,n=t.length-16,r=0;r<16;++r)t.push(t[n++]);this._time.push(e)}},p.flush=function(e){var t=r.gt(this._time,e)-2;t<0||(this._time.splice(0,t),this._components.splice(0,16*t))},p.lastT=function(){return this._time[this._time.length-1]},p.lookAt=function(e,t,n,r){this.recalcMatrix(e),t=t||this.computedEye,n=n||f,r=r||this.computedUp,this.setMatrix(e,c(this.computedMatrix,t,n,r));for(var o=0,i=0;i<3;++i)o+=Math.pow(n[i]-t[i],2);o=Math.log(Math.sqrt(o)),this.computedRadius[0]=o},p.rotate=function(e,t,n,r){this.recalcMatrix(e);var o=this.computedInverse;t&&s(o,o,t),n&&a(o,o,n),r&&l(o,o,r),this.setMatrix(e,i(this.computedMatrix,o))};var m=[0,0,0];p.pan=function(e,t,n,r){m[0]=-(t||0),m[1]=-(n||0),m[2]=-(r||0),this.recalcMatrix(e);var o=this.computedInverse;u(o,o,m),this.setMatrix(e,i(o,o))},p.translate=function(e,t,n,r){m[0]=t||0,m[1]=n||0,m[2]=r||0,this.recalcMatrix(e);var o=this.computedMatrix;u(o,o,m),this.setMatrix(e,o)},p.setMatrix=function(e,t){if(!(e<this.lastT())){this._time.push(e);for(var n=0;n<16;++n)this._components.push(t[n])}},p.setDistance=function(e,t){this.computedRadius[0]=t},p.setDistanceLimits=function(e,t){var n=this._limits;n[0]=e,n[1]=t},p.getDistanceLimits=function(e){var t=this._limits;return e?(e[0]=t[0],e[1]=t[1],e):t}},3090:function(e,t,n){"use strict";e.exports=function(e){var t=e.length;if(t<3){for(var n=new Array(t),o=0;o<t;++o)n[o]=o;return 2===t&&e[0][0]===e[1][0]&&e[0][1]===e[1][1]?[0]:n}var i=new Array(t);for(o=0;o<t;++o)i[o]=o;i.sort((function(t,n){var r=e[t][0]-e[n][0];return r||e[t][1]-e[n][1]}));var a=[i[0],i[1]],s=[i[0],i[1]];for(o=2;o<t;++o){for(var l=i[o],c=e[l],u=a.length;u>1&&r(e[a[u-2]],e[a[u-1]],c)<=0;)u-=1,a.pop();for(a.push(l),u=s.length;u>1&&r(e[s[u-2]],e[s[u-1]],c)>=0;)u-=1,s.pop();s.push(l)}n=new Array(s.length+a.length-2);for(var d=0,f=(o=0,a.length);o<f;++o)n[d++]=a[o];for(var h=s.length-2;h>0;--h)n[d++]=s[h];return n};var r=n(3250)[3]},351:function(e,t,n){"use strict";e.exports=function(e,t){t||(t=e,e=window);var n=0,o=0,i=0,a={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(e){var t=!1;return"altKey"in e&&(t=t||e.altKey!==a.alt,a.alt=!!e.altKey),"shiftKey"in e&&(t=t||e.shiftKey!==a.shift,a.shift=!!e.shiftKey),"ctrlKey"in e&&(t=t||e.ctrlKey!==a.control,a.control=!!e.ctrlKey),"metaKey"in e&&(t=t||e.metaKey!==a.meta,a.meta=!!e.metaKey),t}function c(e,s){var c=r.x(s),u=r.y(s);"buttons"in s&&(e=0|s.buttons),(e!==n||c!==o||u!==i||l(s))&&(n=0|e,o=c||0,i=u||0,t&&t(n,o,i,a))}function u(e){c(0,e)}function d(){(n||o||i||a.shift||a.alt||a.meta||a.control)&&(o=i=0,n=0,a.shift=a.alt=a.control=a.meta=!1,t&&t(0,0,0,a))}function f(e){l(e)&&t&&t(n,o,i,a)}function h(e){0===r.buttons(e)?c(0,e):c(n,e)}function p(e){c(n|r.buttons(e),e)}function m(e){c(n&~r.buttons(e),e)}function g(){s||(s=!0,e.addEventListener("mousemove",h),e.addEventListener("mousedown",p),e.addEventListener("mouseup",m),e.addEventListener("mouseleave",u),e.addEventListener("mouseenter",u),e.addEventListener("mouseout",u),e.addEventListener("mouseover",u),e.addEventListener("blur",d),e.addEventListener("keyup",f),e.addEventListener("keydown",f),e.addEventListener("keypress",f),e!==window&&(window.addEventListener("blur",d),window.addEventListener("keyup",f),window.addEventListener("keydown",f),window.addEventListener("keypress",f)))}g();var v={element:e};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(t){t?g():function(){if(!s)return;s=!1,e.removeEventListener("mousemove",h),e.removeEventListener("mousedown",p),e.removeEventListener("mouseup",m),e.removeEventListener("mouseleave",u),e.removeEventListener("mouseenter",u),e.removeEventListener("mouseout",u),e.removeEventListener("mouseover",u),e.removeEventListener("blur",d),e.removeEventListener("keyup",f),e.removeEventListener("keydown",f),e.removeEventListener("keypress",f),e!==window&&(window.removeEventListener("blur",d),window.removeEventListener("keyup",f),window.removeEventListener("keydown",f),window.removeEventListener("keypress",f))}()},enumerable:!0},buttons:{get:function(){return n},enumerable:!0},x:{get:function(){return o},enumerable:!0},y:{get:function(){return i},enumerable:!0},mods:{get:function(){return a},enumerable:!0}}),v};var r=n(4687)},24:function(e){var t={left:0,top:0};e.exports=function(e,n,r){n=n||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var o=e.clientX||0,i=e.clientY||0,a=(s=n,s===window||s===document||s===document.body?t:s.getBoundingClientRect());var s;return r[0]=o-a.left,r[1]=i-a.top,r}},4687:function(e,t){"use strict";function n(e){return e.target||e.srcElement||window}t.buttons=function(e){if("object"==typeof e){if("buttons"in e)return e.buttons;if("which"in e){if(2===(t=e.which))return 4;if(3===t)return 2;if(t>0)return 1<<t-1}else if("button"in e){var t;if(1===(t=e.button))return 4;if(2===t)return 2;if(t>=0)return 1<<t}}return 0},t.element=n,t.x=function(e){if("object"==typeof e){if("offsetX"in e)return e.offsetX;var t=n(e).getBoundingClientRect();return e.clientX-t.left}return 0},t.y=function(e){if("object"==typeof e){if("offsetY"in e)return e.offsetY;var t=n(e).getBoundingClientRect();return e.clientY-t.top}return 0}},8512:function(e,t,n){"use strict";var r=n(665);e.exports=function(e,t,n){"function"==typeof e&&(n=!!t,t=e,e=window);var o=r("ex",e),i=function(e){n&&e.preventDefault();var r=e.deltaX||0,i=e.deltaY||0,a=e.deltaZ||0,s=1;switch(e.deltaMode){case 1:s=o;break;case 2:s=window.innerHeight}if(i*=s,a*=s,(r*=s)||i||a)return t(r,i,a,e)};return e.addEventListener("wheel",i),i}},2640:function(e,t,n){"use strict";var r=n(1888);e.exports=function(e){function t(e){throw new Error("ndarray-extract-contour: "+e)}"object"!=typeof e&&t("Must specify arguments");var n=e.order;Array.isArray(n)||t("Must specify order");var i=e.arrayArguments||1;i<1&&t("Must have at least one array argument");var a=e.scalarArguments||0;a<0&&t("Scalar arg count must be > 0");"function"!=typeof e.vertex&&t("Must specify vertex creation function");"function"!=typeof e.cell&&t("Must specify cell creation function");"function"!=typeof e.phase&&t("Must specify phase function");for(var s=e.getters||[],l=new Array(i),c=0;c<i;++c)s.indexOf(c)>=0?l[c]=!0:l[c]=!1;return function(e,t,n,i,a,s){var l=[s,a].join(",");return(0,o[l])(e,t,n,r.mallocUint32,r.freeUint32)}(e.vertex,e.cell,e.phase,0,n,l)};var o={"false,0,1":function(e,t,n,r,o){return function(i,a,s,l){var c,u=0|i.shape[0],d=0|i.shape[1],f=i.data,h=0|i.offset,p=0|i.stride[0],m=0|i.stride[1],g=h,v=0|-p,y=0,b=0|-m,x=0,_=-p-m|0,w=0,j=0|p,k=m-p*u|0,T=0,A=0,M=0,S=2*u|0,C=r(S),E=r(S),L=0,O=0,R=-1,I=-1,P=0,D=0|-u,z=0|u,N=0,F=-u-1|0,B=u-1|0,U=0,H=0,V=0;for(T=0;T<u;++T)C[L++]=n(f[g],a,s,l),g+=j;if(g+=k,d>0){if(A=1,C[L++]=n(f[g],a,s,l),g+=j,u>0)for(T=1,c=f[g],O=C[L]=n(c,a,s,l),P=C[L+R],N=C[L+D],U=C[L+F],O===P&&O===N&&O===U||(y=f[g+v],x=f[g+b],w=f[g+_],e(T,A,c,y,x,w,O,P,N,U,a,s,l),H=E[L]=M++),L+=1,g+=j,T=2;T<u;++T)c=f[g],O=C[L]=n(c,a,s,l),P=C[L+R],N=C[L+D],U=C[L+F],O===P&&O===N&&O===U||(y=f[g+v],x=f[g+b],w=f[g+_],e(T,A,c,y,x,w,O,P,N,U,a,s,l),H=E[L]=M++,U!==P&&t(E[L+R],H,w,y,U,P,a,s,l)),L+=1,g+=j;for(g+=k,L=0,V=R,R=I,I=V,V=D,D=z,z=V,V=F,F=B,B=V,A=2;A<d;++A){if(C[L++]=n(f[g],a,s,l),g+=j,u>0)for(T=1,c=f[g],O=C[L]=n(c,a,s,l),P=C[L+R],N=C[L+D],U=C[L+F],O===P&&O===N&&O===U||(y=f[g+v],x=f[g+b],w=f[g+_],e(T,A,c,y,x,w,O,P,N,U,a,s,l),H=E[L]=M++,U!==N&&t(E[L+D],H,x,w,N,U,a,s,l)),L+=1,g+=j,T=2;T<u;++T)c=f[g],O=C[L]=n(c,a,s,l),P=C[L+R],N=C[L+D],U=C[L+F],O===P&&O===N&&O===U||(y=f[g+v],x=f[g+b],w=f[g+_],e(T,A,c,y,x,w,O,P,N,U,a,s,l),H=E[L]=M++,U!==N&&t(E[L+D],H,x,w,N,U,a,s,l),U!==P&&t(E[L+R],H,w,y,U,P,a,s,l)),L+=1,g+=j;1&A&&(L=0),V=R,R=I,I=V,V=D,D=z,z=V,V=F,F=B,B=V,g+=k}}o(E),o(C)}},"false,1,0":function(e,t,n,r,o){return function(i,a,s,l){var c,u=0|i.shape[0],d=0|i.shape[1],f=i.data,h=0|i.offset,p=0|i.stride[0],m=0|i.stride[1],g=h,v=0|-p,y=0,b=0|-m,x=0,_=-p-m|0,w=0,j=0|m,k=p-m*d|0,T=0,A=0,M=0,S=2*d|0,C=r(S),E=r(S),L=0,O=0,R=-1,I=-1,P=0,D=0|-d,z=0|d,N=0,F=-d-1|0,B=d-1|0,U=0,H=0,V=0;for(A=0;A<d;++A)C[L++]=n(f[g],a,s,l),g+=j;if(g+=k,u>0){if(T=1,C[L++]=n(f[g],a,s,l),g+=j,d>0)for(A=1,c=f[g],O=C[L]=n(c,a,s,l),N=C[L+D],P=C[L+R],U=C[L+F],O===N&&O===P&&O===U||(y=f[g+v],x=f[g+b],w=f[g+_],e(T,A,c,y,x,w,O,N,P,U,a,s,l),H=E[L]=M++),L+=1,g+=j,A=2;A<d;++A)c=f[g],O=C[L]=n(c,a,s,l),N=C[L+D],P=C[L+R],U=C[L+F],O===N&&O===P&&O===U||(y=f[g+v],x=f[g+b],w=f[g+_],e(T,A,c,y,x,w,O,N,P,U,a,s,l),H=E[L]=M++,U!==P&&t(E[L+R],H,x,w,P,U,a,s,l)),L+=1,g+=j;for(g+=k,L=0,V=D,D=z,z=V,V=R,R=I,I=V,V=F,F=B,B=V,T=2;T<u;++T){if(C[L++]=n(f[g],a,s,l),g+=j,d>0)for(A=1,c=f[g],O=C[L]=n(c,a,s,l),N=C[L+D],P=C[L+R],U=C[L+F],O===N&&O===P&&O===U||(y=f[g+v],x=f[g+b],w=f[g+_],e(T,A,c,y,x,w,O,N,P,U,a,s,l),H=E[L]=M++,U!==N&&t(E[L+D],H,w,y,U,N,a,s,l)),L+=1,g+=j,A=2;A<d;++A)c=f[g],O=C[L]=n(c,a,s,l),N=C[L+D],P=C[L+R],U=C[L+F],O===N&&O===P&&O===U||(y=f[g+v],x=f[g+b],w=f[g+_],e(T,A,c,y,x,w,O,N,P,U,a,s,l),H=E[L]=M++,U!==P&&t(E[L+R],H,x,w,P,U,a,s,l),U!==N&&t(E[L+D],H,w,y,U,N,a,s,l)),L+=1,g+=j;1&T&&(L=0),V=D,D=z,z=V,V=R,R=I,I=V,V=F,F=B,B=V,g+=k}}o(E),o(C)}}}},6199:function(e,t,n){"use strict";var r=n(1338),o={zero:function(e,t,n,r){var o=e[0];r|=0;var i=0,a=n[0];for(i=0;i<o;++i)t[r]=0,r+=a},fdTemplate1:function(e,t,n,r,o,i,a){var s=e[0],l=n[0],c=-1*l,u=l;r|=0,a|=0;var d=0,f=l,h=i[0];for(d=0;d<s;++d)o[a]=.5*(t[r+c]-t[r+u]),r+=f,a+=h},fdTemplate2:function(e,t,n,r,o,i,a,s,l,c){var u=e[0],d=e[1],f=n[0],h=n[1],p=i[0],m=i[1],g=l[0],v=l[1],y=-1*f,b=f,x=-1*h,_=h;r|=0,a|=0,c|=0;var w=0,j=0,k=h,T=f-d*h,A=m,M=p-d*m,S=v,C=g-d*v;for(j=0;j<u;++j){for(w=0;w<d;++w)o[a]=.5*(t[r+y]-t[r+b]),s[c]=.5*(t[r+x]-t[r+_]),r+=k,a+=A,c+=S;r+=T,a+=M,c+=C}}},i={cdiff:function(e){var t={};return function(n,r,o){var i=n.dtype,a=n.order,s=r.dtype,l=r.order,c=o.dtype,u=o.order,d=[i,a.join(),s,l.join(),c,u.join()].join(),f=t[d];return f||(t[d]=f=e([i,a,s,l,c,u])),f(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,o.data,o.stride,0|o.offset)}},zero:function(e){var t={};return function(n){var r=n.dtype,o=n.order,i=[r,o.join()].join(),a=t[i];return a||(t[i]=a=e([r,o])),a(n.shape.slice(0),n.data,n.stride,0|n.offset)}},fdTemplate1:function(e){var t={};return function(n,r){var o=n.dtype,i=n.order,a=r.dtype,s=r.order,l=[o,i.join(),a,s.join()].join(),c=t[l];return c||(t[l]=c=e([o,i,a,s])),c(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset)}},fdTemplate2:function(e){var t={};return function(n,r,o){var i=n.dtype,a=n.order,s=r.dtype,l=r.order,c=o.dtype,u=o.order,d=[i,a.join(),s,l.join(),c,u.join()].join(),f=t[d];return f||(t[d]=f=e([i,a,s,l,c,u])),f(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,o.data,o.stride,0|o.offset)}}};function a(e){return(0,i[e.funcName])(s.bind(void 0,e))}function s(e){return o[e.funcName]}function l(e){return a({funcName:e.funcName})}var c={},u={},d=l({funcName:"cdiff"}),f=l({funcName:"zero"});function h(e){return e in c?c[e]:c[e]=l({funcName:"fdTemplate"+e})}function p(e,t,n,r){return function(e,o){var i=o.shape.slice();return i[0]>2&&i[1]>2&&r(o.pick(-1,-1).lo(1,1).hi(i[0]-2,i[1]-2),e.pick(-1,-1,0).lo(1,1).hi(i[0]-2,i[1]-2),e.pick(-1,-1,1).lo(1,1).hi(i[0]-2,i[1]-2)),i[1]>2&&(n(o.pick(0,-1).lo(1).hi(i[1]-2),e.pick(0,-1,1).lo(1).hi(i[1]-2)),t(e.pick(0,-1,0).lo(1).hi(i[1]-2))),i[1]>2&&(n(o.pick(i[0]-1,-1).lo(1).hi(i[1]-2),e.pick(i[0]-1,-1,1).lo(1).hi(i[1]-2)),t(e.pick(i[0]-1,-1,0).lo(1).hi(i[1]-2))),i[0]>2&&(n(o.pick(-1,0).lo(1).hi(i[0]-2),e.pick(-1,0,0).lo(1).hi(i[0]-2)),t(e.pick(-1,0,1).lo(1).hi(i[0]-2))),i[0]>2&&(n(o.pick(-1,i[1]-1).lo(1).hi(i[0]-2),e.pick(-1,i[1]-1,0).lo(1).hi(i[0]-2)),t(e.pick(-1,i[1]-1,1).lo(1).hi(i[0]-2))),e.set(0,0,0,0),e.set(0,0,1,0),e.set(i[0]-1,0,0,0),e.set(i[0]-1,0,1,0),e.set(0,i[1]-1,0,0),e.set(0,i[1]-1,1,0),e.set(i[0]-1,i[1]-1,0,0),e.set(i[0]-1,i[1]-1,1,0),e}}e.exports=function(e,t,n){return Array.isArray(n)||(n=r(t.dimension,"string"==typeof n?n:"clamp")),0===t.size?e:0===t.dimension?(e.set(0),e):function(e){var t=e.join();if(i=u[t])return i;for(var n=e.length,r=[d,f],o=1;o<=n;++o)r.push(h(o));var i=p.apply(void 0,r);return u[t]=i,i}(n)(e,t)}},4317:function(e){"use strict";function t(e,t){var n=Math.floor(t),r=t-n,o=0<=n&&n<e.shape[0],i=0<=n+1&&n+1<e.shape[0];return(1-r)*(o?+e.get(n):0)+r*(i?+e.get(n+1):0)}function n(e,t,n){var r=Math.floor(t),o=t-r,i=0<=r&&r<e.shape[0],a=0<=r+1&&r+1<e.shape[0],s=Math.floor(n),l=n-s,c=0<=s&&s<e.shape[1],u=0<=s+1&&s+1<e.shape[1],d=i&&c?e.get(r,s):0,f=i&&u?e.get(r,s+1):0;return(1-l)*((1-o)*d+o*(a&&c?e.get(r+1,s):0))+l*((1-o)*f+o*(a&&u?e.get(r+1,s+1):0))}function r(e,t,n,r){var o=Math.floor(t),i=t-o,a=0<=o&&o<e.shape[0],s=0<=o+1&&o+1<e.shape[0],l=Math.floor(n),c=n-l,u=0<=l&&l<e.shape[1],d=0<=l+1&&l+1<e.shape[1],f=Math.floor(r),h=r-f,p=0<=f&&f<e.shape[2],m=0<=f+1&&f+1<e.shape[2],g=a&&u&&p?e.get(o,l,f):0,v=a&&d&&p?e.get(o,l+1,f):0,y=s&&u&&p?e.get(o+1,l,f):0,b=s&&d&&p?e.get(o+1,l+1,f):0,x=a&&u&&m?e.get(o,l,f+1):0,_=a&&d&&m?e.get(o,l+1,f+1):0;return(1-h)*((1-c)*((1-i)*g+i*y)+c*((1-i)*v+i*b))+h*((1-c)*((1-i)*x+i*(s&&u&&m?e.get(o+1,l,f+1):0))+c*((1-i)*_+i*(s&&d&&m?e.get(o+1,l+1,f+1):0)))}function o(e){var t,n,r=0|e.shape.length,o=new Array(r),i=new Array(r),a=new Array(r),s=new Array(r);for(t=0;t<r;++t)n=+arguments[t+1],o[t]=Math.floor(n),i[t]=n-o[t],a[t]=0<=o[t]&&o[t]<e.shape[t],s[t]=0<=o[t]+1&&o[t]+1<e.shape[t];var l,c,u,d=0;e:for(t=0;t<1<<r;++t){for(c=1,u=e.offset,l=0;l<r;++l)if(t&1<<l){if(!s[l])continue e;c*=i[l],u+=e.stride[l]*(o[l]+1)}else{if(!a[l])continue e;c*=1-i[l],u+=e.stride[l]*o[l]}d+=c*e.data[u]}return d}e.exports=function(e,i,a,s){switch(e.shape.length){case 0:return 0;case 1:return t(e,i);case 2:return n(e,i,a);case 3:return r(e,i,a,s);default:return o.apply(void 0,arguments)}},e.exports.d1=t,e.exports.d2=n,e.exports.d3=r},5298:function(e,t){"use strict";var n={"float64,2,1,0":function(){return function(e,t,n,r,o){var i=e[0],a=e[1],s=e[2],l=n[0],c=n[1],u=n[2];r|=0;var d=0,f=0,h=0,p=u,m=c-s*u,g=l-a*c;for(h=0;h<i;++h){for(f=0;f<a;++f){for(d=0;d<s;++d)t[r]/=o,r+=p;r+=m}r+=g}}},"uint8,2,0,1,float64,2,1,0":function(){return function(e,t,n,r,o,i,a,s){for(var l=e[0],c=e[1],u=e[2],d=n[0],f=n[1],h=n[2],p=i[0],m=i[1],g=i[2],v=r|=0,y=a|=0,b=0|e[0];b>0;){b<64?(l=b,b=0):(l=64,b-=64);for(var x=0|e[1];x>0;){x<64?(c=x,x=0):(c=64,x-=64),r=v+b*d+x*f,a=y+b*p+x*m;var _=0,w=0,j=0,k=h,T=d-u*h,A=f-l*d,M=g,S=p-u*g,C=m-l*p;for(j=0;j<c;++j){for(w=0;w<l;++w){for(_=0;_<u;++_)t[r]=o[a]*s,r+=k,a+=M;r+=T,a+=S}r+=A,a+=C}}}}},"float32,1,0,float32,1,0":function(){return function(e,t,n,r,o,i,a){var s=e[0],l=e[1],c=n[0],u=n[1],d=i[0],f=i[1];r|=0,a|=0;var h=0,p=0,m=u,g=c-l*u,v=f,y=d-l*f;for(p=0;p<s;++p){for(h=0;h<l;++h)t[r]=o[a],r+=m,a+=v;r+=g,a+=y}}},"float32,1,0,float32,0,1":function(){return function(e,t,n,r,o,i,a){for(var s=e[0],l=e[1],c=n[0],u=n[1],d=i[0],f=i[1],h=r|=0,p=a|=0,m=0|e[1];m>0;){m<64?(l=m,m=0):(l=64,m-=64);for(var g=0|e[0];g>0;){g<64?(s=g,g=0):(s=64,g-=64),r=h+m*u+g*c,a=p+m*f+g*d;var v=0,y=0,b=u,x=c-l*u,_=f,w=d-l*f;for(y=0;y<s;++y){for(v=0;v<l;++v)t[r]=o[a],r+=b,a+=_;r+=x,a+=w}}}}},"uint8,2,0,1,uint8,1,2,0":function(){return function(e,t,n,r,o,i,a){for(var s=e[0],l=e[1],c=e[2],u=n[0],d=n[1],f=n[2],h=i[0],p=i[1],m=i[2],g=r|=0,v=a|=0,y=0|e[2];y>0;){y<64?(c=y,y=0):(c=64,y-=64);for(var b=0|e[0];b>0;){b<64?(s=b,b=0):(s=64,b-=64);for(var x=0|e[1];x>0;){x<64?(l=x,x=0):(l=64,x-=64),r=g+y*f+b*u+x*d,a=v+y*m+b*h+x*p;var _=0,w=0,j=0,k=f,T=u-c*f,A=d-s*u,M=m,S=h-c*m,C=p-s*h;for(j=0;j<l;++j){for(w=0;w<s;++w){for(_=0;_<c;++_)t[r]=o[a],r+=k,a+=M;r+=T,a+=S}r+=A,a+=C}}}}}},"uint8,2,0,1,array,2,0,1":function(){return function(e,t,n,r,o,i,a){var s=e[0],l=e[1],c=e[2],u=n[0],d=n[1],f=n[2],h=i[0],p=i[1],m=i[2];r|=0,a|=0;var g=0,v=0,y=0,b=f,x=u-c*f,_=d-s*u,w=m,j=h-c*m,k=p-s*h;for(y=0;y<l;++y){for(v=0;v<s;++v){for(g=0;g<c;++g)t[r]=o[a],r+=b,a+=w;r+=x,a+=j}r+=_,a+=k}}}};var r=function(e,t){var r=t.join(",");return(0,n[r])()},o={mul:function(e){var t={};return function(n,r,o){var i=n.dtype,a=n.order,s=r.dtype,l=r.order,c=o.dtype,u=o.order,d=[i,a.join(),s,l.join(),c,u.join()].join(),f=t[d];return f||(t[d]=f=e([i,a,s,l,c,u])),f(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,o.data,o.stride,0|o.offset)}},muls:function(e){var t={};return function(n,r,o){var i=n.dtype,a=n.order,s=r.dtype,l=r.order,c=[i,a.join(),s,l.join()].join(),u=t[c];return u||(t[c]=u=e([i,a,s,l])),u(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,o)}},mulseq:function(e){var t={};return function(n,r){var o=n.dtype,i=n.order,a=[o,i.join()].join(),s=t[a];return s||(t[a]=s=e([o,i])),s(n.shape.slice(0),n.data,n.stride,0|n.offset,r)}},div:function(e){var t={};return function(n,r,o){var i=n.dtype,a=n.order,s=r.dtype,l=r.order,c=o.dtype,u=o.order,d=[i,a.join(),s,l.join(),c,u.join()].join(),f=t[d];return f||(t[d]=f=e([i,a,s,l,c,u])),f(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,o.data,o.stride,0|o.offset)}},divs:function(e){var t={};return function(n,r,o){var i=n.dtype,a=n.order,s=r.dtype,l=r.order,c=[i,a.join(),s,l.join()].join(),u=t[c];return u||(t[c]=u=e([i,a,s,l])),u(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,o)}},divseq:function(e){var t={};return function(n,r){var o=n.dtype,i=n.order,a=[o,i.join()].join(),s=t[a];return s||(t[a]=s=e([o,i])),s(n.shape.slice(0),n.data,n.stride,0|n.offset,r)}},assign:function(e){var t={};return function(n,r){var o=n.dtype,i=n.order,a=r.dtype,s=r.order,l=[o,i.join(),a,s.join()].join(),c=t[l];return c||(t[l]=c=e([o,i,a,s])),c(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset)}}};function i(e){return t={funcName:e.funcName},(0,o[t.funcName])(r.bind(void 0,t));var t}var a={mul:"*",div:"/"};!function(){for(var e in a)t[e]=i({funcName:e}),t[e+"s"]=i({funcName:e+"s"}),t[e+"seq"]=i({funcName:e+"seq"})}(),t.assign=i({funcName:"assign"})},9994:function(e,t,n){"use strict";var r=n(9618),o=n(8277);e.exports=function(e,t){for(var n=[],i=e,a=1;Array.isArray(i);)n.push(i.length),a*=i.length,i=i[0];return 0===n.length?r():(t||(t=r(new Float64Array(a),n)),o(t,e),t)}},8277:function(e){"use strict";var t,n=function(){return function(e,t,n,r,o){var i=e[0],a=e[1],s=e[2],l=n[0],c=n[1],u=n[2],d=[0,0,0];r|=0;var f=0,h=0,p=0,m=u,g=c-s*u,v=l-a*c;for(p=0;p<i;++p){for(h=0;h<a;++h){for(f=0;f<s;++f){var y,b=o;for(y=0;y<d.length-1;++y)b=b[d[y]];t[r]=b[d[d.length-1]],r+=m,++d[2]}r+=g,d[2]-=s,++d[1]}r+=v,d[1]-=a,++d[0]}}};e.exports=(t={funcName:{funcName:"convert"}.funcName},function(e){var t={};return function(n,r){var o=n.dtype,i=n.order,a=[o,i.join()].join(),s=t[a];return s||(t[a]=s=e([o,i])),s(n.shape.slice(0),n.data,n.stride,0|n.offset,r)}}(n.bind(void 0,t)))},7640:function(e,t,n){"use strict";var r=n(1888);function o(e){switch(e){case"uint32":return[r.mallocUint32,r.freeUint32];default:return null}}var i={"uint32,1,0":function(e,t){return function(n,r,o,i,a,s,l,c,u,d,f){var h,p,m,g,v,y,b,x,_=n*a+i,w=e(c);for(h=n+1;h<=r;++h){for(p=h,m=_+=a,v=0,y=_,g=0;g<c;++g)w[v++]=o[y],y+=u;e:for(;p-- >n;){v=0,y=m-a;t:for(g=0;g<c;++g){if((b=o[y])<(x=w[v]))break e;if(b>x)break t;y+=d,v+=f}for(v=m,y=m-a,g=0;g<c;++g)o[v]=o[y],v+=u,y+=u;m-=a}for(v=m,y=0,g=0;g<c;++g)o[v]=w[y++],v+=u}t(w)}}};var a={"uint32,1,0":function(e,t,n){return function r(o,i,a,s,l,c,u,d,f,h,p){var m,g,v,y,b,x,_,w,j,k,T,A,M,S,C,E,L,O,R,I,P,D,z,N,F,B=(i-o+1)/6|0,U=o+B,H=i-B,V=o+i>>1,G=V-B,q=V+B,W=U,Y=G,X=V,Z=q,$=H,K=o+1,J=i-1,Q=!0,ee=0,te=0,ne=0,re=d,oe=t(re),ie=t(re);T=l*W,A=l*Y,F=s;e:for(k=0;k<d;++k){if(w=A+F,(ne=a[_=T+F]-a[w])>0){g=W,W=Y,Y=g;break e}if(ne<0)break e;F+=h}T=l*Z,A=l*$,F=s;e:for(k=0;k<d;++k){if(w=A+F,(ne=a[_=T+F]-a[w])>0){g=Z,Z=$,$=g;break e}if(ne<0)break e;F+=h}T=l*W,A=l*X,F=s;e:for(k=0;k<d;++k){if(w=A+F,(ne=a[_=T+F]-a[w])>0){g=W,W=X,X=g;break e}if(ne<0)break e;F+=h}T=l*Y,A=l*X,F=s;e:for(k=0;k<d;++k){if(w=A+F,(ne=a[_=T+F]-a[w])>0){g=Y,Y=X,X=g;break e}if(ne<0)break e;F+=h}T=l*W,A=l*Z,F=s;e:for(k=0;k<d;++k){if(w=A+F,(ne=a[_=T+F]-a[w])>0){g=W,W=Z,Z=g;break e}if(ne<0)break e;F+=h}T=l*X,A=l*Z,F=s;e:for(k=0;k<d;++k){if(w=A+F,(ne=a[_=T+F]-a[w])>0){g=X,X=Z,Z=g;break e}if(ne<0)break e;F+=h}T=l*Y,A=l*$,F=s;e:for(k=0;k<d;++k){if(w=A+F,(ne=a[_=T+F]-a[w])>0){g=Y,Y=$,$=g;break e}if(ne<0)break e;F+=h}T=l*Y,A=l*X,F=s;e:for(k=0;k<d;++k){if(w=A+F,(ne=a[_=T+F]-a[w])>0){g=Y,Y=X,X=g;break e}if(ne<0)break e;F+=h}T=l*Z,A=l*$,F=s;e:for(k=0;k<d;++k){if(w=A+F,(ne=a[_=T+F]-a[w])>0){g=Z,Z=$,$=g;break e}if(ne<0)break e;F+=h}for(T=l*W,A=l*Y,M=l*X,S=l*Z,C=l*$,E=l*U,L=l*V,O=l*H,N=0,F=s,k=0;k<d;++k)_=T+F,w=A+F,j=M+F,R=S+F,I=C+F,P=E+F,D=L+F,z=O+F,oe[N]=a[w],ie[N]=a[R],Q=Q&&oe[N]===ie[N],v=a[_],y=a[j],b=a[I],a[P]=v,a[D]=y,a[z]=b,++N,F+=f;for(T=l*G,A=l*o,F=s,k=0;k<d;++k)w=A+F,a[_=T+F]=a[w],F+=f;for(T=l*q,A=l*i,F=s,k=0;k<d;++k)w=A+F,a[_=T+F]=a[w],F+=f;if(Q)for(x=K;x<=J;++x){_=s+x*l,N=0;e:for(k=0;k<d&&0===(ne=a[_]-oe[N]);++k)N+=p,_+=h;if(0!==ne)if(ne<0){if(x!==K)for(T=l*x,A=l*K,F=s,k=0;k<d;++k)w=A+F,m=a[_=T+F],a[_]=a[w],a[w]=m,F+=f;++K}else for(;;){_=s+J*l,N=0;e:for(k=0;k<d&&0===(ne=a[_]-oe[N]);++k)N+=p,_+=h;if(!(ne>0)){if(ne<0){for(T=l*x,A=l*K,M=l*J,F=s,k=0;k<d;++k)w=A+F,j=M+F,m=a[_=T+F],a[_]=a[w],a[w]=a[j],a[j]=m,F+=f;++K,--J;break}for(T=l*x,A=l*J,F=s,k=0;k<d;++k)w=A+F,m=a[_=T+F],a[_]=a[w],a[w]=m,F+=f;--J;break}J--}}else for(x=K;x<=J;++x){_=s+x*l,N=0;e:for(k=0;k<d&&0===(ee=a[_]-oe[N]);++k)N+=p,_+=h;if(ee<0){if(x!==K)for(T=l*x,A=l*K,F=s,k=0;k<d;++k)w=A+F,m=a[_=T+F],a[_]=a[w],a[w]=m,F+=f;++K}else{_=s+x*l,N=0;e:for(k=0;k<d&&0===(te=a[_]-ie[N]);++k)N+=p,_+=h;if(te>0)for(;;){_=s+J*l,N=0;e:for(k=0;k<d&&0===(ne=a[_]-ie[N]);++k)N+=p,_+=h;if(!(ne>0)){_=s+J*l,N=0;e:for(k=0;k<d&&0===(ne=a[_]-oe[N]);++k)N+=p,_+=h;if(ne<0){for(T=l*x,A=l*K,M=l*J,F=s,k=0;k<d;++k)w=A+F,j=M+F,m=a[_=T+F],a[_]=a[w],a[w]=a[j],a[j]=m,F+=f;++K,--J}else{for(T=l*x,A=l*J,F=s,k=0;k<d;++k)w=A+F,m=a[_=T+F],a[_]=a[w],a[w]=m,F+=f;--J}break}if(--J<x)break}}}for(T=l*o,A=l*(K-1),N=0,F=s,k=0;k<d;++k)w=A+F,a[_=T+F]=a[w],a[w]=oe[N],++N,F+=f;for(T=l*i,A=l*(J+1),N=0,F=s,k=0;k<d;++k)w=A+F,a[_=T+F]=a[w],a[w]=ie[N],++N,F+=f;if(K-2-o<=32?e(o,K-2,a,s,l,c,u,d,f,h,p):r(o,K-2,a,s,l,c,u,d,f,h,p),i-(J+2)<=32?e(J+2,i,a,s,l,c,u,d,f,h,p):r(J+2,i,a,s,l,c,u,d,f,h,p),Q)return n(oe),void n(ie);if(K<U&&J>H){e:for(;;){for(_=s+K*l,N=0,F=s,k=0;k<d;++k){if(a[_]!==oe[N])break e;++N,_+=f}++K}e:for(;;){for(_=s+J*l,N=0,F=s,k=0;k<d;++k){if(a[_]!==ie[N])break e;++N,_+=f}--J}for(x=K;x<=J;++x){_=s+x*l,N=0;e:for(k=0;k<d&&0===(ee=a[_]-oe[N]);++k)N+=p,_+=h;if(0===ee){if(x!==K)for(T=l*x,A=l*K,F=s,k=0;k<d;++k)w=A+F,m=a[_=T+F],a[_]=a[w],a[w]=m,F+=f;++K}else{_=s+x*l,N=0;e:for(k=0;k<d&&0===(te=a[_]-ie[N]);++k)N+=p,_+=h;if(0===te)for(;;){_=s+J*l,N=0;e:for(k=0;k<d&&0===(ne=a[_]-ie[N]);++k)N+=p,_+=h;if(0!==ne){_=s+J*l,N=0;e:for(k=0;k<d&&0===(ne=a[_]-oe[N]);++k)N+=p,_+=h;if(ne<0){for(T=l*x,A=l*K,M=l*J,F=s,k=0;k<d;++k)w=A+F,j=M+F,m=a[_=T+F],a[_]=a[w],a[w]=a[j],a[j]=m,F+=f;++K,--J}else{for(T=l*x,A=l*J,F=s,k=0;k<d;++k)w=A+F,m=a[_=T+F],a[_]=a[w],a[w]=m,F+=f;--J}break}if(--J<x)break}}}}n(oe),n(ie),J-K<=32?e(K,J,a,s,l,c,u,d,f,h,p):r(K,J,a,s,l,c,u,d,f,h,p)}}};var s={"uint32,1,0":function(e,t){return function(n){var r=n.data,o=0|n.offset,i=n.shape,a=n.stride,s=0|a[0],l=0|i[0],c=0|a[1],u=0|i[1],d=c,f=c;l<=32?e(0,l-1,r,o,s,c,l,u,d,f,1):t(0,l-1,r,o,s,c,l,u,d,f,1)}}};e.exports=function(e,t){var n=[t,e].join(","),r=s[n],l=function(e,t){var n=o(t),r=[t,e].join(","),a=i[r];return n?a(n[0],n[1]):a()}(e,t),c=function(e,t,n){var r=o(t),i=[t,e].join(","),s=a[i];return e.length>1&&r?s(n,r[0],r[1]):s(n)}(e,t,l);return r(l,c)}},446:function(e,t,n){"use strict";var r=n(7640),o={};e.exports=function(e){var t=e.order,n=e.dtype,i=[t,n].join(":"),a=o[i];return a||(o[i]=a=r(t,n)),a(e),e}},9618:function(e,t,n){var r=n(7163),o="undefined"!=typeof Float64Array;function i(e,t){return e[0]-t[0]}function a(){var e,t=this.stride,n=new Array(t.length);for(e=0;e<n.length;++e)n[e]=[Math.abs(t[e]),e];n.sort(i);var r=new Array(n.length);for(e=0;e<r.length;++e)r[e]=n[e][1];return r}var s={T:function(e){function t(e){this.data=e}var n=t.prototype;return n.dtype=e,n.index=function(){return-1},n.size=0,n.dimension=-1,n.shape=n.stride=n.order=[],n.lo=n.hi=n.transpose=n.step=function(){return new t(this.data)},n.get=n.set=function(){},n.pick=function(){return null},function(e){return new t(e)}},0:function(e,t){function n(e,t){this.data=e,this.offset=t}var r=n.prototype;return r.dtype=e,r.index=function(){return this.offset},r.dimension=0,r.size=1,r.shape=r.stride=r.order=[],r.lo=r.hi=r.transpose=r.step=function(){return new n(this.data,this.offset)},r.pick=function(){return t(this.data)},r.valueOf=r.get=function(){return"generic"===e?this.data.get(this.offset):this.data[this.offset]},r.set=function(t){return"generic"===e?this.data.set(this.offset,t):this.data[this.offset]=t},function(e,t,r,o){return new n(e,o)}},1:function(e,t,n){function r(e,t,n,r){this.data=e,this.shape=[t],this.stride=[n],this.offset=0|r}var o=r.prototype;return o.dtype=e,o.dimension=1,Object.defineProperty(o,"size",{get:function(){return this.shape[0]}}),o.order=[0],o.set=function(t,n){return"generic"===e?this.data.set(this.offset+this.stride[0]*t,n):this.data[this.offset+this.stride[0]*t]=n},o.get=function(t){return"generic"===e?this.data.get(this.offset+this.stride[0]*t):this.data[this.offset+this.stride[0]*t]},o.index=function(e){return this.offset+this.stride[0]*e},o.hi=function(e){return new r(this.data,"number"!=typeof e||e<0?this.shape[0]:0|e,this.stride[0],this.offset)},o.lo=function(e){var t=this.offset,n=0,o=this.shape[0],i=this.stride[0];return"number"==typeof e&&e>=0&&(t+=i*(n=0|e),o-=n),new r(this.data,o,i,t)},o.step=function(e){var t=this.shape[0],n=this.stride[0],o=this.offset,i=0,a=Math.ceil;return"number"==typeof e&&((i=0|e)<0?(o+=n*(t-1),t=a(-t/i)):t=a(t/i),n*=i),new r(this.data,t,n,o)},o.transpose=function(e){e=void 0===e?0:0|e;var t=this.shape,n=this.stride;return new r(this.data,t[e],n[e],this.offset)},o.pick=function(e){var n=[],r=[],o=this.offset;return"number"==typeof e&&e>=0?o=o+this.stride[0]*e|0:(n.push(this.shape[0]),r.push(this.stride[0])),(0,t[n.length+1])(this.data,n,r,o)},function(e,t,n,o){return new r(e,t[0],n[0],o)}},2:function(e,t,n){function r(e,t,n,r,o,i){this.data=e,this.shape=[t,n],this.stride=[r,o],this.offset=0|i}var o=r.prototype;return o.dtype=e,o.dimension=2,Object.defineProperty(o,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(o,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),o.set=function(t,n,r){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*n,r):this.data[this.offset+this.stride[0]*t+this.stride[1]*n]=r},o.get=function(t,n){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*n):this.data[this.offset+this.stride[0]*t+this.stride[1]*n]},o.index=function(e,t){return this.offset+this.stride[0]*e+this.stride[1]*t},o.hi=function(e,t){return new r(this.data,"number"!=typeof e||e<0?this.shape[0]:0|e,"number"!=typeof t||t<0?this.shape[1]:0|t,this.stride[0],this.stride[1],this.offset)},o.lo=function(e,t){var n=this.offset,o=0,i=this.shape[0],a=this.shape[1],s=this.stride[0],l=this.stride[1];return"number"==typeof e&&e>=0&&(n+=s*(o=0|e),i-=o),"number"==typeof t&&t>=0&&(n+=l*(o=0|t),a-=o),new r(this.data,i,a,s,l,n)},o.step=function(e,t){var n=this.shape[0],o=this.shape[1],i=this.stride[0],a=this.stride[1],s=this.offset,l=0,c=Math.ceil;return"number"==typeof e&&((l=0|e)<0?(s+=i*(n-1),n=c(-n/l)):n=c(n/l),i*=l),"number"==typeof t&&((l=0|t)<0?(s+=a*(o-1),o=c(-o/l)):o=c(o/l),a*=l),new r(this.data,n,o,i,a,s)},o.transpose=function(e,t){e=void 0===e?0:0|e,t=void 0===t?1:0|t;var n=this.shape,o=this.stride;return new r(this.data,n[e],n[t],o[e],o[t],this.offset)},o.pick=function(e,n){var r=[],o=[],i=this.offset;return"number"==typeof e&&e>=0?i=i+this.stride[0]*e|0:(r.push(this.shape[0]),o.push(this.stride[0])),"number"==typeof n&&n>=0?i=i+this.stride[1]*n|0:(r.push(this.shape[1]),o.push(this.stride[1])),(0,t[r.length+1])(this.data,r,o,i)},function(e,t,n,o){return new r(e,t[0],t[1],n[0],n[1],o)}},3:function(e,t,n){function r(e,t,n,r,o,i,a,s){this.data=e,this.shape=[t,n,r],this.stride=[o,i,a],this.offset=0|s}var o=r.prototype;return o.dtype=e,o.dimension=3,Object.defineProperty(o,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(o,"order",{get:function(){var e=Math.abs(this.stride[0]),t=Math.abs(this.stride[1]),n=Math.abs(this.stride[2]);return e>t?t>n?[2,1,0]:e>n?[1,2,0]:[1,0,2]:e>n?[2,0,1]:n>t?[0,1,2]:[0,2,1]}}),o.set=function(t,n,r,o){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r,o):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r]=o},o.get=function(t,n,r){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r]},o.index=function(e,t,n){return this.offset+this.stride[0]*e+this.stride[1]*t+this.stride[2]*n},o.hi=function(e,t,n){return new r(this.data,"number"!=typeof e||e<0?this.shape[0]:0|e,"number"!=typeof t||t<0?this.shape[1]:0|t,"number"!=typeof n||n<0?this.shape[2]:0|n,this.stride[0],this.stride[1],this.stride[2],this.offset)},o.lo=function(e,t,n){var o=this.offset,i=0,a=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.stride[0],u=this.stride[1],d=this.stride[2];return"number"==typeof e&&e>=0&&(o+=c*(i=0|e),a-=i),"number"==typeof t&&t>=0&&(o+=u*(i=0|t),s-=i),"number"==typeof n&&n>=0&&(o+=d*(i=0|n),l-=i),new r(this.data,a,s,l,c,u,d,o)},o.step=function(e,t,n){var o=this.shape[0],i=this.shape[1],a=this.shape[2],s=this.stride[0],l=this.stride[1],c=this.stride[2],u=this.offset,d=0,f=Math.ceil;return"number"==typeof e&&((d=0|e)<0?(u+=s*(o-1),o=f(-o/d)):o=f(o/d),s*=d),"number"==typeof t&&((d=0|t)<0?(u+=l*(i-1),i=f(-i/d)):i=f(i/d),l*=d),"number"==typeof n&&((d=0|n)<0?(u+=c*(a-1),a=f(-a/d)):a=f(a/d),c*=d),new r(this.data,o,i,a,s,l,c,u)},o.transpose=function(e,t,n){e=void 0===e?0:0|e,t=void 0===t?1:0|t,n=void 0===n?2:0|n;var o=this.shape,i=this.stride;return new r(this.data,o[e],o[t],o[n],i[e],i[t],i[n],this.offset)},o.pick=function(e,n,r){var o=[],i=[],a=this.offset;return"number"==typeof e&&e>=0?a=a+this.stride[0]*e|0:(o.push(this.shape[0]),i.push(this.stride[0])),"number"==typeof n&&n>=0?a=a+this.stride[1]*n|0:(o.push(this.shape[1]),i.push(this.stride[1])),"number"==typeof r&&r>=0?a=a+this.stride[2]*r|0:(o.push(this.shape[2]),i.push(this.stride[2])),(0,t[o.length+1])(this.data,o,i,a)},function(e,t,n,o){return new r(e,t[0],t[1],t[2],n[0],n[1],n[2],o)}},4:function(e,t,n){function r(e,t,n,r,o,i,a,s,l,c){this.data=e,this.shape=[t,n,r,o],this.stride=[i,a,s,l],this.offset=0|c}var o=r.prototype;return o.dtype=e,o.dimension=4,Object.defineProperty(o,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(o,"order",{get:n}),o.set=function(t,n,r,o,i){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*o,i):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*o]=i},o.get=function(t,n,r,o){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*o):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*o]},o.index=function(e,t,n,r){return this.offset+this.stride[0]*e+this.stride[1]*t+this.stride[2]*n+this.stride[3]*r},o.hi=function(e,t,n,o){return new r(this.data,"number"!=typeof e||e<0?this.shape[0]:0|e,"number"!=typeof t||t<0?this.shape[1]:0|t,"number"!=typeof n||n<0?this.shape[2]:0|n,"number"!=typeof o||o<0?this.shape[3]:0|o,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},o.lo=function(e,t,n,o){var i=this.offset,a=0,s=this.shape[0],l=this.shape[1],c=this.shape[2],u=this.shape[3],d=this.stride[0],f=this.stride[1],h=this.stride[2],p=this.stride[3];return"number"==typeof e&&e>=0&&(i+=d*(a=0|e),s-=a),"number"==typeof t&&t>=0&&(i+=f*(a=0|t),l-=a),"number"==typeof n&&n>=0&&(i+=h*(a=0|n),c-=a),"number"==typeof o&&o>=0&&(i+=p*(a=0|o),u-=a),new r(this.data,s,l,c,u,d,f,h,p,i)},o.step=function(e,t,n,o){var i=this.shape[0],a=this.shape[1],s=this.shape[2],l=this.shape[3],c=this.stride[0],u=this.stride[1],d=this.stride[2],f=this.stride[3],h=this.offset,p=0,m=Math.ceil;return"number"==typeof e&&((p=0|e)<0?(h+=c*(i-1),i=m(-i/p)):i=m(i/p),c*=p),"number"==typeof t&&((p=0|t)<0?(h+=u*(a-1),a=m(-a/p)):a=m(a/p),u*=p),"number"==typeof n&&((p=0|n)<0?(h+=d*(s-1),s=m(-s/p)):s=m(s/p),d*=p),"number"==typeof o&&((p=0|o)<0?(h+=f*(l-1),l=m(-l/p)):l=m(l/p),f*=p),new r(this.data,i,a,s,l,c,u,d,f,h)},o.transpose=function(e,t,n,o){e=void 0===e?0:0|e,t=void 0===t?1:0|t,n=void 0===n?2:0|n,o=void 0===o?3:0|o;var i=this.shape,a=this.stride;return new r(this.data,i[e],i[t],i[n],i[o],a[e],a[t],a[n],a[o],this.offset)},o.pick=function(e,n,r,o){var i=[],a=[],s=this.offset;return"number"==typeof e&&e>=0?s=s+this.stride[0]*e|0:(i.push(this.shape[0]),a.push(this.stride[0])),"number"==typeof n&&n>=0?s=s+this.stride[1]*n|0:(i.push(this.shape[1]),a.push(this.stride[1])),"number"==typeof r&&r>=0?s=s+this.stride[2]*r|0:(i.push(this.shape[2]),a.push(this.stride[2])),"number"==typeof o&&o>=0?s=s+this.stride[3]*o|0:(i.push(this.shape[3]),a.push(this.stride[3])),(0,t[i.length+1])(this.data,i,a,s)},function(e,t,n,o){return new r(e,t[0],t[1],t[2],t[3],n[0],n[1],n[2],n[3],o)}},5:function(e,t,n){function r(e,t,n,r,o,i,a,s,l,c,u,d){this.data=e,this.shape=[t,n,r,o,i],this.stride=[a,s,l,c,u],this.offset=0|d}var o=r.prototype;return o.dtype=e,o.dimension=5,Object.defineProperty(o,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(o,"order",{get:n}),o.set=function(t,n,r,o,i,a){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*o+this.stride[4]*i,a):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*o+this.stride[4]*i]=a},o.get=function(t,n,r,o,i){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*o+this.stride[4]*i):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*o+this.stride[4]*i]},o.index=function(e,t,n,r,o){return this.offset+this.stride[0]*e+this.stride[1]*t+this.stride[2]*n+this.stride[3]*r+this.stride[4]*o},o.hi=function(e,t,n,o,i){return new r(this.data,"number"!=typeof e||e<0?this.shape[0]:0|e,"number"!=typeof t||t<0?this.shape[1]:0|t,"number"!=typeof n||n<0?this.shape[2]:0|n,"number"!=typeof o||o<0?this.shape[3]:0|o,"number"!=typeof i||i<0?this.shape[4]:0|i,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},o.lo=function(e,t,n,o,i){var a=this.offset,s=0,l=this.shape[0],c=this.shape[1],u=this.shape[2],d=this.shape[3],f=this.shape[4],h=this.stride[0],p=this.stride[1],m=this.stride[2],g=this.stride[3],v=this.stride[4];return"number"==typeof e&&e>=0&&(a+=h*(s=0|e),l-=s),"number"==typeof t&&t>=0&&(a+=p*(s=0|t),c-=s),"number"==typeof n&&n>=0&&(a+=m*(s=0|n),u-=s),"number"==typeof o&&o>=0&&(a+=g*(s=0|o),d-=s),"number"==typeof i&&i>=0&&(a+=v*(s=0|i),f-=s),new r(this.data,l,c,u,d,f,h,p,m,g,v,a)},o.step=function(e,t,n,o,i){var a=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.shape[3],u=this.shape[4],d=this.stride[0],f=this.stride[1],h=this.stride[2],p=this.stride[3],m=this.stride[4],g=this.offset,v=0,y=Math.ceil;return"number"==typeof e&&((v=0|e)<0?(g+=d*(a-1),a=y(-a/v)):a=y(a/v),d*=v),"number"==typeof t&&((v=0|t)<0?(g+=f*(s-1),s=y(-s/v)):s=y(s/v),f*=v),"number"==typeof n&&((v=0|n)<0?(g+=h*(l-1),l=y(-l/v)):l=y(l/v),h*=v),"number"==typeof o&&((v=0|o)<0?(g+=p*(c-1),c=y(-c/v)):c=y(c/v),p*=v),"number"==typeof i&&((v=0|i)<0?(g+=m*(u-1),u=y(-u/v)):u=y(u/v),m*=v),new r(this.data,a,s,l,c,u,d,f,h,p,m,g)},o.transpose=function(e,t,n,o,i){e=void 0===e?0:0|e,t=void 0===t?1:0|t,n=void 0===n?2:0|n,o=void 0===o?3:0|o,i=void 0===i?4:0|i;var a=this.shape,s=this.stride;return new r(this.data,a[e],a[t],a[n],a[o],a[i],s[e],s[t],s[n],s[o],s[i],this.offset)},o.pick=function(e,n,r,o,i){var a=[],s=[],l=this.offset;return"number"==typeof e&&e>=0?l=l+this.stride[0]*e|0:(a.push(this.shape[0]),s.push(this.stride[0])),"number"==typeof n&&n>=0?l=l+this.stride[1]*n|0:(a.push(this.shape[1]),s.push(this.stride[1])),"number"==typeof r&&r>=0?l=l+this.stride[2]*r|0:(a.push(this.shape[2]),s.push(this.stride[2])),"number"==typeof o&&o>=0?l=l+this.stride[3]*o|0:(a.push(this.shape[3]),s.push(this.stride[3])),"number"==typeof i&&i>=0?l=l+this.stride[4]*i|0:(a.push(this.shape[4]),s.push(this.stride[4])),(0,t[a.length+1])(this.data,a,s,l)},function(e,t,n,o){return new r(e,t[0],t[1],t[2],t[3],t[4],n[0],n[1],n[2],n[3],n[4],o)}}};function l(e,t){var n=-1===t?"T":String(t),r=s[n];return-1===t?r(e):0===t?r(e,c[e][0]):r(e,c[e],a)}var c={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};e.exports=function(e,t,n,i){if(void 0===e)return(0,c.array[0])([]);"number"==typeof e&&(e=[e]),void 0===t&&(t=[e.length]);var a=t.length;if(void 0===n){n=new Array(a);for(var s=a-1,u=1;s>=0;--s)n[s]=u,u*=t[s]}if(void 0===i){i=0;for(s=0;s<a;++s)n[s]<0&&(i-=(t[s]-1)*n[s])}for(var d=function(e){if(r(e))return"buffer";if(o)switch(Object.prototype.toString.call(e)){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(e)?"array":"generic"}(e),f=c[d];f.length<=a+1;)f.push(l(d,f.length-1));return(0,f[a+1])(e,t,n,i)}},1278:function(e,t,n){"use strict";var r=n(2361),o=Math.pow(2,-1074);e.exports=function(e,t){if(isNaN(e)||isNaN(t))return NaN;if(e===t)return e;if(0===e)return t<0?-o:o;var n=r.hi(e),i=r.lo(e);t>e==e>0?i===-1>>>0?(n+=1,i=0):i+=1:0===i?(i=-1>>>0,n-=1):i-=1;return r.pack(i,n)}},8406:function(e,t){t.vertexNormals=function(e,t,n){for(var r=t.length,o=new Array(r),i=void 0===n?1e-6:n,a=0;a<r;++a)o[a]=[0,0,0];for(a=0;a<e.length;++a)for(var s=e[a],l=0,c=s[s.length-1],u=s[0],d=0;d<s.length;++d){l=c,c=u,u=s[(d+1)%s.length];for(var f=t[l],h=t[c],p=t[u],m=new Array(3),g=0,v=new Array(3),y=0,b=0;b<3;++b)m[b]=f[b]-h[b],g+=m[b]*m[b],v[b]=p[b]-h[b],y+=v[b]*v[b];if(g*y>i){var x=o[c],_=1/Math.sqrt(g*y);for(b=0;b<3;++b){var w=(b+1)%3,j=(b+2)%3;x[b]+=_*(v[w]*m[j]-v[j]*m[w])}}}for(a=0;a<r;++a){x=o[a];var k=0;for(b=0;b<3;++b)k+=x[b]*x[b];if(k>i)for(_=1/Math.sqrt(k),b=0;b<3;++b)x[b]*=_;else for(b=0;b<3;++b)x[b]=0}return o},t.faceNormals=function(e,t,n){for(var r=e.length,o=new Array(r),i=void 0===n?1e-6:n,a=0;a<r;++a){for(var s=e[a],l=new Array(3),c=0;c<3;++c)l[c]=t[s[c]];var u=new Array(3),d=new Array(3);for(c=0;c<3;++c)u[c]=l[1][c]-l[0][c],d[c]=l[2][c]-l[0][c];var f=new Array(3),h=0;for(c=0;c<3;++c){var p=(c+1)%3,m=(c+2)%3;f[c]=u[p]*d[m]-u[m]*d[p],h+=f[c]*f[c]}h=h>i?1/Math.sqrt(h):0;for(c=0;c<3;++c)f[c]*=h;o[a]=f}return o}},4081:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,s,l,c){var u=t+i+c;if(d>0){var d=Math.sqrt(u+1);e[0]=.5*(a-l)/d,e[1]=.5*(s-r)/d,e[2]=.5*(n-i)/d,e[3]=.5*d}else{var f=Math.max(t,i,c);d=Math.sqrt(2*f-u+1);t>=f?(e[0]=.5*d,e[1]=.5*(o+n)/d,e[2]=.5*(s+r)/d,e[3]=.5*(a-l)/d):i>=f?(e[0]=.5*(n+o)/d,e[1]=.5*d,e[2]=.5*(l+a)/d,e[3]=.5*(s-r)/d):(e[0]=.5*(r+s)/d,e[1]=.5*(a+l)/d,e[2]=.5*d,e[3]=.5*(n-o)/d)}return e}},9977:function(e,t,n){"use strict";e.exports=function(e){var t=(e=e||{}).center||[0,0,0],n=e.rotation||[0,0,0,1],r=e.radius||1;t=[].slice.call(t,0,3),u(n=[].slice.call(n,0,4),n);var o=new d(n,t,Math.log(r));o.setDistanceLimits(e.zoomMin,e.zoomMax),("eye"in e||"up"in e)&&o.lookAt(0,e.eye,e.center,e.up);return o};var r=n(9215),o=n(6582),i=n(7399),a=n(7608),s=n(4081);function l(e,t,n){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2))}function c(e,t,n,r){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2)+Math.pow(r,2))}function u(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=c(n,r,o,i);a>1e-6?(e[0]=n/a,e[1]=r/a,e[2]=o/a,e[3]=i/a):(e[0]=e[1]=e[2]=0,e[3]=1)}function d(e,t,n){this.radius=r([n]),this.center=r(t),this.rotation=r(e),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 f=d.prototype;f.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},f.recalcMatrix=function(e){this.radius.curve(e),this.center.curve(e),this.rotation.curve(e);var t=this.computedRotation;u(t,t);var n=this.computedMatrix;i(n,t);var r=this.computedCenter,o=this.computedEye,a=this.computedUp,s=Math.exp(this.computedRadius[0]);o[0]=r[0]+s*n[2],o[1]=r[1]+s*n[6],o[2]=r[2]+s*n[10],a[0]=n[1],a[1]=n[5],a[2]=n[9];for(var l=0;l<3;++l){for(var c=0,d=0;d<3;++d)c+=n[l+4*d]*o[d];n[12+l]=-c}},f.getMatrix=function(e,t){this.recalcMatrix(e);var n=this.computedMatrix;if(t){for(var r=0;r<16;++r)t[r]=n[r];return t}return n},f.idle=function(e){this.center.idle(e),this.radius.idle(e),this.rotation.idle(e)},f.flush=function(e){this.center.flush(e),this.radius.flush(e),this.rotation.flush(e)},f.pan=function(e,t,n,r){t=t||0,n=n||0,r=r||0,this.recalcMatrix(e);var o=this.computedMatrix,i=o[1],a=o[5],s=o[9],c=l(i,a,s);i/=c,a/=c,s/=c;var u=o[0],d=o[4],f=o[8],h=u*i+d*a+f*s,p=l(u-=i*h,d-=a*h,f-=s*h);u/=p,d/=p,f/=p;var m=o[2],g=o[6],v=o[10],y=m*i+g*a+v*s,b=m*u+g*d+v*f,x=l(m-=y*i+b*u,g-=y*a+b*d,v-=y*s+b*f);m/=x,g/=x,v/=x;var _=u*t+i*n,w=d*t+a*n,j=f*t+s*n;this.center.move(e,_,w,j);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+r),this.radius.set(e,Math.log(k))},f.rotate=function(e,t,n,r){this.recalcMatrix(e),t=t||0,n=n||0;var o=this.computedMatrix,i=o[0],a=o[4],s=o[8],u=o[1],d=o[5],f=o[9],h=o[2],p=o[6],m=o[10],g=t*i+n*u,v=t*a+n*d,y=t*s+n*f,b=-(p*y-m*v),x=-(m*g-h*y),_=-(h*v-p*g),w=Math.sqrt(Math.max(0,1-Math.pow(b,2)-Math.pow(x,2)-Math.pow(_,2))),j=c(b,x,_,w);j>1e-6?(b/=j,x/=j,_/=j,w/=j):(b=x=_=0,w=1);var k=this.computedRotation,T=k[0],A=k[1],M=k[2],S=k[3],C=T*w+S*b+A*_-M*x,E=A*w+S*x+M*b-T*_,L=M*w+S*_+T*x-A*b,O=S*w-T*b-A*x-M*_;if(r){b=h,x=p,_=m;var R=Math.sin(r)/l(b,x,_);b*=R,x*=R,_*=R,O=O*(w=Math.cos(t))-(C=C*w+O*b+E*_-L*x)*b-(E=E*w+O*x+L*b-C*_)*x-(L=L*w+O*_+C*x-E*b)*_}var I=c(C,E,L,O);I>1e-6?(C/=I,E/=I,L/=I,O/=I):(C=E=L=0,O=1),this.rotation.set(e,C,E,L,O)},f.lookAt=function(e,t,n,r){this.recalcMatrix(e),n=n||this.computedCenter,t=t||this.computedEye,r=r||this.computedUp;var i=this.computedMatrix;o(i,t,n,r);var a=this.computedRotation;s(a,i[0],i[1],i[2],i[4],i[5],i[6],i[8],i[9],i[10]),u(a,a),this.rotation.set(e,a[0],a[1],a[2],a[3]);for(var l=0,c=0;c<3;++c)l+=Math.pow(n[c]-t[c],2);this.radius.set(e,.5*Math.log(Math.max(l,1e-6))),this.center.set(e,n[0],n[1],n[2])},f.translate=function(e,t,n,r){this.center.move(e,t||0,n||0,r||0)},f.setMatrix=function(e,t){var n=this.computedRotation;s(n,t[0],t[1],t[2],t[4],t[5],t[6],t[8],t[9],t[10]),u(n,n),this.rotation.set(e,n[0],n[1],n[2],n[3]);var r=this.computedMatrix;a(r,t);var o=r[15];if(Math.abs(o)>1e-6){var i=r[12]/o,l=r[13]/o,c=r[14]/o;this.recalcMatrix(e);var d=Math.exp(this.computedRadius[0]);this.center.set(e,i-r[2]*d,l-r[6]*d,c-r[10]*d),this.radius.idle(e)}else this.center.idle(e),this.radius.idle(e)},f.setDistance=function(e,t){t>0&&this.radius.set(e,Math.log(t))},f.setDistanceLimits=function(e,t){e=e>0?Math.log(e):-1/0,t=t>0?Math.log(t):1/0,t=Math.max(t,e),this.radius.bounds[0][0]=e,this.radius.bounds[1][0]=t},f.getDistanceLimits=function(e){var t=this.radius.bounds;return e?(e[0]=Math.exp(t[0][0]),e[1]=Math.exp(t[1][0]),e):[Math.exp(t[0][0]),Math.exp(t[1][0])]},f.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]}},f.fromJSON=function(e){var t=this.lastT(),n=e.center;n&&this.center.set(t,n[0],n[1],n[2]);var r=e.rotation;r&&this.rotation.set(t,r[0],r[1],r[2],r[3]);var o=e.distance;o&&o>0&&this.radius.set(t,Math.log(o)),this.setDistanceLimits(e.zoomMin,e.zoomMax)}},1371:function(e,t,n){"use strict";
/*!
* pad-left <https://github.com/jonschlinkert/pad-left>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT license.
*/var r=n(3233);e.exports=function(e,t,n){return r(n=void 0!==n?n+"":" ",t)+e}},3202:function(e){e.exports=function(e,t){t||(t=[0,""]),e=String(e);var n=parseFloat(e,10);return t[0]=n,t[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}},3088:function(e,t,n){"use strict";e.exports=function(e,t){for(var n=0|t.length,o=e.length,i=[new Array(n),new Array(n)],a=0;a<n;++a)i[0][a]=[],i[1][a]=[];for(a=0;a<o;++a){var s=e[a];i[0][s[0]].push(s),i[1][s[1]].push(s)}var l=[];for(a=0;a<n;++a)i[0][a].length+i[1][a].length===0&&l.push([a]);function c(e,t){var n=i[t][e[t]];n.splice(n.indexOf(e),1)}function u(e,n,o){for(var a,s,l,u=0;u<2;++u)if(i[u][n].length>0){a=i[u][n][0],l=u;break}s=a[1^l];for(var d=0;d<2;++d)for(var f=i[d][n],h=0;h<f.length;++h){var p=f[h],m=p[1^d];r(t[e],t[n],t[s],t[m])>0&&(a=p,s=m,l=d)}return o||a&&c(a,l),s}function d(e,n){var o=i[n][e][0],a=[e];c(o,n);for(var s=o[1^n];;){for(;s!==e;)a.push(s),s=u(a[a.length-2],s,!1);if(i[0][e].length+i[1][e].length===0)break;var l=a[a.length-1],d=e,f=a[1],h=u(l,d,!0);if(r(t[l],t[d],t[f],t[h])<0)break;a.push(e),s=u(l,d)}return a}function f(e,t){return t[1]===t[t.length-1]}for(a=0;a<n;++a)for(var h=0;h<2;++h){for(var p=[];i[h][a].length>0;){i[0][a].length;var m=d(a,h);f(0,m)?p.push.apply(p,m):(p.length>0&&l.push(p),p=m)}p.length>0&&l.push(p)}return l};var r=n(3140)},5609:function(e,t,n){"use strict";e.exports=function(e,t){for(var n=r(e,t.length),o=new Array(t.length),i=new Array(t.length),a=[],s=0;s<t.length;++s){var l=n[s].length;i[s]=l,o[s]=!0,l<=1&&a.push(s)}for(;a.length>0;){var c=a.pop();o[c]=!1;var u=n[c];for(s=0;s<u.length;++s){var d=u[s];0==--i[d]&&a.push(d)}}var f=new Array(t.length),h=[];for(s=0;s<t.length;++s)if(o[s]){c=h.length;f[s]=c,h.push(t[s])}else f[s]=-1;var p=[];for(s=0;s<e.length;++s){var m=e[s];o[m[0]]&&o[m[1]]&&p.push([f[m[0]],f[m[1]]])}return[p,h]};var r=n(3134)},2095:function(e,t,n){"use strict";e.exports=function(e,t){var n=c(e,t);e=n[0];for(var d=(t=n[1]).length,f=(e.length,r(e,t.length)),h=0;h<d;++h)if(f[h].length%2==1)throw new Error("planar-graph-to-polyline: graph must be manifold");var p=o(e,t);var m=(p=p.filter((function(e){for(var n=e.length,r=[0],o=0;o<n;++o){var i=t[e[o]],l=t[e[(o+1)%n]],c=a(-i[0],i[1]),u=a(-i[0],l[1]),d=a(l[0],i[1]),f=a(l[0],l[1]);r=s(r,s(s(c,u),s(d,f)))}return r[r.length-1]>0}))).length,g=new Array(m),v=new Array(m);for(h=0;h<m;++h){g[h]=h;var y=new Array(m),b=p[h].map((function(e){return t[e]})),x=i([b]),_=0;e:for(var w=0;w<m;++w)if(y[w]=0,h!==w){for(var j=(V=p[w]).length,k=0;k<j;++k){var T=x(t[V[k]]);if(0!==T){T<0&&(y[w]=1,_+=1);continue e}}y[w]=1,_+=1}v[h]=[_,h,y]}v.sort((function(e,t){return t[0]-e[0]}));for(h=0;h<m;++h){var A=(y=v[h])[1],M=y[2];for(w=0;w<m;++w)M[w]&&(g[w]=A)}var S=function(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=[];return t}(m);for(h=0;h<m;++h)S[h].push(g[h]),S[g[h]].push(h);var C={},E=u(d,!1);for(h=0;h<m;++h)for(j=(V=p[h]).length,w=0;w<j;++w){var L=V[w],O=V[(w+1)%j],R=Math.min(L,O)+":"+Math.max(L,O);if(R in C){var I=C[R];S[I].push(h),S[h].push(I),E[L]=E[O]=!0}else C[R]=h}function P(e){for(var t=e.length,n=0;n<t;++n)if(!E[e[n]])return!1;return!0}var D=[],z=u(m,-1);for(h=0;h<m;++h)g[h]!==h||P(p[h])?z[h]=-1:(D.push(h),z[h]=0);n=[];for(;D.length>0;){var N=D.pop(),F=S[N];l(F,(function(e,t){return e-t}));var B,U=F.length,H=z[N];if(0===H){var V=p[N];B=[V]}for(h=0;h<U;++h){var G=F[h];if(!(z[G]>=0))if(z[G]=1^H,D.push(G),0===H)P(V=p[G])||(V.reverse(),B.push(V))}0===H&&n.push(B)}return n};var r=n(3134),o=n(3088),i=n(5085),a=n(5250),s=n(8210),l=n(1682),c=n(5609);function u(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=t;return n}},5085:function(e,t,n){e.exports=function(e){for(var t=e.length,n=[],i=[],s=0;s<t;++s)for(var u=e[s],d=u.length,f=d-1,h=0;h<d;f=h++){var p=u[f],m=u[h];p[0]===m[0]?i.push([p,m]):n.push([p,m])}if(0===n.length)return 0===i.length?c:(g=l(i),function(e){return g(e[0],e[1])?0:1});var g;var v=o(n),y=function(e,t){return function(n){var o=a.le(t,n[0]);if(o<0)return 1;var i=e[o];if(!i){if(!(o>0&&t[o]===n[0]))return 1;i=e[o-1]}for(var s=1;i;){var l=i.key,c=r(n,l[0],l[1]);if(l[0][0]<l[1][0])if(c<0)i=i.left;else{if(!(c>0))return 0;s=-1,i=i.right}else if(c>0)i=i.left;else{if(!(c<0))return 0;s=1,i=i.right}}return s}}(v.slabs,v.coordinates);return 0===i.length?y:function(e,t){return function(n){return e(n[0],n[1])?0:t(n)}}(l(i),y)};var r=n(3250)[3],o=n(4209),i=n(3352),a=n(2478);function s(){return!0}function l(e){for(var t={},n=0;n<e.length;++n){var r=e[n],o=r[0][0],a=r[0][1],l=r[1][1],c=[Math.min(a,l),Math.max(a,l)];o in t?t[o].push(c):t[o]=[c]}var u={},d=Object.keys(t);for(n=0;n<d.length;++n){var f=t[d[n]];u[d[n]]=i(f)}return function(e){return function(t,n){var r=e[t];return!!r&&!!r.queryPoint(n,s)}}(u)}function c(e){return 1}},9346:function(e){"use strict";var t=new Float64Array(4),n=new Float64Array(4),r=new Float64Array(4);e.exports=function(e,o,i,a,s){t.length<a.length&&(t=new Float64Array(a.length),n=new Float64Array(a.length),r=new Float64Array(a.length));for(var l=0;l<a.length;++l)t[l]=e[l]-a[l],n[l]=o[l]-e[l],r[l]=i[l]-e[l];var c=0,u=0,d=0,f=0,h=0,p=0;for(l=0;l<a.length;++l){var m=n[l],g=r[l],v=t[l];c+=m*m,u+=m*g,d+=g*g,f+=v*m,h+=v*g,p+=v*v}var y,b,x,_,w,j=Math.abs(c*d-u*u),k=u*h-d*f,T=u*f-c*h;if(k+T<=j)if(k<0)T<0&&f<0?(T=0,-f>=c?(k=1,y=c+2*f+p):y=f*(k=-f/c)+p):(k=0,h>=0?(T=0,y=p):-h>=d?(T=1,y=d+2*h+p):y=h*(T=-h/d)+p);else if(T<0)T=0,f>=0?(k=0,y=p):-f>=c?(k=1,y=c+2*f+p):y=f*(k=-f/c)+p;else{var A=1/j;y=(k*=A)*(c*k+u*(T*=A)+2*f)+T*(u*k+d*T+2*h)+p}else k<0?(x=d+h)>(b=u+f)?(_=x-b)>=(w=c-2*u+d)?(k=1,T=0,y=c+2*f+p):y=(k=_/w)*(c*k+u*(T=1-k)+2*f)+T*(u*k+d*T+2*h)+p:(k=0,x<=0?(T=1,y=d+2*h+p):h>=0?(T=0,y=p):y=h*(T=-h/d)+p):T<0?(x=c+f)>(b=u+h)?(_=x-b)>=(w=c-2*u+d)?(T=1,k=0,y=d+2*h+p):y=(k=1-(T=_/w))*(c*k+u*T+2*f)+T*(u*k+d*T+2*h)+p:(T=0,x<=0?(k=1,y=c+2*f+p):f>=0?(k=0,y=p):y=f*(k=-f/c)+p):(_=d+h-u-f)<=0?(k=0,T=1,y=d+2*h+p):_>=(w=c-2*u+d)?(k=1,T=0,y=c+2*f+p):y=(k=_/w)*(c*k+u*(T=1-k)+2*f)+T*(u*k+d*T+2*h)+p;var M=1-k-T;for(l=0;l<a.length;++l)s[l]=M*e[l]+k*o[l]+T*i[l];return y<0?0:y}},8648:function(e,t,n){e.exports=n(783)},2653:function(e,t,n){"use strict";var r=n(3865);e.exports=function(e,t){for(var n=e.length,o=new Array(n),i=0;i<n;++i)o[i]=r(e[i],t[i]);return o}},5838:function(e,t,n){"use strict";e.exports=function(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=r(e[n]);return t};var r=n(7842)},8987:function(e,t,n){"use strict";var r=n(7842),o=n(6504);e.exports=function(e,t){for(var n=r(t),i=e.length,a=new Array(i),s=0;s<i;++s)a[s]=o(e[s],n);return a}},544:function(e,t,n){"use strict";var r=n(5572);e.exports=function(e,t){for(var n=e.length,o=new Array(n),i=0;i<n;++i)o[i]=r(e[i],t[i]);return o}},5771:function(e,t,n){"use strict";var r=n(8507),o=n(3788),i=n(2419);e.exports=function(e){e.sort(o);for(var t=e.length,n=0,a=0;a<t;++a){var s=e[a],l=i(s);if(0!==l){if(n>0){var c=e[n-1];if(0===r(s,c)&&i(c)!==l){n-=1;continue}}e[n++]=s}}return e.length=n,e}},3233:function(e){"use strict";
/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var t,n="";e.exports=function(e,r){if("string"!=typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var o=e.length*r;if(t!==e||void 0===t)t=e,n="";else if(n.length>=o)return n.substr(0,o);for(;o>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,o)}},3025:function(e,t,n){e.exports=n.g.performance&&n.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(e){"use strict";e.exports=function(e){for(var t=e.length,n=e[e.length-1],r=t,o=t-2;o>=0;--o){var i=n,a=e[o];(l=a-((n=i+a)-i))&&(e[--r]=n,n=l)}var s=0;for(o=r;o<t;++o){var l;i=e[o];(l=(a=n)-((n=i+a)-i))&&(e[s++]=l)}return e[s++]=n,e.length=s,e}},2962:function(e,t,n){"use strict";var r=n(5250),o=n(8210),i=n(3012),a=n(7004);function s(e,t,n,r){return function(t){return r(e(n(t[0][0],t[1][1]),n(-t[0][1],t[1][0])))}}function l(e,t,n,r){return function(o){return r(e(t(e(n(o[1][1],o[2][2]),n(-o[1][2],o[2][1])),o[0][0]),e(t(e(n(o[1][0],o[2][2]),n(-o[1][2],o[2][0])),-o[0][1]),t(e(n(o[1][0],o[2][1]),n(-o[1][1],o[2][0])),o[0][2]))))}}function c(e,t,n,r){return function(o){return r(e(e(t(e(t(e(n(o[2][2],o[3][3]),n(-o[2][3],o[3][2])),o[1][1]),e(t(e(n(o[2][1],o[3][3]),n(-o[2][3],o[3][1])),-o[1][2]),t(e(n(o[2][1],o[3][2]),n(-o[2][2],o[3][1])),o[1][3]))),o[0][0]),t(e(t(e(n(o[2][2],o[3][3]),n(-o[2][3],o[3][2])),o[1][0]),e(t(e(n(o[2][0],o[3][3]),n(-o[2][3],o[3][0])),-o[1][2]),t(e(n(o[2][0],o[3][2]),n(-o[2][2],o[3][0])),o[1][3]))),-o[0][1])),e(t(e(t(e(n(o[2][1],o[3][3]),n(-o[2][3],o[3][1])),o[1][0]),e(t(e(n(o[2][0],o[3][3]),n(-o[2][3],o[3][0])),-o[1][1]),t(e(n(o[2][0],o[3][1]),n(-o[2][1],o[3][0])),o[1][3]))),o[0][2]),t(e(t(e(n(o[2][1],o[3][2]),n(-o[2][2],o[3][1])),o[1][0]),e(t(e(n(o[2][0],o[3][2]),n(-o[2][2],o[3][0])),-o[1][1]),t(e(n(o[2][0],o[3][1]),n(-o[2][1],o[3][0])),o[1][2]))),-o[0][3]))))}}function u(e,t,n,r){return function(o){return r(e(e(t(e(e(t(e(t(e(n(o[3][3],o[4][4]),n(-o[3][4],o[4][3])),o[2][2]),e(t(e(n(o[3][2],o[4][4]),n(-o[3][4],o[4][2])),-o[2][3]),t(e(n(o[3][2],o[4][3]),n(-o[3][3],o[4][2])),o[2][4]))),o[1][1]),t(e(t(e(n(o[3][3],o[4][4]),n(-o[3][4],o[4][3])),o[2][1]),e(t(e(n(o[3][1],o[4][4]),n(-o[3][4],o[4][1])),-o[2][3]),t(e(n(o[3][1],o[4][3]),n(-o[3][3],o[4][1])),o[2][4]))),-o[1][2])),e(t(e(t(e(n(o[3][2],o[4][4]),n(-o[3][4],o[4][2])),o[2][1]),e(t(e(n(o[3][1],o[4][4]),n(-o[3][4],o[4][1])),-o[2][2]),t(e(n(o[3][1],o[4][2]),n(-o[3][2],o[4][1])),o[2][4]))),o[1][3]),t(e(t(e(n(o[3][2],o[4][3]),n(-o[3][3],o[4][2])),o[2][1]),e(t(e(n(o[3][1],o[4][3]),n(-o[3][3],o[4][1])),-o[2][2]),t(e(n(o[3][1],o[4][2]),n(-o[3][2],o[4][1])),o[2][3]))),-o[1][4]))),o[0][0]),t(e(e(t(e(t(e(n(o[3][3],o[4][4]),n(-o[3][4],o[4][3])),o[2][2]),e(t(e(n(o[3][2],o[4][4]),n(-o[3][4],o[4][2])),-o[2][3]),t(e(n(o[3][2],o[4][3]),n(-o[3][3],o[4][2])),o[2][4]))),o[1][0]),t(e(t(e(n(o[3][3],o[4][4]),n(-o[3][4],o[4][3])),o[2][0]),e(t(e(n(o[3][0],o[4][4]),n(-o[3][4],o[4][0])),-o[2][3]),t(e(n(o[3][0],o[4][3]),n(-o[3][3],o[4][0])),o[2][4]))),-o[1][2])),e(t(e(t(e(n(o[3][2],o[4][4]),n(-o[3][4],o[4][2])),o[2][0]),e(t(e(n(o[3][0],o[4][4]),n(-o[3][4],o[4][0])),-o[2][2]),t(e(n(o[3][0],o[4][2]),n(-o[3][2],o[4][0])),o[2][4]))),o[1][3]),t(e(t(e(n(o[3][2],o[4][3]),n(-o[3][3],o[4][2])),o[2][0]),e(t(e(n(o[3][0],o[4][3]),n(-o[3][3],o[4][0])),-o[2][2]),t(e(n(o[3][0],o[4][2]),n(-o[3][2],o[4][0])),o[2][3]))),-o[1][4]))),-o[0][1])),e(t(e(e(t(e(t(e(n(o[3][3],o[4][4]),n(-o[3][4],o[4][3])),o[2][1]),e(t(e(n(o[3][1],o[4][4]),n(-o[3][4],o[4][1])),-o[2][3]),t(e(n(o[3][1],o[4][3]),n(-o[3][3],o[4][1])),o[2][4]))),o[1][0]),t(e(t(e(n(o[3][3],o[4][4]),n(-o[3][4],o[4][3])),o[2][0]),e(t(e(n(o[3][0],o[4][4]),n(-o[3][4],o[4][0])),-o[2][3]),t(e(n(o[3][0],o[4][3]),n(-o[3][3],o[4][0])),o[2][4]))),-o[1][1])),e(t(e(t(e(n(o[3][1],o[4][4]),n(-o[3][4],o[4][1])),o[2][0]),e(t(e(n(o[3][0],o[4][4]),n(-o[3][4],o[4][0])),-o[2][1]),t(e(n(o[3][0],o[4][1]),n(-o[3][1],o[4][0])),o[2][4]))),o[1][3]),t(e(t(e(n(o[3][1],o[4][3]),n(-o[3][3],o[4][1])),o[2][0]),e(t(e(n(o[3][0],o[4][3]),n(-o[3][3],o[4][0])),-o[2][1]),t(e(n(o[3][0],o[4][1]),n(-o[3][1],o[4][0])),o[2][3]))),-o[1][4]))),o[0][2]),e(t(e(e(t(e(t(e(n(o[3][2],o[4][4]),n(-o[3][4],o[4][2])),o[2][1]),e(t(e(n(o[3][1],o[4][4]),n(-o[3][4],o[4][1])),-o[2][2]),t(e(n(o[3][1],o[4][2]),n(-o[3][2],o[4][1])),o[2][4]))),o[1][0]),t(e(t(e(n(o[3][2],o[4][4]),n(-o[3][4],o[4][2])),o[2][0]),e(t(e(n(o[3][0],o[4][4]),n(-o[3][4],o[4][0])),-o[2][2]),t(e(n(o[3][0],o[4][2]),n(-o[3][2],o[4][0])),o[2][4]))),-o[1][1])),e(t(e(t(e(n(o[3][1],o[4][4]),n(-o[3][4],o[4][1])),o[2][0]),e(t(e(n(o[3][0],o[4][4]),n(-o[3][4],o[4][0])),-o[2][1]),t(e(n(o[3][0],o[4][1]),n(-o[3][1],o[4][0])),o[2][4]))),o[1][2]),t(e(t(e(n(o[3][1],o[4][2]),n(-o[3][2],o[4][1])),o[2][0]),e(t(e(n(o[3][0],o[4][2]),n(-o[3][2],o[4][0])),-o[2][1]),t(e(n(o[3][0],o[4][1]),n(-o[3][1],o[4][0])),o[2][2]))),-o[1][4]))),-o[0][3]),t(e(e(t(e(t(e(n(o[3][2],o[4][3]),n(-o[3][3],o[4][2])),o[2][1]),e(t(e(n(o[3][1],o[4][3]),n(-o[3][3],o[4][1])),-o[2][2]),t(e(n(o[3][1],o[4][2]),n(-o[3][2],o[4][1])),o[2][3]))),o[1][0]),t(e(t(e(n(o[3][2],o[4][3]),n(-o[3][3],o[4][2])),o[2][0]),e(t(e(n(o[3][0],o[4][3]),n(-o[3][3],o[4][0])),-o[2][2]),t(e(n(o[3][0],o[4][2]),n(-o[3][2],o[4][0])),o[2][3]))),-o[1][1])),e(t(e(t(e(n(o[3][1],o[4][3]),n(-o[3][3],o[4][1])),o[2][0]),e(t(e(n(o[3][0],o[4][3]),n(-o[3][3],o[4][0])),-o[2][1]),t(e(n(o[3][0],o[4][1]),n(-o[3][1],o[4][0])),o[2][3]))),o[1][2]),t(e(t(e(n(o[3][1],o[4][2]),n(-o[3][2],o[4][1])),o[2][0]),e(t(e(n(o[3][0],o[4][2]),n(-o[3][2],o[4][0])),-o[2][1]),t(e(n(o[3][0],o[4][1]),n(-o[3][1],o[4][0])),o[2][2]))),-o[1][3]))),o[0][4])))))}}function d(e){return(2===e?s:3===e?l:4===e?c:5===e?u:void 0)(o,i,r,a)}var f=[function(){return[0]},function(e){return[e[0][0]]}];function h(e,t,n,r,o,i,a,s){return function(l){switch(l.length){case 0:return e(l);case 1:return t(l);case 2:return n(l);case 3:return r(l);case 4:return o(l);case 5:return i(l)}var c=a[l.length];return c||(c=a[l.length]=s(l.length)),c(l)}}!function(){for(;f.length<6;)f.push(d(f.length));e.exports=h.apply(void 0,f.concat([f,d]));for(var t=0;t<f.length;++t)e.exports[t]=f[t]}()},1944:function(e,t,n){"use strict";var r=n(5250),o=n(8210);e.exports=function(e,t){for(var n=r(e[0],t[0]),i=1;i<e.length;++i)n=o(n,r(e[i],t[i]));return n}},2646:function(e,t,n){"use strict";var r=n(5250),o=n(8210),i=n(8545),a=n(3012);function s(e){return(3===e?l:4===e?c:5===e?u:d)(o,i,r,a)}function l(e,t,n,r){return function(o,i,a){var s=n(o[0],o[0]),l=r(s,i[0]),c=r(s,a[0]),u=n(i[0],i[0]),d=r(u,o[0]),f=r(u,a[0]),h=n(a[0],a[0]),p=r(h,o[0]),m=r(h,i[0]),g=e(t(m,f),t(d,l)),v=t(p,c),y=t(g,v);return y[y.length-1]}}function c(e,t,n,r){return function(o,i,a,s){var l=e(n(o[0],o[0]),n(o[1],o[1])),c=r(l,i[0]),u=r(l,a[0]),d=r(l,s[0]),f=e(n(i[0],i[0]),n(i[1],i[1])),h=r(f,o[0]),p=r(f,a[0]),m=r(f,s[0]),g=e(n(a[0],a[0]),n(a[1],a[1])),v=r(g,o[0]),y=r(g,i[0]),b=r(g,s[0]),x=e(n(s[0],s[0]),n(s[1],s[1])),_=r(x,o[0]),w=r(x,i[0]),j=r(x,a[0]),k=e(e(r(t(j,b),i[1]),e(r(t(w,m),-a[1]),r(t(y,p),s[1]))),e(r(t(w,m),o[1]),e(r(t(_,d),-i[1]),r(t(h,c),s[1])))),T=e(e(r(t(j,b),o[1]),e(r(t(_,d),-a[1]),r(t(v,u),s[1]))),e(r(t(y,p),o[1]),e(r(t(v,u),-i[1]),r(t(h,c),a[1])))),A=t(k,T);return A[A.length-1]}}function u(e,t,n,r){return function(o,i,a,s,l){var c=e(n(o[0],o[0]),e(n(o[1],o[1]),n(o[2],o[2]))),u=r(c,i[0]),d=r(c,a[0]),f=r(c,s[0]),h=r(c,l[0]),p=e(n(i[0],i[0]),e(n(i[1],i[1]),n(i[2],i[2]))),m=r(p,o[0]),g=r(p,a[0]),v=r(p,s[0]),y=r(p,l[0]),b=e(n(a[0],a[0]),e(n(a[1],a[1]),n(a[2],a[2]))),x=r(b,o[0]),_=r(b,i[0]),w=r(b,s[0]),j=r(b,l[0]),k=e(n(s[0],s[0]),e(n(s[1],s[1]),n(s[2],s[2]))),T=r(k,o[0]),A=r(k,i[0]),M=r(k,a[0]),S=r(k,l[0]),C=e(n(l[0],l[0]),e(n(l[1],l[1]),n(l[2],l[2]))),E=r(C,o[0]),L=r(C,i[0]),O=r(C,a[0]),R=r(C,s[0]),I=e(e(e(r(e(r(t(R,S),a[1]),e(r(t(O,j),-s[1]),r(t(M,w),l[1]))),i[2]),e(r(e(r(t(R,S),i[1]),e(r(t(L,y),-s[1]),r(t(A,v),l[1]))),-a[2]),r(e(r(t(O,j),i[1]),e(r(t(L,y),-a[1]),r(t(_,g),l[1]))),s[2]))),e(r(e(r(t(M,w),i[1]),e(r(t(A,v),-a[1]),r(t(_,g),s[1]))),-l[2]),e(r(e(r(t(R,S),i[1]),e(r(t(L,y),-s[1]),r(t(A,v),l[1]))),o[2]),r(e(r(t(R,S),o[1]),e(r(t(E,h),-s[1]),r(t(T,f),l[1]))),-i[2])))),e(e(r(e(r(t(L,y),o[1]),e(r(t(E,h),-i[1]),r(t(m,u),l[1]))),s[2]),e(r(e(r(t(A,v),o[1]),e(r(t(T,f),-i[1]),r(t(m,u),s[1]))),-l[2]),r(e(r(t(M,w),i[1]),e(r(t(A,v),-a[1]),r(t(_,g),s[1]))),o[2]))),e(r(e(r(t(M,w),o[1]),e(r(t(T,f),-a[1]),r(t(x,d),s[1]))),-i[2]),e(r(e(r(t(A,v),o[1]),e(r(t(T,f),-i[1]),r(t(m,u),s[1]))),a[2]),r(e(r(t(_,g),o[1]),e(r(t(x,d),-i[1]),r(t(m,u),a[1]))),-s[2]))))),P=e(e(e(r(e(r(t(R,S),a[1]),e(r(t(O,j),-s[1]),r(t(M,w),l[1]))),o[2]),r(e(r(t(R,S),o[1]),e(r(t(E,h),-s[1]),r(t(T,f),l[1]))),-a[2])),e(r(e(r(t(O,j),o[1]),e(r(t(E,h),-a[1]),r(t(x,d),l[1]))),s[2]),r(e(r(t(M,w),o[1]),e(r(t(T,f),-a[1]),r(t(x,d),s[1]))),-l[2]))),e(e(r(e(r(t(O,j),i[1]),e(r(t(L,y),-a[1]),r(t(_,g),l[1]))),o[2]),r(e(r(t(O,j),o[1]),e(r(t(E,h),-a[1]),r(t(x,d),l[1]))),-i[2])),e(r(e(r(t(L,y),o[1]),e(r(t(E,h),-i[1]),r(t(m,u),l[1]))),a[2]),r(e(r(t(_,g),o[1]),e(r(t(x,d),-i[1]),r(t(m,u),a[1]))),-l[2])))),D=t(I,P);return D[D.length-1]}}function d(e,t,n,r){return function(o,i,a,s,l,c){var u=e(e(n(o[0],o[0]),n(o[1],o[1])),e(n(o[2],o[2]),n(o[3],o[3]))),d=r(u,i[0]),f=r(u,a[0]),h=r(u,s[0]),p=r(u,l[0]),m=r(u,c[0]),g=e(e(n(i[0],i[0]),n(i[1],i[1])),e(n(i[2],i[2]),n(i[3],i[3]))),v=r(g,o[0]),y=r(g,a[0]),b=r(g,s[0]),x=r(g,l[0]),_=r(g,c[0]),w=e(e(n(a[0],a[0]),n(a[1],a[1])),e(n(a[2],a[2]),n(a[3],a[3]))),j=r(w,o[0]),k=r(w,i[0]),T=r(w,s[0]),A=r(w,l[0]),M=r(w,c[0]),S=e(e(n(s[0],s[0]),n(s[1],s[1])),e(n(s[2],s[2]),n(s[3],s[3]))),C=r(S,o[0]),E=r(S,i[0]),L=r(S,a[0]),O=r(S,l[0]),R=r(S,c[0]),I=e(e(n(l[0],l[0]),n(l[1],l[1])),e(n(l[2],l[2]),n(l[3],l[3]))),P=r(I,o[0]),D=r(I,i[0]),z=r(I,a[0]),N=r(I,s[0]),F=r(I,c[0]),B=e(e(n(c[0],c[0]),n(c[1],c[1])),e(n(c[2],c[2]),n(c[3],c[3]))),U=r(B,o[0]),H=r(B,i[0]),V=r(B,a[0]),G=r(B,s[0]),q=r(B,l[0]),W=e(e(e(r(e(e(r(e(r(t(q,F),s[1]),e(r(t(G,R),-l[1]),r(t(N,O),c[1]))),a[2]),r(e(r(t(q,F),a[1]),e(r(t(V,M),-l[1]),r(t(z,A),c[1]))),-s[2])),e(r(e(r(t(G,R),a[1]),e(r(t(V,M),-s[1]),r(t(L,T),c[1]))),l[2]),r(e(r(t(N,O),a[1]),e(r(t(z,A),-s[1]),r(t(L,T),l[1]))),-c[2]))),i[3]),e(r(e(e(r(e(r(t(q,F),s[1]),e(r(t(G,R),-l[1]),r(t(N,O),c[1]))),i[2]),r(e(r(t(q,F),i[1]),e(r(t(H,_),-l[1]),r(t(D,x),c[1]))),-s[2])),e(r(e(r(t(G,R),i[1]),e(r(t(H,_),-s[1]),r(t(E,b),c[1]))),l[2]),r(e(r(t(N,O),i[1]),e(r(t(D,x),-s[1]),r(t(E,b),l[1]))),-c[2]))),-a[3]),r(e(e(r(e(r(t(q,F),a[1]),e(r(t(V,M),-l[1]),r(t(z,A),c[1]))),i[2]),r(e(r(t(q,F),i[1]),e(r(t(H,_),-l[1]),r(t(D,x),c[1]))),-a[2])),e(r(e(r(t(V,M),i[1]),e(r(t(H,_),-a[1]),r(t(k,y),c[1]))),l[2]),r(e(r(t(z,A),i[1]),e(r(t(D,x),-a[1]),r(t(k,y),l[1]))),-c[2]))),s[3]))),e(e(r(e(e(r(e(r(t(G,R),a[1]),e(r(t(V,M),-s[1]),r(t(L,T),c[1]))),i[2]),r(e(r(t(G,R),i[1]),e(r(t(H,_),-s[1]),r(t(E,b),c[1]))),-a[2])),e(r(e(r(t(V,M),i[1]),e(r(t(H,_),-a[1]),r(t(k,y),c[1]))),s[2]),r(e(r(t(L,T),i[1]),e(r(t(E,b),-a[1]),r(t(k,y),s[1]))),-c[2]))),-l[3]),r(e(e(r(e(r(t(N,O),a[1]),e(r(t(z,A),-s[1]),r(t(L,T),l[1]))),i[2]),r(e(r(t(N,O),i[1]),e(r(t(D,x),-s[1]),r(t(E,b),l[1]))),-a[2])),e(r(e(r(t(z,A),i[1]),e(r(t(D,x),-a[1]),r(t(k,y),l[1]))),s[2]),r(e(r(t(L,T),i[1]),e(r(t(E,b),-a[1]),r(t(k,y),s[1]))),-l[2]))),c[3])),e(r(e(e(r(e(r(t(q,F),s[1]),e(r(t(G,R),-l[1]),r(t(N,O),c[1]))),i[2]),r(e(r(t(q,F),i[1]),e(r(t(H,_),-l[1]),r(t(D,x),c[1]))),-s[2])),e(r(e(r(t(G,R),i[1]),e(r(t(H,_),-s[1]),r(t(E,b),c[1]))),l[2]),r(e(r(t(N,O),i[1]),e(r(t(D,x),-s[1]),r(t(E,b),l[1]))),-c[2]))),o[3]),r(e(e(r(e(r(t(q,F),s[1]),e(r(t(G,R),-l[1]),r(t(N,O),c[1]))),o[2]),r(e(r(t(q,F),o[1]),e(r(t(U,m),-l[1]),r(t(P,p),c[1]))),-s[2])),e(r(e(r(t(G,R),o[1]),e(r(t(U,m),-s[1]),r(t(C,h),c[1]))),l[2]),r(e(r(t(N,O),o[1]),e(r(t(P,p),-s[1]),r(t(C,h),l[1]))),-c[2]))),-i[3])))),e(e(e(r(e(e(r(e(r(t(q,F),i[1]),e(r(t(H,_),-l[1]),r(t(D,x),c[1]))),o[2]),r(e(r(t(q,F),o[1]),e(r(t(U,m),-l[1]),r(t(P,p),c[1]))),-i[2])),e(r(e(r(t(H,_),o[1]),e(r(t(U,m),-i[1]),r(t(v,d),c[1]))),l[2]),r(e(r(t(D,x),o[1]),e(r(t(P,p),-i[1]),r(t(v,d),l[1]))),-c[2]))),s[3]),r(e(e(r(e(r(t(G,R),i[1]),e(r(t(H,_),-s[1]),r(t(E,b),c[1]))),o[2]),r(e(r(t(G,R),o[1]),e(r(t(U,m),-s[1]),r(t(C,h),c[1]))),-i[2])),e(r(e(r(t(H,_),o[1]),e(r(t(U,m),-i[1]),r(t(v,d),c[1]))),s[2]),r(e(r(t(E,b),o[1]),e(r(t(C,h),-i[1]),r(t(v,d),s[1]))),-c[2]))),-l[3])),e(r(e(e(r(e(r(t(N,O),i[1]),e(r(t(D,x),-s[1]),r(t(E,b),l[1]))),o[2]),r(e(r(t(N,O),o[1]),e(r(t(P,p),-s[1]),r(t(C,h),l[1]))),-i[2])),e(r(e(r(t(D,x),o[1]),e(r(t(P,p),-i[1]),r(t(v,d),l[1]))),s[2]),r(e(r(t(E,b),o[1]),e(r(t(C,h),-i[1]),r(t(v,d),s[1]))),-l[2]))),c[3]),r(e(e(r(e(r(t(G,R),a[1]),e(r(t(V,M),-s[1]),r(t(L,T),c[1]))),i[2]),r(e(r(t(G,R),i[1]),e(r(t(H,_),-s[1]),r(t(E,b),c[1]))),-a[2])),e(r(e(r(t(V,M),i[1]),e(r(t(H,_),-a[1]),r(t(k,y),c[1]))),s[2]),r(e(r(t(L,T),i[1]),e(r(t(E,b),-a[1]),r(t(k,y),s[1]))),-c[2]))),o[3]))),e(e(r(e(e(r(e(r(t(G,R),a[1]),e(r(t(V,M),-s[1]),r(t(L,T),c[1]))),o[2]),r(e(r(t(G,R),o[1]),e(r(t(U,m),-s[1]),r(t(C,h),c[1]))),-a[2])),e(r(e(r(t(V,M),o[1]),e(r(t(U,m),-a[1]),r(t(j,f),c[1]))),s[2]),r(e(r(t(L,T),o[1]),e(r(t(C,h),-a[1]),r(t(j,f),s[1]))),-c[2]))),-i[3]),r(e(e(r(e(r(t(G,R),i[1]),e(r(t(H,_),-s[1]),r(t(E,b),c[1]))),o[2]),r(e(r(t(G,R),o[1]),e(r(t(U,m),-s[1]),r(t(C,h),c[1]))),-i[2])),e(r(e(r(t(H,_),o[1]),e(r(t(U,m),-i[1]),r(t(v,d),c[1]))),s[2]),r(e(r(t(E,b),o[1]),e(r(t(C,h),-i[1]),r(t(v,d),s[1]))),-c[2]))),a[3])),e(r(e(e(r(e(r(t(V,M),i[1]),e(r(t(H,_),-a[1]),r(t(k,y),c[1]))),o[2]),r(e(r(t(V,M),o[1]),e(r(t(U,m),-a[1]),r(t(j,f),c[1]))),-i[2])),e(r(e(r(t(H,_),o[1]),e(r(t(U,m),-i[1]),r(t(v,d),c[1]))),a[2]),r(e(r(t(k,y),o[1]),e(r(t(j,f),-i[1]),r(t(v,d),a[1]))),-c[2]))),-s[3]),r(e(e(r(e(r(t(L,T),i[1]),e(r(t(E,b),-a[1]),r(t(k,y),s[1]))),o[2]),r(e(r(t(L,T),o[1]),e(r(t(C,h),-a[1]),r(t(j,f),s[1]))),-i[2])),e(r(e(r(t(E,b),o[1]),e(r(t(C,h),-i[1]),r(t(v,d),s[1]))),a[2]),r(e(r(t(k,y),o[1]),e(r(t(j,f),-i[1]),r(t(v,d),a[1]))),-s[2]))),c[3]))))),Y=e(e(e(r(e(e(r(e(r(t(q,F),s[1]),e(r(t(G,R),-l[1]),r(t(N,O),c[1]))),a[2]),r(e(r(t(q,F),a[1]),e(r(t(V,M),-l[1]),r(t(z,A),c[1]))),-s[2])),e(r(e(r(t(G,R),a[1]),e(r(t(V,M),-s[1]),r(t(L,T),c[1]))),l[2]),r(e(r(t(N,O),a[1]),e(r(t(z,A),-s[1]),r(t(L,T),l[1]))),-c[2]))),o[3]),e(r(e(e(r(e(r(t(q,F),s[1]),e(r(t(G,R),-l[1]),r(t(N,O),c[1]))),o[2]),r(e(r(t(q,F),o[1]),e(r(t(U,m),-l[1]),r(t(P,p),c[1]))),-s[2])),e(r(e(r(t(G,R),o[1]),e(r(t(U,m),-s[1]),r(t(C,h),c[1]))),l[2]),r(e(r(t(N,O),o[1]),e(r(t(P,p),-s[1]),r(t(C,h),l[1]))),-c[2]))),-a[3]),r(e(e(r(e(r(t(q,F),a[1]),e(r(t(V,M),-l[1]),r(t(z,A),c[1]))),o[2]),r(e(r(t(q,F),o[1]),e(r(t(U,m),-l[1]),r(t(P,p),c[1]))),-a[2])),e(r(e(r(t(V,M),o[1]),e(r(t(U,m),-a[1]),r(t(j,f),c[1]))),l[2]),r(e(r(t(z,A),o[1]),e(r(t(P,p),-a[1]),r(t(j,f),l[1]))),-c[2]))),s[3]))),e(e(r(e(e(r(e(r(t(G,R),a[1]),e(r(t(V,M),-s[1]),r(t(L,T),c[1]))),o[2]),r(e(r(t(G,R),o[1]),e(r(t(U,m),-s[1]),r(t(C,h),c[1]))),-a[2])),e(r(e(r(t(V,M),o[1]),e(r(t(U,m),-a[1]),r(t(j,f),c[1]))),s[2]),r(e(r(t(L,T),o[1]),e(r(t(C,h),-a[1]),r(t(j,f),s[1]))),-c[2]))),-l[3]),r(e(e(r(e(r(t(N,O),a[1]),e(r(t(z,A),-s[1]),r(t(L,T),l[1]))),o[2]),r(e(r(t(N,O),o[1]),e(r(t(P,p),-s[1]),r(t(C,h),l[1]))),-a[2])),e(r(e(r(t(z,A),o[1]),e(r(t(P,p),-a[1]),r(t(j,f),l[1]))),s[2]),r(e(r(t(L,T),o[1]),e(r(t(C,h),-a[1]),r(t(j,f),s[1]))),-l[2]))),c[3])),e(r(e(e(r(e(r(t(q,F),a[1]),e(r(t(V,M),-l[1]),r(t(z,A),c[1]))),i[2]),r(e(r(t(q,F),i[1]),e(r(t(H,_),-l[1]),r(t(D,x),c[1]))),-a[2])),e(r(e(r(t(V,M),i[1]),e(r(t(H,_),-a[1]),r(t(k,y),c[1]))),l[2]),r(e(r(t(z,A),i[1]),e(r(t(D,x),-a[1]),r(t(k,y),l[1]))),-c[2]))),o[3]),r(e(e(r(e(r(t(q,F),a[1]),e(r(t(V,M),-l[1]),r(t(z,A),c[1]))),o[2]),r(e(r(t(q,F),o[1]),e(r(t(U,m),-l[1]),r(t(P,p),c[1]))),-a[2])),e(r(e(r(t(V,M),o[1]),e(r(t(U,m),-a[1]),r(t(j,f),c[1]))),l[2]),r(e(r(t(z,A),o[1]),e(r(t(P,p),-a[1]),r(t(j,f),l[1]))),-c[2]))),-i[3])))),e(e(e(r(e(e(r(e(r(t(q,F),i[1]),e(r(t(H,_),-l[1]),r(t(D,x),c[1]))),o[2]),r(e(r(t(q,F),o[1]),e(r(t(U,m),-l[1]),r(t(P,p),c[1]))),-i[2])),e(r(e(r(t(H,_),o[1]),e(r(t(U,m),-i[1]),r(t(v,d),c[1]))),l[2]),r(e(r(t(D,x),o[1]),e(r(t(P,p),-i[1]),r(t(v,d),l[1]))),-c[2]))),a[3]),r(e(e(r(e(r(t(V,M),i[1]),e(r(t(H,_),-a[1]),r(t(k,y),c[1]))),o[2]),r(e(r(t(V,M),o[1]),e(r(t(U,m),-a[1]),r(t(j,f),c[1]))),-i[2])),e(r(e(r(t(H,_),o[1]),e(r(t(U,m),-i[1]),r(t(v,d),c[1]))),a[2]),r(e(r(t(k,y),o[1]),e(r(t(j,f),-i[1]),r(t(v,d),a[1]))),-c[2]))),-l[3])),e(r(e(e(r(e(r(t(z,A),i[1]),e(r(t(D,x),-a[1]),r(t(k,y),l[1]))),o[2]),r(e(r(t(z,A),o[1]),e(r(t(P,p),-a[1]),r(t(j,f),l[1]))),-i[2])),e(r(e(r(t(D,x),o[1]),e(r(t(P,p),-i[1]),r(t(v,d),l[1]))),a[2]),r(e(r(t(k,y),o[1]),e(r(t(j,f),-i[1]),r(t(v,d),a[1]))),-l[2]))),c[3]),r(e(e(r(e(r(t(N,O),a[1]),e(r(t(z,A),-s[1]),r(t(L,T),l[1]))),i[2]),r(e(r(t(N,O),i[1]),e(r(t(D,x),-s[1]),r(t(E,b),l[1]))),-a[2])),e(r(e(r(t(z,A),i[1]),e(r(t(D,x),-a[1]),r(t(k,y),l[1]))),s[2]),r(e(r(t(L,T),i[1]),e(r(t(E,b),-a[1]),r(t(k,y),s[1]))),-l[2]))),o[3]))),e(e(r(e(e(r(e(r(t(N,O),a[1]),e(r(t(z,A),-s[1]),r(t(L,T),l[1]))),o[2]),r(e(r(t(N,O),o[1]),e(r(t(P,p),-s[1]),r(t(C,h),l[1]))),-a[2])),e(r(e(r(t(z,A),o[1]),e(r(t(P,p),-a[1]),r(t(j,f),l[1]))),s[2]),r(e(r(t(L,T),o[1]),e(r(t(C,h),-a[1]),r(t(j,f),s[1]))),-l[2]))),-i[3]),r(e(e(r(e(r(t(N,O),i[1]),e(r(t(D,x),-s[1]),r(t(E,b),l[1]))),o[2]),r(e(r(t(N,O),o[1]),e(r(t(P,p),-s[1]),r(t(C,h),l[1]))),-i[2])),e(r(e(r(t(D,x),o[1]),e(r(t(P,p),-i[1]),r(t(v,d),l[1]))),s[2]),r(e(r(t(E,b),o[1]),e(r(t(C,h),-i[1]),r(t(v,d),s[1]))),-l[2]))),a[3])),e(r(e(e(r(e(r(t(z,A),i[1]),e(r(t(D,x),-a[1]),r(t(k,y),l[1]))),o[2]),r(e(r(t(z,A),o[1]),e(r(t(P,p),-a[1]),r(t(j,f),l[1]))),-i[2])),e(r(e(r(t(D,x),o[1]),e(r(t(P,p),-i[1]),r(t(v,d),l[1]))),a[2]),r(e(r(t(k,y),o[1]),e(r(t(j,f),-i[1]),r(t(v,d),a[1]))),-l[2]))),-s[3]),r(e(e(r(e(r(t(L,T),i[1]),e(r(t(E,b),-a[1]),r(t(k,y),s[1]))),o[2]),r(e(r(t(L,T),o[1]),e(r(t(C,h),-a[1]),r(t(j,f),s[1]))),-i[2])),e(r(e(r(t(E,b),o[1]),e(r(t(C,h),-i[1]),r(t(v,d),s[1]))),a[2]),r(e(r(t(k,y),o[1]),e(r(t(j,f),-i[1]),r(t(v,d),a[1]))),-s[2]))),l[3]))))),X=t(W,Y);return X[X.length-1]}}var f=[function(){return 0},function(){return 0},function(){return 0}];function h(e){var t=f[e.length];return t||(t=f[e.length]=s(e.length)),t.apply(void 0,e)}function p(e,t,n,r,o,i,a,s){return function(t,n,l,c,u,d){switch(arguments.length){case 0:case 1:return 0;case 2:return r(t,n);case 3:return o(t,n,l);case 4:return i(t,n,l,c);case 5:return a(t,n,l,c,u);case 6:return s(t,n,l,c,u,d)}for(var f=new Array(arguments.length),h=0;h<arguments.length;++h)f[h]=arguments[h];return e(f)}}!function(){for(;f.length<=6;)f.push(s(f.length));e.exports=p.apply(void 0,[h].concat(f));for(var t=0;t<=6;++t)e.exports[t]=f[t]}()},727:function(e,t,n){"use strict";var r=n(2962);function o(e){var t=2===e?i:3===e?a:4===e?s:5===e?l:c;return t(e<6?r[e]:r)}function i(e){return function(t,n){return[e([[+n[0],+t[0][1]],[+n[1],+t[1][1]]]),e([[+t[0][0],+n[0]],[+t[1][0],+n[1]]]),e(t)]}}function a(e){return function(t,n){return[e([[+n[0],+t[0][1],+t[0][2]],[+n[1],+t[1][1],+t[1][2]],[+n[2],+t[2][1],+t[2][2]]]),e([[+t[0][0],+n[0],+t[0][2]],[+t[1][0],+n[1],+t[1][2]],[+t[2][0],+n[2],+t[2][2]]]),e([[+t[0][0],+t[0][1],+n[0]],[+t[1][0],+t[1][1],+n[1]],[+t[2][0],+t[2][1],+n[2]]]),e(t)]}}function s(e){return function(t,n){return[e([[+n[0],+t[0][1],+t[0][2],+t[0][3]],[+n[1],+t[1][1],+t[1][2],+t[1][3]],[+n[2],+t[2][1],+t[2][2],+t[2][3]],[+n[3],+t[3][1],+t[3][2],+t[3][3]]]),e([[+t[0][0],+n[0],+t[0][2],+t[0][3]],[+t[1][0],+n[1],+t[1][2],+t[1][3]],[+t[2][0],+n[2],+t[2][2],+t[2][3]],[+t[3][0],+n[3],+t[3][2],+t[3][3]]]),e([[+t[0][0],+t[0][1],+n[0],+t[0][3]],[+t[1][0],+t[1][1],+n[1],+t[1][3]],[+t[2][0],+t[2][1],+n[2],+t[2][3]],[+t[3][0],+t[3][1],+n[3],+t[3][3]]]),e([[+t[0][0],+t[0][1],+t[0][2],+n[0]],[+t[1][0],+t[1][1],+t[1][2],+n[1]],[+t[2][0],+t[2][1],+t[2][2],+n[2]],[+t[3][0],+t[3][1],+t[3][2],+n[3]]]),e(t)]}}function l(e){return function(t,n){return[e([[+n[0],+t[0][1],+t[0][2],+t[0][3],+t[0][4]],[+n[1],+t[1][1],+t[1][2],+t[1][3],+t[1][4]],[+n[2],+t[2][1],+t[2][2],+t[2][3],+t[2][4]],[+n[3],+t[3][1],+t[3][2],+t[3][3],+t[3][4]],[+n[4],+t[4][1],+t[4][2],+t[4][3],+t[4][4]]]),e([[+t[0][0],+n[0],+t[0][2],+t[0][3],+t[0][4]],[+t[1][0],+n[1],+t[1][2],+t[1][3],+t[1][4]],[+t[2][0],+n[2],+t[2][2],+t[2][3],+t[2][4]],[+t[3][0],+n[3],+t[3][2],+t[3][3],+t[3][4]],[+t[4][0],+n[4],+t[4][2],+t[4][3],+t[4][4]]]),e([[+t[0][0],+t[0][1],+n[0],+t[0][3],+t[0][4]],[+t[1][0],+t[1][1],+n[1],+t[1][3],+t[1][4]],[+t[2][0],+t[2][1],+n[2],+t[2][3],+t[2][4]],[+t[3][0],+t[3][1],+n[3],+t[3][3],+t[3][4]],[+t[4][0],+t[4][1],+n[4],+t[4][3],+t[4][4]]]),e([[+t[0][0],+t[0][1],+t[0][2],+n[0],+t[0][4]],[+t[1][0],+t[1][1],+t[1][2],+n[1],+t[1][4]],[+t[2][0],+t[2][1],+t[2][2],+n[2],+t[2][4]],[+t[3][0],+t[3][1],+t[3][2],+n[3],+t[3][4]],[+t[4][0],+t[4][1],+t[4][2],+n[4],+t[4][4]]]),e([[+t[0][0],+t[0][1],+t[0][2],+t[0][3],+n[0]],[+t[1][0],+t[1][1],+t[1][2],+t[1][3],+n[1]],[+t[2][0],+t[2][1],+t[2][2],+t[2][3],+n[2]],[+t[3][0],+t[3][1],+t[3][2],+t[3][3],+n[3]],[+t[4][0],+t[4][1],+t[4][2],+t[4][3],+n[4]]]),e(t)]}}function c(e){return function(t,n){return[e([[+n[0],+t[0][1],+t[0][2],+t[0][3],+t[0][4],+t[0][5]],[+n[1],+t[1][1],+t[1][2],+t[1][3],+t[1][4],+t[1][5]],[+n[2],+t[2][1],+t[2][2],+t[2][3],+t[2][4],+t[2][5]],[+n[3],+t[3][1],+t[3][2],+t[3][3],+t[3][4],+t[3][5]],[+n[4],+t[4][1],+t[4][2],+t[4][3],+t[4][4],+t[4][5]],[+n[5],+t[5][1],+t[5][2],+t[5][3],+t[5][4],+t[5][5]]]),e([[+t[0][0],+n[0],+t[0][2],+t[0][3],+t[0][4],+t[0][5]],[+t[1][0],+n[1],+t[1][2],+t[1][3],+t[1][4],+t[1][5]],[+t[2][0],+n[2],+t[2][2],+t[2][3],+t[2][4],+t[2][5]],[+t[3][0],+n[3],+t[3][2],+t[3][3],+t[3][4],+t[3][5]],[+t[4][0],+n[4],+t[4][2],+t[4][3],+t[4][4],+t[4][5]],[+t[5][0],+n[5],+t[5][2],+t[5][3],+t[5][4],+t[5][5]]]),e([[+t[0][0],+t[0][1],+n[0],+t[0][3],+t[0][4],+t[0][5]],[+t[1][0],+t[1][1],+n[1],+t[1][3],+t[1][4],+t[1][5]],[+t[2][0],+t[2][1],+n[2],+t[2][3],+t[2][4],+t[2][5]],[+t[3][0],+t[3][1],+n[3],+t[3][3],+t[3][4],+t[3][5]],[+t[4][0],+t[4][1],+n[4],+t[4][3],+t[4][4],+t[4][5]],[+t[5][0],+t[5][1],+n[5],+t[5][3],+t[5][4],+t[5][5]]]),e([[+t[0][0],+t[0][1],+t[0][2],+n[0],+t[0][4],+t[0][5]],[+t[1][0],+t[1][1],+t[1][2],+n[1],+t[1][4],+t[1][5]],[+t[2][0],+t[2][1],+t[2][2],+n[2],+t[2][4],+t[2][5]],[+t[3][0],+t[3][1],+t[3][2],+n[3],+t[3][4],+t[3][5]],[+t[4][0],+t[4][1],+t[4][2],+n[4],+t[4][4],+t[4][5]],[+t[5][0],+t[5][1],+t[5][2],+n[5],+t[5][4],+t[5][5]]]),e([[+t[0][0],+t[0][1],+t[0][2],+t[0][3],+n[0],+t[0][5]],[+t[1][0],+t[1][1],+t[1][2],+t[1][3],+n[1],+t[1][5]],[+t[2][0],+t[2][1],+t[2][2],+t[2][3],+n[2],+t[2][5]],[+t[3][0],+t[3][1],+t[3][2],+t[3][3],+n[3],+t[3][5]],[+t[4][0],+t[4][1],+t[4][2],+t[4][3],+n[4],+t[4][5]],[+t[5][0],+t[5][1],+t[5][2],+t[5][3],+n[5],+t[5][5]]]),e([[+t[0][0],+t[0][1],+t[0][2],+t[0][3],+t[0][4],+n[0]],[+t[1][0],+t[1][1],+t[1][2],+t[1][3],+t[1][4],+n[1]],[+t[2][0],+t[2][1],+t[2][2],+t[2][3],+t[2][4],+n[2]],[+t[3][0],+t[3][1],+t[3][2],+t[3][3],+t[3][4],+n[3]],[+t[4][0],+t[4][1],+t[4][2],+t[4][3],+t[4][4],+n[4]],[+t[5][0],+t[5][1],+t[5][2],+t[5][3],+t[5][4],+n[5]]]),e(t)]}}var u=[function(){return[[0]]},function(e,t){return[[t[0]],[e[0][0]]]}];function d(e,t,n,r,o,i,a,s){return function(l,c){switch(l.length){case 0:return e(l,c);case 1:return t(l,c);case 2:return n(l,c);case 3:return r(l,c);case 4:return o(l,c);case 5:return i(l,c)}var u=a[l.length];return u||(u=a[l.length]=s(l.length)),u(l,c)}}!function(){for(;u.length<6;)u.push(o(u.length));e.exports=d.apply(void 0,u.concat([u,o]));for(var t=0;t<6;++t)e.exports[t]=u[t]}()},3250:function(e,t,n){"use strict";var r=n(5250),o=n(8210),i=n(3012),a=n(8545);function s(e,t,n,r){return function(n,o,i){var a=e(e(t(o[1],i[0]),t(-i[1],o[0])),e(t(n[1],o[0]),t(-o[1],n[0]))),s=e(t(n[1],i[0]),t(-i[1],n[0])),l=r(a,s);return l[l.length-1]}}function l(e,t,n,r){return function(o,i,a,s){var l=e(e(n(e(t(a[1],s[0]),t(-s[1],a[0])),i[2]),e(n(e(t(i[1],s[0]),t(-s[1],i[0])),-a[2]),n(e(t(i[1],a[0]),t(-a[1],i[0])),s[2]))),e(n(e(t(i[1],s[0]),t(-s[1],i[0])),o[2]),e(n(e(t(o[1],s[0]),t(-s[1],o[0])),-i[2]),n(e(t(o[1],i[0]),t(-i[1],o[0])),s[2])))),c=e(e(n(e(t(a[1],s[0]),t(-s[1],a[0])),o[2]),e(n(e(t(o[1],s[0]),t(-s[1],o[0])),-a[2]),n(e(t(o[1],a[0]),t(-a[1],o[0])),s[2]))),e(n(e(t(i[1],a[0]),t(-a[1],i[0])),o[2]),e(n(e(t(o[1],a[0]),t(-a[1],o[0])),-i[2]),n(e(t(o[1],i[0]),t(-i[1],o[0])),a[2])))),u=r(l,c);return u[u.length-1]}}function c(e,t,n,r){return function(o,i,a,s,l){var c=e(e(e(n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),a[2]),e(n(e(t(a[1],l[0]),t(-l[1],a[0])),-s[2]),n(e(t(a[1],s[0]),t(-s[1],a[0])),l[2]))),i[3]),e(n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),i[2]),e(n(e(t(i[1],l[0]),t(-l[1],i[0])),-s[2]),n(e(t(i[1],s[0]),t(-s[1],i[0])),l[2]))),-a[3]),n(e(n(e(t(a[1],l[0]),t(-l[1],a[0])),i[2]),e(n(e(t(i[1],l[0]),t(-l[1],i[0])),-a[2]),n(e(t(i[1],a[0]),t(-a[1],i[0])),l[2]))),s[3]))),e(n(e(n(e(t(a[1],s[0]),t(-s[1],a[0])),i[2]),e(n(e(t(i[1],s[0]),t(-s[1],i[0])),-a[2]),n(e(t(i[1],a[0]),t(-a[1],i[0])),s[2]))),-l[3]),e(n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),i[2]),e(n(e(t(i[1],l[0]),t(-l[1],i[0])),-s[2]),n(e(t(i[1],s[0]),t(-s[1],i[0])),l[2]))),o[3]),n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),l[2]))),-i[3])))),e(e(n(e(n(e(t(i[1],l[0]),t(-l[1],i[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-i[2]),n(e(t(o[1],i[0]),t(-i[1],o[0])),l[2]))),s[3]),e(n(e(n(e(t(i[1],s[0]),t(-s[1],i[0])),o[2]),e(n(e(t(o[1],s[0]),t(-s[1],o[0])),-i[2]),n(e(t(o[1],i[0]),t(-i[1],o[0])),s[2]))),-l[3]),n(e(n(e(t(a[1],s[0]),t(-s[1],a[0])),i[2]),e(n(e(t(i[1],s[0]),t(-s[1],i[0])),-a[2]),n(e(t(i[1],a[0]),t(-a[1],i[0])),s[2]))),o[3]))),e(n(e(n(e(t(a[1],s[0]),t(-s[1],a[0])),o[2]),e(n(e(t(o[1],s[0]),t(-s[1],o[0])),-a[2]),n(e(t(o[1],a[0]),t(-a[1],o[0])),s[2]))),-i[3]),e(n(e(n(e(t(i[1],s[0]),t(-s[1],i[0])),o[2]),e(n(e(t(o[1],s[0]),t(-s[1],o[0])),-i[2]),n(e(t(o[1],i[0]),t(-i[1],o[0])),s[2]))),a[3]),n(e(n(e(t(i[1],a[0]),t(-a[1],i[0])),o[2]),e(n(e(t(o[1],a[0]),t(-a[1],o[0])),-i[2]),n(e(t(o[1],i[0]),t(-i[1],o[0])),a[2]))),-s[3]))))),u=e(e(e(n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),a[2]),e(n(e(t(a[1],l[0]),t(-l[1],a[0])),-s[2]),n(e(t(a[1],s[0]),t(-s[1],a[0])),l[2]))),o[3]),n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),l[2]))),-a[3])),e(n(e(n(e(t(a[1],l[0]),t(-l[1],a[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-a[2]),n(e(t(o[1],a[0]),t(-a[1],o[0])),l[2]))),s[3]),n(e(n(e(t(a[1],s[0]),t(-s[1],a[0])),o[2]),e(n(e(t(o[1],s[0]),t(-s[1],o[0])),-a[2]),n(e(t(o[1],a[0]),t(-a[1],o[0])),s[2]))),-l[3]))),e(e(n(e(n(e(t(a[1],l[0]),t(-l[1],a[0])),i[2]),e(n(e(t(i[1],l[0]),t(-l[1],i[0])),-a[2]),n(e(t(i[1],a[0]),t(-a[1],i[0])),l[2]))),o[3]),n(e(n(e(t(a[1],l[0]),t(-l[1],a[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-a[2]),n(e(t(o[1],a[0]),t(-a[1],o[0])),l[2]))),-i[3])),e(n(e(n(e(t(i[1],l[0]),t(-l[1],i[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-i[2]),n(e(t(o[1],i[0]),t(-i[1],o[0])),l[2]))),a[3]),n(e(n(e(t(i[1],a[0]),t(-a[1],i[0])),o[2]),e(n(e(t(o[1],a[0]),t(-a[1],o[0])),-i[2]),n(e(t(o[1],i[0]),t(-i[1],o[0])),a[2]))),-l[3])))),d=r(c,u);return d[d.length-1]}}function u(e){return(3===e?s:4===e?l:c)(o,r,i,a)}var d=u(3),f=u(4),h=[function(){return 0},function(){return 0},function(e,t){return t[0]-e[0]},function(e,t,n){var r,o=(e[1]-n[1])*(t[0]-n[0]),i=(e[0]-n[0])*(t[1]-n[1]),a=o-i;if(o>0){if(i<=0)return a;r=o+i}else{if(!(o<0))return a;if(i>=0)return a;r=-(o+i)}var s=33306690738754716e-32*r;return a>=s||a<=-s?a:d(e,t,n)},function(e,t,n,r){var o=e[0]-r[0],i=t[0]-r[0],a=n[0]-r[0],s=e[1]-r[1],l=t[1]-r[1],c=n[1]-r[1],u=e[2]-r[2],d=t[2]-r[2],h=n[2]-r[2],p=i*c,m=a*l,g=a*s,v=o*c,y=o*l,b=i*s,x=u*(p-m)+d*(g-v)+h*(y-b),_=7771561172376103e-31*((Math.abs(p)+Math.abs(m))*Math.abs(u)+(Math.abs(g)+Math.abs(v))*Math.abs(d)+(Math.abs(y)+Math.abs(b))*Math.abs(h));return x>_||-x>_?x:f(e,t,n,r)}];function p(e){var t=h[e.length];return t||(t=h[e.length]=u(e.length)),t.apply(void 0,e)}function m(e,t,n,r,o,i,a){return function(t,n,s,l,c){switch(arguments.length){case 0:case 1:return 0;case 2:return r(t,n);case 3:return o(t,n,s);case 4:return i(t,n,s,l);case 5:return a(t,n,s,l,c)}for(var u=new Array(arguments.length),d=0;d<arguments.length;++d)u[d]=arguments[d];return e(u)}}!function(){for(;h.length<=5;)h.push(u(h.length));e.exports=m.apply(void 0,[p].concat(h));for(var t=0;t<=5;++t)e.exports[t]=h[t]}()},5382:function(e,t,n){"use strict";var r=n(8210),o=n(3012);e.exports=function(e,t){if(1===e.length)return o(t,e[0]);if(1===t.length)return o(e,t[0]);if(0===e.length||0===t.length)return[0];var n=[0];if(e.length<t.length)for(var i=0;i<e.length;++i)n=r(n,o(t,e[i]));else for(i=0;i<t.length;++i)n=r(n,o(e,t[i]));return n}},3012:function(e,t,n){"use strict";var r=n(5250),o=n(9362);e.exports=function(e,t){var n=e.length;if(1===n){var i=r(e[0],t);return i[0]?i:[i[1]]}var a=new Array(2*n),s=[.1,.1],l=[.1,.1],c=0;r(e[0],t,s),s[0]&&(a[c++]=s[0]);for(var u=1;u<n;++u){r(e[u],t,l);var d=s[1];o(d,l[0],s),s[0]&&(a[c++]=s[0]);var f=l[1],h=s[1],p=f+h,m=h-(p-f);s[1]=p,m&&(a[c++]=m)}s[1]&&(a[c++]=s[1]);0===c&&(a[c++]=0);return a.length=c,a}},1125:function(e,t,n){"use strict";e.exports=function(e,t,n,o){var i=r(e,n,o),a=r(t,n,o);if(i>0&&a>0||i<0&&a<0)return!1;var s=r(n,e,t),l=r(o,e,t);if(s>0&&l>0||s<0&&l<0)return!1;if(0===i&&0===a&&0===s&&0===l)return function(e,t,n,r){for(var o=0;o<2;++o){var i=e[o],a=t[o],s=Math.min(i,a),l=Math.max(i,a),c=n[o],u=r[o],d=Math.min(c,u);if(Math.max(c,u)<s||l<d)return!1}return!0}(e,t,n,o);return!0};var r=n(3250)[3]},8545:function(e){"use strict";e.exports=function(e,t){var n=0|e.length,r=0|t.length;if(1===n&&1===r)return function(e,t){var n=e+t,r=n-e,o=e-(n-r)+(t-r);if(o)return[o,n];return[n]}(e[0],-t[0]);var o,i,a=new Array(n+r),s=0,l=0,c=0,u=Math.abs,d=e[l],f=u(d),h=-t[c],p=u(h);f<p?(i=d,(l+=1)<n&&(d=e[l],f=u(d))):(i=h,(c+=1)<r&&(h=-t[c],p=u(h)));l<n&&f<p||c>=r?(o=d,(l+=1)<n&&(d=e[l],f=u(d))):(o=h,(c+=1)<r&&(h=-t[c],p=u(h)));var m,g,v=o+i,y=v-o,b=i-y,x=b,_=v;for(;l<n&&c<r;)f<p?(o=d,(l+=1)<n&&(d=e[l],f=u(d))):(o=h,(c+=1)<r&&(h=-t[c],p=u(h))),(b=(i=x)-(y=(v=o+i)-o))&&(a[s++]=b),x=_-((m=_+v)-(g=m-_))+(v-g),_=m;for(;l<n;)(b=(i=x)-(y=(v=(o=d)+i)-o))&&(a[s++]=b),x=_-((m=_+v)-(g=m-_))+(v-g),_=m,(l+=1)<n&&(d=e[l]);for(;c<r;)(b=(i=x)-(y=(v=(o=h)+i)-o))&&(a[s++]=b),x=_-((m=_+v)-(g=m-_))+(v-g),_=m,(c+=1)<r&&(h=-t[c]);x&&(a[s++]=x);_&&(a[s++]=_);s||(a[s++]=0);return a.length=s,a}},8210:function(e){"use strict";e.exports=function(e,t){var n=0|e.length,r=0|t.length;if(1===n&&1===r)return function(e,t){var n=e+t,r=n-e,o=e-(n-r)+(t-r);if(o)return[o,n];return[n]}(e[0],t[0]);var o,i,a=new Array(n+r),s=0,l=0,c=0,u=Math.abs,d=e[l],f=u(d),h=t[c],p=u(h);f<p?(i=d,(l+=1)<n&&(d=e[l],f=u(d))):(i=h,(c+=1)<r&&(h=t[c],p=u(h)));l<n&&f<p||c>=r?(o=d,(l+=1)<n&&(d=e[l],f=u(d))):(o=h,(c+=1)<r&&(h=t[c],p=u(h)));var m,g,v=o+i,y=v-o,b=i-y,x=b,_=v;for(;l<n&&c<r;)f<p?(o=d,(l+=1)<n&&(d=e[l],f=u(d))):(o=h,(c+=1)<r&&(h=t[c],p=u(h))),(b=(i=x)-(y=(v=o+i)-o))&&(a[s++]=b),x=_-((m=_+v)-(g=m-_))+(v-g),_=m;for(;l<n;)(b=(i=x)-(y=(v=(o=d)+i)-o))&&(a[s++]=b),x=_-((m=_+v)-(g=m-_))+(v-g),_=m,(l+=1)<n&&(d=e[l]);for(;c<r;)(b=(i=x)-(y=(v=(o=h)+i)-o))&&(a[s++]=b),x=_-((m=_+v)-(g=m-_))+(v-g),_=m,(c+=1)<r&&(h=t[c]);x&&(a[s++]=x);_&&(a[s++]=_);s||(a[s++]=0);return a.length=s,a}},9127:function(e,t,n){"use strict";e.exports=function(e){return o(r(e))};var r=n(6204),o=n(5771)},7765:function(e,t,n){"use strict";e.exports=function(e,t,n,s){n=n||0,void 0===s&&(s=function(e){for(var t=e.length,n=0,r=0;r<t;++r)n=0|Math.max(n,e[r].length);return n-1}(e));if(0===e.length||s<1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(e,t){for(var n=e.length,r=o.mallocUint8(n),i=0;i<n;++i)r[i]=e[i]<t|0;return r}(t,+n),c=function(e,t){for(var n=e.length,a=t*(t+1)/2*n|0,s=o.mallocUint32(2*a),l=0,c=0;c<n;++c)for(var u=e[c],d=(t=u.length,0);d<t;++d)for(var f=0;f<d;++f){var h=u[f],p=u[d];s[l++]=0|Math.min(h,p),s[l++]=0|Math.max(h,p)}i(r(s,[l/2|0,2]));var m=2;for(c=2;c<l;c+=2)s[c-2]===s[c]&&s[c-1]===s[c+1]||(s[m++]=s[c],s[m++]=s[c+1]);return r(s,[m/2|0,2])}(e,s),u=function(e,t,n,i){for(var a=e.data,s=e.shape[0],l=o.mallocDouble(s),c=0,u=0;u<s;++u){var d=a[2*u],f=a[2*u+1];if(n[d]!==n[f]){var h=t[d],p=t[f];a[2*c]=d,a[2*c+1]=f,l[c++]=(p-i)/(p-h)}}return e.shape[0]=c,r(l,[c])}(c,t,l,+n),d=function(e,t){var n=o.mallocInt32(2*t),r=e.shape[0],i=e.data;n[0]=0;for(var a=0,s=0;s<r;++s){var l=i[2*s];if(l!==a){for(n[2*a+1]=s;++a<l;)n[2*a]=s,n[2*a+1]=s;n[2*a]=s}}n[2*a+1]=r;for(;++a<t;)n[2*a]=n[2*a+1]=r;return n}(c,0|t.length),f=a(s)(e,c.data,d,l),h=function(e){for(var t=0|e.shape[0],n=e.data,r=new Array(t),o=0;o<t;++o)r[o]=[n[2*o],n[2*o+1]];return r}(c),p=[].slice.call(u.data,0,u.shape[0]);return o.free(l),o.free(c.data),o.free(u.data),o.free(d),{cells:f,vertexIds:h,vertexWeights:p}};var r=n(9618),o=n(1888),i=n(446),a=n(1570)},1570:function(e){"use strict";e.exports=function(e){return t[e]()};var t=[function(){return function(e,t,n,r){for(var o=e.length,i=0;i<o;++i)e[i].length;return[]}},function(){function e(e,t,n,r){for(var o=0|Math.min(n,r),i=0|Math.max(n,r),a=e[2*o],s=e[2*o+1];a<s;){var l=a+s>>1,c=t[2*l+1];if(c===i)return l;i<c?s=l:a=l+1}return a}return function(t,n,r,o){for(var i=t.length,a=[],s=0;s<i;++s){var l=t[s];if(2===l.length){var c=(o[l[0]]<<0)+(o[l[1]]<<1);if(0===c||3===c)continue;switch(c){case 0:break;case 1:a.push([e(r,n,l[0],l[1])]);break;case 2:a.push([e(r,n,l[1],l[0])])}}}return a}},function(){function e(e,t,n,r){for(var o=0|Math.min(n,r),i=0|Math.max(n,r),a=e[2*o],s=e[2*o+1];a<s;){var l=a+s>>1,c=t[2*l+1];if(c===i)return l;i<c?s=l:a=l+1}return a}return function(t,n,r,o){for(var i=t.length,a=[],s=0;s<i;++s){var l=t[s],c=l.length;if(3===c){if(0===(u=(o[l[0]]<<0)+(o[l[1]]<<1)+(o[l[2]]<<2))||7===u)continue;switch(u){case 0:break;case 1:a.push([e(r,n,l[0],l[2]),e(r,n,l[0],l[1])]);break;case 2:a.push([e(r,n,l[1],l[0]),e(r,n,l[1],l[2])]);break;case 3:a.push([e(r,n,l[0],l[2]),e(r,n,l[1],l[2])]);break;case 4:a.push([e(r,n,l[2],l[1]),e(r,n,l[2],l[0])]);break;case 5:a.push([e(r,n,l[2],l[1]),e(r,n,l[0],l[1])]);break;case 6:a.push([e(r,n,l[1],l[0]),e(r,n,l[2],l[0])])}}else if(2===c){var u;if(0===(u=(o[l[0]]<<0)+(o[l[1]]<<1))||3===u)continue;switch(u){case 0:break;case 1:a.push([e(r,n,l[0],l[1])]);break;case 2:a.push([e(r,n,l[1],l[0])])}}}return a}},function(){function e(e,t,n,r){for(var o=0|Math.min(n,r),i=0|Math.max(n,r),a=e[2*o],s=e[2*o+1];a<s;){var l=a+s>>1,c=t[2*l+1];if(c===i)return l;i<c?s=l:a=l+1}return a}return function(t,n,r,o){for(var i=t.length,a=[],s=0;s<i;++s){var l=t[s],c=l.length;if(4===c){if(0===(u=(o[l[0]]<<0)+(o[l[1]]<<1)+(o[l[2]]<<2)+(o[l[3]]<<3))||15===u)continue;switch(u){case 0:break;case 1:a.push([e(r,n,l[0],l[1]),e(r,n,l[0],l[2]),e(r,n,l[0],l[3])]);break;case 2:a.push([e(r,n,l[1],l[2]),e(r,n,l[1],l[0]),e(r,n,l[1],l[3])]);break;case 3:a.push([e(r,n,l[1],l[2]),e(r,n,l[0],l[2]),e(r,n,l[0],l[3])],[e(r,n,l[1],l[3]),e(r,n,l[1],l[2]),e(r,n,l[0],l[3])]);break;case 4:a.push([e(r,n,l[2],l[0]),e(r,n,l[2],l[1]),e(r,n,l[2],l[3])]);break;case 5:a.push([e(r,n,l[0],l[1]),e(r,n,l[2],l[1]),e(r,n,l[0],l[3])],[e(r,n,l[2],l[1]),e(r,n,l[2],l[3]),e(r,n,l[0],l[3])]);break;case 6:a.push([e(r,n,l[2],l[0]),e(r,n,l[1],l[0]),e(r,n,l[1],l[3])],[e(r,n,l[2],l[3]),e(r,n,l[2],l[0]),e(r,n,l[1],l[3])]);break;case 7:a.push([e(r,n,l[0],l[3]),e(r,n,l[1],l[3]),e(r,n,l[2],l[3])]);break;case 8:a.push([e(r,n,l[3],l[1]),e(r,n,l[3],l[0]),e(r,n,l[3],l[2])]);break;case 9:a.push([e(r,n,l[3],l[1]),e(r,n,l[0],l[1]),e(r,n,l[0],l[2])],[e(r,n,l[3],l[2]),e(r,n,l[3],l[1]),e(r,n,l[0],l[2])]);break;case 10:a.push([e(r,n,l[1],l[0]),e(r,n,l[3],l[0]),e(r,n,l[1],l[2])],[e(r,n,l[3],l[0]),e(r,n,l[3],l[2]),e(r,n,l[1],l[2])]);break;case 11:a.push([e(r,n,l[1],l[2]),e(r,n,l[0],l[2]),e(r,n,l[3],l[2])]);break;case 12:a.push([e(r,n,l[3],l[0]),e(r,n,l[2],l[0]),e(r,n,l[2],l[1])],[e(r,n,l[3],l[1]),e(r,n,l[3],l[0]),e(r,n,l[2],l[1])]);break;case 13:a.push([e(r,n,l[0],l[1]),e(r,n,l[2],l[1]),e(r,n,l[3],l[1])]);break;case 14:a.push([e(r,n,l[2],l[0]),e(r,n,l[1],l[0]),e(r,n,l[3],l[0])])}}else if(3===c){if(0===(u=(o[l[0]]<<0)+(o[l[1]]<<1)+(o[l[2]]<<2))||7===u)continue;switch(u){case 0:break;case 1:a.push([e(r,n,l[0],l[2]),e(r,n,l[0],l[1])]);break;case 2:a.push([e(r,n,l[1],l[0]),e(r,n,l[1],l[2])]);break;case 3:a.push([e(r,n,l[0],l[2]),e(r,n,l[1],l[2])]);break;case 4:a.push([e(r,n,l[2],l[1]),e(r,n,l[2],l[0])]);break;case 5:a.push([e(r,n,l[2],l[1]),e(r,n,l[0],l[1])]);break;case 6:a.push([e(r,n,l[1],l[0]),e(r,n,l[2],l[0])])}}else if(2===c){var u;if(0===(u=(o[l[0]]<<0)+(o[l[1]]<<1))||3===u)continue;switch(u){case 0:break;case 1:a.push([e(r,n,l[0],l[1])]);break;case 2:a.push([e(r,n,l[1],l[0])])}}}return a}}]},6803:function(e,t,n){"use strict";var r=n(8828),o=n(1755);function i(e,t){var n=e.length,r=e.length-t.length,o=Math.min;if(r)return r;switch(n){case 0:return 0;case 1:return e[0]-t[0];case 2:return(s=e[0]+e[1]-t[0]-t[1])||o(e[0],e[1])-o(t[0],t[1]);case 3:var i=e[0]+e[1],a=t[0]+t[1];if(s=i+e[2]-(a+t[2]))return s;var s,l=o(e[0],e[1]),c=o(t[0],t[1]);return(s=o(l,e[2])-o(c,t[2]))||o(l+e[2],i)-o(c+t[2],a);default:var u=e.slice(0);u.sort();var d=t.slice(0);d.sort();for(var f=0;f<n;++f)if(r=u[f]-d[f])return r;return 0}}function a(e,t){return i(e[0],t[0])}function s(e,t){if(t){for(var n=e.length,r=new Array(n),o=0;o<n;++o)r[o]=[e[o],t[o]];r.sort(a);for(0;o<n;++o)e[o]=r[o][0],t[o]=r[o][1];return e}return e.sort(i),e}function l(e){if(0===e.length)return[];for(var t=1,n=e.length,r=1;r<n;++r){var o=e[r];if(i(o,e[r-1])){if(r===t){0;continue}e[t++]=o}}return e.length=t,e}function c(e,t){for(var n=0,r=e.length-1,o=-1;n<=r;){var a=n+r>>1,s=i(e[a],t);s<=0?(0===s&&a,a+1):s>0&&a-1}return o}function u(e,t){for(var n=new Array(e.length),o=0,a=n.length;o<a;++o)n[o]=[];for(var s=[],l=(0,t.length);o<l;++o)for(var u=t[o],d=u.length,f=1,h=1<<d;f<h;++f){s.length=r.popCount(f);for(var p=0,m=0;m<d;++m)f&1<<m&&(s[p++]=u[m]);var g=c(e,s);if(!(g<0))for(;n[g++].push(o),!(g>=e.length||0!==i(e[g],s)););}return n}function d(e,t){if(t<0)return[];for(var n=[],o=(1<<t+1)-1,i=0;i<e.length;++i)for(var a=e[i],l=o;l<1<<a.length;r.nextCombination(l)){for(var c=new Array(t+1),u=0,d=0;d<a.length;++d)l&1<<d&&(c[u++]=a[d]);n.push(c)}return s(n)}t.Fw=i},3105:function(e,t){"use strict";function n(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}t.INT_BITS=32,t.INT_MAX=2147483647,t.INT_MIN=-1<<31,t.sign=function(e){return(e>0)-(e<0)},t.abs=function(e){var t=e>>31;return(e^t)-t},t.min=function(e,t){return t^(e^t)&-(e<t)},t.max=function(e,t){return e^(e^t)&-(e<t)},t.isPow2=function(e){return!(e&e-1||!e)},t.log2=function(e){var t,n;return t=(e>65535)<<4,t|=n=((e>>>=t)>255)<<3,t|=n=((e>>>=n)>15)<<2,(t|=n=((e>>>=n)>3)<<1)|(e>>>=n)>>1},t.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},t.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},t.countTrailingZeros=n,t.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},t.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},t.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var r=new Array(256);!function(e){for(var t=0;t<256;++t){var n=t,r=t,o=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--o;e[t]=r<<o&255}}(r),t.reverse=function(e){return r[255&e]<<24|r[e>>>8&255]<<16|r[e>>>16&255]<<8|r[e>>>24&255]},t.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},t.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},t.interleave3=function(e,t,n){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(n=1227133513&((n=3272356035&((n=251719695&((n=4278190335&((n&=1023)|n<<16))|n<<8))|n<<4))|n<<2))<<2},t.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},t.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>n(e)+1}},2014:function(e,t,n){"use strict";var r=n(3105),o=n(4623);function i(e,t){var n=e.length,r=e.length-t.length,o=Math.min;if(r)return r;switch(n){case 0:return 0;case 1:return e[0]-t[0];case 2:return(s=e[0]+e[1]-t[0]-t[1])||o(e[0],e[1])-o(t[0],t[1]);case 3:var i=e[0]+e[1],a=t[0]+t[1];if(s=i+e[2]-(a+t[2]))return s;var s,l=o(e[0],e[1]),c=o(t[0],t[1]);return(s=o(l,e[2])-o(c,t[2]))||o(l+e[2],i)-o(c+t[2],a);default:var u=e.slice(0);u.sort();var d=t.slice(0);d.sort();for(var f=0;f<n;++f)if(r=u[f]-d[f])return r;return 0}}function a(e,t){return i(e[0],t[0])}function s(e,t){if(t){for(var n=e.length,r=new Array(n),o=0;o<n;++o)r[o]=[e[o],t[o]];r.sort(a);for(o=0;o<n;++o)e[o]=r[o][0],t[o]=r[o][1];return e}return e.sort(i),e}function l(e){if(0===e.length)return[];for(var t=1,n=e.length,r=1;r<n;++r){var o=e[r];if(i(o,e[r-1])){if(r===t){t++;continue}e[t++]=o}}return e.length=t,e}function c(e,t){for(var n=0,r=e.length-1,o=-1;n<=r;){var a=n+r>>1,s=i(e[a],t);s<=0?(0===s&&(o=a),n=a+1):s>0&&(r=a-1)}return o}function u(e,t){for(var n=new Array(e.length),o=0,a=n.length;o<a;++o)n[o]=[];for(var s=[],l=(o=0,t.length);o<l;++o)for(var u=t[o],d=u.length,f=1,h=1<<d;f<h;++f){s.length=r.popCount(f);for(var p=0,m=0;m<d;++m)f&1<<m&&(s[p++]=u[m]);var g=c(e,s);if(!(g<0))for(;n[g++].push(o),!(g>=e.length||0!==i(e[g],s)););}return n}function d(e,t){if(t<0)return[];for(var n=[],o=(1<<t+1)-1,i=0;i<e.length;++i)for(var a=e[i],l=o;l<1<<a.length;l=r.nextCombination(l)){for(var c=new Array(t+1),u=0,d=0;d<a.length;++d)l&1<<d&&(c[u++]=a[d]);n.push(c)}return s(n)}t.dimension=function(e){for(var t=0,n=Math.max,r=0,o=e.length;r<o;++r)t=n(t,e[r].length);return t-1},t.countVertices=function(e){for(var t=-1,n=Math.max,r=0,o=e.length;r<o;++r)for(var i=e[r],a=0,s=i.length;a<s;++a)t=n(t,i[a]);return t+1},t.cloneCells=function(e){for(var t=new Array(e.length),n=0,r=e.length;n<r;++n)t[n]=e[n].slice(0);return t},t.compareCells=i,t.normalize=s,t.unique=l,t.findCell=c,t.incidence=u,t.dual=function(e,t){if(!t)return u(l(d(e,0)),e);for(var n=new Array(t),r=0;r<t;++r)n[r]=[];r=0;for(var o=e.length;r<o;++r)for(var i=e[r],a=0,s=i.length;a<s;++a)n[i[a]].push(r);return n},t.explode=function(e){for(var t=[],n=0,r=e.length;n<r;++n)for(var o=e[n],i=0|o.length,a=1,l=1<<i;a<l;++a){for(var c=[],u=0;u<i;++u)a>>>u&1&&c.push(o[u]);t.push(c)}return s(t)},t.skeleton=d,t.boundary=function(e){for(var t=[],n=0,r=e.length;n<r;++n)for(var o=e[n],i=0,a=o.length;i<a;++i){for(var l=new Array(o.length-1),c=0,u=0;c<a;++c)c!==i&&(l[u++]=o[c]);t.push(l)}return s(t)},t.connectedComponents=function(e,t){return t?function(e,t){for(var n=new o(t),r=0;r<e.length;++r)for(var i=e[r],a=0;a<i.length;++a)for(var s=a+1;s<i.length;++s)n.link(i[a],i[s]);var l=[],c=n.ranks;for(r=0;r<c.length;++r)c[r]=-1;for(r=0;r<e.length;++r){var u=n.find(e[r][0]);c[u]<0?(c[u]=l.length,l.push([e[r].slice(0)])):l[c[u]].push(e[r].slice(0))}return l}(e,t):function(e){for(var t=l(s(d(e,0))),n=new o(t.length),r=0;r<e.length;++r)for(var i=e[r],a=0;a<i.length;++a)for(var u=c(t,[i[a]]),f=a+1;f<i.length;++f)n.link(u,c(t,[i[f]]));var h=[],p=n.ranks;for(r=0;r<p.length;++r)p[r]=-1;for(r=0;r<e.length;++r){var m=n.find(c(t,[e[r][0]]));p[m]<0?(p[m]=h.length,h.push([e[r].slice(0)])):h[p[m]].push(e[r].slice(0))}return h}(e)}},4623:function(e){"use strict";function t(e){this.roots=new Array(e),this.ranks=new Array(e);for(var t=0;t<e;++t)this.roots[t]=t,this.ranks[t]=0}e.exports=t,t.prototype.length=function(){return this.roots.length},t.prototype.makeSet=function(){var e=this.roots.length;return this.roots.push(e),this.ranks.push(0),e},t.prototype.find=function(e){for(var t=this.roots;t[e]!==e;){var n=t[e];t[e]=t[n],e=n}return e},t.prototype.link=function(e,t){var n=this.find(e),r=this.find(t);if(n!==r){var o=this.ranks,i=this.roots,a=o[n],s=o[r];a<s?i[n]=r:s<a?i[r]=n:(i[r]=n,++o[n])}}},5878:function(e,t,n){"use strict";e.exports=function(e,t,n){for(var i=t.length,a=e.length,s=new Array(i),l=new Array(i),c=new Array(i),u=new Array(i),d=0;d<i;++d)s[d]=l[d]=-1,c[d]=1/0,u[d]=!1;for(d=0;d<a;++d){var f=e[d];if(2!==f.length)throw new Error("Input must be a graph");var h=f[1],p=f[0];-1!==l[p]?l[p]=-2:l[p]=h,-1!==s[h]?s[h]=-2:s[h]=p}function m(e){if(u[e])return 1/0;var n,o,i,a,c,d=s[e],f=l[e];return d<0||f<0?1/0:(n=t[e],o=t[d],i=t[f],a=Math.abs(r(n,o,i)),c=Math.sqrt(Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)),a/c)}function g(e,t){var n=k[e],r=k[t];k[e]=r,k[t]=n,T[n]=t,T[r]=e}function v(e){return c[k[e]]}function y(e){return 1&e?e-1>>1:(e>>1)-1}function b(e){for(var t=v(e);;){var n=t,r=2*e+1,o=2*(e+1),i=e;if(r<A){var a=v(r);a<n&&(i=r,n=a)}if(o<A)v(o)<n&&(i=o);if(i===e)return e;g(e,i),e=i}}function x(e){for(var t=v(e);e>0;){var n=y(e);if(n>=0)if(t<v(n)){g(e,n),e=n;continue}return e}}function _(){if(A>0){var e=k[0];return g(0,A-1),A-=1,b(0),e}return-1}function w(e,t){var n=k[e];return c[n]===t?e:(c[n]=-1/0,x(e),_(),c[n]=t,x((A+=1)-1))}function j(e){if(!u[e]){u[e]=!0;var t=s[e],n=l[e];s[n]>=0&&(s[n]=t),l[t]>=0&&(l[t]=n),T[t]>=0&&w(T[t],m(t)),T[n]>=0&&w(T[n],m(n))}}var k=[],T=new Array(i);for(d=0;d<i;++d){(c[d]=m(d))<1/0?(T[d]=k.length,k.push(d)):T[d]=-1}var A=k.length;for(d=A>>1;d>=0;--d)b(d);for(;;){var M=_();if(M<0||c[M]>n)break;j(M)}var S=[];for(d=0;d<i;++d)u[d]||(T[d]=S.length,S.push(t[d].slice()));S.length;function C(e,t){if(e[t]<0)return t;var n=t,r=t;do{var o=e[r];if(!u[r]||o<0||o===r)break;if(o=e[r=o],!u[r]||o<0||o===r)break;r=o,n=e[n]}while(n!==r);for(var i=t;i!==r;i=e[i])e[i]=r;return r}var E=[];return e.forEach((function(e){var t=C(s,e[0]),n=C(l,e[1]);if(t>=0&&n>=0&&t!==n){var r=T[t],o=T[n];r!==o&&E.push([r,o])}})),o.unique(o.normalize(E)),{positions:S,edges:E}};var r=n(3250),o=n(2014)},1303:function(e,t,n){"use strict";e.exports=function(e,t){var n,i,a,s;if(t[0][0]<t[1][0])n=t[0],i=t[1];else{if(!(t[0][0]>t[1][0]))return o(t,e);n=t[1],i=t[0]}if(e[0][0]<e[1][0])a=e[0],s=e[1];else{if(!(e[0][0]>e[1][0]))return-o(e,t);a=e[1],s=e[0]}var l=r(n,i,s),c=r(n,i,a);if(l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;if(l=r(s,a,i),c=r(s,a,n),l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;return i[0]-s[0]};var r=n(3250);function o(e,t){var n,o,i,a;if(t[0][0]<t[1][0])n=t[0],o=t[1];else{if(!(t[0][0]>t[1][0])){var s=Math.min(e[0][1],e[1][1]),l=Math.max(e[0][1],e[1][1]),c=Math.min(t[0][1],t[1][1]),u=Math.max(t[0][1],t[1][1]);return l<c?l-c:s>u?s-u:l-u}n=t[1],o=t[0]}e[0][1]<e[1][1]?(i=e[0],a=e[1]):(i=e[1],a=e[0]);var d=r(o,n,i);return d||((d=r(o,n,a))||a-o)}},4209:function(e,t,n){"use strict";e.exports=function(e){for(var t=e.length,n=2*t,r=new Array(n),i=0;i<t;++i){var l=e[i],c=l[0][0]<l[1][0];r[2*i]=new d(l[0][0],l,c,i),r[2*i+1]=new d(l[1][0],l,!c,i)}r.sort((function(e,t){var n=e.x-t.x;return n||((n=e.create-t.create)||Math.min(e.segment[0][1],e.segment[1][1])-Math.min(t.segment[0][1],t.segment[1][1]))}));var f=o(a),h=[],p=[],m=[];for(i=0;i<n;){for(var g=r[i].x,v=[];i<n;){var y=r[i];if(y.x!==g)break;i+=1,y.segment[0][0]===y.x&&y.segment[1][0]===y.x?y.create&&(y.segment[0][1]<y.segment[1][1]?(v.push(new u(y.segment[0][1],y.index,!0,!0)),v.push(new u(y.segment[1][1],y.index,!1,!1))):(v.push(new u(y.segment[1][1],y.index,!0,!1)),v.push(new u(y.segment[0][1],y.index,!1,!0)))):f=y.create?f.insert(y.segment,y.index):f.remove(y.segment)}h.push(f.root),p.push(g),m.push(v)}return new s(h,p,m)};var r=n(2478),o=n(3840),i=n(3250),a=n(1303);function s(e,t,n){this.slabs=e,this.coordinates=t,this.horizontal=n}function l(e,t){return e.y-t}function c(e,t){for(var n=null;e;){var r,o,a=e.key;a[0][0]<a[1][0]?(r=a[0],o=a[1]):(r=a[1],o=a[0]);var s=i(r,o,t);if(s<0)e=e.left;else if(s>0)if(t[0]!==a[1][0])n=e,e=e.right;else{if(l=c(e.right,t))return l;e=e.left}else{if(t[0]!==a[1][0])return e;var l;if(l=c(e.right,t))return l;e=e.left}}return n}function u(e,t,n,r){this.y=e,this.index=t,this.start=n,this.closed=r}function d(e,t,n,r){this.x=e,this.segment=t,this.create=n,this.index=r}s.prototype.castUp=function(e){var t=r.le(this.coordinates,e[0]);if(t<0)return-1;this.slabs[t];var n=c(this.slabs[t],e),o=-1;if(n&&(o=n.value),this.coordinates[t]===e[0]){var s=null;if(n&&(s=n.key),t>0){var u=c(this.slabs[t-1],e);u&&(s?a(u.key,s)>0&&(s=u.key,o=u.value):(o=u.value,s=u.key))}var d=this.horizontal[t];if(d.length>0){var f=r.ge(d,e[1],l);if(f<d.length){var h=d[f];if(e[1]===h.y){if(h.closed)return h.index;for(;f<d.length-1&&d[f+1].y===e[1];)if((h=d[f+=1]).closed)return h.index;if(h.y===e[1]&&!h.start){if((f+=1)>=d.length)return o;h=d[f]}}if(h.start)if(s){var p=i(s[0],s[1],[e[0],h.y]);s[0][0]>s[1][0]&&(p=-p),p>0&&(o=h.index)}else o=h.index;else h.y!==e[1]&&(o=h.index)}}}return o}},5202:function(e,t,n){"use strict";var r=n(1944),o=n(8210);function i(e,t){var n=o(r(e,t),[t[t.length-1]]);return n[n.length-1]}function a(e,t,n,r){var o=-t/(r-t);o<0?o=0:o>1&&(o=1);for(var i=1-o,a=e.length,s=new Array(a),l=0;l<a;++l)s[l]=o*e[l]+i*n[l];return s}e.exports=function(e,t){for(var n=[],r=[],o=i(e[e.length-1],t),s=e[e.length-1],l=e[0],c=0;c<e.length;++c,s=l){var u=i(l=e[c],t);if(o<0&&u>0||o>0&&u<0){var d=a(s,u,l,o);n.push(d),r.push(d.slice())}u<0?r.push(l.slice()):u>0?n.push(l.slice()):(n.push(l.slice()),r.push(l.slice())),o=u}return{positive:n,negative:r}},e.exports.positive=function(e,t){for(var n=[],r=i(e[e.length-1],t),o=e[e.length-1],s=e[0],l=0;l<e.length;++l,o=s){var c=i(s=e[l],t);(r<0&&c>0||r>0&&c<0)&&n.push(a(o,c,s,r)),c>=0&&n.push(s.slice()),r=c}return n},e.exports.negative=function(e,t){for(var n=[],r=i(e[e.length-1],t),o=e[e.length-1],s=e[0],l=0;l<e.length;++l,o=s){var c=i(s=e[l],t);(r<0&&c>0||r>0&&c<0)&&n.push(a(o,c,s,r)),c<=0&&n.push(s.slice()),r=c}return n}},3387:function(e,t,n){var r;!function(){"use strict";var o={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 i(e){return s(c(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}function s(e,t){var n,r,a,s,l,c,u,d,f,h=1,p=e.length,m="";for(r=0;r<p;r++)if("string"==typeof e[r])m+=e[r];else if("object"==typeof e[r]){if((s=e[r]).keys)for(n=t[h],a=0;a<s.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[a],s.keys[a-1]));n=n[s.keys[a]]}else n=s.param_no?t[s.param_no]:t[h++];if(o.not_type.test(s.type)&&o.not_primitive.test(s.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(s.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(o.number.test(s.type)&&(d=n>=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(s.type)?m+=n:(!o.number.test(s.type)||d&&!s.sign?f="":(f=d?"+":"-",n=n.toString().replace(o.sign,"")),c=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",u=s.width-(f+n).length,l=s.width&&u>0?c.repeat(u):"",m+=s.align?f+n+l:"0"===c?f+l+n:l+f+n)}return m}var l=Object.create(null);function c(e){if(l[e])return l[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],s=t[2],c=[];if(null===(c=o.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(c[1]);""!==(s=s.substring(c[0].length));)if(null!==(c=o.key_access.exec(s)))a.push(c[1]);else{if(null===(c=o.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(c[1])}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.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]})}n=n.substring(t[0].length)}return l[e]=r}t.sprintf=i,t.vsprintf=a,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(r=function(){return{sprintf:i,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()},3711:function(e,t,n){"use strict";e.exports=function(e,t){if(e.dimension<=0)return{positions:[],cells:[]};if(1===e.dimension)return function(e,t){for(var n=o(e,t),r=n.length,i=new Array(r),a=new Array(r),s=0;s<r;++s)i[s]=[n[s]],a[s]=[s];return{positions:i,cells:a}}(e,t);var n=e.order.join()+"-"+e.dtype,s=a[n];t=+t||0;s||(s=a[n]=function(e,t){var n=e.length+"d",o=i[n];if(o)return o(r,e,t)}(e.order,e.dtype));return s(e,t)};var r=n(2640),o=n(781),i={"2d":function(e,t,n){var r=e({order:t,scalarArguments:3,getters:"generic"===n?[0]:void 0,phase:function(e,t,n,r){return e>r|0},vertex:function(e,t,n,r,o,i,a,s,l,c,u,d,f){var h=(a<<0)+(s<<1)+(l<<2)+(c<<3)|0;if(0!==h&&15!==h)switch(h){case 0:u.push([e-.5,t-.5]);break;case 1:u.push([e-.25-.25*(r+n-2*f)/(n-r),t-.25-.25*(o+n-2*f)/(n-o)]);break;case 2:u.push([e-.75-.25*(-r-n+2*f)/(r-n),t-.25-.25*(i+r-2*f)/(r-i)]);break;case 3:u.push([e-.5,t-.5-.5*(o+n+i+r-4*f)/(n-o+r-i)]);break;case 4:u.push([e-.25-.25*(i+o-2*f)/(o-i),t-.75-.25*(-o-n+2*f)/(o-n)]);break;case 5:u.push([e-.5-.5*(r+n+i+o-4*f)/(n-r+o-i),t-.5]);break;case 6:u.push([e-.5-.25*(-r-n+i+o)/(r-n+o-i),t-.5-.25*(-o-n+i+r)/(o-n+r-i)]);break;case 7:u.push([e-.75-.25*(i+o-2*f)/(o-i),t-.75-.25*(i+r-2*f)/(r-i)]);break;case 8:u.push([e-.75-.25*(-i-o+2*f)/(i-o),t-.75-.25*(-i-r+2*f)/(i-r)]);break;case 9:u.push([e-.5-.25*(r+n+-i-o)/(n-r+i-o),t-.5-.25*(o+n+-i-r)/(n-o+i-r)]);break;case 10:u.push([e-.5-.5*(-r-n-i-o+4*f)/(r-n+i-o),t-.5]);break;case 11:u.push([e-.25-.25*(-i-o+2*f)/(i-o),t-.75-.25*(o+n-2*f)/(n-o)]);break;case 12:u.push([e-.5,t-.5-.5*(-o-n-i-r+4*f)/(o-n+i-r)]);break;case 13:u.push([e-.75-.25*(r+n-2*f)/(n-r),t-.25-.25*(-i-r+2*f)/(i-r)]);break;case 14:u.push([e-.25-.25*(-r-n+2*f)/(r-n),t-.25-.25*(-o-n+2*f)/(o-n)]);break;case 15:u.push([e-.5,t-.5])}},cell:function(e,t,n,r,o,i,a,s,l){o?s.push([e,t]):s.push([t,e])}});return function(e,t){var n=[],o=[];return r(e,n,o,t),{positions:n,cells:o}}}};var a={}},529:function(e,t,r){"use strict";e.exports=function e(t,n,r){var i=(r=r||{}).fontStyle||"normal",s=r.fontWeight||"normal",l=r.fontVariant||"normal",c=[i,s,l,t].join("_"),u=a[c];u||(u=a[c]={" ":{data:new Float32Array(0),shape:.2}});var d=u[n];if(!d)if(n.length<=1||!/\d/.test(n))d=u[n]=function(e){for(var t=e.cells,n=e.positions,r=new Float32Array(6*t.length),o=0,i=0,a=0;a<t.length;++a)for(var s=t[a],l=0;l<3;++l){var c=n[s[l]];r[o++]=c[0],r[o++]=c[1]+1.4,i=Math.max(c[0],i)}return{data:r,shape:i}}(o(n,{triangles:!0,font:t,fontStyle:i,fontWeight:s,fontVariant:l,textAlign:r.textAlign||"left",textBaseline:"alphabetic",styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}}));else{for(var f=n.split(/(\d|\s)/),h=new Array(f.length),p=0,m=0,g=0;g<f.length;++g)h[g]=e(t,f[g]),p+=h[g].data.length,m+=h[g].shape,g>0&&(m+=.02);var v=new Float32Array(p),y=0,b=-.5*m;for(g=0;g<h.length;++g){for(var x=h[g].data,_=0;_<x.length;_+=2)v[y++]=x[_]+b,v[y++]=x[_+1];b+=h[g].shape+.02}d=u[n]={data:v,shape:m}}return d};var o=r(4359),i=window||n.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}},665:function(e,t,n){"use strict";var r=n(3202);e.exports=i;function o(e,t){var n=r(getComputedStyle(e).getPropertyValue(t));return n[0]*i(n[1],e)}function i(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),t!==window&&t!==document||(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return function(e,t){var n=document.createElement("div");n.style["font-size"]="128"+e,t.appendChild(n);var r=o(n,"font-size")/128;return t.removeChild(n),r}(e,t);case"em":return o(t,"font-size");case"rem":return o(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 96;case"cm":return 96/2.54;case"mm":return 96/25.4;case"pt":return 96/72;case"pc":return 16}return 1}},7261:function(e,t,n){"use strict";e.exports=function(e){var t=(e=e||{}).center||[0,0,0],n=e.up||[0,1,0],r=e.right||d(n),o=e.radius||1,i=e.theta||0,u=e.phi||0;if(t=[].slice.call(t,0,3),n=[].slice.call(n,0,3),s(n,n),r=[].slice.call(r,0,3),s(r,r),"eye"in e){var h=e.eye,p=[h[0]-t[0],h[1]-t[1],h[2]-t[2]];a(r,p,n),c(r[0],r[1],r[2])<1e-6?r=d(n):s(r,r),o=c(p[0],p[1],p[2]);var m=l(n,p)/o,g=l(r,p)/o;u=Math.acos(m),i=Math.acos(g)}return o=Math.log(o),new f(e.zoomMin,e.zoomMax,t,n,r,o,i,u)};var r=n(9215),o=n(7608),i=n(6079),a=n(5911),s=n(3536),l=n(244);function c(e,t,n){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2))}function u(e){return Math.min(1,Math.max(-1,e))}function d(e){var t=Math.abs(e[0]),n=Math.abs(e[1]),r=Math.abs(e[2]),o=[0,0,0];t>Math.max(n,r)?o[2]=1:n>Math.max(t,r)?o[0]=1:o[1]=1;for(var i=0,a=0,l=0;l<3;++l)i+=e[l]*e[l],a+=o[l]*e[l];for(l=0;l<3;++l)o[l]-=a/i*e[l];return s(o,o),o}function f(e,t,n,o,i,a,s,l){this.center=r(n),this.up=r(o),this.right=r(i),this.radius=r([a]),this.angle=r([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(e,t),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 c=0;c<16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var h=f.prototype;h.setDistanceLimits=function(e,t){e=e>0?Math.log(e):-1/0,t=t>0?Math.log(t):1/0,t=Math.max(t,e),this.radius.bounds[0][0]=e,this.radius.bounds[1][0]=t},h.getDistanceLimits=function(e){var t=this.radius.bounds[0];return e?(e[0]=Math.exp(t[0][0]),e[1]=Math.exp(t[1][0]),e):[Math.exp(t[0][0]),Math.exp(t[1][0])]},h.recalcMatrix=function(e){this.center.curve(e),this.up.curve(e),this.right.curve(e),this.radius.curve(e),this.angle.curve(e);for(var t=this.computedUp,n=this.computedRight,r=0,o=0,i=0;i<3;++i)o+=t[i]*n[i],r+=t[i]*t[i];var l=Math.sqrt(r),u=0;for(i=0;i<3;++i)n[i]-=t[i]*o/r,u+=n[i]*n[i],t[i]/=l;var d=Math.sqrt(u);for(i=0;i<3;++i)n[i]/=d;var f=this.computedToward;a(f,t,n),s(f,f);var h=Math.exp(this.computedRadius[0]),p=this.computedAngle[0],m=this.computedAngle[1],g=Math.cos(p),v=Math.sin(p),y=Math.cos(m),b=Math.sin(m),x=this.computedCenter,_=g*y,w=v*y,j=b,k=-g*b,T=-v*b,A=y,M=this.computedEye,S=this.computedMatrix;for(i=0;i<3;++i){var C=_*n[i]+w*f[i]+j*t[i];S[4*i+1]=k*n[i]+T*f[i]+A*t[i],S[4*i+2]=C,S[4*i+3]=0}var E=S[1],L=S[5],O=S[9],R=S[2],I=S[6],P=S[10],D=L*P-O*I,z=O*R-E*P,N=E*I-L*R,F=c(D,z,N);D/=F,z/=F,N/=F,S[0]=D,S[4]=z,S[8]=N;for(i=0;i<3;++i)M[i]=x[i]+S[2+4*i]*h;for(i=0;i<3;++i){u=0;for(var B=0;B<3;++B)u+=S[i+4*B]*M[B];S[12+i]=-u}S[15]=1},h.getMatrix=function(e,t){this.recalcMatrix(e);var n=this.computedMatrix;if(t){for(var r=0;r<16;++r)t[r]=n[r];return t}return n};var p=[0,0,0];h.rotate=function(e,t,n,r){if(this.angle.move(e,t,n),r){this.recalcMatrix(e);var o=this.computedMatrix;p[0]=o[2],p[1]=o[6],p[2]=o[10];for(var a=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c<3;++c)o[4*c]=a[c],o[4*c+1]=s[c],o[4*c+2]=l[c];i(o,o,r,p);for(c=0;c<3;++c)a[c]=o[4*c],s[c]=o[4*c+1];this.up.set(e,a[0],a[1],a[2]),this.right.set(e,s[0],s[1],s[2])}},h.pan=function(e,t,n,r){t=t||0,n=n||0,r=r||0,this.recalcMatrix(e);var o=this.computedMatrix,i=(Math.exp(this.computedRadius[0]),o[1]),a=o[5],s=o[9],l=c(i,a,s);i/=l,a/=l,s/=l;var u=o[0],d=o[4],f=o[8],h=u*i+d*a+f*s,p=c(u-=i*h,d-=a*h,f-=s*h),m=(u/=p)*t+i*n,g=(d/=p)*t+a*n,v=(f/=p)*t+s*n;this.center.move(e,m,g,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+r),this.radius.set(e,Math.log(y))},h.translate=function(e,t,n,r){this.center.move(e,t||0,n||0,r||0)},h.setMatrix=function(e,t,n,r){var i=1;"number"==typeof n&&(i=0|n),(i<0||i>3)&&(i=1);var a=(i+2)%3;t||(this.recalcMatrix(e),t=this.computedMatrix);var s=t[i],l=t[i+4],d=t[i+8];if(r){var f=Math.abs(s),h=Math.abs(l),p=Math.abs(d),m=Math.max(f,h,p);f===m?(s=s<0?-1:1,l=d=0):p===m?(d=d<0?-1:1,s=l=0):(l=l<0?-1:1,s=d=0)}else{var g=c(s,l,d);s/=g,l/=g,d/=g}var v,y,b=t[a],x=t[a+4],_=t[a+8],w=b*s+x*l+_*d,j=c(b-=s*w,x-=l*w,_-=d*w),k=l*(_/=j)-d*(x/=j),T=d*(b/=j)-s*_,A=s*x-l*b,M=c(k,T,A);if(k/=M,T/=M,A/=M,this.center.jump(e,G,q,W),this.radius.idle(e),this.up.jump(e,s,l,d),this.right.jump(e,b,x,_),2===i){var S=t[1],C=t[5],E=t[9],L=S*b+C*x+E*_,O=S*k+C*T+E*A;v=D<0?-Math.PI/2:Math.PI/2,y=Math.atan2(O,L)}else{var R=t[2],I=t[6],P=t[10],D=R*s+I*l+P*d,z=R*b+I*x+P*_,N=R*k+I*T+P*A;v=Math.asin(u(D)),y=Math.atan2(N,z)}this.angle.jump(e,y,v),this.recalcMatrix(e);var F=t[2],B=t[6],U=t[10],H=this.computedMatrix;o(H,t);var V=H[15],G=H[12]/V,q=H[13]/V,W=H[14]/V,Y=Math.exp(this.computedRadius[0]);this.center.jump(e,G-F*Y,q-B*Y,W-U*Y)},h.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},h.idle=function(e){this.center.idle(e),this.up.idle(e),this.right.idle(e),this.radius.idle(e),this.angle.idle(e)},h.flush=function(e){this.center.flush(e),this.up.flush(e),this.right.flush(e),this.radius.flush(e),this.angle.flush(e)},h.setDistance=function(e,t){t>0&&this.radius.set(e,Math.log(t))},h.lookAt=function(e,t,n,r){this.recalcMatrix(e),t=t||this.computedEye,n=n||this.computedCenter;var o=(r=r||this.computedUp)[0],i=r[1],a=r[2],s=c(o,i,a);if(!(s<1e-6)){o/=s,i/=s,a/=s;var l=t[0]-n[0],d=t[1]-n[1],f=t[2]-n[2],h=c(l,d,f);if(!(h<1e-6)){l/=h,d/=h,f/=h;var p=this.computedRight,m=p[0],g=p[1],v=p[2],y=o*m+i*g+a*v,b=c(m-=y*o,g-=y*i,v-=y*a);if(!(b<.01&&(b=c(m=i*f-a*d,g=a*l-o*f,v=o*d-i*l))<1e-6)){m/=b,g/=b,v/=b,this.up.set(e,o,i,a),this.right.set(e,m,g,v),this.center.set(e,n[0],n[1],n[2]),this.radius.set(e,Math.log(h));var x=i*v-a*g,_=a*m-o*v,w=o*g-i*m,j=c(x,_,w),k=o*l+i*d+a*f,T=m*l+g*d+v*f,A=(x/=j)*l+(_/=j)*d+(w/=j)*f,M=Math.asin(u(k)),S=Math.atan2(A,T),C=this.angle._state,E=C[C.length-1],L=C[C.length-2];E%=2*Math.PI;var O=Math.abs(E+2*Math.PI-S),R=Math.abs(E-S),I=Math.abs(E-2*Math.PI-S);O<R&&(E+=2*Math.PI),I<R&&(E-=2*Math.PI),this.angle.jump(this.angle.lastT(),E,L),this.angle.set(e,S,M)}}}}},5250:function(e){"use strict";e.exports=function(e,n,r){var o=e*n,i=t*e,a=i-(i-e),s=e-a,l=t*n,c=l-(l-n),u=n-c,d=s*u-(o-a*c-s*c-a*u);if(r)return r[0]=d,r[1]=o,r;return[d,o]};var t=+(Math.pow(2,27)+1)},9362:function(e){"use strict";e.exports=function(e,t,n){var r=e+t,o=r-e,i=t-o,a=e-(r-o);if(n)return n[0]=a+i,n[1]=r,n;return[a+i,r]}},1888:function(e,t,n){"use strict";var r=n(8828),o=n(1338),i=n(4793).hp;n.g.__TYPEDARRAY_POOL||(n.g.__TYPEDARRAY_POOL={UINT8:o([32,0]),UINT16:o([32,0]),UINT32:o([32,0]),BIGUINT64:o([32,0]),INT8:o([32,0]),INT16:o([32,0]),INT32:o([32,0]),BIGINT64:o([32,0]),FLOAT:o([32,0]),DOUBLE:o([32,0]),DATA:o([32,0]),UINT8C:o([32,0]),BUFFER:o([32,0])});var a="undefined"!=typeof Uint8ClampedArray,s="undefined"!=typeof BigUint64Array,l="undefined"!=typeof BigInt64Array,c=n.g.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=o([32,0])),c.BIGUINT64||(c.BIGUINT64=o([32,0])),c.BIGINT64||(c.BIGINT64=o([32,0])),c.BUFFER||(c.BUFFER=o([32,0]));var u=c.DATA,d=c.BUFFER;function f(e){if(e){var t=e.length||e.byteLength,n=r.log2(t);u[n].push(e)}}function h(e){e=r.nextPow2(e);var t=r.log2(e),n=u[t];return n.length>0?n.pop():new ArrayBuffer(e)}function p(e){return new Uint8Array(h(e),0,e)}function m(e){return new Uint16Array(h(2*e),0,e)}function g(e){return new Uint32Array(h(4*e),0,e)}function v(e){return new Int8Array(h(e),0,e)}function y(e){return new Int16Array(h(2*e),0,e)}function b(e){return new Int32Array(h(4*e),0,e)}function x(e){return new Float32Array(h(4*e),0,e)}function _(e){return new Float64Array(h(8*e),0,e)}function w(e){return a?new Uint8ClampedArray(h(e),0,e):p(e)}function j(e){return s?new BigUint64Array(h(8*e),0,e):null}function k(e){return l?new BigInt64Array(h(8*e),0,e):null}function T(e){return new DataView(h(e),0,e)}function A(e){e=r.nextPow2(e);var t=r.log2(e),n=d[t];return n.length>0?n.pop():new i(e)}t.free=function(e){if(i.isBuffer(e))d[r.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var t=e.length||e.byteLength,n=0|r.log2(t);u[n].push(e)}},t.freeUint8=t.freeUint16=t.freeUint32=t.freeBigUint64=t.freeInt8=t.freeInt16=t.freeInt32=t.freeBigInt64=t.freeFloat32=t.freeFloat=t.freeFloat64=t.freeDouble=t.freeUint8Clamped=t.freeDataView=function(e){f(e.buffer)},t.freeArrayBuffer=f,t.freeBuffer=function(e){d[r.log2(e.length)].push(e)},t.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return h(e);switch(t){case"uint8":return p(e);case"uint16":return m(e);case"uint32":return g(e);case"int8":return v(e);case"int16":return y(e);case"int32":return b(e);case"float":case"float32":return x(e);case"double":case"float64":return _(e);case"uint8_clamped":return w(e);case"bigint64":return k(e);case"biguint64":return j(e);case"buffer":return A(e);case"data":case"dataview":return T(e);default:return null}return null},t.mallocArrayBuffer=h,t.mallocUint8=p,t.mallocUint16=m,t.mallocUint32=g,t.mallocInt8=v,t.mallocInt16=y,t.mallocInt32=b,t.mallocFloat32=t.mallocFloat=x,t.mallocFloat64=t.mallocDouble=_,t.mallocUint8Clamped=w,t.mallocBigUint64=j,t.mallocBigInt64=k,t.mallocDataView=T,t.mallocBuffer=A,t.clearCache=function(){for(var e=0;e<32;++e)c.UINT8[e].length=0,c.UINT16[e].length=0,c.UINT32[e].length=0,c.INT8[e].length=0,c.INT16[e].length=0,c.INT32[e].length=0,c.FLOAT[e].length=0,c.DOUBLE[e].length=0,c.BIGUINT64[e].length=0,c.BIGINT64[e].length=0,c.UINT8C[e].length=0,u[e].length=0,d[e].length=0}},1755:function(e){"use strict";function t(e){this.roots=new Array(e),this.ranks=new Array(e);for(var t=0;t<e;++t)this.roots[t]=t,this.ranks[t]=0}e.exports=t;var n=t.prototype;Object.defineProperty(n,"length",{get:function(){return this.roots.length}}),n.makeSet=function(){var e=this.roots.length;return this.roots.push(e),this.ranks.push(0),e},n.find=function(e){for(var t=e,n=this.roots;n[e]!==e;)e=n[e];for(;n[t]!==e;){var r=n[t];n[t]=e,t=r}return e},n.link=function(e,t){var n=this.find(e),r=this.find(t);if(n!==r){var o=this.ranks,i=this.roots,a=o[n],s=o[r];a<s?i[n]=r:s<a?i[r]=n:(i[r]=n,++o[n])}}},1682:function(e){"use strict";e.exports=function(e,t,n){return 0===e.length?e:t?(n||e.sort(t),function(e,t){for(var n=1,r=e.length,o=e[0],i=e[0],a=1;a<r;++a)if(i=o,t(o=e[a],i)){if(a===n){n++;continue}e[n++]=o}return e.length=n,e}(e,t)):(n||e.sort(),function(e){for(var t=1,n=e.length,r=e[0],o=e[0],i=1;i<n;++i,o=r)if(o=r,(r=e[i])!==o){if(i===t){t++;continue}e[t++]=r}return e.length=t,e}(e))}},4359:function(e,t,n){"use strict";e.exports=function(e,t){"object"==typeof t&&null!==t||(t={});return r(e,t.canvas||o,t.context||i,t)};var r=n(7718),o=null,i=null;"undefined"!=typeof document&&((o=document.createElement("canvas")).width=8192,o.height=1024,i=o.getContext("2d"))},7718:function(e,t,n){e.exports=function(e,t,n,r){var i=64,a=1.25,s={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};r&&(r.size&&r.size>0&&(i=r.size),r.lineSpacing&&r.lineSpacing>0&&(a=r.lineSpacing),r.styletags&&r.styletags.breaklines&&(s.breaklines=!!r.styletags.breaklines),r.styletags&&r.styletags.bolds&&(s.bolds=!!r.styletags.bolds),r.styletags&&r.styletags.italics&&(s.italics=!!r.styletags.italics),r.styletags&&r.styletags.subscripts&&(s.subscripts=!!r.styletags.subscripts),r.styletags&&r.styletags.superscripts&&(s.superscripts=!!r.styletags.superscripts));return n.font=[r.fontStyle,r.fontVariant,r.fontWeight,i+"px",r.font].filter((function(e){return e})).join(" "),n.textAlign="start",n.textBaseline="alphabetic",n.direction="ltr",f(function(e,t,n,r,i,a){n=n.replace(/\n/g,""),n=!0===a.breaklines?n.replace(/\<br\>/g,"\n"):n.replace(/\<br\>/g," ");var s="",l=[];for(h=0;h<n.length;++h)l[h]=s;!0===a.bolds&&(l=c("b","b|",n,l));!0===a.italics&&(l=c("i","i|",n,l));!0===a.superscripts&&(l=c("sup","+1",n,l));!0===a.subscripts&&(l=c("sub","-1",n,l));var u=[],d="";for(h=0;h<n.length;++h)null!==l[h]&&(d+=n[h],u.push(l[h]));var f,h,p,m,g,v=d.split("\n"),y=v.length,b=Math.round(i*r),x=r,_=2*r,w=0,j=y*b+_;e.height<j&&(e.height=j);t.fillStyle="#000",t.fillRect(0,0,e.width,e.height),t.fillStyle="#fff";var k=0,T="";function A(){if(""!==T){var e=t.measureText(T).width;t.fillText(T,x+p,_+m),p+=e}}function M(){return Math.round(g)+"px "}function S(e,n){var r=""+t.font;if(!0===a.subscripts){var o=e.indexOf("-"),i=n.indexOf("-"),s=o>-1?parseInt(e[1+o]):0,l=i>-1?parseInt(n[1+i]):0;s!==l&&(r=r.replace(M(),"?px "),g*=Math.pow(.75,l-s),r=r.replace("?px ",M())),m+=.25*b*(l-s)}if(!0===a.superscripts){var c=e.indexOf("+"),u=n.indexOf("+"),d=c>-1?parseInt(e[1+c]):0,f=u>-1?parseInt(n[1+u]):0;d!==f&&(r=r.replace(M(),"?px "),g*=Math.pow(.75,f-d),r=r.replace("?px ",M())),m-=.25*b*(f-d)}if(!0===a.bolds){var h=e.indexOf("b|")>-1,p=n.indexOf("b|")>-1;!h&&p&&(r=v?r.replace("italic ","italic bold "):"bold "+r),h&&!p&&(r=r.replace("bold ",""))}if(!0===a.italics){var v=e.indexOf("i|")>-1,y=n.indexOf("i|")>-1;!v&&y&&(r="italic "+r),v&&!y&&(r=r.replace("italic ",""))}t.font=r}for(f=0;f<y;++f){var C=v[f]+"\n";for(p=0,m=f*b,g=r,T="",h=0;h<C.length;++h){var E=h+k<u.length?u[h+k]:u[u.length-1];s===E?T+=C[h]:(A(),T=C[h],void 0!==E&&(S(s,E),s=E))}A(),k+=C.length;var L=0|Math.round(p+2*x);w<L&&(w=L)}var O=w,R=_+b*y;return o(t.getImageData(0,0,O,R).data,[R,O,4]).pick(-1,-1,0).transpose(1,0)}(t,n,e,i,a,s),r,i)},e.exports.processPixels=f;var r=n(3711),o=n(9618),i=n(5878),a=n(332),s=n(2538),l=n(2095);function c(e,t,n,r){for(var o="<"+e+">",i="</"+e+">",a=o.length,s=i.length,l="+"===t[0]||"-"===t[0],c=0,u=-s;c>-1&&-1!==(c=n.indexOf(o,c))&&-1!==(u=n.indexOf(i,c+a))&&!(u<=c);){for(var d=c;d<u+s;++d)if(d<c+a||d>=u)r[d]=null,n=n.substr(0,d)+" "+n.substr(d+1);else if(null!==r[d]){var f=r[d].indexOf(t[0]);-1===f?r[d]+=t:l&&(r[d]=r[d].substr(0,f+1)+(1+parseInt(r[d][f+1]))+r[d].substr(f+2))}var h=c+a,p=n.substr(h,u-h).indexOf(o);c=-1!==p?p:u+s}return r}function u(e,t){var n=r(e,128);return t?i(n.cells,n.positions,.25):{edges:n.cells,positions:n.positions}}function d(e,t,n,r){var o=u(e,r),i=function(e,t,n){for(var r=t.textAlign||"start",o=t.textBaseline||"alphabetic",i=[1<<30,1<<30],a=[0,0],s=e.length,l=0;l<s;++l)for(var c=e[l],u=0;u<2;++u)i[u]=0|Math.min(i[u],c[u]),a[u]=0|Math.max(a[u],c[u]);var d=0;switch(r){case"center":d=-.5*(i[0]+a[0]);break;case"right":case"end":d=-a[0];break;case"left":case"start":d=-i[0];break;default:throw new Error("vectorize-text: Unrecognized textAlign: '"+r+"'")}var f=0;switch(o){case"hanging":case"top":f=-i[1];break;case"middle":f=-.5*(i[1]+a[1]);break;case"alphabetic":case"ideographic":f=-3*n;break;case"bottom":f=-a[1];break;default:throw new Error("vectorize-text: Unrecoginized textBaseline: '"+o+"'")}var h=1/n;return"lineHeight"in t?h*=+t.lineHeight:"width"in t?h=t.width/(a[0]-i[0]):"height"in t&&(h=t.height/(a[1]-i[1])),e.map((function(e){return[h*(e[0]+d),h*(e[1]+f)]}))}(o.positions,t,n),c=o.edges,d="ccw"===t.orientation;if(a(i,c),t.polygons||t.polygon||t.polyline){for(var f=l(c,i),h=new Array(f.length),p=0;p<f.length;++p){for(var m=f[p],g=new Array(m.length),v=0;v<m.length;++v){for(var y=m[v],b=new Array(y.length),x=0;x<y.length;++x)b[x]=i[y[x]].slice();d&&b.reverse(),g[v]=b}h[p]=g}return h}return t.triangles||t.triangulate||t.triangle?{cells:s(i,c,{delaunay:!1,exterior:!1,interior:!0}),positions:i}:{edges:c,positions:i}}function f(e,t,n){try{return d(e,t,n,!0)}catch(e){}try{return d(e,t,n,!1)}catch(e){}return t.polygons||t.polyline||t.polygon?[]:t.triangles||t.triangulate||t.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},1538:function(e){!function(){"use strict";if("undefined"==typeof ses||!ses.ok||ses.ok()){"undefined"!=typeof ses&&(ses.weakMapPermitHostObjects=m);var t=!1;if("function"==typeof WeakMap){var n=WeakMap;if("undefined"!=typeof navigator&&/Firefox/.test(navigator.userAgent));else{var r=new n,o=Object.freeze({});if(r.set(o,1),1===r.get(o))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var i=Object.getOwnPropertyNames,a=Object.defineProperty,s=Object.isExtensible,l="weakmap:ident:"+Math.random()+"___";if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues&&"function"==typeof ArrayBuffer&&"function"==typeof Uint8Array){var c=new ArrayBuffer(25),u=new Uint8Array(c);crypto.getRandomValues(u),l="weakmap:rand:"+Array.prototype.map.call(u,(function(e){return(e%36).toString(36)})).join("")+"___"}if(a(Object,"getOwnPropertyNames",{value:function(e){return i(e).filter(g)}}),"getPropertyNames"in Object){var d=Object.getPropertyNames;a(Object,"getPropertyNames",{value:function(e){return d(e).filter(g)}})}!function(){var e=Object.freeze;a(Object,"freeze",{value:function(t){return v(t),e(t)}});var t=Object.seal;a(Object,"seal",{value:function(e){return v(e),t(e)}});var n=Object.preventExtensions;a(Object,"preventExtensions",{value:function(e){return v(e),n(e)}})}();var f=!1,h=0,p=function(){this instanceof p||b();var e=[],t=[],n=h++;return Object.create(p.prototype,{get___:{value:y((function(r,o){var i,a=v(r);return a?n in a?a[n]:o:(i=e.indexOf(r))>=0?t[i]:o}))},has___:{value:y((function(t){var r=v(t);return r?n in r:e.indexOf(t)>=0}))},set___:{value:y((function(r,o){var i,a=v(r);return a?a[n]=o:(i=e.indexOf(r))>=0?t[i]=o:(i=e.length,t[i]=o,e[i]=r),this}))},delete___:{value:y((function(r){var o,i,a=v(r);return a?n in a&&delete a[n]:!((o=e.indexOf(r))<0)&&(i=e.length-1,e[o]=void 0,t[o]=t[i],e[o]=e[i],e.length=i,t.length=i,!0)}))}})};p.prototype=Object.create(Object.prototype,{get:{value:function(e,t){return this.get___(e,t)},writable:!0,configurable:!0},has:{value:function(e){return this.has___(e)},writable:!0,configurable:!0},set:{value:function(e,t){return this.set___(e,t)},writable:!0,configurable:!0},delete:{value:function(e){return this.delete___(e)},writable:!0,configurable:!0}}),"function"==typeof n?function(){function r(){this instanceof p||b();var e,r=new n,o=void 0,i=!1;return e=t?function(e,t){return r.set(e,t),r.has(e)||(o||(o=new p),o.set(e,t)),this}:function(e,t){if(i)try{r.set(e,t)}catch(n){o||(o=new p),o.set___(e,t)}else r.set(e,t);return this},Object.create(p.prototype,{get___:{value:y((function(e,t){return o?r.has(e)?r.get(e):o.get___(e,t):r.get(e,t)}))},has___:{value:y((function(e){return r.has(e)||!!o&&o.has___(e)}))},set___:{value:y(e)},delete___:{value:y((function(e){var t=!!r.delete(e);return o&&o.delete___(e)||t}))},permitHostObjects___:{value:y((function(e){if(e!==m)throw new Error("bogus call to permitHostObjects___");i=!0}))}})}t&&"undefined"!=typeof Proxy&&(Proxy=void 0),r.prototype=p.prototype,e.exports=r,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():("undefined"!=typeof Proxy&&(Proxy=void 0),e.exports=p)}function m(e){e.permitHostObjects___&&e.permitHostObjects___(m)}function g(e){return!("weakmap:"==e.substr(0,"weakmap:".length)&&"___"===e.substr(e.length-3))}function v(e){if(e!==Object(e))throw new TypeError("Not an object: "+e);var t=e[l];if(t&&t.key===e)return t;if(s(e)){t={key:e};try{return a(e,l,{value:t,writable:!1,enumerable:!1,configurable:!1}),t}catch(e){return}}}function y(e){return e.prototype=null,Object.freeze(e)}function b(){f||"undefined"==typeof console||(f=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}}()},236:function(e,t,n){var r=n(8284);e.exports=function(){var e={};return function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)throw new Error("Weakmap-shim: Key must be object");var n=t.valueOf(e);return n&&n.identity===e?n:r(t,e)}}},8284:function(e){e.exports=function(e,t){var n={identity:t},r=e.valueOf;return Object.defineProperty(e,"valueOf",{value:function(e){return e!==t?r.apply(this,arguments):n},writable:!0}),n}},606:function(e,t,n){var r=n(236);e.exports=function(){var e=r();return{get:function(t,n){var r=e(t);return r.hasOwnProperty("value")?r.value:n},set:function(t,n){return e(t).value=n,this},has:function(t){return"value"in e(t)},delete:function(t){return delete e(t).value}}}},3349:function(e){"use strict";var t,n=function(){return function(e,t,n,r,o,i){var a=e[0],s=n[0],l=[0],c=s;r|=0;var u=0,d=s;for(u=0;u<a;++u){var f=t[r]-i,h=t[r+c]-i;f>=0!=h>=0&&o.push(l[0]+.5+.5*(f+h)/(f-h)),r+=d,++l[0]}}};e.exports=(t={funcName:{funcName:"zeroCrossings"}.funcName},function(e){var t={};return function(n,r,o){var i=n.dtype,a=n.order,s=[i,a.join()].join(),l=t[s];return l||(t[s]=l=e([i,a])),l(n.shape.slice(0),n.data,n.stride,0|n.offset,r,o)}}(n.bind(void 0,t)))},781:function(e,t,n){"use strict";e.exports=function(e,t){var n=[];return t=+t||0,r(e.hi(e.shape[0]-1),n,t),n};var r=n(3349)},7790:function(){}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var a=i(1964);e.exports=a}()}).call(this,n("./node_modules/node-libs-browser/node_modules/buffer/index.js").Buffer,n("./node_modules/process/browser.js"))},"./node_modules/point-in-polygon/nested.js":function(e,t){e.exports=function(e,t,n,r){var o=e[0],i=e[1],a=!1;void 0===n&&(n=0),void 0===r&&(r=t.length);for(var s=r-n,l=0,c=s-1;l<s;c=l++){var u=t[l+n][0],d=t[l+n][1],f=t[c+n][0],h=t[c+n][1];d>i!=h>i&&o<(f-u)*(i-d)/(h-d)+u&&(a=!a)}return a}},"./node_modules/polybooljs/index.js":function(e,t,n){
/*
* @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
* @license MIT
* @preserve Project Home: https://github.com/voidqk/polybooljs
*/
var r,o=n("./node_modules/polybooljs/lib/build-log.js"),i=n("./node_modules/polybooljs/lib/epsilon.js"),a=n("./node_modules/polybooljs/lib/intersecter.js"),s=n("./node_modules/polybooljs/lib/segment-chainer.js"),l=n("./node_modules/polybooljs/lib/segment-selector.js"),c=n("./node_modules/polybooljs/lib/geojson.js"),u=!1,d=i();function f(e,t,n){var o=r.segments(e),i=r.segments(t),a=n(r.combine(o,i));return r.polygon(a)}r={buildLog:function(e){return!0===e?u=o():!1===e&&(u=!1),!1!==u&&u.list},epsilon:function(e){return d.epsilon(e)},segments:function(e){var t=a(!0,d,u);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:a(!1,d,u).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:l.union(e.combined,u),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:l.intersect(e.combined,u),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:l.difference(e.combined,u),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:l.differenceRev(e.combined,u),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:l.xor(e.combined,u),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:s(e.segments,d,u),inverted:e.inverted}},polygonFromGeoJSON:function(e){return c.toPolygon(r,e)},polygonToGeoJSON:function(e){return c.fromPolygon(r,d,e)},union:function(e,t){return f(e,t,r.selectUnion)},intersect:function(e,t){return f(e,t,r.selectIntersect)},difference:function(e,t){return f(e,t,r.selectDifference)},differenceRev:function(e,t){return f(e,t,r.selectDifferenceRev)},xor:function(e,t){return f(e,t,r.selectXor)}},"object"==typeof window&&(window.PolyBool=r),e.exports=r},"./node_modules/polybooljs/lib/build-log.js":function(e,t){e.exports=function(){var e,t=0,n=!1;function r(t,n){return e.list.push({type:t,data:n?JSON.parse(JSON.stringify(n)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return r("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return r("div_seg",{seg:e,pt:t}),r("chop",{seg:e,pt:t})},statusRemove:function(e){return r("pop_seg",{seg:e})},segmentUpdate:function(e){return r("seg_update",{seg:e})},segmentNew:function(e,t){return r("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return r("rem_seg",{seg:e})},tempStatus:function(e,t,n){return r("temp_status",{seg:e,above:t,below:n})},rewind:function(e){return r("rewind",{seg:e})},status:function(e,t,n){return r("status",{seg:e,above:t,below:n})},vert:function(t){return t===n?e:(n=t,r("vert",{x:t}))},log:function(e){return"string"!=typeof e&&(e=JSON.stringify(e,!1," ")),r("log",{txt:e})},reset:function(){return r("reset")},selected:function(e){return r("selected",{segs:e})},chainStart:function(e){return r("chain_start",{seg:e})},chainRemoveHead:function(e,t){return r("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return r("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return r("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return r("chain_match",{index:e})},chainClose:function(e){return r("chain_close",{index:e})},chainAddHead:function(e,t){return r("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return r("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return r("chain_con",{index1:e,index2:t})},chainReverse:function(e){return r("chain_rev",{index:e})},chainJoin:function(e,t){return r("chain_join",{index1:e,index2:t})},done:function(){return r("done")}}}},"./node_modules/polybooljs/lib/epsilon.js":function(e,t){e.exports=function(e){"number"!=typeof e&&(e=1e-10);var t={epsilon:function(t){return"number"==typeof t&&(e=t),e},pointAboveOrOnLine:function(t,n,r){var o=n[0],i=n[1],a=r[0],s=r[1],l=t[0];return(a-o)*(t[1]-i)-(s-i)*(l-o)>=-e},pointBetween:function(t,n,r){var o=t[1]-n[1],i=r[0]-n[0],a=t[0]-n[0],s=r[1]-n[1],l=a*i+o*s;return!(l<e)&&!(l-(i*i+s*s)>-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(e,n){return t.pointsSameX(e,n)&&t.pointsSameY(e,n)},pointsCompare:function(e,n){return t.pointsSameX(e,n)?t.pointsSameY(e,n)?0:e[1]<n[1]?-1:1:e[0]<n[0]?-1:1},pointsCollinear:function(t,n,r){var o=t[0]-n[0],i=t[1]-n[1],a=n[0]-r[0],s=n[1]-r[1];return Math.abs(o*s-a*i)<e},linesIntersect:function(t,n,r,o){var i=n[0]-t[0],a=n[1]-t[1],s=o[0]-r[0],l=o[1]-r[1],c=i*l-a*s;if(Math.abs(c)<e)return!1;var u=t[0]-r[0],d=t[1]-r[1],f=(s*d-l*u)/c,h=(i*d-a*u)/c,p={alongA:0,alongB:0,pt:[t[0]+f*i,t[1]+f*a]};return p.alongA=f<=-e?-2:f<e?-1:f-1<=-e?0:f-1<e?1:2,p.alongB=h<=-e?-2:h<e?-1:h-1<=-e?0:h-1<e?1:2,p},pointInsideRegion:function(t,n){for(var r=t[0],o=t[1],i=n[n.length-1][0],a=n[n.length-1][1],s=!1,l=0;l<n.length;l++){var c=n[l][0],u=n[l][1];u-o>e!=a-o>e&&(i-c)*(o-u)/(a-u)+c-r>e&&(s=!s),i=c,a=u}return s}};return t}},"./node_modules/polybooljs/lib/geojson.js":function(e,t){var n={toPolygon:function(e,t){function n(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function n(t){var n=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[n]})}for(var r=n(t[0]),o=1;o<t.length;o++)r=e.selectDifference(e.combine(r,n(t[o])));return r}if("Polygon"===t.type)return e.polygon(n(t.coordinates));if("MultiPolygon"===t.type){for(var r=e.segments({inverted:!1,regions:[]}),o=0;o<t.coordinates.length;o++)r=e.selectUnion(e.combine(r,n(t.coordinates[o])));return e.polygon(r)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,n){function r(e,n){return t.pointInsideRegion([.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1])],n)}function o(e){return{region:e,children:[]}}n=e.polygon(e.segments(n));var i=o(null);function a(e,t){for(var n=0;n<e.children.length;n++){if(r(t,(s=e.children[n]).region))return void a(s,t)}var i=o(t);for(n=0;n<e.children.length;n++){var s;r((s=e.children[n]).region,t)&&(i.children.push(s),e.children.splice(n,1),n--)}e.children.push(i)}for(var s=0;s<n.regions.length;s++){var l=n.regions[s];l.length<3||a(i,l)}function c(e,t){for(var n=0,r=e[e.length-1][0],o=e[e.length-1][1],i=[],a=0;a<e.length;a++){var s=e[a][0],l=e[a][1];i.push([s,l]),n+=l*r-s*o,r=s,o=l}return n<0!==t&&i.reverse(),i.push([i[0][0],i[0][1]]),i}var u=[];function d(e){var t=[c(e.region,!1)];u.push(t);for(var n=0;n<e.children.length;n++)t.push(f(e.children[n]))}function f(e){for(var t=0;t<e.children.length;t++)d(e.children[t]);return c(e.region,!0)}for(s=0;s<i.children.length;s++)d(i.children[s]);return u.length<=0?{type:"Polygon",coordinates:[]}:1==u.length?{type:"Polygon",coordinates:u[0]}:{type:"MultiPolygon",coordinates:u}}};e.exports=n},"./node_modules/polybooljs/lib/intersecter.js":function(e,t,n){var r=n("./node_modules/polybooljs/lib/linked-list.js");e.exports=function(e,t,n){function o(e,t,r){return{id:n?n.segmentId():-1,start:e,end:t,myFill:{above:r.myFill.above,below:r.myFill.below},otherFill:null}}var i=r.create();function a(e,n){i.insertBefore(e,(function(r){return function(e,n,r,o,i,a){var s=t.pointsCompare(n,i);return 0!==s?s:t.pointsSame(r,a)?0:e!==o?e?1:-1:t.pointAboveOrOnLine(r,o?i:a,o?a:i)?1:-1}(e.isStart,e.pt,n,r.isStart,r.pt,r.other.pt)<0}))}function s(e,t){var n=function(e,t){var n=r.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return a(n,e.end),n}(e,t);return function(e,t,n){var o=r.node({isStart:!1,pt:t.end,seg:t,primary:n,other:e,status:null});e.other=o,a(o,e.pt)}(n,e,t),n}function l(e,t){var r=o(t,e.seg.end,e.seg);return function(e,t){n&&n.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,a(e.other,e.pt)}(e,t),s(r,e.primary)}function c(o,a){var s=r.create();function c(e){return s.findTransition((function(n){var r,o,i,a,s,l;return(r=e,o=n.ev,i=r.seg.start,a=r.seg.end,s=o.seg.start,l=o.seg.end,t.pointsCollinear(i,s,l)?t.pointsCollinear(a,s,l)||t.pointAboveOrOnLine(a,s,l)?1:-1:t.pointAboveOrOnLine(i,s,l)?1:-1)>0}))}function u(e,r){var o=e.seg,i=r.seg,a=o.start,s=o.end,c=i.start,u=i.end;n&&n.checkIntersection(o,i);var d=t.linesIntersect(a,s,c,u);if(!1===d){if(!t.pointsCollinear(a,s,c))return!1;if(t.pointsSame(a,u)||t.pointsSame(s,c))return!1;var f=t.pointsSame(a,c),h=t.pointsSame(s,u);if(f&&h)return r;var p=!f&&t.pointBetween(a,c,u),m=!h&&t.pointBetween(s,c,u);if(f)return m?l(r,s):l(e,u),r;p&&(h||(m?l(r,s):l(e,u)),l(r,a))}else 0===d.alongA&&(-1===d.alongB?l(e,c):0===d.alongB?l(e,d.pt):1===d.alongB&&l(e,u)),0===d.alongB&&(-1===d.alongA?l(r,a):0===d.alongA?l(r,d.pt):1===d.alongA&&l(r,s));return!1}for(var d=[];!i.isEmpty();){var f=i.getHead();if(n&&n.vert(f.pt[0]),f.isStart){n&&n.segmentNew(f.seg,f.primary);var h=c(f),p=h.before?h.before.ev:null,m=h.after?h.after.ev:null;function g(){if(p){var e=u(f,p);if(e)return e}return!!m&&u(f,m)}n&&n.tempStatus(f.seg,!!p&&p.seg,!!m&&m.seg);var v,y=g();if(y){var b;if(e)(b=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below)&&(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=f.seg.myFill;n&&n.segmentUpdate(y.seg),f.other.remove(),f.remove()}if(i.getHead()!==f){n&&n.rewind(f.seg);continue}if(e)b=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below,f.seg.myFill.below=m?m.seg.myFill.above:o,f.seg.myFill.above=b?!f.seg.myFill.below:f.seg.myFill.below;else if(null===f.seg.otherFill)v=m?f.primary===m.primary?m.seg.otherFill.above:m.seg.myFill.above:f.primary?a:o,f.seg.otherFill={above:v,below:v};n&&n.status(f.seg,!!p&&p.seg,!!m&&m.seg),f.other.status=h.insert(r.node({ev:f}))}else{var x=f.status;if(null===x)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(s.exists(x.prev)&&s.exists(x.next)&&u(x.prev.ev,x.next.ev),n&&n.statusRemove(x.ev.seg),x.remove(),!f.primary){var _=f.seg.myFill;f.seg.myFill=f.seg.otherFill,f.seg.otherFill=_}d.push(f.seg)}i.getHead().remove()}return n&&n.done(),d}return e?{addRegion:function(e){for(var r,o,i,a=e[e.length-1],l=0;l<e.length;l++){r=a,a=e[l];var c=t.pointsCompare(r,a);0!==c&&s((o=c<0?r:a,i=c<0?a:r,{id:n?n.segmentId():-1,start:o,end:i,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(e){return c(e,!1)}}:{calculate:function(e,t,n,r){return e.forEach((function(e){s(o(e.start,e.end,e),!0)})),n.forEach((function(e){s(o(e.start,e.end,e),!1)})),c(t,r)}}}},"./node_modules/polybooljs/lib/linked-list.js":function(e,t){e.exports={create:function(){var e={root:{root:!0,next:null},exists:function(t){return null!==t&&t!==e.root},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(t,n){for(var r=e.root,o=e.root.next;null!==o;){if(n(o))return t.prev=o.prev,t.next=o,o.prev.next=t,void(o.prev=t);r=o,o=o.next}r.next=t,t.prev=r,t.next=null},findTransition:function(t){for(var n=e.root,r=e.root.next;null!==r&&!t(r);)n=r,r=r.next;return{before:n===e.root?null:n,after:r,insert:function(e){return e.prev=n,e.next=r,n.next=e,null!==r&&(r.prev=e),e}}}};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}}},"./node_modules/polybooljs/lib/segment-chainer.js":function(e,t){e.exports=function(e,t,n){var r=[],o=[];return e.forEach((function(e){var i=e.start,a=e.end;if(t.pointsSame(i,a))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{n&&n.chainStart(e);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u<r.length;u++){var d=(g=r[u])[0],f=(g[1],g[g.length-1]);g[g.length-2];if(t.pointsSame(d,i)){if(k(u,!0,!0))break}else if(t.pointsSame(d,a)){if(k(u,!0,!1))break}else if(t.pointsSame(f,i)){if(k(u,!1,!0))break}else if(t.pointsSame(f,a)&&k(u,!1,!1))break}if(c===s)return r.push([i,a]),void(n&&n.chainNew(i,a));if(c===l){n&&n.chainMatch(s.index);var h=s.index,p=s.matches_pt1?a:i,m=s.matches_head,g=r[h],v=m?g[0]:g[g.length-1],y=m?g[1]:g[g.length-2],b=m?g[g.length-1]:g[0],x=m?g[g.length-2]:g[1];return t.pointsCollinear(y,v,p)&&(m?(n&&n.chainRemoveHead(s.index,p),g.shift()):(n&&n.chainRemoveTail(s.index,p),g.pop()),v=y),t.pointsSame(b,p)?(r.splice(h,1),t.pointsCollinear(x,b,v)&&(m?(n&&n.chainRemoveTail(s.index,v),g.pop()):(n&&n.chainRemoveHead(s.index,v),g.shift())),n&&n.chainClose(s.index),void o.push(g)):void(m?(n&&n.chainAddHead(s.index,p),g.unshift(p)):(n&&n.chainAddTail(s.index,p),g.push(p)))}var _=s.index,w=l.index;n&&n.chainConnect(_,w);var j=r[_].length<r[w].length;s.matches_head?l.matches_head?j?(T(_),A(_,w)):(T(w),A(w,_)):A(w,_):l.matches_head?A(_,w):j?(T(_),A(w,_)):(T(w),A(_,w))}function k(e,t,n){return c.index=e,c.matches_head=t,c.matches_pt1=n,c===s?(c=l,!1):(c=null,!0)}function T(e){n&&n.chainReverse(e),r[e].reverse()}function A(e,o){var i=r[e],a=r[o],s=i[i.length-1],l=i[i.length-2],c=a[0],u=a[1];t.pointsCollinear(l,s,c)&&(n&&n.chainRemoveTail(e,s),i.pop(),s=l),t.pointsCollinear(s,c,u)&&(n&&n.chainRemoveHead(o,c),a.shift()),n&&n.chainJoin(e,o),r[e]=i.concat(a),r.splice(o,1)}})),o}},"./node_modules/polybooljs/lib/segment-selector.js":function(e,t){function n(e,t,n){var r=[];return e.forEach((function(e){var o=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[o]&&r.push({id:n?n.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[o],below:2===t[o]},otherFill:null})})),n&&n.selected(r),r}var r={union:function(e,t){return n(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return n(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return n(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return n(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return n(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};e.exports=r},"./node_modules/process/browser.js":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"./node_modules/regenerator-runtime/runtime.js":function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),s=new T(o||[]);return r(a,"_invoke",{value:_(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(A([])));v&&v!==t&&n.call(v,i)&&(m=v);var y=p.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var o;r(this,"_invoke",{value:function(r,i){function a(){return new t((function(o,a){!function r(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}(r,i,o,a)}))}return o=o?o.then(a,a):a()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function w(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=u(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:M}}function M(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(x.prototype),l(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),l(y,s,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"./node_modules/setimmediate/setImmediate.js":function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,l=1,c={},u=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){i.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(o=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return c[l]=o,r(l),l++},f.clearImmediate=h}function h(e){delete c[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n("./node_modules/@splunk/swc-mltk/node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/timers-browserify/main.js":function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/@splunk/swc-mltk/node_modules/webpack/buildin/global.js"))},"./node_modules/tinycolor2/cjs/tinycolor.js":function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=/^\s+/,n=/\s+$/;function r(o,i){if(i=i||{},(o=o||"")instanceof r)return o;if(!(this instanceof r))return new r(o,i);var a=function(r){var o,i,a,s={r:0,g:0,b:0},l=1,c=null,u=null,d=null,f=!1,h=!1;return"string"==typeof r&&(r=function(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r,o=!1;if(x[e])e=x[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=R.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=R.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=R.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=R.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=R.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=R.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=R.hex8.exec(e))?{r:T(r[1]),g:T(r[2]),b:T(r[3]),a:C(r[4]),format:o?"name":"hex8"}:(r=R.hex6.exec(e))?{r:T(r[1]),g:T(r[2]),b:T(r[3]),format:o?"name":"hex"}:(r=R.hex4.exec(e))?{r:T(r[1]+""+r[1]),g:T(r[2]+""+r[2]),b:T(r[3]+""+r[3]),a:C(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=R.hex3.exec(e))&&{r:T(r[1]+""+r[1]),g:T(r[2]+""+r[2]),b:T(r[3]+""+r[3]),format:o?"name":"hex"}}(r)),"object"==e(r)&&(I(r.r)&&I(r.g)&&I(r.b)?(o=r.r,i=r.g,a=r.b,s={r:255*j(o,255),g:255*j(i,255),b:255*j(a,255)},f=!0,h="%"===String(r.r).substr(-1)?"prgb":"rgb"):I(r.h)&&I(r.s)&&I(r.v)?(c=M(r.s),u=M(r.v),s=function(e,t,n){e=6*j(e,360),t=j(t,100),n=j(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(r.h,c,u),f=!0,h="hsv"):I(r.h)&&I(r.s)&&I(r.l)&&(c=M(r.s),d=M(r.l),s=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=j(e,360),t=j(t,100),n=j(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(r.h,c,d),f=!0,h="hsl"),r.hasOwnProperty("a")&&(l=r.a)),l=w(l),{ok:f,format:r.format||h,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:l}}(o);this._originalInput=o,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||a.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}function o(e,t,n){e=j(e,255),t=j(t,255),n=j(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:s}}function i(e,t,n){e=j(e,255),t=j(t,255),n=j(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:s}}function a(e,t,n,r){var o=[A(Math.round(e).toString(16)),A(Math.round(t).toString(16)),A(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function s(e,t,n,r){return[A(S(r)),A(Math.round(e).toString(16)),A(Math.round(t).toString(16)),A(Math.round(n).toString(16))].join("")}function l(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=k(n.s),r(n)}function c(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=k(n.s),r(n)}function u(e){return r(e).desaturate(100)}function d(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=k(n.l),r(n)}function f(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function h(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=k(n.l),r(n)}function p(e,t){var n=r(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,r(n)}function m(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function g(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(e).toHsl(),o=[r(e)],i=360/t,a=1;a<t;a++)o.push(r({h:(n.h+a*i)%360,s:n.s,l:n.l}));return o}function v(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function y(e,t,n){t=t||6,n=n||30;var o=r(e).toHsl(),i=360/n,a=[r(e)];for(o.h=(o.h-(i*t>>1)+720)%360;--t;)o.h=(o.h+i)%360,a.push(r(o));return a}function b(e,t){t=t||6;for(var n=r(e).toHsv(),o=n.h,i=n.s,a=n.v,s=[],l=1/t;t--;)s.push(r({h:o,s:i,v:a})),a=(a+l)%1;return s}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=w(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return a(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[A(Math.round(e).toString(16)),A(Math.round(t).toString(16)),A(Math.round(n).toString(16)),A(S(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*j(this._r,255))+"%",g:Math.round(100*j(this._g,255))+"%",b:Math.round(100*j(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*j(this._r,255))+"%, "+Math.round(100*j(this._g,255))+"%, "+Math.round(100*j(this._b,255))+"%)":"rgba("+Math.round(100*j(this._r,255))+"%, "+Math.round(100*j(this._g,255))+"%, "+Math.round(100*j(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(_[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var i=r(e);n="#"+s(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(d,arguments)},brighten:function(){return this._applyModification(f,arguments)},darken:function(){return this._applyModification(h,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(v,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},r.fromRatio=function(t,n){if("object"==e(t)){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]="a"===i?t[i]:M(t[i]));t=o}return r(t,n)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var o=r(e).toRgb(),i=r(t).toRgb(),a=n/100;return r({r:(i.r-o.r)*a+o.r,g:(i.g-o.g)*a+o.g,b:(i.b-o.b)*a+o.b,a:(i.a-o.a)*a+o.a})},r.readability=function(e,t){var n=r(e),o=r(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},r.isReadable=function(e,t,n){var o,i,a,s,l,c=r.readability(e,t);switch(i=!1,(a=n,s=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase(),l=(a.size||"small").toLowerCase(),"AA"!==s&&"AAA"!==s&&(s="AA"),"small"!==l&&"large"!==l&&(l="small"),o={level:s,size:l}).level+o.size){case"AAsmall":case"AAAlarge":i=c>=4.5;break;case"AAlarge":i=c>=3;break;case"AAAsmall":i=c>=7}return i},r.mostReadable=function(e,t,n){var o,i,a,s,l=null,c=0;i=(n=n||{}).includeFallbackColors,a=n.level,s=n.size;for(var u=0;u<t.length;u++)(o=r.readability(e,t[u]))>c&&(c=o,l=r(t[u]));return r.isReadable(e,l,{level:a,size:s})||!i?l:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var x=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},_=r.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function w(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function j(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function k(e){return Math.min(1,Math.max(0,e))}function T(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function S(e){return Math.round(255*parseFloat(e)).toString(16)}function C(e){return T(e)/255}var E,L,O,R=(L="[\\s|\\(]+("+(E="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+E+")[,|\\s]+("+E+")\\s*\\)?",O="[\\s|\\(]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")\\s*\\)?",{CSS_UNIT:new RegExp(E),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+O),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+O),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+O),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function I(e){return!!R.CSS_UNIT.exec(e)}return r}()},"./node_modules/webgl-context/index.js":function(e,t,n){var r=n("./node_modules/get-canvas-context/index.js");e.exports=function(e){return r("webgl",e)}},"./src/main/webapp/contrib_shim/Plotly/Plotly.es":function(e,t,n){var r,o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n("./node_modules/core-js/modules/es.symbol.js"),n("./node_modules/core-js/modules/es.symbol.description.js"),n("./node_modules/core-js/modules/es.symbol.iterator.js"),n("./node_modules/core-js/modules/es.array.iterator.js"),n("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.string.iterator.js"),n("./node_modules/core-js/modules/es.weak-map.js"),n("./node_modules/core-js/modules/esnext.weak-map.delete-all.js"),n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),r=[n("./node_modules/plotly.js/lib/core.js"),n("./node_modules/plotly.js/lib/scatter3d.js")],void 0===(o=function(t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=i(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}t=o(t),n=o(n),t.register(n),e.exports=t}.apply(t,r))||(e.exports=o)},"./src/main/webapp/util/colorPalette.es":function(e,t,n){var r,o;r=[t,n("./node_modules/core-js/modules/es.array.join.js"),n("./node_modules/core-js/modules/es.array.slice.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.regexp.exec.js"),n("./node_modules/core-js/modules/es.regexp.to-string.js"),n("./node_modules/core-js/modules/es.string.replace.js"),n("./node_modules/@splunk/themes/enterpriseDark.js")],void 0===(o=function(e,t,n,r,o,i,a,s){"use strict";var l;Object.defineProperty(e,"__esModule",{value:!0}),e.getColorByIndex=function(e,t,n){var r=e%c.length,o=c[r];if(null==o)return"";t&&(i=o,a=parseInt(i.replace(/[^0-9A-F]/gi,""),16),o=[a>>16,a>>8&255,255&a]);var i,a;n&&(o="0x".concat(o.slice(1)));return o},e.getColors=function(){return c.slice()},e.getGradientColor=function(e,t,n){var r=this.getColorByIndex(e,!0),o=this.getColorByIndex(t,!0),i=1-n,a=n,s=[Math.round(r[0]*i+o[0]*a),Math.round(r[1]*i+o[1]*a),Math.round(r[2]*i+o[2]*a)];return"#".concat(u.apply(this,s))},e.getHexColorbyIndex=function(e){var t=c[e].slice(1);return"0x".concat(t)},e.panelColors=e.highchartsDarkTheme=void 0,s=(l=s)&&l.__esModule?l:{default:l};e.highchartsDarkTheme={chart:{backgroundColor:s.default.gray20,plotBorderColor:s.default.gray30},title:{style:{color:s.default.gray98}},subtitle:{style:{color:s.default.gray98}},xAxis:{gridLineColor:s.default.gray45,labels:{style:{color:s.default.gray98}},lineColor:s.default.gray45,minorGridLineColor:s.default.gray30,tickColor:s.default.gray45,title:{style:{color:s.default.gray92}}},yAxis:{gridLineColor:s.default.gray45,labels:{style:{color:s.default.gray98}},lineColor:s.default.gray45,minorGridLineColor:s.default.gray30,tickColor:s.default.gray45,title:{style:{color:s.default.gray92}}},tooltip:{backgroundColor:s.default.black,style:{color:s.default.white}},plotOptions:{series:{dataLabels:{color:s.default.gray92},marker:{lineColor:s.default.gray22}},boxplot:{fillColor:s.default.gray30},candlestick:{lineColor:s.default.white},errorbar:{color:s.default.white}},legend:{itemStyle:{color:s.default.gray98},itemHoverStyle:{color:s.default.white},itemHiddenStyle:{color:s.default.gray30}},credits:{style:{color:s.default.gray22}},labels:{style:{color:s.default.white}},drilldown:{activeAxisLabelStyle:{color:s.default.white},activeDataLabelStyle:{color:s.default.white}},navigation:{buttonOptions:{symbolStroke:s.default.gray96,theme:{fill:s.default.gray30}}},rangeSelector:{buttonTheme:{fill:s.default.gray30,stroke:s.default.black,style:{color:s.default.gray96},states:{hover:{fill:s.default.gray45,stroke:s.default.black,style:{color:s.default.white}},select:{fill:s.default.black,stroke:s.default.black,style:{color:s.default.white}}}},inputBoxBorderColor:s.default.gray30,inputStyle:{backgroundColor:s.default.gray20,color:s.default.gray80},labelStyle:{color:s.default.gray80}},navigator:{handles:{backgroundColor:s.default.gray22,borderColor:s.default.gray96},outlineColor:s.default.gray30,maskFill:"rgba(255,255,255,0.1)",series:{color:s.default.cat30ColorL,lineColor:s.default.accentColorL40},xAxis:{gridLineColor:s.default.gray30}},scrollbar:{barBackgroundColor:s.default.gray80,barBorderColor:s.default.gray80,buttonArrowColor:s.default.gray96,buttonBackgroundColor:s.default.gray30,buttonBorderColor:s.default.gray30,rifleColor:s.default.white,trackBackgroundColor:s.default.gray22,trackBorderColor:s.default.gray22},legendBackgroundColor:"rgba(0, 0, 0, 0.5)",background2:s.default.gray30,dataLabelsColor:s.default.gray96,textColor:s.default.gray96,contrastTextColor:s.default.white,maskColor:"rgba(255,255,255,0.3)"};var c=["#006d9c","#4fa484","#ec9960","#af575a","#b6c75a","#62b3b2","#294e70","#738795","#edd051","#bd9872","#5a4575","#7ea77b","#708794","#d7c6b7","#339bb2","#55672d","#e6e1ae","#96907f","#87bc65","#cf7e60","#7b5547","#77d6d8","#4a7f2c","#f589ad","#6a2c5d","#aaabae","#9a7438","#a4d563","#7672a4","#184b81","#7fb6ce","#a7d2c2","#f6ccb0","#d7abad","#dbe3ad","#b1d9d9","#94a7b8","#b9c3ca","#f6e8a8","#deccb9","#b7acca","#b2cab0","#a5b2bf","#e9ddd4","#66c3d0","#aab396","#f3f0d7","#c1bcb3","#b6d7a3","#e1b2a1","#dec4ba","#abe6e8","#91b282","#f8b7ce","#cba3c2","#cccdce","#c3ab89","#c7e6a3","#ada9c8","#a4bbe0"];function u(e,t,n){var r;return r=(e<<16|t<<8|n).toString(16).toUpperCase(),new Array(7-r.length).join("0")+r}e.panelColors={selected:"#4092c9",hovered:"#a4d7f4"}}.apply(t,r))||(e.exports=o)},"./src/main/webapp/util/options.es":function(e,t,n){var r;void 0===(r=function(n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={plotPointThreshold:1e3,maxSeriesThreshold:50,smallLoaderScale:.4,largeLoaderScale:1,highchartsValueDecimals:2,defaultModelName:"default_model_name",defaultRoleName:"default",defaultVizHeight:400};n.default={getOptionByName:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=r[e];return null!=n?n:t}};e.exports=t.default}.apply(t,[t]))||(e.exports=r)},"./src/main/webapp/util/visualizationUtil.es":function(e,t,n){var r,o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n("./node_modules/core-js/modules/es.symbol.js"),n("./node_modules/core-js/modules/es.symbol.description.js"),n("./node_modules/core-js/modules/es.symbol.iterator.js"),n("./node_modules/core-js/modules/es.symbol.to-primitive.js"),n("./node_modules/core-js/modules/es.array.filter.js"),n("./node_modules/core-js/modules/es.array.iterator.js"),n("./node_modules/core-js/modules/es.date.to-primitive.js"),n("./node_modules/core-js/modules/es.number.constructor.js"),n("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),n("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),n("./node_modules/core-js/modules/es.string.iterator.js"),n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),r=[t,n("./node_modules/core-js/modules/es.array.concat.js"),n("./node_modules/core-js/modules/es.function.name.js"),n("./node_modules/core-js/modules/es.object.keys.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.regexp.exec.js"),n("./node_modules/core-js/modules/es.string.match.js"),n("./node_modules/@splunk/splunk-utils/config.js")],void 0===(o=function(e,t,n,r,o,a,s,l){"use strict";function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.findFieldIndex=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.reduce((function(e,n,r){return n.name===t?r:e}),-1)},e.findFieldIndices=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t,n){return u(u({},e),{},d({},t.name,n))}),{})},e.getCurrentTheme=function(){return window.__splunk_page_theme__||"light"},e.getSeriesGroup=function(e){return[e].concat(null!=e.linkedSeries?e.linkedSeries:[])},e.getVisualizationConfig=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=e.getPropertyNamespaceInfo().propertyNamespace,i=t["".concat(o).concat(n)];return null!=i?i:r},e.getVizId=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.app;return"".concat(t,".").concat(e)},e.removeChildElements=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},e.setVizConfig=void 0,e.sortLegendLabels=function(e,t){if("string"==typeof e&&"string"==typeof t){var n=e.match(/(\d+)$/),r=t.match(/(\d+)$/);if(null!=n&&null!=r){var o=parseInt(n[0],10),i=parseInt(r[0],10);if(!isNaN(o)&&!isNaN(i))return o-i}}else if("number"==typeof e&&"number"==typeof t)return e-t;return 0},e.splitKeyToString=function(e){try{var t=JSON.parse(e);return Object.keys(t).reduce((function(e,n){return"".concat(e," ").concat(n,"=").concat(t[n]," ")}),"")}catch(t){return e}};e.setVizConfig=function(e,t,n){return e.settings.set("".concat(e.settings.attributes.type,".").concat(t),n)}}.apply(t,r))||(e.exports=o)},"shared/controls/Messages":function(e,t,n){var r,o;r=[t,n("./node_modules/core-js/modules/es.array.filter.js"),n("./node_modules/core-js/modules/es.array.from.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.string.iterator.js"),n("./node_modules/core-js/modules/web.dom-collections.for-each.js")],void 0===(o=function(e,t,n,r,o,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeAlert=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e){var n=a(e),r=Array.from(n.children).filter((function(e){return e.classList.contains("alert")}));r.forEach((function(e){return n.removeChild(e)})),t&&(n.style.display="none")}},e.removeDropdownMessage=function(e){s(e,"")},e.setAlert=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4?arguments[4]:void 0;if(null!=e){var i=a(e);o&&(i.style.display="block");var s=document.createElement("div");s.classList.add("alert","alert-".concat(n)),""!==r&&s.classList.add(r);var l=document.createElement("i");l.classList.add("icon-alert");var c=document.createElement("p");c.textContent=t,s.appendChild(l),s.appendChild(c),i.appendChild(s)}},e.setDropdownMessage=s;var a=function(e){return null!=e.get&&"function"==typeof e.get?e.get(0):e};function s(e,t){if(null!=e&&null!=e._$messageEl){e._$messageEl.text(t),e._$messageEl.attr("title",t);try{e._$messageEl.tooltip("destroy"),e._$messageEl.tooltip({animation:!1})}catch(e){console.error(e)}}}}.apply(t,r))||(e.exports=o)}})}));