From aaaa0901078567bfa3ba565b2a2fa28e8c83f23f Mon Sep 17 00:00:00 2001 From: BrokenTalentsFun CI Date: Wed, 13 Jun 2018 16:09:25 +0200 Subject: automatic build --- dist/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist') diff --git a/dist/build.js b/dist/build.js index adad777..fb8b17d 100644 --- a/dist/build.js +++ b/dist/build.js @@ -25,6 +25,6 @@ e.exports=function(){"use strict";var e={installed:!1,p:Promise.resolve(),versio * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version 3.3.1 */ -a=function(){"use strict";function e(e){return"function"==typeof e}var a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,i=void 0,s=void 0,l=function(e,t){m[o]=e,m[o+1]=t,2===(o+=2)&&(s?s(g):w())};var c="undefined"!=typeof window?window:void 0,d=c||{},u=d.MutationObserver||d.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var e=setTimeout;return function(){return e(g,1)}}var m=new Array(1e3);function g(){for(var e=0;eo*v)||w)for(n=0;nO&&jL&&(L=j);u/=(L-S)/(2*z),S=l.l2r(S),L=l.l2r(L),l.range=l._input.range=A=e[1]||a[1]<=e[0])&&o[0]t[0])return!0}return!1}(s,l,p)?(f.push(t),p.push([s,l])):c=[0];var d=n.plotgroup.selectAll(".bg").data(c);d.enter().append("rect").classed("bg",!0),d.exit().remove(),d.each(function(){n.bg=d;var e=n.plotgroup.node();e.insertBefore(this,e.childNodes[0])})});var h=o._bgLayer.selectAll(".bg").data(f);h.enter().append("rect").classed("bg",!0),h.exit().remove(),h.each(function(e){o._plots[e].bg=r.select(this)});var m=[];return d.each(function(t){var n=o._plots[t],r=a.Axes.getFromId(e,t,"x"),s=a.Axes.getFromId(e,t,"y");r.setScale(),s.setScale(),n.bg&&o._has("cartesian")&&n.bg.call(c.setRect,r._offset-i.p,s._offset-i.p,r._length+2*i.p,s._length+2*i.p).call(l.fill,o.plot_bgcolor).style("stroke-width",0),n.clipId="clip"+o._uid+t+"plot";var d=o._defs.selectAll("g.clips").selectAll("#"+n.clipId).data([0]);d.enter().append("clipPath").attr({class:"plotclip",id:n.clipId}).append("rect"),d.selectAll("rect").attr({width:r._length,height:s._length}),n.plot.call(c.setTranslate,r._offset,s._offset),n.plot.call(c.setClipUrl,n.clipId);var u=c.crispRound(e,r.linewidth,1),f=c.crispRound(e,s.linewidth,1),p=i.p+f,h="M"+-p+",",g="h"+(r._length+2*p),v="free"===r.anchor&&-1===m.indexOf(r._id),b=i.h*(1-(r.position||0))+u/2%1,y=r.anchor===s._id&&(r.mirror||"top"!==r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[s._id+"bottom"],x=s._length+i.p+u/2,w=r.anchor===s._id&&(r.mirror||"top"===r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[s._id+"top"],k=-i.p-u/2,_=i.p,T=y?0:u,A=w?0:u,M=","+(-_-A)+"v"+(s._length+2*_+A+T),C="free"===s.anchor&&-1===m.indexOf(s._id),S=i.w*(s.position||0)+f/2%1,L=s.anchor===r._id&&(s.mirror||"right"!==s.side)||"all"===s.mirror||"allticks"===s.mirror||s.mirrors&&s.mirrors[r._id+"left"],z=-i.p-f/2,O=s.anchor===r._id&&(s.mirror||"right"===s.side)||"all"===s.mirror||"allticks"===s.mirror||s.mirrors&&s.mirrors[r._id+"right"],D=r._length+i.p+f/2;r._linepositions[t]=[y?x:void 0,w?k:void 0,v?b:void 0],r.anchor===s._id?r._linepositions[t][3]="top"===r.side?k:x:v&&(r._linepositions[t][3]=b),s._linepositions[t]=[L?z:void 0,O?D:void 0,C?S:void 0],s.anchor===r._id?s._linepositions[t][3]="right"===s.side?D:z:C&&(s._linepositions[t][3]=S);var j="translate("+r._offset+","+s._offset+")",P=j,I=j;v&&(P="translate("+r._offset+","+i.t+")",k+=s._offset-i.t,x+=s._offset-i.t),C&&(I="translate("+i.l+","+s._offset+")",z+=r._offset-i.l,D+=r._offset-i.l),o._has("cartesian")&&(n.xlines.attr("transform",P).attr("d",(y?h+x+g:"")+(w?h+k+g:"")+(v?h+b+g:"")||"M0,0").style("stroke-width",u+"px").call(l.stroke,r.showline?r.linecolor:"rgba(0,0,0,0)"),n.ylines.attr("transform",I).attr("d",(L?"M"+z+M:"")+(O?"M"+D+M:"")+(C?"M"+S+M:"")||"M0,0").attr("stroke-width",f+"px").call(l.stroke,s.showline?s.linecolor:"rgba(0,0,0,0)")),n.xaxislayer.attr("transform",P),n.yaxislayer.attr("transform",I),n.gridlayer.attr("transform",j),n.zerolinelayer.attr("transform",j),n.draglayer.attr("transform",j),v&&m.push(r._id),C&&m.push(s._id)}),a.Axes.makeClipPaths(e),t.drawMainTitle(e),u.manage(e),e._promises.length&&Promise.all(e._promises)},t.drawMainTitle=function(e){var t=e._fullLayout;d.draw(e,"gtitle",{propContainer:t,propName:"title",dfltName:"Plot",attributes:{x:t.width/2,y:t._size.t/2,"text-anchor":"middle"}})},t.doTraceStyle=function(e){for(var t=0;t0&&i.log("Clearing previous rejected promises from queue."),e._promises=[]},t.cleanLayout=function(e){var t,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1);var r=l.list({_fullLayout:e});for(t=0;t3?(g.x=1.02,g.xanchor="left"):g.x<-2&&(g.x=-.02,g.xanchor="right"),g.y>3?(g.y=1.02,g.yanchor="bottom"):g.y<-2&&(g.y=-.02,g.yanchor="top")),"rotate"===e.dragmode&&(e.dragmode="orbit"),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var v=s.getSubplotIds(e,"gl3d");for(t=0;t0)return e.substr(0,t)}t.hasParent=function(e,t){for(var n=h(t);n;){if(n in e)return!0;n=h(n)}return!1}},function(e,t,n){"use strict";var r=n(109),a=n(34),o=n(111),i=n(35),s=n(164).sorterAsc,l=n(4);t.containerArrayMatch=n(169);var c=t.isAddVal=function(e){return"add"===e||a(e)},d=t.isRemoveVal=function(e){return null===e||"remove"===e};t.applyContainerArrayChanges=function(e,t,n,a){var u=t.astr,f=l.getComponentMethod(u,"supplyLayoutDefaults"),p=l.getComponentMethod(u,"draw"),h=l.getComponentMethod(u,"drawOne"),m=a.replot||a.recalc||f===o||p===o,g=e.layout,v=e._fullLayout;if(n[""]){Object.keys(n).length>1&&i.warn("Full array edits are incompatible with other edits",u);var b=n[""][""];if(d(b))t.set(null);else{if(!Array.isArray(b))return i.warn("Unrecognized full array edit value",u,b),!0;t.set(b)}return!m&&(f(g,v),p(e),!0)}var y,x,w,k,_,T,A,M=Object.keys(n).map(Number).sort(s),C=t.get(),S=C||[],L=r(v,u).get(),z=[],O=-1,D=S.length;for(y=0;yS.length-(A?0:1))i.warn("index out of range",u,w);else if(void 0!==T)_.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",u,w),d(T)?z.push(w):A?("add"===T&&(T={}),S.splice(w,0,T),L&&L.splice(w,0,{})):i.warn("Unrecognized full object edit value",u,w,T),-1===O&&(O=w);else for(x=0;x<_.length;x++)r(S[w],_[x]).set(k[_[x]]);for(y=z.length-1;y>=0;y--)S.splice(z[y],1),L&&L.splice(z[y],1);if(S.length?C||t.set(S):t.set(null),m)return!1;if(f(g,v),h!==o){var j;if(-1===O)j=M;else{for(D=Math.max(S.length,D),j=[],y=0;y=O);y++)j.push(w);for(y=O;y=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function C(e){e.selectAll(".select-outline").remove()}function S(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function L(e){return-1!==["lasso","select"].indexOf(e)}function z(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,w)/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"}e.exports=function(e,t,n,O,D,j,P,I){var E,N,R,B,F,$,W,V,H,q,U,G,Y,X=e._fullLayout,K=e._fullLayout._zoomlayer,Z=P+I==="nsew";function J(){N=[t.xaxis],R=[t.yaxis];var n=N[0],r=R[0];$=n._length,W=r._length;var a=X._axisConstraintGroups,o=[n._id],i=[r._id];E=[t].concat(P&&I?t.overlays:[]);for(var l=1;l.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform","translate("+n+", "+r+")").attr("d",a+"Z")}(K,re,B,F,ae="M0,0H"+$+"V"+W+"H0V0"),le=function(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+t+", "+n+")").attr("d","M0,0Z")}(K,B,F),C(K)}(0,n,r)):"pan"===o?(ce.moveFn=ye,ce.doneFn=pe,C(K)):L(o)&&(ce.xaxes=N,ce.yaxes=R,v(t,n,r,ce,o))}};f.init(ce);var de={};function ue(t,n){if(e._transitioningWithDuration)return!1;var r=Math.max(0,Math.min($,t+ee)),a=Math.max(0,Math.min(W,n+te)),o=Math.abs(r-ee),i=Math.abs(a-te);function s(){ie="",ne.r=ne.l,ne.t=ne.b,le.attr("d","M0,0Z")}ne.l=Math.min(ee,r),ne.r=Math.max(ee,r),ne.t=Math.min(te,a),ne.b=Math.max(te,a),U?o>w||i>w?(ie="xy",o/$>i/W?(i=o*W/$,te>a?ne.t=te-i:ne.b=te+i):(o=i*$/W,ee>r?ne.l=ee-o:ne.r=ee+o),le.attr("d",z(ne))):s():!H||i.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}(se,le,ne,ae,oe,re),oe=!0}function fe(t,n){if(Math.min(ne.h,ne.w)<2*x)return 2===n&&we(),S(e);"xy"!==ie&&"x"!==ie||T(N,ne.l/$,ne.r/$,de,G),"xy"!==ie&&"y"!==ie||T(R,(W-ne.b)/W,(W-ne.t)/W,de,Y),S(e),ke(ie),k&&e.data&&e._context.showTips&&(s.notifier("Double-click to
zoom back out","long"),k=!1)}function pe(t,n){var a=1===(P+I).length;if(t)ke();else if(2!==n||a){if(1===n&&a){var i=P?R[0]:N[0],s="s"===P||"w"===I?0:1,c=i._name+".range["+s+"]",d=function(e,t){var n,a=e.range[t],o=Math.abs(a-e.range[1-t]);return"date"===e.type?a:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(o)/Math.LN10))+3,r.format("."+n+"g")(Math.pow(10,a))):(n=Math.floor(Math.log(Math.abs(a))/Math.LN10)-Math.floor(Math.log(o)/Math.LN10)+4,r.format("."+String(n)+"g")(a))}(i,s),u="left",f="middle";if(i.fixedrange)return;P?(f="n"===P?"top":"bottom","right"===i.side&&(u="right")):"e"===I&&(u="right"),e._context.showAxisRangeEntryBoxes&&r.select(Q).call(l.makeEditable,{gd:e,immediate:!0,background:X.paper_bgcolor,text:String(d),fill:i.tickfont?i.tickfont.color:"#444",horizontalAlign:u,verticalAlign:f}).on("edit",function(t){var n=i.d2r(t);void 0!==n&&o.relayout(e,c,n)})}}else we()}var he=[0,0,$,W],me=null,ge=y.REDRAWDELAY,ve=t.mainplot?X._plots[t.mainplot]:t;function be(t){if(e._context.scrollZoom||X._enablescrollzoom){if(e._transitioningWithDuration)return s.pauseEvent(t);var n=e.querySelector(".plotly");if(J(),!(n.scrollHeight-n.clientHeight>10||n.scrollWidth-n.clientWidth>10)){clearTimeout(me);var r=-t.deltaY;if(isFinite(r)||(r=t.wheelDelta/10),isFinite(r)){var a,o=Math.exp(-Math.min(Math.max(r,-20),20)/100),i=ve.draglayer.select(".nsewdrag").node().getBoundingClientRect(),l=(t.clientX-i.left)/i.width,c=(i.bottom-t.clientY)/i.height;if(I||U){for(I||(l=.5),a=0;a4/3-s?i:s}},function(e,t,n){"use strict";e.exports=function(){var e,t=[],n=-1,r=!1;function a(e,t){return e?(r=!0,e[t](),r=!1,this):this}return{add:function(e){return r?this:(t.splice(n+1,t.length-n),t.push(e),n=t.length-1,this)},setCallback:function(t){e=t},undo:function(){var r=t[n];return r?(a(r,"undo"),n-=1,e&&e(r.undo),this):this},redo:function(){var r=t[n+1];return r?(a(r,"redo"),n+=1,e&&e(r.redo),this):this},clear:function(){t=[],n=-1},hasUndo:function(){return-1!==n},hasRedo:function(){return n*:not(.chart-root)").remove(),t=t?l(t,n):n,a||(a=i.Axis()),o=i.adapter.plotly().convert(t),a.config(o).render(d),e.data=t.data,e.layout=t.layout,c.fillLayout(e),t}return f.isPolar=!0,f.svg=function(){return a.svg()},f.getConfig=function(){return t},f.getLiveConfig=function(){return i.adapter.plotly().convert(a.getLiveConfig(),!0)},f.getLiveScales=function(){return{t:a.angularScale(),r:a.radialScale()}},f.setUndoPoint=function(){var e,r,a=this,o=i.util.cloneJson(t);e=o,r=n,u.add({undo:function(){r&&a(r)},redo:function(){a(e)}}),n=i.util.cloneJson(o)},f.undo=function(){u.undo()},f.redo=function(){u.redo()},f},c.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),a=e.framework&&e.framework.svg&&e.framework.svg(),i={width:800,height:600,paper_bgcolor:o.background,_container:t,_paperdiv:n,_paper:a};e._fullLayout=l(i,e.layout)}},function(e,t,n){"use strict";(e.exports=n(146)).manager=n(270)},function(e,t,n){"use strict";var r=n(1),a=n(2),o=n(8),i=n(0),s=n(90),l=n(147),c=n(4),d=n(9),u=n(271),f=n(145),p=n(7),h=n(32),m=n(33),g=n(13),v=n(257),b=n(256),y=n(254),x=n(14),w=n(253),k=w.enforce,_=w.clean,T=n(18);function A(e,t){e._fullLayout._paperdiv.style("background","white"),o.defaultConfig.setBackground(e,t)}function M(e,t){var n,r,a=t+1,o=[];for(n=0;n=e.data.length||a<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(a,r+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+n+" must be unique.")}}function S(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]),C(e,t,"currentIndices"),void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&C(e,n,"newIndices"),void 0!==n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function L(e,t,n,r,o,s){!function(e,t,n,r){var a=i.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!i.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 o in C(e,n,"indices"),t){if(!Array.isArray(t[o])||t[o].length!==n.length)throw new Error("attribute "+o+" must be an array of length equal to indices array length");if(a&&(!(o in r)||!Array.isArray(r[o])||r[o].length!==t[o].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,c,d,u=function(e,t,n,r){var o,s,l,c,d,u=i.isPlainObject(r),f=[];for(var p in Array.isArray(n)||(n=[n]),n=M(n,e.data.length-1),t)for(var h=0;h=0&&dW.range[0]?[1,2]:[2,1]);else{var q=W.range[0],U=W.range[1];V?(q<=0&&U<=0&&_(N+".autorange",!0),q<=0?q=U/1e6:U<=0&&(U=q/1e6),_(N+".range[0]",Math.log(q)/Math.LN10),_(N+".range[1]",Math.log(U)/Math.LN10)):(_(N+".range[0]",Math.pow(10,q)),_(N+".range[1]",Math.pow(10,U)))}else _(N+".autorange",!0);c.getComponentMethod("annotations","convertCoords")(e,B,O,_),c.getComponentMethod("images","convertCoords")(e,B,O,_)}else _(N+".autorange",!0);i.nestedProperty(l,N+"._inputRange").set(null)}else if(I.match(x.AX_NAME_PATTERN)){var G=i.nestedProperty(l,L).get(),Y=(O||{}).type;Y&&"-"!==Y||(Y="linear"),c.getComponentMethod("annotations","convertCoords")(e,G,Y,_),c.getComponentMethod("images","convertCoords")(e,G,Y,_)}var X=v.containerArrayMatch(L);if(X){n=X.array,r=X.index;var K=X.property,Z=(i.nestedProperty(s,n)||[])[r]||{};if(""===r)-1===L.indexOf("updatemenus")&&(y.docalc=!0);else if(""===K){var J=O;v.isAddVal(O)?k[L]=null:v.isRemoveVal(O)?(k[L]=Z,J=Z):i.warn("unrecognized full object value",t),(A(J,"x")||A(J,"y")&&-1===L.indexOf("updatemenus"))&&(y.docalc=!0)}else!A(Z,"x")&&!A(Z,"y")||i.containsAny(L,["color","opacity","align","dash","updatemenus"])||(y.docalc=!0);p[n]||(p[n]={});var Q=p[n][r];Q||(Q=p[n][r]={}),Q[K]=O,delete t[L]}else if("reverse"===I)R.range?R.range.reverse():(_(N+".autorange",!0),R.range=[1,0]),B.autorange?y.docalc=!0:y.doplot=!0;else{var ee=String(z.parts[1]||"");0===P.indexOf("scene")?"camera"===z.parts[1]?y.docamera=!0:y.doplot=!0:0===P.indexOf("geo")?y.doplot=!0:0===P.indexOf("ternary")?y.doplot=!0:"paper_bgcolor"===L?y.doplot=!0:"margin"===P||"autorange"===ee||"rangemode"===ee||"type"===ee||"domain"===ee||"fixedrange"===ee||"scaleanchor"===ee||"scaleratio"===ee||-1!==L.indexOf("calendar")||L.match(/^(bar|box|font)/)?y.docalc=!0:!l._has("gl2d")||-1===L.indexOf("axis")&&"plot_bgcolor"!==L?!l._has("gl2d")||"dragmode"!==L||"lasso"!==O&&"select"!==O||"lasso"===F||"select"===F?"hiddenlabels"===L?y.docalc=!0:-1!==P.indexOf("legend")?y.dolegend=!0:-1!==L.indexOf("title")?y.doticks=!0:-1!==P.indexOf("bgcolor")?y.dolayoutstyle=!0:D>1&&i.containsAny(ee,["tick","exponent","grid","zeroline"])?y.doticks=!0:-1!==L.indexOf(".linewidth")&&-1!==L.indexOf("axis")?y.doticks=y.dolayoutstyle=!0:D>1&&-1!==ee.indexOf("line")?y.dolayoutstyle=!0:D>1&&"mirror"===ee?y.doticks=y.dolayoutstyle=!0:"margin.pad"===L?y.doticks=y.dolayoutstyle=!0:-1!==["hovermode","dragmode"].indexOf(L)||-1!==L.indexOf("spike")?y.domodebar=!0:-1===["height","width","autosize"].indexOf(L)&&(y.doplot=!0):y.docalc=!0:y.doplot=!0,z.set(O)}}}for(n in p){v.applyContainerArrayChanges(e,i.nestedProperty(s,n),p[n],y)||(y.doplot=!0)}var te=l._axisConstraintGroups;for(M in C)for(r=0;r=a.length?a[0]:a[e]:a}function l(e){return Array.isArray(o)?e>=o.length?o[0]:o[e]:o}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(o,u){function f(){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,d.transition(e,t.frame.data,t.frame.layout,b.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 p(){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&&f()};t()}var h,m,g=0;function v(e){return Array.isArray(a)?g>=a.length?e.transitionOpts=a[g]:e.transitionOpts=a[0]:e.transitionOpts=a,g++,e}var y=[],x=void 0===t||null===t,w=Array.isArray(t);if(!x&&!w&&i.isPlainObject(t))y.push({type:"object",data:v(i.extendFlat({},t))});else if(x||-1!==["string","number"].indexOf(typeof t))for(h=0;h0&&TT)&&A.push(m);y=A}}y.length>0?function(t){if(0!==t.length){for(var a=0;a=0;r--)if(i.isPlainObject(t[r])){var m=(f[t[r].name]||{}).name,g=t[r].name;m&&g&&"number"==typeof g&&f[m]&&(c++,i.warn('addFrames: overwriting frame "'+f[m].name+'" with a frame whose name of type "number" also equates to "'+m+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),c>5&&i.warn("addFrames: This API call has yielded too many warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),h.push({frame:d.supplyFrameDefaults(t[r]),index:n&&void 0!==n[r]&&null!==n[r]?n[r]:p+r})}h.sort(function(e,t){return e.index>t.index?-1:e.index=0;r--){if("number"==typeof(a=h[r].frame).name&&i.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;f[a.name="frame "+e._transitionData._counter++];);if(f[a.name]){for(o=0;o=0;n--)r=t[n],o.push({type:"delete",index:r}),s.unshift({type:"insert",index:r,value:a[r]});var c=d.modifyFrames,u=d.modifyFrames,f=[e,s],p=[e,o];return l&&l.add(e,c,f,u,p),d.modifyFrames(e,o)},o.purge=function(e){var t=(e=b.getGraphDiv(e))._fullLayout||{},n=e._fullData||[];return d.cleanPlot([],{},n,t),d.purge(e),s.purge(e),t._container&&t._container.remove(),delete e._context,delete e._replotPending,delete e._mouseDownTime,delete e._legendMouseDownTime,delete e._hmpixcount,delete e._hmlumcount,e}},function(e,t,n){"use strict";e.exports=function(e,t){var n=document.createElement("a"),r="download"in n,a=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);return new Promise(function(o,i){"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent)&&i(new Error("IE < 10 unsupported")),a&&(document.location.href="data:application/octet-stream"+e.slice(e.search(/[,;]/)),o(t)),t||(t="download"),r&&(n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),o(t)),"undefined"!=typeof navigator&&navigator.msSaveBlob&&(navigator.msSaveBlob(new Blob([e]),t),o(t)),i(new Error("download error"))})}},function(e,t,n){"use strict";var r=n(8),a=n(9),o=n(6),i=n(0),s=n(96),l=n(97),c=e.exports={};function d(e,t){var n,a,i=t.currentTarget,s=i.getAttribute("data-attr"),l=i.getAttribute("data-val")||!0,c=e._fullLayout,d={},u=o.list(e,null,!0),f="on";if("zoom"===s){var p,h="in"===l?.5:2,m=(1+h)/2,g=(1-h)/2;for(a=0;a1)return g(["resetViews","toggleHover"]),s(m,n);d&&(g(["zoom3d","pan3d","orbitRotation","tableRotation"]),g(["resetCameraDefault3d","resetCameraLastSave3d"]),g(["hoverClosest3d"]));u&&(g(["zoomInGeo","zoomOutGeo","resetGeo"]),g(["hoverClosestGeo"]));var v=function(e){for(var t=r.list({_fullLayout:e},null,!0),n=!0,a=0;a0?".":"")+o;a.isPlainObject(i)?l(i,t,s,r+1):t(s,o,i)}})}t.manageCommandObserver=function(e,n,r,i){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){o(e,c,s.cache),s.check=function(){if(l){var t=o(e,c,s.cache);return t.changed&&i&&void 0!==s.lookupTable[t.value]&&(s.disable(),Promise.resolve(i({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 d=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0;e.each(function(e){var t,c=e[0].trace,d=c.error_x||{},u=c.error_y||{};c.ids&&(t=function(e){return e.id});var f=o.hasMarkers(c)&&c.marker.maxdisplayed>0;if(u.visible||d.visible){var p=r.select(this).selectAll("g.errorbar").data(e,t);p.exit().remove(),p.style("opacity",1);var h=p.enter().append("g").classed("errorbar",!0);l&&h.style("opacity",0).transition().duration(n.duration).style("opacity",1),p.each(function(e){var t=r.select(this),o=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),a(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),a(r.xs)||(r.noXS=!0,r.xs=t.c2p(e.xs,!0)));return r}(e,i,s);if(!f||e.vis){var c;if(u.visible&&a(o.x)&&a(o.yh)&&a(o.ys)){var p=u.width;c="M"+(o.x-p)+","+o.yh+"h"+2*p+"m-"+p+",0V"+o.ys,o.noYS||(c+="m-"+p+",0h"+2*p);var h=t.select("path.yerror");!h.size()?h=t.append("path").classed("yerror",!0):l&&(h=h.transition().duration(n.duration).ease(n.easing)),h.attr("d",c)}if(d.visible&&a(o.y)&&a(o.xh)&&a(o.xs)){var m=(d.copy_ystyle?u:d).width;c="M"+o.xh+","+(o.y-m)+"v"+2*m+"m0,-"+m+"H"+o.xs,o.noXS||(c+="m0,-"+m+"v"+2*m);var g=t.select("path.xerror");!g.size()?g=t.append("path").classed("xerror",!0):l&&(g=g.transition().duration(n.duration).ease(n.easing)),g.attr("d",c)}}})}})}},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 a=e.array,o=e.arrayminus;return n||void 0===o?function(e,t){var n=+a[t];return[n,n]}:function(e,t){return[+o[t],+a[t]]}}var i=r(t,e.value),s=r(t,e.valueminus);return n||void 0===e.valueminus?function(e){var t=i(e);return[t,t]}:function(e){return[s(e),i(e)]}}},function(e,t,n){"use strict";var r=n(0),a=n(18).id2name;e.exports=function(e,t,n,o,i){var s=i._axisConstraintGroups,l=t._id,c=l.charAt(0);if(!t.fixedrange&&(n("constrain"),r.coerce(e,t,{constraintoward:{valType:"enumerated",values:"x"===c?["left","center","right"]:["bottom","middle","top"],dflt:"x"===c?"center":"middle"}},"constraintoward"),e.scaleanchor)){var d=function(e,t,n,r){var o,i,s,l,c=r[a(t)].type,d=[];for(i=0;i0;o&&(r="array");var i=n("categoryorder",r);"array"===i&&n("categoryarray"),o||"array"!==i||(t.categoryorder="trace")}}},function(e,t,n){"use strict";var r=n(4),a=n(153),o=n(18).name2id;function i(e){return{v:"x",h:"y"}[e.orientation||"v"]}function s(e,t){var n=i(e),a=r.traceIs(e,"box"),o=r.traceIs(e._fullInput||{},"candlestick");return a&&!o&&t===n&&void 0===e[n]&&void 0===e[n+"0"]}e.exports=function(e,t,n,l,c){c&&(t._name=c,t._id=o(c)),"-"===n("type")&&(!function(e,t){if("-"!==e.type)return;var n=e._id,o=n.charAt(0);-1!==n.indexOf("scene")&&(n=o);var l=function(e,t,n){for(var r=0;r0?Math.max(t,a):0}}},function(e,t,n){"use strict";e.exports={entityToUnicode:{mu:"μ","#956":"μ",amp:"&","#28":"&",lt:"<","#60":"<",gt:">","#62":">",nbsp:" ","#160":" ",times:"×","#215":"×",plusmn:"±","#177":"±",deg:"°","#176":"°"}}},function(e,t,n){"use strict";var r=n(1),a=n(21),o=n(2),i=n(3);function s(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return a(t).toRgbString()}e.exports=function(e,t){t=t||{};for(var n=e.domain,l=e.range,c=l.length,d=new Array(c),u=0;u/g),i=0;ie.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},function(e,t,n){"use strict";var r,a,o=n(1),i=n(2),s=n(35).error,l=n(168),c=n(15),d=c.BADNUM,u=c.ONEDAY,f=c.ONEHOUR,p=c.ONEMIN,h=c.ONESEC,m=c.EPOCHJD,g=n(4),v=o.time.format.utc,b=/^\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,y=/^\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 w(e){return e&&g.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function k(e,t){return String(e+Math.pow(10,t)).substr(1)}t.dateTick0=function(e,t){return w(e)?t?g.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:g.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"},t.dfltRange=function(e){return w(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))return(e=Number(e)-e.getTimezoneOffset()*p)>=r&&e<=a?e:d;if("string"!=typeof e&&"number"!=typeof e)return d;e=String(e);var o=w(n),i=e.charAt(0);!o||"G"!==i&&"g"!==i||(e=e.substr(1),n="");var s=o&&"chinese"===n.substr(0,7),l=e.match(s?y:b);if(!l)return d;var c=l[1],v=l[3]||"1",k=Number(l[5]||1),_=Number(l[7]||0),T=Number(l[9]||0),A=Number(l[11]||0);if(o){if(2===c.length)return d;var M;c=Number(c);try{var C=g.getComponentMethod("calendars","getCal")(n);if(s){var S="i"===v.charAt(v.length-1);v=parseInt(v,10),M=C.newDate(c,C.toMonthIndex(c,v,S),k)}else M=C.newDate(c,Number(v),k)}catch(e){return d}return M?(M.toJD()-m)*u+_*f+T*p+A*h:d}c=2===c.length?(Number(c)+2e3-x)%100+x:Number(c),v-=1;var L=new Date(Date.UTC(2e3,v,k,_,T));return L.setUTCFullYear(c),L.getUTCMonth()!==v?d:L.getUTCDate()!==k?d:L.getTime()+A*h},r=t.MIN_MS=t.dateTime2ms("-9999"),a=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,n){return t.dateTime2ms(e,n)!==d};var _=90*u,T=3*f,A=5*p;function M(e,t,n,r,a){if((t||n||r||a)&&(e+=" "+k(t,2)+":"+k(n,2),(r||a)&&(e+=":"+k(r,2),a))){for(var o=4;a%10==0;)o-=1,a/=10;e+="."+k(a,o)}return e}t.ms2DateTime=function(e,t,n){if("number"!=typeof e||!(e>=r&&e<=a))return d;t||(t=0);var o,i,s,c,b,y,x=Math.floor(10*l(e+.05,1)),k=Math.round(e-x/10);if(w(n)){var C=Math.floor(k/u)+m,S=Math.floor(l(e,u));try{o=g.getComponentMethod("calendars","getCal")(n).fromJD(C).formatDate("yyyy-mm-dd")}catch(e){o=v("G%Y-%m-%d")(new Date(k))}if("-"===o.charAt(0))for(;o.length<11;)o="-0"+o.substr(1);else for(;o.length<10;)o="0"+o;i=t<_?Math.floor(S/f):0,s=t<_?Math.floor(S%f/p):0,c=t=r+u&&e<=a-u))return d;var t=Math.floor(10*l(e+.05,1)),n=new Date(Math.round(e-t/10));return M(o.time.format("%Y-%m-%d")(n),n.getHours(),n.getMinutes(),n.getSeconds(),10*n.getUTCMilliseconds()+t)},t.cleanDate=function(e,n,r){if(t.isJSDate(e)||"number"==typeof e){if(w(r))return s("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("unrecognized date",e),n;return e};var C=/%\d?f/g;var S=[59,59.9,59.99,59.999,59.9999];function L(e,t){var n=l(e+.05,u),r=k(Math.floor(n/f),2)+":"+k(l(Math.floor(n/p),60),2);if("M"!==t){i(t)||(t=0);var a=(100+Math.min(l(e/h,60),S[t])).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+a}return r}var z=v("%Y"),O=v("%b %Y"),D=v("%b %-d"),j=v("%b %-d, %Y");function P(e){return e.formatDate("yyyy")}t.formatDate=function(e,t,n,r){var a,o;if(r=w(r)&&r,t)return function(e,t,n){e=e.replace(C,function(e){var n=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0"});var r=new Date(Math.floor(t+.05));if(w(n))try{e=g.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(e){return"Invalid"}return v(e)(r)}(t,e,r);if(r)try{var i=Math.floor((e+.05)/u)+m,s=g.getComponentMethod("calendars","getCal")(r).fromJD(i);"y"===n?o=P(s):"m"===n?o=function(e){return e.formatDate("M yyyy")}(s):"d"===n?(a=P(s),o=function(e){return e.formatDate("M d")}(s)):(a=function(e){return e.formatDate("M d, yyyy")}(s),o=L(e,n))}catch(e){return"Invalid"}else{var l=new Date(Math.floor(e+.05));"y"===n?o=z(l):"m"===n?o=O(l):"d"===n?(a=z(l),o=D(l)):(a=j(l),o=L(e,n))}return o+(a?"\n"+a:"")};var I=3*u;t.incrementMonth=function(e,t,n){n=w(n)&&n;var r=l(e,u);if(e=Math.round(e-r),n)try{var a=Math.round(e/u)+m,o=g.getComponentMethod("calendars","getCal")(n),i=o.fromJD(a);return t%12?o.add(i,t,"m"):o.add(i,t/12,"y"),(i.toJD()-m)*u+r}catch(t){s("invalid ms "+e+" in calendar "+n)}var c=new Date(e+I);return c.setUTCMonth(c.getUTCMonth()+t)+r-I},t.findExactDates=function(e,t){for(var n,r,a=0,o=0,s=0,l=0,c=w(t)&&g.getComponentMethod("calendars","getCal")(t),d=0;da.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"],coerceFunction:function(e,t,n,a){e%1||!r(e)||void 0!==a.min&&ea.max?t.set(n):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 a="number"==typeof e;!0!==r.strict&&a?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){a(e).isValid()?t.set(e):t.set(n)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",s.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(i(e,n))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?(Math.abs(e)>180&&(e-=360*Math.round(e/360)),t.set(+e)):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:[],coerceFunction:function(e,t,n){var r=n.length;"string"==typeof e&&e.substr(0,r)===n&&c.test(e.substr(r))?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt,r=n.length;return e===n||"string"==typeof e&&!(e.substr(0,r)!==n||!c.test(e.substr(r)))}},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("string"==typeof e)if(-1===(r.extras||[]).indexOf(e)){for(var a=e.split("+"),o=0;o