UNPKG

plotly-js-material-design-theme

Version:
1 lines 17 kB
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("plotly-js-material-design",[],r):"object"==typeof exports?exports["plotly-js-material-design"]=r():t["plotly-js-material-design"]=r()}(window,function(){return function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=3)}([function(t,r,n){(function(t,n){var e="__lodash_hash_undefined__",o=9007199254740991,c="[object Arguments]",i="[object Array]",u="[object Boolean]",a="[object Date]",l="[object Error]",f="[object Function]",s="[object GeneratorFunction]",d="[object Map]",p="[object Number]",h="[object Object]",y="[object Promise]",b="[object RegExp]",v="[object Set]",_="[object String]",g="[object Symbol]",w="[object WeakMap]",j="[object ArrayBuffer]",E="[object DataView]",m="[object Float32Array]",x="[object Float64Array]",F="[object Int8Array]",O="[object Int16Array]",k="[object Int32Array]",A="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",P="[object Uint32Array]",S=/\w*$/,D=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,$={};$[m]=$[x]=$[F]=$[O]=$[k]=$[A]=$[B]=$[z]=$[P]=!0,$[c]=$[i]=$[j]=$[u]=$[E]=$[a]=$[l]=$[f]=$[d]=$[p]=$[h]=$[b]=$[v]=$[_]=$[w]=!1;var I={};I[c]=I[i]=I[j]=I[E]=I[u]=I[a]=I[m]=I[x]=I[F]=I[O]=I[k]=I[d]=I[p]=I[h]=I[b]=I[v]=I[_]=I[g]=I[A]=I[B]=I[z]=I[P]=!0,I[l]=I[f]=I[w]=!1;var T="object"==typeof t&&t&&t.Object===Object&&t,C="object"==typeof self&&self&&self.Object===Object&&self,U=T||C||Function("return this")(),R=r&&!r.nodeType&&r,L=R&&"object"==typeof n&&n&&!n.nodeType&&n,V=L&&L.exports===R,W=V&&T.process,G=function(){try{return W&&W.binding("util")}catch(t){}}(),N=G&&G.isTypedArray;function q(t,r){return t.set(r[0],r[1]),t}function H(t,r){return t.add(r),t}function J(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}function K(t,r){for(var n=-1,e=t?t.length:0;++n<e&&!1!==r(t[n],n,t););return t}function Q(t,r,n,e){var o=-1,c=t?t.length:0;for(e&&c&&(n=t[++o]);++o<c;)n=r(n,t[o],o,t);return n}function X(t){var r=!1;if(null!=t&&"function"!=typeof t.toString)try{r=!!(t+"")}catch(t){}return r}function Y(t){var r=-1,n=Array(t.size);return t.forEach(function(t,e){n[++r]=[e,t]}),n}function Z(t,r){return function(n){return t(r(n))}}function tt(t){var r=-1,n=Array(t.size);return t.forEach(function(t){n[++r]=t}),n}var rt,nt=Array.prototype,et=Function.prototype,ot=Object.prototype,ct=U["__core-js_shared__"],it=(rt=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||""))?"Symbol(src)_1."+rt:"",ut=et.toString,at=ot.hasOwnProperty,lt=ut.call(Object),ft=ot.toString,st=RegExp("^"+ut.call(at).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=V?U.Buffer:void 0,pt=U.Symbol,ht=U.Uint8Array,yt=Z(Object.getPrototypeOf,Object),bt=Object.create,vt=ot.propertyIsEnumerable,_t=nt.splice,gt=Object.getOwnPropertySymbols,wt=dt?dt.isBuffer:void 0,jt=Z(Object.keys,Object),Et=Math.max,mt=Yt(U,"DataView"),xt=Yt(U,"Map"),Ft=Yt(U,"Promise"),Ot=Yt(U,"Set"),kt=Yt(U,"WeakMap"),At=Yt(Object,"create"),Bt=or(mt),zt=or(xt),Pt=or(Ft),St=or(Ot),Dt=or(kt),Mt=pt?pt.prototype:void 0,$t=Mt?Mt.valueOf:void 0;function It(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function Tt(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function Ct(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function Ut(t){this.__data__=new Tt(t)}function Rt(t,r){var n=ur(t)||ir(t)?function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}(t.length,String):[],e=n.length,o=!!e;for(var c in t)!r&&!at.call(t,c)||o&&("length"==c||rr(c,e))||n.push(c);return n}function Lt(t,r,n){(void 0===n||cr(t[r],n))&&("number"!=typeof r||void 0!==n||r in t)||(t[r]=n)}function Vt(t,r,n){var e=t[r];at.call(t,r)&&cr(e,n)&&(void 0!==n||r in t)||(t[r]=n)}function Wt(t,r){for(var n=t.length;n--;)if(cr(t[n][0],r))return n;return-1}function Gt(t,r,n,e,o,i,l){var y;if(e&&(y=i?e(t,o,i,l):e(t)),void 0!==y)return y;if(!pr(t))return t;var w,D,M,$,T,C,U=ur(t);if(U){if(y=function(t){var r=t.length,n=t.constructor(r);return r&&"string"==typeof t[0]&&at.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!r)return Kt(t,y)}else{var R=tr(t),L=R==f||R==s;if(fr(t))return function(t,n){if(r)return t.slice();var e=new t.constructor(t.length);return t.copy(e),e}(t);if(R==h||R==c||L&&!i){if(X(t))return i?t:{};if(y="function"!=typeof(T=L?{}:t).constructor||nr(T)?{}:pr(C=yt(T))?bt(C):{},!r)return $=w=t,D=(M=y)&&Qt($,_r($),M),Qt(w,Zt(w),D)}else{if(!I[R])return i?t:{};y=function(t,r,n,e){var o,c,i,l,f,s,h,y,w,D=t.constructor;switch(r){case j:return Jt(t);case u:case a:return new D(+t);case E:return y=t,w=e?Jt(y.buffer):y.buffer,new y.constructor(w,y.byteOffset,y.byteLength);case m:case x:case F:case O:case k:case A:case B:case z:case P:return s=t,h=e?Jt(s.buffer):s.buffer,new s.constructor(h,s.byteOffset,s.length);case d:return f=t,Q(e?n(Y(f),!0):Y(f),q,new f.constructor);case p:case _:return new D(t);case b:return(l=new(i=t).constructor(i.source,S.exec(i))).lastIndex=i.lastIndex,l;case v:return c=t,Q(e?n(tt(c),!0):tt(c),H,new c.constructor);case g:return o=t,$t?Object($t.call(o)):{}}}(t,R,Gt,r)}}l||(l=new Ut);var V,W,G,N=l.get(t);if(N)return N;if(l.set(t,y),!U)var J=n?(W=Zt,G=_r(V=t),ur(V)?G:function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}(G,W(V))):_r(t);return K(J||t,function(o,c){J&&(o=t[c=o]),Vt(y,c,Gt(o,r,n,e,c,t,l))}),y}function Nt(t){if(!pr(t))return function(t){var r=[];if(null!=t)for(var n in Object(t))r.push(n);return r}(t);var r=nr(t),n=[];for(var e in t)("constructor"!=e||!r&&at.call(t,e))&&n.push(e);return n}function qt(t,r,n,e,o){if(t!==r){if(!ur(r)&&!br(r))var c=Nt(r);K(c||r,function(i,u){if(c&&(i=r[u=i]),pr(i))o||(o=new Ut),function(t,r,n,e,o,c,i){var u=t[n],a=r[n],l=i.get(a);if(l)return Lt(t,n,l);var f,s,d=c?c(u,a,n+"",t,r,i):void 0,p=void 0===d;p&&(ur(d=a)||br(a)?d=ur(u)?u:lr(u)?Kt(u):Gt(a,!(p=!1)):function(t){if(!hr(t)||ft.call(t)!=h||X(t))return!1;var r=yt(t);if(null===r)return!0;var n=at.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==lt}(a)||ir(a)?d=ir(u)?Qt(f=u,ar(s=f)?Rt(s,!0):Nt(s)):!pr(u)||e&&sr(u)?Gt(a,!(p=!1)):u:p=!1),p&&(i.set(a,d),o(d,a,e,c,i),i.delete(a)),Lt(t,n,d)}(t,r,u,n,qt,e,o);else{var a=e?e(t[u],i,u+"",t,r,o):void 0;void 0===a&&(a=i),Lt(t,u,a)}})}}function Ht(t,r){return r=Et(void 0===r?t.length-1:r,0),function(){for(var n=arguments,e=-1,o=Et(n.length-r,0),c=Array(o);++e<o;)c[e]=n[r+e];e=-1;for(var i=Array(r+1);++e<r;)i[e]=n[e];return i[r]=c,J(t,this,i)}}function Jt(t){var r=new t.constructor(t.byteLength);return new ht(r).set(new ht(t)),r}function Kt(t,r){var n=-1,e=t.length;for(r||(r=Array(e));++n<e;)r[n]=t[n];return r}function Qt(t,r,n,e){n||(n={});for(var o=-1,c=r.length;++o<c;){var i=r[o],u=e?e(n[i],t[i],i,n,t):void 0;Vt(n,i,void 0===u?t[i]:u)}return n}function Xt(t,r){var n,e,o=t.__data__;return("string"==(e=typeof(n=r))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?o["string"==typeof r?"string":"hash"]:o.map}function Yt(t,r){var n,e=null==(n=t)?void 0:n[r];return function(t){return!(!pr(t)||(r=t,it&&it in r))&&(sr(t)||X(t)?st:D).test(or(t));var r}(e)?e:void 0}It.prototype.clear=function(){this.__data__=At?At(null):{}},It.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},It.prototype.get=function(t){var r=this.__data__;if(At){var n=r[t];return n===e?void 0:n}return at.call(r,t)?r[t]:void 0},It.prototype.has=function(t){var r=this.__data__;return At?void 0!==r[t]:at.call(r,t)},It.prototype.set=function(t,r){return this.__data__[t]=At&&void 0===r?e:r,this},Tt.prototype.clear=function(){this.__data__=[]},Tt.prototype.delete=function(t){var r=this.__data__,n=Wt(r,t);return!(n<0||(n==r.length-1?r.pop():_t.call(r,n,1),0))},Tt.prototype.get=function(t){var r=this.__data__,n=Wt(r,t);return n<0?void 0:r[n][1]},Tt.prototype.has=function(t){return-1<Wt(this.__data__,t)},Tt.prototype.set=function(t,r){var n=this.__data__,e=Wt(n,t);return e<0?n.push([t,r]):n[e][1]=r,this},Ct.prototype.clear=function(){this.__data__={hash:new It,map:new(xt||Tt),string:new It}},Ct.prototype.delete=function(t){return Xt(this,t).delete(t)},Ct.prototype.get=function(t){return Xt(this,t).get(t)},Ct.prototype.has=function(t){return Xt(this,t).has(t)},Ct.prototype.set=function(t,r){return Xt(this,t).set(t,r),this},Ut.prototype.clear=function(){this.__data__=new Tt},Ut.prototype.delete=function(t){return this.__data__.delete(t)},Ut.prototype.get=function(t){return this.__data__.get(t)},Ut.prototype.has=function(t){return this.__data__.has(t)},Ut.prototype.set=function(t,r){var n=this.__data__;if(n instanceof Tt){var e=n.__data__;if(!xt||e.length<199)return e.push([t,r]),this;n=this.__data__=new Ct(e)}return n.set(t,r),this};var Zt=gt?Z(gt,Object):function(){return[]},tr=function(t){return ft.call(t)};function rr(t,r){return!!(r=null==r?o:r)&&("number"==typeof t||M.test(t))&&-1<t&&t%1==0&&t<r}function nr(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||ot)}function er(t,r,n,e,o,c){return pr(t)&&pr(r)&&(c.set(r,t),qt(t,r,void 0,er,c),c.delete(r)),t}function or(t){if(null!=t){try{return ut.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function cr(t,r){return t===r||t!=t&&r!=r}function ir(t){return lr(t)&&at.call(t,"callee")&&(!vt.call(t,"callee")||ft.call(t)==c)}(mt&&tr(new mt(new ArrayBuffer(1)))!=E||xt&&tr(new xt)!=d||Ft&&tr(Ft.resolve())!=y||Ot&&tr(new Ot)!=v||kt&&tr(new kt)!=w)&&(tr=function(t){var r=ft.call(t),n=r==h?t.constructor:void 0,e=n?or(n):void 0;if(e)switch(e){case Bt:return E;case zt:return d;case Pt:return y;case St:return v;case Dt:return w}return r});var ur=Array.isArray;function ar(t){return null!=t&&dr(t.length)&&!sr(t)}function lr(t){return hr(t)&&ar(t)}var fr=wt||function(){return!1};function sr(t){var r=pr(t)?ft.call(t):"";return r==f||r==s}function dr(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=o}function pr(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function hr(t){return!!t&&"object"==typeof t}var yr,br=N?(yr=N,function(t){return yr(t)}):function(t){return hr(t)&&dr(t.length)&&!!$[ft.call(t)]},vr=Ht(function(t){return t.push(void 0,er),J(wr,void 0,t)});function _r(t){return ar(t)?Rt(t):function(t){if(!nr(t))return jt(t);var r=[];for(var n in Object(t))at.call(t,n)&&"constructor"!=n&&r.push(n);return r}(t)}var gr,wr=(gr=function(t,r,n,e){qt(t,r,n,e)},Ht(function(t,r){var n=-1,e=r.length,o=1<e?r[e-1]:void 0,c=2<e?r[2]:void 0;for(o=3<gr.length&&"function"==typeof o?(e--,o):void 0,c&&function(t,r,n){if(!pr(n))return!1;var e=typeof r;return!!("number"==e?ar(n)&&rr(r,n.length):"string"==e&&r in n)&&cr(n[r],t)}(r[0],r[1],c)&&(o=e<3?void 0:o,e=1),t=Object(t);++n<e;){var i=r[n];i&&gr(t,i,n,o)}return t}));n.exports=vr}).call(this,n(1),n(2)(t))},function(t,r){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,r,n){"use strict";n.r(r);var e=n(0),o=n.n(e),c=function(t){return o()(t,{font:{family:"Roboto, sans-serif"},titlefont:{size:16,color:"#757575"},colorway:["#4285F4","#DB4437","#F4B400","#3F51B5","#E91E63","#9C27B0","#673AB7","#F44336","#2196F3","#03A9F4","#00BCD4","#009688"],xaxis:{rangeslider:{visible:!1,borderwidth:0},zerolinecolor:"#9E9E9E",gridcolor:"#E0E0E0",titlefont:{color:"#424242",size:12},tickfont:{color:"#757575",size:12},showgrid:!1},yaxis:{zerolinecolor:"#9E9E9E",gridcolor:"#E0E0E0",titlefont:{color:"#424242",size:12},tickfont:{color:"#757575",size:12}},polar:{radialaxis:{showticklabels:!1,gridcolor:"#E0E0E0",ticks:"",linewidth:0},angularaxis:{tickcolor:"#B4B4B4",linecolor:"#E0E0E0"}},scene:{xaxis:{spikecolor:"#E0E0E0"},yaxis:{spikecolor:"#E0E0E0"},zaxis:{spikecolor:"#E0E0E0"}},geo:{rivercolor:"#A2D6FF",lakecolor:"#A2D6FF",showocean:!0,oceancolor:"#A2D6FF",showcountries:!0,landcolor:"#EDEBE7",countrycolor:"#D3D3D3",coastlinewidth:.5,coastlinecolor:"#B4B4B4",showframe:!1,projection:{type:"mercator"}},ternary:{aaxis:{color:"#9E9E9E",gridcolor:"#E0E0E0"},baxis:{color:"#9E9E9E",gridcolor:"#E0E0E0"},caxis:{color:"#9E9E9E",gridcolor:"#E0E0E0"}},bargroupgap:.02,legend:{font:{size:16,color:"#757575"}}})},i=function(t){return o()(t,{fillcolor:"rgba(171, 71, 188, 0.3)",line:{width:2},marker:{size:10,opacity:1}})},u=function(t){return o()(t,{})},a=function(t){return o()(t,{aaxis:{color:"#4285F4",gridwidth:2},baxis:{color:"#4285F4",gridwidth:2}})},l=function(t){return o()(t,{autocolorscale:!1,colorscale:[["0","#4285f4"],["1","#93d5ed"]],colorbar:{len:1,outlinewidth:0,tickfont:{color:"#757575"}}})},f=function(t){return o()(t,{contours:{showlines:!1},autocolorscale:!1,colorscale:[["0","#4285f4"],["1","#93d5ed"]],colorbar:{len:1,outlinewidth:0,tickfont:{color:"#757575"}}})},s=function(t){return o()(t,{autocolorscale:!1,colorscale:[["0","#4285f4"],["1","#93d5ed"]],colorbar:{len:1,outlinewidth:0,tickfont:{color:"#757575"}}})},d=function(t){return o()(t,{hole:.75,textposition:"none",marker:{colors:["#4285f4","#45a5f5","#93d5ed","#93d5ed"]}})},p=function(t){return o()(t,{})},h=function(t){return o()(t,{colorscale:[["0","#4285f4"],["1","#93d5ed"]],colorbar:{len:1,outlinewidth:0,tickfont:{color:"#757575"}}})},y=function(t){return o()(t,{decreasing:{line:{color:"#3F51B5",width:1}},increasing:{line:{color:"#3F51B5",width:1}}})},b=function(t){return o()(t,{decreasing:{line:{color:"#3F51B5",width:1},fillcolor:"#3F51B5"},increasing:{line:{color:"#3F51B5",width:1},fillcolor:"#fff"}})},v=function(t){return o()(t,{line:{width:0}})},_=function(t){return o()(t,{line:{width:2},fillcolor:"rgba(171, 71, 188, 0.3)"})},g=function(t){return o()(t,{line:{color:"#4285F4",width:1},fillcolor:"#FFF"})},w=function(t){return o()(t,{marker:{line:{color:"#9E9E9E",width:0}},autocolorscale:!1,colorscale:[["0","#4285f4"],["1","#93d5ed"]],colorbar:{len:1,outlinewidth:0,tickfont:{color:"#757575"}}})},j=function(t){return o()(t,{surfacecolor:"rgba(171, 71, 188, 0.3)",line:{width:2},marker:{size:6}})},E=function(t){return o()(t,{fillcolor:"rgba(171, 71, 188, 0.3)",line:{width:2},marker:{size:10}})},m=function(t){return o()(t,{link:{color:"rgba(171, 71, 188, 0.3)"},node:{color:"#4285F4",line:{width:0},thickness:10},textfont:{color:"#757575",size:12}})},x=function(t){return o()(t,{line:{width:10,colorbar:{len:1,outlinewidth:0,tickfont:{color:"#757575"}}},tickfont:{color:"#757575",size:12},rangefont:{color:"#757575",size:12}})},F=function(t){return o()(t,{marker:{size:10,color:["#4285F4","#DB4437","#F4B400","#3F51B5","#E91E63","#9C27B0","#673AB7","#F44336","#2196F3","#03A9F4"],line:{width:0},showscale:!1,colorbar:{len:1,outlinewidth:0,tickfont:{color:"#757575"}}}})},O=function(t){return o()(t,{contours:{showlines:!1},colorscale:[["0","#4285f4"],["1","#93d5ed"]],colorbar:{len:1,outlinewidth:0,tickfont:{color:"#757575"}}})};n.d(r,"layout",function(){return c}),n.d(r,"scatter",function(){return i}),n.d(r,"bar",function(){return u}),n.d(r,"carpet",function(){return a}),n.d(r,"cone",function(){return l}),n.d(r,"contour",function(){return f}),n.d(r,"heatmap",function(){return s}),n.d(r,"pie",function(){return d}),n.d(r,"histogram",function(){return p}),n.d(r,"histogram2d",function(){return h}),n.d(r,"ohlc",function(){return y}),n.d(r,"candlestick",function(){return b}),n.d(r,"violin",function(){return v}),n.d(r,"scatterpolar",function(){return _}),n.d(r,"box",function(){return g}),n.d(r,"choropleth",function(){return w}),n.d(r,"scatter3d",function(){return j}),n.d(r,"scatterternary",function(){return E}),n.d(r,"sankey",function(){return m}),n.d(r,"parcoords",function(){return x}),n.d(r,"scattergeo",function(){return F}),n.d(r,"histogram2dcontour",function(){return O})}])});