META-INF.resources.webjars.bycdao-ui.cdao.DUI.js Maven / Gradle / Ivy
///
///
/*!
* iCheck v1.0.2, http://git.io/arlzeA
* ===================================
* Powerful jQuery and Zepto plugin for checkboxes and radio buttons customization
*
* (c) 2013 Damir Sultanov, http://fronteed.com
* MIT Licensed
*////
/*!
* fancyBox - jQuery Plugin
* version: 2.1.5 (Fri, 14 Jun 2013)
* @requires jQuery v1.6 or later
*
* Examples at http://fancyapps.com/fancybox/
* License: www.fancyapps.com/fancybox/#license
*
* Copyright 2012 Janis Skarnelis - [email protected]
*
*////
/*!
* jQuery Form Plugin
* version: 3.51.0-2014.06.20
* Requires jQuery v1.5 or later
* Copyright (c) 2014 M. Alsup
* Examples and documentation at: http://malsup.com/jquery/form/
* Project repository: https://github.com/malsup/form
* Dual licensed under the MIT and GPL licenses.
* https://github.com/malsup/form#copyright-and-license
*/
/*global ActiveXObject */
// AMD support
///
/*!
* Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/
* Dual-licensed under the BSD or MIT licenses
*////
/* jquery.nicescroll 3.5.0 InuYaksa*2013 MIT http://areaaperta.com/nicescroll *////
/*
jQuery Tags Input Plugin 1.3.3
Copyright (c) 2011 XOXCO, Inc
Documentation for this plugin lives here:
http://xoxco.com/clickable/jquery-tags-input
Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php
[email protected]
*////
/*!
* strength.js
* Original author: @aaronlumsden
* Further changes, comments: @aaronlumsden
* Licensed under the MIT license
*////
/*jshint curly:true, eqeqeq:true, laxbreak:true, noempty:false */
/*
The MIT License (MIT)
Copyright (c) 2007-2013 Einar Lielmanis and contributors.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Style HTML
---------------
Written by Nochum Sossonko, ([email protected])
Based on code initially developed by: Einar Lielmanis,
http://jsbeautifier.org/
Usage:
style_html(html_source);
style_html(html_source, options);
The options are:
indent_size (default 4) — indentation size,
indent_char (default space) — character to indent with,
max_char (default 250) - maximum amount of characters per line (0 = disable)
brace_style (default "collapse") - "collapse" | "expand" | "end-expand"
put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line.
unformatted (defaults to inline tags) - list of tags, that shouldn't be reformatted
indent_scripts (default normal) - "keep"|"separate"|"normal"
e.g.
style_html(html_source, {
'indent_size': 2,
'indent_char': ' ',
'max_char': 78,
'brace_style': 'expand',
'unformatted': ['a', 'sub', 'sup', 'b', 'i', 'u']
});
*////
/* ===========================================================
* bootstrap-inputmask.js j2
* http://twitter.github.com/bootstrap/javascript.html#tooltips
* Based on Masked Input plugin by Josh Bush (digitalbush.com)
* ===========================================================
* Copyright 2012 Jasny BV, Netherlands.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================================================== *////
/* ========================================================================
* bootstrap-switch - v3.3.2
* http://www.bootstrap-switch.org
* ========================================================================
* Copyright 2012-2013 Mattia Larentis
*
* ========================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================================================================
*////
/* =========================================================
* bootstrap-treeview.js v1.0.0
* =========================================================
* Copyright 2013 Jonathan Miles
* Project URL : http://www.jondmiles.com/bootstrap-treeview
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================================================= *////
/*!
* jQuery Steps v1.0.6 - 04/27/2014
* Copyright (c) 2014 Rafael Staib (http://www.jquery-steps.com)
* Licensed under MIT http://www.opensource.org/licenses/MIT
*////
/*! jQuery Validation Plugin - v1.13.0 - 7/1/2014
* http://jqueryvalidation.org/
* Copyright (c) 2014 Jörn Zaefferer; Licensed MIT *////
/*! jQuery Validation Plugin - v1.13.1 - 10/14/2014
* http://jqueryvalidation.org/
* Copyright (c) 2014 Jörn Zaefferer; Licensed MIT *////
/*!
* FullCalendar v1.6.4
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*////
/*! layer-v2.4 弹层组件 License LGPL http://layer.layui.com/ By 贤心 *//*
FastClick: polyfill to remove click delays on browsers with touch UIs.
@version 0.6.11
@codingstandard ftlabs-jsv2
@copyright The Financial Times Limited [All Rights Reserved]
@license MIT License (see LICENSE.txt)
*/
(function(){function c(){this.Diff_Timeout=1;this.Diff_EditCost=4;this.Match_Threshold=.5;this.Match_Distance=1E3;this.Patch_DeleteThreshold=.5;this.Patch_Margin=4;this.Match_MaxBits=32}c.prototype.diff_main=function(c,b,h,l){"undefined"==typeof l&&(l=0>=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1E3*this.Diff_Timeout);if(null==c||null==b)throw Error("Null input. (diff_main)");if(c==b)return c?[[0,c]]:[];"undefined"==typeof h&&(h=!0);var e=h,n=this.diff_commonPrefix(c,b);h=c.substring(0,n);c=c.substring(n);b=b.substring(n);var n=this.diff_commonSuffix(c,b),d=c.substring(c.length-n);c=c.substring(0,c.length-n);b=b.substring(0,b.length-n);c=this.diff_compute_(c,b,e,l);h&&c.unshift([0,h]);d&&c.push([0,d]);this.diff_cleanupMerge(c);return c};c.prototype.diff_compute_=function(c,b,h,l){if(!c)return[[1,b]];if(!b)return[[-1,c]];var e=c.length>b.length?c:b,n=c.length>b.length?b:c,d=e.indexOf(n);return-1!=d?(h=[[1,e.substring(0,d)],[0,n],[1,e.substring(d+n.length)]],c.length>b.length&&(h[0][0]=h[2][0]=-1),h):1==n.length?[[-1,c],[1,b]]:(e=this.diff_halfMatch_(c,b))?(n=e[0],c=e[1],d=e[2],b=e[3],e=e[4],n=this.diff_main(n,d,h,l),h=this.diff_main(c,b,h,l),n.concat([[0,e]],h)):h&&100h);t++){for(var w=-t+u;w<=t-x;w+=2){var y=n+w,z;z=w==-t||w!=t&&m[y-1]l)x+=2;else if(D>e)u+=2;else if(k&&(y=n+f-w,0<=y&&y=A)return this.diff_bisectSplit_(c,b,z,D,h)}}for(w=-t+v;w<=t-g;w+=2){y=n+w;A=w==-t||w!=t&&r[y-1]l)g+=2;else if(z>e)v+=2;else if(!k&&(y=n+f-w,0<=y&&y=A)))return this.diff_bisectSplit_(c,b,z,D,h)}}return[[-1,c],[1,b]]};c.prototype.diff_bisectSplit_=function(c,b,h,l,e){var n=c.substring(0,h),d=b.substring(0,l);c=c.substring(h);b=b.substring(l);n=this.diff_main(n,d,!1,e);e=this.diff_main(c,b,!1,e);return n.concat(e)};c.prototype.diff_linesToChars_=function(c,b){function h(d){for(var b="",f=0,k=-1,u=l.length;kl?c=c.substring(h-l):h=f.length?[t,w,b,r,g]:null}if(0>=this.Diff_Timeout)return null;var l=c.length>b.length?c:b,e=c.length>b.length?b:c;if(4>l.length||2*e.lengthl[4].length?d:l:l:d;var r;c.length>b.length?(d=m[0],l=m[1],e=m[2],r=m[3]):(e=m[0],r=m[1],d=m[2],l=m[3]);m=m[4];return[d,l,e,r,m]};c.prototype.diff_cleanupSemantic=function(c){for(var b=!1,h=[],l=0,e=null,n=0,d=0,m=0,r=0,f=0;n=e){if(l>=b.length/2||l>=h.length/2)c.splice(n,0,[0,h.substring(0,l)]),c[n-1][1]=b.substring(0,b.length-l),c[n+1][1]=h.substring(l),n++}else if(e>=b.length/2||e>=h.length/2)c.splice(n,0,[0,b.substring(0,e)]),c[n-1][0]=1,c[n-1][1]=h.substring(0,h.length-e),c[n+1][0]=-1,c[n+1][1]=b.substring(e),n++;n++}n++}};c.prototype.diff_cleanupSemanticLossless=function(p){function b(f,k){if(!f||!k)return 6;var d=f.charAt(f.length-1),g=k.charAt(0),t=d.match(c.nonAlphaNumericRegex_),w=g.match(c.nonAlphaNumericRegex_),m=t&&d.match(c.whitespaceRegex_),e=w&&g.match(c.whitespaceRegex_),d=m&&d.match(c.linebreakRegex_),g=e&&g.match(c.linebreakRegex_),b=d&&f.match(c.blanklineEndRegex_),r=g&&k.match(c.blanklineStartRegex_);return b||r?5:d||g?4:t&&!m&&e?3:m||e?2:t||w?1:0}for(var h=1;h=f&&(f=k,d=l,m=e,r=n)}p[h-1][1]!=d&&(d?p[h-1][1]=d:(p.splice(h-1,1),h--),p[h][1]=m,r?p[h+1][1]=r:(p.splice(h+1,1),h--))}h++}};c.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;c.whitespaceRegex_=/\s/;c.linebreakRegex_=/[\r\n]/;c.blanklineEndRegex_=/\n\r?\n$/;c.blanklineStartRegex_=/^\r?\n\r?\n/;c.prototype.diff_cleanupEfficiency=function(c){for(var b=!1,h=[],l=0,e=null,n=0,d=!1,m=!1,r=!1,f=!1;nb)break;e=h;n=l}return c.length!=d&&-1===c[d][0]?n:n+(b-e)};c.prototype.diff_prettyHtml=function(c){for(var b=[],h=/&/g,l=//g,n=/\n/g,d=0;dr)throw Error("Invalid number in diff_fromDelta: "+m);m=c.substring(e,e+=r);"\x3d"==n[d].charAt(0)?h[l++]=[0,m]:h[l++]=[-1,m];break;default:if(n[d])throw Error("Invalid diff operation in diff_fromDelta: "+n[d]);}}if(e!=c.length)throw Error("Delta length ("+e+") does not equal source text length ("+c.length+").");return h};c.prototype.match_main=function(c,b,h){if(null==c||null==b||null==h)throw Error("Null input. (match_main)");h=Math.max(0,Math.min(h,c.length));return c==b?0:c.length?c.substring(h,h+b.length)==b?h:this.match_bitap_(c,b,h):-1};c.prototype.match_bitap_=function(c,b,h){function l(g,f){var t=g/b.length,k=Math.abs(h-f);return n.Match_Distance?t+k/n.Match_Distance:k?1:t}if(b.length>this.Match_MaxBits)throw Error("Pattern too long for this browser.");var e=this.match_alphabet_(b),n=this,d=this.Match_Threshold,m=c.indexOf(b,h);-1!=m&&(d=Math.min(l(0,m),d),m=c.lastIndexOf(b,h+b.length),-1!=m&&(d=Math.min(l(0,m),d)));for(var r=1<=f;g--){var t=e[c.charAt(g-1)];k[g]=0===v?(k[g+1]<<1|1)&t:(k[g+1]<<1|1)&t|(x[g+1]|x[g])<<1|1|x[g+1];if(k[g]&r&&(t=l(v,g-1),t<=d))if(d=t,m=g-1,m>h)f=Math.max(1,2*h-m);else break}if(l(v+1,h)>d)break;x=k}return m};c.prototype.match_alphabet_=function(c){for(var b={},h=0;h=2*this.Patch_Margin&&e&&(this.patch_addContext_(p,m),h.push(p),p=new c.patch_obj,e=0,m=l,n=d)}1!==f&&(n+=k.length);-1!==f&&(d+=k.length)}e&&(this.patch_addContext_(p,m),h.push(p));return h};c.prototype.patch_deepCopy=function(p){for(var b=[],h=0;hthis.Match_MaxBits){if(r=this.match_main(b,m.substring(0,this.Match_MaxBits),d),-1!=r&&(f=this.match_main(b,m.substring(m.length-this.Match_MaxBits),d+m.length-this.Match_MaxBits),-1==f||r>=f))r=-1}else r=this.match_main(b,m,d);if(-1==r)e[n]=!1,l-=c[n].length2-c[n].length1;else if(e[n]=!0,l=r-d,d=-1==f?b.substring(r,r+m.length):b.substring(r,f+this.Match_MaxBits),m==d)b=b.substring(0,r)+this.diff_text2(c[n].diffs)+b.substring(r+m.length);else if(d=this.diff_main(m,d,!1),m.length>this.Match_MaxBits&&this.diff_levenshtein(d)/m.length>this.Patch_DeleteThreshold)e[n]=!1;else{this.diff_cleanupSemanticLossless(d);for(var m=0,k,f=0;fe[0][1].length){var n=b-e[0][1].length;e[0][1]=h.substring(e[0][1].length)+e[0][1];l.start1-=n;l.start2-=n;l.length1+=n;l.length2+=n}l=c[c.length-1];e=l.diffs;0==e.length||0!=e[e.length-1][0]?(e.push([0,h]),l.length1+=b,l.length2+=b):b>e[e.length-1][1].length&&(n=b-e[e.length-1][1].length,e[e.length-1][1]+=h.substring(0,n),l.length1+=n,l.length2+=n);return h};c.prototype.patch_splitMax=function(p){for(var b=this.Match_MaxBits,h=0;h2*b?(m.length1+=f.length,e+=f.length,r=!1,m.diffs.push([d,f]),l.diffs.shift()):(f=f.substring(0,b-m.length1-this.Patch_Margin),m.length1+=f.length,e+=f.length,0===d?(m.length2+=f.length,n+=f.length):r=!1,m.diffs.push([d,f]),f==l.diffs[0][1]?l.diffs.shift():l.diffs[0][1]=l.diffs[0][1].substring(f.length))}d=this.diff_text2(m.diffs);d=d.substring(d.length-this.Patch_Margin);f=this.diff_text1(l.diffs).substring(0,this.Patch_Margin);""!==f&&(m.length1+=f.length,m.length2+=f.length,0!==m.diffs.length&&0===m.diffs[m.diffs.length-1][0]?m.diffs[m.diffs.length-1][1]+=f:m.diffs.push([0,f]));r||p.splice(++h,0,m)}}};c.prototype.patch_toText=function(c){for(var b=[],h=0;hf.get("hoverLayerThreshold")&&!y.node&&t.traverse(function(g){g.isGroup||(g.useHoverLayer=!0)})}function g(g,f){var t=0;f.group.traverse(function(g){"group"===g.type||g.ignore||t++});var k=+g.get("progressive"),w=t>g.get("progressiveThreshold")&&k&&!y.node;w&&f.group.traverse(function(g){g.isGroup||(g.progressive=w?Math.floor(t++/k):-1,w&&g.stopAnimation(!0))});var d=g.get("blendMode")||null;!y.canvasSupported&&d&&"source-over"!==d&&console.warn("Only canvas support blendMode");f.group.traverse(function(g){g.isGroup||g.setStyle("blend",d)})}function t(g,f){var t=g.get("z"),k=g.get("zlevel");f.group.traverse(function(g){"group"!==g.type&&(null!=t&&(g.z=t),null!=k&&(g.zlevel=k))})}function w(g){function f(g,t){for(var k=0;kr.indexOf(this._seriesIndices,g.componentIndex)},filterSeries:function(g,f){m(this);var t=x(this._componentsMap.series,g,f);this._seriesIndices=n(t)},restoreData:function(){var g=this._componentsMap;this._seriesIndices=n(g.series);var f=[];u(g,function(g,t){f.push(t)});y.topologicalTravel(f,y.getAllClassMainTypes(),function(f,t){u(g[f],function(g){g.restoreData()})})}});r.mixin(D,b(24));c.exports=D},function(c,p){function b(g){if("object"==typeof g&&null!==g){var f=g;if(g instanceof Array)for(var f=[],t=0,k=g.length;t=f.length&&f.push({option:k})}});return f};d.isIdInner=function(d){return n.isObject(d)&&d.id&&0===(d.id+"").indexOf("\x00_ec_\x00")};d.compressBatches=function(m,e){function f(f,g,t){for(var k=0,m=f.length;kd?"0"+d:d}var l=b(4),e=b(7);p=b(8);var n="abcdefg".split("");c.exports={normalizeCssArray:function(d){var m=d.length;return"number"===typeof d?[d,d,d,d]:2===m?[d[0],d[1],d[0],d[1]]:3===m?[d[0],d[1],d[2],d[1]]:d},addCommas:function(d){if(isNaN(d))return"-";d=(d+"").split(".");return d[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1 /g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#39;")},formatTpl:function(d,m){l.isArray(m)||(m=[m]);var e=m.length;if(!e)return"";for(var f=m[0].$vars||[],k=0;k=c[1])return e[1]}else{if(b>=c[0])return e[0];if(b<=c[1])return e[1]}else{if(b===c[0])return e[0];if(b===c[1])return e[1]}return(b-c[0])/d*m+e[0]},parsePercent:function(b,c){switch(b){case "center":case "middle":b="50%";break;case "left":case "top":b="0%";break;case "right":case "bottom":b="100%"}return"string"===typeof b?b.replace(/^\s+/,"").replace(/\s+$/,"").match(/%$/)?parseFloat(b)/100*c:parseFloat(b):null==b?NaN:+b},round:function(b){return+(+b).toFixed(10)},asc:function(b){b.sort(function(b,e){return b-e});return b},getPrecision:function(b){b=+b;if(isNaN(b))return 0;for(var c=1,e=0;Math.round(b*c)/c!==b;)c*=10,e++;return e},getPixelPrecision:function(b,c){var e=Math.log,n=Math.LN10,d=Math.floor(e(b[1]-b[0])/n),e=Math.round(e(Math.abs(c[1]-c[0]))/n);return Math.max(-d+e,0)},MAX_SAFE_INTEGER:9007199254740991,remRadian:function(b){var c=2*Math.PI;return(b%c+c)%c},isRadianAroundZero:function(b){return-1E-4b},parseDate:function(b){return b instanceof Date?b:new Date("string"===typeof b?new Date(b.replace(/-/g,"/"))-new Date("1970/01/01"):Math.round(b))},quantity:function(b){return Math.pow(10,Math.floor(Math.log(b)/Math.LN10))},nice:function(c,l){var e=b.quantity(c),n=c/e;return(l?1.5>n?1:2.5>n?2:4>n?3:7>n?5:10:1>n?1:2>n?2:3>n?3:5>n?5:10)*e}};c.exports=b},function(c,p,b){function h(f,k){var d=f+":"+k;if(l[d])return l[d];for(var m=(f+"").split("\n"),b=0,g=0,t=m.length;g=y;c++)r-=y;c=h(e);c>r&&(e="",c=0);r=k-c;f=(f+"").split("\n");c=0;for(t=f.length;c=g){n+=e;break}if(0===F){for(var l=n,N=r,E=y,p=w,q=0,H=0,L=l.length;H=I?E:p);l=H}else l=0=this.x&&d<=this.x+this.width&&f>=this.y&&f<=this.y+this.height},clone:function(){return new h(this.x,this.y,this.width,this.height)},copy:function(d){this.x=d.x;this.y=d.y;this.width=d.width;this.height=d.height}};c.exports=h},function(c,p){var b="undefined"===typeof Float32Array?Array:Float32Array,h={create:function(c,e){var n=new b(2);null==c&&(c=0);null==e&&(e=0);n[0]=c;n[1]=e;return n},copy:function(b,e){b[0]=e[0];b[1]=e[1];return b},clone:function(c){var e=new b(2);e[0]=c[0];e[1]=c[1];return e},set:function(b,e,c){b[0]=e;b[1]=c;return b},add:function(b,e,c){b[0]=e[0]+c[0];b[1]=e[1]+c[1];return b},scaleAndAdd:function(b,e,c,d){b[0]=e[0]+c[0]*d;b[1]=e[1]+c[1]*d;return b},sub:function(b,e,c){b[0]=e[0]-c[0];b[1]=e[1]-c[1];return b},len:function(b){return Math.sqrt(this.lenSquare(b))},lenSquare:function(b){return b[0]*b[0]+b[1]*b[1]},mul:function(b,e,c){b[0]=e[0]*c[0];b[1]=e[1]*c[1];return b},div:function(b,e,c){b[0]=e[0]/c[0];b[1]=e[1]/c[1];return b},dot:function(b,e){return b[0]*e[0]+b[1]*e[1]},scale:function(b,e,c){b[0]=e[0]*c;b[1]=e[1]*c;return b},normalize:function(b,e){var c=h.len(e);0===c?(b[0]=0,b[1]=0):(b[0]=e[0]/c,b[1]=e[1]/c);return b},distance:function(b,e){return Math.sqrt((b[0]-e[0])*(b[0]-e[0])+(b[1]-e[1])*(b[1]-e[1]))},distanceSquare:function(b,e){return(b[0]-e[0])*(b[0]-e[0])+(b[1]-e[1])*(b[1]-e[1])},negate:function(b,e){b[0]=-e[0];b[1]=-e[1];return b},lerp:function(b,e,c,d){b[0]=e[0]+d*(c[0]-e[0]);b[1]=e[1]+d*(c[1]-e[1]);return b},applyTransform:function(b,e,c){var d=e[0];e=e[1];b[0]=c[0]*d+c[2]*e+c[4];b[1]=c[1]*d+c[3]*e+c[5];return b},min:function(b,e,c){b[0]=Math.min(e[0],c[0]);b[1]=Math.min(e[1],c[1]);return b},max:function(b,e,c){b[0]=Math.max(e[0],c[0]);b[1]=Math.max(e[1],c[1]);return b}};h.length=h.len;h.lengthSquare=h.lenSquare;h.dist=h.distance;h.distSquare=h.distanceSquare;c.exports=h},function(c,p){var b="undefined"===typeof Float32Array?Array:Float32Array,h={create:function(){var c=new b(6);h.identity(c);return c},identity:function(b){b[0]=1;b[1]=0;b[2]=0;b[3]=1;b[4]=0;b[5]=0;return b},copy:function(b,e){b[0]=e[0];b[1]=e[1];b[2]=e[2];b[3]=e[3];b[4]=e[4];b[5]=e[5];return b},mul:function(b,e,c){var d=e[1]*c[0]+e[3]*c[1],m=e[0]*c[2]+e[2]*c[3],r=e[1]*c[2]+e[3]*c[3],f=e[0]*c[4]+e[2]*c[5]+e[4],k=e[1]*c[4]+e[3]*c[5]+e[5];b[0]=e[0]*c[0]+e[2]*c[1];b[1]=d;b[2]=m;b[3]=r;b[4]=f;b[5]=k;return b},translate:function(b,e,c){b[0]=e[0];b[1]=e[1];b[2]=e[2];b[3]=e[3];b[4]=e[4]+c[0];b[5]=e[5]+c[1];return b},rotate:function(b,e,c){var d=e[0],m=e[2],r=e[4],f=e[1],k=e[3];e=e[5];var u=Math.sin(c);c=Math.cos(c);b[0]=d*c+f*u;b[1]=-d*u+f*c;b[2]=m*c+k*u;b[3]=-m*u+c*k;b[4]=c*r+u*e;b[5]=c*e-u*r;return b},scale:function(b,e,c){var d=c[0];c=c[1];b[0]=e[0]*d;b[1]=e[1]*c;b[2]=e[2]*d;b[3]=e[3]*c;b[4]=e[4]*d;b[5]=e[5]*c;return b},invert:function(b,e){var c=e[0],d=e[2],m=e[4],r=e[1],f=e[3],k=e[5],u=c*f-r*d;if(!u)return null;u=1/u;b[0]=f*u;b[1]=-r*u;b[2]=-d*u;b[3]=c*u;b[4]=(d*k-f*m)*u;b[5]=(r*m-c*k)*u;return b}};c.exports=h},function(c,p,b){function h(b,d,m){this.parentModel=d;this.ecModel=m;this.option=b}var l=b(4),e=b(13);h.prototype={constructor:h,init:null,mergeOption:function(b){l.merge(this.option,b,!0)},get:function(b,d){if(!b)return this.option;"string"===typeof b&&(b=b.split("."));for(var m=this.option,e=this.parentModel,f=0;fh.indexOf(g.predecessor,f)&&g.predecessor.push(f);var t=e(b,f);0>h.indexOf(t.successor,f)&&t.successor.push(c)})});return{graph:b,noEntryList:m}}function e(f,d){f[d]||(f[d]={predecessor:[],successor:[]});return f[d]}function f(f,d){var b=[];h.each(f,function(f){0<=h.indexOf(d,f)&&b.push(f)});return b}b.topologicalTravel=function(f,d,b,e){function g(g){w[g].entryCount--;0===w[g].entryCount&&y.push(g)}function t(f){r[f]=!0;g(f)}if(f.length){d=m(d);var w=d.graph,y=d.noEntryList,r={};for(h.each(f,function(g){r[g]=!0});y.length;){f=y.pop();d=w[f];var c=!!r[f];c&&(b.call(e,f,d.originalDeps.slice()),delete r[f]);h.each(d.successor,c?t:g)}h.each(r,function(){throw Error("Circle dependency may exists");})}}}}},function(c,p,b){function h(f,d,b,m,g){var t=0,w=0;null==m&&(m=Infinity);null==g&&(g=Infinity);var e=0;d.eachChild(function(r,c){var n=r.position,h=r.getBoundingRect(),l=d.childAt(c+1),l=l&&l.getBoundingRect(),N,E;"horizontal"===f?(l=h.width+(l?-l.x+h.x:0),N=t+l,N>m||r.newline?(t=0,N=l,w+=e+b,e=h.height):e=Math.max(e,h.height)):(l=h.height+(l?-l.y+h.y:0),E=w+l,E>g||r.newline?(t+=e+b,w=0,E=l,e=h.width):e=Math.max(e,h.width));r.newline||(n[0]=t,n[1]=w,"horizontal"===f?t=N+b:w=E+b)})}var l=b(4),e=b(9);p=b(7);var n=b(6),d=p.parsePercent,m=l.each,r={},f="left right top bottom width height".split(" ");r.box=h;r.vbox=l.curry(h,"vertical");r.hbox=l.curry(h,"horizontal");r.getAvailableSize=function(f,b,m){var e=b.width;b=b.height;var g=d(f.x,e),t=d(f.y,b),w=d(f.x2,e),y=d(f.y2,b);(isNaN(g)||isNaN(parseFloat(f.x)))&&(g=0);(isNaN(w)||isNaN(parseFloat(f.x2)))&&(w=e);(isNaN(t)||isNaN(parseFloat(f.y)))&&(t=0);(isNaN(y)||isNaN(parseFloat(f.y2)))&&(y=b);m=n.normalizeCssArray(m||0);return{width:Math.max(w-g-m[1]-m[3],0),height:Math.max(y-t-m[0]-m[2],0)}};r.getLayoutRect=function(f,b,m){m=n.normalizeCssArray(m||0);var r=b.width;b=b.height;var g=d(f.left,r),t=d(f.top,b),w=d(f.right,r),y=d(f.bottom,b),c=d(f.width,r),h=d(f.height,b),l=m[2]+m[0],B=m[1]+m[3],F=f.aspect;isNaN(c)&&(c=r-w-B-g);isNaN(h)&&(h=b-y-l-t);isNaN(c)&&isNaN(h)&&(F>r/b?c=.8*r:h=.8*b);null!=F&&(isNaN(c)&&(c=F*h),isNaN(h)&&(h=c/F));isNaN(g)&&(g=r-w-c-B);isNaN(t)&&(t=b-y-h-l);switch(f.left||f.right){case "center":g=r/2-c/2-m[3];break;case "right":g=r-c-B}switch(f.top||f.bottom){case "middle":case "center":t=b/2-h/2-m[0];break;case "bottom":t=b-h-l}g=g||0;t=t||0;isNaN(c)&&(c=r-g-(w||0));isNaN(h)&&(h=b-t-(y||0));f=new e(g+m[3],t+m[0],c,h);f.margin=m;return f};r.positionGroup=function(f,d,b,m){var g=f.getBoundingRect();d=l.extend(l.clone(d),{width:g.width,height:g.height});d=r.getLayoutRect(d,b,m);f.attr("position",[d.x-g.x,d.y-g.y])};r.mergeLayoutParam=function(f,d,b){function e(g){var t={},w=0,y={},r=0,c=b.ignoreSize?1:2;m(g,function(g){y[g]=f[g]});m(g,function(g){d.hasOwnProperty(g)&&(t[g]=y[g]=d[g]);null!=t[g]&&"auto"!==t[g]&&w++;null!=y[g]&&"auto"!==y[g]&&r++});if(r!==c&&w){if(!(w>=c))for(c=0;c=f:"max"===b?t<=f:t===f)||(e=!1)}});return e}function n(g,f){return g.join(",")===f.join(",")}function d(g,d){d=d||{};k(d,function(d,b){if(null!=d){var k=g[b];f.hasClass(b)?(d=r.normalizeToArray(d),k=r.normalizeToArray(k),k=r.mappingToExists(k,d),g[b]=x(k,function(g){return g.option&&g.exist?v(g.exist,g.option,!0):g.exist||g.option})):g[b]=v(k,d,!0)}})}var m=b(4),r=b(5),f=b(19),k=m.each,u=m.clone,x=m.map,v=m.merge,g=/^(min|max)?(.+)$/;h.prototype={constructor:h,setOption:function(g,f){g=u(g,!0);var b=this._optionBackup,k=l.call(this,g,f,!b);this._newBaseOption=k.baseOption;b?(d(b.baseOption,k.baseOption),k.timelineOptions.length&&(b.timelineOptions=k.timelineOptions),k.mediaList.length&&(b.mediaList=k.mediaList),k.mediaDefault&&(b.mediaDefault=k.mediaDefault)):this._optionBackup=k},mountOption:function(g){var f=this._optionBackup;this._timelineOptions=x(f.timelineOptions,u);this._mediaList=x(f.mediaList,u);this._mediaDefault=u(f.mediaDefault);this._currentMediaIndices=[];return u(g?f.baseOption:this._newBaseOption)},getTimelineOption:function(g){var f,d=this._timelineOptions;d.length&&(g=g.getComponent("timeline"))&&(f=u(d[g.getCurrentIndex()],!0));return f},getMediaOption:function(g){g=this._api.getWidth();var f=this._api.getHeight(),d=this._mediaList,b=this._mediaDefault,k=[],m=[];if(!d.length&&!b)return m;for(var r=0,c=d.length;rthis.getShallow("animationThreshold")&&(f=!1);return f},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(f,d){var b=this.ecModel,m=n.getColorFromPalette.call(this,f,d);m||(m=b.getColorFromPalette(f,d));return m},getAxisTooltipDataIndex:null});h.mixin(b,e.dataFormatMixin);h.mixin(b,n);c.exports=b},function(c,p,b){var h=b(30),l=b(20);p=b(13);b=function(){this.group=new h;this.uid=l.getUID("viewComponent")};b.prototype={constructor:b,init:function(b,d){},render:function(b,d,m,e){},dispose:function(){}};var e=b.prototype;e.updateView=e.updateLayout=e.updateVisual=function(b,d,m,e){};p.enableClassExtend(b);p.enableClassManagement(b,{registerWhenExtend:!0});c.exports=b},function(c,p,b){var h=b(4),l=b(31),e=b(9),n=function(d){d=d||{};l.call(this,d);for(var b in d)this[b]=d[b];this._children=[];this.__storage=null;this.__dirty=!0};n.prototype={constructor:n,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(d){return this._children[d]},childOfName:function(d){for(var b=this._children,e=0;ek)return this;f.splice(k,1);d.parent=null;e&&(e.delFromMap(d.id),d instanceof n&&d.delChildrenFromStorage(e));b&&b.refresh();return this},removeAll:function(){var d=this._children,b=this.__storage,e,f;for(f=0;fd}var l=b(11),e=b(10),n=l.identity;p=function(d){d=d||{};d.position||(this.position=[0,0]);null==d.rotation&&(this.rotation=0);d.scale||(this.scale=[1,1]);this.origin=this.origin||null};b=p.prototype;b.transform=null;b.needLocalTransform=function(){return h(this.rotation)||h(this.position[0])||h(this.position[1])||h(this.scale[0]-1)||h(this.scale[1]-1)};b.updateTransform=function(){var d=this.parent,b=d&&d.transform,f=this.needLocalTransform(),k=this.transform;f||b?(k=k||l.create(),f?this.getLocalTransform(k):n(k),b&&(f?l.mul(k,d.transform,k):l.copy(k,d.transform)),this.transform=k,this.invTransform=this.invTransform||l.create(),l.invert(this.invTransform,k)):k&&n(k)};b.getLocalTransform=function(d){d=d||[];n(d);var b=this.origin,f=this.scale,k=this.rotation,e=this.position;b&&(d[4]-=b[0],d[5]-=b[1]);l.scale(d,d,f);k&&l.rotate(d,d,k);b&&(d[4]+=b[0],d[5]+=b[1]);d[4]+=e[0];d[5]+=e[1];return d};b.setTransform=function(d){var b=this.transform;b&&d.transform(b[0],b[1],b[2],b[3],b[4],b[5])};b.restoreTransform=function(d){var b=this.invTransform;b&&d.transform(b[0],b[1],b[2],b[3],b[4],b[5])};var d=[];b.decomposeTransform=function(){if(this.transform){var b=this.parent,e=this.transform;b&&b.transform&&(l.mul(d,b.invTransform,e),e=d);var b=e[0]*e[0]+e[1]*e[1],f=e[2]*e[2]+e[3]*e[3],k=this.position,c=this.scale;h(b-1)&&(b=Math.sqrt(b));h(f-1)&&(f=Math.sqrt(f));0>e[0]&&(b=-b);0>e[3]&&(f=-f);k[0]=e[4];k[1]=e[5];c[0]=b;c[1]=f;this.rotation=Math.atan2(-e[1]/f,e[0]/b)}};b.getGlobalScale=function(){var d=this.transform;if(!d)return[1,1];var b=Math.sqrt(d[0]*d[0]+d[1]*d[1]),f=Math.sqrt(d[2]*d[2]+d[3]*d[3]);0>d[0]&&(b=-b);0>d[3]&&(f=-f);return[b,f]};b.transformCoordToLocal=function(d,b){var f=[d,b],k=this.invTransform;k&&e.applyTransform(f,f,k);return f};b.transformCoordToGlobal=function(d,b){var f=[d,b],k=this.transform;k&&e.applyTransform(f,f,k);return f};c.exports=p},function(c,p,b){var h=b(36),l=b(4),e=l.isString,n=l.isFunction,d=l.isObject,m=b(40);p=function(){this.animators=[]};p.prototype={constructor:p,animate:function(d,f){var b,e=!1,c=this,v=this.__zr;if(d){for(var g=d.split("."),t=c,e="shape"===g[0],w=0,y=g.length;wk)g.length=k;else for(;bf);d++);d=Math.min(d-1,E-2)}R=d;Q=f;var b=K[d+1]-K[d];if(0!==b)if(V=(f-K[d])/b,N)if(Z=O[d],W=O[0===d?d:d-1],ba=O[d>E-2?E-1:d+1],ga=O[d>E-3?E-1:d+2],q)m(W,Z,ba,ga,V,V*V,V*V*V,h(g,u),I);else{if(H)m(W,Z,ba,ga,V,V*V,V*V*V,fa,1),d=k(fa);else{if(L)return.5b)){b=Math.min(b,1);var c=this.easing,c="string"==typeof c?l[c]:c,c="function"===typeof c?c(b):b;this.fire("frame",c);if(1==b){if(this.loop)return this.restart(),"restart";this._needsRemove=!0;return"destroy"}return null}},restart:function(){var b=((new Date).getTime()-this._startTime)%this._life;this._startTime=(new Date).getTime()-b+this.gap;this._needsRemove=!1},fire:function(b,c){b="on"+b;if(this[b])this[b](this._target,c)}};c.exports=h},function(c,p){var b={linear:function(b){return b},quadraticIn:function(b){return b*b},quadraticOut:function(b){return b*(2-b)},quadraticInOut:function(b){return 1>(b*=2)?.5*b*b:-.5*(--b*(b-2)-1)},cubicIn:function(b){return b*b*b},cubicOut:function(b){return--b*b*b+1},cubicInOut:function(b){return 1>(b*=2)?.5*b*b*b:.5*((b-=2)*b*b+2)},quarticIn:function(b){return b*b*b*b},quarticOut:function(b){return 1- --b*b*b*b},quarticInOut:function(b){return 1>(b*=2)?.5*b*b*b*b:-.5*((b-=2)*b*b*b-2)},quinticIn:function(b){return b*b*b*b*b},quinticOut:function(b){return--b*b*b*b*b+1},quinticInOut:function(b){return 1>(b*=2)?.5*b*b*b*b*b:.5*((b-=2)*b*b*b*b+2)},sinusoidalIn:function(b){return 1-Math.cos(b*Math.PI/2)},sinusoidalOut:function(b){return Math.sin(b*Math.PI/2)},sinusoidalInOut:function(b){return.5*(1-Math.cos(Math.PI*b))},exponentialIn:function(b){return 0===b?0:Math.pow(1024,b-1)},exponentialOut:function(b){return 1===b?1:1-Math.pow(2,-10*b)},exponentialInOut:function(b){return 0===b?0:1===b?1:1>(b*=2)?.5*Math.pow(1024,b-1):.5*(-Math.pow(2,-10*(b-1))+2)},circularIn:function(b){return 1-Math.sqrt(1-b*b)},circularOut:function(b){return Math.sqrt(1- --b*b)},circularInOut:function(b){return 1>(b*=2)?-.5*(Math.sqrt(1-b*b)-1):.5*(Math.sqrt(1-(b-=2)*b)+1)},elasticIn:function(b){var c,e=.1;if(0===b)return 0;if(1===b)return 1;!e||1>e?(e=1,c=.1):c=.4*Math.asin(1/e)/(2*Math.PI);return-(e*Math.pow(2,10*--b)*Math.sin(2*(b-c)*Math.PI/.4))},elasticOut:function(b){var c,e=.1;if(0===b)return 0;if(1===b)return 1;!e||1>e?(e=1,c=.1):c=.4*Math.asin(1/e)/(2*Math.PI);return e*Math.pow(2,-10*b)*Math.sin(2*(b-c)*Math.PI/.4)+1},elasticInOut:function(b){var c,e=.1;if(0===b)return 0;if(1===b)return 1;!e||1>e?(e=1,c=.1):c=.4*Math.asin(1/e)/(2*Math.PI);return 1>(b*=2)?-.5*e*Math.pow(2,10*--b)*Math.sin(2*(b-c)*Math.PI/.4):e*Math.pow(2,-10*--b)*Math.sin(2*(b-c)*Math.PI/.4)*.5+1},backIn:function(b){return b*b*(2.70158*b-1.70158)},backOut:function(b){return--b*b*(2.70158*b+1.70158)+1},backInOut:function(b){return 1>(b*=2)?.5*b*b*(3.5949095*b-2.5949095):.5*((b-=2)*b*(3.5949095*b+2.5949095)+2)},bounceIn:function(c){return 1-b.bounceOut(1-c)},bounceOut:function(b){return b<1/2.75?7.5625*b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+.75:b<2.5/2.75?7.5625*(b-=2.25/2.75)*b+.9375:7.5625*(b-=2.625/2.75)*b+.984375},bounceInOut:function(c){return.5>c?.5*b.bounceIn(2*c):.5*b.bounceOut(2*c-1)+.5}};c.exports=b},function(c,p){function b(b){b=Math.round(b);return 0>b?0:255b?0:1d?d+=1:16*d?b+(f-b)*d*6:1>2*d?f:2>3*d?b+(f-b)*(2/3-d)*6:b}function d(b,f,d){return b+(f-b)*d}function m(b){if(b){var f=(b+"").replace(/ /g,"").toLowerCase();if(f in k)return k[f].slice();if("#"===f.charAt(0))if(4===f.length){if(b=parseInt(f.substr(1),16),0<=b&&4095>=b)return[(b&3840)>>4|(b&3840)>>8,b&240|(b&240)>>4,b&15|(b&15)<<4,1]}else{if(7===f.length&&(b=parseInt(f.substr(1),16),0<=b&&16777215>=b))return[(b&16711680)>>16,(b&65280)>>8,b&255,1]}else{var d=f.indexOf("("),g=f.indexOf(")");if(-1!==d&&g+1===f.length)switch(b=f.substr(0,d),f=f.substr(d+1,g-(d+1)).split(","),d=1,b){case "rgba":if(4!==f.length)break;d=e(f.pop());case "rgb":if(3!==f.length)break;return[l(f[0]),l(f[1]),l(f[2]),d];case "hsla":if(4!==f.length)break;f[3]=e(f[3]);return r(f);case "hsl":if(3===f.length)return r(f)}}}}function r(f){var d=(parseFloat(f[0])%360+360)%360/360,k=e(f[1]),g=e(f[2]),k=.5>=g?g*(k+1):g+k-g*k,g=2*g-k,d=[b(255*n(g,k,d+1/3)),b(255*n(g,k,d)),b(255*n(g,k,d-1/3))];4===f.length&&(d[3]=f[3]);return d}function f(b,f){var d=b[0]+","+b[1]+","+b[2];if("rgba"===f||"hsva"===f||"hsla"===f)d+=","+b[3];return f+"("+d+")"}var k={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};c.exports={parse:m,lift:function(b,d){var k=m(b);if(k){for(var g=0;3>g;g++)k[g]=0>d?k[g]*(1-d)|0:(255-k[g])*d+k[g]|0;return f(k,4===k.length?"rgba":"rgb")}},toHex:function(b,f){var d=m(b);if(d)return(16777216+(d[0]<<16)+(d[1]<<8)+ +d[2]).toString(16).slice(1)},fastMapToColor:function(f,k,e){if(k&&k.length&&0<=f&&1>=f){e=e||[0,0,0,0];var g=f*(k.length-1),t=Math.floor(g);f=k[t];k=k[Math.ceil(g)];g-=t;e[0]=b(d(f[0],k[0],g));e[1]=b(d(f[1],k[1],g));e[2]=b(d(f[2],k[2],g));e[3]=b(d(f[3],k[3],g));return e}},mapToColor:function(k,e,c){if(e&&e.length&&0<=k&&1>=k){k*=e.length-1;var g=Math.floor(k),t=Math.ceil(k),w=m(e[g]);e=m(e[t]);var y=k-g,w=f([b(d(w[0],e[0],y)),b(d(w[1],e[1],y)),b(d(w[2],e[2],y)),h(d(w[3],e[3],y))],"rgba");return c?{color:w,leftIndex:g,rightIndex:t,value:k}:w}},modifyHSL:function(b,d,k,g){if(b=m(b)){if(b){var t=b[0]/255,w=b[1]/255,c=b[2]/255,z=Math.min(t,w,c),n=Math.max(t,w,c),l=n-z,h=(n+z)/2,F;if(0===l)z=F=0;else{var z=.5>h?l/(n+z):l/(2-n-z),N=((n-t)/6+l/2)/l,p=((n-w)/6+l/2)/l,l=((n-c)/6+l/2)/l;t===n?F=l-p:w===n?F=1/3+N-l:c===n&&(F=2/3+p-N);0>F&&(F+=1);1d?0:360Math.abs(g[1])?0=g(d,p)&&(L=v);1<=g(d,p)&&(L=0);0===c&&0L&&(L+=2*v);q.addData(h,b,f,r,n,e,L,l,c)}function l(g){if(!g)return[];var b=g.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(g=0;gthis._ux||y(b-this._yi)>this._uy||5>this._len;this.addData(m.L,g,b);this._ctx&&d&&(this._needsDash()?this._dashedLineTo(g,b):this._ctx.lineTo(g,b));d&&(this._xi=g,this._yi=b);return this},bezierCurveTo:function(g,b,d,f,t,k){this.addData(m.C,g,b,d,f,t,k);this._ctx&&(this._needsDash()?this._dashedBezierTo(g,b,d,f,t,k):this._ctx.bezierCurveTo(g,b,d,f,t,k));this._xi=t;this._yi=k;return this},quadraticCurveTo:function(g,b,d,f){this.addData(m.Q,g,b,d,f);this._ctx&&(this._needsDash()?this._dashedQuadraticTo(g,b,d,f):this._ctx.quadraticCurveTo(g,b,d,f));this._xi=d;this._yi=f;return this},arc:function(b,d,f,k,e,w){this.addData(m.A,b,d,f,f,k,e-k,0,w?0:1);this._ctx&&this._ctx.arc(b,d,f,k,e,w);this._xi=g(e)*f+b;this._xi=t(e)*f+b;return this},arcTo:function(g,b,d,f,t){this._ctx&&this._ctx.arcTo(g,b,d,f,t);return this},rect:function(g,b,d,f){this._ctx&&this._ctx.rect(g,b,d,f);this.addData(m.R,g,b,d,f);return this},closePath:function(){this.addData(m.Z);var g=this._ctx,b=this._x0,d=this._y0;g&&(this._needsDash()&&this._dashedLineTo(b,d),g.closePath());this._xi=b;this._yi=d;return this},fill:function(g){g&&g.fill();this.toStatic()},stroke:function(g){g&&g.stroke();this.toStatic()},setLineDash:function(g){if(g instanceof Array){this._lineDash=g;for(var b=this._dashIdx=0,d=0;db.length&&(this._expandData(),b=this.data);for(var d=0;df&&(f=d+f);f%=d;d=e-f*c;for(f=m-f*y;0c&&d>=g||0==c&&(0y&&f>=b);)if(z=this._dashIdx,u=t[z],d+=c*u,f+=y*u,this._dashIdx=(z+1)%r,!(0c&&d>e||0y&&f>m))k[z%2?"moveTo":"lineTo"](0<=c?x(d,g):v(d,g),0<=y?x(f,b):v(f,b));c=d-g;y=f-b;this._dashOffset=-w(c*c+y*y)},_dashedBezierTo:function(g,b,d,f,t,k){var e=this._dashSum,m=this._dashOffset,c=this._lineDash,y=this._ctx,u=this._xi,v=this._yi,r,x,z=h.cubicAt,n=0,l=this._dashIdx,p=c.length,R,Q,U=0;0>m&&(m=e+m);m%=e;for(e=0;1>e;e+=.1)r=z(u,g,d,t,e+.1)-z(u,g,d,t,e),x=z(v,b,f,k,e+.1)-z(v,b,f,k,e),n+=w(r*r+x*x);for(;lm);l++);for(e=(U-m)/n;1>=e;)R=z(u,g,d,t,e),Q=z(v,b,f,k,e),l%2?y.moveTo(R,Q):y.lineTo(R,Q),e+=c[l]/n,l=(l+1)%p;0!==l%2&&y.lineTo(t,k);r=t-R;x=k-Q;this._dashOffset=-w(r*r+x*x)},_dashedQuadraticTo:function(g,b,d,f){var t=d,k=f;d=(d+2*g)/3;f=(f+2*b)/3;g=(this._xi+2*g)/3;b=(this._yi+2*b)/3;this._dashedBezierTo(g,b,d,f,t,k)},toStatic:function(){var g=this.data;g instanceof Array&&(g.length=this._len,z&&(this.data=new Float32Array(g)))},getBoundingRect:function(){r[0]=r[1]=k[0]=k[1]=Number.MAX_VALUE;f[0]=f[1]=u[0]=u[1]=-Number.MAX_VALUE;for(var b=this.data,d=0,w=0,c=0,y=0,v=0;vv||y(u-w)>r||z===x-1)b.lineTo(c,u),e=c,w=u;break;case m.C:b.bezierCurveTo(d[z++],d[z++],d[z++],d[z++],d[z++],d[z++]);e=d[z-2];w=d[z-1];break;case m.Q:b.quadraticCurveTo(d[z++],d[z++],d[z++],d[z++]);e=d[z-2];w=d[z-1];break;case m.A:e=d[z++];w=d[z++];u=d[z++];c=d[z++];var n=d[z++],l=d[z++],h=d[z++],p=d[z++],T=u>c?u:c,S=u>c?1:u/c,R=u>c?c/u:1,l=n+l;.001k&&-1E-8f)-1E-8g?e[0]=0:(k=-c/g,0<=k&&1>=k&&(e[b++]=k));else if(c=f*f-4*k*(c*c-3*g*u),-1E-8c)f/=k,k=-g/t+f,f=-f/2,0<=k&&1>=k&&(e[b++]=k),0<=f&&1>=f&&(e[b++]=f);else if(0c?-n(-c,r):n(c,r),k=0>k?-n(-k,r):n(k,r),k=(-g-(c+k))/(3*t),0<=k&&1>=k&&(e[b++]=k);else{f=(2*k*g-3*t*f)/(2*d(k*k*k));var c=Math.acos(f)/3,u=d(k),l=Math.cos(c);k=(-g-2*u*l)/(3*t);f=(-g+u*(l+m*Math.sin(c)))/(3*t);t=(-g+u*(l-m*Math.sin(c)))/(3*t);0<=k&&1>=k&&(e[b++]=k);0<=f&&1>=f&&(e[b++]=f);0<=t&&1>=t&&(e[b++]=t)}return b},cubicExtrema:function(b,f,g,t,k){var e=6*g-12*f+6*b;g=9*f+3*t-3*b-9*g;f=3*f-3*b;b=0;if(-1E-8g){if(1E-8e)f=-f/e,0<=f&&1>=f&&(k[b++]=f)}else f=e*e-4*g*f,-1E-8f?k[0]=-e/(2*g):0=f&&(k[b++]=f),0<=e&&1>=e&&(k[b++]=e));return b},cubicSubdivide:function(b,d,g,f,k,e){var m=(d-b)*k+b,c=(g-d)*k+d;g=(f-g)*k+g;d=(c-m)*k+m;c=(g-c)*k+c;k=(c-d)*k+d;e[0]=b;e[1]=m;e[2]=d;e[3]=k;e[4]=k;e[5]=c;e[6]=g;e[7]=f},cubicProjectPoint:function(b,m,g,t,c,y,r,n,l,B,F){var N,p=.005,G=Infinity,q;f[0]=l;f[1]=B;for(l=0;1>l;l+=.05)k[0]=h(b,g,c,r,l),k[1]=h(m,t,y,n,l),B=e(f,k),BH&&!(1E-4>p);H++)q=N-p,l=N+p,k[0]=h(b,g,c,r,q),k[1]=h(m,t,y,n,q),B=e(k,f),0<=q&&B=l&&Bg){if(1E-8f)t=-t/f,0<=t&&1>=t&&(k[b++]=t)}else if(t=f*f-4*g*t,-1E-8t)t=-f/(2*g),0<=t&&1>=t&&(k[b++]=t);else if(0=t&&(k[b++]=t);0<=g&&1>=g&&(k[b++]=g)}return b},quadraticExtremum:function(b,d,g){g=b+g-2*d;return 0===g?.5:(b-d)/g},quadraticSubdivide:function(b,d,g,f,k){var e=(d-b)*f+b;d=(g-d)*f+d;f=(d-e)*f+e;k[0]=b;k[1]=e;k[2]=f;k[3]=f;k[4]=d;k[5]=g},quadraticProjectPoint:function(b,m,g,t,c,y,r,n,h){var B,F=.005,N=Infinity;f[0]=r;f[1]=n;for(n=0;1>n;n+=.05)k[0]=l(b,g,c,n),k[1]=l(m,t,y,n),r=e(f,k),rn&&!(1E-4>F);n++){var p=B-F,G=B+F;k[0]=l(b,g,c,p);k[1]=l(m,t,y,p);r=e(k,f);0<=p&&r=G&&rG%u&&1E-4v&&(v+=u),x%=u,0>x&&(x+=u),v>x&&!n?x+=u:vv&&(k[0]=m(n)*e+g,k[1]=d(n)*c+b,p(l,k,l),E(F,k,F))};c.exports=p},function(c,p,b){function h(g,b,c,y,z){for(var h=0,A=0,B=0,F=0,p=0,E=0;EH&&z>I&&z>B&&z>h||zP&&(P=r.cubicExtrema(H,I,B,h,v),v[1]H&&z>M&&z>K||z=h){O=0;M=r.quadraticAt(H,M,K,h);for(J=0;JL||P<-L)A=0;else if(S=Math.sqrt(L*L-P*P),x[0]=-S,x[1]=S,S=Math.abs(h-O),1E-4>S)A=0;else if(1E-4>S%u)A=J>=x[0]+A&&J<=x[1]+A?M?1:-1:0;else{M?(S=h,h=m(O),O=m(S)):(h=m(h),O=m(O));h>O&&(O+=u);for(R=S=0;2>R;R++)if(Q=x[R],Q+A>J&&(U=Math.atan2(P,Q),Q=M?1:-1,0>U&&(U=u+U),U>=h&&U<=O||U+u>=h&&U+u<=O))U>Math.PI/2&&U<1.5*Math.PI&&(Q=-Q),S+=Q;A=S}h=B+A}A=Math.cos(I+K)*H+G;B=Math.sin(I+K)*L+q;break;case l.R:F=A=g[E++];p=B=g[E++];q=g[E++];G=g[E++];O=F+q;J=p+G;if(c){if(k(F,p,O,p,b,y,z)||k(O,p,O,J,b,y,z)||k(O,J,F,J,b,y,z)||k(F,J,F,p,b,y,z))return!0}else h+=f(O,p,O,J,y,z),h+=f(F,J,F,p,y,z);break;case l.Z:if(c){if(k(A,B,F,p,b,y,z))return!0}else h+=f(A,B,F,p,y,z);A=F;B=p}}c||1E-4>Math.abs(B-p)||(h+=f(A,B,F,p,y,z)||0);return 0!==h}var l=b(49).CMD;p=b(53);var e=b(54),n=b(55),d=b(56),m=b(57).normalizeRadian,r=b(50),f=b(58),k=p.containStroke,u=2*Math.PI,x=[-1,-1,-1],v=[-1,-1];c.exports={contain:function(g,b,d){return h(g,0,!1,b,d)},containStroke:function(g,b,d,f){return h(g,b,!0,d,f)}}},function(c,p){c.exports={containStroke:function(b,c,l,e,n,d,m){if(0===n)return!1;var r;if(m>c+n&&m>e+n||mb+n&&d>l+n||de+u&&v>d+u&&v>r+u&&v>k+u||vb+u&&x>c+u&&x>m+u&&x>f+u||xe+f&&u>d+f&&u>r+f||ub+f&&k>c+f&&k>m+f||kd||b+kMath.abs(m-r)%l)return!0;f?(d=m,m=h(r),r=h(d)):(m=h(m),r=h(r));m>r&&(r+=l);u=Math.atan2(x,u);0>u&&(u+=l);return u>=m&&u<=r||u+l>=m&&u+l<=r}}},function(c,p){var b=2*Math.PI;c.exports={normalizeRadian:function(c){c%=b;0>c&&(c+=b);return c}}},function(c,p){c.exports=function(b,c,l,e,n,d){if(d>c&&d>e||dn?m:0}},function(c,p){var b=function(b,c){this.image=b;this.repeat=c;this.type="pattern"};b.prototype.getCanvasPattern=function(b){return this._canvasPattern||(this._canvasPattern=b.createPattern(this.image,this.repeat))};c.exports=b},function(c,p,b){var h=b(49).CMD,l=b(10).applyTransform,e=[[],[],[]],n=Math.sqrt,d=Math.atan2;c.exports=function(b,c){var f=b.data,k,u,x,v,g,t=h.M,w=h.C,y=h.L,z=h.R,D=h.A,A=h.Q;for(x=0;x=this._maxSize&&0d-2?d-1:u+1],u=b[u>d-3?d-1:u+2]);var t=k*k,w=k*t;m.push([h(x[0],v[0],g[0],u[0],k,t,w),h(x[1],v[1],g[1],u[1],k,t,w)])}return m}},function(c,p,b){var h=b(10),l=h.min,e=h.max,n=h.scale,d=h.distance,m=h.add;c.exports=function(b,f,k,c){var x=[],v=[],g=[],t=[],w,y,z,D;if(c){z=[Infinity,Infinity];D=[-Infinity,-Infinity];for(var A=0,B=b.length;An&&(l+=n,n=-n);0>d&&(e+=d,d=-d);"number"===typeof m?r=f=k=u=m:m instanceof Array?1===m.length?r=f=k=u=m[0]:2===m.length?(r=k=m[0],f=u=m[1]):3===m.length?(r=m[0],f=u=m[1],k=m[2]):(r=m[0],f=m[1],k=m[2],u=m[3]):r=f=k=u=0;r+f>n&&(m=r+f,r*=n/m,f*=n/m);k+u>n&&(m=k+u,k*=n/m,u*=n/m);f+k>d&&(m=f+k,f*=d/m,k*=d/m);r+u>d&&(m=r+u,r*=d/m,u*=d/m);b.moveTo(l+r,e);b.lineTo(l+n-f,e);0!==f&&b.quadraticCurveTo(l+n,e,l+n,e+f);b.lineTo(l+n,e+d-k);0!==k&&b.quadraticCurveTo(l+n,e+d,l+n-k,e+d);b.lineTo(l+u,e+d);0!==u&&b.quadraticCurveTo(l,e+d,l,e+d-u);b.lineTo(l,e+r);0!==r&&b.quadraticCurveTo(l,e,l+r,e)}}},function(c,p,b){c.exports=b(45).extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(b,c){var e=c.x1,n=c.y1,d=c.x2,m=c.y2,r=c.percent;0!==r&&(b.moveTo(e,n),1>r&&(d=e*(1-r)+d*r,m=n*(1-r)+m*r),b.lineTo(d,m))},pointAt:function(b){var c=this.shape;return[c.x1*(1-b)+c.x2*b,c.y1*(1-b)+c.y2*b]}})},function(c,p,b){function h(b,k,e){var g=b.cpy2;return null===b.cpx2||null===g?[(e?f:m)(b.x1,b.cpx1,b.cpx2,b.x2,k),(e?f:m)(b.y1,b.cpy1,b.cpy2,b.y2,k)]:[(e?r:d)(b.x1,b.cpx1,b.x2,k),(e?r:d)(b.y1,b.cpy1,b.y2,k)]}p=b(50);var l=b(10),e=p.quadraticSubdivide,n=p.cubicSubdivide,d=p.quadraticAt,m=p.cubicAt,r=p.quadraticDerivativeAt,f=p.cubicDerivativeAt,k=[];c.exports=b(45).extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(b,d){var f=d.x1,g=d.y1,t=d.x2,c=d.y2,m=d.cpx1,r=d.cpy1,l=d.cpx2,h=d.cpy2,B=d.percent;0!==B&&(b.moveTo(f,g),null==l||null==h?(1>B&&(e(f,m,t,B,k),m=k[1],t=k[2],e(g,r,c,B,k),r=k[1],c=k[2]),b.quadraticCurveTo(m,r,t,c)):(1>B&&(n(f,m,l,t,B,k),m=k[1],l=k[2],t=k[3],n(g,r,h,c,B,k),r=k[1],h=k[2],c=k[3]),b.bezierCurveTo(m,r,l,h,t,c)))},pointAt:function(b){return h(this.shape,b,!1)},tangentAt:function(b){b=h(this.shape,b,!0);return l.normalize(b,b)}})},function(c,p,b){c.exports=b(45).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(b,c){var e=c.cx,n=c.cy,d=Math.max(c.r,0),m=c.startAngle,r=c.endAngle,f=c.clockwise;b.moveTo(Math.cos(m)*d+e,Math.sin(m)*d+n);b.arc(e,n,d,m,r,!f)}})},function(c,p,b){var h=b(45);c.exports=h.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var b=this.__dirtyPath,e=this.shape.paths,c=0;cf(b[k++],b[e])){for(;kf(b[k],b[k-1]);)k++;c=e;f=k;for(f--;c>>1,0>k(u,b[g])?v=g:x=g+1;v=f-x;switch(v){case 3:b[x+3]=b[x+2];case 2:b[x+2]=b[x+1];case 1:b[x+1]=b[x];break;default:for(;0=v&&(v=f);v>f&&(v=f);x+=k;v+=k}else{for(f=k+1;v=u(b,e[c+k-v]);)x=v,v=(v<<1)+1,0>=v&&(v=f);v>f&&(v=f);f=x;x=k-v;v=k-f}for(x++;x>>1),0u(b,e[c+k])){for(f=k+1;vu(b,e[c+k-v]);)x=v,v=(v<<1)+1,0>=v&&(v=f);v>f&&(v=f);f=x;x=k-v;v=k-f}else{for(f-=k;v=v&&(v=f);v>f&&(v=f);x+=k;v+=k}for(x++;x>>1),0>u(b,e[c+k])?v=k:x=k+1;return v}function n(b,c){function r(g){var t=k[g],w=u[g],y=k[g+1],r=u[g+1];u[g]=w+r;g===x-3&&(k[g+1]=k[g+2],u[g+1]=u[g+2]);x--;g=e(b[y],b,t,w,0,c);t+=g;w-=g;if(0!==w&&(r=l(b[t+w-1],b,y,r,r-1,c),0!==r))if(w<=r){for(var n=t,t=w,w=r,r=0;rc(b[y],v[g])){if(b[n++]=b[y++],F++,B=0,0===--w){p=!0;break}}else if(b[n++]=v[g++],B++,F=0,1===--t){p=!0;break}while((B|F)=t){p=!0;break}}b[n++]=b[y++];if(0===--w){p=!0;break}F=l(v[g],b,y,w,0,c);if(0!==F){for(r=0;rh&&(h=0);h+=2}f=h;1>f&&(f=1);if(1===t){for(r=0;rc(v[h],b[n])){if(b[y--]=b[n--],E++,G=0,0===--w){q=!0;break}}else if(b[y--]=v[h--],G++,E=0,1===--r){q=!0;break}while((E|G)