scripts.f9ec516485dfc28e7059.js 1.2 MB

1
  1. !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G2_3=e():t.G2_3=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=389)}([function(t,e,n){var r=n(127),i=n(16),a=r.mix({},r,{assign:r.mix,merge:r.deepMix,cloneDeep:r.clone,isFinite:isFinite,isNaN:isNaN,snapEqual:r.isNumberEqual,remove:r.pull,inArray:r.contains,toAllPadding:function(t){var e=0,n=0,r=0,i=0;return a.isNumber(t)||a.isString(t)?e=n=r=i=t:a.isArray(t)?(e=t[0],r=a.isNil(t[1])?t[0]:t[1],i=a.isNil(t[2])?t[0]:t[2],n=a.isNil(t[3])?r:t[3]):a.isObject(t)&&(e=t.top||0,r=t.right||0,i=t.bottom||0,n=t.left||0),[e,r,i,n]},getClipByRange:function(t){var e=t.tl,n=t.br;return new i.Rect({attrs:{x:e.x,y:e.y,width:n.x-e.x,height:n.y-e.y}})}});a.Array={groupToMap:r.groupToMap,group:r.group,merge:r.merge,values:r.valuesOfKey,getRange:r.getRange,firstValue:r.firstValue,remove:r.pull},t.exports=a},function(t,e,n){var r=n(81),i={};r.merge(i,r,{mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};i.each(e,function(e){i.augment(t,e);var a=e[n];a&&i.merge(r,a)}),t[n]=i.merge(r,t[n])}}}),t.exports=i},function(t,e,n){var r=n(24),i=n(4);t.exports=function(t,e){if(t)if(i(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(r(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){var r=n(25),i=n(127),a=i.mix({assign:i.mix,isFinite:isFinite,isNaN:isNaN,Group:r.Group,Event:r.Event},i);t.exports=a},function(t,e,n){var r=n(12),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){var r=n(1),i=n(189),a=n(102),o=n(54),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={},r.extend(s,a);var u={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};r.augment(s,i,{isShape:!0,drawInner:function(t){var e=this._attrs;this.createPath(t);var n=t.globalAlpha;if(this.hasFill()){var i=e.fillOpacity;r.isNil(i)||1===i?t.fill():(t.globalAlpha=i,t.fill(),t.globalAlpha=n)}if(this.hasStroke()&&this._attrs.lineWidth>0){var a=e.strokeOpacity;r.isNil(a)||1===a||(t.globalAlpha=a),t.stroke()}this.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=[t,e,1];if(this.invert(n),this.isHitBox()){var r=this.getBBox();if(r&&!o.box(r.minX,r.maxX,r.minY,r.maxY,n[0],n[1]))return!1}var i=this._attrs.clip;return i?(i.invert(n,this.get("canvas")),!!i.isPointInPath(n[0],n[1])&&this.isPointInPath(n[0],n[1])):this.isPointInPath(n[0],n[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs;return(t.lineWidth||0)+(t.lineAppendWidth||0)},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;return t||((t=this.calculateBox())&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._cfg.box=t),t},clone:function(){var t,e=this._attrs,n={};return r.each(e,function(t,i){n[i]=u[i]&&r.isArray(e[i])?function(t){for(var e=[],n=0;n<t.length;n++)r.isArray(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[i]):e[i]}),(t=new this.constructor({attrs:n}))._cfg.zIndex=this._cfg.zIndex,t}}),t.exports=s},function(t,e,n){var r=n(0),i=n(151),a={version:"3.5.7",renderer:"canvas",trackingInfo:{},animate:!0,widthRatio:{column:.5,rose:.9999999,multiplePie:1/1.3},showSinglePoint:!1,connectNulls:!1,scales:{},registerTheme:function(t,e){i[t]=e},setTheme:function(t){var e;e=r.isObject(t)?t:-1!==r.indexOf(Object.keys(i),t)?i[t]:i.default,r.deepMix(a,e)}};a.setTheme("default"),t.exports=a},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}t.exports=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Number")}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"String")}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Function")}},function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e){t.exports=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e){t.exports={FONT_FAMILY:'"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"'}},function(t,e,n){var r=n(3),i=n(156),a=["min","max","median","start","end"],o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{xScales:null,yScales:null,el:null})},n.render=function(){},n.clear=function(){var t=this.get("el");t&&t.remove()},n.changeVisible=function(t){this.set("visible",t);var e=this.get("el");e&&(e.set?e.set("visible",t):e.style.display=t?"":"none")},n.parsePoint=function(t,e){var n,a,o=this.get("xScales"),s=this.get("yScales");if(r.isFunction(e)&&(e=e(o,s)),r.isArray(e)&&r.isString(e[0])&&-1!==e[0].indexOf("%"))return this._parsePercentPoint(t,e);if(r.isArray(e))n=this._getNormalizedValue(e[0],i.getFirstScale(o)),a=this._getNormalizedValue(e[1],i.getFirstScale(s));else for(var u in e){var c=e[u];o[u]&&(n=this._getNormalizedValue(c,o[u])),s[u]&&(a=this._getNormalizedValue(c,s[u],"y"))}return r.isNil(n)||r.isNil(a)?void 0:t.convert({x:n,y:a})},n._getNormalizedValue=function(t,e){return-1!==r.indexOf(a,t)?"start"===t?0:"end"===t?1:e.scale("median"===t?e.isCategory?(e.values.length-1)/2:(e.min+e.max)/2:e.isCategory?"min"===t?0:e.values.length-1:e[t]):e.scale(t)},n._parsePercentPoint=function(t,e){var n=parseFloat(e[0])/100,r=parseFloat(e[1])/100,i=t.start,a=t.end,o=Math.min(i.x,a.x),s=Math.min(i.y,a.y);return{x:t.width*n+o,y:t.height*r+s}},e}(n(32));t.exports=o},function(t,e,n){var r=n(25);t.exports=r},function(t,e,n){var r=n(8),i=n(2),a=n(24),o=n(5),s=function(){function t(t){this._initDefaultCfg(),r(this,t),this.init()}var e=t.prototype;return e._initDefaultCfg=function(){this.type="base",this.formatter=null,this.range=[0,1],this.ticks=null,this.values=[]},e.init=function(){},e.getTicks=function(){var t=this,e=[];return i(t.ticks,function(n){var r;r=a(n)?n:{text:t.getText(n),tickValue:n,value:t.scale(n)},e.push(r)}),e},e.getText=function(t,e){var n=this.formatter;return t=n?n(t,e):t,!o(t)&&t.toString||(t=""),t.toString()},e.rangeMin=function(){return this.range[0]},e.rangeMax=function(){var t=this.range;return t[t.length-1]},e.invert=function(t){return t},e.translate=function(t){return t},e.scale=function(t){return t},e.clone=function(){var t=this,e=t.constructor,n={};return i(t,function(e,r){n[r]=t[r]}),new e(n)},e.change=function(t){return this.ticks=null,r(this,t),this.init(),this},t}();t.exports=s},function(t,e,n){var r=n(0),i=n(22),a=r.PathUtil,o={},s={_coord:null,draw:function(t,e){return this.drawShape?this.drawShape(t,e):null},setCoord:function(t){this._coord=t},parsePath:function(t,e){var n=this._coord;return t=a.parsePathString(t),n.isPolar&&!1!==e?i.convertPolarPath(n,t):i.convertNormalPath(n,t)},parsePoint:function(t){return this._coord.convertPoint(t)},parsePoints:function(t){var e=this._coord,n=[];return r.each(t,function(t){n.push(e.convertPoint(t))}),n}},u={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){r.isArray(t)&&(t=t[0]);var e=this[t]||this[this.defaultShapeType];return e._coord=this._coord,e},getShapePoints:function(t,e){var n=this.getShape(t);return(n.getPoints||n.getShapePoints||this.getDefaultPoints)(e)},getDefaultPoints:function(){return[]},getMarkerCfg:function(t,e){var n=this.getShape(t);return n.getMarkerCfg||(n=this.getShape(this.defaultShapeType)),n.getMarkerCfg(e)},getSelectedCfg:function(){return{}},drawShape:function(t,e,n){var r=this.getShape(t).draw(e,n);return r&&(r.setSilent("origin",e.origin),r._id=e.yIndex?e._id+e.yIndex:e._id,r.name=this.name),r}};o.registerFactory=function(t,e){var n=r.upperFirst(t),i=r.assign({},u,e);return o[n]=i,i.name=t,i},o.registerShape=function(t,e,n){var i=r.upperFirst(t),a=o[i],u=r.assign({},s,n);return a[e]=u,u},o.getShapeFactory=function(t){return this[r.upperFirst(t=t||"point")]},t.exports=o},function(t,e,n){"use strict";var r=n(60);n.d(e,"a",function(){return r.e}),n.d(e,"f",function(){return r.g}),n.d(e,"d",function(){return r.f});var i=n(203);n.d(e,"e",function(){return i.a}),n.d(e,"c",function(){return i.b});var a=n(204);n.d(e,"b",function(){return a.a})},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t){return(u.isString(t)||u.isPlainObject(t))&&(t=[t]),u.each(t,function(e,n){u.isObject(e)||(t[n]={type:e})}),t}var a=n(73),o=n(297),s=n(148),u=n(0),c=n(7),l=n(305),f=n(18),h=n(337),p=n(338),d=n(339),g=n(340),v=["color","shape","size"],y=function(t){function e(e){var n;return(n=t.call(this,e)||this).viewTheme=n.get("viewTheme"),u.assign(r(r(n)),h,p,d),n.get("container")&&n._initContainer(),n._initOptions(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{_id:null,type:"base",coord:null,attrs:{},view:null,data:[],scales:{},container:null,labelContainer:null,shapeContainer:null,attrOptions:{},styleOptions:null,selectedOptions:null,activedOptions:null,hasDefaultAdjust:!1,adjusts:null,shapeType:null,generatePoints:!1,sortable:!1,labelCfg:null,shareTooltip:!0,tooltipCfg:null,animate:!0,animateCfg:null,visible:!0}},n._initOptions=function(){var t=this.get("adjusts");t&&(t=i(t),this.set("adjusts",t))},n._createScale=function(t,e){var n=this.get("scales"),r=n[t];return r||(r=this.get("view").createScale(t,e),n[t]=r),r},n._setAttrOptions=function(t,e){this.get("attrOptions")[t]=e},n._createAttrOption=function(t,e,n,r){var i={};i.field=e,n?u.isFunction(n)?i.callback=n:i.values=n:"color"!==t&&(i.values=r),this._setAttrOptions(t,i)},n.position=function(t){return this._setAttrOptions("position",{field:t}),this},n.color=function(t,e){return this._createAttrOption("color",t,e,(this.viewTheme||c).colors),this},n.size=function(t,e){return this._createAttrOption("size",t,e,(this.viewTheme||c).sizes),this},n.shape=function(t,e){var n=this.viewTheme||c,r=this.get("type");return this._createAttrOption("shape",t,e,n.shapes[r]||[]),this},n.opacity=function(t,e){return this._createAttrOption("opacity",t,e,(this.viewTheme||c).opacities),this},n.style=function(t,e){var n,r=this.get("styleOptions");return r||this.set("styleOptions",r={}),u.isObject(t)&&(e=t,t=null),t&&(n=g(t)),r.fields=n,r.style=e,this},n.label=function(t,e,n){var r,i=this.get("labelCfg");return i||this.set("labelCfg",i={}),t&&(r=g(t)),i.fields=r,u.isFunction(e)?(n||(n={}),i.callback=e):u.isObject(e)&&(n=e),i.globalCfg=n,this},n.tooltip=function(t,e){var n,r=this.get("tooltipCfg");return r||(r={}),!1===t?this.set("tooltipCfg",!1):(t&&(n=g(t)),r.fields=n,r.cfg=e),this.set("tooltipCfg",r),this},n.animate=function(t){return this.set("animateCfg",t),this},n.active=function(t,e){return!1===t?this.set("allowActive",!1):u.isObject(t)?(this.set("allowActive",!0),this.set("activedOptions",t)):(this.set("allowActive",!0),this.set("activedOptions",e)),this},n.adjust=function(t){return this.get("hasDefaultAdjust")||(t&&(t=i(t)),this.set("adjusts",t)),this},n.select=function(t,e){return!1===t?this.set("allowSelect",!1):u.isObject(t)?(this.set("allowSelect",!0),this.set("selectedOptions",t)):(this.set("allowSelect",!0),this.set("selectedOptions",e)),this},n.hasAdjust=function(t){var e=this.get("adjusts");if(!t)return!1;var n=!1;return u.each(e,function(e){if(e.type===t)return n=!0,!1}),n},n.hasStack=function(){var t=this.get("isStacked");return u.isNil(t)&&(t=this.hasAdjust("stack"),this.set("isStacked",t)),t},n.isInCircle=function(){var t=this.get("coord");return t&&t.isPolar},n._initContainer=function(){var t=this.get("shapeContainer");if(!t){var e=this.get("container"),n=this.get("view"),r=n&&n.get("_id");t=e.addGroup({viewId:r,visible:this.get("visible")}),this.set("shapeContainer",t)}},n.init=function(){var t=this;if(t._initContainer(),t._initAttrs(),t.get("tooltipCfg")&&t.get("tooltipCfg").fields){var e=t.get("tooltipCfg").fields;u.each(e,function(e){t._createScale(e)})}var n=t._processData();t.get("adjusts")&&t._adjust(n),t.set("dataArray",n)},n._initAttrs=function(){var t=this.get("attrs"),e=this.get("attrOptions"),n=this.get("coord"),r=this.viewTheme||c,i=!1;for(var o in e)if(e.hasOwnProperty(o)){var s=e[o],l=u.upperFirst(o),f=g(s.field);"position"===o&&(s.coord=n,1===f.length&&"theta"===n.type&&(f.unshift("1"),i=!0));for(var h=[],p=0;p<f.length;p++){var d=this._createScale(f[p]);"color"===o&&u.isNil(s.values)&&(s.values=d.values.length<=8?i?r.colors_pie:r.colors:d.values.length<=16?i?r.colors_pie_16:r.colors_16:r.colors_24,u.isNil(s.values)&&(s.values=r.colors)),h.push(d)}if("theta"===n.type&&"position"===o&&h.length>1){var v=h[1],y=Math.max.apply(null,v.values);isFinite(y)||(y=1),v.change({nice:!1,min:0,max:y})}s.scales=h;var m=new a[l](s);t[o]=m}},n._processData=function(){for(var t=this.get("data"),e=[],n=this._groupData(t),r=0;r<n.length;r++){var i=this._saveOrigin(n[r]);this._numberic(i),e.push(i)}return e},n._groupData=function(t){var e=this._getGroupScales().map(function(t){return t.field});return u.Array.group(t,e)},n._saveOrigin=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],i={};for(var a in r)i[a]=r[a];i._origin=r,e.push(i)}return e},n._numberic=function(t){for(var e=this.getAttr("position").scales,n=0;n<t.length;n++)for(var r=t[n],i=0;i<Math.min(2,e.length);i++){var a=e[i];if(a.isCategory){var o=a.field;r[o]=a.translate(r[o])}}},n._getGroupScales=function(){var t=this.get("groupScales");if(!t){t=[];var e=this.get("attrs");u.each(e,function(e){-1!==v.indexOf(e.type)&&u.each(e.scales,function(e){e.isCategory&&-1===u.indexOf(t,e)&&t.push(e)})}),this.set("groupScales",t)}return t},n._updateStackRange=function(t,e,n){for(var r=u.Array.merge(n),i=e.min,a=e.max,o=0;o<r.length;o++){var s=r[o],c=Math.min.apply(null,s[t]),l=Math.max.apply(null,s[t]);c<i&&(i=c),l>a&&(a=l)}(i<e.min||a>e.max)&&e.change({min:i,max:a})},n._adjust=function(t){var e=this,n=e.get("adjusts"),r=this.viewTheme||c,i=e.getYScale(),a=e.getXScale(),s=a.field,l=i?i.field:null;u.each(n,function(n){var c=u.mix({xField:s,yField:l},n),f=u.upperFirst(n.type);if("Dodge"===f){var h=[];if(a.isCategory||a.isIdentity)h.push("x");else{if(i)throw new Error("dodge is not support linear attribute, please use category attribute!");h.push("y")}c.adjustNames=h,c.dodgeRatio=r.widthRatio.column}else if("Stack"===f){var p=e.get("coord");if(!i){c.height=p.getHeight();var d=e.getDefaultValue("size")||3;c.size=d}!p.isTransposed&&u.isNil(c.reverseOrder)&&(c.reverseOrder=!0)}new o[f](c).processAdjust(t),"Stack"===f&&i&&e._updateStackRange(l,i,t)})},n.setCoord=function(t){this.set("coord",t);var e=this.getAttr("position");this.get("shapeContainer").setMatrix(t.matrix),e&&(e.coord=t)},n.paint=function(){var t=this.get("dataArray"),e=[],n=this.getShapeFactory();n.setCoord(this.get("coord")),this.set("shapeFactory",n);var r=this.get("shapeContainer");this._beforeMapping(t);for(var i=0;i<t.length;i++){var a=t[i],o=i;a=this._mapping(a),e.push(a),this.draw(a,r,n,o)}this.get("labelCfg")&&this._addLabels(u.union.apply(null,e),r.get("children")),this.get("sortable")?this.set("dataArray",e):this._sort(e)},n._sort=function(t){var e=this.getXScale(),n=e.field;u.each(t,function(t){t.sort(function(t,r){return e.translate(t._origin[n])-e.translate(r._origin[n])})}),this.set("dataArray",t)},n._beforeMapping=function(t){var e=this;if(e.get("sortable")){var n=e.getXScale(),r=n.field;u.each(t,function(t){t.sort(function(t,e){return n.translate(t[r])-n.translate(e[r])})})}e.get("generatePoints")&&(u.each(t,function(t){e._generatePoints(t)}),u.each(t,function(e,n){var r=t[n+1];r&&(e[0].nextPoints=r[0].points)}))},n._addLabels=function(t,e){var n=this,r=n.get("type"),i=n.get("viewTheme")||c,a=n.get("coord"),o=l.getLabelsClass(a.type,r),s=n.get("container"),f=u.map(n.get("labelCfg").fields,function(t){return n._createScale(t)}),h=s.addGroup(o,{_id:this.get("_id"),labelCfg:u.mix({scales:f},n.get("labelCfg")),coord:a,geom:n,geomType:r,viewTheme:i,visible:n.get("visible")});h.showLabels(t,e),n.set("labelContainer",h)},n.getShapeFactory=function(){var t=this.get("shapeFactory");if(!t){var e=this.get("shapeType");t=f.getShapeFactory(e),this.set("shapeFactory",t)}return t},n._generatePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttr("shape"),r=0;r<t.length;r++){var i=t[r],a=this.createShapePointsCfg(i),o=n?this._getAttrValues(n,i):null,s=e.getShapePoints(o,a);i.points=s}},n.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this._normalizeValues(t[e.field],e),y:n?this._normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},n.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},n._normalizeValues=function(t,e){var n=[];if(u.isArray(t))for(var r=0;r<t.length;r++)n.push(e.scale(t[r]));else n=e.scale(t);return n},n._mapping=function(t){for(var e=this.get("attrs"),n=[],r=0;r<t.length;r++){var i=t[r],a={};for(var o in a._origin=i._origin,a.points=i.points,a.nextPoints=i.nextPoints,e)if(e.hasOwnProperty(o)){var s=e[o],c=s.names,l=this._getAttrValues(s,i);if(c.length>1)for(var f=0;f<l.length;f++){var h=l[f];a[c[f]]=u.isArray(h)&&1===h.length?h[0]:h}else a[c[0]]=1===l.length?l[0]:l}n.push(a)}return n},n._getAttrValues=function(t,e){for(var n=t.scales,r=[],i=0;i<n.length;i++){var a=n[i];r.push("identity"===a.type?a.value:e[a.field])}return t.mapping.apply(t,r)},n.getAttrValue=function(t,e){var n=this.getAttr(t),r=null;return n&&(r=this._getAttrValues(n,e)[0]),r},n.getDefaultValue=function(t){var e=this.get(t),n=this.getAttr(t);if(n){var r=n.getScale(t);"identity"===r.type&&(e=r.value)}return e},n.draw=function(t,e,n,r){for(var i=0;i<t.length;i++)this.drawPoint(t[i],e,n,r+i)},n.getCallbackCfg=function(t,e,n){if(!t)return e;var r={},i=t.map(function(t){return n[t]});return u.each(e,function(t,e){r[e]=u.isFunction(t)?t.apply(null,i):t}),r},n._getShapeId=function(t){var e=this.get("_id"),n=this.get("keyFields");if(n&&n.length>0)u.each(n,function(n){e+="-"+t[n]});else{var r,i=this.get("type"),a=this.getXScale(),o=this.getYScale();r=a.isIdentity?a.value:t[a.field||"x"],e+="interval"===i||"schema"===i?"-"+r:"line"===i||"area"===i||"path"===i?"-"+i:"-"+r+"-"+t[o.field||"y"];var s=this._getGroupScales();u.isEmpty(s)||u.each(s,function(n){"identity"!==n.type&&(e+="-"+t[n.field])})}return e},n.getDrawCfg=function(t){var e={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:this.isInCircle(),opacity:t.opacity},n=this.get("styleOptions");return n&&n.style&&(e.style=this.getCallbackCfg(n.fields,n.style,t._origin)),this.get("generatePoints")&&(e.points=t.points,e.nextPoints=t.nextPoints),this.get("animate")&&(e._id=this._getShapeId(t._origin)),e},n.appendShapeInfo=function(t,e){t&&(t.setSilent("index",e),t.setSilent("coord",this.get("coord")),this.get("animate")&&this.get("animateCfg")&&t.setSilent("animateCfg",this.get("animateCfg")))},n._applyViewThemeShapeStyle=function(t,e,n){var r=this.viewTheme||c,i=n.name;e?e&&(e.indexOf("hollow")>-1||e.indexOf("liquid")>-1)&&(i="hollow"+u.upperFirst(i)):n.defaultShapeType.indexOf("hollow")>-1&&(i="hollow"+u.upperFirst(i)),t.style=u.mix({},r.shape[i]||{},t.style)},n.drawPoint=function(t,e,n,r){var i=t.shape,a=this.getDrawCfg(t);this._applyViewThemeShapeStyle(a,i,n);var o=n.drawShape(i,a,e);this.appendShapeInfo(o,r)},n.getAttr=function(t){return this.get("attrs")[t]},n.getXScale=function(){return this.getAttr("position").scales[0]},n.getYScale=function(){return this.getAttr("position").scales[1]},n.getShapes=function(){var t=[],e=this.get("shapeContainer").get("children");return u.each(e,function(e){e.get("origin")&&t.push(e)}),t},n.getAttrsForLegend=function(){var t=this.get("attrs"),e=[];return u.each(t,function(t){-1!==v.indexOf(t.type)&&e.push(t)}),e},n.getFieldsForLegend=function(){var t=[],e=this.get("attrOptions");return u.each(v,function(n){var r=e[n];r&&r.field&&u.isString(r.field)&&(t=t.concat(r.field.split("*")))}),u.uniq(t)},n.changeVisible=function(t,e){this.set("visible",t);var n=this.get("shapeContainer");n&&n.set("visible",t);var r=this.get("labelContainer");r&&r.set("visible",t),!e&&n&&n.get("canvas").draw()},n.reset=function(){this.set("attrOptions",{}),this.clearInner()},n.clearInner=function(){this.clearActivedShapes(),this.clearSelected();var t=this.get("shapeContainer");t&&t.clear();var e=this.get("labelContainer");e&&e.remove(),this.set("attrs",{}),this.set("groupScales",null),this.set("labelContainer",null),this.set("xDistance",null),this.set("isStacked",null)},n.clear=function(){this.clearInner(),this.set("scales",{})},n.destroy=function(){this.clear();var e=this.get("shapeContainer");e&&e.remove(),this.offEvents(),t.prototype.destroy.call(this)},n.bindEvents=function(){this.get("view")&&(this._bindActiveAction(),this._bindSelectedAction())},n.offEvents=function(){this.get("view")&&(this._offActiveAction(),this._offSelectedAction())},e}(s);t.exports=y},function(t,e,n){t.exports={Axis:n(306),Component:n(66),Guide:n(314),Label:n(323),Legend:n(324),Tooltip:n(330)}},function(t,e,n){function r(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function i(t,e){for(var n=t.length,r=[t[0]],i=1;i<n;i+=2){var a=e.convertPoint({x:t[i],y:t[i+1]});r.push(a.x,a.y)}return r}var a=n(0),o=n(334),s={getLinePath:function(t,e){return function(t,e){if(!t.length)return[];for(var n=[],r=0,i=t.length;r<i;r++){var a=t[r];n.push(0===r?["M",a.x,a.y]:["L",a.x,a.y])}return e&&n.push(["Z"]),n}(t,e)},getSplinePath:function(t,e,n){var r=[],i=t[0],u=null;if(t.length<=2)return s.getLinePath(t,e);a.each(t,function(t){u&&u.x===t.x&&u.y===t.y||(r.push(t.x),r.push(t.y),u=t)});var c=o.catmullRom2bezier(r,e,n=n||[[0,0],[1,1]]);return c.unshift(["M",i.x,i.y]),c},getPointRadius:function(t,e){return r(t,e)},getPointAngle:function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},convertNormalPath:function(t,e){var n=[];return a.each(e,function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(i(e,t));break;case"z":default:n.push(e)}}),n},convertPolarPath:function(t,e){var n,o,s=[];return a.each(e,function(a,u){switch(a[0].toLowerCase()){case"m":case"c":case"q":s.push(i(a,t));break;case"l":n=e[u-1],o=a,(t.isTransposed?n[n.length-2]===o[1]:n[n.length-1]===o[2])?s=s.concat(function(t,e,n){var i=n.startAngle,a=n.endAngle,o={x:t[1],y:t[2]},s={x:e[1],y:e[2]},u=[],c=n.isTransposed?"y":"x",l=Math.abs(s[c]-o[c])*(a-i),f=s[c]>=o[c]?1:0,h=l>Math.PI?1:0,p=n.convertPoint(s),d=r(n,p);if(d>=.5)if(l===2*Math.PI){var g=n.convertPoint({x:(s.x+o.x)/2,y:(s.y+o.y)/2});u.push(["A",d,d,0,h,f,g.x,g.y]),u.push(["A",d,d,0,h,f,p.x,p.y])}else u.push(["A",d,d,0,h,f,p.x,p.y]);return u}(n,o,t)):s.push(i(a,t));break;case"z":default:s.push(a)}}),function(t){a.each(t,function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}})}(s),s}};t.exports=s},function(t,e,n){var r=n(5);t.exports=function(t){return r(t)?"":t.toString()}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":n(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){t.exports={Canvas:n(181),Group:n(101),Shape:n(6),Arc:n(105),Circle:n(106),Dom:n(107),Ellipse:n(108),Fan:n(109),Image:n(110),Line:n(111),Marker:n(56),Path:n(112),Polygon:n(113),Polyline:n(114),Rect:n(115),Text:n(116),PathSegment:n(39),PathUtil:n(57),Event:n(100),version:"3.3.6"}},function(t,e,n){var r=n(48),i=n(12);t.exports=function(t){if(!r(t)||!i(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o={};t.exports={parseRadius:function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},parsePath:function(t){return r.isArray(t=t||[])?t:r.isString(t)?(t=t.match(i),r.each(t,function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},numberToColor:function(t){var e=o[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;o[t]=e="#"+n}return e}}},function(t,e,n){"use strict";function r(t,e){return function(n){return t+n*e}}function i(t,e){var n=e-t;return n?r(t,n):Object(a.a)(isNaN(t)?e:t)}e.c=function(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(a.a)(isNaN(t)?e:t)},e.b=function(t){return 1==(t=+t)?i:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(a.a)(isNaN(e)?n:e)}},e.a=i;var a=n(121)},function(t,e,n){function r(t,e){return i(e)?e:t.invert(t.scale(e))}var i=n(10),a=n(4),o=n(5),s=n(8),u=n(2),c=function(){function t(t){var e=this;this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null;var n=null,r=this.callback;if(t.callback){var i=t.callback;n=function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var s=i.apply(void 0,n);return o(s)&&(s=r.apply(e,n)),s}}s(this,t),n&&s(this,{callback:n})}var e=t.prototype;return e._getAttrValue=function(t,e){var n=this.values;if(t.isCategory&&!this.linear)return n[t.translate(e)%n.length];var r=t.scale(e);return this.getLinearValue(r)},e.getLinearValue=function(t){var e=this.values,n=e.length-1,r=Math.floor(n*t),i=e[r];return i+((r===n?i:e[r+1])-i)*(n*t-r)},e.callback=function(t){var e=this.scales[0];return"identity"===e.type?e.value:this._getAttrValue(e,t)},e.getNames=function(){for(var t=this.names,e=Math.min(this.scales.length,t.length),n=[],r=0;r<e;r++)n.push(t[r]);return n},e.getFields=function(){var t=[];return u(this.scales,function(e){t.push(e.field)}),t},e.getScale=function(t){return this.scales[this.names.indexOf(t)]},e.mapping=function(){for(var t=this.scales,e=this.callback,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=r;if(e){for(var o=0,s=r.length;o<s;o++)r[o]=this._toOriginParam(r[o],t[o]);a=e.apply(this,r)}return[].concat(a)},e._toOriginParam=function(t,e){var n=t;if(!e.isLinear)if(a(t)){n=[];for(var i=0,o=t.length;i<o;i++)n.push(r(e,t[i]))}else n=r(e,t);return n},t}();t.exports=c},function(t,e,n){var r=n(8),i=function(){function t(t){this._initDefaultCfg(),r(this,t)}var e=t.prototype;return e._initDefaultCfg=function(){this.adjustNames=["x","y"]},e.processAdjust=function(){},t}();t.exports=i},function(t,e,n){var r=n(32),i=n(3),a=n(153),o=n(154),s=n(14).FONT_FAMILY,u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{_id:null,zIndex:4,ticks:null,line:null,tickLine:null,subTickCount:0,subTickLine:null,grid:null,label:{offset:0,offsetX:0,offsetY:0,textStyle:{},autoRotate:!0,autoHide:!1,formatter:null},labelItems:[],title:{autoRotate:!0,textStyle:{}},autoPaint:!0})},n.beforeRender=function(){var t=this.get("title"),e=this.get("label"),n=this.get("grid");t&&this.set("title",i.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:s,textAlign:"center"},offset:48},t)),e&&this.set("label",i.deepMix({autoRotate:!0,autoHide:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:s},offset:10},e)),n&&this.set("grid",i.deepMix({lineStyle:{lineWidth:1,stroke:"#C0D0E0"}},n))},n.render=function(){this.beforeRender(),this.get("label")&&this.renderLabels(),this.get("autoPaint")&&this.paint(),i.isNil(this.get("title"))||this.renderTitle(),this.get("group").sort()},n.renderLabels=function(){var t=this.get("group"),e=this.get("label"),n=new o;this.set("labelRenderer",n),n.set("labelCfg",e),i.each(["formatter","htmlTemplate","labelLine","textStyle","useHtml"],function(t){e[t]&&n.set(t,e[t])}),n.set("coord",this.get("coord")),n.set("group",t.addGroup()),n.set("canvas",this.get("canvas"))},n._parseTicks=function(t){for(var e=(t=t||[]).length,n=0;n<e;n++){var r=t[n];i.isObject(r)||(t[n]=this.parseTick(r,n,e))}return this.set("ticks",t),t},n._addTickItem=function(t,e,n,r){void 0===r&&(r="");var i=this.get("tickItems"),a=this.get("subTickItems"),o=this.getTickEnd(e,n,t),s={x1:e.x,y1:e.y,x2:o.x,y2:o.y};i||(i=[]),a||(a=[]),"sub"===r?a.push(s):i.push(s),this.set("tickItems",i),this.set("subTickItems",a)},n._renderLine=function(){var t,e=this.get("line");if(e){t=this.getLinePath(),e=i.mix({path:t},e);var n=this.get("group").addShape("path",{attrs:e});n.name="axis-line",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("lineShape",n)}},n._processCatTicks=function(){var t=this.get("label"),e=this.get("tickLine"),n=this.get("ticks");n=this._parseTicks(n);for(var r=this._getNormalizedTicks(n),i=0;i<r.length;i+=3){var a=this.getTickPoint(r[i]),o=this.getTickPoint(r[i+1]),s=this.getTickPoint(r[i+2]),u=Math.floor(i/3),c=n[u];e&&(0===u&&this._addTickItem(u,o,e.length),this._addTickItem(u,s,e.length)),t&&this.addLabel(c,a,u)}},n._getNormalizedTicks=function(t){var e=0;t.length>1&&(e=(t[1].value-t[0].value)/2);for(var n=[],r=0;r<t.length;r++){var a=t[r];n.push(a.value,a.value-e,a.value+e)}var o=i.arrayUtil.getRange(n);return n.map(function(t){return(t-o.min)/(o.max-o.min)})},n.addLabel=function(t,e,n){var r=this.get("labelItems"),a=this.get("labelRenderer"),o=i.deepMix({},this.get("label"));if(a){var s=this.get("_labelOffset");i.isNil(this.get("label").offset)||(s=this.get("label").offset);var u=this.getSideVector(s,e,n);e={x:e.x+u[0]+o.offsetX,y:e.y+u[1]+o.offsetY},o.text=t.text,o.x=e.x,o.y=e.y,o.point=e,o.textAlign=this.getTextAnchor(u),e.rotate&&(o.rotate=e.rotate),r.push(o)}},n._processTicks=function(){var t=this,e=t.get("label"),n=t.get("subTickCount"),r=t.get("tickLine"),a=t.get("ticks");if(a=t._parseTicks(a),i.each(a,function(n,i){var a=t.getTickPoint(n.value,i);r&&t._addTickItem(i,a,r.length),e&&t.addLabel(n,a,i)}),n){var o=t.get("subTickLine");i.each(a,function(e,i){if(i>0){var s=e.value-a[i-1].value;s/=t.get("subTickCount")+1;for(var u=1;u<=n;u++){var c,l=t.getTickPoint(i?a[i-1].value+u*s:u*s);c=o&&o.length?o.length:parseInt(.6*r.length,10),t._addTickItem(u-1,l,c,"sub")}}})}},n._addTickLine=function(t,e){var n=i.mix({},e),r=[];i.each(t,function(t){r.push(["M",t.x1,t.y1]),r.push(["L",t.x2,t.y2])}),delete n.length,n.path=r;var a=this.get("group").addShape("path",{attrs:n});a.name="axis-ticks",a._id=this.get("_id")+"-ticks",a.set("coord",this.get("coord")),this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo"))},n._renderTicks=function(){var t=this.get("tickItems"),e=this.get("subTickItems");if(!i.isEmpty(t)){var n=this.get("tickLine");this._addTickLine(t,n)}if(!i.isEmpty(e)){var r=this.get("subTickLine")||this.get("tickLine");this._addTickLine(e,r)}},n._renderGrid=function(){var t=this.get("grid");if(t){t.coord=this.get("coord"),t.appendInfo=this.get("appendInfo");var e=this.get("group");this.set("gridGroup",e.addGroup(a,t))}},n._renderLabels=function(){var t=this.get("labelRenderer"),e=this.get("labelItems");t&&(t.set("items",e),t._dryDraw())},n.paint=function(){var t=this.get("tickLine"),e=!0;t&&t.hasOwnProperty("alignWithLabel")&&(e=t.alignWithLabel),this._renderLine();var n=this.get("type");"cat"!==n&&"timeCat"!==n||!1!==e?this._processTicks():this._processCatTicks(),this._renderTicks(),this._renderGrid(),this._renderLabels();var r=this.get("label");r&&r.autoRotate&&this.autoRotateLabels(),r&&r.autoHide&&this.autoHideLabels()},n.parseTick=function(t,e,n){return{text:t,value:e/(n-1)}},n.getTextAnchor=function(t){return Math.abs(t[1]/t[0])>=1?"center":t[0]>0?"start":"end"},n.getMaxLabelWidth=function(t){var e=t.getLabels(),n=0;return i.each(e,function(t){var e=t.getBBox().width;n<e&&(n=e)}),n},n.getMaxLabelHeight=function(t){var e=t.getLabels(),n=0;return i.each(e,function(t){var e=t.getBBox().height;n<e&&(n=e)}),n},n.destroy=function(){if(!this.destroyed){t.prototype.destroy.call(this);var e=this.get("gridGroup");e&&e.remove();var n=this.get("labelRenderer");n&&n.destroy(),this.get("group").destroy(),this.destroyed=!0}},n.clear=function(){var t=this.get("group");if(!t.get("destroyed")&&t.get("children").length){var e=this.get("gridGroup");e&&e.clear();var n=this.get("labelRenderer");n&&n.clear(),this.get("group").clear()}},n.autoRotateLabels=function(){},n.autoHideLabels=function(){},n.renderTitle=function(){},n.getLinePath=function(){},n.getTickPoint=function(){},n.getTickEnd=function(){},n.getSideVector=function(){},e}(r);t.exports=u},function(t,e,n){var r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{_id:null,canvas:null,container:null,group:null,capture:!1,coord:null,offset:[0,0],plotRange:null,position:[0,0],visible:!0,zIndex:1}},n._init=function(){},n.clear=function(){},n.destroy=function(){},n.beforeRender=function(){},n.render=function(){},n.afterRender=function(){},n.beforeDraw=function(){},n.draw=function(){},n.afterDraw=function(){},n.show=function(){},n.hide=function(){},n.setOffset=function(){},n.setPosition=function(){},n.setVisible=function(){},n.setZIndex=function(){},e}(n(66));t.exports=r},function(t,e,n){var r=n(5),i=n(2),a=n(17),o=n(174),s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="linear",this.isLinear=!0,this.nice=!1,this.min=null,this.minLimit=null,this.max=null,this.maxLimit=null,this.tickCount=null,this.tickInterval=null,this.minTickInterval=null,this.snapArray=null},n.init=function(){if(this.ticks){var t=this.ticks,e=this.translate(t[0]),n=this.translate(t[t.length-1]);(r(this.min)||this.min>e)&&(this.min=e),(r(this.max)||this.max<n)&&(this.max=n)}else this.min=this.translate(this.min),this.max=this.translate(this.max),this.initTicks()},n.calculateTicks=function(){var t=this.min,e=this.max,n=this.minLimit,r=this.maxLimit,i=this.tickCount,a=this.tickInterval,s=this.minTickInterval,u=this.snapArray;if(1===i)throw new Error("linear scale'tickCount should not be 1");if(e<t)throw new Error("max: "+e+" should not be less than min: "+t);return o({min:t,max:e,minLimit:n,maxLimit:r,minCount:i,maxCount:i,interval:a,minTickInterval:s,snapArray:u}).ticks},n.initTicks=function(){var t=this,e=t.calculateTicks();if(t.nice)t.ticks=e,t.min=e[0],t.max=e[e.length-1];else{var n=[];i(e,function(e){e>=t.min&&e<=t.max&&n.push(e)}),n.length||(n.push(t.min),n.push(t.max)),t.ticks=n}},n.scale=function(t){if(r(t))return NaN;var e=this.max,n=this.min;if(e===n)return 0;var i=(t-n)/(e-n),a=this.rangeMin();return a+i*(this.rangeMax()-a)},n.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+e*(this.max-this.min)},e}(a);a.Linear=s,t.exports=s},function(t,e,n){var r=n(13);t.exports=function(t){return r(t)?Array.prototype.slice.call(t):[]}},function(t,e){t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-5;return Math.abs(t-e)<n}},function(t,e,n){var r=n(1).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];return r.normalize(u,u),Math.abs(r.dot([a-t,o-e],u))},box:function(t,e,n,r,i){var a=i/2,o=Math.min(t,n),s=Math.max(t,n);return{minX:o-a,minY:Math.min(e,r)-a,maxX:s+a,maxY:Math.max(e,r)+a}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){function r(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function i(t,e,n,r){var i,a;return r?t<e?(i=e-t,a=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function a(t,e,n,r){var a=0;return n-e>=2*Math.PI&&(a=2*Math.PI),e=s.mod(e,2*Math.PI),n=s.mod(n,2*Math.PI)+a,t=s.mod(t,2*Math.PI),r?e>=n?t>n&&t<e?t:i(t,n,e,!0):t<e||t>n?t:i(t,e,n):e<=n?e<t&&t<n?t:i(t,e,n,!0):t>e||t<n?t:i(t,n,e)}function o(t,e,n,r,i,o,u,c,l){var f=[u,c],h=s.vec2.subtract([],f,[t,e]),p=s.vec2.angleTo([1,0],h);p=a(p,r,i,o);var d=[n*Math.cos(p)+t,n*Math.sin(p)+e];return l&&(l.x=d[0],l.y=d[1]),s.vec2.distance(d,f)}var s=n(1);t.exports={nearAngle:a,projectPoint:function(t,e,n,r,i,a,s,u){var c={};return o(t,e,n,r,i,a,s,u,c),c},pointDistance:o,box:function(t,e,n,i,o,u){var c=Math.PI/2,l=Math.PI,f=3*Math.PI/2,h=[],p=a(0,i,o,u);0===p&&h.push(r(t,e,n,0)),(p=a(c,i,o,u))===c&&h.push(r(t,e,n,c)),(p=a(l,i,o,u))===l&&h.push(r(t,e,n,l)),(p=a(f,i,o,u))===f&&h.push(r(t,e,n,f)),h.push(r(t,e,n,i)),h.push(r(t,e,n,o));var d=1/0,g=-1/0,v=1/0,y=-1/0;return s.each(h,function(t){d>t.x&&(d=t.x),g<t.x&&(g=t.x),v>t.y&&(v=t.y),y<t.y&&(y=t.y)}),{minX:d,minY:v,maxX:g,maxY:y}}}},function(t,e,n){function r(t,e,n,r,i,a,o){var p,d,g,v,y,m,x;if(!e.fill){var b=e.arrowLength||f,_=e.arrowAngle?e.arrowAngle*s/180:h;x=l(r-a,n-i),y=Math.abs(e.lineWidth*c(x))/2,m=Math.abs(e.lineWidth*u(x))/2,o&&(y=-y,m=-m),p=i+b*c(x+_/2),d=a+b*u(x+_/2),g=i+b*c(x-_/2),v=a+b*u(x-_/2),t.beginPath(),t.moveTo(p-y,d-m),t.lineTo(i-y,a-m),t.lineTo(g-y,v-m),t.moveTo(i-y,a-m),t.lineTo(i+y,a+m),t.moveTo(i,a),t.stroke()}}function i(t,e,n,r,i,s,u){var c=u?e.startArrow:e.endArrow,l=c.d,f=0,h=i-n,p=s-r,d=Math.atan(h/p);0===p&&h<0?f=Math.PI:h>0&&p>0?f=Math.PI/2-d:h<0&&p<0?f=-Math.PI/2-d:h>=0&&p<0?f=-d-Math.PI/2:h<=0&&p>0&&(f=Math.PI/2-d);var g=function(t){var e,n=[],r=a.parsePath(c.path);if(!Array.isArray(r)||0===r.length||"M"!==r[0][0]&&"m"!==r[0][0])return!1;for(var i=r.length,s=0;s<r.length;s++)e=new o(r[s],e,s===i-1),n.push(e);return n}();if(g){l&&(u?(i+=Math.sin(Math.abs(d))*l,s=s+Math.cos(Math.abs(d))*l-.5*t.lineWidth):(i-=Math.sin(Math.abs(d))*l,s=s-Math.cos(Math.abs(d))*l+.5*t.lineWidth)),t.save(),t.beginPath(),t.translate(i,s),t.rotate(f);for(var v=0;v<g.length;v++)g[v].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}var a=n(27),o=n(39),s=Math.PI,u=Math.sin,c=Math.cos,l=Math.atan2,f=10,h=s/3;t.exports={addStartArrow:function(t,e,n,a,o,s){"object"==typeof e.startArrow?i(t,e,n,a,o,s,!0):e.startArrow&&r(t,e,n,a,o,s,!0)},addEndArrow:function(t,e,n,a,o,s){"object"==typeof e.endArrow?i(t,e,n,a,o,s,!1):e.endArrow&&r(t,e,n,a,o,s,!1)}}},function(t,e,n){function r(t,e,n){return{x:n.x+t,y:n.y+e}}function i(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e))}function s(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}var u=n(1),c=n(54),l=n(55),f=n(103),h=n(104),p=u.vec3,d=u.mat3,g=["m","l","c","a","q","h","v","t","s","z"],v=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};u.augment(v,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var a,c,l,f,h=g.indexOf(n)>=0,p=h?n.toUpperCase():n,d=t,v=e.endPoint,y=d[1],m=d[2];switch(p){default:break;case"M":f=h?r(y,m,v):{x:y,y:m},this.command="M",this.params=[v,f],this.subStart=f,this.endPoint=f;break;case"L":f=h?r(y,m,v):{x:y,y:m},this.command="L",this.params=[v,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-v.x,f.y-v.y]},this.startTangent=function(){return[v.x-f.x,v.y-f.y]};break;case"H":f=h?r(y,0,v):{x:y,y:v.y},this.command="L",this.params=[v,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-v.x,f.y-v.y]},this.startTangent=function(){return[v.x-f.x,v.y-f.y]};break;case"V":f=h?r(0,y,v):{x:v.x,y:y},this.command="L",this.params=[v,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-v.x,f.y-v.y]},this.startTangent=function(){return[v.x-f.x,v.y-f.y]};break;case"Q":h?(a=r(y,m,v),c=r(d[3],d[4],v)):(a={x:y,y:m},c={x:d[3],y:d[4]}),this.command="Q",this.params=[v,a,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-a.x,c.y-a.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]};break;case"T":c=h?r(y,m,v):{x:y,y:m},"Q"===e.command?(a=i(e.params[1],v),this.command="Q",this.params=[v,a,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-a.x,c.y-a.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]}):(this.command="TL",this.params=[v,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-v.x,c.y-v.y]},this.startTangent=function(){return[v.x-c.x,v.y-c.y]});break;case"C":h?(a=r(y,m,v),c=r(d[3],d[4],v),l=r(d[5],d[6],v)):(a={x:y,y:m},c={x:d[3],y:d[4]},l={x:d[5],y:d[6]}),this.command="C",this.params=[v,a,c,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-c.x,l.y-c.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]};break;case"S":h?(c=r(y,m,v),l=r(d[3],d[4],v)):(c={x:y,y:m},l={x:d[3],y:d[4]}),"C"===e.command?(a=i(e.params[2],v),this.command="C",this.params=[v,a,c,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-c.x,l.y-c.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]}):(this.command="SQ",this.params=[v,c,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-c.x,l.y-c.y]},this.startTangent=function(){return[v.x-c.x,v.y-c.y]});break;case"A":var x=y,b=m,_=d[3],w=d[4],O=d[5];f=h?r(d[6],d[7],v):{x:d[6],y:d[7]},this.command="A";var j=function(t,e,n,r,i,a,c){var l=u.mod(u.toRadian(c),2*Math.PI),f=t.x,h=t.y,p=e.x,d=e.y,g=Math.cos(l)*(f-p)/2+Math.sin(l)*(h-d)/2,v=-1*Math.sin(l)*(f-p)/2+Math.cos(l)*(h-d)/2,y=g*g/(i*i)+v*v/(a*a);y>1&&(i*=Math.sqrt(y),a*=Math.sqrt(y));var m=i*i*(v*v)+a*a*(g*g),x=Math.sqrt((i*i*(a*a)-m)/m);n===r&&(x*=-1),isNaN(x)&&(x=0);var b=x*i*v/a,_=x*-a*g/i,w=(f+p)/2+Math.cos(l)*b-Math.sin(l)*_,O=(h+d)/2+Math.sin(l)*b+Math.cos(l)*_,j=s([1,0],[(g-b)/i,(v-_)/a]),S=[(g-b)/i,(v-_)/a],M=[(-1*g-b)/i,(-1*v-_)/a],E=s(S,M);return o(S,M)<=-1&&(E=Math.PI),o(S,M)>=1&&(E=0),0===r&&E>0&&(E-=2*Math.PI),1===r&&E<0&&(E+=2*Math.PI),[t,w,O,i,a,j,E,l,r]}(v,f,w,O,x,b,_);this.params=j;var S=e.subStart;this.subStart=S,this.endPoint=f;var M=j[5]%(2*Math.PI);u.isNumberEqual(M,2*Math.PI)&&(M=0);var E=j[6]%(2*Math.PI);u.isNumberEqual(E,2*Math.PI)&&(E=0);var P=.001;this.startTangent=function(){0===O&&(P*=-1);var t=j[3]*Math.cos(M-P)+j[1],e=j[4]*Math.sin(M-P)+j[2];return[t-S.x,e-S.y]},this.endTangent=function(){var t=j[6];t-2*Math.PI<1e-4&&(t=0);var e=j[3]*Math.cos(M+t+P)+j[1],n=j[4]*Math.sin(M+t-P)+j[2];return[v.x-e,v.y-n]};break;case"Z":this.command="Z",this.params=[v,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this.command,i=this.params,a=this.box;if(a&&!c.box(a.minX,a.maxX,a.minY,a.maxY,t,e))return!1;switch(r){default:break;case"M":return!1;case"TL":case"L":case"Z":return c.line(i[0].x,i[0].y,i[1].x,i[1].y,n,t,e);case"SQ":case"Q":return c.quadraticline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,n,t,e);case"C":return c.cubicline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,i[3].x,i[3].y,n,t,e);case"A":var o=i,s=o[1],u=o[2],l=o[3],f=o[4],h=o[5],g=o[6],v=o[7],y=o[8],m=l>f?l:f,x=l>f?1:l/f,b=l>f?f/l:1;o=[t,e,1];var _=[1,0,0,0,1,0,0,0,1];return d.translate(_,_,[-s,-u]),d.rotate(_,_,-v),d.scale(_,_,[1/x,1/b]),p.transformMat3(o,o,_),c.arcline(0,0,m,h,h+g,1-y,n,o[0],o[1])}return!1},draw:function(t){var e,n,r,i=this.params;switch(this.command){default:break;case"M":t.moveTo(i[1].x,i[1].y);break;case"TL":case"L":t.lineTo(i[1].x,i[1].y);break;case"SQ":case"Q":t.quadraticCurveTo((e=i[1]).x,e.y,(n=i[2]).x,n.y);break;case"C":t.bezierCurveTo((e=i[1]).x,e.y,(n=i[2]).x,n.y,(r=i[3]).x,r.y);break;case"A":var a=i[1],o=i[2],s=i[3],u=i[4],c=i[5],l=i[6],f=i[7],h=i[8],p=s>u?s:u,d=s>u?1:s/u,g=s>u?u/s:1;t.translate(a,o),t.rotate(f),t.scale(d,g),t.arc(0,0,p,c,c+l,1-h),t.scale(1/d,1/g),t.rotate(-f),t.translate(-a,-o);break;case"Z":t.closePath()}},getBBox:function(t){var e,n,r,i,a=t/2,o=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(o[0].x,o[1].x)-a,maxX:Math.max(o[0].x,o[1].x)+a,minY:Math.min(o[0].y,o[1].y)-a,maxY:Math.max(o[0].y,o[1].y)+a};break;case"SQ":case"Q":for(r=0,i=(n=f.extrema(o[0].x,o[1].x,o[2].x)).length;r<i;r++)n[r]=f.at(o[0].x,o[1].x,o[2].x,n[r]);for(n.push(o[0].x,o[2].x),r=0,i=(e=f.extrema(o[0].y,o[1].y,o[2].y)).length;r<i;r++)e[r]=f.at(o[0].y,o[1].y,o[2].y,e);e.push(o[0].y,o[2].y),this.box={minX:Math.min.apply(Math,n)-a,maxX:Math.max.apply(Math,n)+a,minY:Math.min.apply(Math,e)-a,maxY:Math.max.apply(Math,e)+a};break;case"C":for(r=0,i=(n=l.extrema(o[0].x,o[1].x,o[2].x,o[3].x)).length;r<i;r++)n[r]=l.at(o[0].x,o[1].x,o[2].x,o[3].x,n[r]);for(r=0,i=(e=l.extrema(o[0].y,o[1].y,o[2].y,o[3].y)).length;r<i;r++)e[r]=l.at(o[0].y,o[1].y,o[2].y,o[3].y,e[r]);n.push(o[0].x,o[3].x),e.push(o[0].y,o[3].y),this.box={minX:Math.min.apply(Math,n)-a,maxX:Math.max.apply(Math,n)+a,minY:Math.min.apply(Math,e)-a,maxY:Math.max.apply(Math,e)+a};break;case"A":var s=o[1],u=o[2],c=o[3],p=o[4],d=o[5],g=o[7],v=o[8],y=d,m=d+o[6],x=h.xExtrema(g,c,p),b=1/0,_=-1/0,w=[y,m];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var O=x+r;1===v?y<O&&O<m&&w.push(O):m<O&&O<y&&w.push(O)}for(r=0,i=w.length;r<i;r++){var j=h.xAt(g,c,p,s,w[r]);j<b&&(b=j),j>_&&(_=j)}var S=h.yExtrema(g,c,p),M=1/0,E=-1/0,P=[y,m];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var C=S+r;1===v?y<C&&C<m&&P.push(C):m<C&&C<y&&P.push(C)}for(r=0,i=P.length;r<i;r++){var k=h.yAt(g,c,p,u,P[r]);k<M&&(M=k),k>E&&(E=k)}this.box={minX:b-a,maxX:_+a,minY:M-a,maxY:E+a}}}}),t.exports=v},function(t,e,n){"use strict";e.a=function(t,e){return e-=t=+t,function(n){return t+e*n}}},function(t,e,n){var r=n(13),i=Array.prototype.indexOf;t.exports=function(t,e){return!!r(t)&&i.call(t,e)>-1}},function(t,e){t.exports=function(t){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){t.exports={mat3:n(51),vec2:n(97),vec3:n(98),transform:n(99)}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}var a=n(43),o=n(8),s=a.mat3,u=a.vec3,c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this.getDefaultCfg();o(this,n,e),this.init()}return i(t,[{key:"getDefaultCfg",value:function(){return{isTransposed:!1,matrix:[1,0,0,0,1,0,0,0,1]}}}]),i(t,[{key:"init",value:function(){var t=this.start,e=this.end;this.center={x:(t.x+e.x)/2,y:(t.y+e.y)/2},this.width=Math.abs(e.x-t.x),this.height=Math.abs(e.y-t.y)}},{key:"_swapDim",value:function(t){var e=this[t];if(e){var n=e.start;e.start=e.end,e.end=n}}},{key:"getCenter",value:function(){return this.center}},{key:"getWidth",value:function(){return this.width}},{key:"getHeight",value:function(){return this.height}},{key:"convertDim",value:function(t,e){var n=this[e],r=n.start;return r+t*(n.end-r)}},{key:"invertDim",value:function(t,e){var n=this[e],r=n.start;return(t-r)/(n.end-r)}},{key:"convertPoint",value:function(t){return t}},{key:"invertPoint",value:function(t){return t}},{key:"applyMatrix",value:function(t,e){var n=[t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0];return u.transformMat3(n,n,this.matrix),n}},{key:"invertMatrix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=s.invert([],this.matrix),i=[t,e,n];return u.transformMat3(i,i,r),i}},{key:"convert",value:function(t){var e=this.convertPoint(t),n=this.applyMatrix(e.x,e.y,1);return{x:n[0],y:n[1]}}},{key:"invert",value:function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})}},{key:"rotate",value:function(t){var e=this.matrix,n=this.center;return s.translate(e,e,[-n.x,-n.y]),s.rotate(e,e,t),s.translate(e,e,[n.x,n.y]),this}},{key:"reflect",value:function(t){switch(t){case"x":this._swapDim("x");break;case"y":this._swapDim("y");break;default:this._swapDim("y")}return this}},{key:"scale",value:function(t,e){var n=this.matrix,r=this.center;return s.translate(n,n,[-r.x,-r.y]),s.scale(n,n,[t,e]),s.translate(n,n,[r.x,r.y]),this}},{key:"translate",value:function(t,e){var n=this.matrix;return s.translate(n,n,[t,e]),this}},{key:"transpose",value:function(){return this.isTransposed=!this.isTransposed,this}}]),t}();t.exports=c},function(t,e,n){var r=n(0),i={splitPoints:function(t){var e=[],n=t.x,i=t.y;return i=r.isArray(i)?i:[i],r.each(i,function(t,i){var a={x:r.isArray(n)?n[i]:n,y:t};e.push(a)}),e},addFillAttrs:function(t,e){e.color&&(t.fill=e.color),r.isNumber(e.opacity)&&(t.opacity=t.fillOpacity=e.opacity)},addStrokeAttrs:function(t,e){e.color&&(t.stroke=e.color),r.isNumber(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity)}};t.exports=i},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(4);t.exports=function t(e){if("object"!==(void 0===e?"undefined":r(e))||null===e)return e;var n=void 0;if(i(e)){n=[];for(var a=0,o=e.length;a<o;a++)n[a]="object"===r(e[a])&&null!=e[a]?t(e[a]):e[a]}else for(var s in n={},e)n[s]="object"===r(e[s])&&null!=e[s]?t(e[s]):e[s];return n}},function(t,e,n){function r(t,e,n,s){for(var u in n=n||0,s=s||o,e)if(e.hasOwnProperty(u)){var c=e[u];null!==c&&i(c)?(i(t[u])||(t[u]={}),n<s?r(t[u],c,n+1,s):t[u]=e[u]):a(c)?(t[u]=[],t[u]=t[u].concat(c)):void 0!==c&&(t[u]=c)}}var i=n(26),a=n(4),o=5;t.exports=function(){for(var t=new Array(arguments.length),e=t.length,n=0;n<e;n++)t[n]=arguments[n];for(var i=t[0],a=1;a<e;a++)r(i,t[a]);return i}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===(void 0===t?"undefined":n(t))&&null!==t}},function(t,e,n){var r=n(48),i=n(13),a=n(10);t.exports=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(a(e)||a(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var o=!0,s=0;s<e.length&&(o=t(e[s],n[s]));s++);return o}if(r(e)||r(n)){var u=Object.keys(e),c=Object.keys(n);if(u.length!==c.length)return!1;for(var l=!0,f=0;f<u.length&&(l=t(e[u[f]],n[u[f]]));f++);return l}return!1}},function(t,e){t.exports=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){var r=n(182);r.translate=function(t,e,n){var i=new Array(9);return r.fromTranslation(i,n),r.multiply(t,i,e)},r.rotate=function(t,e,n){var i=new Array(9);return r.fromRotation(i,n),r.multiply(t,i,e)},r.scale=function(t,e,n){var i=new Array(9);return r.fromScaling(i,n),r.multiply(t,i,e)},t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=function(t){e.ARRAY_TYPE=t},e.toRadian=function(t){return t*i},e.equals=function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))};var r=e.EPSILON=1e-6,i=(e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random,Math.PI/180)},function(t,e,n){var r;!function(e){"use strict";function i(){}function a(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function o(t){return function(){return this[t].apply(this,arguments)}}var s=i.prototype,u=e.EventEmitter;s.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},s.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},s.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},s.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"==typeof e;for(n in r)r.hasOwnProperty(n)&&-1===a(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},s.on=o("addListener"),s.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},s.once=o("addOnceListener"),s.defineEvent=function(t){return this.getListeners(t),this},s.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},s.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=a(i[r],e))&&i[r].splice(n,1);return this},s.off=o("removeListener"),s.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},s.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},s.manipulateListeners=function(t,e,n){var r,i,a=t?this.removeListener:this.addListener,o=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=n.length;r--;)a.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?a.call(this,r,i):o.call(this,r,i));return this},s.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},s.removeAllListeners=o("removeEvent"),s.emitEvent=function(t,e){var n,r,i,a,o=this.getListenersAsObject(t);for(a in o)if(o.hasOwnProperty(a))for(n=o[a].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},s.trigger=o("emitEvent"),s.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},s.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},s._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},s._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return e.EventEmitter=u,i},void 0!==(r=(function(){return i}).call(e,n,e,t))&&(t.exports=r)}(this||{})},function(t,e,n){var r=n(36),i=n(103),a=n(55),o=n(37);t.exports={line:function(t,e,n,i,a,o,s){var u=r.box(t,e,n,i,a);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,s))return!1;var c=r.pointDistance(t,e,n,i,o,s);return!isNaN(c)&&c<=a/2},polyline:function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var a=0;a<i;a++)if(this.line(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0;return!1},cubicline:function(t,e,n,r,i,o,s,u,c,l,f){return a.pointDistance(t,e,n,r,i,o,s,u,l,f)<=c/2},quadraticline:function(t,e,n,r,a,o,s,u,c){return i.pointDistance(t,e,n,r,a,o,u,c)<=s/2},arcline:function(t,e,n,r,i,a,s,u,c){return o.pointDistance(t,e,n,r,i,a,u,c)<=s/2},rect:function(t,e,n,r,i,a){return t<=i&&i<=t+n&&e<=a&&a<=e+r},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,a){return t<=i&&i<=e&&n<=a&&a<=r}}},function(t,e,n){function r(t,e,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*t+3*a*e)}function i(t,e,n,i,a,o,u,c,l,f,h){var p,d,g,v,y,m,x,b,_=.005,w=1/0,O=[l,f];for(d=0;d<1;d+=.05)g=[r(t,n,a,u,d),r(e,i,o,c,d)],(v=s.squaredDistance(O,g))<w&&(p=d,w=v);w=1/0;for(var j=0;j<32&&!(_<1e-4);j++)b=p+_,g=[r(t,n,a,u,x=p-_),r(e,i,o,c,x)],v=s.squaredDistance(O,g),x>=0&&v<w?(p=x,w=v):(m=[r(t,n,a,u,b),r(e,i,o,c,b)],y=s.squaredDistance(O,m),b<=1&&y<w?(p=b,w=y):_*=.5);return h&&(h.x=r(t,n,a,u,p),h.y=r(e,i,o,c,p)),Math.sqrt(w)}function a(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}var o=n(1),s=o.vec2;t.exports={at:r,derivativeAt:function(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)},projectPoint:function(t,e,n,r,a,o,s,u,c,l){var f={};return i(t,e,n,r,a,o,s,u,c,l,f),f},pointDistance:i,extrema:function(t,e,n,r){var i,a,s,u=3*t-9*e+9*n-3*r,c=6*e-12*n+6*r,l=3*n-3*r,f=[];if(o.isNumberEqual(u,0))o.isNumberEqual(c,0)||(i=-l/c)>=0&&i<=1&&f.push(i);else{var h=c*c-4*u*l;o.isNumberEqual(h,0)?f.push(-c/(2*u)):h>0&&(a=(-c-(s=Math.sqrt(h)))/(2*u),(i=(-c+s)/(2*u))>=0&&i<=1&&f.push(i),a>=0&&a<=1&&f.push(a))}return f},len:function(t,e,n,r,i,s,u,c,l){o.isNil(l)&&(l=1);for(var f=(l=l>1?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,g=0;g<12;g++){var v=f*h[g]+f,y=a(v,t,n,i,u),m=a(v,e,r,s,c);d+=p[g]*Math.sqrt(y*y+m*m)}return f*d}}},function(t,e,n){var r=n(1),i=n(6),a=n(27),o=n(39),s=function t(e){t.superclass.constructor.call(this,e)};s.Symbols={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},s.ATTRS={path:null,lineWidth:1},r.extend(s,i),r.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.radius,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},_getPath:function(){var t,e=this._attrs,n=e.x,i=e.y,a=e.radius||e.r,o=e.symbol||"circle";return(t=r.isFunction(o)?o:s.Symbols[o])?t(n,i,a):(console.warn(o+" marker is not supported."),null)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n,r=a.parsePath(this._getPath());t.beginPath(),e=[];for(var i=0;i<r.length;i++)n=new o(r[i],n,i===r.length-1),e.push(n),n.draw(t);this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var s=0;s<e.length;s++)e[s].draw(t)}}}),t.exports=s},function(t,e,n){function r(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}function i(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function a(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),s=o(e)[0],u=1;u<=n;u++)a*=u,0===(r=Math.floor(t.length*a))?i.unshift([s[0]*a+t[r][0]*(1-a),s[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[s[0]*a+t[r][0]*(1-a),s[1]*a+t[r][1]*(1-a)]);return i}function o(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var s=n(81),u="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",c=new RegExp("([a-z])["+u+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+u+"]*,?["+u+"]*)+)","ig"),l=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+u+"]*,?["+u+"]*","ig"),f=function(t){if(!t)return null;if(typeof t==typeof[])return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(c,function(t,r,i){var a=[],o=r.toLowerCase();if(i.replace(l,function(t,e){e&&a.push(+e)}),"m"===o&&a.length>2&&(n.push([r].concat(a.splice(0,2))),o="l",r="m"===r?"l":"L"),"o"===o&&1===a.length&&n.push([r,a[0]]),"r"===o)n.push([r].concat(a));else for(;a.length>=e[o]&&(n.push([r].concat(a.splice(0,e[o]))),e[o]););}),n},h=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(6*a[1].x-a[0].x+a[2].x)/6,(6*a[1].y-a[0].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},p=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},d=function(t){if(!(t=f(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,s=0,u=0;"M"===t[0][0]&&(o=i=+t[0][1],s=a=+t[0][2],u++,r[0]=["M",i,a]);for(var c,l,d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=u,v=t.length;g<v;g++){if(r.push(c=[]),(e=(l=t[g])[0])!==e.toUpperCase())switch(c[0]=e.toUpperCase(),c[0]){case"A":c[1]=l[1],c[2]=l[2],c[3]=l[3],c[4]=l[4],c[5]=l[5],c[6]=+l[6]+i,c[7]=+l[7]+a;break;case"V":c[1]=+l[1]+a;break;case"H":c[1]=+l[1]+i;break;case"R":for(var y=2,m=(n=[i,a].concat(l.slice(1))).length;y<m;y++)n[y]=+n[y]+i,n[++y]=+n[y]+a;r.pop(),r=r.concat(h(n,d));break;case"O":r.pop(),(n=p(i,a,l[1],l[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(p(i,a,l[1],l[2],l[3])),c=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+l[1]+i,s=+l[2]+a;break;default:for(var x=1,b=l.length;x<b;x++)c[x]=+l[x]+(x%2?i:a)}else if("R"===e)n=[i,a].concat(l.slice(1)),r.pop(),r=r.concat(h(n,d)),c=["R"].concat(l.slice(-2));else if("O"===e)r.pop(),(n=p(i,a,l[1],l[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(p(i,a,l[1],l[2],l[3])),c=["U"].concat(r[r.length-1].slice(-2));else for(var _=0,w=l.length;_<w;_++)c[_]=l[_];if("O"!==(e=e.toUpperCase()))switch(c[0]){case"Z":i=+o,a=+s;break;case"H":i=c[1];break;case"V":a=c[1];break;case"M":o=c[c.length-2],s=c[c.length-1];break;default:i=c[c.length-2],a=c[c.length-1]}}return r},g=function(t,e,n,r){return[t,e,n,r,n,r]},v=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},y=function(t,e){var n,r=d(t),i=e&&d(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],c="",l="",f=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat((function t(e,n,r,i,a,o,s,u,c,l){r===i&&(r+=1);var f,h,p,d,g,v=120*Math.PI/180,y=Math.PI/180*(+a||0),m=[],x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)h=l[0],p=l[1],d=l[2],g=l[3];else{e=(f=x(e,n,-y)).x,n=f.y,u=(f=x(u,c,-y)).x,c=f.y,e===u&&n===c&&(u+=1,c+=1);var b=(e-u)/2,_=(n-c)/2,w=b*b/(r*r)+_*_/(i*i);w>1&&(r*=w=Math.sqrt(w),i*=w);var O=r*r,j=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((O*j-O*_*_-j*b*b)/(O*_*_+j*b*b)));d=S*r*_/i+(e+u)/2,g=S*-i*b/r+(n+c)/2,h=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((c-g)/i).toFixed(9)),h=e<d?Math.PI-h:h,p=u<d?Math.PI-p:p,h<0&&(h=2*Math.PI+h),p<0&&(p=2*Math.PI+p),s&&h>p&&(h-=2*Math.PI),!s&&p>h&&(p-=2*Math.PI)}var M=p-h;if(Math.abs(M)>v){var E=p,P=u,C=c;p=h+v*(s&&p>h?1:-1),m=t(u=d+r*Math.cos(p),c=g+i*Math.sin(p),r,i,a,0,s,P,C,[p,E,d,g])}M=p-h;var k=Math.cos(h),A=Math.sin(h),T=Math.cos(p),I=Math.sin(p),L=Math.tan(M/4),R=4/3*r*L,D=4/3*i*L,F=[e,n],B=[e+R*A,n-D*k],N=[u+R*I,c-D*T],z=[u,c];if(B[0]=2*F[0]-B[0],B[1]=2*F[1]-B[1],l)return[B,N,z].concat(m);for(var q=[],V=0,H=(m=[B,N,z].concat(m).join().split(",")).length;V<H;V++)q[V]=V%2?x(m[V-1],m[V],y).y:x(m[V],m[V+1],y).x;return q}).apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(v(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(v(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(g(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(g(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(g(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(g(e.x,e.y,e.X,e.Y))}return t},h=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},p=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y<n;y++){r[y]&&(c=r[y][0]),"C"!==c&&(s[y]=c,y&&(l=s[y-1])),r[y]=f(r[y],a,l),"A"!==s[y]&&"C"===c&&(s[y]="C"),h(r,y),i&&(i[y]&&(c=i[y][0]),"C"!==c&&(u[y]=c,y&&(l=u[y-1])),i[y]=f(i[y],o,l),"A"!==u[y]&&"C"===c&&(u[y]="C"),h(i,y)),p(r,i,a,o,y),p(i,r,o,a,y);var m=r[y],x=i&&i[y],b=m.length,_=i&&x.length;a.x=m[b-2],a.y=m[b-1],a.bx=parseFloat(m[b-4])||a.x,a.by=parseFloat(m[b-3])||a.y,o.bx=i&&(parseFloat(x[_-4])||o.x),o.by=i&&(parseFloat(x[_-3])||o.y),o.x=i&&x[_-2],o.y=i&&x[_-1]}return i?[r,i]:r},m=/,?([a-z]),?/gi,x=function(t){return t.join(",").replace(m,"$1")},b=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},_=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,p=0;p<12;p++){var d=c*l[p]+c,g=b(d,t,n,i,o),v=b(d,e,r,a,s);h+=f[p]*Math.sqrt(g*g+v*v)}return c*h},w=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var c=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,l=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,f=+c.toFixed(2),h=+l.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:c,y:l}}}},O=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},j=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=x,a},S=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:j(t,e,n,r),vb:[t,e,n,r].join(" ")}},M=function(t,e,n,r,i,a,o,u){s.isArray(t)||(t=[t,e,n,r,i,a,o,u]);var c=(function(t,e,n,r,i,a,o,s){for(var u,c,l,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(c=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,l=3*n-3*t):(c=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,l=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;(f=-l/c)>0&&f<1&&h.push(f)}else{var g=c*c-4*l*u,v=Math.sqrt(g);if(!(g<0)){var y=(-c+v)/(2*u);y>0&&y<1&&h.push(y);var m=(-c-v)/(2*u);m>0&&m<1&&h.push(m)}}for(var x,b=h.length,_=b;b--;)x=1-(f=h[b]),p[0][b]=x*x*x*t+3*x*x*f*n+3*x*f*f*i+f*f*f*o,p[1][b]=x*x*x*e+3*x*x*f*r+3*x*f*f*a+f*f*f*s;return p[0][_]=t,p[1][_]=e,p[0][_+1]=o,p[1][_+1]=s,p[0].length=p[1].length=_+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}}).apply(null,t);return S(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},E=function(t,e,n,r,i,a,o,s,u){var c=1-u,l=Math.pow(c,3),f=Math.pow(c,2),h=u*u,p=h*u,d=t+2*u*(n-t)+h*(i-2*n+t),g=e+2*u*(r-e)+h*(a-2*r+e),v=n+2*u*(i-n)+h*(o-2*i+n),y=r+2*u*(a-r)+h*(s-2*a+r);return{x:l*t+3*f*u*n+3*c*u*u*i+p*o,y:l*e+3*f*u*r+3*c*u*u*a+p*s,m:{x:d,y:g},n:{x:v,y:y},start:{x:c*t+u*n,y:c*e+u*r},end:{x:c*i+u*o,y:c*a+u*s},alpha:90-180*Math.atan2(d-v,g-y)/Math.PI}},P=function(t,e,n){if(!function(t,e){return t=S(t),e=S(e),O(e,t.x,t.y)||O(e,t.x2,t.y)||O(e,t.x,t.y2)||O(e,t.x2,t.y2)||O(t,e.x,e.y)||O(t,e.x2,e.y)||O(t,e.x,e.y2)||O(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(M(t),M(e)))return n?0:[];for(var r=~~(_.apply(0,t)/8),i=~~(_.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],c=0;c<r+1;c++){var l=E.apply(0,t.concat(c/r));a.push({x:l.x,y:l.y,t:c/r})}for(var f=0;f<i+1;f++){var h=E.apply(0,e.concat(f/i));o.push({x:h.x,y:h.y,t:f/i})}for(var p=0;p<r;p++)for(var d=0;d<i;d++){var g=a[p],v=a[p+1],y=o[d],m=o[d+1],x=Math.abs(v.x-g.x)<.001?"y":"x",b=Math.abs(m.x-y.x)<.001?"y":"x",j=w(g.x,g.y,v.x,v.y,y.x,y.y,m.x,m.y);if(j){if(s[j.x.toFixed(4)]===j.y.toFixed(4))continue;s[j.x.toFixed(4)]=j.y.toFixed(4);var P=g.t+Math.abs((j[x]-g[x])/(v[x]-g[x]))*(v.t-g.t),C=y.t+Math.abs((j[b]-y[b])/(m[b]-y[b]))*(m.t-y.t);P>=0&&P<=1&&C>=0&&C<=1&&(n?u++:u.push({x:j.x,y:j.y,t1:P,t2:C}))}}return u},C=function(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,n){var i=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/n,u=0;u<n-1;u++){var c=r(o,s/(1-s*u));a.push(c.left),o=c.right}return a.push(o),a.map(function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])})}(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)i.push(a)}return i},k=function(t,e){if(t.length!==e.length)return!1;var n=!0;return s.each(t,function(t,r){if(t!==e[r])return n=!1,!1}),n};t.exports={parsePathString:f,parsePathArray:x,pathTocurve:y,pathToAbsolute:d,catmullRomToBezier:h,rectPath:j,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(var s=0;s<r;s++){var u=Math.floor(i*s);a[u]=(a[u]||0)+1}var c=a.reduce(function(e,r,i){return e.concat(i===n?t[n]:C(t[i],t[i+1],r))},[]);return c.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||c.push("Z"),c},fillPathByDiff:function(t,e){var n=function(t,e){var n,r=t.length,a=e.length,o=0;if(0===r||0===a)return null;for(var s=[],u=0;u<=r;u++)s[u]=[],s[u][0]={min:u};for(var c=0;c<=a;c++)s[0][c]={min:c};for(var l=1;l<=r;l++){n=t[l-1];for(var f=1;f<=a;f++)o=k(n,e[f-1])?0:1,s[l][f]=i(s[l-1][f].min+1,s[l][f-1].min+1,s[l-1][f-1].min+o)}return s}(t,e),r=t.length,a=e.length,o=[],s=1,u=1;if(n[r][a]!==r){for(var c=1;c<=r;c++){var l=n[c][c].min;u=c;for(var f=s;f<=a;f++)n[c][f].min<l&&(l=n[c][f].min,u=f);n[c][s=u].type&&o.push({index:c-1,type:n[c][s].type})}for(var h=o.length-1;h>=0;h--)s=o[h].index,"add"===o[h].type?t.splice(s,0,[].concat(t[s])):t.splice(s,1)}var p=a-(r=t.length);if(r<a)for(var d=0;d<p;d++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t},formatPath:function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=o(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=a(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=a(n,t[r-1],2)}t[r]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=a(n,t[r-1],1)}t[r]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[r]=e[r]}return t},intersection:function(t,e){return function(t,e,n){t=y(t),e=y(e);for(var r,i,a,o,s,u,c,l,f,h,p=[],d=0,g=t.length;d<g;d++){var v=t[d];if("M"===v[0])r=s=v[1],i=u=v[2];else{"C"===v[0]?(r=(f=[r,i].concat(v.slice(1)))[6],i=f[7]):(f=[r,i,r,i,s,u,s,u],r=s,i=u);for(var m=0,x=e.length;m<x;m++){var b=e[m];if("M"===b[0])a=c=b[1],o=l=b[2];else{"C"===b[0]?(a=(h=[a,o].concat(b.slice(1)))[6],o=h[7]):(h=[a,o,a,o,c,l,c,l],a=c,o=l);for(var _=P(f,h,void 0),w=0,O=_.length;w<O;w++)_[w].segment1=d,_[w].segment2=m,_[w].bez1=f,_[w].bez2=h;p=p.concat(_)}}}}return p}(t,e)}}},function(t,e,n){"use strict";function r(){return m||(_(i),m=b.now()+x)}function i(){m=0}function a(){this._call=this._time=this._next=null}function o(t,e,n){var r=new a;return r.restart(t,e,n),r}function s(){r(),++p;for(var t,e=f;e;)(t=m-e._time)>=0&&e._call.call(null,t),e=e._next;--p}function u(){m=(y=b.now())+x,p=d=0;try{s()}finally{p=0,function(){for(var t,e,n=f,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:f=e);h=t,l(r)}(),m=0}}function c(){var t=b.now(),e=t-y;e>v&&(x-=e,y=t)}function l(t){p||(d&&(d=clearTimeout(d)),t-m>24?(t<1/0&&(d=setTimeout(u,t-b.now()-x)),g&&(g=clearInterval(g))):(g||(y=b.now(),g=setInterval(c,v)),p=1,_(u)))}e.b=r,e.a=a,e.c=o,e.d=s;var f,h,p=0,d=0,g=0,v=1e3,y=0,m=0,x=0,b="object"==typeof performance&&performance.now?performance:Date,_="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};a.prototype=o.prototype={constructor:a,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||h===this||(h?h._next=this:f=this,h=this),this._call=t,this._time=n,l()},stop:function(){this._call&&(this._call=null,this._time=1/0,l())}}},function(t,e,n){"use strict";var r=n(19),i=n(119),a=n(122),o=n(123),s=n(40),u=n(124),c=n(125),l=n(121);e.a=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(l.a)(e):("number"===f?s.a:"string"===f?(n=Object(r.a)(e))?(e=n,i.a):c.a:e instanceof r.a?i.a:e instanceof Date?o.a:Array.isArray(e)?a.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?u.a:s.a)(t,e)}},function(t,e,n){"use strict";function r(){}function i(t){var e;return t=(t+"").trim().toLowerCase(),(e=b.exec(t))?new c((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=_.exec(t))?a(parseInt(e[1],16)):(e=w.exec(t))?new c(e[1],e[2],e[3],1):(e=O.exec(t))?new c(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=j.exec(t))?o(e[1],e[2],e[3],e[4]):(e=S.exec(t))?o(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=M.exec(t))?l(e[1],e[2]/100,e[3]/100,1):(e=E.exec(t))?l(e[1],e[2]/100,e[3]/100,e[4]):P.hasOwnProperty(t)?a(P[t]):"transparent"===t?new c(NaN,NaN,NaN,0):null}function a(t){return new c(t>>16&255,t>>8&255,255&t,1)}function o(t,e,n,r){return r<=0&&(t=e=n=NaN),new c(t,e,n,r)}function s(t){return t instanceof r||(t=i(t)),t?new c((t=t.rgb()).r,t.g,t.b,t.opacity):new c}function u(t,e,n,r){return 1===arguments.length?s(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function l(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new h(t,e,n,r)}function f(t,e,n,a){return 1===arguments.length?function(t){if(t instanceof h)return new h(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=i(t)),!t)return new h;if(t instanceof h)return t;var e=(t=t.rgb()).r/255,n=t.g/255,a=t.b/255,o=Math.min(e,n,a),s=Math.max(e,n,a),u=NaN,c=s-o,l=(s+o)/2;return c?(u=e===s?(n-a)/c+6*(n<a):n===s?(a-e)/c+2:(e-n)/c+4,c/=l<.5?s+o:2-s-o,u*=60):c=l>0&&l<1?0:u,new h(u,c,l,t.opacity)}(t):new h(t,e,n,null==a?1:a)}function h(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function p(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=r,n.d(e,"d",function(){return g}),n.d(e,"c",function(){return v}),e.e=i,e.h=s,e.g=u,e.b=c,e.f=f;var d=n(61),g=.7,v=1/g,y="\\s*([+-]?\\d+)\\s*",m="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",x="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",b=/^#([0-9a-f]{3})$/,_=/^#([0-9a-f]{6})$/,w=new RegExp("^rgb\\("+[y,y,y]+"\\)$"),O=new RegExp("^rgb\\("+[x,x,x]+"\\)$"),j=new RegExp("^rgba\\("+[y,y,y,m]+"\\)$"),S=new RegExp("^rgba\\("+[x,x,x,m]+"\\)$"),M=new RegExp("^hsl\\("+[m,x,x]+"\\)$"),E=new RegExp("^hsla\\("+[m,x,x,m]+"\\)$"),P={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(d.a)(r,i,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(d.a)(c,u,Object(d.b)(r,{brighter:function(t){return t=null==t?v:Math.pow(v,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?g:Math.pow(g,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Object(d.a)(h,f,Object(d.b)(r,{brighter:function(t){return t=null==t?v:Math.pow(v,t),new h(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?g:Math.pow(g,t),new h(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new c(p(t>=240?t-240:t+120,i,r),p(t,i,r),p(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";e.b=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n},e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*a-o,a,o,i<e-1?t[i+2]:2*o-a)}}},function(t,e,n){var r=n(2),i=n(13);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,function(t,r){e(t,r)&&n.push(t)}),n}},function(t,e,n){var r=n(5),i=n(4),a=n(2);t.exports=function(t,e){for(var n=[],o={},s=0;s<t.length;s++){var u=t[s][e];r(u)||(i(u)||(u=[u]),a(u,function(t){o[t]||(n.push(t),o[t]=!0)}))}return n}},function(t,e,n){var r=n(16).Group,i=n(21).Label,a=n(7),o=n(0),s=["line","point","path"],u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{label:a.label,labelCfg:null,coord:null,geomType:null,zIndex:6}},n._renderUI=function(){t.prototype._renderUI.call(this),this.initLabelsCfg();var e=this.addGroup(),n=this.addGroup({elCls:"x-line-group"}),r=this.get("labelRenderer");this.set("labelsGroup",e),this.set("lineGroup",n),this.get("labelRenderer").set("group",e),r.set("group",e),r.set("lineGroup",n)},n.initLabelsCfg=function(){var t=new i,e=this.getDefaultLabelCfg(),n=this.get("labelCfg");o.deepMix(e,n.globalCfg||n.cfg),t.set("config",!1),e.labelLine&&t.set("labelLine",e.labelLine),t.set("coord",this.get("coord")),this.set("labelRenderer",t),this.set("label",e)},n.getDefaultLabelCfg=function(){var t=this.get("labelCfg").cfg||this.get("labelCfg").globalCfg,e=this.get("geomType"),n=this.get("viewTheme")||a;return"polygon"===e||t&&t.offset<0&&-1===o.indexOf(s,e)?o.deepMix({},this.get("label"),n.innerLabels,t):o.deepMix({},this.get("label"),n.label,t)},n.getLabelsItems=function(t,e){var n=this,r=[],i=n.get("geom"),a=n.get("coord");n._getLabelCfgs(t,e);var s=n.get("labelItemCfgs");return o.each(t,function(t,e){var u=t._origin,c=s[e];if(c){o.isArray(c.text)||(c.text=[c.text]);var l=c.length;o.each(c.text,function(e,s){if(o.isNil(e)||""===e)r.push(null);else{var f=n.getLabelPoint(c,t,s);(f=o.mix({},c,f)).textAlign||(f.textAlign=n.getLabelAlign(f,s,l)),i&&(f._id=i._getShapeId(u)+"-glabel-"+s+"-"+f.text),f.coord=a,r.push(f)}})}else r.push(null)}),r},n.adjustItems=function(t){return o.each(t,function(t){t&&(t.offsetX&&(t.x+=t.offsetX),t.offsetY&&(t.y+=t.offsetY))}),t},n.drawLines=function(t){var e=this;o.each(t,function(t){t&&t.offset>0&&e.lineToLabel(t)})},n.lineToLabel=function(){},n.getLabelPoint=function(t,e,n){function r(e,n){return o.isArray(e)&&(e=1===t.text.length?e.length<=2?e[e.length-1]:function(t){var e=0;return o.each(t,function(t){e+=t}),e/t.length}(e):e[n]),e}var i=this.get("coord"),a=t.text.length,s={text:t.text[n]};if(e&&"polygon"===this.get("geomType")){var u=function(t,e){if(o.isNumber(t)&&o.isNumber(e))return[t,e];for(var n,r,i=-1,a=0,s=0,u=t.length-1,c=0;++i<t.length;)c+=r=t[n=u]*e[u=i]-t[u]*e[n],a+=(t[n]+t[u])*r,s+=(e[n]+e[u])*r;return[a/(c*=3),s/c]}(e.x,e.y);s.x=u[0],s.y=u[1]}else s.x=r(e.x,n),s.y=r(e.y,n);if(e&&e.nextPoints&&("funnel"===e.shape||"pyramid"===e.shape)){var c=-1/0;e.nextPoints.forEach(function(t){(t=i.convert(t)).x>c&&(c=t.x)}),s.x=(s.x+c)/2}"pyramid"===e.shape&&!e.nextPoints&&e.points&&e.points.forEach(function(t){t=i.convert(t),(o.isArray(t.x)&&-1===e.x.indexOf(t.x)||o.isNumber(t.x)&&e.x!==t.x)&&(s.x=(s.x+t.x)/2)}),t.position&&this.setLabelPosition(s,e,n,t.position);var l=this.getLabelOffset(t,n,a);return t.offsetX&&(l.x+=t.offsetX),t.offsetY&&(l.y+=t.offsetY),this.transLabelPoint(s),s.start={x:s.x,y:s.y},s.x+=l.x,s.y+=l.y,s.color=e.color,s},n.setLabelPosition=function(){},n.transLabelPoint=function(t){var e=this.get("coord").applyMatrix(t.x,t.y,1);t.x=e[0],t.y=e[1]},n.getOffsetVector=function(t){var e=t.offset||0,n=this.get("coord");return n.isTransposed?n.applyMatrix(e,0):n.applyMatrix(0,e)},n.getDefaultOffset=function(t){var e=this.get("coord"),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},n.getLabelOffset=function(t,e,n){var r=this.getDefaultOffset(t),i=this.get("coord").isTransposed,a=i?1:-1,o={x:0,y:0};return o[i?"x":"y"]=e>0||1===n?r*a:r*a*-1,o},n.getLabelAlign=function(t,e,n){var r="center";if(this.get("coord").isTransposed){var i=this.getDefaultOffset(t);r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},n._getLabelValue=function(t,e){o.isArray(e)||(e=[e]);var n=[];return o.each(e,function(e){var r=t[e.field];if(o.isArray(r)){var i=[];o.each(r,function(t){i.push(e.getText(t))}),r=i}else r=e.getText(r);(o.isNil(r)||""===r)&&n.push(null),n.push(r)}),n},n._getLabelCfgs=function(t){var e=this,n=this.get("labelCfg"),r=n.scales,i=this.get("label"),s=e.get("viewTheme")||a,u=[];n.globalCfg&&n.globalCfg.type&&e.set("type",n.globalCfg.type),o.each(t,function(t,a){var c={},l=t._origin,f=e._getLabelValue(l,r);if(n.callback){var h=r.map(function(t){return l[t.field]});c=n.callback.apply(null,h.concat([t,a]))}if(c||0===c){if(o.isString(c)||o.isNumber(c)?c={text:c}:(c.text=c.content||f[0],delete c.content),c=o.mix({},i,n.globalCfg||{},c),t.point=l,c.point=l,c.htmlTemplate&&(c.useHtml=!0,c.text=c.htmlTemplate.call(null,c.text,t,a),delete c.htmlTemplate),c.formatter&&(c.text=c.formatter.call(null,c.text,t,a),delete c.formatter),c.label){var p=c.label;delete c.label,c=o.mix(c,p)}if(c.textStyle){delete c.textStyle.offset;var d=c.textStyle;o.isFunction(d)&&(c.textStyle=d.call(null,c.text,t,a))}c.labelLine&&(c.labelLine=o.mix({},i.labelLine,c.labelLine)),c.textStyle=o.mix({},i.textStyle,s.label.textStyle,c.textStyle),delete c.items,u.push(c)}else u.push(null)}),this.set("labelItemCfgs",u)},n.showLabels=function(t,e){var n=this.get("labelRenderer"),r=this.getLabelsItems(t,e);e=[].concat(e);var i=this.get("type");r=this.adjustItems(r,e),this.drawLines(r),n.set("items",r.filter(function(t,n){return!!t||(e.splice(n,1),!1)})),i&&(n.set("shapes",e),n.set("type",i),n.set("points",t)),n.set("canvas",this.get("canvas")),n.draw()},n.destroy=function(){this.get("labelRenderer").destroy(),t.prototype.destroy.call(this)},e}(r);t.exports=u},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i=n(53),a=n(3),o=function(t){function e(e){var n,i=r(r(n=t.call(this)||this)),o={visible:!0},s=i.getDefaultCfg();return i._attrs=o,a.deepMix(o,s,e),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{}},n.get=function(t){return this._attrs[t]},n.set=function(t,e){this._attrs[t]=e},n.changeVisible=function(){},n.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},e}(i);t.exports=o},function(t,e,n){var r=n(3),i=n(158),a=n(327),o=n(14).FONT_FAMILY,s=r.Event,u=r.Group,c=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"continuous-legend",items:null,layout:"vertical",width:20,height:156,textStyle:{fill:"#333",textAlign:"center",textBaseline:"middle",stroke:"#fff",lineWidth:5,fontFamily:o},hoverTextStyle:{fill:"rgba(0,0,0,0.25)"},slidable:!0,triggerAttr:{fill:"#fff",shadowBlur:10,shadowColor:"rgba(0,0,0,0.65)",radius:2},_range:[0,100],middleBackgroundStyle:{fill:"#D9D9D9"},textOffset:4,lineStyle:{lineWidth:1,stroke:"#fff"},pointerStyle:{fill:"rgb(230, 230, 230)"}})},n._calStartPoint=function(){var t={x:10,y:this.get("titleGap")-8},e=this.get("titleShape");if(e){var n=e.getBBox();t.y+=n.height}return t},n.beforeRender=function(){var e=this.get("items");r.isArray(e)&&!r.isEmpty(e)&&(t.prototype.beforeRender.call(this),this.set("firstItem",e[0]),this.set("lastItem",e[e.length-1]))},n._formatItemValue=function(t){var e=this.get("formatter")||this.get("itemFormatter");return e&&(t=e.call(this,t)),t},n.render=function(){t.prototype.render.call(this),this.get("slidable")?this._renderSlider():this._renderUnslidable()},n._renderSlider=function(){var t=new u,e=new u,n=new u,r=this._calStartPoint(),i=this.get("group").addGroup(a,{minHandleElement:t,maxHandleElement:e,backgroundElement:n,layout:this.get("layout"),range:this.get("_range"),width:this.get("width"),height:this.get("height")});i.translate(r.x,r.y),this.set("slider",i),this._renderSliderShape().attr("clip",i.get("middleHandleElement")),this._renderTrigger()},n._addMiddleBar=function(t,e,n){return t.addShape(e,{attrs:r.mix({},n,this.get("middleBackgroundStyle"))}),t.addShape(e,{attrs:n})},n._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),i=this.get("textStyle"),a=this.get("triggerAttr"),o=r.mix({},a),s=r.mix({},a),u=r.mix({text:this._formatItemValue(t.value)+""},i),c=r.mix({text:this._formatItemValue(e.value)+""},i);"vertical"===n?(this._addVerticalTrigger("min",o,u),this._addVerticalTrigger("max",s,c)):(this._addHorizontalTrigger("min",o,u),this._addHorizontalTrigger("max",s,c))},n._addVerticalTrigger=function(t,e,n){var i=this.get("slider").get(t+"HandleElement"),a=this.get("width"),o=i.addShape("rect",{attrs:r.mix({x:a/2-8-2,y:"min"===t?0:-8,width:18,height:8},e)}),s=i.addShape("text",{attrs:r.mix(n,{x:a+this.get("textOffset"),y:"max"===t?-4:4,textAlign:"start",lineHeight:1,textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",u),s.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},n._addHorizontalTrigger=function(t,e,n){var i=this.get("slider").get(t+"HandleElement"),a=i.addShape("rect",{attrs:r.mix({x:"min"===t?-8:0,y:-8-this.get("height")/2,width:8,height:16},e)}),o=i.addShape("text",{attrs:r.mix(n,{x:"min"===t?-12:12,y:4+this.get("textOffset")+10,textAlign:"min"===t?"end":"start",textBaseline:"middle"})}),s="vertical"===this.get("layout")?"ns-resize":"ew-resize";a.attr("cursor",s),o.attr("cursor",s),this.set(t+"ButtonElement",a),this.set(t+"TextElement",o)},n._bindEvents=function(){var t=this;this.get("slidable")&&this.get("slider").on("sliderchange",function(e){var n=e.range,r=t.get("firstItem").value,i=t.get("lastItem").value,a=r+n[0]/100*(i-r),o=r+n[1]/100*(i-r);t._updateElement(a,o);var u=new s("itemfilter",e,!0,!0);u.range=[a,o],t.emit("itemfilter",u)}),this.get("hoverable")&&(this.get("group").on("mousemove",r.wrapBehavior(this,"_onMouseMove")),this.get("group").on("mouseleave",r.wrapBehavior(this,"_onMouseLeave")))},n._updateElement=function(t,e){var n=this.get("minTextElement"),r=this.get("maxTextElement");e>1&&(t=parseInt(t,10),e=parseInt(e,10)),n.attr("text",this._formatItemValue(t)+""),r.attr("text",this._formatItemValue(e)+"")},n._onMouseLeave=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},n._onMouseMove=function(t){var e,n=this.get("height"),r=this.get("width"),i=this.get("items"),a=this.get("canvas").get("el").getBoundingClientRect(),o=this.get("group").getBBox();if("vertical"===this.get("layout")){var s=5;"color-legend"===this.get("type")&&(s=30);var u=this.get("titleGap"),c=this.get("titleShape");c&&(u+=c.getBBox().maxY-c.getBBox().minY);var l=t.clientY||t.event.clientY;l=l-a.y-this.get("group").attr("matrix")[7]+o.y-s+u,e=i[0].value+(1-l/n)*(i[i.length-1].value-i[0].value)}else{var f=t.clientX||t.event.clientX;f=f-a.x-this.get("group").attr("matrix")[6],e=i[0].value+f/r*(i[i.length-1].value-i[0].value)}e=e.toFixed(2),this.activate(e),this.emit("mousehover",{value:e})},n.activate=function(t){if(t){var e=this.get("group").findById("hoverPointer"),n=this.get("group").findById("hoverText"),i=this.get("items");if(!(t<i[0].value||t>i[i.length-1].value)){var a,o=this.get("height"),s=this.get("width"),u=this.get("titleShape"),c=this.get("titleGap"),l=[],f=(t-i[0].value)/(i[i.length-1].value-i[0].value);if("vertical"===this.get("layout")){var h=0,p=0;"color-legend"===this.get("type")&&(h=c,u&&(h+=u.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?h-=13:(h=c-15,u&&(h+=u.getBBox().height)),p+=10),l=[[p,(f=(1-f)*o)+h],[p-10,f+h-5],[p-10,f+h+5]],a=r.mix({},{x:s+this.get("textOffset")/2+p,y:f+h,text:this._formatItemValue(t)+""},this.get("textStyle"),{textAlign:"start"})}else{var d=0,g=0;"color-legend"===this.get("type")&&(d=c,u&&(d+=u.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?d-=7:(d=c,u||(d-=7)),g+=10),l=[[(f*=s)+g,d],[f+g-5,d-10],[f+g+5,d-10]],a=r.mix({},{x:f-5,y:o+this.get("textOffset")+d,text:this._formatItemValue(t)+""},this.get("textStyle"))}var v=r.mix(a,this.get("hoverTextStyle"));n?n.attr(v):(n=this.get("group").addShape("text",{attrs:v})).set("id","hoverText"),e?e.attr(r.mix({points:l},this.get("pointerStyle"))):(e=this.get("group").addShape("Polygon",{attrs:r.mix({points:l},this.get("pointerStyle"))})).set("id","hoverPointer"),this.get("canvas").draw()}}},n.deactivate=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},e}(i);t.exports=c},function(t,e,n){var r=n(66),i=n(3),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{x:0,y:0,items:null,titleContent:null,showTitle:!0,plotRange:null,offset:10,timeStamp:0,inPlot:!0,crosshairs:null})},n.isContentChange=function(t,e){var n=this.get("titleContent"),r=this.get("items"),a=!(t===n&&r.length===e.length);return a||i.each(e,function(t,e){var n=r[e];for(var o in t)if(t.hasOwnProperty(o)&&!i.isObject(t[o])&&t[o]!==n[o]){a=!0;break}if(a)return!1}),a},n.setContent=function(t,e){var n=(new Date).valueOf();return this.set("items",e),this.set("titleContent",t),this.set("timeStamp",n),this.render(),this},n.setPosition=function(t,e){this.set("x",t),this.set("y",e)},n.render=function(){},n.clear=function(){},n.show=function(){this.set("visible",!0)},n.hide=function(){this.set("visible",!1)},n.destroy=function(){},e}(r);t.exports=a},function(t,e,n){"use strict";function r(t,e){this._groups=t,this._parents=e}function i(){return new r([[document.documentElement]],R)}n.d(e,"c",function(){return R}),e.a=r;var a=n(402),o=n(403),s=n(404),u=n(405),c=n(382),l=n(407),f=n(408),h=n(409),p=n(410),d=n(411),g=n(412),v=n(413),y=n(414),m=n(415),x=n(416),b=n(417),_=n(384),w=n(418),O=n(419),j=n(420),S=n(421),M=n(422),E=n(423),P=n(424),C=n(425),k=n(426),A=n(427),T=n(428),I=n(374),L=n(429),R=[null];r.prototype=i.prototype={constructor:r,select:a.a,selectAll:o.a,filter:s.a,data:u.a,enter:c.b,exit:l.a,merge:f.a,order:h.a,sort:p.a,call:d.a,nodes:g.a,node:v.a,size:y.a,empty:m.a,each:x.a,attr:b.a,style:_.a,property:w.a,classed:O.a,text:j.a,html:S.a,raise:M.a,lower:E.a,append:P.a,insert:C.a,remove:k.a,clone:A.a,datum:T.a,on:I.b,dispatch:L.a},e.b=i},function(t,e,n){"use strict";function r(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}n.d(e,"c",function(){return c}),n.d(e,"d",function(){return l}),n.d(e,"b",function(){return p}),n.d(e,"a",function(){return d}),e.g=function(t,e){var n=r(t,e);if(n.state>u)throw new Error("too late; already scheduled");return n},e.h=function(t,e){var n=r(t,e);if(n.state>l)throw new Error("too late; already started");return n},e.f=r;var i=n(438),a=n(170),o=Object(i.a)("start","end","interrupt"),s=[],u=0,c=1,l=2,f=3,h=4,p=5,d=6;e.e=function(t,e,n,r,i,g){var v=t.__transition;if(v){if(n in v)return}else t.__transition={};!function(t,e,n){function r(p){var g,v,y,m;if(n.state!==c)return o();for(g in u)if((m=u[g]).name===n.name){if(m.state===f)return Object(a.timeout)(r);m.state===h?(m.state=d,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete u[g]):+g<e&&(m.state=d,m.timer.stop(),delete u[g])}if(Object(a.timeout)(function(){n.state===f&&(n.state=h,n.timer.restart(i,n.delay,n.time),i(p))}),n.state=l,n.on.call("start",t,t.__data__,n.index,n.group),n.state===l){for(n.state=f,s=new Array(y=n.tween.length),g=0,v=-1;g<y;++g)(m=n.tween[g].value.call(t,t.__data__,n.index,n.group))&&(s[++v]=m);s.length=v+1}}function i(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(o),n.state=p,1),i=-1,a=s.length;++i<a;)s[i].call(null,r);n.state===p&&(n.on.call("end",t,t.__data__,n.index,n.group),o())}function o(){for(var r in n.state=d,n.timer.stop(),delete u[e],u)return;delete t.__transition}var s,u=t.__transition;u[e]=n,n.timer=Object(a.timer)(function(t){n.state=c,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:o,tween:s,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:u})}},function(t,e,n){var r=n(10),i=n(80);t.exports={toTimeStamp:function(t){return r(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),i(t)&&(t=t.getTime()),t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(401);n.d(e,"create",function(){return r.a});var i=n(360);n.d(e,"creator",function(){return i.a});var a=n(430);n.d(e,"local",function(){return a.a});var o=n(381);n.d(e,"matcher",function(){return o.a});var s=n(431);n.d(e,"mouse",function(){return s.a});var u=n(370);n.d(e,"namespace",function(){return u.a});var c=n(371);n.d(e,"namespaces",function(){return c.a});var l=n(361);n.d(e,"clientPoint",function(){return l.a});var f=n(379);n.d(e,"select",function(){return f.a});var h=n(432);n.d(e,"selectAll",function(){return h.a});var p=n(69);n.d(e,"selection",function(){return p.b});var d=n(372);n.d(e,"selector",function(){return d.a});var g=n(380);n.d(e,"selectorAll",function(){return g.a});var v=n(384);n.d(e,"style",function(){return v.b});var y=n(433);n.d(e,"touch",function(){return y.a});var m=n(434);n.d(e,"touches",function(){return m.a});var x=n(373);n.d(e,"window",function(){return x.a});var b=n(374);n.d(e,"event",function(){return b.c}),n.d(e,"customEvent",function(){return b.a})},function(t,e,n){t.exports={Position:n(292),Color:n(293),Shape:n(294),Size:n(295),Opacity:n(296),ColorUtil:n(149)}},function(t,e,n){var r=n(75),i=n(17);i.Linear=n(33),i.Identity=n(175),i.Cat=n(77),i.Time=n(176),i.TimeCat=n(178),i.Log=n(179),i.Pow=n(180);var a=function(t){if(i.hasOwnProperty(t)){var e=r(t);i[e]=function(e){return new i[t](e)}}};for(var o in i)a(o);var s=["cat","timeCat"];i.isCategory=function(t){return s.indexOf(t)>=0},t.exports=i},function(t,e,n){var r=n(23);t.exports=function(t){var e=r(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e){function n(t,e){var n=t.length;if(0===n)return NaN;var r=t[0];if(e<t[0])return NaN;if(e>=t[n-1])return t[n-1];for(var i=1;i<t.length&&!(e<t[i]);i++)r=t[i];return r}function r(t,e){var n,r=t.length;if(0===r)return NaN;if(e>t[r-1])return NaN;if(e<t[0])return t[0];for(var i=1;i<t.length;i++)if(e<=t[i]){n=t[i];break}return n}var i={snapFactorTo:function(t,e,n){if(isNaN(t))return NaN;var r=1;if(0!==t){t<0&&(r=-1);var a=function(t){var e=1;if(t===1/0||t===-1/0)throw new Error("Not support Infinity!");if(t<1){for(var n=0;t<1;)e/=10,t*=10,n++;e.toString().length>12&&(e=parseFloat(e.toFixed(n)))}else for(;t>10;)e*=10,t/=10;return e}(t*=r);r*=a,t/=a}t="floor"===n?i.snapFloor(e,t):"ceil"===n?i.snapCeiling(e,t):i.snapTo(e,t);var o=parseFloat((t*r).toPrecision(12));return Math.abs(r)<1&&o.toString().length>12&&(o=t/parseInt(1/r)*(r>0?1:-1)),o},snapMultiple:function(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e},snapTo:function(t,e){var i=n(t,e),a=r(t,e);if(isNaN(i)||isNaN(a)){if(t[0]>=e)return t[0];var o=t[t.length-1];if(o<=e)return o}return Math.abs(e-i)<Math.abs(a-e)?i:a},snapFloor:function(t,e){return n(t,e)},snapCeiling:function(t,e){return r(t,e)},fixedBase:function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}};t.exports=i},function(t,e,n){var r=n(17),i=n(78),a=n(2),o=n(9),s=n(10),u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="cat",this.isCategory=!0,this.isRounding=!0},n.init=function(){var t=this.values,e=this.tickCount;if(a(t,function(e,n){t[n]=e.toString()}),!this.ticks){var n=t;e&&(n=i({maxCount:e,data:t,isRounding:this.isRounding}).ticks),this.ticks=n}},n.getText=function(e){return-1===this.values.indexOf(e)&&o(e)&&(e=this.values[Math.round(e)]),t.prototype.getText.call(this,e)},n.translate=function(t){var e=this.values.indexOf(t);return-1===e&&o(t)?e=t:-1===e&&(e=NaN),e},n.scale=function(t){var e=this.rangeMin(),n=this.rangeMax();return(s(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),e+(this.values.length>1?t/(this.values.length-1):t)*(n-e)},n.invert=function(t){if(s(t))return t;var e=this.rangeMin(),n=this.rangeMax();t<e&&(t=e),t>n&&(t=n);var r=Math.round((t-e)/(n-e)*(this.values.length-1))%this.values.length;return this.values[r=r||0]},e}(r);r.Cat=u,t.exports=u},function(t,e,n){var r=n(2);t.exports=function(t){var e,n={},i=[],a=t.isRounding,o=function(t){var e=[];return r(t,function(t){e=e.concat(t)}),e}(t.data),s=o.length,u=t.maxCount||8;if(a?2===(e=function(t,e){var n;for(n=e;n>0&&t%n!=0;n--);if(1===n)for(n=e;n>0&&(t-1)%n!=0;n--);return n}(s-1,u-1)+1)?e=u:e<u-4&&(e=u-4):e=u,!a&&s<=e+e/2)i=[].concat(o);else{for(var c=parseInt(s/(e-1),10),l=o.map(function(t,e){return e%c==0?o.slice(e,e+c):null}).filter(function(t){return t}),f=1,h=l.length;f<h&&(a?f*c<s-c:f<e-1);f++)i.push(l[f][0]);if(o.length){i.unshift(o[0]);var p=o[s-1];-1===i.indexOf(p)&&i.push(p)}}return n.categories=o,n.ticks=i,n}},function(t,e,n){var r;!function(i){"use strict";function a(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function o(t){return function(e,n,r){var i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(e.month=i)}}function s(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var u={},c=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,l=/\d\d?/,f=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,h=/\[([^]*?)\]/gm,p=function(){},d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"],v=a(g,3),y=a(d,3);u.i18n={dayNamesShort:y,dayNames:d,monthNamesShort:v,monthNames:g,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var m={D:function(t){return t.getDate()},DD:function(t){return s(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return s(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return s(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return s(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return s(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return s(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return s(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return s(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return s(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return s(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+s(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},x={D:[l,function(t,e){t.day=e}],Do:[new RegExp(l.source+f.source),function(t,e){t.day=parseInt(e,10)}],M:[l,function(t,e){t.month=e-1}],YY:[l,function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:[l,function(t,e){t.hour=e}],m:[l,function(t,e){t.minute=e}],s:[l,function(t,e){t.second=e}],YYYY:[/\d{4}/,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[/\d{3}/,function(t,e){t.millisecond=e}],d:[l,p],ddd:[f,p],MMM:[f,o("monthNamesShort")],MMMM:[f,o("monthNames")],a:[f,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,u.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},u.format=function(t,e,n){var r=n||u.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");var i=[];return(e=(e=(e=u.masks[e]||e||u.masks.default).replace(h,function(t,e){return i.push(e),"??"})).replace(c,function(e){return e in m?m[e](t,r):e.slice(1,e.length-1)})).replace(/\?\?/g,function(){return i.shift()})},u.parse=function(t,e,n){var r=n||u.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=u.masks[e]||e,t.length>1e3)return!1;var i=!0,a={};if(e.replace(c,function(e){if(x[e]){var n=x[e],o=t.search(n[0]);~o?t.replace(n[0],function(e){return n[1](a,e,r),t=t.substr(o+e.length),e}):i=!1}return x[e]?"":e.slice(1,e.length-1)}),!i)return!1;var o,s=new Date;return!0===a.isPm&&null!=a.hour&&12!=+a.hour?a.hour=+a.hour+12:!1===a.isPm&&12==+a.hour&&(a.hour=0),null!=a.timezoneOffset?(a.minute=+(a.minute||0)-+a.timezoneOffset,o=new Date(Date.UTC(a.year||s.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0))):o=new Date(a.year||s.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0),o},void 0!==t&&t.exports?t.exports=u:void 0!==(r=(function(){return u}).call(e,n,e,t))&&(t.exports=r)}()},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Date")}},function(t,e,n){t.exports={isFunction:n(11),isObject:n(24),isBoolean:n(82),isNil:n(5),isString:n(10),isArray:n(4),isNumber:n(9),isEmpty:n(83),uniqueId:n(86),clone:n(46),deepMix:n(47),assign:n(8),merge:n(47),upperFirst:n(87),each:n(2),isEqual:n(49),toArray:n(34),extend:n(88),augment:n(89),remove:n(90),isNumberEqual:n(35),toRadian:n(91),toDegree:n(92),mod:n(93),clamp:n(50),createDom:n(94),modifyCSS:n(95),requestAnimationFrame:n(96),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(51),vec2:n(97),vec3:n(98),transform:n(99)}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Boolean")}},function(t,e,n){var r=n(5),i=n(13),a=n(84),o=n(85),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(r(t))return!0;if(i(t))return!t.length;var e=a(t);if("Map"===e||"Set"===e)return!t.size;if(o(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){var n=function(){var t={};return function(e){return t[e=e||"g"]?t[e]+=1:t[e]=1,e+t[e]}}();t.exports=n},function(t,e,n){var r=n(23);t.exports=function(t){var e=r(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var r=n(11),i=n(8);t.exports=function(t,e,n,a){r(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=i(s,t.prototype),t.superclass=o(e.prototype,e),i(s,n),i(t,a),t}},function(t,e,n){var r=n(11),i=n(34),a=n(8);t.exports=function(t){for(var e=i(arguments),n=1;n<e.length;n++){var o=e[n];r(o)&&(o=o.prototype),a(t.prototype,o)}}},function(t,e){var n=Array.prototype,r=n.splice,i=n.indexOf,a=n.slice;t.exports=function(t){for(var e=a.call(arguments,1),n=0;n<e.length;n++)for(var o=e[n],s=-1;(s=i.call(t,o))>-1;)r.call(t,s,1);return t}},function(t,e){var n=Math.PI/180;t.exports=function(t){return n*t}},function(t,e){var n=180/Math.PI;t.exports=function(t){return n*t}},function(t,e){t.exports=function(t,e){return(t%e+e)%e}},function(t,e){var n=document.createElement("table"),r=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};t.exports=function(t){var e=i.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}},function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){t.exports=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){var r=n(183),i=n(50);r.angle=function(t,e){var n=r.dot(t,e)/(r.length(t)*r.length(e));return Math.acos(i(n,-1,1))},r.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},r.angleTo=function(t,e,n){var i=r.angle(t,e),a=r.direction(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},r.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},t.exports=r},function(t,e,n){var r=n(184);t.exports=r},function(t,e,n){var r=n(46),i=n(2),a=n(51);t.exports=function(t,e){return t=r(t),i(e,function(e){switch(e[0]){case"t":a.translate(t,t,[e[1],e[2]]);break;case"s":a.scale(t,t,[e[1],e[2]]);break;case"r":a.rotate(t,t,e[1]);break;case"m":a.multiply(t,t,e[1]);break;default:return!1}}),t}},function(t,e,n){var r=n(1),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){function r(t,e,n){for(var r,i=t.length-1;i>=0;i--){var a=t[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}var i=n(1),a=n(102),o=n(188),s={},u="_INDEX",c=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};i.extend(c,a),i.augment(c,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return function t(e){if(!e._cfg&&e!==c){var n=e.superclass.constructor;n&&!n._cfg&&t(n),e._cfg={},i.merge(e._cfg,n._cfg),i.merge(e._cfg,e.CFG)}}(this.constructor),i.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var r=s[t];if(r||(r=i.upperFirst(t),s[t]=r),e.attrs&&n){var a=e.attrs;if("text"===t){var u=n.get("fontFamily");u&&(a.fontFamily=a.fontFamily?a.fontFamily:u)}}e.canvas=n,e.type=t;var c=new o[r](e);return this.add(c),c},addGroup:function(t,e){var n,r=this.get("canvas");if(e=i.merge({},e),i.isFunction(t))e?(e.canvas=r,e.parent=this,n=new t(e)):n=new t({canvas:r,parent:this}),this.add(n);else if(i.isObject(t))t.canvas=r,n=new c(t),this.add(n);else{if(void 0!==t)return!1;n=new c,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),r=this.getBBox();return i.merge(e,{x:r.minX-t[3],y:r.minY-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!i.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),c.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(i.isArray(t))i.each(t,function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)}),e._cfg.children=n.concat(t);else{var r=t,a=r.get("parent");a&&a.removeChild(r,!1),e._setCfgProperty(r),n.push(r)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){return this.get("children").indexOf(t)>-1},getChildByIndex:function(t){return this.get("children")[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,a=this.get("children");a.length>0?i.each(a,function(i){if(i.get("visible")){if(i.isGroup&&0===i.get("children").length)return;var a=i.getBBox();if(!a)return!0;var o=[a.minX,a.minY,1],s=[a.minX,a.maxY,1],u=[a.maxX,a.minY,1],c=[a.maxX,a.maxY,1];i.apply(o),i.apply(s),i.apply(u),i.apply(c);var l=Math.min(o[0],s[0],u[0],c[0]),f=Math.max(o[0],s[0],u[0],c[0]),h=Math.min(o[1],s[1],u[1],c[1]),p=Math.max(o[1],s[1],u[1],c[1]);l<t&&(t=l),f>e&&(e=f),h<n&&(n=h),p>r&&(r=p)}}):(t=0,e=0,n=0,r=0);var o={minX:t,minY:n,maxX:e,maxY:r};return o.x=o.minX,o.y=o.minY,o.width=o.maxX-o.minX,o.height=o.maxY-o.minY,o},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return i.each(t,function(t,e){return t[u]=e,t}),t.sort(function(t,e){var n=function(t,e){return t.get("zIndex")-e.get("zIndex")}(t,e);return 0===n?t[u]-e[u]:n}),this},findById:function(t){return this.find(function(e){return e.get("id")===t})},find:function(t){if(i.isString(t))return this.findById(t);var e=this.get("children"),n=null;return i.each(e,function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1}),n},findAll:function(t){var e=this.get("children"),n=[],r=[];return i.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))}),n},findBy:function(t){var e=this.get("children"),n=null;return i.each(e,function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1}),n},findAllBy:function(t){var e=this.get("children"),n=[],r=[];return i.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))}),n},getShape:function(t,e){var n,i=this._attrs.clip,a=this._cfg.children;if(i){var o=[t,e,1];i.invert(o,this.get("canvas")),i.isPointInPath(o[0],o[1])&&(n=r(a,t,e))}else n=r(a,t,e);return n},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this._cfg.children,e=0;e<t.length;e++)t[e].clearTotalMatrix()}},clear:function(t){for(var e=this._cfg.children,n=e.length-1;n>=0;n--)e[n].remove(!0,t);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),c.superclass.destroy.call(this))},clone:function(){var t=this._cfg.children,e=new c;return i.each(t,function(t){e.add(t.clone())}),e}}),t.exports=c},function(t,e,n){var r=n(1),i=n(185),a=n(186),o=n(187),s=n(53),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(u,i,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t,e){var n=this._cfg,i=n.parent,a=n.el;return i&&r.remove(i.get("children"),this),a&&(e?i&&i._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(t||void 0===t)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var a=r.parentNode;a.removeChild(r),a.insertBefore(r,a.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,r.isNil(e)||e.sort();var n=this._cfg.el;if(n){var i=e._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return r.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){function r(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function i(t,e,n,i,a,s,u,c,l){var f,h,p,d,g,v,y,m=.005,x=1/0,b=[u,c];for(g=0;g<1;g+=.05)p=[r(t,n,a,g),r(e,i,s,g)],(h=o.squaredDistance(b,p))<x&&(f=g,x=h);for(x=1/0,y=0;y<32&&!(m<1e-4);y++){var _=f-m,w=f+m;p=[r(t,n,a,_),r(e,i,s,_)],h=o.squaredDistance(b,p),_>=0&&h<x?(f=_,x=h):(d=[r(t,n,a,w),r(e,i,s,w)],v=o.squaredDistance(b,d),w<=1&&v<x?(f=w,x=v):m*=.5)}return l&&(l.x=r(t,n,a,f),l.y=r(e,i,s,f)),Math.sqrt(x)}var a=n(1),o=a.vec2;t.exports={at:r,projectPoint:function(t,e,n,r,a,o,s,u){var c={};return i(t,e,n,r,a,o,s,u,c),c},pointDistance:i,extrema:function(t,e,n){var r=t+n-2*e;if(a.isNumberEqual(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}}},function(t,e){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){function r(t,e,n){return t+e*Math.cos(n)}function i(t,e,n){return t+e*Math.sin(n)}var a=n(1),o=n(6),s=n(37),u=n(38),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},a.extend(c,o),a.augment(c,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,a=t.endAngle,o=t.clockwise,u=this.getHitLineWidth()/2,c=s.box(e,n,r,i,a,o);return c.minX-=u,c.minY-=u,c.maxX+=u,c.maxY+=u,c},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.startAngle,o=t.r,s=Math.PI/180;t.clockwise&&(s*=-1);var u=[],c=r(e,o,a+s),l=i(n,o,a+s),f=r(e,o,a),h=i(n,o,a);return u.push([c,l]),u.push([f,h]),u},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.endAngle,o=t.r,s=Math.PI/180,u=[];t.clockwise&&(s*=-1);var c=r(e,o,a+s),l=i(n,o,a+s),f=r(e,o,a),h=i(n,o,a);return u.push([f,h]),u.push([c,l]),u},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;(t=t||self.get("context")).beginPath(),t.arc(n,r,i,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();u.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();u.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=c},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.width,i=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+r+a,maxY:n+i+a}}}),t.exports=a},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.rx,o=e.ry;t=t||self.get("context");var s=a>o?a:o,u=[1,0,0,0,1,0,0,0,1];r.mat3.scale(u,u,[a>o?1:a/o,a>o?o/a:1]),r.mat3.translate(u,u,[n,i]),t.beginPath(),t.save(),t.transform(u[0],u[1],u[3],u[4],u[6],u[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(1),i=n(6),a=n(37),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rs,i=t.re,o=t.startAngle,s=t.endAngle,u=t.clockwise,c=this.getHitLineWidth(),l=a.box(e,n,r,o,s,u),f=a.box(e,n,i,o,s,u),h=c/2;return{minX:Math.min(l.minX,f.minX)-h,minY:Math.min(l.minY,f.minY)-h,maxX:Math.max(l.maxX,f.maxX)+h,maxY:Math.max(l.maxY,f.maxY)+h}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,c={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},l={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},f={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};(t=t||self.get("context")).beginPath(),t.moveTo(c.x,c.y),t.lineTo(l.x,l.y),t.arc(n,r,a,o,s,u),t.lineTo(f.x,f.y),t.arc(n,r,i,s,o,!u),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(a,i),r.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!r.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",i);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,c=e.sy,l=e.swidth,f=e.sheight;this.set("toDraw",!1);var h=a;if(h instanceof ImageData&&((h=new Image).src=a),h instanceof Image||h instanceof HTMLElement&&r.isString(h.nodeName)&&"CANVAS"===h.nodeName.toUpperCase()){if(r.isNil(u)||r.isNil(c)||r.isNil(l)||r.isNil(f))return void t.drawImage(h,n,i,o,s);if(!(r.isNil(u)||r.isNil(c)||r.isNil(l)||r.isNil(f)))return void t.drawImage(h,u,c,l,f,n,i,o,s)}}}),t.exports=a},function(t,e,n){var r=n(1),i=n(6),a=n(38),o=n(36),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},createPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,a=e.y2;(t=t||self.get("context")).beginPath(),t.moveTo(n,r),t.lineTo(i,a)},afterPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,o=e.y2;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,i,o,n,r),e.endArrow&&a.addEndArrow(t,e,n,r,i,o)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},function(t,e,n){var r=n(1),i=n(6),a=n(39),o=n(27),s=n(38),u=n(57),c=n(55),l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(l,i),r.augment(l,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){if(r.isNil(t))return this.setSilent("segments",null),void this.setSilent("box",void 0);var e,n=o.parsePath(t),i=[];if(r.isArray(n)&&0!==n.length&&("M"===n[0][0]||"m"===n[0][0])){for(var s=n.length,u=0;u<n.length;u++)e=new a(n[u],e,u===s-1),i.push(e);this.setSilent("segments",i),this.setSilent("tCache",null),this.setSilent("box",null)}},calculateBox:function(){var t=this.get("segments");if(!t)return null;var e=this.getHitLineWidth(),n=1/0,i=-1/0,a=1/0,o=-1/0;return r.each(t,function(t){t.getBBox(e);var r=t.box;r&&(r.minX<n&&(n=r.minX),r.maxX>i&&(i=r.maxX),r.minY<a&&(a=r.minY),r.maxY>o&&(o=r.maxY))}),n===1/0||a===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:n,minY:a,maxX:i,maxY:o}},_setTcache:function(){var t,e,n,i,a=0,o=0,s=[],u=this._cfg.curve;u&&(r.each(u,function(t,e){i=t.length,(n=u[e+1])&&(a+=c.len(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))}),r.each(u,function(r,l){i=r.length,(n=u[l+1])&&((t=[])[0]=o/a,e=c.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),t[1]=(o+=e)/a,s.push(t))}),this._cfg.tCache=s)},_calculateCurve:function(){this._cfg.curve=u.pathTocurve(this._attrs.path)},getStartTangent:function(){var t,e,n,i,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,i=[],r.isFunction(n=a[1].startTangent)){var o=n();i.push([t.x-o[0],t.y-o[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getEndTangent:function(){var t,e,n,i,a=this.get("segments"),o=a.length;if(o>1)if(t=a[o-2].endPoint,e=a[o-1].endPoint,i=[],r.isFunction(n=a[o-1].endTangent)){var s=n();i.push([e.x-s[0],e.y-s[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getPoint:function(t){var e,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var a=this._cfg.curve;if(!i)return a?{x:a[0][1],y:a[0][2]}:null;r.each(i,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)});var o=a[n];if(r.isNil(o)||r.isNil(n))return null;var s=o.length,u=a[n+1];return{x:c.at(o[s-2],u[1],u[3],u[5],1-e),y:c.at(o[s-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this.get("segments");if(r.isArray(e)){(t=t||this.get("context")).beginPath();for(var n=e.length,i=0;i<n;i++)e[i].draw(t)}},afterPath:function(t){var e=this._attrs,n=this.get("segments"),i=e.path;if(t=t||this.get("context"),r.isArray(n)&&1!==n.length&&(e.startArrow||e.endArrow)&&"z"!==i[i.length-1]&&"Z"!==i[i.length-1]&&!e.fill){var a=this.getStartTangent();s.addStartArrow(t,e,a[0][0],a[0][1],a[1][0],a[1][1]);var o=this.getEndTangent();s.addEndArrow(t,e,o[0][0],o[0][1],o[1][0],o[1][1])}}}),t.exports=l},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={points:null,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs.points,e=this.getHitLineWidth();if(!t||0===t.length)return null;var n=1/0,i=1/0,a=-1/0,o=-1/0;r.each(t,function(t){var e=t[0],r=t[1];e<n&&(n=e),e>a&&(a=e),r<i&&(i=r),r>o&&(o=r)});var s=e/2;return{minX:n-s,minY:i-s,maxX:a+s,maxY:o+s}},createPath:function(t){var e=this._attrs.points;e.length<2||((t=t||this.get("context")).beginPath(),r.each(e,function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])}),t.closePath())}}),t.exports=a},function(t,e,n){var r=n(1),i=n(6),a=n(38),o=n(36),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=this.getHitLineWidth(),n=t.points;if(!n||0===n.length)return null;var i=1/0,a=1/0,o=-1/0,s=-1/0;r.each(n,function(t){var e=t[0],n=t[1];e<i&&(i=e),e>o&&(o=e),n<a&&(a=n),n>s&&(s=n)});var u=e/2;return{minX:i-u,minY:a-u,maxX:o+u,maxY:s+u}},_setTcache:function(){var t,e,n=this._attrs.points,i=0,a=0,s=[];n&&0!==n.length&&(r.each(n,function(t,e){n[e+1]&&(i+=o.len(t[0],t[1],n[e+1][0],n[e+1][1]))}),i<=0||(r.each(n,function(r,u){n[u+1]&&((t=[])[0]=a/i,e=o.len(r[0],r[1],n[u+1][0],n[u+1][1]),t[1]=(a+=e)/i,s.push(t))}),this.tCache=s))},createPath:function(t){var e,n,r=this._attrs.points;if(!(r.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(r[0][0],r[0][1]),n=1,e=r.length-1;n<e;n++)t.lineTo(r[n][0],r[n][1]);t.lineTo(r[e][0],r[e][1])}},getStartTangent:function(){var t=this.__attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},getEndTangent:function(){var t=this.__attrs.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},afterPath:function(t){var e=this._attrs,n=e.points,r=n.length-1;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,n[1][0],n[1][1],n[0][0],n[0][1]),e.endArrow&&a.addEndArrow(t,e,n[r-1][0],n[r-1][1],n[r][0],n[r][1])},getPoint:function(t){var e,n,i=this._attrs.points,a=this.tCache;return a||(this._setTcache(),a=this.tCache),r.each(a,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}),{x:o.at(i[n][0],i[n+1][0],e),y:o.at(i[n][1],i[n+1][1],e)}}}),t.exports=s},function(t,e,n){var r=n(1),i=n(27).parseRadius,a=n(6),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(o,a),r.augment(o,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.width,i=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+r+a,maxY:n+i+a}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,a=e.width,o=e.height,s=e.radius;if((t=t||this.get("context")).beginPath(),0===s)t.rect(n,r,a,o);else{var u=i(s);t.moveTo(n+u.r1,r),t.lineTo(n+a-u.r2,r),0!==u.r2&&t.arc(n+a-u.r2,r+u.r2,u.r2,-Math.PI/2,0),t.lineTo(n+a,r+o-u.r3),0!==u.r3&&t.arc(n+a-u.r3,r+o-u.r3,u.r3,0,Math.PI/2),t.lineTo(n+u.r4,r+o),0!==u.r4&&t.arc(n+u.r4,r+o-u.r4,u.r4,Math.PI/2,Math.PI),t.lineTo(n,r+u.r1),0!==u.r1&&t.arc(n+u.r1,r+u.r1,u.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=o},function(t,e,n){var r=n(1),i=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs;t.font=[t.fontStyle,t.fontVariant,t.fontWeight,t.fontSize+"px",t.fontFamily].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(r.isString(e)&&-1!==e.indexOf("\n")){var i=(n=e.split("\n")).length;t.lineCount=i}t.textArr=n},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;return e>1?n*e+this._getSpaceingY()*(e-1):n},isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs,e=this._cfg;e.attrs&&!e.hasUpdate||(this._assembleFont(),this._setAttrText()),t.textArr||this._setAttrText();var n=t.x,r=t.y,i=this.measureText();if(!i)return{minX:n,minY:r,maxX:n,maxY:r};var a=this._getTextHeight(),o=t.textAlign,s=t.textBaseline,u=this.getHitLineWidth(),c={x:n,y:r-a};o&&("end"===o||"right"===o?c.x-=i:"center"===o&&(c.x-=i/2)),s&&("top"===s?c.y+=a:"middle"===s&&(c.y+=a/2)),this.set("startPoint",c);var l=u/2;return{minX:c.x-l,minY:c.y-l,maxX:c.x+i+l,maxY:c.y+a+l}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=e.font;var i=e.text;if(i){var a=e.textArr,o=e.x,s=e.y;if(t.beginPath(),this.hasStroke()){var u=e.strokeOpacity;r.isNil(u)||1===u||(t.globalAlpha=u),a?this._drawTextArr(t,!1):t.strokeText(i,o,s),t.globalAlpha=1}if(this.hasFill()){var c=e.fillOpacity;r.isNil(c)||1===c||(t.globalAlpha=c),a?this._drawTextArr(t,!0):t.fillText(i,o,s)}n.hasUpdate=!1}},_drawTextArr:function(t,e){var n,i=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),u=this._attrs.x,c=this._attrs.y,l=this.getBBox(),f=l.maxY-l.minY;r.each(i,function(r,i){n=c+i*(s+o)-f+o,"middle"===a&&(n+=f-o-(f-o)/2),"top"===a&&(n+=f-o),e?t.fillText(r,u,n):t.strokeText(r,u,n)})},measureText:function(){var t,e=this._attrs,n=e.text,i=e.font,a=e.textArr,o=0;if(!r.isNil(n)){var s=document.createElement("canvas").getContext("2d");return s.save(),s.font=i,a?r.each(a,function(e){t=s.measureText(e).width,o<t&&(o=t),s.restore()}):(o=s.measureText(n).width,s.restore()),o}}}),t.exports=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(59);n.d(e,"interpolate",function(){return r.a});var i=n(122);n.d(e,"interpolateArray",function(){return i.a});var a=n(62);n.d(e,"interpolateBasis",function(){return a.b});var o=n(120);n.d(e,"interpolateBasisClosed",function(){return o.a});var s=n(123);n.d(e,"interpolateDate",function(){return s.a});var u=n(40);n.d(e,"interpolateNumber",function(){return u.a});var c=n(124);n.d(e,"interpolateObject",function(){return c.a});var l=n(205);n.d(e,"interpolateRound",function(){return l.a});var f=n(125);n.d(e,"interpolateString",function(){return f.a});var h=n(206);n.d(e,"interpolateTransformCss",function(){return h.a}),n.d(e,"interpolateTransformSvg",function(){return h.b});var p=n(209);n.d(e,"interpolateZoom",function(){return p.a});var d=n(119);n.d(e,"interpolateRgb",function(){return d.a}),n.d(e,"interpolateRgbBasis",function(){return d.b}),n.d(e,"interpolateRgbBasisClosed",function(){return d.c});var g=n(210);n.d(e,"interpolateHsl",function(){return g.a}),n.d(e,"interpolateHslLong",function(){return g.b});var v=n(211);n.d(e,"interpolateLab",function(){return v.a});var y=n(212);n.d(e,"interpolateHcl",function(){return y.a}),n.d(e,"interpolateHclLong",function(){return y.b});var m=n(213);n.d(e,"interpolateCubehelix",function(){return m.b}),n.d(e,"interpolateCubehelixLong",function(){return m.a});var x=n(214);n.d(e,"quantize",function(){return x.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";function r(t){return function(e){var n,r,a=e.length,o=new Array(a),s=new Array(a),u=new Array(a);for(n=0;n<a;++n)r=Object(i.f)(e[n]),o[n]=r.r||0,s[n]=r.g||0,u[n]=r.b||0;return o=t(o),s=t(s),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=u(t),r+""}}}n.d(e,"b",function(){return u}),n.d(e,"c",function(){return c});var i=n(19),a=n(62),o=n(120),s=n(28);e.a=function t(e){function n(t,e){var n=r((t=Object(i.f)(t)).r,(e=Object(i.f)(e)).r),a=r(t.g,e.g),o=r(t.b,e.b),u=Object(s.a)(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=a(e),t.b=o(e),t.opacity=u(e),t+""}}var r=Object(s.b)(e);return n.gamma=t,n}(1);var u=r(a.b),c=r(o.a)},function(t,e,n){"use strict";var r=n(62);e.a=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],u=t[(i+2)%e];return Object(r.a)((n-i/e)*e,a,o,s,u)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(59);e.a=function(t,e){var n,i=e?e.length:0,a=t?Math.min(i,t.length):0,o=new Array(a),s=new Array(i);for(n=0;n<a;++n)o[n]=Object(r.a)(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}}},function(t,e,n){"use strict";var r=n(59);e.a=function(t,e){var n,i={},a={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Object(r.a)(t[n],e[n]):a[n]=e[n];return function(t){for(n in i)a[n]=i[n](t);return a}}},function(t,e,n){"use strict";var r=n(40),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");e.a=function(t,e){var n,o,s,u=i.lastIndex=a.lastIndex=0,c=-1,l=[],f=[];for(t+="",e+="";(n=i.exec(t))&&(o=a.exec(e));)(s=o.index)>u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(o=o[0])?l[c]?l[c]+=o:l[++c]=o:(l[++c]=null,f.push({i:c,x:Object(r.a)(n,o)})),u=a.lastIndex;return u<e.length&&(s=e.slice(u),l[c]?l[c]+=s:l[++c]=s),l.length<2?f[0]?function(t){return function(e){return t(e)+""}}(f[0].x):function(t){return function(){return t}}(e):(e=f.length,function(t){for(var n,r=0;r<e;++r)l[(n=f[r]).i]=n.x(t);return l.join("")})}},function(t,e,n){var r=n(0),i=n(290),a={appear:{duration:450,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut",delay:100},leave:{duration:350,easing:"easeQuadIn"}},o={line:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},path:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},area:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.leave.fadeOut},cfg:{appear:{duration:500,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:600,delay:150,easing:"easeQuadInOut"},leave:{easing:"easeQuadOut",duration:350}}},polygon:{appear:function(){return i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},edge:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}},interval:{appear:function(t){var e;return t.isPolar?(e=i.appear.zoomIn,(t.isTransposed||"theta"===t.type)&&(e=i.appear.fanIn)):e=t.isRect?t.isTransposed?i.appear.scaleInX:i.appear.scaleInY:i.appear.zoomIn,e},enter:function(t){return t.isRect||t.isTransposed||"theta"===t.type?i.enter.fadeIn:i.enter.zoomIn},leave:function(){return i.leave.fadeOut},update:function(t){if("theta"===t.type)return i.update.fanIn}},point:{appear:function(){return i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},schema:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},contour:null,heatmap:null,label:{appear:function(){return i.appear.fadeIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.leave.fadeOut},cfg:{appear:{duration:900}}},"axis-label":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-ticks":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-grid":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-grid-rect":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(){return i.leave.fadeIn}},labelLine:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}}};o.Action=i,o.defaultCfg=a,o.getAnimation=function(t,e,n){var i=this[t];if(i){var a=i[n];if(r.isFunction(a))return a(e)}return!1},o.getAnimateCfg=function(t,e){var n=a[e];return this[t]&&this[t].cfg&&this[t].cfg[e]?r.deepMix({},n,this[t].cfg[e]):n},o.registerAnimation=function(t,e,n){this.Action[t]||(this.Action[t]={}),this.Action[t][e]=n},t.exports=o},function(t,e,n){var r=n(2),i=n(8),a=n(228),o=n(237),s=n(248),u=n(251),c=n(255),l=n(43),f=n(264),h=n(268),p=n(274),d=n(278),g={DOMUtil:a,DomUtil:a,MatrixUtil:l,PathUtil:h,arrayUtil:o,domUtil:a,eventUtil:s,formatUtil:u,mathUtil:c,matrixUtil:l,objectUtil:f,stringUtil:p,pathUtil:h,typeUtil:d,augment:n(89),clone:n(46),debounce:n(284),deepMix:n(47),each:r,extend:n(88),filter:n(63),group:n(144),groupBy:n(146),groupToMap:n(145),indexOf:n(285),isEmpty:n(83),isEqual:n(49),isEqualWith:n(286),map:n(287),mix:i,pick:n(288),throttle:n(289),toArray:n(34),toString:n(23),uniqueId:n(86)};r([a,o,s,u,c,l,f,h,p,d],function(t){i(g,t)}),t.exports=g},function(t,e,n){var r=n(129),i=n(5);t.exports=function(t,e){var n=r(e),a=n.length;if(i(t))return!a;for(var o=0;o<a;o+=1){var s=n[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){var r=n(2),i=n(11),a=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return r(t,function(n,r){i(t)&&"prototype"===r||e.push(r)}),e};t.exports=a},function(t,e,n){var r=n(13),i=Array.prototype.splice;t.exports=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,a=n-1;n--;){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t}},function(t,e,n){var r=n(2),i=n(41);t.exports=function(t){var e=[];return r(t,function(t){i(e,t)||e.push(t)}),e}},function(t,e,n){var r=n(4),i=n(11),a=n(2);t.exports=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){(s=i(e)?e(t):t[e])>o&&(n=t,o=s)}),n}}},function(t,e){t.exports=parseInt},function(t,e){t.exports=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){var r=n(2),i=n(11),a=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return r(t,function(n,r){i(t)&&"prototype"===r||e.push(n)}),e};t.exports=a},function(t,e,n){var r=n(137);t.exports=function(t,e,n,i,a){if(a)return[["M",+t+ +a,e],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,i-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-n,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-i],["a",a,a,0,0,1,a,-a],["z"]];var o=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=r,o}},function(t,e){var n=/,?([a-z]),?/gi;t.exports=function(t){return t.join(",").replace(n,"$1")}},function(t,e,n){var r=n(139),i=function(t,e,n,r){return[t,e,n,r,n,r]},a=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]};t.exports=function(t,e){var n=r(t),o=e&&r(e),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=[],l=[],f="",h="",p=void 0,d=function(t,e,n){var r=void 0,o=void 0;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat((function t(e,n,r,i,a,o,s,u,c,l){r===i&&(r+=1);var f=120*Math.PI/180,h=Math.PI/180*(+a||0),p=[],d=void 0,g=void 0,v=void 0,y=void 0,m=void 0,x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)g=l[0],v=l[1],y=l[2],m=l[3];else{e=(d=x(e,n,-h)).x,n=d.y,u=(d=x(u,c,-h)).x,c=d.y,e===u&&n===c&&(u+=1,c+=1);var b=(e-u)/2,_=(n-c)/2,w=b*b/(r*r)+_*_/(i*i);w>1&&(r*=w=Math.sqrt(w),i*=w);var O=r*r,j=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((O*j-O*_*_-j*b*b)/(O*_*_+j*b*b)));y=S*r*_/i+(e+u)/2,m=S*-i*b/r+(n+c)/2,g=Math.asin(((n-m)/i).toFixed(9)),v=Math.asin(((c-m)/i).toFixed(9)),g=e<y?Math.PI-g:g,v=u<y?Math.PI-v:v,g<0&&(g=2*Math.PI+g),v<0&&(v=2*Math.PI+v),s&&g>v&&(g-=2*Math.PI),!s&&v>g&&(v-=2*Math.PI)}var M=v-g;if(Math.abs(M)>f){var E=v,P=u,C=c;v=g+f*(s&&v>g?1:-1),p=t(u=y+r*Math.cos(v),c=m+i*Math.sin(v),r,i,a,0,s,P,C,[v,E,y,m])}M=v-g;var k=Math.cos(g),A=Math.sin(g),T=Math.cos(v),I=Math.sin(v),L=Math.tan(M/4),R=4/3*r*L,D=4/3*i*L,F=[e,n],B=[e+R*A,n-D*k],N=[u+R*I,c-D*T],z=[u,c];if(B[0]=2*F[0]-B[0],B[1]=2*F[1]-B[1],l)return[B,N,z].concat(p);for(var q=[],V=0,H=(p=[B,N,z].concat(p).join().split(",")).length;V<H;V++)q[V]=V%2?x(p[V-1],p[V],h).y:x(p[V],p[V+1],h).x;return q}).apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,o=2*e.y-e.by):(r=e.x,o=e.y),t=["C",r,o].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(a(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(a(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(i(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(i(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(i(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(i(e.x,e.y,e.X,e.Y))}return t},g=function(t,e){if(t[e].length>7){t[e].shift();for(var r=t[e];r.length;)c[e]="A",o&&(l[e]="A"),t.splice(e++,0,["C"].concat(r.splice(0,6)));t.splice(e,1),p=Math.max(n.length,o&&o.length||0)}},v=function(t,e,r,i,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=t[a][1],r.y=t[a][2],p=Math.max(n.length,o&&o.length||0))};p=Math.max(n.length,o&&o.length||0);for(var y=0;y<p;y++){n[y]&&(f=n[y][0]),"C"!==f&&(c[y]=f,y&&(h=c[y-1])),n[y]=d(n[y],s,h),"A"!==c[y]&&"C"===f&&(c[y]="C"),g(n,y),o&&(o[y]&&(f=o[y][0]),"C"!==f&&(l[y]=f,y&&(h=l[y-1])),o[y]=d(o[y],u,h),"A"!==l[y]&&"C"===f&&(l[y]="C"),g(o,y)),v(n,o,s,u,y),v(o,n,u,s,y);var m=n[y],x=o&&o[y],b=m.length,_=o&&x.length;s.x=m[b-2],s.y=m[b-1],s.bx=parseFloat(m[b-4])||s.x,s.by=parseFloat(m[b-3])||s.y,u.bx=o&&(parseFloat(x[_-4])||u.x),u.by=o&&(parseFloat(x[_-3])||u.y),u.x=o&&x[_-2],u.y=o&&x[_-1]}return o?[n,o]:n}},function(t,e,n){function r(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a}var i=n(140),a=n(141);t.exports=function(t){if(!(t=i(t))||!t.length)return[["M",0,0]];var e=[],n=0,o=0,s=0,u=0,c=0,l=void 0,f=void 0;"M"===t[0][0]&&(s=n=+t[0][1],u=o=+t[0][2],c++,e[0]=["M",n,o]);for(var h,p,d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=c,v=t.length;g<v;g++){if(e.push(h=[]),(l=(p=t[g])[0])!==l.toUpperCase())switch(h[0]=l.toUpperCase(),h[0]){case"A":h[1]=p[1],h[2]=p[2],h[3]=p[3],h[4]=p[4],h[5]=p[5],h[6]=+p[6]+n,h[7]=+p[7]+o;break;case"V":h[1]=+p[1]+o;break;case"H":h[1]=+p[1]+n;break;case"R":for(var y=2,m=(f=[n,o].concat(p.slice(1))).length;y<m;y++)f[y]=+f[y]+n,f[++y]=+f[y]+o;e.pop(),e=e.concat(a(f,d));break;case"O":e.pop(),(f=r(n,o,p[1],p[2])).push(f[0]),e=e.concat(f);break;case"U":e.pop(),e=e.concat(r(n,o,p[1],p[2],p[3])),h=["U"].concat(e[e.length-1].slice(-2));break;case"M":s=+p[1]+n,u=+p[2]+o;break;default:for(var x=1,b=p.length;x<b;x++)h[x]=+p[x]+(x%2?n:o)}else if("R"===l)f=[n,o].concat(p.slice(1)),e.pop(),e=e.concat(a(f,d)),h=["R"].concat(p.slice(-2));else if("O"===l)e.pop(),(f=r(n,o,p[1],p[2])).push(f[0]),e=e.concat(f);else if("U"===l)e.pop(),e=e.concat(r(n,o,p[1],p[2],p[3])),h=["U"].concat(e[e.length-1].slice(-2));else for(var _=0,w=p.length;_<w;_++)h[_]=p[_];if("O"!==(l=l.toUpperCase()))switch(h[0]){case"Z":n=+s,o=+u;break;case"H":n=h[1];break;case"V":o=h[1];break;case"M":s=h[h.length-2],u=h[h.length-1];break;default:n=h[h.length-2],o=h[h.length-1]}}return e}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",i=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig");t.exports=function(t){if(!t)return null;if((void 0===t?"undefined":n(t))===n([]))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},r=[];return String(t).replace(i,function(t,n,i){var o=[],s=n.toLowerCase();if(i.replace(a,function(t,e){e&&o.push(+e)}),"m"===s&&o.length>2&&(r.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&r.push([n,o[0]]),"r"===s)r.push([n].concat(o));else for(;o.length>=e[s]&&(r.push([n].concat(o.splice(0,e[s]))),e[s]););}),r}},function(t,e){t.exports=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(6*a[1].x-a[0].x+a[2].x)/6,(6*a[1].y-a[0].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}},function(t,e,n){var r=n(23);t.exports=function(t){return r(t).toLowerCase()}},function(t,e,n){var r=n(23);t.exports=function(t){return r(t).toUpperCase()}},function(t,e,n){var r=n(145);t.exports=function(t,e){if(!e)return[t];var n=r(t,e),i=[];for(var a in n)i.push(n[a]);return i}},function(t,e,n){var r=n(11),i=n(4),a=n(146);t.exports=function(t,e){if(!e)return{0:t};if(!r(e)){var n=i(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return a(t,e)}},function(t,e,n){var r=n(2),i=n(4),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(!e||!i(t))return t;var n={},o=null;return r(t,function(t){o=e(t),a.call(n,o)?n[o].push(t):n[o]=[t]}),n}},function(t,e,n){function r(t,e){return i.isEqualWith(t,e,function(t,e){return t===e})}var i=n(0),a=n(291),o=n(16).Canvas,s=i.DomUtil,u=n(7),c=n(356),l=n(165),f=n(167),h=n(166),p=n(168),d=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix(e,{id:null,forceFit:!1,container:null,wrapperEl:null,canvas:null,width:500,height:500,pixelRatio:null,backPlot:null,frontPlot:null,plotBackground:null,padding:u.plotCfg.padding,background:null,autoPaddingAppend:5,limitInPlot:!1,renderer:u.renderer,views:[]})},n.init=function(){var e=this.get("viewTheme");this._initCanvas(),this._initPlot(),this._initEvents(),t.prototype.init.call(this);var n=new l.Tooltip({chart:this,viewTheme:e,options:{}});this.set("tooltipController",n);var r=new l.Legend({chart:this,viewTheme:e});this.set("legendController",r),this.set("_id","chart"),this.emit("afterinit")},n._isAutoPadding=function(){var t=this.get("padding");return i.isArray(t)?-1!==t.indexOf("auto"):"auto"===t},n._getAutoPadding=function(){for(var t=this.get("padding"),e=this.get("frontPlot").getBBox(),n=this.get("backPlot"),r=h(n,p(this.get("plotRange"))),a=f(e,r),o=[0-a.minY,a.maxX-this.get("width"),a.maxY-this.get("height"),0-a.minX],s=i.toAllPadding(t),u=0;u<s.length;u++)if("auto"===s[u]){var c=Math.max(0,o[u]);s[u]=c+this.get("autoPaddingAppend")}return s},n._initCanvas=function(){var t=this.get("container"),e=this.get("id");!t&&e&&(t=e,this.set("container",e));var n=this.get("width"),r=this.get("height");if(i.isString(t)){if(!(t=document.getElementById(t)))throw new Error("Please specify the container for the chart!");this.set("container",t)}var a=s.createDom('<div style="position:relative;"></div>');t.appendChild(a),this.set("wrapperEl",a),this.get("forceFit")&&(n=s.getWidth(t,n),this.set("width",n));var u=this.get("renderer"),c=new o({containerDOM:a,width:n,height:r,pixelRatio:"svg"===u?1:this.get("pixelRatio"),renderer:u});this.set("canvas",c)},n._initPlot=function(){this._initPlotBack();var t=this.get("canvas"),e=t.addGroup({zIndex:1}),n=t.addGroup({zIndex:0}),r=t.addGroup({zIndex:3});this.set("backPlot",e),this.set("middlePlot",n),this.set("frontPlot",r)},n._initPlotBack=function(){var t=this.get("canvas"),e=this.get("viewTheme"),n=t.addGroup(c,{padding:this.get("padding"),plotBackground:i.mix({},e.plotBackground,this.get("plotBackground")),background:i.mix({},e.background,this.get("background"))});this.set("plot",n),this.set("plotRange",n.get("plotRange"))},n._initEvents=function(){this.get("forceFit")&&window.addEventListener("resize",i.wrapBehavior(this,"_initForceFitEvent"))},n._initForceFitEvent=function(){var t=setTimeout(i.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",t)},n._renderLegends=function(){var t=this.get("options").legends;if(i.isNil(t)||!1!==t){var e=this.get("legendController");if(e.options=t||{},e.plotRange=this.get("plotRange"),t&&t.custom)e.addCustomLegend();else{var n=this.getAllGeoms(),r=[];i.each(n,function(t){var n=t.get("view"),a=t.getAttrsForLegend();i.each(a,function(a){var o=a.getScale(a.type);if(o.field&&"identity"!==o.type&&!function(t,e){var n=!1;return i.each(r,function(t){var r=[].concat(t.values),i=[].concat(e.values);t.type!==e.type||t.field!==e.field||r.sort().toString()!==i.sort().toString()||(n=!0)}),n}(0,o)){r.push(o);var s=n.getFilteredOutValues(o.field);e.addLegend(o,a,t,s)}})});var a=this.getYScales();0===r.length&&a.length>1&&e.addMixedLegend(a,n)}e.alignLegends()}},n._renderTooltips=function(){var t=this.get("options");if(i.isNil(t.tooltip)||!1!==t.tooltip){var e=this.get("tooltipController");e.options=t.tooltip||{},e.renderTooltip()}},n.getAllGeoms=function(){var t=[];t=t.concat(this.get("geoms"));var e=this.get("views");return i.each(e,function(e){t=t.concat(e.get("geoms"))}),t},n.forceFit=function(){if(this&&!this.destroyed){var t=this.get("container"),e=this.get("width"),n=s.getWidth(t,e);if(0!==n&&n!==e){var r=this.get("height");this.changeSize(n,r)}return this}},n.resetPlot=function(){var t=this.get("plot"),e=this.get("padding");r(e,t.get("padding"))||(t.set("padding",e),t.repaint())},n.changeSize=function(t,e){this.get("canvas").changeSize(t,e);var n=this.get("plot");return this.set("width",t),this.set("height",e),n.repaint(),this.set("keepPadding",!0),this.repaint(),this.set("keepPadding",!1),this.emit("afterchangesize"),this},n.changeWidth=function(t){return this.changeSize(t,this.get("height"))},n.changeHeight=function(t){return this.changeSize(this.get("width"),t)},n.view=function(t){(t=t||{}).theme=this.get("theme"),t.parent=this,t.backPlot=this.get("backPlot"),t.middlePlot=this.get("middlePlot"),t.frontPlot=this.get("frontPlot"),t.canvas=this.get("canvas"),i.isNil(t.animate)&&(t.animate=this.get("animate")),t.options=i.mix({},this._getSharedOptions(),t.options);var e=new a(t);return e.set("_id","view"+this.get("views").length),this.get("views").push(e),this.emit("addview",{view:e}),e},n.removeView=function(t){var e=this.get("views");i.Array.remove(e,t),t.destroy()},n._getSharedOptions=function(){var t=this.get("options"),e={};return i.each(["scales","coord","axes"],function(n){e[n]=i.cloneDeep(t[n])}),e},n.getViewRegion=function(){var t=this.get("plotRange");return{start:t.bl,end:t.tr}},n.legend=function(t,e){var n=this.get("options");n.legends||(n.legends={});var r={};return!1===t?n.legends=!1:i.isObject(t)?r=t:i.isString(t)?r[t]=e:r=e,i.mix(n.legends,r),this},n.tooltip=function(t,e){var n=this.get("options");return n.tooltip||(n.tooltip={}),!1===t?n.tooltip=!1:i.isObject(t)?i.mix(n.tooltip,t):i.mix(n.tooltip,e),this},n.clear=function(){this.emit("beforeclear");for(var e=this.get("views");e.length>0;)e.shift().destroy();t.prototype.clear.call(this);var n=this.get("canvas");return this.resetPlot(),n.draw(),this.emit("afterclear"),this},n.clearInner=function(){var e=this.get("views");i.each(e,function(t){t.clearInner()});var n=this.get("tooltipController");if(n&&n.clear(),!this.get("keepLegend")){var r=this.get("legendController");r&&r.clear()}t.prototype.clearInner.call(this)},n.drawComponents=function(){t.prototype.drawComponents.call(this),this.get("keepLegend")||this._renderLegends()},n.render=function(){if(!this.get("keepPadding")&&this._isAutoPadding()){this.beforeRender(),this.drawComponents();var e=this._getAutoPadding(),n=this.get("plot");r(n.get("padding"),e)||(n.set("padding",e),n.repaint())}var a=this.get("middlePlot");if(this.get("limitInPlot")&&!a.attr("clip")){var o=i.getClipByRange(this.get("plotRange"));a.attr("clip",o)}t.prototype.render.call(this),this._renderTooltips()},n.repaint=function(){this.get("keepPadding")||this.resetPlot(),t.prototype.repaint.call(this)},n.changeVisible=function(t){this.get("wrapperEl").style.display=t?"":"none"},n.toDataURL=function(){var t=this.get("canvas"),e=this.get("renderer"),n=t.get("el"),r="";if("svg"===e){var i=n.cloneNode(!0),a=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),o=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",a);o.replaceChild(i,o.documentElement);var s=(new XMLSerializer).serializeToString(o);r="data:image/svg+xml;charset=utf8,"+encodeURIComponent(s)}else"canvas"===e&&(r=n.toDataURL("image/png"));return r},n.downloadImage=function(t){var e=this,n=document.createElement("a"),r=e.get("renderer"),i=(t||"chart")+("svg"===r?".svg":".png");e.get("canvas").get("timeline").stopAllAnimations(),setTimeout(function(){var t=e.toDataURL();if(window.Blob&&window.URL&&"svg"!==r){for(var a=t.split(","),o=a[0].match(/:(.*?);/)[1],s=atob(a[1]),u=s.length,c=new Uint8Array(u);u--;)c[u]=s.charCodeAt(u);var l=new Blob([c],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(l,i):n.addEventListener("click",function(){n.download=i,n.href=window.URL.createObjectURL(l)})}else n.addEventListener("click",function(){n.download=i,n.href=t});var f=document.createEvent("MouseEvents");f.initEvent("click",!1,!1),n.dispatchEvent(f)},16)},n.showTooltip=function(t){var e=this.getViewsByPoint(t);return e.length&&this.get("tooltipController").showTooltip(t,e),this},n.hideTooltip=function(){return this.get("tooltipController").hideTooltip(),this},n.getTooltipItems=function(t){var e=this.getViewsByPoint(t),n=[];return i.each(e,function(e){var r=e.get("geoms");i.each(r,function(e){var r=e.get("dataArray"),a=[];i.each(r,function(n){var r=e.findPoint(t,n);if(r){var i=e.getTipItems(r);a=a.concat(i)}}),n=n.concat(a)})}),n},n.destroy=function(){this.emit("beforedestroy"),clearTimeout(this.get("resizeTimer"));var e=this.get("canvas"),n=this.get("wrapperEl");n.parentNode.removeChild(n),t.prototype.destroy.call(this),e.destroy(),window.removeEventListener("resize",i.getWrapBehavior(this,"_initForceFitEvent")),this.emit("afterdestroy")},e}(a);t.exports=d},function(t,e,n){var r=n(53),i=n(0),a=function(t){function e(e){var n,r={visible:!0},a=(n=t.call(this)||this).getDefaultCfg();return n._attrs=r,i.assign(r,a,e),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{}},n.get=function(t){return this._attrs[t]},n.set=function(t,e){this._attrs[t]=e},n.show=function(){this.get("visible")||(this.set("visible",!0),this.changeVisible(!0))},n.hide=function(){this.get("visible")&&(this.set("visible",!1),this.changeVisible(!1))},n.changeVisible=function(){},n.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},e}(r);t.exports=a},function(t,e,n){function r(t,e,n,r){return t[r]+(e[r]-t[r])*n}function i(t){return"#"+a(t[0])+a(t[1])+a(t[2])}function a(t){return 1===(t=(t=Math.round(t)).toString(16)).length&&(t="0"+t),t}function o(t){var e=[];return e.push(parseInt(t.substr(1,2),16)),e.push(parseInt(t.substr(3,2),16)),e.push(parseInt(t.substr(5,2),16)),e}var s=n(9),u=n(10),c=n(2),l=/rgba?\(([\s.,0-9]+)\)/,f={},h=null,p={toRGB:function(t){return"#"===t[0]&&7===t.length?t:(h||(h=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t}()),f[t]?e=f[t]:(h.style.color=t,e=document.defaultView.getComputedStyle(h,"").getPropertyValue("color"),e=i(l.exec(e)[1].split(/\s*,\s*/)),f[t]=e),e);var e},rgb2arr:o,gradient:function(t){var e=[];return u(t)&&(t=t.split("-")),c(t,function(t){-1===t.indexOf("#")&&(t=p.toRGB(t)),e.push(o(t))}),function(t){return function(t,e){(isNaN(e)||!s(e)||e<0)&&(e=0),e>1&&(e=1);var n=t.length-1,a=Math.floor(n*e),o=n*e-a,u=t[a],c=a===n?u:t[a+1];return i([r(u,c,o,0),r(u,c,o,1),r(u,c,o,2)])}(e,t)}}};t.exports=p},function(t,e,n){var r=n(2),i={values:n(64)};t.exports={isAdjust:function(t){return this.adjustNames.indexOf(t)>=0},_getDimValues:function(t){var e={},n=[];return this.xField&&this.isAdjust("x")&&n.push(this.xField),this.yField&&this.isAdjust("y")&&n.push(this.yField),r(n,function(n){var r=i.values(t,n);r.sort(function(t,e){return t-e}),e[n]=r}),!this.yField&&this.isAdjust("y")&&(e.y=[0,1]),e},adjustData:function(t,e){var n=this,i=n._getDimValues(e);r(t,function(e,a){r(i,function(r,i){n.adjustDim(i,r,e,t.length,a)})})},getAdjustRange:function(t,e,n){var r,i,a=n.indexOf(e),o=n.length;return!this.yField&&this.isAdjust("y")?(r=0,i=1):o>1?(r=0===a?n[0]:n[a-1],i=a===o-1?n[o-1]:n[a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==o-1?i-=(i-e)/2:i+=(e-n[o-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},groupData:function(t,e){var n={};return r(t,function(t){var r=t[e];void 0===r&&(r=t[e]=0),n[r]||(n[r]=[]),n[r].push(t)}),n}}},function(t,e,n){var r={default:n(152),dark:n(304)};t.exports=r},function(t,e){var n,r,i='"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"',a={defaultColor:"#1890FF",plotCfg:{padding:[20,20,95,80]},fontFamily:i,defaultLegendPosition:"bottom",colors:["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],colors_16:["#1890FF","#41D9C7","#2FC25B","#FACC14","#E6965C","#223273","#7564CC","#8543E0","#5C8EE6","#13C2C2","#5CA3E6","#3436C7","#B381E6","#F04864","#D598D9"],colors_24:["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],colors_pie:["#1890FF","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0","#3436C7","#223273"],colors_pie_16:["#1890FF","#73C9E6","#13C2C2","#6CD9B3","#2FC25B","#9DD96C","#FACC14","#E6965C","#F04864","#D66BCA","#8543E0","#8E77ED","#3436C7","#737EE6","#223273","#7EA2E6"],shapes:{point:["hollowCircle","hollowSquare","hollowDiamond","hollowBowtie","hollowTriangle","hollowHexagon","cross","tick","plus","hyphen","line"],line:["line","dash","dot"],area:["area"]},sizes:[1,10],opacities:[.1,.9],axis:{top:{position:"top",title:null,label:{offset:16,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:i},autoRotate:!0},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},bottom:{position:"bottom",title:null,label:{offset:16,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:i}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},left:{position:"left",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:i}},line:null,tickLine:null,grid:{zIndex:-1,lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},right:{position:"right",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:i}},line:null,tickLine:null,grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},circle:{zIndex:1,title:null,label:{offset:8,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,fontFamily:i}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},radius:{zIndex:0,label:{offset:12,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",lineHeight:16,fontFamily:i}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},type:"circle"}},helix:{grid:null,label:null,title:null,line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,length:4,stroke:"#BFBFBF",alignWithLabel:!0}}},label:{offset:20,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",fontFamily:i}},treemapLabels:{offset:10,textStyle:{fill:"#fff",fontSize:12,textBaseline:"top",fontStyle:"bold",fontFamily:i}},innerLabels:{textStyle:{fill:"#fff",fontSize:12,textBaseline:"middle",fontFamily:i}},thetaLabels:{labelHeight:14,offset:30},legend:{right:{position:"right",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,legendStyle:{LIST_CLASS:{textAlign:"left"}},textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:0,fontFamily:i},unCheckColor:"#bfbfbf"},left:{position:"left",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:i},unCheckColor:"#bfbfbf"},top:{position:"top",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:i},unCheckColor:"#bfbfbf"},bottom:{position:"bottom",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:i},unCheckColor:"#bfbfbf"},html:(n={},n["g2-legend"]={height:"auto",width:"auto",position:"absolute",overflow:"auto",fontSize:"12px",fontFamily:i,lineHeight:"20px",color:"#8C8C8C"},n["g2-legend-title"]={marginBottom:"4px"},n["g2-legend-list"]={listStyleType:"none",margin:0,padding:0},n["g2-legend-list-item"]={cursor:"pointer",marginBottom:"5px",marginRight:"24px"},n["g2-legend-marker"]={width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"8px",verticalAlign:"middle"},n),gradient:{textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"center",textBaseline:"middle",lineHeight:20,fontFamily:i},lineStyle:{lineWidth:1,stroke:"#fff"},unCheckColor:"#bfbfbf"},margin:[0,5,24,5],legendMargin:24},tooltip:(r={useHtml:!0,crosshairs:!1,offset:15},r["g2-tooltip"]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:i,lineHeight:"20px",padding:"10px 10px 6px 10px"},r["g2-tooltip-title"]={marginBottom:"4px"},r["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},r["g2-tooltip-list-item"]={marginBottom:"4px"},r["g2-tooltip-marker"]={width:"5px",height:"5px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},r),tooltipMarker:{symbol:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffSetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,radius:4},tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#CCD6EC",opacity:.3}},tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1}},shape:{point:{lineWidth:1,fill:"#1890FF",radius:4},hollowPoint:{fill:"#fff",lineWidth:1,stroke:"#1890FF",radius:3},interval:{lineWidth:0,fill:"#1890FF",fillOpacity:.85},hollowInterval:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},area:{lineWidth:0,fill:"#1890FF",fillOpacity:.6},polygon:{lineWidth:0,fill:"#1890FF",fillOpacity:1},hollowPolygon:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},hollowArea:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},line:{stroke:"#1890FF",lineWidth:2,fill:null},edge:{stroke:"#1890FF",lineWidth:1,fill:null},schema:{stroke:"#1890FF",lineWidth:1,fill:null}},guide:{line:{lineStyle:{stroke:"rgba(0, 0, 0, .65)",lineDash:[2,2],lineWidth:1},text:{position:"start",autoRotate:!0,style:{fill:"rgba(0, 0, 0, .45)",fontSize:12,textAlign:"start",fontFamily:i,textBaseline:"bottom"}}},text:{style:{fill:"rgba(0,0,0,.5)",fontSize:12,textBaseline:"middle",textAlign:"start",fontFamily:i}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}},html:{alignX:"middle",alignY:"middle"},dataRegion:{style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}},dataMarker:{top:!0,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"rgba(0, 0, 0, .65)",opacity:1,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0}},pixelRatio:null};t.exports=a},function(t,e,n){var r=n(25).Group,i=n(3),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{zIndex:1,type:"line",lineStyle:null,items:null,alternateColor:null,matrix:null,hideFirstLine:!1,hideLastLine:!1,hightLightZero:!1,zeroLineStyle:{stroke:"#595959",lineDash:[0,0]}}},n._renderUI=function(){t.prototype._renderUI.call(this),this._drawLines()},n._drawLines=function(){var t=this.get("lineStyle"),e=this.get("items");e&&e.length&&(this._precessItems(e),this._drawGridLines(e,t))},n._precessItems=function(t){var e,n=this;i.each(t,function(t,r){e&&n.get("alternateColor")&&n._drawAlternativeBg(t,e,r),e=t})},n._drawGridLines=function(t,e){var n,r,a,o,s=this,u=this.get("type"),c=t.length;i.each(t,"line"===u||"polygon"===u?function(t,l){s.get("hideFirstLine")&&0===l||s.get("hideLastLine")&&l===c-1||(o=t.points,r=[],"line"===u?(r.push(["M",o[0].x,o[0].y]),r.push(["L",o[o.length-1].x,o[o.length-1].y])):i.each(o,function(t,e){r.push(0===e?["M",t.x,t.y]:["L",t.x,t.y])}),a=s._drawZeroLine(u,l)?i.mix({},s.get("zeroLineStyle"),{path:r}):i.mix({},e,{path:r}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))}:function(t,u){s.get("hideFirstLine")&&0===u||s.get("hideLastLine")&&u===c-1||(r=[],i.each(o=t.points,function(t,e){var n=t.radius;r.push(0===e?["M",t.x,t.y]:["A",n,n,0,0,t.flag,t.x,t.y])}),a=i.mix({},e,{path:r}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))})},n._drawZeroLine=function(t,e){var n=this.get("tickValues");return!("line"!==t||!n||0!==n[e]||!this.get("hightLightZero"))},n._drawAlternativeBg=function(t,e,n){var r,a,o,s=this.get("alternateColor");i.isString(s)?a=s:i.isArray(s)&&(a=s[0],o=s[1]),n%2==0?o&&(r=this._getBackItem(e.points,t.points,o)):a&&(r=this._getBackItem(e.points,t.points,a));var u=this.addShape("Path",{attrs:r});u.name="axis-grid-rect",u._id=t._id&&t._id.replace("grid","grid-rect"),u.set("coord",this.get("coord")),this.get("appendInfo")&&u.setSilent("appendInfo",this.get("appendInfo"))},n._getBackItem=function(t,e,n){var r=[],a=this.get("type");if("line"===a)r.push(["M",t[0].x,t[0].y]),r.push(["L",t[t.length-1].x,t[t.length-1].y]),r.push(["L",e[e.length-1].x,e[e.length-1].y]),r.push(["L",e[0].x,e[0].y]),r.push(["Z"]);else if("polygon"===a){i.each(t,function(t,e){r.push(0===e?["M",t.x,t.y]:["L",t.x,t.y])});for(var o=e.length-1;o>=0;o--)r.push(["L",e[o].x,e[o].y]);r.push(["Z"])}else{var s=t[0].flag;i.each(t,function(t,e){var n=t.radius;r.push(0===e?["M",t.x,t.y]:["A",n,n,0,0,t.flag,t.x,t.y])});for(var u=e.length-1;u>=0;u--){var c=e[u],l=c.radius;r.push(u===e.length-1?["M",c.x,c.y]:["A",l,l,0,0,1===s?0:1,c.x,c.y])}}return{fill:n,path:r}},e}(r);t.exports=a},function(t,e,n){var r=n(3),i=r.DomUtil,a=n(32),o={scatter:n(307),map:n(308),treemap:n(309)},s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"label",type:"default",textStyle:null,formatter:null,items:null,useHtml:!1,containerTpl:'<div class="g-labels" style="position:absolute;top:0;left:0;"></div>',itemTpl:'<div class="g-label" style="position:absolute;">{text}</div>',labelLine:!1,lineGroup:null,shapes:null,config:!0,capture:!0})},n.clear=function(){var e=this.get("group"),n=this.get("container");e&&!e.get("destroyed")&&e.clear(),n&&(n.innerHTML=""),t.prototype.clear.call(this)},n.destroy=function(){var t=this.get("group"),e=this.get("container");t.destroy||t.destroy(),e&&(e.innerHTML="")},n.render=function(){this.clear(),this._init(),this.beforeDraw(),this.draw(),this.afterDraw()},n._dryDraw=function(){var t=this,e=t.get("items"),n=t.getLabels(),i=n.length;r.each(e,function(e,r){if(r<i)t.changeLabel(n[r],e);else{var a=t._addLabel(e,r);a&&(a._id=e._id,a.set("coord",e.coord))}});for(var a=i-1;a>=e.length;a--)n[a].remove();t._adjustLabels(),!t.get("labelLine")&&t.get("config")||t.drawLines()},n.draw=function(){this._dryDraw(),this.get("canvas").draw()},n.changeLabel=function(t,e){if(t)if(t.tagName){var n=this._createDom(e);t.innerHTML=n.innerHTML,this._setCustomPosition(e,t)}else t._id=e._id,t.attr("text",e.text),t.attr("x")===e.x&&t.attr("y")===e.y||(t.resetMatrix(),e.textStyle.rotate&&(t.rotateAtStart(e.textStyle.rotate),delete e.textStyle.rotate),t.attr(e))},n.show=function(){var t=this.get("group"),e=this.get("container");t&&t.show(),e&&(e.style.opacity=1)},n.hide=function(){var t=this.get("group"),e=this.get("container");t&&t.hide(),e&&(e.style.opacity=0)},n.drawLines=function(){var t=this;"boolean"==typeof t.get("labelLine")&&t.set("labelLine",{});var e=t.get("lineGroup");!e||e.get("destroyed")?(e=t.get("group").addGroup({elCls:"x-line-group"}),t.set("lineGroup",e)):e.clear(),r.each(t.get("items"),function(n){t.lineToLabel(n,e)})},n.lineToLabel=function(t,e){if(this.get("config")||t.labelLine){var n=t.labelLine||this.get("labelLine"),i=void 0===t.capture?this.get("capture"):t.capture,a=n.path;if(a&&r.isFunction(n.path)&&(a=n.path(t)),!a){var o=t.start||{x:t.x-t._offset.x,y:t.y-t._offset.y};a=[["M",o.x,o.y],["L",t.x,t.y]]}var s=t.color;s||(s=t.textStyle&&t.textStyle.fill?t.textStyle.fill:"#000");var u=e.addShape("path",{attrs:r.mix({path:a,fill:null,stroke:s},n),capture:i});u.name=this.get("name"),u._id=t._id&&t._id.replace("glabel","glabelline"),u.set("coord",this.get("coord"))}},n._adjustLabels=function(){var t=this.get("type"),e=this.getLabels(),n=this.get("shapes"),r=o[t];"default"!==t&&r&&r(e,n)},n.getLabels=function(){var t=this.get("container");return t?r.toArray(t.childNodes):this.get("group").get("children")},n._addLabel=function(t,e){var n=t;return this.get("config")&&(n=this._getLabelCfg(t,e)),this._createText(n)},n._getLabelCfg=function(t,e){var n=this.get("textStyle")||{},i=this.get("formatter"),a=this.get("htmlTemplate");if(!r.isObject(t)){var o=t;(t={}).text=o}return r.isFunction(n)&&(n=n(t.text,t,e)),i&&(t.text=i(t.text,t,e)),a&&(t.useHtml=!0,r.isFunction(a)&&(t.text=a(t.text,t,e))),r.isNil(t.text)&&(t.text=""),t.text=t.text+"",r.mix({},t,{textStyle:n},{x:t.x||0,y:t.y||0})},n._init=function(){if(!this.get("group")){var t=this.get("canvas").addGroup({id:"label-group"});this.set("group",t)}},n.initHtmlContainer=function(){var t=this.get("container");if(t)r.isString(t)&&(t=document.getElementById(t))&&this.set("container",t);else{var e=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;t=i.createDom(e),n.style.position="relative",n.appendChild(t),this.set("container",t)}return t},n._createText=function(t){var e,n=r.deepMix({},t),i=this.get("container"),a=void 0===n.capture?this.get("capture"):n.capture;if(!n.useHtml&&!n.htmlTemplate){var o=this.get("name"),s=n.point,u=this.get("group");delete n.point;var c=n.rotate;return n.textStyle&&(n.textStyle.rotate&&(c=n.textStyle.rotate,delete n.textStyle.rotate),n=r.mix({x:n.x,y:n.y,textAlign:n.textAlign,text:n.text},n.textStyle)),e=u.addShape("text",{attrs:n,capture:a}),c&&(Math.abs(c)>2*Math.PI&&(c=c/180*Math.PI),e.transform([["t",-n.x,-n.y],["r",c],["t",n.x,n.y]])),e.setSilent("origin",s||n),e.name=o,this.get("appendInfo")&&e.setSilent("appendInfo",this.get("appendInfo")),e}i||(i=this.initHtmlContainer());var l=this._createDom(n);i.appendChild(l),this._setCustomPosition(n,l)},n._createDom=function(t){var e=this.get("itemTpl"),n=r.substitute(e,{text:t.text});return i.createDom(n)},n._setCustomPosition=function(t,e){var n=t.textAlign||"left",r=t.y,a=t.x,o=i.getOuterWidth(e);r-=i.getOuterHeight(e)/2,"center"===n?a-=o/2:"right"===n&&(a-=o),e.style.top=parseInt(r,10)+"px",e.style.left=parseInt(a,10)+"px"},e}(a);t.exports=s},function(t,e){var n=function(){function t(){this.bitmap=[]}var e=t.prototype;return e.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.floor(t.minX),i=Math.ceil(t.maxX),a=Math.floor(t.minY),o=Math.ceil(t.maxY)-1,s=r;s<i;s++)if(n[s]){if(s===r||s===i-1){for(var u=a;u<=o;u++)if(n[s][u]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]=[];return e},e.fillGap=function(t){for(var e=this.bitmap,n=Math.floor(t.minX),r=Math.ceil(t.maxX)-1,i=Math.floor(t.minY),a=Math.ceil(t.maxY)-1,o=n;o<=r;o++){for(var s=i;s<a;s+=8)e[o]||(e[o]=[]),e[o][s]=!0;e[o][a]=!0}for(var u=i;u<=a;u++)e[n][u]=!0,e[r][u]=!0},t}();t.exports=n},function(t,e,n){var r=n(3);t.exports={getFirstScale:function(t){var e;return r.each(t,function(t){if(t)return e=t,!1}),e}}},function(t,e,n){function r(t,e){var n=null,r=e instanceof c||"legendGroup"===e.name?e.get("value"):e;return a.each(t,function(t){if(t.value===r)return n=t,!1}),n}function i(t,e){return t.findBy(function(t){return t.name===e})}var a=n(3),o=n(158),s=n(14).FONT_FAMILY,u=a.Event,c=a.Group,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"category-legend",items:null,itemGap:5,itemMarginBottom:8,itemsGroup:null,layout:"horizontal",allowAllCanceled:!1,backPadding:[0,0,0,0],unCheckColor:"#ccc",background:{fill:"#fff",fillOpacity:0},itemWidth:null,textStyle:{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:s},_wordSpaceing:8,clickable:!0,selectedMode:"multiple",reversed:!1,autoWrap:!0,highlight:!1,activeOpacity:.7,inactiveOpacity:1})},n.render=function(){t.prototype.render.call(this),this._renderItems(),this.get("autoWrap")&&this._adjustItems()},n._bindEvents=function(){this.get("hoverable")&&(this.get("group").on("mousemove",a.wrapBehavior(this,"_onMousemove")),this.get("group").on("mouseleave",a.wrapBehavior(this,"_onMouseleave"))),this.get("clickable")&&this.get("group").on("click",a.wrapBehavior(this,"_onClick"))},n._getLegendItem=function(t){var e=t.get("parent");return e&&"legendGroup"===e.name?e:null},n.activate=function(t){var e=this,n=this,r=void 0;n.get("itemsGroup").get("children").forEach(function(a){if(r=i(a,"legend-marker")){var o=a.get("checked");e.get("highlight")?a.get("value")===t&&o?r.attr("stroke","#333"):r.attr("stroke",null):a.get("value")===t&&r.attr("fillOpacity",n.get("activeOpacity"))}}),this.get("canvas").draw()},n.deactivate=function(){var t=this,e=this,n=e.get("itemsGroup").get("children"),r=void 0,a=this.get("unCheckColor");n.forEach(function(n){if(r=i(n,"legend-marker"))if(t.get("highlight")){var o=r.get("oriStroke"),s=n.get("checked");r.attr("stroke",o=o&&!s?a:"")}else r.attr("fillOpacity",e.get("inactiveOpacity"))}),this.get("canvas").draw()},n._onMousemove=function(t){var e=this._getLegendItem(t.currentTarget);if(e&&e.get("checked")){var n=this.get("items"),i=new u("itemhover",t,!0,!0);i.item=r(n,e),i.checked=e.get("checked"),i.currentTarget=t.currentTarget,this.deactivate(),this.activate(e.get("value")),this.emit("itemhover",i)}else this.deactivate(),this.emit("itemunhover",t);this.get("canvas").draw()},n._onMouseleave=function(t){this.deactivate(),this.get("canvas").draw(),this.emit("itemunhover",t)},n._onClick=function(t){var e=this._getLegendItem(t.currentTarget),n=this.get("items");if(e&&!e.get("destroyed")){var o=e.get("checked"),s=this.get("selectedMode"),c=r(n,e),l=new u("itemclick",t,!0,!0);if(l.item=c,l.currentTarget=e,l.appendInfo=t.currentTarget.get("appendInfo"),l.checked="single"===s||!o,!this.get("allowAllCanceled")&&o&&1===this.getCheckedCount())return void this.emit("clicklastitem",l);var f=this.get("unCheckColor"),h=this.get("textStyle").fill,p=void 0,d=void 0,g=void 0;if("single"===s){var v=this.get("itemsGroup").get("children");a.each(v,function(t){p=i(t,"legend-marker"),d=i(t,"legend-text"),g=i(t,"legend-item"),t!==e?(p.attr("fill")&&p.attr("fill",f),p.attr("stroke")&&p.attr("stroke",f),d.attr("fill",f),p.setSilent("checked",!1),d.setSilent("checked",!1),g.setSilent("checked",!1),t.setSilent("checked",!1)):(p.attr("fill")&&c&&c.marker&&p.attr("fill",c.marker.fill),p.attr("stroke")&&c&&c.marker&&p.attr("stroke",c.marker.stroke),d.attr("fill",h),p.setSilent("checked",!0),d.setSilent("checked",!0),g.setSilent("checked",!0),t.setSilent("checked",!0))})}else p=i(e,"legend-marker"),d=i(e,"legend-text"),g=i(e,"legend-item"),p.attr("fill")&&c&&c.marker&&p.attr("fill",o?f:c.marker.fill),p.attr("stroke")&&c&&c.marker&&p.attr("stroke",o?f:c.marker.stroke),d.attr("fill",o?f:h),e.setSilent("checked",!o),p.setSilent("checked",!o),d.setSilent("checked",!o),g.setSilent("checked",!o);this.emit("itemclick",l)}this.get("canvas").draw()},n._renderItems=function(){var t=this,e=this.get("items");if(this.get("reversed")&&e.reverse(),a.each(e,function(e,n){t._addItem(e,n)}),this.get("highlight")){var n=void 0;this.get("itemsGroup").get("children").forEach(function(t){(n=i(t,"legend-marker")).get("oriStroke")||(n.attr("stroke")?n.set("oriStroke",n.attr("stroke")):n.set("oriStroke",""))})}},n._formatItemValue=function(t){var e=this.get("formatter")||this.get("itemFormatter");return e&&(t=e.call(this,t)),t},n._getNextX=function(){var t=this.get("layout"),e=this.get("itemGap"),n=this.get("itemsGroup"),r=this.get("itemWidth"),i=n.get("children"),o=0;return"horizontal"===t&&a.each(i,function(t){o+=(r||t.getBBox().width)+e}),o},n._getNextY=function(){var t=this.get("itemMarginBottom"),e=this.get("titleShape")?this.get("titleGap"):0,n=this.get("layout"),r=this.get("itemsGroup"),i=this.get("titleShape"),o=r.get("children"),s=e;return i&&(s+=i.getBBox().height),"vertical"===n&&a.each(o,function(e){s+=e.getBBox().height+t}),s},n._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),r=this._getNextY(),i=this.get("unCheckColor"),o=e.addGroup({x:n,y:r,value:t.value,checked:t.checked});o.set("viewId",this.get("viewId"));var u=this.get("textStyle"),c=this.get("_wordSpaceing"),l=0;if(t.marker){var f=a.mix({},t.marker,{x:t.marker.radius+n,y:r});t.checked||(f.fill&&(f.fill=i),f.stroke&&(f.stroke=i));var h=o.addShape("marker",{type:"marker",attrs:f});h.attr("cursor","pointer"),h.name="legend-marker",l+=h.getBBox().width+c}var p=a.mix({},{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:s},u,{x:l+n,y:r,text:this._formatItemValue(t.value)});t.checked||a.mix(p,{fill:i});var d=o.addShape("text",{attrs:p});d.attr("cursor","pointer"),d.name="legend-text",this.get("appendInfo")&&d.setSilent("appendInfo",this.get("appendInfo"));var g=o.getBBox(),v=this.get("itemWidth"),y=o.addShape("rect",{attrs:{x:n,y:r-g.height/2,fill:"#fff",fillOpacity:0,width:v||g.width,height:g.height}});return y.attr("cursor","pointer"),y.setSilent("origin",t),y.name="legend-item",this.get("appendInfo")&&y.setSilent("appendInfo",this.get("appendInfo")),o.name="legendGroup",o},n._adjustHorizontal=function(){var t=this.get("itemsGroup"),e=t.get("children"),n=this.get("maxLength"),r=this.get("itemGap"),i=this.get("itemMarginBottom"),o=this.get("titleShape")?this.get("titleGap"):0,s=0,u=0,c=void 0,l=void 0,f=this.get("itemWidth");t.getBBox().width>n&&a.each(e,function(t){l=t.getBBox(),n-u<(c=f||l.width)&&(s++,u=0),t.move(u,s*(l.height+i)+o),u+=c+r})},n._adjustVertical=function(){var t=this.get("itemsGroup"),e=this.get("titleShape"),n=t.get("children"),r=this.get("maxLength"),i=this.get("itemGap"),o=this.get("itemMarginBottom"),s=this.get("titleGap"),u=e?e.getBBox().height+s:0,c=this.get("itemWidth"),l=u,f=void 0,h=void 0,p=void 0,d=0,g=0;t.getBBox().height>r&&a.each(n,function(t){p=t.getBBox(),f=p.width,h=p.height,c?d=c+i:f>d&&(d=f+i),r-l<h?(l=u,t.move(g+=d,u)):t.move(g,l),l+=h+o})},n._adjustItems=function(){"horizontal"===this.get("layout")?this._adjustHorizontal():this._adjustVertical()},n.getWidth=function(){return t.prototype.getWidth.call(this)},n.getHeight=function(){return t.prototype.getHeight.call(this)},n.move=function(e,n){t.prototype.move.call(this,e,n)},e}(o);t.exports=l},function(t,e,n){var r=n(3),i=n(32),a=n(14).FONT_FAMILY,o=function(t){function e(e){var n;return(n=t.call(this,e)||this)._init(),n.beforeRender(),n.render(),n._adjustPositionOffset(),n._bindEvents(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{container:null,title:null,formatter:null,hoverable:!0,titleGap:15,position:[0,0],offset:[0,0],offsetX:null,offsetY:null}},n._init=function(){var t=this.get("group"),e=this.get("container");this.set("canvas",e.get("canvas"));var n=this.get("position");t||(t=e.addGroup({x:0-n[0],y:0-n[1]})),this.set("group",t)},n._adjustPositionOffset=function(){var t=this.get("position"),e=this.get("offset"),n=this.get("offsetX"),i=this.get("offsetY");r.isArray(e)||(e="vertical"===this.get("layout")?[e,0]:[0,e]),n&&(e[0]=n),i&&(e[1]=i);var a=this.get("group").getBBox();this.move(-a.minX+t[0]+e[0],-a.minY+t[1]+e[1])},n.beforeRender=function(){var t=this.get("group").addGroup();this.set("itemsGroup",t)},n.render=function(){this._renderTitle()},n._renderTitle=function(){var t=this.get("title"),e=this.get("titleGap");if(e=e||0,t&&t.text){var n=this.get("group").addShape("text",{attrs:r.mix({x:0,y:0-e,fill:"#333",textBaseline:"middle",fontFamily:a},t)});n.name="legend-title",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("titleShape",n)}},n.getCheckedCount=function(){var t=this.get("itemsGroup").get("children");return r.filter(t,function(t){return t.get("checked")}).length},n.setItems=function(t){this.set("items",t),this.clear(),this.render()},n.addItem=function(t){this.get("items").push(t),this.clear(),this.render()},n.clear=function(){this.get("itemsGroup").clear(),this.get("group").clear(),this.beforeRender()},n.destroy=function(){this.get("group").destroy(),this._attrs={},this.removeAllListeners(),this.destroyed=!0},n.getWidth=function(){return this.get("group").getBBox().width},n.getHeight=function(){return this.get("group").getBBox().height},n.move=function(t,e){this.get("group").move(t,e)},n.draw=function(){this.get("canvas").draw()},e}(i);t.exports=o},function(t,e,n){function r(t,e){return t.getElementsByClassName(e)[0]}function i(t,e){var n=t.className;return o.isNil(n)?t:(n=n.split(" ")).indexOf(e)>-1?t:t.parentNode?t.parentNode.className===f?t.parentNode:i(t.parentNode,e):null}function a(t,e){var n=null,r=e instanceof l?e.get("value"):e;return o.each(t,function(t){if(t.value===r)return n=t,!1}),n}var o=n(3),s=n(157),u=n(14).FONT_FAMILY,c=o.DomUtil,l=o.Group,f="g2-legend",h="g2-legend-list",p="g2-legend-list-item",d="g2-legend-marker",g=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:"category-legend",container:null,containerTpl:'<div class="'+f+'"><h4 class="g2-legend-title"></h4><ul class="'+h+'"></ul></div>',itemTpl:'<li class="'+p+' item-{index} {checked}" data-color="{originColor}" data-value="{originValue}"><i class="'+d+'" style="background-color:{color};"></i><span class="g2-legend-text">{value}</span></li>',legendStyle:{},textStyle:{fill:"#333",fontSize:12,textAlign:"middle",textBaseline:"top",fontFamily:u},abridgeText:!1,tipTpl:'<div class="textTip"></div>',tipStyle:{display:"none",fontSize:"12px",backgroundColor:"#fff",position:"absolute",width:"auto",height:"auto",padding:"3px",boxShadow:"2px 2px 5px #888"},autoPosition:!0})},n._init=function(){},n.beforeRender=function(){},n.render=function(){this._renderHTML()},n._bindEvents=function(){var t=this,e=r(this.get("legendWrapper"),h);this.get("hoverable")&&(e.onmousemove=function(e){return t._onMousemove(e)},e.onmouseout=function(e){return t._onMouseleave(e)}),this.get("clickable")&&(e.onclick=function(e){return t._onClick(e)})},n._onMousemove=function(t){var e=this.get("items"),n=t.target,r=n.className;if(!((r=r.split(" ")).indexOf(f)>-1||r.indexOf(h)>-1)){var o=i(n,p),s=a(e,o.getAttribute("data-value"));s?(this.deactivate(),this.activate(o.getAttribute("data-value")),this.emit("itemhover",{item:s,currentTarget:o,checked:s.checked})):s||(this.deactivate(),this.emit("itemunhover",t))}},n._onMouseleave=function(t){this.deactivate(),this.emit("itemunhover",t)},n._onClick=function(t){var e=this,n=r(this.get("legendWrapper"),h),s=this.get("unCheckColor"),u=this.get("items"),c=this.get("selectedMode"),l=n.childNodes,g=t.target,v=g.className;if(!((v=v.split(" ")).indexOf(f)>-1||v.indexOf(h)>-1)){var y=i(g,p),m=r(y,"g2-legend-text"),x=r(y,d),b=a(u,y.getAttribute("data-value"));if(b){var _=y.className,w=y.getAttribute("data-color");if("single"===c)b.checked=!0,o.each(l,function(t){t!==y?(r(t,d).style.backgroundColor=s,t.className=t.className.replace("checked","unChecked"),t.style.color=s,a(u,t.getAttribute("data-value")).checked=!1):(m&&(m.style.color=e.get("textStyle").fill),x&&(x.style.backgroundColor=w),y.className=_.replace("unChecked","checked"))});else{var O=-1!==_.indexOf("checked"),j=0;if(o.each(l,function(t){-1!==t.className.indexOf("checked")&&j++}),!this.get("allowAllCanceled")&&O&&1===j)return void this.emit("clicklastitem",{item:b,currentTarget:y,checked:"single"===c||b.checked});b.checked=!b.checked,O?(x&&(x.style.backgroundColor=s),y.className=_.replace("checked","unChecked"),y.style.color=s):(x&&(x.style.backgroundColor=w),y.className=_.replace("unChecked","checked"),y.style.color=this.get("textStyle").fill)}this.emit("itemclick",{item:b,currentTarget:y,checked:"single"===c||b.checked})}}},n.activate=function(t){var e=this,n=this,i=n.get("items"),o=a(i,t);r(n.get("legendWrapper"),h).childNodes.forEach(function(t){var s=r(t,d),u=a(i,t.getAttribute("data-value"));if(e.get("highlight")){if(u===o&&u.checked)return void(s.style.border="1px solid #333")}else u===o?s.style.opacity=n.get("activeOpacity"):u.checked&&(s.style.opacity=n.get("inactiveOpacity"))})},n.deactivate=function(){var t=this,e=this;r(e.get("legendWrapper"),h).childNodes.forEach(function(n){var i=r(n,d);t.get("highlight")?i.style.border="1px solid #fff":i.style.opacity=e.get("inactiveOpacity")})},n._renderHTML=function(){var t=this,e=this.get("container"),n=this.get("title"),i=this.get("containerTpl"),a=c.createDom(i),s=r(a,"g2-legend-title"),l=r(a,h),g=this.get("unCheckColor"),v=o.deepMix({},{CONTAINER_CLASS:{height:"auto",width:"auto",position:"absolute",overflowY:"auto",fontSize:"12px",fontFamily:u,lineHeight:"20px",color:"#8C8C8C"},TITLE_CLASS:{marginBottom:this.get("titleGap")+"px",fontSize:"12px",color:"#333",textBaseline:"middle",fontFamily:u},LIST_CLASS:{listStyleType:"none",margin:0,padding:0,textAlign:"center"},LIST_ITEM_CLASS:{cursor:"pointer",marginBottom:"5px",marginRight:"24px"},MARKER_CLASS:{width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"4px",verticalAlign:"middle"}},this.get("legendStyle"));if(/^\#/.test(e)||"string"==typeof e&&e.constructor===String){var y=e.replace("#","");(e=document.getElementById(y)).appendChild(a)}else{var m,x=this.get("position");m="left"===x||"right"===x?{maxHeight:(this.get("maxLength")||e.offsetHeight)+"px"}:{maxWidth:(this.get("maxLength")||e.offsetWidth)+"px"},c.modifyCSS(a,o.mix({},v.CONTAINER_CLASS,m,this.get(f))),e.appendChild(a)}c.modifyCSS(l,o.mix({},v.LIST_CLASS,this.get(h))),s&&(n&&n.text?(s.innerHTML=n.text,c.modifyCSS(s,o.mix({},v.TITLE_CLASS,this.get("g2-legend-title"),n))):a.removeChild(s));var b=this.get("items"),_=this.get("itemTpl"),w=this.get("position"),O=this.get("layout"),j=o.mix({},v.LIST_ITEM_CLASS,{display:"right"===w||"left"===w||"vertical"===O?"block":"inline-block"},this.get(p)),S=o.mix({},v.MARKER_CLASS,this.get(d));if(o.each(b,function(e,n){var i,s=e.checked,u=t._formatItemValue(e.value),f=e.marker.fill||e.marker.stroke,h=s?f:g;i=o.isFunction(_)?_(u,h,s,n):_;var p=o.substitute(i,o.mix({},e,{index:n,checked:s?"checked":"unChecked",value:u,color:h,originColor:f,originValue:e.value.replace(/\"/g,"&quot;")})),v=c.createDom(p);v.style.color=t.get("textStyle").fill;var y=r(v,d),m=r(v,"g2-legend-text");if(c.modifyCSS(v,j),y&&c.modifyCSS(y,S),s||(v.style.color=g,y&&(y.style.backgroundColor=g)),l.appendChild(v),t.get("abridgeText")){var x=u,b=v.offsetWidth,w=t.get("textStyle").fontSize;isNaN(w)&&(-1!==w.indexOf("pt")?w=1*parseFloat(w.substr(0,w.length-2))/72*96:-1!==w.indexOf("px")&&(w=parseFloat(w.substr(0,w.length-2))));var O=w*x.length,M=Math.floor(b/w);b<2*w?x="":b<O&&M>1&&(x=x.substr(0,M-1)+"..."),m.innerText=x,v.addEventListener("mouseover",function(){var t=r(a.parentNode,"textTip");t.style.display="block",t.style.left=v.offsetLeft+v.offsetWidth+"px",t.style.top=v.offsetTop+15+"px",t.innerText=u}),v.addEventListener("mouseout",function(){r(a.parentNode,"textTip").style.display="none"})}}),this.get("abridgeText")){var M=this.get("tipTpl"),E=c.createDom(M),P=this.get("tipStyle");c.modifyCSS(E,P),a.parentNode.appendChild(E),E.addEventListener("mouseover",function(){E.style.display="none"})}this.set("legendWrapper",a)},n._adjustPositionOffset=function(){if(!1!==this.get("autoPosition")){var t=this.get("position"),e=this.get("offset"),n=this.get("offsetX"),r=this.get("offsetY");n&&(e[0]=n),r&&(e[1]=r);var i=this.get("legendWrapper");i.style.left=t[0]+"px",i.style.top=t[1]+"px",i.style.marginLeft=e[0]+"px",i.style.marginTop=e[1]+"px"}},n.getWidth=function(){return c.getOuterWidth(this.get("legendWrapper"))},n.getHeight=function(){return c.getOuterHeight(this.get("legendWrapper"))},n.move=function(e,n){/^\#/.test(this.get("container"))?t.prototype.move.call(this,e,n):(c.modifyCSS(this.get("legendWrapper"),{left:e+"px",top:n+"px"}),this.set("x",e),this.set("y",n))},n.destroy=function(){var t=this.get("legendWrapper");t&&t.parentNode&&t.parentNode.removeChild(t)},e}(s);t.exports=g},function(t,e,n){var r=n(32),i=n(3),a=function(t){function e(e){var n;return(n=t.call(this,e)||this)._init_(),n.render(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:null,plot:null,plotRange:null,rectStyle:{fill:"#CCD6EC",opacity:.3},lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},isTransposed:!1})},n._init_=function(){var t,e=this.get("plot");t="rect"===this.type?e.addGroup({zIndex:0}):e.addGroup(),this.set("container",t)},n._addLineShape=function(t,e){var n=this.get("container").addShape("line",{capture:!1,attrs:t});return this.set("crossLineShape"+e,n),n},n._renderHorizontalLine=function(t,e){var n=i.mix(this.get("lineStyle"),this.get("style")),r=i.mix({x1:e?e.bl.x:t.get("width"),y1:0,x2:e?e.br.x:0,y2:0},n);this._addLineShape(r,"X")},n._renderVerticalLine=function(t,e){var n=i.mix(this.get("lineStyle"),this.get("style")),r=i.mix({x1:0,y1:e?e.bl.y:t.get("height"),x2:0,y2:e?e.tl.y:0},n);this._addLineShape(r,"Y")},n._renderBackground=function(t,e){var n=i.mix(this.get("rectStyle"),this.get("style")),r=this.get("container"),a=i.mix({x:e?e.tl.x:0,y:e?e.tl.y:t.get("height"),width:e?e.br.x-e.bl.x:t.get("width"),height:e?Math.abs(e.tl.y-e.bl.y):t.get("height")},n),o=r.addShape("rect",{attrs:a,capture:!1});return this.set("crosshairsRectShape",o),o},n._updateRectShape=function(t){var e,n=this.get("crosshairsRectShape"),r=this.get("isTransposed"),a=t[0],o=t[t.length-1],s=r?"y":"x",u=r?"height":"width",c=a[s];if(t.length>1&&a[s]>o[s]&&(c=o[s]),this.get("width"))n.attr(s,c-this.get("crosshairs").width/2),n.attr(u,this.get("width"));else if(i.isArray(a.point[s])&&!a.size){var l=a.point[s][1]-a.point[s][0];n.attr(s,a.point[s][0]),n.attr(u,l)}else n.attr(s,c-(e=3*a.size/4)),n.attr(u,1===t.length?3*a.size/2:Math.abs(o[s]-a[s])+2*e)},n.render=function(){var t=this.get("canvas"),e=this.get("plotRange"),n=this.get("isTransposed");switch(this.clear(),this.get("type")){case"x":this._renderHorizontalLine(t,e);break;case"y":this._renderVerticalLine(t,e);break;case"cross":this._renderHorizontalLine(t,e),this._renderVerticalLine(t,e);break;case"rect":this._renderBackground(t,e);break;default:n?this._renderHorizontalLine(t,e):this._renderVerticalLine(t,e)}},n.show=function(){var e=this.get("container");t.prototype.show.call(this),e.show()},n.hide=function(){var e=this.get("container");t.prototype.hide.call(this),e.hide()},n.clear=function(){var e=this.get("container");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),this.set("crosshairsRectShape",null),t.prototype.clear.call(this),e.clear()},n.destroy=function(){var e=this.get("container");t.prototype.destroy.call(this),e.remove()},n.setPosition=function(t,e,n){var r=this.get("crossLineShapeX"),i=this.get("crossLineShapeY"),a=this.get("crosshairsRectShape");i&&!i.get("destroyed")&&i.move(t,0),r&&!r.get("destroyed")&&r.move(0,e),a&&!a.get("destroyed")&&this._updateRectShape(n)},e}(r);t.exports=a},function(t,e){t.exports={_calcTooltipPosition:function(t,e,n,r,i,a){var o=0,s=0,u=20;if(a){var c=a.getBBox();o=c.width,s=c.height,t=c.x,e=c.y,u=5}switch(n){case"inside":t=t+o/2-r/2,e=e+s/2-i/2;break;case"top":t=t+o/2-r/2,e=e-i-u;break;case"left":t=t-r-u,e=e+s/2-i/2;break;case"right":t=t+o+u,e=e+s/2-i/2;break;case"bottom":default:t=t+o/2-r/2,e=e+s+u}return[t,e]},_constraintPositionInBoundary:function(t,e,n,r,i,a){return t+n+20>i?t=(t-=n+20)<0?0:t:t+20<0?t=20:t+=20,e+r+20>a?e=(e-=r+20)<0?0:e:e+20<0?e=20:e+=20,[t,e]},_constraintPositionInPlot:function(t,e,n,r,i,a){return t+n>i.tr.x&&(t-=n+40),t<i.tl.x&&(t=i.tl.x),a||(e+r>i.bl.y&&(e-=r+40),e<i.tl.y&&(e=i.tl.y)),[t,e]}}},function(t,e,n){var r=n(3);t.exports={setMarkers:function(t,e){var n=this.get("markerGroup"),i=this.get("frontPlot");n?n.clear():(n=i.addGroup({zIndex:1,capture:!1}),this.set("markerGroup",n)),r.each(t,function(t){n.addShape("marker",{color:t.color,attrs:r.mix({fill:t.color,symbol:"circle",shadowColor:t.color},e,{x:t.x,y:t.y})})}),this.set("markerItems",t)},clearMarkers:function(){var t=this.get("markerGroup");t&&t.clear()}}},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i=n(25),a=n(160),o=n(162),s=n(161),u=n(68),c=n(3),l=n(14).FONT_FAMILY,f=c.DomUtil,h=c.MatrixUtil,p=function(t){function e(e){var n;n=t.call(this,e)||this,c.assign(r(r(n)),s),c.assign(r(r(n)),o);var i=n.get("crosshairs");if(i){var u=n.get("rect"===i.type?"backPlot":"frontPlot"),l=new a(c.mix({plot:u,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));l.hide(),n.set("crosshairGroup",l)}return n._init_(),n.get("items")&&n.render(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return c.mix({},e,{boardStyle:{x:0,y:0,width:100,height:100,fill:"rgba(255, 255, 255, 0.9)",radius:4,stroke:"#e2e2e2",lineWidth:1},titleStyle:{fontFamily:l,text:"",textBaseline:"top",fontSize:12,fill:"rgb(87, 87, 87)",lineHeight:20,padding:20},markerStyle:{radius:4},nameStyle:{fontFamily:l,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:8},valueStyle:{fontFamily:l,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:30},padding:{top:20,right:20,bottom:20,left:20},itemGap:10,animationDuration:200})},n._init_=function(){var t=this.get("padding"),e=this.get("frontPlot"),n=e.addGroup({capture:!1});this.set("markerGroup",n);var r=e.addGroup();r.hide(),this.set("container",r);var i=r.addShape("rect",{attrs:c.mix({},this.get("boardStyle"))});this.set("board",i);var a=this.get("titleStyle");if(this.get("showTitle")){var o=r.addShape("text",{attrs:c.mix({x:t.left,y:t.top},a)});this.set("titleShape",o),o.name="tooltip-title"}var s=r.addGroup();s.move(t.left,t.top+a.lineHeight+a.padding),this.set("itemsGroup",s)},n.render=function(){var t=this;t.clear();var e=t.get("container"),n=t.get("board"),r=t.get("showTitle"),i=t.get("titleContent"),a=this.get("titleShape"),o=this.get("itemsGroup"),s=t.get("items"),u=t.get("padding");if(a&&r&&a.attr("text",i),o){var l=t.get("itemGap"),f=0;c.each(s,function(e){var n=t._addItem(e);n.move(0,f),o.add(n);var r=n.getBBox().height;f+=r+l})}var h=e.getBBox(),p=h.width+u.right,d=h.height+u.bottom;n.attr("width",p),n.attr("height",d),t._alignToRight(p)},n.clear=function(){var t=this.get("titleShape"),e=this.get("itemsGroup"),n=this.get("board");t.text="",e.clear(),n.attr("width",0),n.attr("height",0)},n.show=function(){this.get("container").show();var e=this.get("crosshairGroup");e&&e.show();var n=this.get("markerGroup");n&&n.show(),t.prototype.show.call(this),this.get("canvas").draw()},n.hide=function(){this.get("container").hide();var e=this.get("crosshairGroup");e&&e.hide();var n=this.get("markerGroup");n&&n.hide(),t.prototype.hide.call(this),this.get("canvas").draw()},n.destroy=function(){var e=this.get("container"),n=this.get("crosshairGroup");n&&n.destroy();var r=this.get("markerGroup");r&&r.remove(),t.prototype.destroy.call(this),e.remove()},n.setPosition=function(e,n,r){var i,a=this.get("container"),o=this.get("canvas").get("el"),s=f.getWidth(o),u=f.getHeight(o),l=a.getBBox(),p=l.width,d=l.height,g=e,v=n;if(this.get("position")){var y=l.width,m=l.height;e=(i=this._calcTooltipPosition(e,n,this.get("position"),y,m,r))[0],n=i[1]}else e=(i=this._constraintPositionInBoundary(e,n,p,d,s,u))[0],n=i[1];if(this.get("inPlot")){var x=this.get("plotRange");e=(i=this._constraintPositionInPlot(e,n,p,d,x,this.get("enterable")))[0],n=i[1]}var b=this.get("markerItems");c.isEmpty(b)||(g=b[0].x,v=b[0].y);var _=h.transform([1,0,0,0,1,0,0,0,1],[["t",e,n]]);a.stopAnimate(),a.animate({matrix:_},this.get("animationDuration"));var w=this.get("crosshairGroup");if(w){var O=this.get("items");w.setPosition(g,v,O)}t.prototype.setPosition.call(this,e,n)},n._addItem=function(t){var e=new i.Group,n=this.get("markerStyle").radius;if(t.marker){var r=c.mix({},t.marker,{x:t.marker.radius/2,y:0});e.addShape("marker",{attrs:r}),n=t.marker.radius}var a=this.get("nameStyle");e.addShape("text",{attrs:c.mix({x:n+a.padding,y:0,text:t.name},a)});var o=this.get("valueStyle");return e.addShape("text",{attrs:c.mix({x:e.getBBox().width+o.padding,y:0,text:t.value},o)}),e},n._alignToRight=function(t){var e=this,n=this.get("itemsGroup").get("children");c.each(n,function(n){var r=n.get("children")[2],i=r.getBBox().width,a=t-i-2*e.get("padding").right;r.attr("x",a)})},e}(u);t.exports=p},function(t,e,n){var r=n(65),i=n(22),a=n(0),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getPointRauis=function(t,e){return i.getPointRadius(t,e)},n.getCirclePoint=function(t,e,n){var r=this.get("coord"),i=r.getCenter(),a=this._isEmitLabels(),o=this.getPointRauis(r,n);return 0===o?null:(r.isTransposed&&o>e&&!a?t+=2*Math.asin(e/(2*o)):o+=e,{x:i.x+o*Math.cos(t),y:i.y+o*Math.sin(t),angle:t,r:o})},n.getArcPoint=function(t,e){var n;return e=e||0,n=a.isArray(t.x)||a.isArray(t.y)?{x:a.isArray(t.x)?t.x[e]:t.x,y:a.isArray(t.y)?t.y[e]:t.y}:t,this.transLabelPoint(n),n},n.getPointAngle=function(t){var e=this.get("coord");return i.getPointAngle(e,t)},n.getMiddlePoint=function(t){var e=this.get("coord"),n=t.length,r={x:0,y:0};return a.each(t,function(t){r.x+=t.x,r.y+=t.y}),r.x/=n,r.y/=n,r=e.convert(r)},n._isToMiddle=function(t){return t.x.length>2},n.getLabelPoint=function(t,e,n){var r,i=t.text[n],a=1;this._isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.text.length&&0===n?n=1:0===n&&(a=-1),r=this.getArcPoint(e,n));var o=this.getDefaultOffset(t);o*=a;var s=this.getPointAngle(r),u=this.getCirclePoint(s,o,r);if(u?(u.text=i,u.angle=s,u.color=e.color):u={text:""},t.autoRotate||void 0===t.autoRotate){var c=u.textStyle?u.textStyle.rotate:null;c||(c=u.rotate||this.getLabelRotate(s,o,e)),u.rotate=c}return u.start={x:r.x,y:r.y},u},n._isEmitLabels=function(){return this.get("label").labelEmit},n.getLabelRotate=function(t){var e;return e=180*t/Math.PI,e+=90,this._isEmitLabels()&&(e-=90),e&&(e>90?e-=180:e<-90&&(e+=180)),e/180*Math.PI},n.getLabelAlign=function(t){var e,n=this.get("coord");if(this._isEmitLabels())e=t.angle<=Math.PI/2&&t.angle>-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=this.getDefaultOffset(t);e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e}(r);t.exports=o},function(t,e,n){t.exports={Scale:n(341),Coord:n(342),Axis:n(347),Guide:n(348),Legend:n(351),Tooltip:n(353),Event:n(354)}},function(t,e,n){function r(t,e,n){void 0===n&&(n=1);var r=[t.x,t.y,n];return a.vec3.transformMat3(r,r,e),{x:r[0],y:r[1]}}var i=n(16),a=n(0),o=n(167);t.exports=function(t,e){var n=e;return a.each(t.get("children"),function(t){if(t instanceof i.Group&&t.get("children").length||t instanceof i.Path)n=o(n,t.getBBox());else if(t instanceof i.Text){var e=function(t){var e=t.getBBox(),n={x:e.minX,y:e.minY},i={x:e.maxX,y:e.maxY},a=t.attr("matrix");return n=r(n,a),i=r(i,a),{minX:n.x,minY:n.y,maxX:i.x,maxY:i.y}}(t),s=Math.abs(e.maxX-e.minX),u=Math.abs(e.maxY-e.minY);n=o(n,a.mix(n,s<u?{minX:Math.min(n.minX,e.minX),maxX:Math.max(n.maxX,e.maxX)}:{minY:Math.min(n.minY,e.minY),maxY:Math.max(n.maxY,e.maxY)}))}}),n}},function(t,e){t.exports=function(t,e){return{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}}},function(t,e){t.exports=function(t){return{minX:t.tl.x,minY:t.tl.y,maxX:t.br.x,maxY:t.br.y}}},function(t,e,n){"use strict";function r(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function i(t){return Object(a.selection)().transition(t)}e.a=r,e.b=i,e.c=function(){return++O};var a=n(72),o=n(441),s=n(442),u=n(443),c=n(444),l=n(445),f=n(446),h=n(447),p=n(448),d=n(449),g=n(450),v=n(451),y=n(452),m=n(453),x=n(454),b=n(455),_=n(456),w=n(362),O=0,j=a.selection.prototype;r.prototype=i.prototype={constructor:r,select:g.a,selectAll:v.a,filter:f.a,merge:h.a,selection:y.a,transition:_.a,call:j.call,nodes:j.nodes,node:j.node,size:j.size,empty:j.empty,each:j.each,on:p.a,attr:o.a,attrTween:s.a,style:m.a,styleTween:x.a,text:b.a,remove:d.a,tween:w.a,delay:u.a,duration:c.a,ease:l.a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(58);n.d(e,"now",function(){return r.b}),n.d(e,"timer",function(){return r.c}),n.d(e,"timerFlush",function(){return r.d});var i=n(191);n.d(e,"timeout",function(){return i.a});var a=n(192);n.d(e,"interval",function(){return a.a})},function(t,e,n){var r=n(0),i=r.DomUtil,a=["start","process","end","reset"],o=function(){function t(t,e){var n=this,i=n.getDefaultCfg();r.assign(n,i,t),n.view=n.chart=e,n.canvas=e.get("canvas"),n._bindEvents()}var e=t.prototype;return e.getDefaultCfg=function(){return{startEvent:"mousedown",processEvent:"mousemove",endEvent:"mouseup",resetEvent:"dblclick"}},e._start=function(t){var e=this;e.preStart&&e.preStart(t),e.start(t),e.onStart&&e.onStart(t)},e._process=function(t){var e=this;e.preProcess&&e.preProcess(t),e.process(t),e.onProcess&&e.onProcess(t)},e._end=function(t){var e=this;e.preEnd&&e.preEnd(t),e.end(t),e.onEnd&&e.onEnd(t)},e._reset=function(t){var e=this;e.preReset&&e.preReset(t),e.reset(t),e.onReset&&e.onReset(t)},e.start=function(){},e.process=function(){},e.end=function(){},e.reset=function(){},e._bindEvents=function(){var t=this,e=t.canvas.get("canvasDOM");t._clearEvents(),r.each(a,function(n){var a=r.upperFirst(n);t["_on"+a+"Listener"]=i.addEventListener(e,t[n+"Event"],r.wrapBehavior(t,"_"+n))})},e._clearEvents=function(){var t=this;r.each(a,function(e){var n="_on"+r.upperFirst(e)+"Listener";t[n]&&t[n].remove()})},e.destroy=function(){this._clearEvents()},t}();t.exports=o},function(t,e,n){var r=n(74),i=n(16),a=n(126),o=n(147),s=n(7),u=n(18),c=n(0),l={version:s.version,Animate:a,Chart:o,Global:s,Scale:r,Shape:u,Util:c,G:i,DomUtil:c.DomUtil,MatrixUtil:c.MatrixUtil,PathUtil:c.PathUtil,track:function(){console.warn("G2 tracks nothing ;-)")}};"undefined"!=typeof window&&(window.G2?console.warn("There are multiple versions of G2. Version "+l.version+"'s reference is 'window.G2_3'"):window.G2=l),t.exports=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(193);n.d(e,"easeLinear",function(){return r.a});var i=n(194);n.d(e,"easeQuad",function(){return i.b}),n.d(e,"easeQuadIn",function(){return i.a}),n.d(e,"easeQuadOut",function(){return i.c}),n.d(e,"easeQuadInOut",function(){return i.b});var a=n(195);n.d(e,"easeCubic",function(){return a.b}),n.d(e,"easeCubicIn",function(){return a.a}),n.d(e,"easeCubicOut",function(){return a.c}),n.d(e,"easeCubicInOut",function(){return a.b});var o=n(196);n.d(e,"easePoly",function(){return o.b}),n.d(e,"easePolyIn",function(){return o.a}),n.d(e,"easePolyOut",function(){return o.c}),n.d(e,"easePolyInOut",function(){return o.b});var s=n(197);n.d(e,"easeSin",function(){return s.b}),n.d(e,"easeSinIn",function(){return s.a}),n.d(e,"easeSinOut",function(){return s.c}),n.d(e,"easeSinInOut",function(){return s.b});var u=n(198);n.d(e,"easeExp",function(){return u.b}),n.d(e,"easeExpIn",function(){return u.a}),n.d(e,"easeExpOut",function(){return u.c}),n.d(e,"easeExpInOut",function(){return u.b});var c=n(199);n.d(e,"easeCircle",function(){return c.b}),n.d(e,"easeCircleIn",function(){return c.a}),n.d(e,"easeCircleOut",function(){return c.c}),n.d(e,"easeCircleInOut",function(){return c.b});var l=n(200);n.d(e,"easeBounce",function(){return l.c}),n.d(e,"easeBounceIn",function(){return l.a}),n.d(e,"easeBounceOut",function(){return l.c}),n.d(e,"easeBounceInOut",function(){return l.b});var f=n(201);n.d(e,"easeBack",function(){return f.b}),n.d(e,"easeBackIn",function(){return f.a}),n.d(e,"easeBackOut",function(){return f.c}),n.d(e,"easeBackInOut",function(){return f.b});var h=n(202);n.d(e,"easeElastic",function(){return h.c}),n.d(e,"easeElasticIn",function(){return h.a}),n.d(e,"easeElasticOut",function(){return h.c}),n.d(e,"easeElasticInOut",function(){return h.b})},function(t,e,n){var r=n(5),i=n(9),a=n(76),o=[0,1,1.2,1.5,1.6,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],s=[0,1,2,4,5,10];t.exports=function(t){var e=t.min,n=t.max,u=t.interval,c=t.minTickInterval,l=[],f=t.minCount||5,h=t.maxCount||7,p=f===h,d=r(t.minLimit)?-1/0:t.minLimit,g=r(t.maxLimit)?1/0:t.maxLimit,v=(f+h)/2,y=v,m=t.snapArray?t.snapArray:p?o:s;if(e===d&&n===g&&p&&(u=(n-e)/(y-1)),r(e)&&(e=0),r(n)&&(n=0),n===e&&(0===e?n=1:e>0?e=0:n=0,n-e<5&&!u&&n-e>=1&&(u=1)),r(u)&&(u=a.snapFactorTo((n-e)/(v-1),m,"ceil"),h!==f&&((y=parseInt((n-e)/u,10))>h&&(y=h),y<f&&(y=f),u=a.snapFactorTo((n-e)/(y-1),m,"floor"))),i(c)&&u<c&&(u=c),t.interval||h!==f)n=Math.min(a.snapMultiple(n,u,"ceil"),g),e=Math.max(a.snapMultiple(e,u,"floor"),d),y=Math.round((n-e)/u),e=a.fixedBase(e,u),n=a.fixedBase(n,u);else{v=parseInt(v,10);var x,b=a.snapMultiple((n+e)/2,u,"ceil"),_=Math.floor((v-2)/2),w=b+_*u;for(x=v%2==0?b-_*u:b-(_+1)*u;w<n;)w=a.fixedBase(w+u,u);for(;x>e;)x=a.fixedBase(x-u,u);n=w,e=x}n=Math.min(n,g),e=Math.max(e,d),l.push(e);for(var O=1;O<y;O++){var j=a.fixedBase(u*O+e,u);j<n&&l.push(j)}return l[l.length-1]<n&&l.push(n),{min:e,max:n,interval:u,count:y,ticks:l}}},function(t,e,n){var r=n(17),i=n(9),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.isIdentity=!0,this.type="identity",this.value=null},n.getText=function(){return this.value.toString()},n.scale=function(t){return this.value!==t&&i(t)?t:this.range[0]},n.invert=function(){return this.value},e}(r);r.Identity=a,t.exports=a},function(t,e,n){var r=n(79),i=n(2),a=n(5),o=n(10),s=n(17),u=n(33),c=n(177),l=n(71),f=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="time",this.mask="YYYY-MM-DD"},n.init=function(){var e=this,n=e.values;if(n&&n.length){var r=[],o=1/0,s=o,u=0;i(n,function(t){var n=e._toTimeStamp(t);if(isNaN(n))throw new TypeError("Invalid Time: "+t);o>n?(s=o,o=n):s>n&&(s=n),u<n&&(u=n),r.push(n)}),n.length>1&&(e.minTickInterval=s-o),(a(e.min)||e._toTimeStamp(e.min)>o)&&(e.min=o),(a(e.max)||e._toTimeStamp(e.max)<u)&&(e.max=u)}t.prototype.init.call(this)},n.calculateTicks=function(){var t=this.tickCount;return c({min:this.min,max:this.max,minCount:t,maxCount:t,interval:this.tickInterval,minInterval:this.minTickInterval}).ticks},n.getText=function(t){var e=this.formatter;return t=this.translate(t),e?e(t):r.format(t,this.mask)},n.scale=function(e){return o(e)&&(e=this.translate(e)),t.prototype.scale.call(this,e)},n.translate=function(t){return this._toTimeStamp(t)},n._toTimeStamp=function(t){return l.toTimeStamp(t)},e}(u);s.Time=f,t.exports=f},function(t,e,n){function r(t){return new Date(t).getFullYear()}function i(t){return new Date(t,0,1).getTime()}function a(t){return new Date(t).getMonth()}function o(t,e){return new Date(t,e,1).getTime()}var s=n(76),u=n(5),c=[1,2,4,6,8,12],l=36e5,f=864e5;t.exports=function(t){var e,n=t.minInterval,h=[],p=t.min,d=t.max,g=t.interval;if(d===p&&(d=p+f),u(g)){var v=f;g=parseInt((d-p)/(t.maxCount||6),10),n&&n>g&&(g=n);var y=g/31536e6,m=r(p);if(y>.51){for(var x=Math.ceil(y),b=r(d),_=m;_<=b+x;_+=x)h.push(i(_));g=null}else if(y>.0834){for(var w=Math.ceil(y/.0834),O=a(p),j=function(t,e){var n=r(t),i=r(e),o=a(t);return 12*(i-n)+(a(e)-o)%12}(p,d),S=0;S<=j+w;S+=w)h.push(o(m,S+O));g=null}else if(g>.5*v){var M=new Date(p),E=M.getFullYear(),P=M.getMonth(p),C=M.getDate(),k=Math.ceil(g/v),A=Math.ceil((d-p)/f);g=k*v;for(var T=0;T<A+k;T+=k)h.push(new Date(E,P,C+T).getTime())}else if(g>l){var I=new Date(p),L=I.getFullYear(),R=I.getMonth(p),D=I.getDate(),F=I.getHours(),B=s.snapTo(c,Math.ceil(g/l)),N=Math.ceil((d-p)/l);g=B*l;for(var z=0;z<=N+B;z+=B)h.push(new Date(L,R,D,F+z).getTime())}else if(g>6e4){var q=Math.ceil((d-p)/6e4),V=Math.ceil(g/6e4);g=6e4*V;for(var H=0;H<=q+V;H+=V)h.push(p+6e4*H)}else{g<1e3&&(g=1e3),p=1e3*Math.floor(p/1e3);var Y=Math.ceil((d-p)/1e3),G=Math.ceil(g/1e3);g=1e3*G;for(var W=0;W<Y+G;W+=G)h.push(p+1e3*W)}}if(!h.length){p=1e3*Math.floor(p/1e3),e=((d=1e3*Math.ceil(d/1e3))-p)/g;for(var U=0;U<=e;U++)h.push(s.fixedBase(g*U+p,g))}return{max:d,min:p,interval:g,ticks:h,count:h.length}}},function(t,e,n){var r=n(17),i=n(77),a=n(79),o=n(78),s=n(71),u=n(2),c=n(9),l=n(24),f=n(10),h=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="timeCat",this.sortable=!0,this.tickCount=5,this.mask="YYYY-MM-DD"},n.init=function(){var t=this,e=this.values;u(e,function(n,r){e[r]=t._toTimeStamp(n)}),this.sortable&&e.sort(function(t,e){return t-e}),t.ticks||(t.ticks=this.calculateTicks())},n.calculateTicks=function(){var t=this.tickCount;return t?o({maxCount:t,data:this.values,isRounding:this.isRounding}).ticks:this.values},n.translate=function(t){t=this._toTimeStamp(t);var e=this.values.indexOf(t);return-1===e&&(e=c(t)&&t<this.values.length?t:NaN),e},n.scale=function(t){var e=this.rangeMin(),n=this.rangeMax(),r=this.translate(t);return e+(1===this.values.length||isNaN(r)?r:r>-1?r/(this.values.length-1):0)*(n-e)},n.getText=function(t){var e="",n=this.translate(t);e=n>-1?this.values[n]:t;var r=this.formatter;return e=parseInt(e,10),r?r(e):a.format(e,this.mask)},n.getTicks=function(){var t=this,e=[];return u(this.ticks,function(n){var r;r=l(n)?n:{text:f(n)?n:t.getText(n),value:t.scale(n),tickValue:n},e.push(r)}),e},n._toTimeStamp=function(t){return s.toTimeStamp(t)},e}(i);r.TimeCat=h,t.exports=h},function(t,e,n){function r(t,e){return 1===t?1:Math.log(e)/Math.log(t)}var i=n(2),a=n(17),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="log",this.tickCount=10,this.base=2,this._minTick=null},n.calculateTicks=function(){var t,e=this.base;if(this.min<0)throw new Error("The minimum value must be greater than zero!");var n=r(e,this.max);if(this.min>0)t=Math.floor(r(e,this.min));else{var a=this.max;i(this.values,function(t){t>0&&t<a&&(a=t)}),a===this.max&&(a=this.max/e),a>1&&(a=1),t=Math.floor(r(e,a)),this._minTick=t,this.positiveMin=a}for(var o=Math.ceil((n-t)/this.tickCount),s=[],u=t;u<n+o;u+=o)s.push(Math.pow(e,u));return 0===this.min&&s.unshift(0),s},n._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var i=this.base,a=this.positiveMin;return a&&(n=1*a/i),t<a?t/a/(r(i,e)-r(i,n)):(r(i,t)-r(i,n))/(r(i,e)-r(i,n))},n.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},n.invert=function(t){var e,n=this.base,i=r(n,this.max),a=this.rangeMin(),o=this.rangeMax()-a,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(i-(e=r(n,s/n)))*o;if(t<u)return t/u*s}else e=r(n,this.min);return Math.pow(n,(t-a)/o*(i-e)+e)},e}(n(33));a.Log=o,t.exports=o},function(t,e,n){function r(t,e){var n=Math.E;return Math.pow(n,Math.log(e)/t)}var i=n(17),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="pow",this.tickCount=10,this.exponent=2},n.calculateTicks=function(){var t,e=this.exponent,n=Math.ceil(r(e,this.max));if((t=this.min>=0?Math.floor(r(e,this.min)):0)>n){var i=n;n=t,t=i}for(var a=Math.ceil((n-t)/this.tickCount),o=[],s=t;s<n+a;s+=a)o.push(Math.pow(s,e));return o},n._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var i=this.exponent;return(r(i,t)-r(i,n))/(r(i,e)-r(i,n))},n.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},n.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin()),n=this.exponent,i=r(n,this.max),a=r(n,this.min);return Math.pow(e*(i-a)+a,n)},e}(n(33));i.Pow=a,t.exports=a},function(t,e,n){var r=n(1),i=n(100),a=n(101),o=n(190),s=n(215),u=function t(e){t.superclass.constructor.call(this,e)};u.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},r.extend(u,a),r.augment(u,{init:function(){u.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(t,e){if(t){if(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this.getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var a=new i(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(t,e){var n,r=this.getPointByClient(e.clientX,e.clientY),i=this.getShape(r.x,r.y,e),a=this.get("el");if("mousemove"===t){var o=this.get("preShape");if(o&&o!==i){var s=this._getEventObj("mouseleave",e,r,o);(n=this.getEmitter(o,e))&&n.emit("mouseleave",s),a.style.cursor="default"}if(i){var u=this._getEventObj("mousemove",e,r,i);if((n=this.getEmitter(i,e))&&n.emit("mousemove",u),o!==i){var c=this._getEventObj("mouseenter",e,r,i);n&&n.emit("mouseenter",c,e)}}else{var l=this._getEventObj("mousemove",e,r,this);this.emit("mousemove",l)}this.set("preShape",i)}else{var f=this._getEventObj(t,e,r,i||this);(n=this.getEmitter(i,e))&&n!==this&&n.emit(t,f),this.emit(t,f)}i&&!i.get("destroyed")&&(a.style.cursor=i.attr("cursor")||"default")},_registEvents:function(){var t=this,e=t.get("el");r.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseup","click","dblclick"],function(n){e.addEventListener(n,function(e){t._triggerEvent(n,e)},!1)}),e.addEventListener("touchstart",function(e){r.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])},!1),e.addEventListener("touchmove",function(e){r.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])},!1),e.addEventListener("touchend",function(e){r.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])},!1)},_scale:function(){var t=this.get("pixelRatio");this.scale(t,t)},_setGlobalParam:function(){this.get("pixelRatio")||this.set("pixelRatio",r.getRatio());var t=s[this.get("renderer")||"canvas"];this._cfg.renderer=t,this._cfg.canvas=this;var e=new o(this);this._cfg.timeline=e},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),r.modifyCSS(e,{position:"relative"})},_initPainter:function(){var t=this.get("containerDOM"),e=new this._cfg.renderer.painter(t);this._cfg.painter=e,this._cfg.canvasDOM=this._cfg.el=e.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio");return this.get("width")*t},getHeight:function(){var t=this.get("pixelRatio");return this.get("height")*t},changeSize:function(t,e){var n=this.get("pixelRatio"),r=e*n;this.set("widthCanvas",t*n),this.set("heightCanvas",r),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},getPointByClient:function(t,e){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(t-i.left)*r,y:(e-i.top)*r}},getClientByPoint:function(t,e){var n=this.get("el").getBoundingClientRect(),r=this.get("pixelRatio")||1;return{clientX:t/r+n.left,clientY:e/r+n.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(t,e,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,t,e,n):u.superclass.getShape.call(this,t,e)},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var t=this._cfg,e=t.containerDOM,n=t.canvasDOM;n&&e&&e.removeChild(n),t.timeline.stop(),u.superclass.destroy.call(this)}}),t.exports=u},function(t,e,n){"use strict";function r(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=n[0],p=n[1],d=n[2],g=n[3],v=n[4],y=n[5],m=n[6],x=n[7],b=n[8];return t[0]=h*r+p*o+d*c,t[1]=h*i+p*s+d*l,t[2]=h*a+p*u+d*f,t[3]=g*r+v*o+y*c,t[4]=g*i+v*s+y*l,t[5]=g*a+v*u+y*f,t[6]=m*r+x*o+b*c,t[7]=m*i+x*s+b*l,t[8]=m*a+x*u+b*f,t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=function(){var t=new a.ARRAY_TYPE(9);return a.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new a.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,r,i,o,s,u,c){var l=new a.ARRAY_TYPE(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=i,l[5]=o,l[6]=s,l[7]=u,l[8]=c,l},e.set=function(t,e,n,r,i,a,o,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=c,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=l*o-s*c,h=-l*a+s*u,p=c*a-o*u,d=n*f+r*h+i*p;return d?(t[0]=f*(d=1/d),t[1]=(-l*r+i*c)*d,t[2]=(s*r-i*o)*d,t[3]=h*d,t[4]=(l*n-i*u)*d,t[5]=(-s*n+i*a)*d,t[6]=p*d,t[7]=(-c*n+r*u)*d,t[8]=(o*n-r*a)*d,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8];return t[0]=o*l-s*c,t[1]=i*c-r*l,t[2]=r*s-i*o,t[3]=s*u-a*l,t[4]=n*l-i*u,t[5]=i*a-n*s,t[6]=a*c-o*u,t[7]=r*u-n*c,t[8]=n*o-r*a,t},e.determinant=function(t){var e=t[3],n=t[4],r=t[5],i=t[6],a=t[7],o=t[8];return t[0]*(o*n-r*a)+t[1]*(-o*e+r*i)+t[2]*(a*e-n*i)},e.multiply=r,e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=h*r+p*o+c,t[7]=h*i+p*s+l,t[8]=h*a+p*u+f,t},e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=Math.sin(n),p=Math.cos(n);return t[0]=p*r+h*o,t[1]=p*i+h*s,t[2]=p*a+h*u,t[3]=p*o-h*r,t[4]=p*s-h*i,t[5]=p*u-h*a,t[6]=c,t[7]=l,t[8]=f,t},e.scale=function(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,c=n*o,l=r*o,f=r*s,h=i*o,p=i*s,d=i*u,g=a*o,v=a*s,y=a*u;return t[0]=1-f-d,t[3]=l-y,t[6]=h+v,t[1]=l+y,t[4]=1-c-d,t[7]=p-g,t[2]=h-v,t[5]=p+g,t[8]=1-c-f,t},e.normalFromMat4=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],v=e[14],y=e[15],m=n*s-r*o,x=n*u-i*o,b=n*c-a*o,_=r*u-i*s,w=r*c-a*s,O=i*c-a*u,j=l*g-f*d,S=l*v-h*d,M=l*y-p*d,E=f*v-h*g,P=f*y-p*g,C=h*y-p*v,k=m*C-x*P+b*E+_*M-w*S+O*j;return k?(t[0]=(s*C-u*P+c*E)*(k=1/k),t[1]=(u*M-o*C-c*S)*k,t[2]=(o*P-s*M+c*j)*k,t[3]=(i*P-r*C-a*E)*k,t[4]=(n*C-i*M+a*S)*k,t[5]=(r*M-n*P-a*j)*k,t[6]=(g*O-v*w+y*_)*k,t[7]=(v*b-d*O-y*x)*k,t[8]=(d*w-g*b+y*m)*k,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=i,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],h=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],x=e[7],b=e[8];return Math.abs(n-h)<=a.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(r-p)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(p))&&Math.abs(i-d)<=a.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-g)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-v)<=a.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-y)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-m)<=a.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(l-x)<=a.EPSILON*Math.max(1,Math.abs(l),Math.abs(x))&&Math.abs(f-b)<=a.EPSILON*Math.max(1,Math.abs(f),Math.abs(b))};var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(52));e.mul=r,e.sub=i},function(t,e,n){"use strict";function r(){var t=new f.ARRAY_TYPE(2);return f.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function a(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function o(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function s(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function c(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function l(t){var e=t[0],n=t[1];return e*e+n*n}Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=r,e.clone=function(t){var e=new f.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new f.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=i,e.multiply=a,e.divide=o,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=s,e.squaredDistance=u,e.length=c,e.squaredLength=l,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*f.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=n*n+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1];return Math.abs(n-i)<=f.EPSILON*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=f.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))};var f=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(52));e.len=c,e.sub=i,e.mul=a,e.div=o,e.dist=s,e.sqrDist=u,e.sqrLen=l,e.forEach=function(){var t=r();return function(e,n,r,i,a,o){var s,u=void 0;for(n||(n=2),r||(r=0),s=i?Math.min(i*n+r,e.length):e.length,u=r;u<s;u+=n)t[0]=e[u],t[1]=e[u+1],a(t,t,o),e[u]=t[0],e[u+1]=t[1];return e}}()},function(t,e,n){"use strict";function r(){var t=new d.ARRAY_TYPE(3);return d.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function i(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function a(t,e,n){var r=new d.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function l(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function f(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function h(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=r,e.clone=function(t){var e=new d.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=i,e.fromValues=a,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=o,e.multiply=s,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.distance=c,e.squaredDistance=l,e.squaredLength=f,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=h,e.dot=p,e.cross=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t},e.hermite=function(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,c=o*(a-1),l=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*c+i[0]*l,t[1]=e[1]*s+n[1]*u+r[1]*c+i[1]*l,t[2]=e[2]*s+n[2]*u+r[2]*c+i[2]*l,t},e.bezier=function(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,c=s*o,l=3*a*s,f=3*u*o,h=u*a;return t[0]=e[0]*c+n[0]*l+r[0]*f+i[0]*h,t[1]=e[1]*c+n[1]*l+r[1]*f+i[1]*h,t[2]=e[2]*c+n[2]*l+r[2]*f+i[2]*h,t},e.random=function(t,e){e=e||1;var n=2*d.RANDOM()*Math.PI,r=2*d.RANDOM()-1,i=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=r*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/(o=o||1),t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=e[0],s=e[1],u=e[2],c=i*u-a*s,l=a*o-r*u,f=r*s-i*o,h=i*f-a*l,p=a*c-r*f,d=r*l-i*c,g=2*n[3];return l*=g,f*=g,p*=2,d*=2,t[0]=o+(c*=g)+(h*=2),t[1]=s+l+p,t[2]=u+f+d,t},e.rotateX=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=a(t[0],t[1],t[2]),r=a(e[0],e[1],e[2]);h(n,n),h(r,r);var i=p(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=d.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=d.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=d.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))};var d=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(52));e.sub=o,e.mul=s,e.div=u,e.dist=c,e.sqrDist=l,e.len=i,e.sqrLen=f,e.forEach=function(){var t=r();return function(e,n,r,i,a,o){var s,u=void 0;for(n||(n=3),r||(r=0),s=i?Math.min(i*n+r,e.length):e.length,u=r;u<s;u+=n)t[0]=e[u],t[1]=e[u+1],t[2]=e[u+2],a(t,t,o),e[u]=t[0],e[u+1]=t[1],e[u+2]=t[2];return e}}()},function(t,e,n){var r=n(1);t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){if(0===arguments.length)return this._attrs;if(r.isObject(t)){for(var n in t)this._setAttr(n,t[n]);return this.clearBBox(),this._cfg.hasUpdate=!0,this}return 2===arguments.length?(this._setAttr(t,e),this.clearBBox(),this._cfg.hasUpdate=!0,this):this._attrs[t]},_setAttr:function(t,e){var n=this._attrs;n[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?this._setClip(e):"path"===t&&this._afterSetAttrPath?this._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&this.rotateAtStart(e):this.transform(e):n.globalAlpha=e:n[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},function(t,e,n){function r(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function i(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function a(t,e){r(e)||(i(e)?(t[0]*=e[0],t[4]*=e[4]):o.mat3.multiply(t,t,e))}var o=n(1);t.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this._attrs.matrix;return o.mat3.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this._attrs.matrix;return o.mat3.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this._attrs.matrix;return o.mat3.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;return this.translate(t-n,e-r),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return o.each(t,function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",o.mat3.multiply([],n,t[1])),e.clearTotalMatrix()}}),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),o.vec3.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){t=t||this;for(var e=this,n=[];e!==t;)n.unshift(e),e=e.get("parent");n.unshift(e);var r=[1,0,0,0,1,0,0,0,1];return o.each(n,function(t){o.mat3.multiply(r,t.attr("matrix"),r)}),r},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;e&&a(t,e.getTotalMatrix()),a(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(i(e))t[0]/=e[0],t[1]/=e[4];else{var n=o.mat3.invert([],e);n&&o.vec3.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");r(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){var r=n(1),i={delay:"delay",rotate:"rotate"},a={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};t.exports={animate:function(t,e,n,o,s){void 0===s&&(s=0),this.set("animating",!0);var u=this.get("timeline");u||(u=this.get("canvas").get("timeline"),this.setSilent("timeline",u));var c=this.get("animators")||[];u._timer||u.initTimer(),r.isNumber(o)&&(s=o,o=null),r.isFunction(n)?(o=n,n="easeLinear"):n=n||"easeLinear";var l=function(t,e){var n={matrix:null,attrs:{}},o=e._attrs;for(var s in t)if("transform"===s)n.matrix=r.transform(e.getMatrix(),t[s]);else if("rotate"===s)n.matrix=r.transform(e.getMatrix(),[["r",t[s]]]);else if("matrix"===s)n.matrix=t[s];else{if(a[s]&&/^[r,R,L,l]{1}[\s]*\(/.test(t[s]))continue;i[s]||o[s]===t[s]||(n.attrs[s]=t[s])}return n}(t,this),f={fromAttrs:function(t,e){var n={},r=e._attrs;for(var i in t.attrs)n[i]=r[i];return n}(l,this),toAttrs:l.attrs,fromMatrix:r.clone(this.getMatrix()),toMatrix:l.matrix,duration:e,easing:n,callback:o,delay:s,startTime:u.getTime(),id:r.uniqueId()};c.length>0?c=function(t,e){var n=e.delay,i=Object.prototype.hasOwnProperty;return r.each(e.toAttrs,function(e,a){r.each(t,function(t){n<t.startTime+t.duration&&i.call(t.toAttrs,a)&&(delete t.toAttrs[a],delete t.fromAttrs[a])})}),e.toMatrix&&r.each(t,function(t){n<t.startTime+t.duration&&t.toMatrix&&delete t.toMatrix}),t}(c,f):u.addAnimator(this),c.push(f),this.setSilent("animators",c),this.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");r.each(e,function(e){t.attr(e.toAttrs),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()}),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this.get("timeline");return this.setSilent("pause",{isPaused:!0,pauseTime:t.getTime()}),this},resumeAnimate:function(){var t=this.get("timeline").getTime(),e=this.get("animators"),n=this.get("pause").pauseTime;return r.each(e,function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null}),this.setSilent("pause",{isPaused:!1}),this.setSilent("animators",e),this}}},function(t,e,n){var r=n(6);r.Arc=n(105),r.Circle=n(106),r.Dom=n(107),r.Ellipse=n(108),r.Fan=n(109),r.Image=n(110),r.Line=n(111),r.Marker=n(56),r.Path=n(112),r.Polygon=n(113),r.Polyline=n(114),r.Rect=n(115),r.Text=n(116),t.exports=r},function(t,e,n){function r(t,e,n){return n.createPath(s),s.isPointInPath(t,e)}var i=n(1),a=n(54),o={arc:n(37),ellipse:n(104),line:n(36)},s=i.createDom('<canvas width="500" height="500"></canvas>').getContext("2d"),u={arc:function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.r,s=n.startAngle,u=n.endAngle,c=n.clockwise,l=this.getHitLineWidth();return!!this.hasStroke()&&a.arcline(r,i,o,s,u,c,l,t,e)},circle:function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),c=this.hasStroke();return u&&c?a.circle(r,i,o,t,e)||a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e):u?a.circle(r,i,o,t,e):!!c&&a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e)},dom:function(t,e){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return a.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},ellipse:function(t,e){var n=this._attrs,r=this.hasFill(),o=this.hasStroke(),s=n.x,u=n.y,c=n.rx,l=n.ry,f=this.getHitLineWidth(),h=c>l?c:l,p=[t,e,1],d=[1,0,0,0,1,0,0,0,1];i.mat3.scale(d,d,[c>l?1:c/l,c>l?l/c:1]),i.mat3.translate(d,d,[s,u]);var g=i.mat3.invert([],d);return i.vec3.transformMat3(p,p,g),r&&o?a.circle(0,0,h,p[0],p[1])||a.arcline(0,0,h,0,2*Math.PI,!1,f,p[0],p[1]):r?a.circle(0,0,h,p[0],p[1]):!!o&&a.arcline(0,0,h,0,2*Math.PI,!1,f,p[0],p[1])},fan:function(t,e){function n(){var t=o.arc.nearAngle(x,g,v,y);if(i.isNumberEqual(x,t)){var e=i.vec2.squaredLength(m);if(p*p<=e&&e<=d*d)return!0}return!1}function r(){var n=s.getHitLineWidth(),r={x:Math.cos(g)*p+f,y:Math.sin(g)*p+h},i={x:Math.cos(g)*d+f,y:Math.sin(g)*d+h},o={x:Math.cos(v)*p+f,y:Math.sin(v)*p+h},u={x:Math.cos(v)*d+f,y:Math.sin(v)*d+h};return!!(a.line(r.x,r.y,i.x,i.y,n,t,e)||a.line(o.x,o.y,u.x,u.y,n,t,e)||a.arcline(f,h,p,g,v,y,n,t,e)||a.arcline(f,h,d,g,v,y,n,t,e))}var s=this,u=s.hasFill(),c=s.hasStroke(),l=s._attrs,f=l.x,h=l.y,p=l.rs,d=l.re,g=l.startAngle,v=l.endAngle,y=l.clockwise,m=[t-f,e-h],x=i.vec2.angleTo([1,0],m);return u&&c?n()||r():u?n():!!c&&r()},image:function(t,e){var n=this._attrs;return!(this.get("toDraw")||!n.img)&&(this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg(),a.rect(n.x,n.y,n.width,n.height,t,e))},line:function(t,e){var n=this._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&a.line(r,i,o,s,u,t,e)},path:function(t,e){function n(){if(!i.isEmpty(o)){for(var n=a.getHitLineWidth(),r=0,s=o.length;r<s;r++)if(o[r].isInside(t,e,n))return!0;return!1}}var a=this,o=a.get("segments"),s=a.hasFill(),u=a.hasStroke();return s&&u?r(t,e,a)||n():s?r(t,e,a):!!u&&n()},marker:function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return a.circle(r,i,o+s/2,t,e)},polygon:function(t,e){function n(){var n=i._attrs.points;if(n.length<2)return!1;var r=i.getHitLineWidth(),o=n.slice(0);return n.length>=3&&o.push(n[0]),a.polyline(o,r,t,e)}var i=this,o=i.hasFill(),s=i.hasStroke();return o&&s?r(t,e,i)||n():o?r(t,e,i):!!s&&n()},polyline:function(t,e){var n=this._attrs;if(this.hasStroke()){var r=n.points;return!(r.length<2)&&a.polyline(r,n.lineWidth,t,e)}return!1},rect:function(t,e){function n(){var n=i._attrs,r=n.x,o=n.y,s=n.width,u=n.height,c=n.radius,l=i.getHitLineWidth();if(0===c){var f=l/2;return a.line(r-f,o,r+s+f,o,l,t,e)||a.line(r+s,o-f,r+s,o+u+f,l,t,e)||a.line(r+s+f,o+u,r-f,o+u,l,t,e)||a.line(r,o+u+f,r,o-f,l,t,e)}return a.line(r+c,o,r+s-c,o,l,t,e)||a.line(r+s,o+c,r+s,o+u-c,l,t,e)||a.line(r+s-c,o+u,r+c,o+u,l,t,e)||a.line(r,o+u-c,r,o+c,l,t,e)||a.arcline(r+s-c,o+c,c,1.5*Math.PI,2*Math.PI,!1,l,t,e)||a.arcline(r+s-c,o+u-c,c,0,.5*Math.PI,!1,l,t,e)||a.arcline(r+c,o+u-c,c,.5*Math.PI,Math.PI,!1,l,t,e)||a.arcline(r+c,o+c,c,Math.PI,1.5*Math.PI,!1,l,t,e)}var i=this,o=i.hasFill(),s=i.hasStroke();return o&&s?r(t,e,i)||n():o?r(t,e,i):!!s&&n()},text:function(t,e){var n=this.getBBox();if(this.hasFill()||this.hasStroke())return a.box(n.minX,n.maxX,n.minY,n.maxY,t,e)}};t.exports={isPointInPath:function(t,e){var n=u[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){function r(t,e,n){var r=e.startTime;if(n<r+e.delay||e.isPaused)return!1;var o,u=e.duration,f=e.easing;if(n=n-r-e.delay,e.toAttrs.repeat)o=s[f](o=n%u/u);else{if(!((o=n/u)<1))return t.attr(e.toAttrs),e.toMatrix&&t.setMatrix(e.toMatrix),!0;o=s[f](o)}return function(t,e,n){var r={},o=e.toAttrs,s=e.fromAttrs,u=e.toMatrix;if(!t.get("destroyed")){var f;for(var h in o)if(!i.isEqual(s[h],o[h]))if("path"===h){var p=o[h],d=s[h];p.length>d.length?(p=a.parsePathString(o[h]),d=a.parsePathString(s[h]),d=a.fillPathByDiff(d,p),d=a.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=a.parsePathString(o[h]),d=a.parsePathString(s[h]),d=a.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[h]=[];for(var g=0;g<p.length;g++){for(var v=p[g],y=d[g],m=[],x=0;x<v.length;x++)i.isNumber(v[x])&&y&&i.isNumber(y[x])?(f=c(y[x],v[x]),m.push(f(n))):m.push(v[x]);r[h].push(m)}}else f=c(s[h],o[h]),r[h]=f(n);if(u){var b=l(e.fromMatrix,u)(n);t.setMatrix(b)}t.attr(r)}}(t,e,o),!1}var i=n(1),a=n(57),o=n(170),s=n(173),u=n(117),c=u.interpolate,l=u.interpolateArray,f=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};i.augment(f,{initTimer:function(){var t,e,n,i=this,a=this;a._timer=o.timer(function(o){if(a._current=o,i._animators.length>0){for(var s=i._animators.length-1;s>=0;s--)if((t=i._animators[s]).get("destroyed"))a.removeAnimator(s);else{if(!t.get("pause").isPaused)for(var u=(e=t.get("animators")).length-1;u>=0;u--)r(t,n=e[u],o)&&(e.splice(u,1),n.callback&&n.callback());0===e.length&&a.removeAnimator(s)}i.canvas.draw()}})},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach(function(t){t.stopAnimate()}),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=f},function(t,e,n){"use strict";var r=n(58);e.a=function(t,e,n){var i=new r.a;return i.restart(function(n){i.stop(),t(n+e)},e=null==e?0:+e,n),i}},function(t,e,n){"use strict";var r=n(58);e.a=function(t,e,n){var i=new r.a,a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?Object(r.b)():+n,i.restart(function r(o){o+=a,i.restart(r,a+=e,n),t(o)},e,n),i)}},function(t,e,n){"use strict";e.a=function(t){return+t}},function(t,e,n){"use strict";e.a=function(t){return t*t},e.c=function(t){return t*(2-t)},e.b=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}},function(t,e,n){"use strict";e.a=function(t){return t*t*t},e.c=function(t){return--t*t*t+1},e.b=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return a});var r=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),i=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),a=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";e.a=function(t){return 1-Math.cos(t*i)},e.c=function(t){return Math.sin(t*i)},e.b=function(t){return(1-Math.cos(r*t))/2};var r=Math.PI,i=r/2},function(t,e,n){"use strict";e.a=function(t){return Math.pow(2,10*t-10)},e.c=function(t){return 1-Math.pow(2,-10*t)},e.b=function(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}},function(t,e,n){"use strict";e.a=function(t){return 1-Math.sqrt(1-t*t)},e.c=function(t){return Math.sqrt(1- --t*t)},e.b=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}},function(t,e,n){"use strict";function r(t){return(t=+t)<i?p*t*t:t<o?p*(t-=a)*t+s:t<c?p*(t-=u)*t+l:p*(t-=f)*t+h}e.a=function(t){return 1-r(1-t)},e.c=r,e.b=function(t){return((t*=2)<=1?1-r(1-t):r(t-1)+1)/2};var i=4/11,a=6/11,o=8/11,s=.75,u=9/11,c=10/11,l=.9375,f=21/22,h=63/64,p=1/i/i},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return a});var r=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),i=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),a=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return o});var r=2*Math.PI,i=function t(e,n){function i(t){return e*Math.pow(2,10*--t)*Math.sin((a-t)/n)}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return i.amplitude=function(e){return t(e,n*r)},i.period=function(n){return t(e,n)},i}(1,.3),a=function t(e,n){function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+a)/n)}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return i.amplitude=function(e){return t(e,n*r)},i.period=function(n){return t(e,n)},i}(1,.3),o=function t(e,n){function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((a-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((a+t)/n))/2}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return i.amplitude=function(e){return t(e,n*r)},i.period=function(n){return t(e,n)},i}(1,.3)},function(t,e,n){"use strict";function r(t){if(t instanceof a)return new a(t.l,t.a,t.b,t.opacity);if(t instanceof f){var e=t.h*d.a;return new a(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof p.b||(t=Object(p.h)(t));var n=c(t.r),r=c(t.g),i=c(t.b),s=o((.4124564*n+.3575761*r+.1804375*i)/g),u=o((.2126729*n+.7151522*r+.072175*i)/v);return new a(116*u-16,500*(s-u),200*(u-o((.0193339*n+.119192*r+.9503041*i)/y)),t.opacity)}function i(t,e,n,i){return 1===arguments.length?r(t):new a(t,e,n,null==i?1:i)}function a(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function o(t){return t>_?Math.pow(t,1/3):t/b+m}function s(t){return t>x?t*t*t:b*(t-m)}function u(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function c(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function l(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof f)return new f(t.h,t.c,t.l,t.opacity);t instanceof a||(t=r(t));var e=Math.atan2(t.b,t.a)*d.b;return new f(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new f(t,e,n,null==i?1:i)}function f(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}e.a=i,e.b=l;var h=n(61),p=n(60),d=n(118),g=.95047,v=1,y=1.08883,m=4/29,x=6/29,b=3*x*x,_=x*x*x;Object(h.a)(a,i,Object(h.b)(p.a,{brighter:function(t){return new a(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new a(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=v*s(t),e=g*s(e),n=y*s(n),new p.b(u(3.2404542*e-1.5371385*t-.4985314*n),u(-.969266*e+1.8760108*t+.041556*n),u(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Object(h.a)(f,l,Object(h.b)(p.a,{brighter:function(t){return new f(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new f(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(t,e,n){"use strict";function r(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof i)return new i(t.h,t.s,t.l,t.opacity);t instanceof o.b||(t=Object(o.h)(t));var e=t.g/255,n=t.b/255,r=(g*n+p*(t.r/255)-d*e)/(g+p-d),a=n-r,u=(h*(e-r)-l*a)/f,c=Math.sqrt(u*u+a*a)/(h*r*(1-r)),v=c?Math.atan2(u,a)*s.b-120:NaN;return new i(v<0?v+360:v,c,r,t.opacity)}(t):new i(t,e,n,null==r?1:r)}function i(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.a=r;var a=n(61),o=n(60),s=n(118),u=-.14861,c=1.78277,l=-.29227,f=-.90649,h=1.97294,p=h*f,d=h*c,g=c*l-f*u;Object(a.a)(i,r,Object(a.b)(o.a,{brighter:function(t){return t=null==t?o.c:Math.pow(o.c,t),new i(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o.d:Math.pow(o.d,t),new i(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*s.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new o.b(255*(e+n*(u*r+c*i)),255*(e+n*(l*r+f*i)),255*(e+n*(h*r)),this.opacity)}}))},function(t,e,n){"use strict";e.a=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";function r(t,e,n,r){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var u=[],c=[];return o=t(o),s=t(s),function(t,r,a,o,s,u){if(t!==a||r!==o){var c=s.push("translate(",null,e,null,n);u.push({i:c-4,x:Object(i.a)(t,a)},{i:c-2,x:Object(i.a)(r,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,u,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),c.push({i:n.push(a(n)+"rotate(",null,r)-2,x:Object(i.a)(t,e)})):e&&n.push(a(n)+"rotate("+e+r)}(o.rotate,s.rotate,u),function(t,e,n,o){t!==e?c.push({i:n.push(a(n)+"skewX(",null,r)-2,x:Object(i.a)(t,e)}):e&&n.push(a(n)+"skewX("+e+r)}(o.skewX,s.skewX,u),function(t,e,n,r,o,s){if(t!==n||e!==r){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(i.a)(t,n)},{i:u-2,x:Object(i.a)(e,r)})}else 1===n&&1===r||o.push(a(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,u,c),o=s=null,function(t){for(var e,n=-1,r=c.length;++n<r;)u[(e=c[n]).i]=e.x(t);return u.join("")}}}n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var i=n(40),a=n(207),o=r(a.a,"px, ","px)","deg)"),s=r(a.b,", ",")",")")},function(t,e,n){"use strict";e.a=function(t){return"none"===t?s.b:(r||(r=document.createElement("DIV"),i=document.documentElement,a=document.defaultView),r.style.transform=t,t=a.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),Object(s.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},e.b=function(t){return null==t?s.b:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,Object(s.a)(t.a,t.b,t.c,t.d,t.e,t.f)):s.b)};var r,i,a,o,s=n(208)},function(t,e,n){"use strict";n.d(e,"b",function(){return i});var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,i,a,o){var s,u,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(u=Math.sqrt(n*n+i*i))&&(n/=u,i/=u,c/=u),t*i<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*r,skewX:Math.atan(c)*r,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";function r(t){return((t=Math.exp(t))+1/t)/2}var i=Math.SQRT2;e.a=function(t,e){var n,a,o=t[0],s=t[1],u=t[2],c=e[2],l=e[0]-o,f=e[1]-s,h=l*l+f*f;if(h<1e-12)a=Math.log(c/u)/i,n=function(t){return[o+t*l,s+t*f,u*Math.exp(i*t*a)]};else{var p=Math.sqrt(h),d=(c*c-u*u+4*h)/(2*u*2*p),g=(c*c-u*u-4*h)/(2*c*2*p),v=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(g*g+1)-g);a=(y-v)/i,n=function(t){var e=t*a,n=r(v),c=u/(2*p)*(n*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(i*e+v)-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[o+c*l,s+c*f,u*n/r(i*e+v)]}}return n.duration=1e3*a,n}},function(t,e,n){"use strict";function r(t){return function(e,n){var r=t((e=Object(i.d)(e)).h,(n=Object(i.d)(n)).h),o=Object(a.a)(e.s,n.s),s=Object(a.a)(e.l,n.l),u=Object(a.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=o(t),e.l=s(t),e.opacity=u(t),e+""}}}n.d(e,"b",function(){return o});var i=n(19),a=n(28);e.a=r(a.c);var o=r(a.a)},function(t,e,n){"use strict";e.a=function(t,e){var n=Object(i.a)((t=Object(r.e)(t)).l,(e=Object(r.e)(e)).l),a=Object(i.a)(t.a,e.a),o=Object(i.a)(t.b,e.b),s=Object(i.a)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=a(e),t.b=o(e),t.opacity=s(e),t+""}};var r=n(19),i=n(28)},function(t,e,n){"use strict";function r(t){return function(e,n){var r=t((e=Object(i.c)(e)).h,(n=Object(i.c)(n)).h),o=Object(a.a)(e.c,n.c),s=Object(a.a)(e.l,n.l),u=Object(a.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=o(t),e.l=s(t),e.opacity=u(t),e+""}}}n.d(e,"b",function(){return o});var i=n(19),a=n(28);e.a=r(a.c);var o=r(a.a)},function(t,e,n){"use strict";function r(t){return function e(n){function r(e,r){var o=t((e=Object(i.b)(e)).h,(r=Object(i.b)(r)).h),s=Object(a.a)(e.s,r.s),u=Object(a.a)(e.l,r.l),c=Object(a.a)(e.opacity,r.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=u(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,r.gamma=e,r}(1)}n.d(e,"a",function(){return o});var i=n(19),a=n(28);e.b=r(a.c);var o=r(a.a)},function(t,e,n){"use strict";e.a=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){t.exports={canvas:n(216),svg:n(219)}},function(t,e,n){t.exports={painter:n(217)}},function(t,e,n){var r=n(1),i=n(218),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<canvas id="'+e+'"></canvas>');return t.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var e=t.prototype;return e.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},e.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function n(){e.animateHandler=r.requestAnimationFrame(function(){e.animateHandler=void 0,e.toDraw&&n()}),e.beforeDraw();try{e._drawGroup(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),e.toDraw=!1}e.toDraw=!1}()},e.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},e._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,n=null;this.setContext(t);for(var r=0;r<e.length;r++)n=e[r],e[r].isGroup?this._drawGroup(n):this._drawShape(n);this.restoreContext(t)}},e._drawShape=function(t){t._cfg.removed||t._cfg.destroyed||!t._cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t._cfg.attrs=t._attrs,t._cfg.hasUpdate=!1)},e.setContext=function(t){var e=this.context,n=t._attrs.clip;e.save(),n&&(n.resetTransform(e),n.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},e.restoreContext=function(){this.context.restore()},e.resetContext=function(t){var e=this.context,n=t._attrs;if(!t.isGroup)for(var o in n)if(a.indexOf(o)>-1){var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},function(t,e,n){function r(t,e){var n=t.match(l);i.each(n,function(t){t=t.split(":"),e.addColorStop(t[0],t[1])})}var i=n(1),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi,s=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,u=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,c=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,f={};t.exports={parsePath:function(t){return i.isArray(t=t||[])?t:i.isString(t)?(t=t.match(a),i.each(t,function(e,n){if((e=e.match(o))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}i.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},parseStyle:function(t,e,n){if(i.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return function(t,e,n){var a,o,u=s.exec(t),c=i.mod(i.toRadian(parseFloat(u[1])),2*Math.PI),l=u[2],f=e.getBBox();c>=0&&c<.5*Math.PI?(a={x:f.minX,y:f.minY},o={x:f.maxX,y:f.maxY}):.5*Math.PI<=c&&c<Math.PI?(a={x:f.maxX,y:f.minY},o={x:f.minX,y:f.maxY}):Math.PI<=c&&c<1.5*Math.PI?(a={x:f.maxX,y:f.maxY},o={x:f.minX,y:f.minY}):(a={x:f.minX,y:f.maxY},o={x:f.maxX,y:f.minY});var h=Math.tan(c),p=h*h,d=n.createLinearGradient(a.x,a.y,(o.x-a.x+h*(o.y-a.y))/(p+1)+a.x,h*(o.x-a.x+h*(o.y-a.y))/(p+1)+a.y);return r(l,d),d}(t,e,n);if("r"===t[0])return function(t,e,n){var i=u.exec(t),a=parseFloat(i[1]),o=parseFloat(i[2]),s=parseFloat(i[3]),c=i[4];if(0===s){var f=c.match(l);return f[f.length-1].split(":")[1]}var h=e.getBBox(),p=h.maxX-h.minX,d=h.maxY-h.minY,g=Math.sqrt(p*p+d*d)/2,v=n.createRadialGradient(h.minX+p*a,h.minY+d*o,s*g,h.minX+p/2,h.minY+d/2,g);return r(c,v),v}(t,e,n);if("p"===t[0])return function(t,e,n){function r(){i=n.createPattern(a,s),e.setSilent("pattern",i),e.setSilent("patternSource",t)}if(e.get("patternSource")&&e.get("patternSource")===t)return e.get("pattern");var i,a,o=c.exec(t),s=o[1],u=o[2];switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return a=new Image,u.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=u,a.complete?r():(a.onload=r,a.src=a.src),i}(t,e,n)}return t}},numberToColor:function(t){var e=f[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;f[t]=e="#"+n}return e}}},function(t,e,n){t.exports={painter:n(220),getShape:n(227)}},function(t,e,n){var r=n(1),i=n(27).parseRadius,a=n(56),o=n(221),s={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},u={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={left:"left",start:"left",center:"middle",right:"end",end:"end"},f=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<svg id="'+e+'"></svg>');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new o(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function n(){e.animateHandler=r.requestAnimationFrame(function(){e.animateHandler=void 0,e.toDraw&&n()});try{t.resetMatrix(),e._drawGroup(t,!1)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),e.toDraw=!1}e.toDraw=!1}()},e.drawSync=function(t){this._drawChildren(t,!1)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(!n.el&&n.attrs&&(e=!0),n.tobeRemoved&&(r.each(n.tobeRemoved,function(t){t.parentNode&&t.parentNode.removeChild(t)}),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t,e))},e._drawChildren=function(t,e){var n,r=t._cfg.children;if(r){if(t._cfg.el&&!e){var i=t._cfg.el.childNodes.length+1;0!==i&&i!==r.length&&(e=!0)}for(var a=0;a<r.length;a++)(n=r[a]).isGroup?this._drawGroup(n,e):this._drawShape(n,e)}},e._drawShape=function(t,e){var n=t._attrs,r=t._cfg,i=r.el;r.removed||r.destroyed?i&&i.parentNode.removeChild(r.el):(e&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null),!i&&r.parent&&(this._createDom(t),this._updateShape(t)),i=r.el,!1!==r.visible?(r.visible&&i.hasAttribute("visibility")&&i.removeAttribute("visibility"),r.hasUpdate&&this._updateShape(t),n.clip&&n.clip._cfg.hasUpdate&&this._updateShape(n.clip)):i.setAttribute("visibility","hidden"))},e._updateShape=function(t){var e=t._attrs,n=t._cfg.attrs;if(n)if(t._cfg.el||this._createDom(t),"clip"in e&&this._setClip(t,e.clip),("shadowOffsetX"in e||"shadowOffsetY"in e||"shadowBlur"in e||"shadowColor"in e)&&this._setShadow(t),"text"!==t.type){for(var i in"fan"===t.type&&this._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",this._assembleMarker(e)),"rect"===t.type&&t._cfg.el.setAttribute("d",this._assembleRect(e)),e)e[i]!==n[i]&&this._setAttribute(t,i,e[i]);t._cfg.attrs=r.deepMix({},t._attrs),t._cfg.hasUpdate=!1}else this._updateText(t)},e._setAttribute=function(t,e,n){var i=t.type,a=t._attrs,o=t._cfg.el,s=this.context;if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(e))if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(e))o.setAttribute("c"+e,parseInt(n,10));else{if("polygon"===i&&"points"===e)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=(n=n.map(function(t){return t[0]+","+t[1]})).join(" ")),void o.setAttribute("points",n);if("path"===e&&r.isArray(n))o.setAttribute("d",this._formatPath(n));else if("img"!==e){if("transform"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("rotate"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("matrix"!==e)if("fillStyle"!==e&&"strokeStyle"!==e){if("clip"!==e)if(~e.indexOf("Arrow"))if(e=u[e],n){var c;c="boolean"==typeof n?s.getDefaultArrow(a,e):s.addArrow(a,e),o.setAttribute(e,"url(#"+c+")"),t._cfg[e]=c}else t._cfg[e]=null,o.removeAttribute(e);else"html"===e&&("string"==typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),u[e]&&o.setAttribute(u[e],n)}else this._setColor(t,e,n);else this._setTransform(t)}else this._setImage(t,n)}},e._createDom=function(t){var e=s[t.type],n=t._attrs;if(!e)throw new Error("the type"+t.type+"is not supported by svg");var r=document.createElementNS("http://www.w3.org/2000/svg",e);return t._cfg.el=r,t._cfg.parent&&t._cfg.parent.get("el").appendChild(r),t._cfg.attrs={},"text"===t.type?(r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(n.stroke||n.strokeStyle||r.setAttribute("stroke","none"),n.fill||n.fillStyle||r.setAttribute("fill","none")),r},e._assembleMarker=function(t){var e=t.r;if(void 0===t.r&&(e=t.radius),isNaN(Number(t.x))||isNaN(Number(t.y))||isNaN(Number(e)))return"";var n="";return n="function"==typeof t.symbol?t.symbol(t.x,t.y,e):a.Symbols[t.symbol||"circle"](t.x,t.y,e),r.isArray(n)&&(n=n.map(function(t){return t.join(" ")}).join("")),n},e._assembleRect=function(t){var e=t.x,n=t.y,a=t.width,o=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var u=i(s);return r.isArray(s)?1===s.length?u.r1=u.r2=u.r3=u.r4=s[0]:2===s.length?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):3===s.length?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s,[["M "+(e+u.r1)+","+n],["l "+(a-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-a)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]].join(" ")},e._formatPath=function(t){return~(t=t.map(function(t){return t.join(" ")}).join("")).indexOf("NaN")?"":t},e._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)},e._setImage=function(t,e){var n=t._attrs,i=t._cfg.el;if(r.isString(e))i.setAttribute("href",e);else if(e instanceof Image)n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",e.width),a.setAttribute("height",e.height),a.getContext("2d").putImageData(e,0,0),n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",a.toDataURL())}},e._updateFan=function(t){function e(t,e,n){return{x:e*Math.cos(t)+n.x,y:e*Math.sin(t)+n.y}}var n=t._attrs,i=t._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,u=n.endAngle;r.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var c=e(s,n.re,a),l=e(u,n.re,a),f=u>s?1:0,h=Math.abs(u-s)>Math.PI?1:0,p=n.rs,d=n.re,g=e(s,n.rs,a),v=e(u,n.rs,a);n.rs>0?(o.push("M "+l.x+","+l.y),o.push("L "+v.x+","+v.y),o.push("A "+p+","+p+",0,"+h+","+(1===f?0:1)+","+g.x+","+g.y),o.push("L "+c.x+" "+c.y)):(o.push("M "+a.x+","+a.y),o.push("L "+c.x+","+c.y)),o.push("A "+d+","+d+",0,"+h+","+f+","+l.x+","+l.y),o.push(n.rs>0?"L "+v.x+","+v.y:"Z"),i.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=t._attrs,n=t._cfg.attrs,r=t._cfg.el;for(var i in this._setFont(t),e)if(e[i]!==n[i]){if("text"===i){this._setText(t,""+e[i]);continue}if("fillStyle"===i||"strokeStyle"===i){this._setColor(t,i,e[i]);continue}if("matrix"===i){this._setTransform(t);continue}u[i]&&r.setAttribute(u[i],e[i])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",c[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",l[n.textAlign]||"left"),r&&+r<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,i=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";r.each(o,function(t,e){0===e?"alphabetic"===i?u+='<tspan x="'+a+'" dy="'+-s+'em">'+t+"</tspan>":"top"===i?u+='<tspan x="'+a+'" dy="0.9em">'+t+"</tspan>":"middle"===i?u+='<tspan x="'+a+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===i?u+='<tspan x="'+a+'" dy="-'+(s+.3)+'em">'+t+"</tspan>":"hanging"===i&&(u+='<tspan x="'+a+'" dy="'+(-(s-1)-.3)+'em">'+t+"</tspan>"):u+='<tspan x="'+a+'" dy="1em">'+t+"</tspan>"}),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var r=this.context.addClip(e);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},e._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(u[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(u[e],"url(#"+o+")")}else r.setAttribute(u[e],n);else r.setAttribute(u[e],"none")},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")}else e.removeAttribute("filter")},t}();t.exports=f},function(t,e,n){var r=n(1),i=n(222),a=n(223),o=n(224),s=n(225),u=n(226),c=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}var e=t.prototype;return e.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},e.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},e.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},e.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new o(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},e.addGradient=function(t){var e=new i(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addArrow=function(t,e){var n=new o(t,e);return this.el.appendChild(n.el),n.id},e.addShadow=function(t){var e=new a(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addPattern=function(t){var e=new u(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addClip=function(t){var e=new s(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();t.exports=c},function(t,e,n){function r(t){var e=t.match(s);if(!e)return"";var n="";return e.sort(function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])}),i.each(e,function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'}),n}var i=n(1),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u=function(){function t(t){var e=null,n=i.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,o,s=a.exec(t),u=i.mod(i.toRadian(parseFloat(s[1])),2*Math.PI),c=s[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=u&&u<Math.PI?(n={x:1,y:0},o={x:0,y:1}):Math.PI<=u&&u<1.5*Math.PI?(n={x:1,y:1},o={x:0,y:0}):(n={x:0,y:1},o={x:1,y:0});var l=Math.tan(u),f=l*l,h=(o.x-n.x+l*(o.y-n.y))/(f+1)+n.x,p=l*(o.x-n.x+l*(o.y-n.y))/(f+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",h),e.setAttribute("y2",p),e.innerHTML=r(c)}(t,e=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")):function(t,e){var n=o.exec(t),i=parseFloat(n[1]),a=parseFloat(n[2]),s=parseFloat(n[3]),u=n[4];e.setAttribute("cx",i),e.setAttribute("cy",a),e.setAttribute("r",s),e.innerHTML=r(u)}(t,e=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=u},function(t,e,n){var r=n(1),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},o=function(){function t(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return r.each(a,function(t,n){e.setAttribute(n,t)}),this.el=e,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var e=t.prototype;return e.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),function(t){if(i[t]!==e[t])return n=!1,!1}),n},e.update=function(t,e){var n=this.cfg;return n[i[t]]=e,this._parseShadow(n,this.el),this},e._parseShadow=function(t,e){e.innerHTML='<feDropShadow \n dx="'+(t.dx||0)+'" \n dy="'+(t.dy||0)+'" \n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />'},t}();t.exports=o},function(t,e,n){var r=n(1),i=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke","none"),a.setAttribute("fill",t.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i,this.cfg=t["marker-start"===e?"startArrow":"endArrow"],this.stroke=t.stroke||"#000",!0===this.cfg?this._setDefaultPath(e,a):this._setMarker(t.lineWidth,a),this}var e=t.prototype;return e.match=function(){return!1},e._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},e._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",a/t)},e.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=i},function(t,e,n){var r=n(1),i=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");return this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id,e.appendChild(t._cfg.el.cloneNode(!0)),this.cfg=t,this}var e=t.prototype;return e.match=function(){return!1},e.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=i},function(t,e,n){var r=n(1),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){function e(){console.log(u.width,u.height),n.setAttribute("width",u.width),n.setAttribute("height",u.height)}var n=document.createElementNS("http://www.w3.org/2000/svg","pattern");n.setAttribute("patternUnits","userSpaceOnUse");var a=document.createElementNS("http://www.w3.org/2000/svg","image");n.appendChild(a);var o=r.uniqueId("pattern_");n.id=o,this.el=n,this.id=o,this.cfg=t;var s=i.exec(t)[2];a.setAttribute("href",s);var u=new Image;return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?e():(u.onload=e,u.src=u.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=a},function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,r){var i=r.target||r.srcElement;if(!n[i.tagName]){for(var a=i.parentNode;a&&!n[a.tagName];)a=a.parentNode;i=a}return this._cfg.el===i?this:this.find(function(t){return t._cfg&&t._cfg.el===i})}},function(t,e,n){t.exports={addEventListener:n(229),createDom:n(94),getBoundingClientRect:n(230),getHeight:n(231),getOuterHeight:n(232),getOuterWidth:n(233),getRatio:n(234),getStyle:n(235),getWidth:n(236),modifyCSS:n(95),requestAnimationFrame:n(96)}},function(t,e){t.exports=function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e){t.exports=function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),r=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:n.top-r,bottom:n.bottom-r,left:n.left-i,right:n.right-i}}return e||null}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e){t.exports=function(t,e){var n=this.getHeight(t,e),r=parseFloat(this.getStyle(t,"borderTopWidth"))||0,i=parseFloat(this.getStyle(t,"paddingTop"))||0,a=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+r+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+i+a}},function(t,e){t.exports=function(t,e){var n=this.getWidth(t,e),r=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(t,"paddingLeft"))||0,a=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+r+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+i+a}},function(t,e){t.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){var r=n(5);t.exports=function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return r(n)?null:n}}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){t.exports={contains:n(41),difference:n(238),find:n(239),firstValue:n(240),flatten:n(241),flattenDeep:n(242),getRange:n(243),merge:n(42),pull:n(90),pullAt:n(130),reduce:n(244),remove:n(245),sortBy:n(246),union:n(247),uniq:n(131),valuesOfKey:n(64)}},function(t,e,n){var r=n(63),i=n(41);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r(t,function(t){return!i(e,t)})}},function(t,e,n){var r=n(11),i=n(26),a=n(128);t.exports=function(t,e){var n=void 0;if(r(e)&&(n=e),i(e)&&(n=function(t){return a(t,e)}),n)for(var o=0;o<t.length;o+=1)if(n(t[o]))return t[o];return null}},function(t,e,n){var r=n(5),i=n(4);t.exports=function(t,e){for(var n=null,a=0;a<t.length;a++){var o=t[a][e];if(!r(o)){n=i(o)?o[0]:o;break}}return n}},function(t,e,n){var r=n(4),i=n(2);t.exports=function(t){if(!r(t))return t;var e=[];return i(t,function(t){r(t)?i(t,function(t){e.push(t)}):e.push(t)}),e}},function(t,e,n){var r=n(4);t.exports=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(r(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n}},function(t,e,n){var r=n(63),i=n(4);t.exports=function(t){if(!(t=r(t,function(t){return!isNaN(t)})).length)return{min:0,max:0};if(i(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var a=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:a}}},function(t,e,n){var r=n(4),i=n(26),a=n(2);t.exports=function(t,e,n){if(!r(t)&&!i(t))return t;var o=n;return a(t,function(t,n){o=e(o,t,n)}),o}},function(t,e,n){var r=n(13),i=n(130);t.exports=function(t,e){var n=[];if(!r(t))return n;for(var a=-1,o=[],s=t.length;++a<s;){var u=t[a];e(u,a,t)&&(n.push(u),o.push(a))}return i(t,o),n}},function(t,e,n){var r=n(10),i=n(11),a=n(4);t.exports=function(t,e){var n=void 0;if(i(e))n=function(t,n){return e(t)-e(n)};else{var o=[];r(e)?o.push(e):a(e)&&(o=e),n=function(t,e){for(var n=0;n<o.length;n+=1){var r=o[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}},function(t,e,n){var r=n(2),i=n(34),a=n(131);t.exports=function(){var t=[],e=i(arguments);return r(e,function(e){t=t.concat(e)}),a(t)}},function(t,e,n){t.exports={getWrapBehavior:n(249),wrapBehavior:n(250)}},function(t,e){t.exports=function(t,e){return t["_wrap_"+e]}},function(t,e){t.exports=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){var r=n(252);t.exports={number2color:r,numberToColor:r,parsePath:n(253),parseRadius:n(254)}},function(t,e){var n={};t.exports=function(t){var e=n[t];if(!e){for(var r=t.toString(16),i=r.length;i<6;i++)r="0"+r;n[t]=e="#"+r}return e}},function(t,e,n){var r=n(4),i=n(10),a=n(2),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;t.exports=function(t){return r(t=t||[])?t:i(t)?(t=t.match(o),a(t,function(e,n){if((e=e.match(s))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}a(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0}},function(t,e,n){var r=n(4);t.exports=function(t){var e=0,n=0,i=0,a=0;return r(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}}},function(t,e,n){var r=n(35);t.exports={clamp:n(50),fixedBase:n(256),isDecimal:n(257),isEven:n(258),isInteger:n(259),isNegative:n(260),isNumberEqual:r,isOdd:n(261),isPositive:n(262),maxBy:n(132),minBy:n(263),mod:n(93),snapEqual:r,toDegree:n(92),toInt:n(133),toInteger:n(133),toRadian:n(91)}},function(t,e){t.exports=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t%1!=0}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t%2==0}},function(t,e,n){var r=n(9),i=Number.isInteger?Number.isInteger:function(t){return r(t)&&t%1==0};t.exports=i},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t<0}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t%2!=0}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t>0}},function(t,e,n){var r=n(4),i=n(11),a=n(2);t.exports=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){(s=i(e)?e(t):t[e])<o&&(n=t,o=s)}),n}}},function(t,e,n){t.exports={forIn:n(265),has:n(134),hasKey:n(266),hasValue:n(267),keys:n(129),isMatch:n(128),values:n(135)}},function(t,e,n){t.exports=n(2)},function(t,e,n){t.exports=n(134)},function(t,e,n){var r=n(41),i=n(135);t.exports=function(t,e){return r(i(t),e)}},function(t,e,n){var r=n(269),i=n(139),a=n(138),o=n(141);t.exports={catmullRom2Bezier:o,catmullRomToBezier:o,fillPath:n(270),fillPathByDiff:n(271),formatPath:n(273),intersection:r,pathIntersection:r,parsePathArray:n(137),parsePathString:n(140),pathToAbsolute:i,path2absolute:i,pathTocurve:a,path2curve:a,rectPath:n(136)}},function(t,e,n){var r=n(4),i=n(136),a=n(138),o=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},s=function(t,e,n,r,i,a,s,u,c){null===c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<12;d++){var g=l*f[d]+l,v=o(g,t,n,i,s),y=o(g,e,r,a,u);p+=h[d]*Math.sqrt(v*v+y*y)}return l*p},u=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var c=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,l=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,f=+c.toFixed(2),h=+l.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:c,y:l}}}},c=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},l=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:i(t,e,n,r),vb:[t,e,n,r].join(" ")}},f=function(t,e,n,i,a,o,s,u){r(t)||(t=[t,e,n,i,a,o,s,u]);var c=(function(t,e,n,r,i,a,o,s){for(var u=[],c=[[],[]],l=void 0,f=void 0,h=void 0,p=void 0,d=0;d<2;++d)if(0===d?(f=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,h=3*n-3*t):(f=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,h=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(f)<1e-12)continue;(p=-h/f)>0&&p<1&&u.push(p)}else{var g=f*f-4*h*l,v=Math.sqrt(g);if(!(g<0)){var y=(-f+v)/(2*l);y>0&&y<1&&u.push(y);var m=(-f-v)/(2*l);m>0&&m<1&&u.push(m)}}for(var x=u.length,b=x,_=void 0;x--;)_=1-(p=u[x]),c[0][x]=_*_*_*t+3*_*_*p*n+3*_*p*p*i+p*p*p*o,c[1][x]=_*_*_*e+3*_*_*p*r+3*_*p*p*a+p*p*p*s;return c[0][b]=t,c[1][b]=e,c[0][b+1]=o,c[1][b+1]=s,c[0].length=c[1].length=b+2,{min:{x:Math.min.apply(0,c[0]),y:Math.min.apply(0,c[1])},max:{x:Math.max.apply(0,c[0]),y:Math.max.apply(0,c[1])}}}).apply(null,t);return l(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},h=function(t,e,n,r,i,a,o,s,u){var c=1-u,l=Math.pow(c,3),f=Math.pow(c,2),h=u*u,p=h*u,d=t+2*u*(n-t)+h*(i-2*n+t),g=e+2*u*(r-e)+h*(a-2*r+e),v=n+2*u*(i-n)+h*(o-2*i+n),y=r+2*u*(a-r)+h*(s-2*a+r);return{x:l*t+3*f*u*n+3*c*u*u*i+p*o,y:l*e+3*f*u*r+3*c*u*u*a+p*s,m:{x:d,y:g},n:{x:v,y:y},start:{x:c*t+u*n,y:c*e+u*r},end:{x:c*i+u*o,y:c*a+u*s},alpha:90-180*Math.atan2(d-v,g-y)/Math.PI}},p=function(t,e,n){if(!function(t,e){return t=l(t),e=l(e),c(e,t.x,t.y)||c(e,t.x2,t.y)||c(e,t.x,t.y2)||c(e,t.x2,t.y2)||c(t,e.x,e.y)||c(t,e.x2,e.y)||c(t,e.x,e.y2)||c(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(f(t),f(e)))return n?0:[];for(var r=~~(s.apply(0,t)/8),i=~~(s.apply(0,e)/8),a=[],o=[],p={},d=n?0:[],g=0;g<r+1;g++){var v=h.apply(0,t.concat(g/r));a.push({x:v.x,y:v.y,t:g/r})}for(var y=0;y<i+1;y++){var m=h.apply(0,e.concat(y/i));o.push({x:m.x,y:m.y,t:y/i})}for(var x=0;x<r;x++)for(var b=0;b<i;b++){var _=a[x],w=a[x+1],O=o[b],j=o[b+1],S=Math.abs(w.x-_.x)<.001?"y":"x",M=Math.abs(j.x-O.x)<.001?"y":"x",E=u(_.x,_.y,w.x,w.y,O.x,O.y,j.x,j.y);if(E){if(p[E.x.toFixed(4)]===E.y.toFixed(4))continue;p[E.x.toFixed(4)]=E.y.toFixed(4);var P=_.t+Math.abs((E[S]-_[S])/(w[S]-_[S]))*(w.t-_.t),C=O.t+Math.abs((E[M]-O[M])/(j[M]-O[M]))*(j.t-O.t);P>=0&&P<=1&&C>=0&&C<=1&&(n?d++:d.push({x:E.x,y:E.y,t1:P,t2:C}))}}return d};t.exports=function(t,e){return function(t,e,n){t=a(t),e=a(e);for(var r=void 0,i=void 0,o=void 0,s=void 0,u=void 0,c=void 0,l=void 0,f=void 0,h=void 0,d=void 0,g=[],v=0,y=t.length;v<y;v++){var m=t[v];if("M"===m[0])r=u=m[1],i=c=m[2];else{"C"===m[0]?(r=(h=[r,i].concat(m.slice(1)))[6],i=h[7]):(h=[r,i,r,i,u,c,u,c],r=u,i=c);for(var x=0,b=e.length;x<b;x++){var _=e[x];if("M"===_[0])o=l=_[1],s=f=_[2];else{"C"===_[0]?(o=(d=[o,s].concat(_.slice(1)))[6],s=d[7]):(d=[o,s,o,s,l,f,l,f],o=l,s=f);for(var w=p(h,d,void 0),O=0,j=w.length;O<j;O++)w[O].segment1=v,w[O].segment2=x,w[O].bez1=h,w[O].bez2=d;g=g.concat(w)}}}}return g}(t,e)}},function(t,e){function n(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}function r(t,e,r){if(1===r)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,r){var i=[[t[1],t[2]]];r=r||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/r,u=0;u<r-1;u++){var c=n(o,s/(1-s*u));a.push(c.left),o=c.right}return a.push(o),a.map(function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])})}(t,e,r));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=r-1;o++)i.push(a)}return i}t.exports=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,a=n/i,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<i-n;s++)t.push(t[0]);return t}for(var u=0;u<i;u++){var c=Math.floor(a*u);o[c]=(o[c]||0)+1}var l=o.reduce(function(e,i,a){return e.concat(a===n?t[n]:r(t[a],t[a+1],i))},[]);return l.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||l.push("Z"),l}},function(t,e,n){function r(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var i=n(272);t.exports=function(t,e){var n=function(t,e){var n=t.length,a=e.length,o=void 0,s=0;if(0===n||0===a)return null;for(var u=[],c=0;c<=n;c++)u[c]=[],u[c][0]={min:c};for(var l=0;l<=a;l++)u[0][l]={min:l};for(var f=1;f<=n;f++){o=t[f-1];for(var h=1;h<=a;h++)s=i(o,e[h-1])?0:1,u[f][h]=r(u[f-1][h].min+1,u[f][h-1].min+1,u[f-1][h-1].min+s)}return u}(t,e),a=t.length,o=e.length,s=[],u=1,c=1;if(n[a][o]!==a){for(var l=1;l<=a;l++){var f=n[l][l].min;c=l;for(var h=u;h<=o;h++)n[l][h].min<f&&(f=n[l][h].min,c=h);n[l][u=c].type&&s.push({index:l-1,type:n[l][u].type})}for(var p=s.length-1;p>=0;p--)u=s[p].index,"add"===s[p].type?t.splice(u,0,[].concat(t[u])):t.splice(u,1)}if((a=t.length)<o)for(var d=0;d<o-a;d++)"z"===t[a-1][0]||"Z"===t[a-1][0]?t.splice(a-2,0,t[a-2]):t.push(t[a-1]);return t}},function(t,e,n){var r=n(2);t.exports=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r(t,function(t,r){if(t!==e[r])return n=!1,!1}),n}},function(t,e){function n(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function r(t,e,r){for(var i=[].concat(t),a=void 0,o=1/(r+1),s=n(e)[0],u=1;u<=r;u++)o*=u,0===(a=Math.floor(t.length*o))?i.unshift([s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]):i.splice(a,0,[s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]);return i}t.exports=function(t,e){if(t.length<=1)return t;for(var i=void 0,a=0;a<e.length;a++)if(t[a][0]!==e[a][0])switch(i=n(t[a]),e[a][0]){case"M":t[a]=["M"].concat(i[0]);break;case"L":t[a]=["L"].concat(i[0]);break;case"A":t[a]=[].concat(e[a]),t[a][6]=i[0][0],t[a][7]=i[0][1];break;case"Q":if(i.length<2){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["Q"].concat(i.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[a]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],2)}t[a]=["C"].concat(i.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(i.length<2){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["S"].concat(i.reduce(function(t,e){return t.concat(e)},[]));break;default:t[a]=e[a]}return t}},function(t,e,n){var r={lc:n(275),lowerCase:n(142),lowerFirst:n(75),substitute:n(276),uc:n(277),upperCase:n(143),upperFirst:n(87)};t.exports=r},function(t,e,n){t.exports=n(142)},function(t,e){t.exports=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]}):t}},function(t,e,n){t.exports=n(143)},function(t,e,n){var r=n(12),i={getType:n(84),isArray:n(4),isArrayLike:n(13),isBoolean:n(82),isFunction:n(11),isNil:n(5),isNull:n(279),isNumber:n(9),isObject:n(24),isObjectLike:n(48),isPlainObject:n(26),isPrototype:n(85),isType:r,isUndefined:n(280),isString:n(10),isRegExp:n(281),isDate:n(80),isArguments:n(282),isError:n(283)};t.exports=i},function(t,e){t.exports=function(t){return null===t}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"RegExp")}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Arguments")}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Error")}},function(t,e){t.exports=function(t,e,n){var r=void 0;return function(){var i=this,a=arguments,o=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(i,a)},e),o&&t.apply(i,a)}}},function(t,e,n){var r=n(13);t.exports=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a<t.length;a++)if(t[a]===e){i=a;break}return i}},function(t,e,n){var r=n(11),i=n(49);t.exports=function(t,e,n){return r(n)?!!n(t,e):i(t,e)}},function(t,e,n){var r=n(2),i=n(13);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,function(t,r){n.push(e(t,r))}),n}},function(t,e,n){var r=n(2),i=n(26),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(null===t||!i(t))return{};var n={};return r(e,function(e){a.call(t,e)&&(n[e]=t[e])}),n}},function(t,e){t.exports=function(t,e,n){var r=void 0,i=void 0,a=void 0,o=void 0,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return i=this,a=arguments,l<=0||l>e?(r&&(clearTimeout(r),r=null),s=c,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,l)),o};return c.cancel=function(){clearTimeout(r),s=0,r=i=a=null},c}},function(t,e,n){function r(t,e,n){var r={};return t.delay&&(r.delay=f.isFunction(t.delay)?t.delay(e,n):t.delay),r.easing=f.isFunction(t.easing)?t.easing(e,n):t.easing,r.duration=f.isFunction(t.duration)?t.duration(e,n):t.duration,r.callback=t.callback,r}function i(t,e){var n,i=t._id,a=t.get("index"),o=t.getBBox(),s=t.get("origin").points,u=(o.minX+o.maxX)/2,c=[u,n=s[0].y-s[1].y<=0?o.maxY:o.minY,1];t.apply(c),t.attr("transform",[["t",-u,-n],["s",1,.01],["t",u,n]]);var l={transform:[["t",-u,-n],["s",1,100],["t",u,n]]},f=r(e,a,i);t.animate(l,f.duration,f.easing,f.callback,f.delay)}function a(t,e){var n,i=t._id,a=t.get("index"),o=t.getBBox(),s=t.get("origin").points,u=(o.minY+o.maxY)/2,c=[n=s[0].y-s[1].y>0?o.maxX:o.minX,u,1];t.apply(c),t.attr({transform:[["t",-n,-u],["s",.01,1],["t",n,u]]});var l={transform:[["t",-n,-u],["s",100,1],["t",n,u]]},f=r(e,a,i);t.animate(l,f.duration,f.easing,f.callback,f.delay)}function o(t,e,n){var i,a,o=t._id,s=t.get("index");if(n.isPolar&&"point"!==t.name)i=n.getCenter().x,a=n.getCenter().y;else{var u=t.getBBox();i=(u.minX+u.maxX)/2,a=(u.minY+u.maxY)/2}t.apply([i,a,1]),t.attr({transform:[["t",-i,-a],["s",.01,.01],["t",i,a]]});var c={transform:[["t",-i,-a],["s",100,100],["t",i,a]]},l=r(e,s,o);t.animate(c,l.duration,l.easing,l.callback,l.delay)}function s(t,e){if("path"===t.get("type")){var n=t._id,i=t.get("index"),a=p.pathToAbsolute(t.attr("path"));t.attr("path",[a[0]]);var o={path:a},s=r(e,i,n);t.animate(o,s.duration,s.easing,s.callback,s.delay)}}function u(t,e,n,i,a){var o,s=function(t){var e,n,r,i,a,o=t.start,s=t.end,u=t.getWidth(),c=t.getHeight();return t.isPolar?(i=t.getRadius(),r=t.getCenter(),n=t.endAngle,(a=new h.Fan({attrs:{x:r.x,y:r.y,rs:0,re:i+200,startAngle:e=t.startAngle,endAngle:e}})).endState={endAngle:n}):(a=new h.Rect({attrs:{x:o.x-200,y:s.y-200,width:t.isTransposed?u+400:0,height:t.isTransposed?0:c+400}})).endState=t.isTransposed?{height:c+400}:{width:u+400},a.isClip=!0,a}(n),u=t.get("canvas"),c=t._id,l=t.get("index");i?(s.attr("startAngle",i),s.attr("endAngle",i),o={endAngle:a}):o=s.endState,s.set("canvas",u),t.attr("clip",s),t.setSilent("animating",!0);var f=r(e,l,c);s.animate(o,f.duration,f.easing,function(){t&&!t.get("destroyed")&&(t.attr("clip",null),t.setSilent("cacheShape",null),t.setSilent("animating",!1),s.remove())},f.delay)}function c(t,e){var n=t._id,i=t.get("index"),a=f.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),o=f.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var s={fillOpacity:a,strokeOpacity:o},u=r(e,i,n);t.animate(s,u.duration,u.easing,u.callback,u.delay)}function l(t,e,n){var r=function(t,e){var n,r,i=function(t){if(f.isEmpty(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,i=t[0].y;return f.each(t,function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,r=r>t.y?t.y:r,i=i<t.y?t.y:i}),{minX:e,maxX:n,minY:r,maxY:i,centerX:(e+n)/2,centerY:(r+i)/2}}(t.points||t.get("origin").points),a=e.startAngle,o=e.endAngle-a;return e.isTransposed?(n=i.maxY*o,r=i.minY*o):(n=i.maxX*o,r=i.minX*o),{startAngle:r+=a,endAngle:n+=a}}(t,n);u(t,e,n,r.startAngle,r.endAngle)}var f=n(0),h=n(16),p=f.PathUtil;t.exports={enter:{clipIn:u,zoomIn:o,pathIn:s,scaleInY:i,scaleInX:a,fanIn:l,fadeIn:c},leave:{lineWidthOut:function(t,e){var n=t._id,i=r(e,t.get("index"),n);t.animate({lineWidth:0,opacity:0},i.duration,i.easing,function(){t.remove()},i.delay)},zoomOut:function(t,e,n){var i,a,o=t._id,s=t.get("index");if(n.isPolar&&"point"!==t.name)i=n.getCenter().x,a=n.getCenter().y;else{var u=t.getBBox();i=(u.minX+u.maxX)/2,a=(u.minY+u.maxY)/2}t.apply([i,a,1]);var c={transform:[["t",-i,-a],["s",.01,.01],["t",i,a]]},l=r(e,s,o);t.animate(c,l.duration,l.easing,function(){t.remove()},l.delay)},pathOut:function(t,e){if("path"===t.get("type")){var n=t._id,i=t.get("index"),a={path:[p.pathToAbsolute(t.attr("path"))[0]]},o=r(e,i,n);t.animate(a,o.duration,o.easing,function(){t.remove()},o.delay)}},fadeOut:function(t,e){var n=t._id,i=r(e,t.get("index"),n);t.animate({fillOpacity:0,strokeOpacity:0},i.duration,i.easing,function(){t.remove()},i.delay)}},appear:{clipIn:u,zoomIn:o,pathIn:s,scaleInY:i,scaleInX:a,fanIn:l,fadeIn:c},update:{fadeIn:c,fanIn:l}}},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e,n){var r=(t-e)/(n-e);return r>=0&&r<=1}function a(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,a=t.end;n=i(e.x,r.x,a.x)&&i(e.y,r.y,a.y)}else{var o=t.invert(e);n=o.x>=0&&o.y>=0&&o.x<=1&&o.y<=1}return n}var o=n(148),s=n(20),u=n(0),c=n(165),l=n(7),f=n(151),h=n(355),p={};u.each(s,function(t,e){var n=u.lowerFirst(e);p[n]=function(e){var n=new t(e);return this.addGeom(n),n}});var d=function(t){function e(e){var n,i=r(r(n=t.call(this,e)||this));return i._setTheme(),u.each(s,function(t,e){var n=u.lowerFirst(e);i[n]=function(e){void 0===e&&(e={}),e.viewTheme=i.get("viewTheme");var n=new t(e);return i.addGeom(n),n}}),i.init(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{viewContainer:null,coord:null,start:{x:0,y:0},end:{x:1,y:1},geoms:[],scales:{},options:{},scaleController:null,padding:0,theme:null,parent:null,tooltipEnable:!0,animate:l.animate,visible:!0}},n._setTheme=function(){var t=this.get("theme"),e={},n={};u.isObject(t)?n=t:-1!==u.indexOf(Object.keys(f),t)&&(n=f[t]),u.deepMix(e,l,n),this.set("viewTheme",e)},n.init=function(){this._initViewPlot(),this.get("data")&&this._initData(this.get("data")),this._initOptions(),this._initControllers(),this._bindEvents()},n._initOptions=function(){var t=this,e=u.mix({},t.get("options"));e.scales||(e.scales={}),e.coord||(e.coord={}),!1===e.animate&&this.set("animate",!1),(!1===e.tooltip||u.isNull(e.tooltip))&&this.set("tooltipEnable",!1),e.geoms&&e.geoms.length&&u.each(e.geoms,function(e){t._createGeom(e)});var n=t.get("scaleController");n&&(n.defs=e.scales);var r=t.get("coordController");r&&r.reset(e.coord),this.set("options",e)},n._createGeom=function(t){var e,n=t.type;this[n]&&(e=this[n](),u.each(t,function(t,n){if(e[n])if(u.isObject(t)&&t.field)if("label"===t)e[n](t.field,t.callback,t.cfg);else{var r;u.each(t,function(t,e){"field"!==e&&(r=t)}),e[n](t.field,r)}else e[n](t)}))},n._initControllers=function(){var t=this.get("options"),e=this.get("viewTheme"),n=this.get("canvas"),r=new c.Scale({viewTheme:e,defs:t.scales}),i=new c.Coord(t.coord);this.set("scaleController",r),this.set("coordController",i);var a=new c.Axis({canvas:n,viewTheme:e});this.set("axisController",a);var o=new c.Guide({viewTheme:e,options:t.guides||[]});this.set("guideController",o)},n._initViewPlot=function(){this.get("viewContainer")||this.set("viewContainer",this.get("middlePlot"))},n._initGeoms=function(){for(var t=this.get("geoms"),e=this.get("filteredData"),n=this.get("coord"),r=this.get("_id"),i=0;i<t.length;i++){var a=t[i];a.set("data",e),a.set("coord",n),a.set("_id",r+"-geom"+i),a.set("keyFields",this.get("keyFields")),a.init()}},n._clearGeoms=function(){for(var t=this.get("geoms"),e=0;e<t.length;e++)t[e].clear()},n._removeGeoms=function(){for(var t=this.get("geoms");t.length>0;)t.shift().destroy()},n._drawGeoms=function(){this.emit("beforedrawgeoms");for(var t=this.get("geoms"),e=this.get("coord"),n=0;n<t.length;n++){var r=t[n];r.setCoord(e),r.paint()}this.emit("afterdrawgeoms")},n.isShapeInView=function(t){var e=this.get("_id"),n=t._id;if(n)return n.split("-")[0]===e;for(var r=t;r;){if(r.get("viewId")===e)return!0;r=r.get("parent")}return!1},n.getViewRegion=function(){var t,e,n=this.get("parent");if(n){var r=n.getViewRegion(),i=this._getViewRegion(r.start,r.end);t=i.start,e=i.end}else t=this.get("start"),e=this.get("end");return{start:t,end:e}},n._getViewRegion=function(t,e){var n=this.get("start"),r=this.get("end"),i=n.x,a=1-r.y,o=r.x,s=1-n.y,c=this.get("padding"),l=u.toAllPadding(c);return{start:{x:i*(e.x-t.x)+t.x+l[3],y:a*(e.y-t.y)+t.y-l[2]},end:{x:o*(e.x-t.x)+t.x-l[1],y:s*(e.y-t.y)+t.y+l[0]}}},n._createCoord=function(){var t=this.get("coordController"),e=this.getViewRegion(),n=t.createCoord(e.start,e.end);this.set("coord",n)},n._renderAxes=function(){var t=this.get("options").axes;if(!1!==t){var e=this.get("axisController");e.container=this.get("backPlot"),e.coord=this.get("coord"),e.options=t||{};var n=this.getXScale(),r=this.getYScales(),i=this.get("_id");e.createAxis(n,r,i)}},n._renderGuides=function(){var t=this.get("guideController");if(!u.isEmpty(t.options)){var e=this.get("coord");t.view=this,t.backContainer=this.get("backPlot"),t.frontContainer=this.get("frontPlot"),t.xScales=this._getScales("x"),t.yScales=this._getScales("y"),t.render(e)}},n._bindEvents=function(){var t=new c.Event({view:this,canvas:this.get("canvas")});t.bindEvents(),this.set("eventController",t)},n._clearEvents=function(){var t=this.get("eventController");t&&t.clearEvents()},n._getScales=function(t){for(var e=this.get("geoms"),n={},r=0;r<e.length;r++){var i=e[r],a="x"===t?i.getXScale():i.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},n._adjustScale=function(){this._setCatScalesRange();for(var t=this.get("geoms"),e=this.get("scaleController").defs,n=0;n<t.length;n++){var r=t[n];if("interval"===r.get("type")){var i=r.getYScale(),a=i.field,o=i.max;e[a]&&e[a].min||"time"===i.type||(i.min>0?i.change({min:0}):o<=0&&i.change({max:0}))}}},n._setCatScalesRange=function(){var t=this.get("coord"),e=this.get("viewTheme"),n=this.getXScale(),r=this.getYScales(),i=[];n&&i.push(n),i=i.concat(r);var a=t.isPolar&&function(t){var e=t.startAngle,n=t.endAngle;return!(!u.isNil(e)&&!u.isNil(n)&&n-e<2*Math.PI)}(t),o=this.get("scaleController").defs;u.each(i,function(n){if((n.isCategory||n.isIdentity)&&n.values&&(!o[n.field]||!o[n.field].range)){var r,i=n.values.length;if(1===i)r=[.5,1];else{var s=0;r=a?t.isTransposed?[(s=1/i*e.widthRatio.multiplePie)/2,1-s/2]:[0,1-1/i]:[s=1/i*1/2,1-s]}n.range=r}})},n.getXScale=function(){var t=this.get("geoms"),e=null;return u.isEmpty(t)||(e=t[0].getXScale()),e},n.getYScales=function(){for(var t=this.get("geoms"),e=[],n=0;n<t.length;n++){var r=t[n].getYScale();r&&-1===u.indexOf(e,r)&&e.push(r)}return e},n.getXY=function(t){var e,n,r=this.get("coord"),i=this._getScales("x"),a=this._getScales("y");for(var o in t)i[o]&&(e=i[o].scale(t[o])),a[o]&&(n=a[o].scale(t[o]));return u.isNil(e)||u.isNil(n)?null:r.convert({x:e,y:n})},n.getSnapRecords=function(t){var e=this.get("geoms"),n=[];return u.each(e,function(e){var r,i=e.get("dataArray");u.each(i,function(i){(r=e.findPoint(t,i))&&n.push(r)})}),n},n.addGeom=function(t){this.get("geoms").push(t),t.set("view",this);var e=this.get("viewContainer");t.set("container",e),t.set("animate",this.get("animate")),t.bindEvents()},n.removeGeom=function(t){var e=this.get("geoms");u.Array.remove(e,t),t.destroy()},n.createScale=function(t,e){var n=this.get("scales"),r=this.get("parent"),i=n[t];if(!e){var a=this.get("filteredData"),o=this._getFieldsForLegend();e=a.length&&-1===o.indexOf(t)?a:this.get("data")}var s=this.get("scaleController");if(i){if(i.sync){var u=s.createScale(t,e);this._syncScale(i,u)}}else{if((i=s.createScale(t,e)).sync&&r){var c=r.createScale(t,e);i=this._getSyncScale(c,i)}n[t]=i}return i},n._getFieldsForLegend=function(){var t=[],e=this.get("geoms");return u.each(e,function(e){var n=e.getFieldsForLegend();t=t.concat(n)}),u.uniq(t)},n._getSyncScale=function(t,e){return t.type!==e.type?e:(this._syncScale(t,e),t)},n._syncScale=function(t,e){var n=u.union(t.values,e.values);if(e.isLinear){var r=Math.max(t.max,e.max),i=Math.min(t.min,e.min);t.max===r&&t.min===i||t.change({min:i,max:r,values:n})}n.length!==t.values.length&&t.change({values:n})},n.getFilteredValues=function(t){var e=this.get("scales")[t].values,n=this._getFilters();return n&&n[t]?e.filter(n[t]):e.slice(0)},n.getFilteredOutValues=function(t){var e=this.get("scales")[t].values,n=this._getFilters();return n&&n[t]?e.filter(function(e){return!n[t](e)}):[]},n.filter=function(t,e){var n=this.get("options");n.filters||(n.filters={}),n.filters[t]=e,this.get("scaleController").filters=n.filters},n._getFilters=function(){return this.get("options").filters},n.execFilter=function(t){var e=this._getFilters();return e&&(t=t.filter(function(t){var n=!0;return u.each(e,function(e,r){if(e&&!(n=e(t[r],t)))return!1}),n})),t},n.axis=function(t,e){var n=this.get("options");return!1===t?n.axes=!1:(n.axes||(n.axes={}),n.axes[t]=e),this},n.guide=function(){return this.get("guideController")},n._getKeyFields=function(t){var e=[];u.each(t,function(t,n){t.key&&e.push(n)}),this.set("keyFields",e)},n.scale=function(t,e){var n=this.get("options").scales;return u.isObject(t)?u.mix(n,t):n[t]=e,this._getKeyFields(n),this},n.tooltip=function(t){return this.set("tooltipEnable",t),this},n.animate=function(t){return this.get("options").animate=t,this.set("animate",t),this},n.changeOptions=function(t){return this.set("options",t),this._initOptions(t),this},n.getViewsByPoint=function(t){var e=[],n=this.get("views");return a(this.get("coord"),t)&&e.push(this),u.each(n,function(n){n.get("visible")&&a(n.get("coord"),t)&&e.push(n)}),e},n.eachShape=function(t){var e=this,n=e.get("views"),r=e.get("canvas");u.each(n,function(e){e.eachShape(t)});var i=this.get("geoms");return u.each(i,function(n){var r=n.getShapes();u.each(r,function(r){var i=r.get("origin");if(u.isArray(i)){var a=i.map(function(t){return t._origin});t(a,r,n,e)}else t(i._origin,r,n,e)})}),r.draw(),this},n.filterShape=function(t){return this.eachShape(function(e,n,r,i){t(e,n,r,i)?n.show():n.hide()}),this},n.clearInner=function(){this.set("scales",{}),this.emit("beforeclearinner"),this.get("options").geoms=null,this._clearGeoms(),this.get("guideController")&&this.get("guideController").reset(),this.get("axisController")&&this.get("axisController").clear(),this.emit("afterclearinner")},n.clear=function(){return this.get("options").filters=null,this._removeGeoms(),this.clearInner(),this.get("guideController")&&this.get("guideController").clear(),this.set("isUpdate",!1),this.set("keyFields",[]),this},n.coord=function(t,e){var n=this.get("coordController");return n.reset({type:t,cfg:e}),n},n.resetCoord=function(){this._createCoord()},n.source=function(t,e){return this._initData(t),e&&this.scale(e),this.emit("setdata"),this},n.changeData=function(t){return this.emit("beforechangedata"),this._initData(t),this.emit("afterchangedata"),this.repaint(),this},n._initData=function(t){var e=this.get("dataView");e&&(e.off("change",u.getWrapBehavior(this,"_onViewChange")),this.set("dataView",null)),t&&t.isDataView&&(t.on("change",u.wrapBehavior(this,"_onViewChange")),this.set("dataView",t),t=t.rows),this.set("data",t)},n._onViewChange=function(){this.emit("beforechangedata");var t=this.get("dataView").rows;this.set("data",t),this.emit("afterchangedata"),this.repaint()},n.beforeRender=function(){var t=this.get("views");u.each(t,function(t){t.beforeRender()}),this.initView()},n.drawComponents=function(){var t=this.get("views");u.each(t,function(t){t.drawComponents()}),this._renderAxes(),this._renderGuides()},n.drawCanvas=function(t){if(!t){var e=this.get("views");this.get("backPlot").sort();var n=this.get("canvas");if(this.get("animate")){var r=this.get("isUpdate");u.each(e,function(t){h.execAnimation(t,r)}),h.execAnimation(this,r)}else n.draw()}},n.render=function(t){return this.clearInner(),this.emit("beforerender"),this.beforeRender(),this.emit("beforepaint"),this.drawComponents(),this.paint(),this.emit("afterpaint"),this.drawCanvas(t),this.emit("afterrender"),this.set("rendered",!0),this},n.initView=function(){var t=this.get("data")||[],e=this.execFilter(t);this.set("filteredData",e),this._createCoord(),this.emit("beforeinitgeoms"),this._initGeoms(),this._adjustScale()},n.paint=function(){var t=this.get("views");u.each(t,function(t){t.paint()});var e=this.get("data");u.isEmpty(e)||this._drawGeoms(),this.get("visible")||this.changeVisible(!1,!0)},n.changeVisible=function(t,e){var n=this.get("geoms");u.each(n,function(e){e.changeVisible(t,!0)}),this.get("axisController")&&this.get("axisController").changeVisible(t),this.get("guideController")&&this.get("guideController").changeVisible(t),e||this.get("canvas").draw()},n.repaint=function(){this.set("isUpdate",!0),this.clearInner(),this.render()},n.destroy=function(){this._clearEvents();var e=this.get("dataView");e&&e.off("change",u.getWrapBehavior(this,"_onViewChange")),this.clear(),t.prototype.destroy.call(this)},e}(o);t.exports=d},function(t,e,n){var r=n(5),i=n(4),a=n(2),o=function(t){function e(e){var n;return(n=t.call(this,e)||this).names=["x","y"],n.type="position",n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e.prototype.mapping=function(t,e){var n,o,s,u=this.scales,c=this.coord,l=u[0],f=u[1];if(r(t)||r(e))return[];if(i(e)&&i(t)){n=[],o=[];for(var h=0,p=0,d=t.length,g=e.length;h<d&&p<g;h++,p++)s=c.convertPoint({x:l.scale(t[h]),y:f.scale(e[p])}),n.push(s.x),o.push(s.y)}else if(i(e))t=l.scale(t),o=[],a(e,function(e){e=f.scale(e),s=c.convertPoint({x:t,y:e}),n&&n!==s.x?(i(n)||(n=[n]),n.push(s.x)):n=s.x,o.push(s.y)});else if(i(t))e=f.scale(e),n=[],a(t,function(t){t=l.scale(t),s=c.convertPoint({x:t,y:e}),o&&o!==s.y?(i(o)||(o=[o]),o.push(s.y)):o=s.y,n.push(s.x)});else{t=l.scale(t),e=f.scale(e);var v=c.convertPoint({x:t,y:e});n=v.x,o=v.y}return[n,o]},e}(n(29));t.exports=o},function(t,e,n){var r=n(10),i=n(149),a=function(t){function e(e){var n;return(n=t.call(this,e)||this).names=["color"],n.type="color",n.gradient=null,r(n.values)&&(n.linear=!0),n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e.prototype.getLinearValue=function(t){var e=this.gradient;return e||(e=i.gradient(this.values),this.gradient=e),e(t)},e}(n(29));t.exports=a},function(t,e,n){var r=function(t){function e(e){var n;return(n=t.call(this,e)||this).names=["shape"],n.type="shape",n.gradient=null,n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e.prototype.getLinearValue=function(t){var e=this.values;return e[Math.round((e.length-1)*t)]},e}(n(29));t.exports=r},function(t,e,n){var r=function(t){function e(e){var n;return(n=t.call(this,e)||this).names=["size"],n.type="size",n.gradient=null,n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e}(n(29));t.exports=r},function(t,e,n){var r=function(t){function e(e){var n;return(n=t.call(this,e)||this).names=["opacity"],n.type="opacity",n.gradient=null,n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e}(n(29));t.exports=r},function(t,e,n){var r=n(8),i=n(30),a=n(298),o=n(299),s=n(150),u=n(300),c=n(301);r(i.prototype,s),r(a.prototype,s,u),r(o.prototype,c),i.Jitter=n(302),i.Symmetric=n(303),i.Dodge=a,i.Stack=o,t.exports=i},function(t,e,n){var r=n(30),i=n(2),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.marginRatio=.5,this.dodgeRatio=.5,this.adjustNames=["x","y"]},n.getDodgeOffset=function(t,e,n){var r=t.pre,i=t.next,a=i-r,o=a*this.dodgeRatio/n,s=this.marginRatio*o;return(r+i)/2+(.5*(a-n*o-(n-1)*s)+((e+1)*o+e*s)-.5*o-.5*a)},n.processAdjust=function(t){var e=this,n=t.length,r=e.xField;i(t,function(t,i){for(var a=0,o=t.length;a<o;a++){var s=t[a],u=s[r],c=e.getDodgeOffset({pre:u-.5,next:u+.5},i,n);s[r]=c}})},e}(r);r.Dodge=a,t.exports=a},function(t,e,n){var r=n(4),i=n(5),a=n(30),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null},n.processAdjust=function(t){this.processStack(t)},n.processStack=function(t){var e=this.xField,n=this.yField,a=t.length,o={positive:{},negative:{}};this.reverseOrder&&(t=t.slice(0).reverse());for(var s=0;s<a;s++)for(var u=t[s],c=0,l=u.length;c<l;c++){var f=u[c],h=f[n],p=(f[e]||0).toString();if(h=r(h)?h[1]:h,!i(h)){var d=h>=0?"positive":"negative";o[d][p]||(o[d][p]=0),f[n]=[o[d][p],h+o[d][p]],o[d][p]+=h}}},e}(a);a.Stack=o,t.exports=o},function(t,e,n){var r={merge:n(42),values:n(64)},i=n(144),a=n(2);t.exports={processAdjust:function(t){var e=r.merge(t),n=this.dodgeBy,a=t;n&&(a=i(e,n)),this.cacheMap={},this.adjDataArray=a,this.mergeData=e,this.adjustData(a,e),this.adjDataArray=null,this.mergeData=null},getDistribution:function(t){var e=this.cacheMap,n=e[t];return n||(n={},a(this.adjDataArray,function(e,i){var o=r.values(e,t);o.length||o.push(0),a(o,function(t){n[t]||(n[t]=[]),n[t].push(i)})}),e[t]=n),n},adjustDim:function(t,e,n,r,i){var o=this,s=o.getDistribution(t),u=o.groupData(n,t);a(u,function(n,r){var u;r=parseFloat(r),u=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,r,e),a(n,function(e){var n=s[e[t]],r=n.indexOf(i);e[t]=o.getDodgeOffset(u,r,n.length)})})}}},function(t,e){t.exports={_initDefaultCfg:function(){this.xField=null,this.yField=null,this.height=null,this.size=10,this.reverseOrder=!1,this.adjustNames=["y"]},processOneDimStack:function(t){var e=this.xField,n=this.yField||"y",r=this.height,i={};this.reverseOrder&&(t=t.slice(0).reverse());for(var a=0,o=t.length;a<o;a++)for(var s=t[a],u=0,c=s.length;u<c;u++){var l=s[u],f=2*(l.size||this.size)/r,h=l[e];i[h]||(i[h]=f/2),l[n]=i[h],i[h]+=f}},processAdjust:function(t){this.yField?this.processStack(t):this.processOneDimStack(t)}}},function(t,e,n){var r=n(2),i=n(8),a={merge:n(42)},o=n(30),s=n(150),u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null,this.adjustNames=["x","y"],this.groupFields=null},n.processAdjust=function(t){var e=a.merge(t);this.adjDataArray=t,this.mergeData=e,this.adjustData(t,e),this.adjFrames=null,this.mergeData=null},n.getAdjustOffset=function(t,e){var n=e-t;return t+.05*n+.9*n*Math.random()},n._adjustGroup=function(t,e,n,i){var a=this,o=a.getAdjustRange(e,n,i);r(t,function(t){t[e]=a.getAdjustOffset(o.pre,o.next)})},n.adjustDim=function(t,e,n){var i=this,a=i.groupData(n,t);r(a,function(n,r){r=parseFloat(r),i._adjustGroup(n,t,r,e)})},e}(o);i(u.prototype,s),o.Jitter=u,t.exports=u},function(t,e,n){var r=n(2),i=n(132),a=n(4),o={merge:n(42)},s=n(30),u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null,this.cacheMax=null,this.adjustNames=["y"],this.groupFields=null},n._getMax=function(t){var e=i(this.mergeData,function(e){var n=e[t];return a(n)?Math.max.apply(null,n):n})[t];return a(e)?Math.max.apply(null,e):e},n._getXValuesMax=function(){var t=this.yField,e=this.xField,n={};return r(this.mergeData,function(r){var i=r[e],o=r[t],s=a(o)?Math.max.apply(null,o):o;n[i]=n[i]||0,n[i]<s&&(n[i]=s)}),n},n.processAdjust=function(t){var e=o.merge(t);this.mergeData=e,this._processSymmetric(t),this.mergeData=null},n._processSymmetric=function(t){var e,n=this.xField,i=this.yField,o=this._getMax(i),s=t[0][0];s&&a(s[i])&&(e=this._getXValuesMax()),r(t,function(t){r(t,function(t){var s,u=t[i];if(a(u)){s=(o-e[t[n]])/2;var c=[];r(u,function(t){c.push(s+t)}),t[i]=c}else t[i]=[s=(o-u)/2,u+s]})})},e}(s);s.Symmetric=u,t.exports=u},function(t,e,n){var r,i,a=n(0),o=n(152),s=a.deepMix({},o,{background:{fill:"#1F1F1F",radius:2},plotBackground:{fill:"#1F1F1F"},axis:{top:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},bottom:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},left:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},right:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},circle:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},radius:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},helix:{line:{stroke:"#737373"},tickLine:{stroke:"#737373"}}},label:{textStyle:{fill:"#A6A6A6"}},legend:{right:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},left:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},top:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},bottom:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},html:(r={},r["g2-legend"]={color:"#D9D9D9"},r),gradient:{textStyle:{fill:"#D9D9D9"},lineStyle:{stroke:"#404040"}}},tooltip:(i={},i["g2-tooltip"]={color:"#D9D9D9",backgroundColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0px 0px 2px #000"},i),tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#fff",opacity:.1}},tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(255, 255, 255, 0.45)"}},guide:{line:{text:{style:{fill:"#A6A6A6"}}},text:{style:{fill:"#A6A6A6"}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}}}});t.exports=s},function(t,e,n){var r=n(65),i=n(164),a=n(335),o=n(336);t.exports={getLabelsClass:function(t,e){var n=r;return"polar"===t?n=i:"theta"===t?n=a:"interval"!==e&&"polygon"!==e||(n=o),n}}},function(t,e,n){var r=n(31);r.Base=r,r.Circle=n(310),r.Grid=n(153),r.Helix=n(311),r.Line=n(312),r.Polyline=n(313),t.exports=r},function(t,e,n){function r(t,e,n,r){var i=t.getBBox(),a=i.width,o=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=o/2,s.textAlign="left";break;case 1:s.y-=o/2,s.textAlign="right";break;case 2:s.y+=o/2,s.textAlign="right";break;case 3:s.y+=o/2,s.textAlign="left";break;case 5:s.y-=o/2;break;case 6:s.y+=o/2;break;case 7:s.x+=a/2,s.textAlign="left";break;case 8:s.x-=a/2,s.textAlign="right"}return t.attr(s),t.getBBox()}var i=n(155);t.exports=function(t){for(var e,n,a,o,s,u=new i,c=[],l=0;l<t.length;l++){a=(n=t[l]).attr("x"),o=n.attr("y"),s=!1;for(var f=0;f<8;f++)if(e=r(n,a,o,f),u.hasGap(e)){u.fillGap(e),s=!0;break}s||c.push(n)}for(var h=0;h<c.length;h++)c[h].remove();return s}},function(t,e,n){function r(t,e){var n,r=t.attr("x"),i=t.attr("y"),o=t.getBBox(),s=Math.sqrt(o.width*o.width+o.height*o.height),u=1,c=0,l=0,f=function(t){return[(t*=.1)*Math.cos(t),t*Math.sin(t)]};if(e.hasGap(o))return e.fillGap(o),!0;for(var h=!1,p=0;Math.min(Math.abs(c),Math.abs(l))<s&&p<a;)if(n=f(u+=-1),t.attr({x:r+(c=~~n[0]),y:i+(l=~~n[1])}),p++,e.hasGap(t.getBBox())){e.fillGap(o),h=!0;break}return h}var i=n(155),a=20;t.exports=function(t){for(var e,n=new i,a=[],o=0;o<t.length;o++)r(e=t[o],n)||a.push(e);for(var s=0;s<a.length;s++)a[s].remove()}},function(t,e){t.exports=function(t,e){for(var n,r,i=[],a=0;a<t.length;a++)n=t[a].getBBox(),r=e[a].getBBox(),n.width>r.width||n.height>r.height?i.push(t[a]):n.width*n.height>r.width*r.height&&i.push(t[a]);for(var o=0;o<i.length;o++)i[o].remove()}},function(t,e,n){var r=n(3),i=n(31),a=r.MatrixUtil.vec2,o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"circle",tickInterval:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},_labelOffset:5})},n.parseTick=function(t,e,n){return{text:t,value:e/n}},n._getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},n.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getCirclePoint(n)},n.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y];if(!r.isNil(t)){var o=a.length(i);a.scale(i,i,t/o)}return i},n.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},n.getTickEnd=function(t,e){var n=this.get("tickLine");return this.getSidePoint(t,e=e||n.length)},n.getTextAnchor=function(t){var e;return r.snapEqual(t[0],0)?e="center":t[0]>0?e="left":t[0]<0&&(e="right"),e},n.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,a=this.get("startAngle"),o=this.get("endAngle"),s=this.get("inner"),u=[];if(Math.abs(o-a)===2*Math.PI)u=[["M",e,n],["m",0,-i],["a",r,i,0,1,1,0,2*i],["a",r,i,0,1,1,0,-2*i],["z"]];else{var c=this._getCirclePoint(a),l=this._getCirclePoint(o),f=Math.abs(o-a)>Math.PI?1:0,h=a>o?0:1;if(s){var p=this.getSideVector(s*r,c),d=this.getSideVector(s*r,l),g={x:p[0]+e,y:p[1]+n},v={x:d[0]+e,y:d[1]+n};u=[["M",g.x,g.y],["L",c.x,c.y],["A",r,i,0,f,h,l.x,l.y],["L",v.x,v.y],["A",r*s,i*s,0,f,Math.abs(h-1),g.x,g.y]]}else u=[["M",e,n],["L",c.x,c.y],["A",r,i,0,f,h,l.x,l.y],["L",e,n]]}return u},n.addLabel=function(e,n,r){var i=this.get("label").offset||this.get("_labelOffset")||.001;n=this.getSidePoint(n,i),t.prototype.addLabel.call(this,e,n,r)},n.autoRotateLabels=function(){var t=this.get("ticks"),e=this.get("labelRenderer");if(e&&t.length>12){var n=this.get("radius"),i=this.get("startAngle"),a=this.get("endAngle")-i,o=Math.sin(a/(t.length-1)/2)*n*2,s=this.getMaxLabelWidth(e);r.each(e.get("group").get("children"),function(e,n){var r=t[n].value*a+i,u=r%(2*Math.PI);s<o?(u<=0&&(r+=Math.PI),u>Math.PI&&(r-=Math.PI),r-=Math.PI/2,e.attr("textAlign","center")):u>Math.PI/2?r-=Math.PI:u<Math.PI/2*-1&&(r+=Math.PI),e.rotateAtStart(r)})}},e}(i);t.exports=o},function(t,e,n){var r=n(3),i=n(31),a=r.PathUtil,o=r.MatrixUtil.vec2,s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{inner:0,type:"helix",line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,a:0,center:null,axisStart:null,crp:[]})},n.getLinePath=function(){var t=this.get("crp"),e=this.get("axisStart"),n=a.catmullRomToBezier(t);return n.unshift(["M",e.x,e.y]),n},n.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getHelixPoint(n)},n._getHelixPoint=function(t){var e=this.get("center"),n=this.get("a")*t+this.get("inner");return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},n.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y];if(t){var i=o.length(r);o.scale(r,r,t/i)}return r},n.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},n.getTickEnd=function(t,e){var n=this.get("tickLine");return this.getSidePoint(t,e=e||n.length)},e}(i);t.exports=s},function(t,e,n){var r=n(31),i=n(3),a=i.MatrixUtil.vec2,o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{x:null,y:null,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},isVertical:!1,start:null,end:null})},n._getAvgLabelLength=function(t){var e=t.get("group").get("children");return e[1].attr("x")-e[0].attr("x")},n._getAvgLabelHeightSpace=function(t){var e=t.get("group").get("children");return e[1].attr("y")-e[0].attr("y")},n.getSideVector=function(t){var e=this.get("isVertical"),n=this.get("factor");if(!i.isNumber(t))return[0,0];var r=this.get("start"),o=this.get("end"),s=this.getAxisVector(),u=a.normalize([],s),c=!1;(e&&r.y<o.y||!e&&r.x>o.x)&&(c=!0);var l=a.vertical([],u,c);return a.scale([],l,t*n)},n.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},n.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},n.getTickEnd=function(t,e){var n=this.getSideVector(e);return{x:t.x+n[0],y:t.y+n[1]}},n.getTickPoint=function(t){var e=this.get("start"),n=this.get("end");return{x:e.x+(n.x-e.x)*t,y:e.y+(n.y-e.y)*t}},n.renderTitle=function(){var t=this.get("title"),e=this.getTickPoint(.5),n=t.offset;if(i.isNil(n)){n=20;var r=this.get("labelsGroup");r&&(n+=this.getMaxLabelWidth(r)+(this.get("label").offset||this.get("_labelOffset")))}var o=t.textStyle,s=i.mix({},o);if(t.text){var u=this.getAxisVector();if(t.autoRotate&&i.isNil(o.rotate)){var c=0;i.snapEqual(u[1],0)||(c=a.angleTo([u[0],u[1]],[1,0],!0)),s.rotate=c*(180/Math.PI)}else i.isNil(o.rotate)||(s.rotate=o.rotate/180*Math.PI);var l,f=this.getSideVector(n),h=t.position;l="start"===h?{x:this.get("start").x+f[0],y:this.get("start").y+f[1]}:"end"===h?{x:this.get("end").x+f[0],y:this.get("end").y+f[1]}:{x:e.x+f[0],y:e.y+f[1]},s.x=l.x,s.y=l.y,s.text=t.text;var p=this.get("group").addShape("Text",{zIndex:2,attrs:s});p.name="axis-title",this.get("appendInfo")&&p.setSilent("appendInfo",this.get("appendInfo"))}},n.autoRotateLabels=function(){var t=this.get("labelRenderer"),e=this.get("title");if(t){var n=t.get("group").get("children"),r=this.get("label").offset,a=e?e.offset:48;if(a<0)return;var o,s,u=this.getAxisVector();if(i.snapEqual(u[0],0)&&e&&e.text)(s=this.getMaxLabelWidth(t))>a-r-12&&(o=-1*Math.acos((a-r-12)/s));else if(i.snapEqual(u[1],0)&&n.length>1){var c=Math.abs(this._getAvgLabelLength(t));(s=this.getMaxLabelWidth(t))>c&&(o=Math.asin(1.25*(a-r-12)/s))}if(o){var l=this.get("factor");i.each(n,function(t){t.rotateAtStart(o),i.snapEqual(u[1],0)&&t.attr("textAlign",l>0?"left":"right")})}}},n.autoHideLabels=function(){var t,e,n=this.get("labelRenderer");if(n){var r=n.get("group").get("children"),a=this.getAxisVector();if(r.length<2)return;if(i.snapEqual(a[0],0)){var o=this.getMaxLabelHeight(n)+8,s=Math.abs(this._getAvgLabelHeightSpace(n));o>s&&(t=o,e=s)}else if(i.snapEqual(a[1],0)&&r.length>1){var u=this.getMaxLabelWidth(n)+8,c=Math.abs(this._getAvgLabelLength(n));u>c&&(t=u,e=c)}if(t&&e){var l=Math.ceil(t/e);i.each(r,function(t,e){e%l!=0&&t.attr("text","")})}}},e}(r);t.exports=o},function(t,e,n){var r=n(3),i=n(31),a=r.PathUtil,o=r.MatrixUtil.vec2,s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"polyline"})},n.getLinePath=function(){var t=this.get("tickPoints"),e=this.get("start"),n=this.get("end"),i=[];i.push(e.x),i.push(e.y),r.each(t,function(t){i.push(t.x),i.push(t.y)}),i.push(n.x),i.push(n.y);var o=a.catmullRomToBezier(i);return o.unshift(["M",e.x,e.y]),o},n.getTickPoint=function(t,e){return this.get("tickPoints")[e]},n.getTickEnd=function(t,e,n){var r=this.get("tickLine"),i=this.getSideVector(e||r.length,t,n);return{x:t.x+i[0],y:t.y+i[1]}},n.getSideVector=function(t,e,n){var r;if(0===n){if((r=this.get("start")).x===e.x&&r.y===e.y)return[0,0]}else r=this.get("tickPoints")[n-1];var i=o.normalize([],[e.x-r.x,e.y-r.y]),a=o.vertical([],i,!1);return o.scale([],a,t)},e}(i);t.exports=s},function(t,e,n){t.exports={Guide:n(15),Arc:n(315),DataMarker:n(316),DataRegion:n(317),Html:n(318),Image:n(319),Line:n(320),Region:n(321),Text:n(322)}},function(t,e,n){function r(t,e){var n,r=t.x-e.x,i=t.y-e.y;return 0===i?n=r<0?o/2:270*o/180:r>=0&&i>0?n=2*o-s(r/i):r<=0&&i<0?n=o-s(r/i):r>0&&i<0?n=o+s(-r/i):r<0&&i>0&&(n=s(r/-i)),n}var i=n(3),a=n(15),o=Math.PI,s=Math.atan,u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{name:"arc",start:null,end:null,style:{stroke:"#999",lineWidth:1}})},n.render=function(t,e){var n,a=this.parsePoint(t,this.get("start")),s=this.parsePoint(t,this.get("end")),u=t.getCenter(),c=Math.sqrt((a.x-u.x)*(a.x-u.x)+(a.y-u.y)*(a.y-u.y)),l=r(a,u),f=r(s,u);f<l&&(f+=2*o),n=i.isNumberEqual(a.x,s.x)&&i.isNumberEqual(a.y,s.y)&&(this.get("start")[0]!==this.get("end")[0]||this.get("start")[1]!==this.get("end")[1])?[["M",a.x,a.y],["A",c,c,0,1,1,2*u.x-a.x,2*u.y-a.y],["A",c,c,0,1,1,a.x,a.y]]:[["M",a.x,a.y],["A",c,c,0,(f-l)%(2*o)>o?1:0,1,s.x,s.y]];var h=e.addShape("path",{zIndex:this.get("zIndex"),attrs:i.mix({path:n},this.get("style"))});h.name="guide-arc",this.get("appendInfo")&&h.setSilent("appendInfo",this.get("appendInfo")),this.set("el",h)},e}(a);t.exports=u},function(t,e,n){var r=n(3),i=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"dataMarker",zIndex:1,top:!0,position:null,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"#000000",opacity:.65,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0})},n.render=function(t,e){var n=this.parsePoint(t,this.get("position")),r=e.addGroup();r.name="guide-data-marker";var i,a,o=this._getElementPosition(n),s=this.get("display");if(s.line&&(i=this._drawLine(o.line,r)),s.text&&this.get("content")&&(a=this._drawText(o.text,r)),s.point&&this._drawPoint(o.point,r),this.get("autoAdjust")){var u=r.getBBox(),c=u.minY,l=u.maxX,f=u.maxY,h=t.start,p=t.end;if(a){u.minX<=h.x&&a.attr("textAlign","start"),l>=p.x&&a.attr("textAlign","end");var d=this.get("direction");if("upward"===d&&c<=p.y||"upward"!==d&&f>=h.y){var g,v;"upward"===d&&c<=p.y?(g="top",v=1):(g="bottom",v=-1),a.attr("textBaseline",g);var y=0;this.get("display").line&&(y=this.get("lineLength"),i.attr("path",[["M",n.x,n.y],["L",n.x,n.y+y*v]])),a.attr("y",n.y+(y+2)*v)}}}this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo")),this.set("el",r)},n._getElementPosition=function(t){var e=t.x,n=t.y,r=this.get("display").line?this.get("lineLength"):0,i=this.get("direction");this.get("style").text.textBaseline="upward"===i?"bottom":"top";var a="upward"===i?-1:1;return{point:{x:e,y:n},line:[{x:e,y:n},{x:e,y:r*a+n}],text:{x:e,y:(r+2)*a+n}}},n._drawLine=function(t,e){var n=this.get("style").line;return e.addShape("path",{attrs:r.mix({path:[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y]]},n)})},n._drawText=function(t,e){var n=this.get("style").text;return e.addShape("text",{attrs:r.mix({text:this.get("content")},n,t)})},n._drawPoint=function(t,e){var n=this.get("style").point;return e.addShape("circle",{attrs:r.mix({},n,t)})},e}(n(15));t.exports=i},function(t,e,n){var r=n(3),i=n(156),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"dataRegion",start:null,end:null,content:"",style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}})},n.render=function(t,e,n){var i=this.get("lineLength")||0,a=this._getRegionData(t,n);if(a.length){var o=this._getBBox(a),s=[];s.push(["M",a[0].x,o.yMin-i]);for(var u=0,c=a.length;u<c;u++)s.push(["L",a[u].x,a[u].y]);s.push(["L",a[a.length-1].x,o.yMin-i]);var l=this.get("style"),f=l.region,h=l.text,p=e.addGroup();p.name="guide-data-region",p.addShape("path",{attrs:r.mix({path:s},f)});var d=this.get("content");d&&p.addShape("Text",{attrs:r.mix({x:(o.xMin+o.xMax)/2,y:o.yMin-i,text:d},h)}),this.get("appendInfo")&&p.setSilent("appendInfo",this.get("appendInfo")),this.set("el",p)}},n._getRegionData=function(t,e){for(var n,a=this.get("start"),o=this.get("end"),s=i.getFirstScale(this.get("xScales")).field,u=i.getFirstScale(this.get("yScales")).field,c=r.isArray(a)?a[0]:a[s],l=r.isArray(o)?o[0]:o[s],f=[],h=0,p=e.length;h<p;h++){var d=e[h];if(d[s]===c&&(n=h),h>=n&&f.push(this.parsePoint(t,[d[s],d[u]])),d[s]===l)break}return f},n._getBBox=function(t){for(var e=[],n=[],i=0;i<t.length;i++)e.push(t[i].x),n.push(t[i].y);var a=r.arrayUtil.getRange(e),o=r.arrayUtil.getRange(n);return{xMin:a.min,xMax:a.max,yMin:o.min,yMax:o.max}},e}(n(15));t.exports=a},function(t,e,n){var r=n(3),i=r.DomUtil,a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"html",zIndex:7,position:null,alignX:"middle",alignY:"middle",offsetX:null,offsetY:null,html:null})},n.render=function(t,e){var n=this.parsePoint(t,this.get("position")),a=e.get("canvas").get("el").parentNode,o=i.createDom('<div class="g-guide"></div>');a.appendChild(o);var s=this.get("htmlContent")||this.get("html");r.isFunction(s)&&(s=s(this.get("xScales"),this.get("yScales")));var u=i.createDom(s);o.appendChild(u),i.modifyCSS(o,{position:"absolute"}),this._setDomPosition(o,u,n),this.set("el",o)},n._setDomPosition=function(t,e,n){var r=this.get("alignX"),a=this.get("alignY"),o=i.getOuterWidth(e),s=i.getOuterHeight(e),u={x:n.x,y:n.y};"middle"===r&&"top"===a?u.x-=Math.round(o/2):"middle"===r&&"bottom"===a?(u.x-=Math.round(o/2),u.y-=Math.round(s)):"left"===r&&"bottom"===a?u.y-=Math.round(s):"left"===r&&"middle"===a?u.y-=Math.round(s/2):"left"===r&&"top"===a?(u.x=n.x,u.y=n.y):"right"===r&&"bottom"===a?(u.x-=Math.round(o),u.y-=Math.round(s)):"right"===r&&"middle"===a?(u.x-=Math.round(o),u.y-=Math.round(s/2)):"right"===r&&"top"===a?u.x-=Math.round(o):(u.x-=Math.round(o/2),u.y-=Math.round(s/2));var c=this.get("offsetX");c&&(u.x+=c);var l=this.get("offsetY");l&&(u.y+=l),i.modifyCSS(t,{top:Math.round(u.y)+"px",left:Math.round(u.x)+"px",visibility:"visible",zIndex:this.get("zIndex")})},n.clear=function(){var t=this.get("el");t&&t.parentNode&&t.parentNode.removeChild(t)},e}(n(15));t.exports=a},function(t,e,n){var r=n(3),i=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"image",start:null,end:null,src:null,offsetX:null,offsetY:null})},n.render=function(t,e){var n=this.parsePoint(t,this.get("start")),r={x:n.x,y:n.y};if(r.img=this.get("src"),this.get("end")){var i=this.parsePoint(t,this.get("end"));r.width=i.x-n.x,r.height=i.y-n.y}else r.width=this.get("width")||32,r.height=this.get("height")||32;this.get("offsetX")&&(r.x+=this.get("offsetX")),this.get("offsetY")&&(r.y+=this.get("offsetY"));var a=e.addShape("Image",{zIndex:1,attrs:r});a.name="guide-image",this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo")),this.set("el",a)},e}(n(15));t.exports=i},function(t,e,n){var r=n(3),i=n(15),a=r.MatrixUtil.vec2,o=n(14).FONT_FAMILY,s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"line",start:null,end:null,lineStyle:{stroke:"#000",lineWidth:1},text:{position:"end",autoRotate:!0,style:{fill:"#999",fontSize:12,fontWeight:500,fontFamily:o},content:null}})},n.render=function(t,e){var n=this.parsePoint(t,this.get("start")),r=this.parsePoint(t,this.get("end")),i=e.addGroup({viewId:e.get("viewId")});this._drawLines(n,r,i);var a=this.get("text");a&&a.content&&this._drawText(n,r,i),this.set("el",i)},n._drawLines=function(t,e,n){var i=n.addShape("Path",{attrs:r.mix({path:[["M",t.x,t.y],["L",e.x,e.y]]},this.get("lineStyle"))});i.name="guide-line",this.get("appendInfo")&&i.setSilent("appendInfo",this.get("appendInfo"))},n._drawText=function(t,e,n){var i,o=this.get("text"),s=o.position,u=o.style||{};((i="start"===s?0:"center"===s?.5:r.isString(s)&&-1!==s.indexOf("%")?parseInt(s,10)/100:r.isNumber(s)?s:1)>1||i<0)&&(i=1);var c={x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i};if(o.offsetX&&(c.x+=o.offsetX),o.offsetY&&(c.y+=o.offsetY),c.text=o.content,c=r.mix({},c,u),o.autoRotate&&r.isNil(u.rotate)){var l=a.angleTo([e.x-t.x,e.y-t.y],[1,0],1);c.rotate=l}else r.isNil(u.rotate)||(c.rotate=u.rotate*Math.PI/180);var f=n.addShape("Text",{attrs:c});f.name="guide-line-text",this.get("appendInfo")&&f.setSilent("appendInfo",this.get("appendInfo"))},e}(i);t.exports=s},function(t,e,n){var r=n(3),i=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"region",zIndex:1,start:null,end:null,style:{lineWidth:0,fill:"#CCD7EB",opacity:.4}})},n.render=function(t,e){var n=this.get("style"),i=this._getPath(t),a=e.addShape("path",{zIndex:this.get("zIndex"),attrs:r.mix({path:i},n)});a.name="guide-region",this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo")),this.set("el",a)},n._getPath=function(t){var e=this.parsePoint(t,this.get("start")),n=this.parsePoint(t,this.get("end"));return[["M",e.x,e.y],["L",n.x,e.y],["L",n.x,n.y],["L",e.x,n.y],["z"]]},e}(n(15));t.exports=i},function(t,e,n){var r=n(3),i=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"text",position:null,content:null,style:{fill:"#999",fontSize:12,fontWeight:500,textAlign:"center"},offsetX:null,offsetY:null,top:!0})},n.render=function(t,e){var n=this.parsePoint(t,this.get("position")),i=r.mix({},this.get("style")),a=this.get("offsetX"),o=this.get("offsetY");a&&(n.x+=a),o&&(n.y+=o),i.rotate&&(i.rotate=i.rotate*Math.PI/180);var s=e.addShape("Text",{zIndex:this.get("zIndex"),attrs:r.mix({text:this.get("content")},i,n)});s.name="guide-text",this.get("appendInfo")&&s.setSilent("appendInfo",this.get("appendInfo")),this.set("el",s)},e}(n(15));t.exports=i},function(t,e,n){var r=n(154);t.exports=r},function(t,e,n){t.exports={Category:n(157),CatHtml:n(159),CatPageHtml:n(325),Color:n(326),Size:n(328),CircleSize:n(329)}},function(t,e,n){function r(t,e){return t.getElementsByClassName(e)[0]}var i=n(3),a=n(159),o=n(14).FONT_FAMILY,s=i.DomUtil,u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"category-page-legend",container:null,caretStyle:{fill:"rgba(0,0,0,0.65)"},pageNumStyle:{display:"inline-block",fontSize:"12px",fontFamily:o,cursor:"default"},slipDomStyle:{width:"auto",height:"auto",position:"absolute"},slipTpl:'<div class="g2-slip" ><svg viewBox="64 64 896 896" class="g2-caret-up" data-icon="left" width="1em" height="1em" aria-hidden="true"><path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"></path></svg><p class="cur-pagenum" style = "display:inline-block;">1</p><p class="next-pagenum" style = "display:inline-block;">/2</p><svg viewBox="64 64 896 896" class="g2-caret-down" data-icon="right" width="1em" height="1em" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg></div>',slipWidth:65,legendOverflow:"unset"})},n.render=function(){t.prototype._renderHTML.call(this),this._renderFlipPage()},n._renderFlipPage=function(){var t=document.getElementsByClassName("g2-legend")[0],e=r(t,"g2-legend-list"),n=this.get("position"),a=this.get("layout"),o="right"===n||"left"===n||"vertical"===a?"block":"inline-block";if(t.scrollHeight>t.offsetHeight){var u=this.get("slipTpl"),c=s.createDom(u),l=r(c,"g2-caret-up"),f=r(c,"g2-caret-down");s.modifyCSS(l,this.get("caretStyle")),s.modifyCSS(l,{fill:"rgba(0,0,0,0.25)"}),s.modifyCSS(f,this.get("caretStyle"));var h=r(c,"cur-pagenum"),p=r(c,"next-pagenum"),d=this.get("pageNumStyle");s.modifyCSS(h,i.mix({},d,{paddingLeft:"10px"})),s.modifyCSS(p,i.mix({},d,{opacity:.3,paddingRight:"10px"})),s.modifyCSS(c,i.mix({},this.get("slipDomStyle"),{top:t.offsetHeight+"px"})),t.style.overflow=this.get("legendOverflow"),t.appendChild(c);for(var g=e.childNodes,v=0,y=1,m=[],x=0;x<g.length;x++)g[x].style.display=o,(v=g[x].offsetTop+g[x].offsetHeight)>=t.offsetHeight&&(y++,m.forEach(function(t){t.style.display="none"}),m=[]),m.push(g[x]);p.innerText="/"+y,g.forEach(function(e){e.style.display=o,(v=e.offsetTop+e.offsetHeight)>t.offsetHeight&&(e.style.display="none")}),l.addEventListener("click",function(){if(g[0].style.display!==o){var e=-1;g.forEach(function(t,n){t.style.display===o&&(e=-1===e?n:e,t.style.display="none")});for(var n=e-1;n>=0&&(g[n].style.display=o,v=g[e-1].offsetTop+g[e-1].offsetHeight,g[n].style.display="none",v<t.offsetHeight);n--)g[n].style.display=o;var r=Number.parseInt(h.innerText,10)-1;l.style.fill=1===r?"rgba(0,0,0,0.25)":"rgba(0,0,0,0.65)",f.style.fill="rgba(0,0,0,0.65)",h.innerText=r}}),f.addEventListener("click",function(){if(g[g.length-1].style.display!==o){var e=-1;g.forEach(function(t,n){t.style.display===o&&(e=n,t.style.display="none")});for(var n=e+1;n<g.length&&(g[n].style.display=o,v=g[n].offsetTop+g[n].offsetHeight,g[n].style.display="none",v<t.offsetHeight);n++)g[n].style.display=o;var r=Number.parseInt(h.innerText,10)+1;f.style.fill=r===o?"rgba(0,0,0,0.25)":"rgba(0,0,0,0.65)",l.style.fill="rgba(0,0,0,0.65)",h.innerText=r}}),this.set("slipDom",c)}},n.destroy=function(){t.prototype.destroy.call(this);var e=this.get("slipDom");e&&e.parentNode&&e.parentNode.removeChild(e)},e}(a);t.exports=u},function(t,e,n){var r=n(73).ColorUtil,i=n(3),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"color-legend",layout:"vertical",triggerAttr:{fill:"#fff",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc",radius:3},isSegment:!1})},n._setPercentage=function(){var t=this.get("items");if(!t[0].percentage){var e=t[0].value,n=t[t.length-1].value;i.each(t,function(t){t.percentage=(t.value-e)/(n-e)})}},n._renderSliderShape=function(){this._setPercentage();var t,e=this.get("slider").get("backgroundElement"),n=this.get("width"),a=this.get("height"),o=this.get("layout"),s=this.get("items"),u="";return"vertical"===o?(u+="l (90) ",i.each(s,function(e){t=r.toRGB(e.color),u+=1-e.percentage+":"+t+" "})):(u+="l (0) ",i.each(s,function(e){t=r.toRGB(e.color),u+=e.percentage+":"+t+" "})),this._addMiddleBar(e,"Rect",{x:0,y:0,width:n,height:a,fill:u,strokeOpacity:0})},n._renderUnslidable=function(){this._setPercentage();var t=this.get("titleShape"),e=this.get("titleGap");e=t?t.getBBox().height+e:e;var n,a=this.get("width"),o=this.get("height"),s=this.get("layout"),u=this.get("items"),c="",l=[],f=this.get("group").addGroup(),h=u.length;if("vertical"===s){c+="l (90) ";for(var p=0;p<h;p+=1){if(0!==p&&p!==h-1&&(l.push(["M",0,o-u[p].percentage*o]),l.push(["L",a,o-u[p].percentage*o])),n=r.toRGB(u[p].color),c+=1-u[p].percentage+":"+n+" ",this.get("isSegment")&&p>0){var d=r.toRGB(u[p-1].color);c+=1-u[p].percentage+":"+d+" "}f.addShape("text",{attrs:i.mix({},{x:a+this.get("textOffset")/2,y:o-u[p].percentage*o,text:this._formatItemValue(u[p].value)+""},this.get("textStyle"),{textAlign:"start"})})}}else{c+="l (0) ";for(var g=0;g<h;g+=1){if(0!==g&&g!==h-1&&(l.push(["M",u[g].percentage*a,0]),l.push(["L",u[g].percentage*a,o])),n=r.toRGB(u[g].color),this.get("isSegment")&&g>0){var v=r.toRGB(u[g-1].color);c+=u[g].percentage+":"+v+" "}c+=u[g].percentage+":"+n+" ",f.addShape("text",{attrs:i.mix({},{x:u[g].percentage*a,y:o+5+this.get("textOffset"),text:this._formatItemValue(u[g].value)+""},this.get("textStyle"))})}}f.addShape("rect",{attrs:{x:0,y:0,width:a,height:o,fill:c,strokeOpacity:0}}),f.addShape("path",{attrs:i.mix({path:l},this.get("lineStyle"))}),f.move(0,e)},e}(n(67));t.exports=a},function(t,e,n){var r=n(3),i=r.DomUtil,a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{range:null,middleAttr:{fill:"#fff",fillOpacity:0},backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},n._beforeRenderUI=function(){var t=this.get("layout"),e=this.get("backgroundElement"),n=this.get("minHandleElement"),r=this.get("maxHandleElement"),i=this.addShape("rect",{attrs:this.get("middleAttr")}),a="vertical"===t?"ns-resize":"ew-resize";this.add([e,n,r]),this.set("middleHandleElement",i),e.set("zIndex",0),i.set("zIndex",1),n.set("zIndex",2),r.set("zIndex",2),i.attr("cursor","move"),n.attr("cursor",a),r.attr("cursor",a),this.sort()},n._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},n._transform=function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix(),s.resetMatrix(),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,a),s.translate(r*i,a)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(1,(1-n)*a),s.translate(1,(1-r)*a))},n._renderHorizontal=function(){this._transform("horizontal")},n._renderVertical=function(){this._transform("vertical")},n._bindUI=function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},n._isElement=function(t,e){var n=this.get(e);return t===n||!!n.isGroup&&n.get("children").indexOf(t)>-1},n._getRange=function(t,e){var n=t+e;return(n=n>100?100:n)<0?0:n},n._updateStatus=function(t,e){var n=this.get("x"===t?"width":"height");t=r.upperFirst(t);var i,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),u=this.get("rangeStash"),c="vertical"===this.get("layout")?-1:1,l=e["page"+t],f=(l-o)/n*100*c;a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(f,a[0]),a[1]=this._getRange(f,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(f,a[0])),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(f,a[1]))),this._isElement(s,"middleHandleElement")&&(i=u[1]-u[0],a[0]=this._getRange(f,a[0]),a[1]=a[0]+i,a[1]>100&&(a[1]=100,a[0]=a[1]-i)),this.emit("sliderchange",{range:a}),this.set("page"+t,l),this._renderUI(),this.get("canvas").draw()},n._onMouseDown=function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},n._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=i.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=i.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=i.addEventListener(t,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},n._onCanvasMouseMove=function(t){this._mouseOutArea(t)||("horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t))},n._onCanvasMouseUp=function(){this._removeDocumentEvents()},n._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()},n._mouseOutArea=function(t){var e=this.get("canvas").get("el").getBoundingClientRect(),n=this.get("parent"),r=n.getBBox(),i=n.attr("matrix")[6],a=n.attr("matrix")[7],o=t.clientX-e.x,s=t.clientY-e.y;return o<i||o>i+r.width||s<a||s>a+r.height},e}(r.Group);t.exports=a},function(t,e,n){var r=n(3),i=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"size-legend",width:100,height:200,_unslidableElementStyle:{fill:"#4E7CCC",fillOpacity:1},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},n._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("layout"),n=this.get("width"),i=this.get("height"),a=this.get("height")/2,o=this.get("frontMiddleBarStyle");return this._addMiddleBar(t,"Polygon",r.mix({points:"vertical"===e?[[0,0],[n,0],[n,i],[n-4,i]]:[[0,a+i/2],[0,a+i/2-4],[n,a-i/2],[n,a+i/2]]},o))},n._renderUnslidable=function(){var t=this.get("layout"),e=this.get("width"),n=this.get("height"),i=this.get("frontMiddleBarStyle"),a="vertical"===t?[[0,0],[e,0],[e,n],[e-4,n]]:[[0,n],[0,n-4],[e,0],[e,n]];this.get("group").addGroup().addShape("Polygon",{attrs:r.mix({points:a},i)});var o=this._formatItemValue(this.get("firstItem").value),s=this._formatItemValue(this.get("lastItem").value);"vertical"===this.get("layout")?(this._addText(e+10,n-3,o),this._addText(e+10,3,s)):(this._addText(0,n,o),this._addText(e,n,s))},n._addText=function(t,e,n){var i=this.get("group").addGroup(),a=this.get("textStyle"),o=this.get("titleShape"),s=this.get("titleGap");o&&(s+=o.getBBox().height),"vertical"===this.get("layout")?i.addShape("text",{attrs:r.mix({x:t+this.get("textOffset"),y:e,text:0===n?"0":n},a)}):(e+=s+this.get("textOffset")-20,o||(e+=10),i.addShape("text",{attrs:r.mix({x:t,y:e,text:0===n?"0":n},a)}))},e}(n(67));t.exports=i},function(t,e,n){var r=n(3),i=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"size-circle-legend",width:100,height:200,_unslidableCircleStyle:{stroke:"rgb(99, 161, 248)",fill:"rgb(99, 161, 248)",fillOpacity:.3,lineWidth:1.5},triggerAttr:{fill:"white",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc"},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},n._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("layout"),n="vertical"===e?2:this.get("width"),i="vertical"===e?this.get("height"):2,a=this.get("height")/2,o=this.get("frontMiddleBarStyle");return this._addMiddleBar(t,"Polygon",r.mix({points:"vertical"===e?[[0,0],[n,0],[n,i],[0,i]]:[[0,a+i],[0,a-i],[5+n-4,a-i],[5+n-4,a+i]]},o))},n._addHorizontalTrigger=function(t,e,n,i){var a=this.get("slider").get(t+"HandleElement"),o=-this.get("height")/2,s=a.addShape("circle",{attrs:r.mix({x:0,y:o,r:i},e)}),u=a.addShape("text",{attrs:r.mix(n,{x:0,y:o+i+10,textAlign:"center",textBaseline:"middle"})}),c="vertical"===this.get("layout")?"ns-resize":"ew-resize";s.attr("cursor",c),u.attr("cursor",c),this.set(t+"ButtonElement",s),this.set(t+"TextElement",u)},n._addVerticalTrigger=function(t,e,n,i){var a=this.get("slider").get(t+"HandleElement"),o=a.addShape("circle",{attrs:r.mix({x:0,y:0,r:i},e)}),s=a.addShape("text",{attrs:r.mix(n,{x:i+10,y:0,textAlign:"start",textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",u),s.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},n._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),i=this.get("textStyle"),a=this.get("triggerAttr"),o=r.mix({},a),s=r.mix({},a),u=r.mix({text:this._formatItemValue(t.value)+""},i),c=r.mix({text:this._formatItemValue(e.value)+""},i);"vertical"===n?(this._addVerticalTrigger("min",o,u,5),this._addVerticalTrigger("max",s,c,16)):(this._addHorizontalTrigger("min",o,u,5),this._addHorizontalTrigger("max",s,c,16))},n._bindEvents=function(){var t=this;this.get("slidable")&&this.get("slider").on("sliderchange",function(e){var n=e.range,r=t.get("firstItem").value,i=t.get("lastItem").value,a=r+n[0]/100*(i-r),o=r+n[1]/100*(i-r);t._updateElement(a,o,5+n[0]/100*11,5+n[1]/100*11);var s=new Event("itemfilter",e,!0,!0);s.range=[a,o],t.emit("itemfilter",s)})},n._updateElement=function(e,n,r,i){t.prototype._updateElement.call(this,e,n);var a=this.get("minTextElement"),o=this.get("maxTextElement"),s=this.get("minButtonElement"),u=this.get("maxButtonElement");if(s.attr("r",r),u.attr("r",i),"vertical"===this.get("layout"))a.attr("x",r+10),o.attr("x",i+10);else{var c=-this.get("height")/2;a.attr("y",c+r+10),o.attr("y",c+i+10)}},n._addCircle=function(t,e,n,i,a){var o=this.get("group").addGroup(),s=this.get("_unslidableCircleStyle"),u=this.get("textStyle"),c=this.get("titleShape"),l=this.get("titleGap");c&&(l+=c.getBBox().height),o.addShape("circle",{attrs:r.mix({x:t,y:e+l,r:0===n?1:n},s)}),"vertical"===this.get("layout")?o.addShape("text",{attrs:r.mix({x:a+20+this.get("textOffset"),y:e+l,text:0===i?"0":i},u)}):o.addShape("text",{attrs:r.mix({x:t,y:e+l+a+13+this.get("textOffset"),text:0===i?"0":i},u)})},n._renderUnslidable=function(){var t=this.get("firstItem").value,e=this.get("lastItem").value;if(t>e){var n=e;e=t,t=n}var r=this._formatItemValue(t),i=this._formatItemValue(e),a=t<5?5:t,o=e>16?16:e;a>o&&(a=5,o=16),"vertical"===this.get("layout")?(this._addCircle(o,o,a,r,2*o),this._addCircle(o,2*o+16+a,o,i,2*o)):(this._addCircle(o,o,a,r,2*o),this._addCircle(2*o+16+a,o,o,i,2*o))},n.activate=function(e){this.get("slidable")&&t.prototype.activate.call(this,e)},e}(n(67));t.exports=i},function(t,e,n){var r=n(68);r.Html=n(331),r.Canvas=n(163),r.Mini=n(333),t.exports=r},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){return t.getElementsByClassName(e)[0]}var a=n(68),o=n(3),s=o.DomUtil,u=n(332),c=n(160),l=n(161),f=n(162),h=function(t){function e(e){var n;n=t.call(this,e)||this,o.assign(r(r(n)),l),o.assign(r(r(n)),f),n.style=function(t,e){return Object.keys(t).forEach(function(n){e[n]&&(t[n]=o.mix(t[n],e[n]))}),t}(u,e),n._init_(),n.get("items")&&n.render();var i=n.get("crosshairs");if(i){var a=n.get("rect"===i.type?"backPlot":"frontPlot"),s=new c(o.mix({plot:a,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));s.hide(),n.set("crosshairGroup",s)}return n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{containerTpl:' <div class="g2-tooltip"> <div class="g2-tooltip-title"></div><ul class="g2-tooltip-list"></ul></div>',itemTpl:'<li data-index={index}><span style="background-color:{color};" class=g2-tooltip-marker></span>{name}<span class=g2-tooltip-value>{value}</span></li>',htmlContent:null,follow:!0,enterable:!1})},n._init_=function(){var t,e=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;if(!this.get("htmlContent")){if(/^\#/.test(e)){var r=e.replace("#","");t=document.getElementById(r)}else t=s.createDom(e),s.modifyCSS(t,this.style["g2-tooltip"]),n.appendChild(t),n.style.position="relative";this.set("container",t)}},n.render=function(){if(this.clear(),this.get("htmlContent")){var t=this.get("canvas").get("el").parentNode,e=this._getHtmlContent();t.appendChild(e),this.set("container",e)}else this._renderTpl()},n._renderTpl=function(){var t=this,e=t.get("showTitle"),n=t.get("titleContent"),r=t.get("container"),a=i(r,"g2-tooltip-title"),u=i(r,"g2-tooltip-list"),c=t.get("items");a&&e&&(s.modifyCSS(a,t.style["g2-tooltip-title"]),a.innerHTML=n),u&&(s.modifyCSS(u,t.style["g2-tooltip-list"]),o.each(c,function(e,n){u.appendChild(t._addItem(e,n))}))},n.clear=function(){var t=this.get("container");if(this.get("htmlContent"))t&&t.remove();else{var e=i(t,"g2-tooltip-title"),n=i(t,"g2-tooltip-list");e&&(e.innerHTML=""),n&&(n.innerHTML="")}},n.show=function(){var e=this.get("container");if(e){e.style.visibility="visible",e.style.display="block";var n=this.get("crosshairGroup");n&&n.show();var r=this.get("markerGroup");r&&r.show(),t.prototype.show.call(this),this.get("canvas").draw()}},n.hide=function(){var e=this.get("container");if(e){e.style.visibility="hidden",e.style.display="none";var n=this.get("crosshairGroup");n&&n.hide();var r=this.get("markerGroup");r&&r.hide(),t.prototype.hide.call(this),this.get("canvas").draw()}},n.destroy=function(){var e=this.get("container"),n=this.get("containerTpl");e&&!/^\#/.test(n)&&e.parentNode.removeChild(e);var r=this.get("crosshairGroup");r&&r.destroy();var i=this.get("markerGroup");i&&i.remove(),t.prototype.destroy.call(this)},n._addItem=function(t,e){var n=this.get("itemTpl"),r=o.substitute(n,o.mix({index:e},t)),a=s.createDom(r);s.modifyCSS(a,this.style["g2-tooltip-list-item"]);var u=i(a,"g2-tooltip-marker");u&&s.modifyCSS(u,this.style["g2-tooltip-marker"]);var c=i(a,"g2-tooltip-value");return c&&s.modifyCSS(c,this.style["g2-tooltip-value"]),a},n._getHtmlContent=function(){var t=this.get("htmlContent")(this.get("titleContent"),this.get("items"));return s.createDom(t)},n.setPosition=function(e,n,r){var i,a=this.get("container"),u=this.get("canvas").get("el"),c=s.getWidth(u),l=s.getHeight(u),f=a.clientWidth,h=a.clientHeight,p=e,d=n,g=this.get("prePosition")||{x:0,y:0};if(this.get("enterable"))i=[e,n-=a.clientHeight/2],g&&e-g.x>0?e-=a.clientWidth+1:e+=1;else if(this.get("position")){var v=a.clientWidth,y=a.clientHeight;e=(i=this._calcTooltipPosition(e,n,this.get("position"),v,y,r))[0],n=i[1]}else e=(i=this._constraintPositionInBoundary(e,n,f,h,c,l))[0],n=i[1];if(this.get("inPlot")){var m=this.get("plotRange");e=(i=this._constraintPositionInPlot(e,n,f,h,m,this.get("enterable")))[0],n=i[1]}var x=this.get("markerItems");o.isEmpty(x)||(p=x[0].x,d=x[0].y),this.set("prePosition",i),this.get("follow")&&(a.style.left=e+"px",a.style.top=n+"px");var b=this.get("crosshairGroup");if(b){var _=this.get("items");b.setPosition(p,d,_)}t.prototype.setPosition.call(this,e,n)},e}(a);t.exports=h},function(t,e,n){var r,i=n(14).FONT_FAMILY,a=((r={crosshairs:!1,offset:15})["g2-tooltip"]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:i,lineHeight:"20px",padding:"10px 10px 6px 10px"},r["g2-tooltip-title"]={marginBottom:"4px"},r["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},r["g2-tooltip-list-item"]={marginBottom:"4px"},r["g2-tooltip-marker"]={width:"5px",height:"5px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},r);t.exports=a},function(t,e,n){var r=n(3),i=n(163),a=n(14).FONT_FAMILY,o=r.DomUtil,s=r.MatrixUtil,u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{boardStyle:{x:0,y:0,width:0,height:0,radius:3},valueStyle:{x:0,y:0,text:"",fontFamily:a,fontSize:12,stroke:"#fff",lineWidth:2,fill:"black",textBaseline:"top",textAlign:"start"},padding:{top:5,right:5,bottom:0,left:5},triangleWidth:10,triangleHeight:4})},n._init_=function(){var t=this.get("padding"),e=this.get("frontPlot").addGroup();this.set("container",e);var n=e.addShape("rect",{attrs:r.mix({},this.get("boardStyle"))});this.set("board",n);var i=e.addShape("path",{attrs:{fill:this.get("boardStyle").fill}});this.set("triangleShape",i);var a=e.addGroup();a.move(t.left,t.top);var o=a.addShape("text",{attrs:r.mix({},this.get("valueStyle"))});this.set("valueShape",o)},n.render=function(){this.clear();var t=this.get("board"),e=this.get("valueShape"),n=this.get("padding"),r=this.get("items")[0];e&&e.attr("text",r.value);var i=e?e.getBBox():{width:80,height:30},a=n.top+i.height+n.bottom;t.attr("width",n.left+i.width+n.right),t.attr("height",a),this._centerTriangleShape()},n.clear=function(){this.get("valueShape").attr("text","")},n.setPosition=function(t,e,n){var r=this.get("container"),i=this.get("plotRange"),a=r.getBBox(),u=a.width,c=a.height;if(t-=u/2,!n||"point"!==n.name&&"interval"!==n.name||(e=n.getBBox().y),e-=c,this.get("inPlot"))t<i.tl.x?(t=i.tl.x,this._leftTriangleShape()):t+u/2>i.tr.x?(t=i.tr.x-u,this._rightTriangleShape()):this._centerTriangleShape(),e<i.tl.y?e=i.tl.y:e+c>i.bl.y&&(e=i.bl.y-c);else{var l=this.get("canvas").get("el"),f=o.getWidth(l),h=o.getHeight(l);t<0?(t=0,this._leftTriangleShape()):t+u/2>f?(t=f-u,this._rightTriangleShape()):this._centerTriangleShape(),e<0?e=0:e+c>h&&(e=h-c)}var p=s.transform([1,0,0,0,1,0,0,0,1],[["t",t,e]]);r.stopAnimate(),r.animate({matrix:p},this.get("animationDuration"))},n._centerTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.width,a=r.height;t.attr("path",[["M",0,0],["L",e,0],["L",e/2,n],["L",0,0],["Z"]]),t.move(i/2-e/2,a-1)},n._leftTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox().height;t.attr("path",[["M",0,0],["L",e,0],["L",0,n+3],["L",0,0],["Z"]]),t.move(0,r-3)},n._rightTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.width,a=r.height;t.attr("path",[["M",0,0],["L",e,0],["L",e,n+4],["L",0,0],["Z"]]),t.move(i-e-1,a-4)},e}(i);t.exports=u},function(t,e,n){var r=n(0).MatrixUtil.vec2;t.exports={catmullRom2bezier:function(t,e,n){for(var i=!!e,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);for(var u,c,l,f=function(t,e,n,i){var a,o,s,u,c=[],l=!!i;if(l){s=[1/0,1/0],u=[-1/0,-1/0];for(var f=0,h=t.length;f<h;f++){var p=t[f];s=r.min([],s,p),u=r.max([],u,p)}s=r.min([],s,i[0]),u=r.max([],u,i[1])}for(var d=0,g=t.length;d<g;d++){var v=t[d];if(n)a=t[d?d-1:g-1],o=t[(d+1)%g];else{if(0===d||d===g-1){c.push(v);continue}a=t[d-1],o=t[d+1]}var y=[];y=r.sub(y,o,a),y=r.scale(y,y,.4);var m=r.distance(v,a),x=r.distance(v,o),b=m+x;0!==b&&(m/=b,x/=b);var _=r.scale([],y,-m),w=r.scale([],y,x),O=r.add([],v,_),j=r.add([],v,w);l&&(O=r.max([],O,s),O=r.min([],O,u),j=r.max([],j,s),j=r.min([],j,u)),c.push(O),c.push(j)}return n&&c.push(c.shift()),c}(a,0,i,n),h=a.length,p=[],d=0;d<h-1;d++)p.push(["C",(u=f[2*d])[0],u[1],(c=f[2*d+1])[0],c[1],(l=a[d+1])[0],l[1]]);return i&&p.push(["C",(u=f[h])[0],u[1],(c=f[h+1])[0],c[1],(l=a[0])[0],l[1]]),p}}},function(t,e,n){function r(t,e,n){return{x:t.x+n*Math.cos(e),y:t.y+n*Math.sin(e)}}var i=n(0),a=n(164),o=n(22),s=n(7),u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{label:s.thetaLabels}},n.getDefaultOffset=function(t){return t.offset||0},n.adjustItems=function(e){var n=e[0]?e[0].offset:0;return n>0&&(e=this._distribute(e,n)),t.prototype.adjustItems.call(this,e)},n._distribute=function(t,e){var n=this.get("coord"),r=n.getRadius(),i=this.get("label").labelHeight,a=n.getCenter(),o=2*(r+e)+2*i,s={start:n.start,end:n.end},u=this.get("geom");if(u){var c=u.get("view");s=c.getViewRegion()}var l=[[],[]];return t.forEach(function(t){t&&("right"===t.textAlign?l[0].push(t):l[1].push(t))}),l.forEach(function(t,e){var n=parseInt(o/i,10);t.length>n&&(t.sort(function(t,e){return e["..percent"]-t["..percent"]}),t.splice(n,t.length-n)),t.sort(function(t,e){return t.y-e.y}),function(t,e,n,r,i){var a,o=!0,s=n.start,u=n.end,c=Math.min(s.y,u.y),l=Math.abs(s.y-u.y),f=0,h=Number.MIN_VALUE,p=t.map(function(t){return t.y>f&&(f=t.y),t.y<h&&(h=t.y),{size:e,targets:[t.y-c]}});for(h-=c,f-c>l&&(l=f-c);o;)for(p.forEach(function(t){var e=(Math.min.apply(h,t.targets)+Math.max.apply(h,t.targets))/2;t.pos=Math.min(Math.max(h,e-t.size/2),l-t.size)}),o=!1,a=p.length;a--;)if(a>0){var d=p[a-1],g=p[a];d.pos+d.size>g.pos&&(d.size+=g.size,d.targets=d.targets.concat(g.targets),d.pos+d.size>l&&(d.pos=l-d.size),p.splice(a,1),o=!0)}a=0,p.forEach(function(n){var r=c+e/2;n.targets.forEach(function(){t[a].y=n.pos+r,r+=e,a++})}),t.forEach(function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e<n)t.x=r.x;else{var a=Math.sqrt(e-n);t.x=i?r.x+a:r.x-a}})}(t,i,s,a,e)}),l[0].concat(l[1])},n.lineToLabel=function(t){var e=this.get("coord"),n=e.getRadius(),i=t.offset,a=t.orignAngle||t.angle,o=e.getCenter(),s=r(o,a,n+2.5),u=r(o,a,n+i/2);t.labelLine||(t.labelLine=this.get("label").labelLine||{}),t.labelLine.path=["M"+s.x,s.y+" Q"+u.x,u.y+" "+t.x,t.y].join(",")},n.getLabelRotate=function(t,e){var n;return e<0&&((n=180*t/Math.PI)>90&&(n-=180),n<-90&&(n+=180)),n/180*Math.PI},n.getLabelAlign=function(t){var e,n=this.get("coord").getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",this.getDefaultOffset(t)<=0&&(e="right"===e?"left":"right"),e},n.getArcPoint=function(t){return t},n.getPointAngle=function(t){var e=this.get("coord"),n={x:i.isArray(t.x)?t.x[0]:t.x,y:t.y[0]};this.transLabelPoint(n);var r={x:i.isArray(t.x)?t.x[1]:t.x,y:t.y[1]};this.transLabelPoint(r);var a,s=o.getPointAngle(e,n);if(t.points&&t.points[0].y===t.points[1].y)a=s;else{var u=o.getPointAngle(e,r);s>=u&&(u+=2*Math.PI),a=s+(u-s)/2}return a},n.getCirclePoint=function(t,e){var n=this.get("coord"),i=n.getCenter(),a=n.getRadius()+e,o=r(i,t,a);return o.angle=t,o.r=a,o},e}(a);t.exports=u},function(t,e,n){var r=n(0),i=function(t){function e(){return t.apply(this,arguments)||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e.prototype.setLabelPosition=function(t,e,n,i){r.isFunction(i)&&(i=i(t.text,e._origin,n));var a=this.get("coord"),o=a.isTransposed,s=a.convertPoint(e.points[0]),u=a.convertPoint(e.points[2]),c=(s.x-u.x)/2*(o?-1:1),l=(s.y-u.y)/2*(o?-1:1);switch(i){case"right":o?(t.x-=c,t.y+=l,t.textAlign=t.textAlign||"center"):(t.x-=c,t.y+=l,t.textAlign=t.textAlign||"left");break;case"left":o?(t.x-=c,t.y-=l,t.textAlign=t.textAlign||"center"):(t.x+=c,t.y+=l,t.textAlign=t.textAlign||"right");break;case"bottom":o?(t.x-=2*c,t.textAlign=t.textAlign||"left"):(t.y+=2*l,t.textAlign=t.textAlign||"center");break;case"middle":o?t.x-=c:t.y+=l,t.textAlign=t.textAlign||"center";break;case"top":t.textAlign=o?t.textAlign||"left":t.textAlign||"center"}},e}(n(65));t.exports=i},function(t,e,n){function r(t){return t.alias||t.field}var i=n(0),a=n(7).defaultColor,o={_getIntervalSize:function(t){var e=null,n=this.get("type"),r=this.get("coord");if(r.isRect&&("interval"===n||"schema"===n)){e=this.getSize(t._origin);var a=r.isTransposed?"y":"x";i.isArray(t[a])&&(e=e<Math.abs(t[a][1]-t[a][0])?null:e)}return e},_snapEqual:function(t,e,n){return t=n.translate(t),e=n.translate(e),n.isCategory?t===e:i.snapEqual(t,e)},_getScaleValueByPoint:function(t){var e=0,n=this.get("coord"),r=this.getXScale(),i=n.invert(t).x;return this.isInCircle()&&i>(1+r.rangeMax())/2&&(i=r.rangeMin()),e=r.invert(i),r.isCategory&&(e=r.translate(e)),e},_getOriginByPoint:function(t){var e=this.getXScale(),n=this.getYScale(),r=e.field,i=n.field,a=this.get("coord").invert(t),o=e.invert(a.x),s=n.invert(a.y),u={};return u[r]=o,u[i]=s,u},_getScale:function(t){var e=this.get("scales"),n=null;return i.each(e,function(e){if(e.field===t)return n=e,!1}),n},_getTipValueScale:function(){var t,e=this.getAttrsForLegend();i.each(e,function(e){var n=e.getScale(e.type);if(n.isLinear)return t=n,!1});var n=this.getXScale(),r=this.getYScale();return!t&&r&&"..y"===r.field?n:t||r||n},_getTipTitleScale:function(t){if(t)return this._getScale(t);var e,n=this.getAttr("position").getFields();return i.each(n,function(t){if(-1===t.indexOf(".."))return e=t,!1}),this._getScale(e)},_filterValue:function(t,e){var n=this.get("coord"),r=this.getYScale(),a=r.field,o=n.invert(e).y;o=r.invert(o);var s=t[t.length-1];return i.each(t,function(t){var e=t._origin;if(e[a][0]<=o&&e[a][1]>=o)return s=t,!1}),s},getXDistance:function(){var t=this.get("xDistance");if(!t){var e=this.getXScale();if(e.isCategory)t=1;else{var n=e.values,r=e.translate(n[0]),a=r;i.each(n,function(t){(t=e.translate(t))<r&&(r=t),t>a&&(a=t)}),t=(a-r)/(n.length-1)}this.set("xDistance",t)}return t},findPoint:function(t,e){var n=this,r=n.get("type"),a=n.getXScale(),o=n.getYScale(),s=a.field,u=o.field,c=null;if(i.indexOf(["heatmap","point"],r)>-1){var l=n.get("coord").invert(t),f=a.invert(l.x),h=o.invert(l.y),p=1/0;return i.each(e,function(t){var e=Math.pow(t._origin[s]-f,2)+Math.pow(t._origin[u]-h,2);e<p&&(p=e,c=t)}),c}var d=e[0],g=e[e.length-1];if(!d)return c;var v=n._getScaleValueByPoint(t),y=d._origin[s],m=g._origin[s],x=o.isLinear&&i.isArray(d._origin[u]);if(i.isArray(y))i.each(e,function(t){var e=t._origin;if(a.translate(e[s][0])<=v&&a.translate(e[s][1])>=v){if(!x)return c=t,!1;i.isArray(c)||(c=[]),c.push(t)}}),i.isArray(c)&&(c=this._filterValue(c,t));else{var b;if(a.isLinear||"timeCat"===a.type){if((v>a.translate(m)||v<a.translate(y))&&(v>a.max||v<a.min))return null;for(var _,w=0,O=e.length-1;w<=O;){_=Math.floor((w+O)/2);var j=e[_]._origin[s];if(n._snapEqual(j,v,a))return e[_];a.translate(j)<=a.translate(v)?(w=_+1,g=e[_],b=e[_+1]):(0===O&&(g=e[0]),O=_-1)}}else i.each(e,function(t,r){var o=t._origin;if(n._snapEqual(o[s],v,a)){if(!x)return c=t,!1;i.isArray(c)||(c=[]),c.push(t)}else a.translate(o[s])<=v&&(g=t,b=e[r+1])}),i.isArray(c)&&(c=this._filterValue(c,t));g&&b&&Math.abs(a.translate(g._origin[s])-v)>Math.abs(a.translate(b._origin[s])-v)&&(g=b)}var S=n.getXDistance();return!c&&Math.abs(a.translate(g._origin[s])-v)<=S/2&&(c=g),c},getTipTitle:function(t,e){var n="",r=this._getTipTitleScale(e);if(r)n=r.getText(t[r.field]);else if("heatmap"===this.get("type")){var i=this.getXScale(),a=this.getYScale();n="( "+i.getText(t[i.field])+", "+a.getText(t[a.field])+" )"}return n},getTipValue:function(t,e){var n,r=t.key;if(i.isArray(n=t[e.field])){var a=[];i.each(n,function(t){a.push(e.getText(t))}),n=a.join("-")}else n=e.getText(n,r);return n},getTipName:function(t){var e,n=this._getGroupScales();return n.length&&i.each(n,function(t){return e=t,!1}),e?e.getText(t[e.field]):r(this._getTipValueScale())},getTipItems:function(t,e){function n(e,n,r){if(!i.isNil(n)&&""!==n){var o={title:l,point:t,name:e||l,value:n,color:t.color||a,marker:!0};o.size=u._getIntervalSize(t),h.push(i.mix({},o,r))}}var o,s,u=this,c=t._origin,l=u.getTipTitle(c,e),f=u.get("tooltipCfg"),h=[];if(f){var p=f.fields,d=f.cfg,g=[];if(i.each(p,function(t){g.push(c[t])}),d){i.isFunction(d)&&(d=d.apply(null,g));var v=i.mix({},{point:t,title:l,color:t.color||a,marker:!0},d);v.size=u._getIntervalSize(t),h.push(v)}else i.each(p,function(t){if(!i.isNil(c[t])){var e=u._getScale(t);o=r(e),s=e.getText(c[t]),n(o,s)}})}else{var y=u._getTipValueScale();i.isNil(c[y.field])||(s=u.getTipValue(c,y),n(o=u.getTipName(c),s))}return h},isShareTooltip:function(){var t,e=this.get("shareTooltip"),n=this.get("type"),r=this.get("view");if(t=r.get("parent")?r.get("parent").get("options"):r.get("options"),"interval"===n){var a=this.get("coord"),o=a.type;("theta"===o||"polar"===o&&a.isTransposed)&&(e=!1)}else this.getYScale()&&!i.inArray(["contour","point","polygon","edge"],n)||(e=!1);return t.tooltip&&i.isBoolean(t.tooltip.shared)&&(e=t.tooltip.shared),e}};t.exports=o},function(t,e,n){function r(t,e){if(!t)return!0;if(t.length!==e.length)return!0;var n=!1;return a.each(e,function(e,r){if(!function(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return a.isEqual(n,r)}(e,t[r]))return n=!0,!1}),n}function i(t,e){var n={};return a.each(t,function(t,r){var i=e.attr(r);a.isArray(i)&&(i=a.cloneDeep(i)),n[r]=i}),n}var a=n(0),o={_isAllowActive:function(){var t=this.get("allowActive");if(!a.isNil(t))return t;var e=this.get("view"),n=this.isShareTooltip();return!1===e.get("options").tooltip||!n},_onMouseenter:function(t){var e=t.shape,n=this.get("shapeContainer");e&&n.contain(e)&&this._isAllowActive()&&this.setShapesActived(e)},_onMouseleave:function(){var t=this.get("view").get("canvas");this.get("activeShapes")&&(this.clearActivedShapes(),t.draw())},_bindActiveAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":mouseenter",a.wrapBehavior(this,"_onMouseenter")),t.on(e+":mouseleave",a.wrapBehavior(this,"_onMouseleave"))},_offActiveAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":mouseenter",a.getWrapBehavior(this,"_onMouseenter")),t.off(e+":mouseleave",a.getWrapBehavior(this,"_onMouseleave"))},_setActiveShape:function(t){var e=this.get("activedOptions")||{},n=t.get("origin"),r=n.shape||this.getDefaultValue("shape");a.isArray(r)&&(r=r[0]);var o=this.get("shapeFactory"),s=a.mix({},t.attr(),{origin:n}),u=o.getActiveCfg(r,s);e.style&&a.mix(u,e.style);var c=i(u,t);t.setSilent("_originAttrs",c),e.animate?t.animate(u,300):t.attr(u),t.set("zIndex",1)},setShapesActived:function(t){var e=this;a.isArray(t)||(t=[t]);var n=e.get("activeShapes");if(r(n,t)){var i=e.get("view").get("canvas"),o=e.get("shapeContainer"),s=e.get("activedOptions");s&&s.highlight?(a.each(t,function(t){t.get("animating")&&t.stopAnimate()}),e.highlightShapes(t)):(n&&e.clearActivedShapes(),a.each(t,function(t){t.get("animating")&&t.stopAnimate(),t.get("visible")&&!t.get("selected")&&e._setActiveShape(t)})),e.set("activeShapes",t),o.sort(),i.draw()}},clearActivedShapes:function(){var t=this.get("shapeContainer"),e=this.get("activedOptions"),n=e&&e.animate;if(t&&!t.get("destroyed")){var r=this.get("activeShapes");if(a.each(r,function(t){if(!t.get("selected")){var e=t.get("_originAttrs");n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),t.setZIndex(0),t.set("_originAttrs",null)}}),this.get("preHighlightShapes")){var i=t.get("children");a.each(i,function(t){if(!t.get("selected")){var e=t.get("_originAttrs");e&&(n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),t.setZIndex(0),t.set("_originAttrs",null))}})}t.get("children").sort(function(t,e){return t._INDEX-e._INDEX}),this.set("activeShapes",null),this.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(t){var e=[];if(this.get("shapeContainer")){var n=this.getXScale().field,r=this.getShapes(),i=this._getOriginByPoint(t);a.each(r,function(t){var r=t.get("origin");t.get("visible")&&r&&r._origin[n]===i[n]&&e.push(t)})}return e},getSingleShapeByPoint:function(t){var e,n=this.get("shapeContainer"),r=n.get("canvas").get("pixelRatio");if(n&&(e=n.getShape(t.x*r,t.y*r)),e&&e.get("origin"))return e},highlightShapes:function(t,e){a.isArray(t)||(t=[t]);var n=this.get("activeShapes");if(r(n,t)){n&&this.clearActivedShapes();var o=this.getShapes(),s=this.get("activedOptions"),u=s&&s.animate,c=s&&s.style;a.each(o,function(n){var r={};n.stopAnimate(),-1!==a.indexOf(t,n)?(a.mix(r,c,e),n.setZIndex(1)):(a.mix(r,{fillOpacity:.3,opacity:.3}),n.setZIndex(0));var o=i(r,n);n.setSilent("_originAttrs",o),u?n.animate(r,300):n.attr(r)}),this.set("preHighlightShapes",t),this.set("activeShapes",t)}}};t.exports=o},function(t,e,n){function r(t,e){if(i.isNil(t)||i.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return i.isEqual(n,r)}var i=n(0),a={_isAllowSelect:function(){var t=this.get("allowSelect");if(!i.isNil(t))return t;var e=this.get("type"),n=this.get("coord");return"interval"===e&&"theta"===(n&&n.type)},_onClick:function(t){if(this._isAllowSelect()){this.clearActivedShapes();var e=t.shape,n=this.get("shapeContainer");e&&!e.get("animating")&&n.contain(e)&&this.setShapeSelected(e)}},_bindSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":click",i.wrapBehavior(this,"_onClick"))},_offSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":click",i.getWrapBehavior(this,"_onClick"))},_setShapeStatus:function(t,e){var n=this.get("view"),r=this.get("selectedOptions")||{},a=!1!==r.animate,o=n.get("canvas");t.set("selected",e);var s=t.get("origin");if(e){var u=s.shape||this.getDefaultValue("shape");i.isArray(u)&&(u=u[0]);var c=this.get("shapeFactory"),l=i.mix({geom:this,point:s},r),f=c.getSelectedCfg(u,l);i.mix(f,l.style),t.get("_originAttrs")||(t.get("animating")&&t.stopAnimate(),t.set("_originAttrs",function(t,e){var n={};return i.each(f,function(t,r){"transform"===r&&(r="matrix");var a=e.attr(r);i.isArray(a)&&(a=i.cloneDeep(a)),n[r]=a}),n}(0,t))),a?t.animate(f,300):(t.attr(f),o.draw())}else{var h=t.get("_originAttrs");t.set("_originAttrs",null),a?t.animate(h,300):(t.attr(h),o.draw())}},setShapeSelected:function(t){var e=this._getSelectedShapes(),n=this.get("selectedOptions")||{},a=!1!==n.cancelable;if("multiple"===n.mode)-1===i.indexOf(e,t)?(e.push(t),this._setShapeStatus(t,!0)):a&&(i.Array.remove(e,t),this._setShapeStatus(t,!1));else{var o=e[0];a&&(t=r(o,t)?null:t),r(o,t)||(o&&this._setShapeStatus(o,!1),t&&this._setShapeStatus(t,!0))}},clearSelected:function(){var t=this,e=t.get("shapeContainer");if(e&&!e.get("destroyed")){var n=t._getSelectedShapes();i.each(n,function(e){t._setShapeStatus(e,!1),e.set("_originAttrs",null)})}},setSelected:function(t){var e=this,n=e.getShapes();return i.each(n,function(n){var r=n.get("origin");r&&r._origin===t&&e.setShapeSelected(n)}),this},_getSelectedShapes:function(){var t=this.getShapes(),e=[];return i.each(t,function(t){t.get("selected")&&e.push(t)}),this.set("selectedShapes",e),e}};t.exports=a},function(t,e,n){var r=n(0);t.exports=function(t){return r.isArray(t)?t:r.isString(t)?t.split("*"):[t]}},function(t,e,n){var r=n(74),i=n(0),a=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]?)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,o=function(){function t(t){this.defs={},this.viewTheme={scales:{}},this.filters={},i.assign(this,t)}var e=t.prototype;return e._getDef=function(t){var e=this.defs,n=this.viewTheme,r=null;return(n.scales[t]||e[t])&&(r=i.mix({},n.scales[t]),i.each(e[t],function(t,e){i.isNil(t)?delete r[e]:r[e]=t}),this.filters[t]&&(delete r.min,delete r.max)),r},e._getDefaultType=function(t,e){var n="linear",r=i.Array.firstValue(e,t);return i.isArray(r)&&(r=r[0]),a.test(r)?n="time":i.isString(r)&&(n="cat"),n},e._getScaleCfg=function(t,e,n){var a={field:e},o=i.Array.values(n,e);if(a.values=o,!r.isCategory(t)&&"time"!==t){var s=i.Array.getRange(o);a.min=s.min,a.max=s.max,a.nice=!0}return"time"===t&&(a.nice=!1),a},e.createScale=function(t,e){var n,a=this._getDef(t),o=e||[],s=i.Array.firstValue(o,t);if(i.isNumber(t)||i.isNil(s)&&!a)n=r.identity({value:t,field:t.toString(),values:[t]});else{var u;a&&(u=a.type),u=u||this._getDefaultType(t,o);var c=this._getScaleCfg(u,t,o);a&&i.mix(c,a),n=r[u](c)}return n},t}();t.exports=o},function(t,e,n){var r=n(0),i=n(343),a=function(){function t(t){this.type="rect",this.actions=[],this.cfg={},r.mix(this,t),this.option=t||{}}var e=t.prototype;return e.reset=function(t){return this.actions=t.actions||[],this.type=t.type,this.cfg=t.cfg,this.option.actions=this.actions,this.option.type=this.type,this.option.cfg=this.cfg,this},e._execActions=function(t){r.each(this.actions,function(e){t[e[0]](e[1],e[2])})},e.hasAction=function(t){var e=!1;return r.each(this.actions,function(n){if(t===n[0])return e=!0,!1}),e},e.createCoord=function(t,e){var n,a,o=this.type,s=r.mix({start:t,end:e},this.cfg);return"theta"===o?(n=i.Polar,this.hasAction("transpose")||this.transpose(),(a=new n(s)).type=o):a=new(n=i[r.upperFirst(o||"")]||i.Rect)(s),this._execActions(a),a},e.rotate=function(t){return t=t*Math.PI/180,this.actions.push(["rotate",t]),this},e.reflect=function(t){return this.actions.push(["reflect",t]),this},e.scale=function(t,e){return this.actions.push(["scale",t,e]),this},e.transpose=function(){return this.actions.push(["transpose"]),this},t}();t.exports=a},function(t,e,n){"use strict";var r=n(44);r.Cartesian=n(344),r.Rect=r.Cartesian,r.Polar=n(345),r.Helix=n(346),t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=n(8),l=n(44),f=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,u(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(e,l),a(e,[{key:"getDefaultCfg",value:function(){var t=s(u(e.prototype),"getDefaultCfg",this).call(this);return c({},t,{start:{x:0,y:0},end:{x:0,y:0},type:"cartesian",isRect:!0})}}]),a(e,[{key:"_init",value:function(){var t=this.start,e=this.end,n={start:t.y,end:e.y};this.x={start:t.x,end:e.x},this.y=n}},{key:"convertPoint",value:function(t){var e,n;return this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y),{x:this.convertDim(e,"x"),y:this.convertDim(n,"y")}}},{key:"invertPoint",value:function(t){var e=this.invertDim(t.x,"x"),n=this.invertDim(t.y,"y");return this.isTransposed?{x:n,y:e}:{x:e,y:n}}}]),e}();t.exports=f},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=n(43),l=n(35),f=n(8),h=n(44),p=c.mat3,d=c.vec2,g=c.vec3,v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,u(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(e,h),a(e,[{key:"getDefaultCfg",value:function(){var t=s(u(e.prototype),"getDefaultCfg",this).call(this);return f({},t,{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,type:"polar",isPolar:!0})}}]),a(e,[{key:"_init",value:function(){for(var t=this.radius,e=this.innerRadius,n=this.center,r=this.startAngle,i=this.endAngle;i<r;)i+=2*Math.PI;this.endAngle=i;var a,o,s=this.getOneBox(),u=s.maxX-s.minX,c=s.maxY-s.minY,l=Math.abs(s.minX)/u,f=Math.abs(s.minY)/c,h=this.width,p=this.height;o=p/c>h/u?{x:n.x-(.5-l)*h,y:n.y-(.5-f)*(a=h/u)*c}:{x:n.x-(.5-l)*(a=p/c)*u,y:n.y-(.5-f)*p},t?t>0&&t<=1?t*=a:(t<=0||t>a)&&(t=a):t=a;var d={start:e*t,end:t};this.x={start:r,end:i},this.y=d,this.radius=t,this.circleCentre=o,this.center=o}},{key:"getCenter",value:function(){return this.circleCentre}},{key:"getOneBox",value:function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}}},{key:"getRadius",value:function(){return this.radius}},{key:"convertPoint",value:function(t){var e=this.getCenter(),n=this.isTransposed?t.y:t.x,r=this.isTransposed?t.x:t.y;return n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:e.x+Math.cos(n)*r,y:e.y+Math.sin(n)*r}}},{key:"invertPoint",value:function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],r=this.x,i=[1,0,0,0,1,0,0,0,1];p.rotate(i,i,r.start);var a=[1,0,0];g.transformMat3(a,a,i);var o=d.angleTo(a=[a[0],a[1]],n,r.end<r.start);l(o,2*Math.PI)&&(o=0);var s=d.length(n),u=o/(r.end-r.start);u=r.end-r.start>0?u:-u;var c=this.invertDim(s,"y"),f={};return f.x=this.isTransposed?c:u,f.y=this.isTransposed?u:c,f}}]),e}();t.exports=v},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=n(43),l=n(35),f=n(8),h=n(44),p=c.vec2,d=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,u(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(e,h),a(e,[{key:"getDefaultCfg",value:function(){var t=s(u(e.prototype),"getDefaultCfg",this).call(this);return f({},t,{startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,innerRadius:0,type:"helix",isHelix:!0})}}]),a(e,[{key:"_init",value:function(){var t=this.radius,e=this.innerRadius,n=this.startAngle,r=this.endAngle,i=(r-n)/(2*Math.PI)+1,a=Math.min(this.width,this.height)/2;t&&t>=0&&t<=1&&(a*=t);var o=Math.floor(a*(1-e)/i),s=o/(2*Math.PI),u={start:n,end:r},c={start:e*a,end:e*a+.99*o};this.a=s,this.d=o,this.x=u,this.y=c}},{key:"getCenter",value:function(){return this.center}},{key:"convertPoint",value:function(t){var e,n,r=this.a,i=this.center;this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y);var a=this.convertDim(e,"x"),o=r*a,s=this.convertDim(n,"y");return{x:i.x+Math.cos(a)*(o+s),y:i.y+Math.sin(a)*(o+s)}}},{key:"invertPoint",value:function(t){var e=this.center,n=this.a,r=this.d+this.y.start,i=p.subtract([],[t.x,t.y],[e.x,e.y]),a=p.angleTo(i,[1,0],!0),o=a*n;p.length(i)<o&&(o=p.length(i));var s=n*(a=2*Math.floor((p.length(i)-o)/r)*Math.PI+a),u=p.length(i)-s;u=l(u,0)?0:u;var c=this.invertDim(a,"x"),f=this.invertDim(u,"y");c=l(c,0)?0:c,f=l(f,0)?0:f;var h={};return h.x=this.isTransposed?f:c,h.y=this.isTransposed?c:f,h}}]),e}();t.exports=d},function(t,e,n){function r(t,e){return void 0===e&&(e=0),"middle"===t&&(e=.5),-1!==t.indexOf("%")&&(e=parseInt(t,10)/100),e}var i=n(0),a=n(21).Axis,o=i.MatrixUtil.vec2,s=function(){function t(t){this.visible=!0,this.canvas=null,this.container=null,this.coord=null,this.options=null,this.axes=[],i.mix(this,t)}var e=t.prototype;return e._isHide=function(t){var e=this.options;return!(!e||!1!==e[t])},e._getMiddleValue=function(t,e,n,r){if(0===t&&!r)return 0;if(1===t)return 1;var i=e[n+1].value;return r||1!==i?(t+i)/2:1},e._getLineRange=function(t,e,n,i){var a,o,s,u=e.field,c=this.options,l="";if(c[u]&&c[u].position&&(l=c[u].position),"x"===n){var f="top"===l?1:0;a={x:0,y:f=r(l,f)},o={x:1,y:f},s=!1}else{if(i){var h="left"===l?0:1;a={x:h=r(l,h),y:0},o={x:h,y:1}}else{var p="right"===l?1:0;a={x:p=r(l,p),y:0},o={x:p,y:1}}s=!0}return{start:a=t.convert(a),end:o=t.convert(o),isVertical:s}},e._getLineCfg=function(t,e,n,r){var i=this._getLineRange(t,e,n,r),a=i.isVertical,o=i.start,s=t.center;return t.isTransposed&&(a=!a),{isVertical:a,factor:a&&o.x>s.x||!a&&o.y>s.y?1:-1,start:o,end:i.end}},e._getCircleCfg=function(t){var e,n={},r=t.x,i=t.y,a=i.start>i.end;e=t.convert(e=t.isTransposed?{x:a?0:1,y:0}:{x:0,y:a?0:1});var s,u=t.circleCentre,c=[e.x-u.x,e.y-u.y],l=[1,0],f=(s=e.y>u.y?o.angle(c,l):-1*o.angle(c,l))+(r.end-r.start);return n.startAngle=s,n.endAngle=f,n.center=u,n.radius=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),n.inner=t.innerRadius||0,n},e._getRadiusCfg=function(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{factor:t.x.start<0?-1:1,start:t.convert(e),end:t.convert(n)}},e._getAxisPosition=function(t,e,n,r){var i="",a=this.options;return a[r]&&a[r].position?i=a[r].position:t.isRect?"x"===e?i="bottom":"y"===e&&(i=n?"right":"left"):i="helix"===t.type?"helix":"x"===e?t.isTransposed?"radius":"circle":t.isTransposed?"circle":"radius",i},e._getAxisDefaultCfg=function(t,e,n,r){var a=this.viewTheme,o={},s=this.options,u=e.field;if((o=i.deepMix({},a.axis[r],o,s[u])).viewTheme=a,o.title){var c=i.isPlainObject(o.title)?o.title:{};c.text=c.text||e.alias||u,i.deepMix(o,{title:c})}return o.ticks=e.getTicks(),t.isPolar&&!e.isCategory&&"x"===n&&Math.abs(t.endAngle-t.startAngle)===2*Math.PI&&o.ticks.pop(),o.coord=t,o.label&&i.isNil(o.label.autoRotate)&&(o.label.autoRotate=!0),s.hasOwnProperty("xField")&&s.xField.hasOwnProperty("grid")&&"left"===o.position&&i.deepMix(o,s.xField),o},e._getAxisCfg=function(t,e,n,r,a,o){void 0===a&&(a="");var s=this,u=s._getAxisPosition(t,r,a,e.field),c=s._getAxisDefaultCfg(t,e,r,u);if(!i.isEmpty(c.grid)&&n){var l=[],f=[],h=function(t){var e=[];if(t.length>0){var n=(e=t.slice(0))[0],r=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==r.value&&e.push({value:1})}return e}(n.getTicks());if(h.length){var p=function(t,e,n){var r=[];return t.length<1?r:(t.length>=2&&e&&"center"===c.grid.align&&r.push({text:"",tickValue:"",value:0}),0!==t[0].value&&r.push({text:"",tickValue:"",value:0}),1!==(r=r.concat(t))[r.length-1].value&&r.push({text:"",tickValue:"",value:1}),r)}(c.ticks,e.isLinear);i.each(p,function(n,u){f.push(n.tickValue);var d=[],g=n.value;if("center"===c.grid.align&&(g=s._getMiddleValue(g,p,u,e.isLinear)),!i.isNil(g)){var v=t.x,y=t.y;i.each(h,function(e){var n="x"===r?e.value:g,i=t.convert({x:"x"===r?g:e.value,y:n});if(t.isPolar){var a=t.circleCentre;y.start>y.end&&(n=1-n),i.flag=v.start>v.end?0:1,i.radius=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2))}d.push(i)}),l.push({_id:o+"-"+r+a+"-grid-"+n.tickValue,points:d})}})}c.grid.items=l,c.grid.tickValues=f}return c.type=e.type,c},e._getHelixCfg=function(t){for(var e={},n=t.a,r=t.startAngle,i=t.endAngle,a=[],o=0;o<=100;o++){var s=t.convert({x:o/100,y:0});a.push(s.x),a.push(s.y)}var u=t.convert({x:0,y:0});return e.a=n,e.startAngle=r,e.endAngle=i,e.crp=a,e.axisStart=u,e.center=t.center,e.inner=t.y.start,e},e._drawAxis=function(t,e,n,r,o,s,u){var c,l,f=this.container,h=this.canvas;"cartesian"===t.type?(c=a.Line,l=this._getLineCfg(t,e,r,u)):"helix"===t.type&&"x"===r?(c=a.Helix,l=this._getHelixCfg(t)):"x"===r?(c=a.Circle,l=this._getCircleCfg(t)):(c=a.Line,l=this._getRadiusCfg(t));var p=this._getAxisCfg(t,e,n,r,u,o);p=i.mix({},p,l),"y"===r&&s&&"circle"===s.get("type")&&(p.circle=s),p._id=o+"-"+r,i.isNil(u)||(p._id=o+"-"+r+u),i.mix(p,{canvas:h,group:f});var d=new c(p);return d.render(),this.axes.push(d),d},e.createAxis=function(t,e,n){var r,a=this,o=this.coord,s=o.type;"theta"===s||"polar"===s&&o.isTransposed||(t&&!a._isHide(t.field)&&(r=a._drawAxis(o,t,e[0],"x",n)),i.isEmpty(e)||"helix"===s||i.each(e,function(e,i){a._isHide(e.field)||a._drawAxis(o,e,t,"y",n,r,i)}))},e.changeVisible=function(t){i.each(this.axes,function(e){e.set("visible",t)})},e.clear=function(){i.each(this.axes,function(t){t.clear()}),this.axes=[]},t}();t.exports=s},function(t,e,n){var r=n(0),i=n(349),a=function(){function t(t){this.guides=[],this.options=[],this.xScales=null,this.yScales=null,this.view=null,this.viewTheme=null,this.frontGroup=null,this.backGroup=null,r.mix(this,t)}var e=t.prototype;return e._creatGuides=function(){var t=this,e=this.options,n=this.xScales,a=this.yScales,o=this.view,s=this.viewTheme;return this.backContainer&&o&&(this.backGroup=this.backContainer.addGroup({viewId:o.get("_id")})),this.frontContainer&&o&&(this.frontGroup=this.frontContainer.addGroup({viewId:o.get("_id")})),e.forEach(function(e){var o=e.type,u=r.deepMix({xScales:n,yScales:a,viewTheme:s},s?s.guide[o]:{},e);o=r.upperFirst(o);var c=new i[o](u);t.guides.push(c)}),t.guides},e.line=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"line"},t)),this},e.arc=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"arc"},t)),this},e.text=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"text"},t)),this},e.image=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"image"},t)),this},e.region=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"region"},t)),this},e.regionFilter=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"regionFilter"},t)),this},e.dataMarker=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"dataMarker"},t)),this},e.dataRegion=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"dataRegion"},t)),this},e.html=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"html"},t)),this},e.render=function(t){var e=this,n=e.view,i=n&&n.get("data"),a=e._creatGuides();r.each(a,function(r){var a;a=r.get("top")?e.frontGroup||e.frontContainer:e.backGroup||e.backContainer,r.render(t,a,i,n)})},e.clear=function(){this.options=[],this.reset()},e.changeVisible=function(t){r.each(this.guides,function(e){e.changeVisible(t)})},e.reset=function(){r.each(this.guides,function(t){t.clear()}),this.guides=[],this.backGroup&&this.backGroup.remove(),this.frontGroup&&this.frontGroup.remove()},t}();t.exports=a},function(t,e,n){var r=n(21).Guide,i=n(350);r.RegionFilter=i,t.exports=r},function(t,e,n){var r=n(0),i=n(15),a=n(25).Path,o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"regionFilter",zIndex:1,top:!0,start:null,end:null,color:null,apply:null,style:{opacity:1}})},n.render=function(t,e,n,r){var i=this,a=e.addGroup();a.name="guide-region-filter",r.once("afterpaint",function(){if(!a.get("destroyed")){i._drawShapes(r,a);var e=i._drawClip(t);a.attr({clip:e}),i.set("clip",e),i.get("appendInfo")&&a.setSilent("appendInfo",i.get("appendInfo")),i.set("el",a)}})},n._drawShapes=function(t,e){var n=this,i=[];return t.getAllGeoms().map(function(t){var a=t.getShapes(),o=t.get("type");return n._geomFilter(o)&&a.map(function(t){var a=t.type,o=r.cloneDeep(t.attr());n._adjustDisplay(o);var s=e.addShape(a,{attrs:o});return i.push(s),t}),t}),i},n._drawClip=function(t){var e=this.parsePoint(t,this.get("start")),n=this.parsePoint(t,this.get("end"));return new a({attrs:{path:[["M",e.x,e.y],["L",n.x,e.y],["L",n.x,n.y],["L",e.x,n.y],["z"]],opacity:1}})},n._adjustDisplay=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},n._geomFilter=function(t){var e=this.get("apply");return!e||r.contains(e,t)},n.clear=function(){t.prototype.clear.call(this);var e=this.get("clip");e&&e.remove()},e}(i);t.exports=o},function(t,e,n){var r=n(0),i=n(21).Legend,a=n(352),o=n(18),s=n(166),u=n(168),c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,l=["cross","tick","plus","hyphen","line","hollowCircle","hollowSquare","hollowDiamond","hollowTriangle","hollowTriangleDown","hollowHexagon","hollowBowtie"],f=function(){function t(t){this.options={},r.mix(this,t),this.clear();var e=this.chart;this.container=e.get("frontPlot"),this.plotRange=e.get("plotRange")}var e=t.prototype;return e.clear=function(){var t=this.legends;this.backRange=null,r.each(t,function(t){r.each(t,function(t){t.destroy()})}),this.legends={}},e.getBackRange=function(){var t=this.backRange;if(!t){var e=this.chart.get("backPlot");t=s(e,u(this.chart.get("plotRange")));var n=this.plotRange;t.maxX-t.minX<n.br.x-n.tl.x&&t.maxY-t.minY<n.br.y-n.tl.y&&(t={minX:n.tl.x,minY:n.tl.y,maxX:n.br.x,maxY:n.br.y}),this.backRange=t}return t},e._isFieldInView=function(t,e,n){var i=!1,a=n.get("scales")[t];return a&&a.values&&(i=r.inArray(a.values,e)),i},e._bindClickEvent=function(t,e,n){var i=this,a=i.chart,o=a.get("views"),s=e.field,u=i.options;t.on("itemclick",function(e){if(u.onClick&&!0!==u.defaultClickHandlerEnabled)u.onClick(e);else{var c=e.item,l=e.checked,f="single"===t.get("selectedMode"),h=c.dataValue;l?(r.Array.remove(n,h),i._isFieldInView(s,h,a)&&a.filter(s,function(t){return f?t===h:!r.inArray(n,t)}),r.each(o,function(t){i._isFieldInView(s,h,t)&&t.filter(s,function(t){return f?t===h:!r.inArray(n,t)})})):f||(n.push(h),i._isFieldInView(s,h,a)&&a.filter(s,function(t){return!r.inArray(n,t)}),r.each(o,function(t){i._isFieldInView(s,h,t)&&t.filter(s,function(t){return!r.inArray(n,t)})})),u.onClick&&u.onClick(e),a.set("keepLegend",!0),a.set("keepPadding",!0),a.repaint(),a.set("keepPadding",!1),a.set("keepLegend",!1)}})},e._bindClickEventForMix=function(t){var e=this.chart.getAllGeoms();t.on("itemclick",function(t){var n=t.item.field;r.each(e,t.checked?function(t){t.getYScale().field===n&&t.show()}:function(t){t.getYScale().field===n&&t.hide()})})},e._filterLabels=function(t,e,n){if(t.get("gLabel"))t.get("gLabel").set("visible",n);else{var i=e.get("labelCfg");if(i&&i.fields&&i.fields.length>0){var a=e.getXScale(),o=e.getYScale(),s=a.field,u=o.field,c=t.get("origin")._origin,l=e.get("labelContainer").get("labelsGroup").get("children");r.each(l,function(e){var r=e.get("origin")||[];r[s]===c[s]&&r[u]===c[u]&&(e.set("visible",n),t.set("gLabel",e))})}}},e._bindFilterEvent=function(t,e){var n=this,i=this.chart,a=e.field;t.on("itemfilter",function(t){var e=t.range;i.filterShape(function(t,i,o){if(!r.isNil(t[a])){var s=t[a]>=e[0]&&t[a]<=e[1];return n._filterLabels(i,o,s),s}return!0});for(var o=i.getAllGeoms()||[],s=function(t){var n=o[t];"heatmap"===n.get("type")&&c(function(){n.drawWithRange(e)})},u=0;u<o.length;u++)s(u)})},e._getShapeData=function(t){var e=t.get("origin");return r.isArray(e)&&(e=e[0]),e._origin},e._bindHoverEvent=function(t,e){var n=this,i=n.chart,a=i.getAllGeoms(),o=n.options,s=i.get("canvas");t.on("itemhover",function(t){var i=t.item.value,u=n.pre;if(u){if(u===i)return}else r.each(a,function(a){var u=a.get("shapeContainer"),c=a.getShapes(),l=[];if(e){var f=a.get("scales")[e];r.each(c,function(t){var a=n._getShapeData(t);a&&function(t,e,n){return!r.isNil(n)&&(t=n.translate(t),e=n.translate(e),n.isCategory?t===e:Math.abs(t-e)<=1)}(a[e],i,f)&&l.push(t)})}else a.getYScale().field===i&&(l=c);r.isEmpty(l)||(t.shapes=l,t.geom=a,o.onHover?(o.onHover(t),u.sort(),s.draw()):a.setShapesActived(l))}),n.pre=i}),t.on("itemunhover",function(t){n.pre=null,o.onUnhover&&o.onUnhover(t),r.each(a,function(t){t.get("activeShapes")&&(t.clearActivedShapes(),s.draw())})})},e._isFiltered=function(t,e,n){if(!t.isCategory)return!0;var i=!0;return n=t.invert(n),r.each(e,function(e){if(t.getText(e)===t.getText(n))return i=!1,!1}),i},e._alignLegend=function(t,e,n,r){var i=this.viewTheme,a=this.container.get("canvas"),o=a.get("width"),s=a.get("height"),u=this.totalRegion,c=this.plotRange,l=this.getBackRange(),f=t.get("offset")[0]||0,h=t.get("offset")[1]||0,p=t.getHeight(),d=t.getWidth(),g=i.legend.margin,v=i.legend.legendMargin,y=this.legends[r].length,m=r.split("-"),x=0,b=0,_=y>1?u:n;if("left"===m[0]||"right"===m[0])s=c.br.y,x=this._getXAlign(m[0],o,n,l,d,g),b=e?(e.get("y")||e.get("group").get("y"))+e.getHeight()+v:this._getYAlignVertical(m[1],s,_,l,0,g,a.get("height"));else if("top"===m[0]||"bottom"===m[0])if(b=this._getYAlignHorizontal(m[0],s,n,l,p,g),e){var w=e.getWidth();x=(e.get("x")||e.get("group").get("x"))+w+v}else x=this._getXAlign(m[1],o,_,l,0,g),"right"===m[1]&&(x=c.br.x-_.totalWidth);t.move(x+f,b+h)},e._getXAlign=function(t,e,n,r,i,a){var o="left"===t?r.minX-i-a[3]:r.maxX+a[1];return"center"===t&&(o=(e-n.totalWidth)/2),o},e._getYAlignHorizontal=function(t,e,n,r,i,a){return"top"===t?r.minY-i-a[0]:r.maxY+a[2]},e._getYAlignVertical=function(t,e,n,r,i,a,o){var s="top"===t?r.minY-i-a[0]:e-n.totalHeight;return"center"===t&&(s=(o-n.totalHeight)/2),s},e._getSubRegion=function(t){var e=0,n=0,i=0,a=0;return r.each(t,function(t){var r=t.getWidth(),o=t.getHeight();e<r&&(e=r),i+=r,n<o&&(n=o),a+=o}),{maxWidth:e,totalWidth:i,maxHeight:n,totalHeight:a}},e._getRegion=function(){var t=this,e=t.viewTheme.legend.legendMargin,n=[],i=0,a=0;return r.each(t.legends,function(r){var o=t._getSubRegion(r);n.push(o),i+=o.totalWidth+e,a+=o.totalHeight+e}),{totalWidth:i,totalHeight:a,subs:n}},e._addCategoryLegend=function(t,e,n,s,u){var c=this,l=t.field,f=c.options,h=f[l];h&&(f=h);var p=c.legends;p[u]=p[u]||[];var d=c.container,g=[],v=t.getTicks(),y=!0,m=n.get("shapeType")||"point",x=n.getDefaultValue("shape")||"circle";f[l]&&f[l].marker?(x=f[l].marker,m="point",y=!1):f.marker&&(x=f.marker,m="point",y=!1);var b=c.chart,_=c.viewTheme,w=b.get("canvas"),O=c.plotRange,j=u.split("-"),S="right"===j[0]||"left"===j[0]?O.bl.y-O.tr.y:w.get("width");r.each(v,function(e){var i=e.text,a=e.value,u=t.invert(a),l={isInCircle:n.isInCircle()},f=!s||c._isFiltered(t,s,a),h=n.getAttr("color"),p=n.getAttr("shape");if(h)if(h.callback&&h.callback.length>1){var d=Array(h.callback.length-1).fill("");l.color=h.mapping.apply(h,[u].concat(d)).join("")||_.defaultColor}else l.color=h.mapping(u).join("")||_.defaultColor;if(y&&p)if(p.callback&&p.callback.length>1){var v=Array(p.callback.length-1).fill("");x=p.mapping.apply(p,[u].concat(v)).join("")}else x=p.mapping(u).join("");var b=o.getShapeFactory(m).getMarkerCfg(x,l);r.isFunction(x)&&(b.symbol=x),g.push({value:i,dataValue:u,checked:f,marker:b})});var M,E=r.deepMix({},_.legend[j[0]],f[l]||f,{viewId:b.get("_id"),maxLength:S,items:g,container:d,position:[0,0]});if(E.title&&r.deepMix(E,{title:{text:t.alias||t.field}}),c._isTailLegend(f,n))E.chart=c.chart,E.geom=n,M=new a(E);else if(f.useHtml){var P=d.get("canvas").get("el");if(r.isString(d=f.container)&&/^\#/.test(d)){var C=d.replace("#","");d=document.getElementById(C)}d||(d=P.parentNode),E.container=d,void 0===E.legendStyle&&(E.legendStyle={}),E.legendStyle.CONTAINER_CLASS={position:"absolute",overflow:"auto","z-index":""===P.style.zIndex?1:parseInt(P.style.zIndex,10)+1},f.flipPage?(E.legendStyle.CONTAINER_CLASS.height="right"===j[0]||"left"===j[0]?S+"px":"auto",E.legendStyle.CONTAINER_CLASS.width="right"!==j[0]&&"left"!==j[0]?S+"px":"auto",M=new i.CatPageHtml(E)):M=new i.CatHtml(E)}else M=new i.Category(E);return c._bindClickEvent(M,t,s),p[u].push(M),M},e._bindChartMove=function(t){var e=this.legends;this.chart.on("plotmove",function(n){var i=!1;if(n.target){var a=n.target.get("origin");if(a){var o=a._origin||a[0]._origin;if(o){var s=o[t.field];r.each(e,function(t){r.each(t,function(t){i=!0,!t.destroyed&&t.activate(s)})})}}}i||r.each(e,function(t){r.each(t,function(t){!t.destroyed&&t.deactivate()})})})},e._addContinuousLegend=function(t,e,n){var a=this.legends;a[n]=a[n]||[];var o,s,u,c=this.container,l=t.field,f=t.getTicks(),h=[],p=this.viewTheme;r.each(f,function(n){var r=n.value,i=t.invert(r),a=e.mapping(i).join("");h.push({value:n.tickValue,attrValue:a,color:a,scaleValue:r}),0===r&&(s=!0),1===r&&(u=!0)}),s||h.push({value:t.min,attrValue:e.mapping(0).join(""),color:e.mapping(0).join(""),scaleValue:0}),u||h.push({value:t.max,attrValue:e.mapping(1).join(""),color:e.mapping(1).join(""),scaleValue:1});var d=this.options,g=n.split("-"),v=p.legend[g[0]];(d&&!1===d.slidable||d[l]&&!1===d[l].slidable)&&(v=r.mix({},v,p.legend.gradient));var y=r.deepMix({},v,d[l]||d,{items:h,attr:e,formatter:t.formatter,container:c,position:[0,0]});if(y.title&&r.deepMix(y,{title:{text:t.alias||t.field}}),"color"===e.type)o=new i.Color(y);else{if("size"!==e.type)return;o=d&&"circle"===d.sizeType?new i.CircleSize(y):new i.Size(y)}return this._bindFilterEvent(o,t),a[n].push(o),o},e._isTailLegend=function(t,e){if(t.hasOwnProperty("attachLast")&&t.attachLast){var n=e.get("type");if("line"===n||"lineStack"===n||"area"===n||"areaStack"===n)return!0}return!1},e._adjustPosition=function(t,e){var n;if(e)n="right-top";else if(r.isArray(t))n=String(t[0])+"-"+String(t[1]);else{var i=t.split("-");1===i.length?("left"===i[0]&&(n="left-bottom"),"right"===i[0]&&(n="right-bottom"),"top"===i[0]&&(n="top-center"),"bottom"===i[0]&&(n="bottom-center")):n=t}return n},e.addLegend=function(t,e,n,r){var i=this.options,a=t.field,o=i[a],s=this.viewTheme;if(!1===o)return null;if(o&&o.custom)this.addCustomLegend(a);else{var u,c=i.position||s.defaultLegendPosition;c=this._adjustPosition(c,this._isTailLegend(i,n)),o&&o.position&&(c=this._adjustPosition(o.position,this._isTailLegend(o,n))),(u=t.isLinear?this._addContinuousLegend(t,e,c):this._addCategoryLegend(t,e,n,r,c))&&(this._bindHoverEvent(u,a),i.reactive&&this._bindChartMove(t))}},e.addCustomLegend=function(t){var e=this.chart,n=this.viewTheme,a=this.container,o=this.options;t&&(o=o[t]);var s=o.position||n.defaultLegendPosition;s=this._adjustPosition(s);var u=this.legends;u[s]=u[s]||[];var c=o.items;if(c){var f=e.getAllGeoms();r.each(c,function(t){var e=function(t,e){var n;return r.each(f,function(t){t.get("visible")&&t.getYScale().field===e&&(n=t)}),n}(0,t.value);r.isPlainObject(t.marker)?t.marker.radius=t.marker.radius||4.5:(t.marker={symbol:t.marker||"circle",radius:4.5},-1!==r.indexOf(l,t.marker.symbol)?t.marker.stroke=t.fill:t.marker.fill=t.fill);var n=t.marker.symbol;r.isString(n)&&-1!==n.indexOf("hollow")&&(t.marker.symbol=r.lowerFirst(n.substr(6))),t.checked=!!r.isNil(t.checked)||t.checked,t.geom=e});var h,p=e.get("canvas"),d=this.plotRange,g=s.split("-"),v="right"===g[0]||"left"===g[0]?d.bl.y-d.tr.y:p.get("width"),y=r.deepMix({},n.legend[g[0]],o,{maxLength:v,items:c,container:a,position:[0,0]});if(o.useHtml){var m=o.container;if(/^\#/.test(a)){var x=m.replace("#","");m=document.getElementById(x)}else m||(m=a.get("canvas").get("el").parentNode);y.container=m,void 0===y.legendStyle&&(y.legendStyle={}),y.legendStyle.CONTAINER_CLASS||(y.legendStyle.CONTAINER_CLASS={height:"right"===g[0]||"left"===g[0]?v+"px":"auto",width:"right"!==g[0]&&"left"!==g[0]?v+"px":"auto",position:"absolute",overflow:"auto"}),h=o.flipPage?new i.CatPageHtml(y):new i.CatHtml(y)}else h=new i.Category(y);return u[s].push(h),h.on("itemclick",function(t){o.onClick&&o.onClick(t)}),this._bindHoverEvent(h),h}},e.addMixedLegend=function(t,e){var n=[];r.each(t,function(t){var i=t.alias||t.field;r.each(e,function(e){if(e.getYScale()===t&&t.values&&t.values.length>0){var r=e.get("shapeType")||"point",a=e.getDefaultValue("shape")||"circle",s=o.getShapeFactory(r),u={color:e.getDefaultValue("color")},c=s.getMarkerCfg(a,u);n.push({value:i,marker:c,field:t.field})}})}),this.options=r.deepMix({},{custom:!0,items:n},this.options);var i=this.addCustomLegend();this._bindClickEventForMix(i)},e.alignLegends=function(){var t=this,e=t.legends,n=t._getRegion(e);t.totalRegion=n;var i=0;return r.each(e,function(e,a){var o=n.subs[i];r.each(e,function(n,r){var i=e[r-1];n.get("useHtml")&&!n.get("autoPosition")||t._alignLegend(n,i,o,a)}),i++}),this},t}();t.exports=f},function(t,e,n){var r=n(0),i=n(21),a=n(7),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"tail-legend",layout:"vertical",autoLayout:!0})},n._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),i=this.get("unCheckColor"),a=e.addGroup({x:0,y:0,value:t.value,scaleValue:t.scaleValue,checked:t.checked});a.translate(n,0),a.set("viewId",e.get("viewId"));var o=this.get("textStyle"),s=this.get("_wordSpaceing"),u=0;if(t.marker){var c=r.mix({},t.marker,{x:t.marker.radius,y:0});t.checked||(c.fill&&(c.fill=i),c.stroke&&(c.stroke=i));var l=a.addShape("marker",{type:"marker",attrs:c});l.attr("cursor","pointer"),l.name="legend-marker",u+=l.getBBox().width+s}var f=r.mix({},o,{x:u,y:0,text:this._formatItemValue(t.value)});t.checked||r.mix(f,{fill:i});var h=a.addShape("text",{attrs:f});h.attr("cursor","pointer"),h.name="legend-text",this.get("appendInfo")&&h.setSilent("appendInfo",this.get("appendInfo"));var p=a.getBBox(),d=this.get("itemWidth"),g=a.addShape("rect",{attrs:{x:n,y:0-p.height/2,fill:"#fff",fillOpacity:0,width:d||p.width,height:p.height}});return g.attr("cursor","pointer"),g.setSilent("origin",t),g.name="legend-item",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo")),a.name="legendGroup",a},n._adjust=function(){if(this.get("geom")){this.get("group").attr("matrix")[7]=0;var t=this.get("geom").get("dataArray"),e=this.get("itemsGroup").get("children"),n=0;r.each(e,function(e){var i=t[n],a=i[i.length-1].y;r.isArray(a)&&(a=a[1]);var o=e.getBBox().height,s=e.get("x");e.translate(s,a-o/2),n++}),this.get("autoLayout")&&this._antiCollision(e)}},n.render=function(){var e=this;t.prototype.render.call(this),this.get("chart").once("afterpaint",function(){e._adjust()})},n._getPreviousY=function(t){return t.attr("matrix")[7]+t.getBBox().height},n._adjustDenote=function(t,e,n){t.addShape("path",{attrs:{path:"M-2,"+e+"L"+2*-a.legend.legendMargin+","+(n+3),lineWidth:1,lineDash:[2,2],stroke:"#999999"}})},n._antiCollision=function(t){if(void 0===t&&(t=[]),t.length){var e=this;t.sort(function(t,e){return t.attr("matrix")[7]-e.attr("matrix")[7]});var n=!0,r=e.get("chart").get("plotRange"),i=r.tl.y,a=Math.abs(i-r.bl.y),o=t[0].getBBox().height,s=Number.MIN_VALUE,u=0,c=t.map(function(t){var e=t.attr("matrix")[7];return e>u&&(u=e),e<s&&(s=e),{size:t.getBBox().height,targets:[e-i]}});s-=i;for(var l=0;n;){for(var f=0;f<c.length;f++){var h=c[f],p=(Math.min.apply(s,h.targets)+Math.max.apply(s,h.targets))/2;h.pos=Math.min(Math.max(s,p-h.size/2),a-h.size)}for(n=!1,l=c.length;l--;)if(l>0){var d=c[l-1],g=c[l];d.pos+d.size>g.pos&&(d.size+=g.size,d.targets=d.targets.concat(g.targets),c.splice(l,1),n=!0)}}l=0;var v=this.get("itemsGroup").addGroup();c.forEach(function(n){var r=i+o;n.targets.forEach(function(){var i=t[l].attr("matrix")[7],a=n.pos+r-o/2;Math.abs(i-a)>o/2&&e._adjustDenote(v,a,i-e.get("group").attr("matrix")[7]/2),t[l].translate(0,-i),t[l].translate(0,a),r+=o,l++})})}},e}(i.Legend.Category);t.exports=o},function(t,e,n){function r(t,e){return!!t&&!!t.className&&-1!==(a.isNil(t.className.baseVal)?t.className:t.className.baseVal).indexOf(e)}function i(t){var e=[];return a.each(t,function(t){var n=function(t,e){var n=-1;return a.each(t,function(t,r){var i=!0;for(var o in e)if(e.hasOwnProperty(o)&&-1===f.indexOf(o)&&!a.isObject(e[o])&&e[o]!==t[o]){i=!1;break}if(i)return n=r,!1}),n}(e,t);-1===n?e.push(t):e[n]=t}),e}var a=n(0),o=n(18),s=n(21).Tooltip,u=a.MatrixUtil.vec2,c=["line","area","path","areaStack"],l=["line","area"],f=["marker","showMarker"],h=function(){function t(t){a.assign(this,t),this.timeStamp=0}var e=t.prototype;return e._normalizeEvent=function(t){var e=this.chart,n=this._getCanvas(),r=n.getPointByClient(t.clientX,t.clientY),i=n.get("pixelRatio");r.x=r.x/i,r.y=r.y/i;var a=e.getViewsByPoint(r);return r.views=a,r},e._getCanvas=function(){return this.chart.get("canvas")},e._getTriggerEvent=function(){var t,e=this.options.triggerOn;return e&&"mousemove"!==e?"click"===e?t="plotclick":"none"===e&&(t=null):t="plotmove",t},e._getDefaultTooltipCfg=function(){var t=this.chart,e=this.viewTheme,n=this.options,r=a.mix({},e.tooltip),i=t.getAllGeoms().filter(function(t){return t.get("visible")}),o=[];a.each(i,function(t){var e=t.get("type"),n=t.get("adjusts"),r=!1;n&&a.each(n,function(t){if("symmetric"===t.type||"Symmetric"===t.type)return r=!0,!1}),-1!==a.indexOf(o,e)||r||o.push(e)});var s,u=!(!i.length||!i[0].get("coord"))&&i[0].get("coord").isTransposed;if(i.length&&i[0].get("coord")&&"cartesian"===i[0].get("coord").type)if("interval"===o[0]&&!1!==n.shared){var c=a.mix({},e.tooltipCrosshairsRect);c.isTransposed=u,s={zIndex:0,crosshairs:c}}else if(a.indexOf(l,o[0])>-1){var f=a.mix({},e.tooltipCrosshairsLine);f.isTransposed=u,s={crosshairs:f}}return a.mix(r,s,{})},e._bindEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.on(e,a.wrapBehavior(this,"onMouseMove")),t.on("plotleave",a.wrapBehavior(this,"onMouseOut")))},e._offEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.off(e,a.getWrapBehavior(this,"onMouseMove")),t.off("plotleave",a.getWrapBehavior(this,"onMouseOut")))},e._setTooltip=function(t,e,n,r){var o=this.tooltip,s=this.prePoint;if(!s||s.x!==t.x||s.y!==t.y){e=i(e),this.prePoint=t;var u=this.chart,c=this.viewTheme,l=a.isArray(t.x)?t.x[t.x.length-1]:t.x,f=a.isArray(t.y)?t.y[t.y.length-1]:t.y;o.get("visible")||u.emit("tooltip:show",{x:l,y:f,tooltip:o});var h=e[0],p=h.title||h.name;o.isContentChange(p,e)&&(u.emit("tooltip:change",{tooltip:o,x:l,y:f,items:e}),o.setContent(p=e[0].title||e[0].name,e),a.isEmpty(n)?(o.clearMarkers(),o.set("markerItems",[])):!0===this.options.hideMarkers?o.set("markerItems",n):o.setMarkers(n,c.tooltipMarker)),r===this._getCanvas()&&"mini"===o.get("type")?o.hide():(o.setPosition(l,f,r),o.show())}},e.hideTooltip=function(){var t=this.tooltip,e=this.chart,n=this._getCanvas();this.prePoint=null,t.hide(),e.emit("tooltip:hide",{tooltip:t}),n.draw()},e.onMouseMove=function(t){if(!a.isEmpty(t.views)){var e=this.timeStamp,n=+new Date,r={x:t.x,y:t.y};n-e>16&&!this.chart.get("stopTooltip")&&(this.showTooltip(r,t.views,t.shape),this.timeStamp=n)}},e.onMouseOut=function(t){var e=this.tooltip;e.get("visible")&&e.get("follow")&&(t&&t.toElement&&(r(t.toElement,"g2-tooltip")||function(t,e){for(var n=t.parentNode,i=!1;n&&n!==document.body;){if(r(n,"g2-tooltip")){i=!0;break}n=n.parentNode}return i}(t.toElement))||this.hideTooltip())},e.renderTooltip=function(){var t=this;if(!t.tooltip){var e,n=t.chart,r=t.viewTheme,i=t._getCanvas(),o=t._getDefaultTooltipCfg(),u=t.options;(u=a.deepMix({plotRange:n.get("plotRange"),capture:!1,canvas:i,frontPlot:n.get("frontPlot"),viewTheme:r.tooltip,backPlot:n.get("backPlot")},o,u)).crosshairs&&"rect"===u.crosshairs.type&&(u.zIndex=0),u.visible=!1,"mini"===u.type?(u.crosshairs=!1,u.position="top",e=new s.Mini(u)):e=u.useHtml?new s.Html(u):new s.Canvas(u),t.tooltip=e;var c=t._getTriggerEvent();if(!e.get("enterable")&&"plotmove"===c){var l=e.get("container");l&&(l.onmousemove=function(e){var r=t._normalizeEvent(e);n.emit(c,r)})}t._bindEvent()}},e.showTooltip=function(t,e,n){var r=this;if(!a.isEmpty(e)&&t){this.tooltip||this.renderTooltip();var i=r.options,o=[],s=[];if(a.each(e,function(e){if(!e.get("tooltipEnable"))return!0;var n=e.get("geoms"),u=e.get("coord");a.each(n,function(e){var n=e.get("type");if(e.get("visible")&&!1!==e.get("tooltipCfg")){var l=e.get("dataArray");if(e.isShareTooltip()||!1===i.shared&&a.inArray(["area","line","path","polygon"],n))a.each(l,function(l){var f=e.findPoint(t,l);if(f){var h=e.getTipItems(f,i.title);a.each(h,function(t){var i=t.point;if(i&&i.x&&i.y){var s=a.isArray(i.x)?i.x[i.x.length-1]:i.x,l=a.isArray(i.y)?i.y[i.y.length-1]:i.y;i=u.applyMatrix(s,l,1),t.x=i[0],t.y=i[1],t.showMarker=!0;var f=r._getItemMarker(e,t.color);t.marker=f,-1!==a.indexOf(c,n)&&o.push(t)}}),s=s.concat(h)}});else{var f=e.get("shapeContainer"),h=f.get("canvas").get("pixelRatio"),p=f.getShape(t.x*h,t.y*h);p&&p.get("visible")&&p.get("origin")&&(s=e.getTipItems(p.get("origin"),i.title))}}}),a.each(s,function(t){var e=t.point,n=a.isArray(e.x)?e.x[e.x.length-1]:e.x,r=a.isArray(e.y)?e.y[e.y.length-1]:e.y;e=u.applyMatrix(n,r,1),t.x=e[0],t.y=e[1]})}),s.length){var l=s[0];if(!s.every(function(t){return t.title===l.title})){var f=l,h=1/0;s.forEach(function(e){var n=u.distance([t.x,t.y],[e.x,e.y]);n<h&&(h=n,f=e)}),s=s.filter(function(t){return t.title===f.title}),o=o.filter(function(t){return t.title===f.title})}if(!1===i.shared&&s.length>1){var p=s[0],d=Math.abs(t.y-p.y);a.each(s,function(e){Math.abs(t.y-e.y)<=d&&(p=e,d=Math.abs(t.y-e.y))}),p&&p.x&&p.y&&(o=[p]),s=[p]}r._setTooltip(t,s,o,n)}else r.hideTooltip()}},e.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._offEvent()},e._getItemMarker=function(t,e){var n=t.get("shapeType")||"point",r=t.getDefaultValue("shape")||"circle",i={color:e};return o.getShapeFactory(n).getMarkerCfg(r,i)},t}();t.exports=h},function(t,e,n){function r(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return a.isNil(n)&&a.isNil(r)?a.isEqual(t,e):a.isEqual(n,r)}function i(t){t.shape&&t.shape.get("origin")&&(t.data=t.shape.get("origin"))}var a=n(0),o=function(){function t(t){this.view=null,this.canvas=null,a.assign(this,t),this._init()}var e=t.prototype;return e._init=function(){this.pixelRatio=this.canvas.get("pixelRatio")},e._getShapeEventObj=function(t){return{x:t.x/this.pixelRatio,y:t.y/this.pixelRatio,target:t.target,toElement:t.event.toElement||t.event.relatedTarget}},e._getShape=function(t,e){return this.view.get("canvas").getShape(t,e)},e._getPointInfo=function(t){var e={x:t.x/this.pixelRatio,y:t.y/this.pixelRatio},n=this.view.getViewsByPoint(e);return e.views=n,e},e._getEventObj=function(t,e,n){return{x:e.x,y:e.y,target:t.target,toElement:t.event.toElement||t.event.relatedTarget,views:n}},e.bindEvents=function(){var t=this.canvas;t.on("mousedown",a.wrapBehavior(this,"onDown")),t.on("mousemove",a.wrapBehavior(this,"onMove")),t.on("mouseleave",a.wrapBehavior(this,"onOut")),t.on("mouseup",a.wrapBehavior(this,"onUp")),t.on("click",a.wrapBehavior(this,"onClick")),t.on("dblclick",a.wrapBehavior(this,"onClick")),t.on("touchstart",a.wrapBehavior(this,"onTouchstart")),t.on("touchmove",a.wrapBehavior(this,"onTouchmove")),t.on("touchend",a.wrapBehavior(this,"onTouchend"))},e._triggerShapeEvent=function(t,e,n){if(t&&t.name&&!t.get("destroyed")){var r=this.view;if(r.isShapeInView(t)){var i=t.name+":"+e;n.view=r,n.appendInfo=t.get("appendInfo"),r.emit(i,n);var a=r.get("parent");a&&a.emit(i,n)}}},e.onDown=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,i(n),e.emit("mousedown",n),this._triggerShapeEvent(this.currentShape,"mousedown",n)},e.onMove=function(t){var e=this.view,n=this.currentShape;n&&n.get("destroyed")&&(n=null,this.currentShape=null);var a=this._getShape(t.x,t.y)||t.currentTarget,o=this._getShapeEventObj(t);if(o.shape=a,i(o),e.emit("mousemove",o),this._triggerShapeEvent(a,"mousemove",o),n&&!r(n,a)){var s=this._getShapeEventObj(t);s.shape=n,s.toShape=a,i(s),this._triggerShapeEvent(n,"mouseleave",s)}if(a&&!r(n,a)){var u=this._getShapeEventObj(t);u.shape=a,u.fromShape=n,i(u),this._triggerShapeEvent(a,"mouseenter",u)}this.currentShape=a;var c=this._getPointInfo(t),l=this.curViews||[];0===l.length&&c.views.length&&e.emit("plotenter",this._getEventObj(t,c,c.views)),l.length&&0===c.views.length&&e.emit("plotleave",this._getEventObj(t,c,l)),c.views.length&&((o=this._getEventObj(t,c,c.views)).shape=a,i(o),e.emit("plotmove",o)),this.curViews=c.views},e.onOut=function(t){var e=this.view,n=this._getPointInfo(t),r=this._getEventObj(t,n,this.curViews||[]);!this.curViews||0===this.curViews.length||r.toElement&&"CANVAS"===r.toElement.tagName||(e.emit("plotleave",r),this.curViews=[])},e.onUp=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,e.emit("mouseup",n),this._triggerShapeEvent(this.currentShape,"mouseup",n)},e.onClick=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,i(r),e.emit("click",r),this._triggerShapeEvent(n,t.type,r),this.currentShape=n;var o=this._getPointInfo(t),s=o.views;if(!a.isEmpty(s)){var u=this._getEventObj(t,o,s);this.currentShape&&(u.shape=this.currentShape,i(u)),"dblclick"===t.type?(e.emit("plotdblclick",u),e.emit("dblclick",r)):e.emit("plotclick",u)}},e.onTouchstart=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,i(r),e.emit("touchstart",r),this._triggerShapeEvent(n,"touchstart",r),this.currentShape=n},e.onTouchmove=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,i(r),e.emit("touchmove",r),this._triggerShapeEvent(n,"touchmove",r),this.currentShape=n},e.onTouchend=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,i(n),e.emit("touchend",n),this._triggerShapeEvent(this.currentShape,"touchend",n)},e.clearEvents=function(){var t=this.canvas;t.off("mousemove",a.getWrapBehavior(this,"onMove")),t.off("mouseleave",a.getWrapBehavior(this,"onOut")),t.off("mousedown",a.getWrapBehavior(this,"onDown")),t.off("mouseup",a.getWrapBehavior(this,"onUp")),t.off("click",a.getWrapBehavior(this,"onClick")),t.off("dblclick",a.getWrapBehavior(this,"onClick")),t.off("touchstart",a.getWrapBehavior(this,"onTouchstart")),t.off("touchmove",a.getWrapBehavior(this,"onTouchmove")),t.off("touchend",a.getWrapBehavior(this,"onTouchend"))},t}();t.exports=o},function(t,e,n){function r(t,e){var n=[];if(!1===t.get("animate"))return[];var i=t.get("children");return s.each(i,function(t){if(t.isGroup)n=n.concat(r(t,e));else if(t.isShape&&t._id){var i=t._id;(i=i.split("-")[0])===e&&n.push(t)}}),n}function i(t,e,n,r){return r?u.Action[n][r]:u.getAnimation(t,e,n)}function a(t,e,n){var r=u.getAnimateCfg(t,e);return n&&n[e]?s.deepMix({},r,n[e]):r}function o(t,e,n,r){var o,u,l=!1;if(r){var f=[],h=[];s.each(e,function(e){var n=t[e._id];n?(e.setSilent("cacheShape",n),f.push(e),delete t[e._id]):h.push(e)}),s.each(t,function(t){var e=t.name,r=t.coord,f=t._id,h=t.attrs,p=t.index,d=t.type;if(u=a(e,"leave",t.animateCfg),o=i(e,r,"leave",u.animation),s.isFunction(o)){var g=n.addShape(d,{attrs:h,index:p});if(g._id=f,g.name=e,r&&"label"!==e){var v=g.getMatrix(),y=c.multiply([],v,r.matrix);g.setMatrix(y)}l=!0,o(g,u,r)}}),s.each(f,function(t){var e=t.name,n=t.get("coord"),r=t.get("cacheShape").attrs;if(!s.isEqual(r,t.attr())){if(u=a(e,"update",t.get("animateCfg")),o=i(e,n,"update",u.animation),s.isFunction(o))o(t,u,n);else{var c=s.cloneDeep(t.attr());t.attr(r),t.animate(c,u.duration,u.easing,function(){t.setSilent("cacheShape",null)})}l=!0}}),s.each(h,function(t){var e=t.name,n=t.get("coord");u=a(e,"enter",t.get("animateCfg")),o=i(e,n,"enter",u.animation),s.isFunction(o)&&(o(t,u,n),l=!0)})}else s.each(e,function(t){var e=t.name,n=t.get("coord");u=a(e,"appear",t.get("animateCfg")),o=i(e,n,"appear",u.animation),s.isFunction(o)&&(o(t,u,n),l=!0)});return l}var s=n(0),u=n(126),c=s.MatrixUtil.mat3;t.exports={execAnimation:function(t,e){var n=t.get("middlePlot"),i=t.get("backPlot"),a=t.get("_id"),u=t.get("canvas"),c=u.get(a+"caches")||[];0===c.length&&(e=!1);var l=r(n,a),f=r(i,a),h=l.concat(f);u.setSilent(a+"caches",function(t){var e={};return s.each(h,function(t){if(t._id&&!t.isClip){var n=t._id;e[n]={_id:n,type:t.get("type"),attrs:s.cloneDeep(t.attr()),name:t.name,index:t.get("index"),animateCfg:t.get("animateCfg"),coord:t.get("coord")}}}),e}()),o(c,e?h:l,u,e)||u.draw()}}},function(t,e,n){var r=n(0),i=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{type:"plotBack",padding:null,background:null,plotRange:null,plotBackground:null}},n._beforeRenderUI=function(){this._calculateRange()},n._renderUI=function(){this._renderBackground(),this._renderPlotBackground()},n._renderBackground=function(){var t=this.get("background");if(t){var e=this.get("canvas"),n={x:0,y:0,width:this.get("width")||e.get("width"),height:this.get("height")||e.get("height")},i=this.get("backgroundShape");i?i.attr(n):(i=this.addShape("rect",{attrs:r.mix(n,t)}),this.set("backgroundShape",i))}},n._renderPlotBackground=function(){var t=this.get("plotBackground");if(t){var e=this.get("plotRange"),n=e.tl,i={x:n.x,y:n.y,width:e.br.x-e.bl.x,height:e.br.y-e.tr.y},a=this.get("plotBackShape");a?a.attr(i):(t.image?(i.img=t.image,a=this.addShape("image",{attrs:i})):(r.mix(i,t),a=this.addShape("rect",{attrs:i})),this.set("plotBackShape",a))}},n._convert=function(t,e){if(r.isString(t))if("auto"===t)t=0;else if(-1!==t.indexOf("%")){var n=this.get("canvas"),i=this.get("width")||n.get("width"),a=this.get("height")||n.get("height");t=parseInt(t,10)/100,t=e?t*i:t*a}return t},n._calculateRange=function(){var t=this.get("plotRange");r.isNil(t)&&(t={});var e=this.get("padding"),n=this.get("canvas"),i=this.get("width")||n.get("width"),a=this.get("height")||n.get("height"),o=r.toAllPadding(e),s=this._convert(o[0],!1),u=this._convert(o[1],!0),c=this._convert(o[2],!1),l=this._convert(o[3],!0),f=Math.min(l,i-u),h=Math.max(l,i-u),p=Math.min(a-c,s),d=Math.max(a-c,s);t.tl={x:f,y:p},t.tr={x:h,y:p},t.bl={x:f,y:d},t.br={x:h,y:d},t.cc={x:(h+f)/2,y:(d+p)/2},this.set("plotRange",t)},n.repaint=function(){return this._calculateRange(),this._renderBackground(),this._renderPlotBackground(),this},e}(n(16).Group);t.exports=i},function(t,e,n){var r=n(7),i=n(0),a={getDefaultSize:function(){var t=this.get("defaultSize"),e=this.get("viewTheme")||r;if(!t){var n,a=this.get("coord"),o=this.getXScale(),s=o.values,u=this.get("dataArray");if(o.isLinear&&s.length>1){s.sort();var c=function(t,e){var n=t.length;i.isString(t[0])&&(t=t.map(function(t){return e.translate(t)}));for(var r=t[1]-t[0],a=2;a<n;a++){var o=t[a]-t[a-1];r>o&&(r=o)}return r}(s,o);s.length>(n=(o.max-o.min)/c)&&(n=s.length)}else n=s.length;var l=o.range,f=1/n,h=1;this.isInCircle()?h=a.isTransposed&&n>1?e.widthRatio.multiplePie:e.widthRatio.rose:(o.isLinear&&(f*=l[1]-l[0]),h=e.widthRatio.column),f*=h,this.hasAdjust("dodge")&&(f/=this._getDodgeCount(u)),this.set("defaultSize",t=f)}return t},_getDodgeCount:function(t){var e,n=this.get("adjusts"),r=t.length;if(i.each(n,function(t){"dodge"===t.type&&(e=t.dodgeBy)}),e){var a=i.Array.merge(t);r=i.Array.values(a,e).length}return r},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),r=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),i=0;return n&&r&&(i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))),i},_getWidth:function(){var t=this.get("coord");return this.isInCircle()&&!t.isTransposed?(t.endAngle-t.startAngle)*t.radius:this.getDimWidth("x")},_toNormalizedSize:function(t){return t/this._getWidth()},_toCoordSize:function(t){return this._getWidth()*t},getNormalizedSize:function(t){var e=this.getAttrValue("size",t);return i.isNil(e)?this.getDefaultSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(i.isNil(e)){var n=this.getDefaultSize();e=this._toCoordSize(n)}return e}};t.exports=a},function(t,e,n){var r=n(0),i=n(7);t.exports={splitData:function(t){var e=this.get("viewTheme")||i;if(!t.length)return[];var n,a=[],o=[],s=this.getYScale().field;return r.each(t,function(t){n=t._origin?t._origin[s]:t[s],e.connectNulls?r.isNil(n)||o.push(t):r.isArray(n)&&r.isNil(n[0])||r.isNil(n)?o.length&&(a.push(o),o=[]):o.push(t)}),o.length&&a.push(o),a}}},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i=n(20),a=n(358),o=n(0),s=function(t){function e(e){var n;return n=t.call(this,e)||this,o.assign(r(r(n)),a),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="path",e.shapeType="line",e},n.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.isStack=this.hasStack(),n},n.draw=function(t,e,n,r){var i=this,a=this.splitData(t),s=this.getDrawCfg(t[0]);i._applyViewThemeShapeStyle(s,s.shape,n),s.origin=t,o.each(a,function(t,a){if(!o.isEmpty(t)){s.splitedIndex=a,s.points=t;var u=n.drawShape(s.shape,s,e);i.appendShapeInfo(u,r+a)}})},e}(i);i.Path=s,t.exports=s},function(t,e,n){"use strict";var r=n(370),i=n(371);e.a=function(t){var e=Object(r.a)(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.b&&e.documentElement.namespaceURI===i.b?e.createElement(t):e.createElementNS(n,t)}})(e)}},function(t,e,n){"use strict";e.a=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}},function(t,e,n){"use strict";e.b=function(t,e,n){var i=t._id;return t.each(function(){var t=Object(r.h)(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Object(r.f)(t,i).value[e]}};var r=n(70);e.a=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,a=Object(r.f)(this.node(),n).tween,o=0,s=a.length;o<s;++o)if((i=a[o]).name===t)return i.value;return null}return this.each((null==e?function(t,e){var n,i;return function(){var a=Object(r.h)(this,t),o=a.tween;if(o!==n)for(var s=0,u=(i=n=o).length;s<u;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}a.tween=i}}:function(t,e,n){var i,a;if("function"!=typeof n)throw new Error;return function(){var o=Object(r.h)(this,t),s=o.tween;if(s!==i){a=(i=s).slice();for(var u={name:e,value:n},c=0,l=a.length;c<l;++c)if(a[c].name===e){a[c]=u;break}c===l&&a.push(u)}o.tween=a}})(n,t,e))}},function(t,e,n){var r=n(7),i=n(0),a=i.assign,o=i.isNil,s=i.isArray,u=i.cloneDeep,c=i.wrapBehavior,l=i.getWrapBehavior,f=function(){function t(t){var e=this.getDefaultCfg();a(this,e,t),this.init()}var e=t.prototype;return e.getDefaultCfg=function(){return{chart:null,group:null,showTitle:!0,autoSetAxis:!0,padding:10,eachView:null,fields:[],colTitle:{offsetY:-15,style:{fontSize:14,textAlign:"center",fill:"#666",fontFamily:r.fontFamily}},rowTitle:{offsetX:15,style:{fontSize:14,textAlign:"center",rotate:90,fill:"#666",fontFamily:r.fontFamily}}}},e.init=function(){if(!this.chart)throw new Error("Facets Error: please specify the chart!");this._bindEvent(),this.initContainer(),this.chart.get("data")&&this.initViews()},e.initContainer=function(){var t=this.chart.get("frontPlot").addGroup();this.group=t},e.initViews=function(){for(var t=this.chart,e=t.get("data"),n=this.eachView,r=this.generateFacets(e),i=0;i<r.length;i++){var a=r[i],o=a.region,s=t.view({start:o.start,end:o.end,padding:this.padding});s.source(a.data),this.beforeProcessView(s,a),n&&n(s,a),this.afterProcessView(s,a),a.view=s}this.facets=r},e.beforeProcessView=function(){},e.afterProcessView=function(t,e){this.autoSetAxis&&this.processAxis(t,e)},e.processAxis=function(t,e){var n=t.get("options"),r=t.get("geoms");if((!n.coord.type||"rect"===n.coord.type)&&r.length){var i=r[0].get("attrOptions").position.field,a=s(i)?i:i.split("*").map(function(t){return t.trim()}),u=a[0],c=a[1];o(n.axes)&&(n.axes={});var l=n.axes;!1!==l&&(u&&!1!==l[u]&&(l[u]=l[u]||{},this.setXAxis(u,l,e)),c&&!1!==l[c]&&(l[c]=l[c]||{},this.setYAxis(c,l,e)))}},e.setXAxis=function(){},e.setYAxis=function(){},e.renderTitle=function(t,e){this.drawColTitle(t,e)},e.getScaleText=function(t,e,n){var r;if(t){var i=n.get("scales")[t];i||(i=n.createScale(t)),r=i.getText(e)}else r=e;return r},e.drawColTitle=function(t,e){var n=this.getScaleText(e.colField,e.colValue,t),r=a({position:["50%","0%"],content:n},this.colTitle);t.guide().text(r)},e.drawRowTitle=function(t,e){var n=this.getScaleText(e.rowField,e.rowValue,t),r=a({position:["100%","50%"],content:n},u(this.rowTitle));t.guide().text(r)},e.getFilter=function(t){return function(e){var n=!0;return t.forEach(function(t){var r=t.field,i=t.value,a=!0;!o(i)&&r&&(a=e[r]===i),n=n&&a}),n}},e.getFieldValues=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var a=e[i][t];o(a)||r[a]||(n.push(a),r[a]=!0)}return n},e.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+a}}},e.generateFacets=function(){return[]},e._bindEvent=function(){var t=this.chart;t.on("afterchangedata",c(this,"onDataChange")),t.on("beforeclear",c(this,"onClear")),t.on("beforedestroy",c(this,"destroy")),t.on("beforepaint",c(this,"onPaint")),t.on("setdata",c(this,"onDataChange"))},e._clearEvent=function(){var t=this.chart;t&&(t.off("afterchangedata",l(this,"onDataChange")),t.off("beforeclear",l(this,"onClear")),t.off("beforedestroy",l(this,"destroy")),t.off("beforepaint",l(this,"onPaint")),t.off("setdata",l(this,"onDataChange")))},e._clearFacets=function(){var t=this.facets,e=this.chart;if(t)for(var n=0;n<t.length;n++)e.removeView(t[n].view);this.facets=null},e.onClear=function(){this.onRemove()},e.onPaint=function(){if(this.showTitle)for(var t=this.facets,e=0;e<t.length;e++){var n=t[e];this.renderTitle(n.view,n)}},e.onDataChange=function(){this._clearFacets(),this.initViews()},e.onRemove=function(){this._clearFacets(),this._clearEvent(),this.group&&this.group.remove(),this.chart=null,this.facets=null,this.group=null},e.destroy=function(){this.onRemove(),this.destroyed=!0},t}();t.exports=f},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var a=n(20),o=n(0),s=n(357);n(365);var u=function(t){function e(e){var n;return n=t.call(this,e)||this,o.assign(i(i(n)),s),n}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="interval",e.shapeType="interval",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},n.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},e}(a),c=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(u),l=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(u),f=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"symmetric"}],e},e}(u);u.Stack=c,u.Dodge=l,u.Symmetric=f,a.Interval=u,a.IntervalStack=c,a.IntervalDodge=l,a.IntervalSymmetric=f,t.exports=u},function(t,e,n){function r(t,e){var n,r,i=t.x,a=t.y,o=t.size,s=t.y0,u=a;f.isArray(a)&&(u=a[1],s=a[0]),f.isArray(i)?(n=i[0],r=i[1]):(n=i-o/2,r=i+o/2);var c=[];return c.push({x:n,y:s},{x:n,y:u}),e?c.push({x:r,y:(u+s)/2}):c.push({x:r,y:u},{x:r,y:s}),c}function i(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];r&&e.push([0===n?"M":"L",r.x,r.y])}var i=t[0];return e.push(["L",i.x,i.y]),e.push(["z"]),e}function a(t){var e=f.mix({},g.shape.interval,t.style);return d.addFillAttrs(e,t),t.color&&(e.stroke=e.stroke||t.color),e}function o(t){var e=f.mix({},g.shape.hollowInterval,t.style);return d.addStrokeAttrs(e,t),e}function s(t,e){var n=[],r=t.points,i=t.nextPoints;return f.isNil(i)?n.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",r[2].x,r[2].y],e?["L",r[3].x,r[3].y]:["L",r[2].x,r[2].y],["Z"]):n.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",i[1].x,i[1].y],["L",i[0].x,i[0].y],["Z"]),n}function u(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function c(t,e,n,r,i,a,o){for(var s=2*Math.ceil(2*t/n*4),c=[];r<2*-Math.PI;)r+=2*Math.PI;for(;r>0;)r-=2*Math.PI;var l=a-t+(r=r/Math.PI/2*n)-2*t;c.push(["M",l,e]);for(var f=0,h=0;h<s;++h){var p=u(h*n/4,h%4,n,i);c.push(["C",p[0][0]+l,-p[0][1]+e,p[1][0]+l,-p[1][1]+e,p[2][0]+l,-p[2][1]+e]),h===s-1&&(f=p[2][0])}return c.push(["L",f+l,o+t]),c.push(["L",l,o+t]),c.push(["L",l,e]),c}function l(t,e,n,r,i,a,o,s){for(var u=o.getBBox(),l=u.maxX-u.minX,f=u.maxY-u.minY,h=0;h<r;h++){var p=a.addShape("path",{attrs:{path:c(s,u.minY+f*n,l/4,0,l/64,t,e),fill:i[h],clip:o}});"canvas"===g.renderer&&p.animate({transform:[["t",l/2,0]],repeat:!0},5e3-300*h)}}var f=n(0),h=n(18),p=n(22),d=n(45),g=n(7),v=n(16),y=f.PathUtil,m=h.registerFactory("interval",{defaultShapeType:"rect",getActiveCfg:function(t,e){return!t||f.inArray(["rect","funnel","pyramid"],t)?{fillOpacity:(e.fillOpacity||e.opacity||1)-.15}:{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return r(t)},getSelectedCfg:function(t,e){return function(t,e){var n,r=e.geom.get("coord");if(r&&"theta"===r.type){var i=function(t,e){var n,r,i,a=e.getRadius(),o=a*e.innerRadius;return!f.isArray(t.x)&&f.isArray(t.y)&&(t.x=[t.x,t.x]),f.isArray(t.x)?(i={x:t.x[1],y:t.y[1]},n=p.getPointAngle(e,{x:t.x[0],y:t.y[0]}),(r=p.getPointAngle(e,i))<=n&&(r+=2*Math.PI)):(n=e.startAngle,r=p.getPointAngle(e,i=t)),{r:a,ir:o,startAngle:n,endAngle:r}}(e.point,r),a=(i.endAngle-i.startAngle)/2+i.startAngle;n={transform:[["t",7.5*Math.cos(a),7.5*Math.sin(a)]]}}return f.mix({},n)}(0,e)}});h.registerShape("interval","rect",{draw:function(t,e){var n=a(t),r=i(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=a(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),h.registerShape("interval","hollowRect",{draw:function(t,e){var n=o(t),r=i(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=o(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),h.registerShape("interval","line",{getPoints:function(t){return function(t){var e=t.x,n=t.y,r=t.y0,i=[];return f.isArray(n)?f.each(n,function(t,n){i.push({x:f.isArray(e)?e[n]:e,y:t})}):i.push({x:e,y:n},{x:e,y:r}),i}(t)},draw:function(t,e){var n=o(t);n.lineWidth=t.size||1;var r=i(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=o(t);return f.mix({symbol:"line",radius:5},e)}}),h.registerShape("interval","tick",{getPoints:function(t){return function(t){var e=t.x,n=f.isArray(t.y)?t.y[1]:t.y,r=f.isArray(t.y)?t.y[0]:t.y0,i=t.size,a=[];return a.push({x:e-i/2,y:n},{x:e+i/2,y:n},{x:e,y:n},{x:e,y:r},{x:e-i/2,y:r},{x:e+i/2,y:r}),a}(t)},draw:function(t,e){var n=o(t);n.lineWidth||(n.lineWidth=2);var r=function(t){var e=[];return e.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]),e}(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=o(t);return f.mix({symbol:"tick",radius:5},e)}}),h.registerShape("interval","funnel",{getPoints:function(t){return t.size=2*t.size,r(t)},draw:function(t,e){var n=a(t),r=s(t,!0);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=a(t);return f.mix({symbol:"square",radius:4},e)}}),h.registerShape("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,r(t,!0)},draw:function(t,e){var n=a(t),r=s(t,!1);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=a(t);return f.mix({symbol:"square",radius:4},e)}}),h.registerShape("interval","liquid-fill-gauge",{draw:function(t,e){var n=0,r=1/0;f.each(t.points,function(t){t.x<r&&(r=t.x),n+=t.x});var i=this.parsePoint({x:n/t.points.length,y:.5}),s=this.parsePoint({x:r,y:.5}),u=Math.min(i.x-s.x,s.y),c=a(t),h=new v.Circle({attrs:{x:i.x,y:i.y,r:u}});return l(i.x,i.y,t.y/(2*i.y),1,[c.fill],e,h,4*u),e.addShape("circle",{attrs:f.mix(o(t),{x:i.x,y:i.y,r:u+u/8})})}});var x={};h.registerShape("interval","liquid-fill-path",{draw:function(t,e){var n=f.mix({},a(t)),r=t.shape[1],i=0,s=1/0;f.each(t.points,function(t){t.x<s&&(s=t.x),i+=t.x});var u,c=this.parsePoint({x:i/t.points.length,y:.5}),h=this.parsePoint({x:s,y:.5}),p=Math.min(c.x-h.x,h.y);if(x[r])u=x[r];else{var d=y.parsePathString(r);x[r]=u={segments:d}}var g=[];n.rotate&&(g.push(["r",n.rotate/180*Math.PI]),delete n.rotate);var v=e.addShape("path",{attrs:f.mix(n,{fillOpacity:0,path:u.segments})}),m=f.cloneDeep(v.getBBox()),b=m.maxX-m.minX,_=m.maxY-m.minY,w=2*p/Math.max(b,_);v.transform(g.concat([["s",w,w]]));var O=w*b/2,j=w*_/2;v.transform([["t",c.x-O,c.y-j]]),l(c.x,c.y,t.y/(2*c.y),1,[n.fill],e,v,4*h.y);var S=e.addShape("path",{attrs:f.mix(o(t),{path:u.segments})});return S.transform(g.concat([["s",w,w],["t",c.x-O,c.y-j]])),S}}),h.registerShape("interval","top-line",{draw:function(t,e){var n=a(t),r=t.style||{},o={stroke:r.stroke||"white",lineWidth:r.lineWidth||1,path:this.parsePath([["M",t.points[1].x,t.points[1].y],["L",t.points[2].x,t.points[2].y]])},s=i(t.points);s=this.parsePath(s),delete n.stroke;var u=e.addShape("path",{attrs:f.mix(n,{zIndex:0,path:s})});return e.addShape("path",{zIndex:1,attrs:o}),u},getMarkerCfg:function(t){var e=a(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),t.exports=m},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(20),a=n(359);n(367);var o=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="line",e.sortable=!0,e},e}(a),s=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(o);o.Stack=s,i.Line=o,i.LineStack=s,t.exports=o},function(t,e,n){function r(t){var e=l.mix({},d.shape.line,t.style);return h.addStrokeAttrs(e,t),t.size&&(e.lineWidth=t.size),e}function i(t){var e=l.mix({lineWidth:2,radius:6},d.shape.line,t.style);return h.addStrokeAttrs(e,t),e}function a(t,e,n,r){var i;if(e){var a=r.constraint;n&&t.length&&t.push({x:t[0].x,y:t[0].y}),i=f.getSplinePath(t,!1,a)}else i=f.getLinePath(t,!1),n&&i.push(["Z"]);return i}function o(t,e){var n=t.points,r=t.isInCircle;return l.isArray(n[0].y)?function(t,e,n,r){for(var i=[],o=r.isStack,s=[],u=0;u<t.length;u++){var c=h.splitPoints(t[u]);s.push(c[0]),i.push(c[1])}var l=a(i,e,n,r),f=a(s,e,n,r);return o?l:l.concat(f)}(n,e,r,t):a(n,e,r,t)}function s(t,e){return function(t){var e=[];return l.each(t,function(t,n){e.push(0===n?["M",t.x,t.y]:["L",t.x,t.y])}),e}(function(t,e){var n=[];return l.each(t,function(r,i){var a=t[i+1];n.push(r),a&&(n=n.concat(e(r,a)))}),n}(t.points,e))}function u(t,e){return l.mix({symbol:e?function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]}:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]}},i(t))}function c(t,e){return l.mix({symbol:e},i(t))}var l=n(0),f=n(22),h=n(45),p=n(18),d=n(7),g=[1,1],v=[5.5,1],y=p.registerFactory("line",{defaultShapeType:"line",getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return h.splitPoints(t)},drawShape:function(t,e,n){var r,i=this.getShape(t);return(r=1===e.points.length&&d.showSinglePoint?function(t,e,n){var r=e.points[0];return n.addShape("circle",{attrs:l.mix({x:r.x,y:r.y,r:2,fill:e.color},e.style)})}(0,e,n):i.draw(e,n))&&(r.set("origin",e.origin),r._id=e.splitedIndex?e._id+e.splitedIndex:e._id,r.name=this.name),r}});p.registerShape("line","line",{draw:function(t,e){var n=r(t),i=o(t,!1);return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return u(t)}}),p.registerShape("line","dot",{draw:function(t,e){var n=r(t),i=o(t,!1);return e.addShape("path",{attrs:l.mix(n,{path:i,lineDash:g})})},getMarkerCfg:function(t){var e=u(t,!1);return e.lineDash=g,e}}),p.registerShape("line","dash",{draw:function(t,e){var n=r(t),i=o(t,!1);return e.addShape("path",{attrs:l.mix({path:i,lineDash:v},n)})},getMarkerCfg:function(t){var e=u(t,!1);return e.lineDash=e.lineDash||v,e}}),p.registerShape("line","smooth",{draw:function(t,e){var n=r(t),i=this._coord;t.constraint=[[i.start.x,i.end.y],[i.end.x,i.start.y]];var a=o(t,!0);return e.addShape("path",{attrs:l.mix(n,{path:a})})},getMarkerCfg:function(t){return u(t,!0)}}),p.registerShape("line","hv",{draw:function(t,e){var n=r(t),i=s(t,function(t,e){var n=[];return n.push({x:e.x,y:t.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]})}}),p.registerShape("line","vh",{draw:function(t,e){var n=r(t),i=s(t,function(t,e){var n=[];return n.push({x:t.x,y:e.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]})}}),p.registerShape("line","hvh",{draw:function(t,e){var n=r(t),i=s(t,function(t,e){var n=[],r=(e.x-t.x)/2+t.x;return n.push({x:r,y:t.y}),n.push({x:r,y:e.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]})}}),p.registerShape("line","vhv",{draw:function(t,e){var n=r(t),i=s(t,function(t,e){var n=[],r=(e.y-t.y)/2+t.y;return n.push({x:t.x,y:r}),n.push({x:e.x,y:r}),n});return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return c(t,function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]})}}),y.spline=y.smooth,t.exports=y},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(20),a=n(0);n(369);var o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="point",e.shapeType="point",e.generatePoints=!0,e},n.drawPoint=function(t,e,n,r){var i,o=this,s=t.shape,u=o.getDrawCfg(t);if(o._applyViewThemeShapeStyle(u,s,n),a.isArray(t.y)){var c=o.hasStack();a.each(t.y,function(t,a){u.y=t,u.yIndex=a,c&&0===a||(i=n.drawShape(s,u,e),o.appendShapeInfo(i,r+a))})}else a.isNil(t.y)||(i=n.drawShape(s,u,e),o.appendShapeInfo(i,r))},e}(i),s=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"jitter"}],e},e}(o),u=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(o);o.Jitter=s,o.Stack=u,i.Point=o,i.PointJitter=s,i.PointStack=u,t.exports=o},function(t,e,n){function r(t){var e=a.mix({},s.shape.point,t.style);return o.addFillAttrs(e,t),a.isNumber(t.size)&&(e.radius=t.size),e}function i(t){var e=a.mix({},s.shape.hollowPoint,t.style);return o.addStrokeAttrs(e,t),a.isNumber(t.size)&&(e.radius=t.size),e}var a=n(0),o=n(45),s=n(7),u=n(18),c=n(16).Marker,l=a.PathUtil,f=["cross","tick","plus","hyphen","line","pointerLine","pointerArrow"],h=Math.sqrt(3);a.mix(c.Symbols,{hexagon:function(t,e,n){var r=n/2*h;return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}});var p=u.registerFactory("point",{defaultShapeType:"hollowCircle",getActiveCfg:function(t,e){var n,r=e.radius;return{radius:r+1,shadowBlur:r,shadowColor:n=t&&(0===t.indexOf("hollow")||-1!==a.indexOf(f,t))||!t?e.stroke||e.strokeStyle:e.fill||e.fillStyle,stroke:n,strokeOpacity:1,lineWidth:1}},getDefaultPoints:function(t){return o.splitPoints(t)}});u.registerShape("point","rect",{draw:function(t,e){var n=r(t),i=function(t){var e=t.points[0].x,n=t.points[0].y,r=t.size[0],i=t.size[1];return[["M",e-.5*r,n-.5*i],["L",e+.5*r,n-.5*i],["L",e+.5*r,n+.5*i],["L",e-.5*r,n+.5*i],["z"]]}(t);return i=this.parsePath(i),e.addShape("path",{attrs:a.mix(n,{path:i})})},getMarkerCfg:function(t){var e=r(t);return e.symbol="rect",e.radius=4.5,e}}),a.each(["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],function(t){u.registerShape("point",t,{draw:function(e,n){var i=r(e);return n.addShape("Marker",{attrs:a.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=r(e);return n.symbol=t,n.radius=4.5,n}}),u.registerShape("point","hollow"+a.upperFirst(t),{draw:function(e,n){var r=i(e);return n.addShape("Marker",{attrs:a.mix(r,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=i(e);return n.symbol=t,n.radius=4.5,n}})}),a.each(f,function(t){u.registerShape("point",t,{draw:function(e,n){var r=i(e);return n.addShape("Marker",{attrs:a.mix(r,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=i(e);return n.symbol=t,n.radius=4.5,n}})}),u.registerShape("point","image",{draw:function(t,e){return t.points=this.parsePoints(t.points),e.addShape("image",{attrs:{x:t.points[0].x-t.size/2,y:t.points[0].y-t.size,width:t.size,height:t.size,img:t.shape[1]}})}});var d={};u.registerShape("point","path",{draw:function(t,e){var n,o=a.mix({},i(t),r(t)),s=t.shape[1],u=t.size||10;if(d[s])n=d[s];else{var c=l.parsePathString(s),f=a.flatten(c).filter(function(t){return a.isNumber(t)});d[s]=n={range:Math.max.apply(null,f)-Math.min.apply(null,f),segments:c}}var h=u/n.range,p=[];o.rotate&&(p.push(["r",o.rotate/180*Math.PI]),delete o.rotate);var g=e.addShape("path",{attrs:a.mix(o,{path:n.segments})});return p.push(["s",h,h],["t",t.x,t.y]),g.transform(p),g}}),t.exports=p},function(t,e,n){"use strict";var r=n(371);e.a=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";e.a=function(t){return null==t?function(){}:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";function r(t,e,n){return function(r){var i=o;o=r;try{t.call(this,this.__data__,e,n)}finally{o=i}}}function i(t,e,n){var i=a.hasOwnProperty(t.type)?function(t,e,n){return t=r(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}:r;return function(r,a,o){var s,u=this.__on,c=i(e,a,o);if(u)for(var l=0,f=u.length;l<f;++l)if((s=u[l]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},u?u.push(s):this.__on=[s]}}n.d(e,"c",function(){return o}),e.a=function(t,e,n,r){var i=o;t.sourceEvent=o,o=t;try{return e.apply(n,r)}finally{o=i}};var a={},o=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(a={mouseenter:"mouseover",mouseleave:"mouseout"})),e.b=function(t,e,n){var r,a,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=o.length;if(!(arguments.length<2)){for(u=e?i:function(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}},null==n&&(n=!1),r=0;r<s;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var c,l=0,f=u.length;l<f;++l)for(r=0,c=u[l];r<s;++r)if((a=o[r]).type===c.type&&a.name===c.name)return c.value}},function(t,e,n){"use strict";var r=n(374);e.a=function(){for(var t,e=r.c;t=e.sourceEvent;)e=t;return e}},function(t,e){t.exports=function(t){return(t.get("scaleController")||{}).defs}},function(t,e,n){var r=n(376);t.exports=function(t,e){var n=r(t);if(n&&n[e])return n[e]}},function(t,e,n){var r=n(0),i=n(71);t.exports=function(t,e){var n,a=e.type,o=r.Array.values(t,e.field);return"linear"===a?(n=r.Array.getRange(o),e.min<n.min&&(n.min=e.min),e.max>n.max&&(n.max=e.max)):"timeCat"===a?(r.each(o,function(t,e){o[e]=i.toTimeStamp(t)}),o.sort(function(t,e){return t-e}),n=o):n=o,n}},function(t,e,n){"use strict";var r=n(69);e.a=function(t){return"string"==typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},function(t,e,n){"use strict";e.a=function(t){return null==t?function(){return[]}:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";var r=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var i=document.documentElement;if(!i.matches){var a=i.webkitMatchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector;r=function(t){return function(){return a.call(this,t)}}}}e.a=r},function(t,e,n){"use strict";function r(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}e.a=r;var i=n(383),a=n(69);e.b=function(){return new a.a(this._enter||this._groups.map(i.a),this._parents)},r.prototype={constructor:r,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return new Array(t.length)}},function(t,e,n){"use strict";function r(t,e){return t.style.getPropertyValue(e)||Object(i.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.b=r;var i=n(373);e.a=function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):r(this.node(),t)}},function(t,e,n){"use strict";var r=n(70);e.a=function(t,e){var n,i,a,o=t.__transition,s=!0;if(o){for(a in e=null==e?null:e+"",o)(n=o[a]).name===e?(i=n.state>r.d&&n.state<r.b,n.state=r.a,n.timer.stop(),i&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete o[a]):s=!1;s&&delete t.__transition}}},function(t,e,n){"use strict";var r=n(19),i=n(117);e.a=function(t,e){var n;return("number"==typeof e?i.interpolateNumber:e instanceof r.a?i.interpolateRgb:(n=Object(r.a)(e))?(e=n,i.interpolateRgb):i.interpolateString)(t,e)}},function(t,e,n){var r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="rect",e},n.generateFacets=function(t){var e=this,n=e.fields,r=[],i=1,a=1,o=n[0],s=n[1],u=[""],c=[""];return o&&(u=e.getFieldValues(o,t),a=u.length),s&&(c=e.getFieldValues(s,t),i=c.length),u.forEach(function(n,l){c.forEach(function(f,h){var p=e.getFilter([{field:o,value:n,values:u},{field:s,value:f,values:c}]),d=t.filter(p),g={type:e.type,colValue:n,rowValue:f,colField:o,rowField:s,colIndex:l,rowIndex:h,cols:a,rows:i,data:d,region:e.getRegion(i,a,l,h)};r.push(g)})}),r},n.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1?(e[t].title=null,e[t].label=null):n.colIndex!==parseInt((n.cols-1)/2)&&(e[t].title=null)},n.setYAxis=function(t,e,n){0!==n.colIndex?(e[t].title=null,e[t].label=null):n.rowIndex!==parseInt((n.rows-1)/2)&&(e[t].title=null)},n.renderTitle=function(t,e){0===e.rowIndex&&this.drawColTitle(t,e),e.colIndex===e.cols-1&&this.drawRowTitle(t,e)},e}(n(363));t.exports=r},function(t,e,n){var r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="list",e.cols=null,e},n.generateFacets=function(t){var e=this,n=e.fields[0];if(!n)throw"Please specify for the field for facet!";var r=e.getFieldValues(n,t),i=r.length,a=e.cols||i,o=parseInt((i+a-1)/a),s=[];return r.forEach(function(u,c){var l=parseInt(c/a),f=c%a,h=e.getFilter([{field:n,value:u,values:r}]),p=t.filter(h),d={type:e.type,count:i,colValue:u,colField:n,rowField:null,rowValue:u,colIndex:f,rowIndex:l,cols:a,rows:o,data:p,region:e.getRegion(o,a,f,l)};s.push(d)}),s},n.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&n.cols*n.rowIndex+n.colIndex+1+n.cols<=n.count&&(e[t].label=null,e[t].title=null)},n.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},e}(n(363));t.exports=r},function(t,e,n){var r=n(172);n(390),n(392),n(394),n(364),n(366),n(359),n(368),n(395),n(397),n(399),n(459),n(461),n(466),t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var a=n(20),o=n(358),s=n(0);n(391);var u=function(t){function e(e){var n;return n=t.call(this,e)||this,s.assign(i(i(n)),o),n}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="area",e.shapeType="area",e.generatePoints=!0,e.sortable=!0,e},n.draw=function(t,e,n,r){var i=this,a=this.getDrawCfg(t[0]);i._applyViewThemeShapeStyle(a,a.shape,n);var o=this.splitData(t);a.origin=t,s.each(o,function(t,o){a.splitedIndex=o;var s=t.map(function(t){return t.points});a.points=s;var u=n.drawShape(a.shape,a,e);i.appendShapeInfo(u,r+o)})},e}(a),c=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(u);u.Stack=c,a.Area=u,a.AreaStack=c,t.exports=u},function(t,e,n){function r(t){var e=s.mix({},f.shape.hollowArea,t.style);return l.addStrokeAttrs(e,t),s.isNumber(t.size)&&(e.lineWidth=t.size),e}function i(t){var e=s.mix({},f.shape.area,t.style);return l.addFillAttrs(e,t),t.color&&(e.stroke=e.stroke||t.color),s.isNumber(t.size)&&(e.lineWidth=t.size),e}function a(t,e,n){var r=[],i=[],a=[],o=[],u=t.isInCircle;return s.each(t.points,function(t){a.push(t[1]),o.push(t[0])}),o=o.reverse(),i.push(a,o),s.each(i,function(i,a){var o=[],s=(i=n.parsePoints(i))[0];u&&i.push({x:s.x,y:s.y}),o=e?c.getSplinePath(i,!1,t.constraint):c.getLinePath(i,!1),a>0&&(o[0][0]="L"),r=r.concat(o)}),r.push(["Z"]),r}function o(t){return{symbol:function(t,e){return[["M",t-5.5,e-4],["L",t+5.5,e-4],["L",t+5.5,e+4],["L",t-5.5,e+4],["Z"]]},radius:5,fill:t.color,fillOpacity:.6}}var s=n(0),u=n(18),c=n(22),l=n(45),f=n(7),h=u.registerFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=[],n=t.x,r=t.y,i=t.y0;return r=s.isArray(r)?r:[i,r],s.each(r,function(t){e.push({x:n,y:t})}),e},getActiveCfg:function(t,e){return function(t,e){if("line"===t||"smoothLine"===t)return{lineWidth:(e.lineWidth||0)+1};var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}}(t,e)},drawShape:function(t,e,n){var r,i=this.getShape(t);return(r=1===e.points.length&&f.showSinglePoint?function(t,e,n){var r=t._coord.convertPoint(e.points[0][1]);return n.addShape("circle",{attrs:s.mix({x:r.x,y:r.y,r:2,fill:e.color},e.style)})}(this,e,n):i.draw(e,n))&&(r.set("origin",e.origin),r._id=e.splitedIndex?e._id+e.splitedIndex:e._id,r.name=this.name),r},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});u.registerShape("area","area",{draw:function(t,e){var n=i(t),r=a(t,!1,this);return e.addShape("path",{attrs:s.mix(n,{path:r})})},getMarkerCfg:function(t){return o(t)}}),u.registerShape("area","smooth",{draw:function(t,e){var n=i(t),r=this._coord;t.constraint=[[r.start.x,r.end.y],[r.end.x,r.start.y]];var o=a(t,!0,this);return e.addShape("path",{attrs:s.mix(n,{path:o})})},getMarkerCfg:function(t){return o(t)}}),u.registerShape("area","line",{draw:function(t,e){var n=r(t),i=a(t,!1,this);return e.addShape("path",{attrs:s.mix(n,{path:i})})},getMarkerCfg:function(t){return o(t)}}),u.registerShape("area","smoothLine",{draw:function(t,e){var n=r(t),i=a(t,!0,this);return e.addShape("path",{attrs:s.mix(n,{path:i})})},getMarkerCfg:function(t){return o(t)}}),h.spline=h.smooth,t.exports=h},function(t,e,n){var r=n(20);n(393);var i=function(t){function e(){return t.apply(this,arguments)||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e},e}(r);r.Edge=i,t.exports=i},function(t,e,n){function r(t){var e=o.mix({},c.shape.edge,t.style);return u.addStrokeAttrs(e,t),e}function i(t,e){var n=[];n.push({x:t.x,y:.5*t.y+1*e.y/2}),n.push({y:.5*t.y+1*e.y/2,x:e.x}),n.push(e);var r=["C"];return o.each(n,function(t){r.push(t.x,t.y)}),r}function a(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return o.each(n,function(t){r.push(t.x,t.y)}),r}var o=n(0),s=n(18),u=n(45),c=n(7),l=n(22),f=1/3,h=s.registerFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return u.splitPoints(t)},getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}}});s.registerShape("edge","line",{draw:function(t,e){var n=this.parsePoints(t.points),i=r(t),a=l.getLinePath(n);return e.addShape("path",{attrs:o.mix(i,{path:a})})},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},r(t))}}),s.registerShape("edge","vhv",{draw:function(t,e){var n=t.points,i=r(t),a=function(t,e){var n=[];n.push({y:t.y*(1-f)+e.y*f,x:t.x}),n.push({y:t.y*(1-f)+e.y*f,x:e.x}),n.push(e);var r=[["M",t.x,t.y]];return o.each(n,function(t){r.push(["L",t.x,t.y])}),r}(n[0],n[1]);return a=this.parsePath(a),e.addShape("path",{attrs:o.mix(i,{path:a})})},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},r(t))}}),s.registerShape("edge","smooth",{draw:function(t,e){var n=t.points,a=r(t),s=function(t,e){var n=i(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(n[0],n[1]);return s=this.parsePath(s),e.addShape("path",{attrs:o.mix(a,{path:s})})},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},r(t))}}),s.registerShape("edge","arc",{draw:function(t,e){var n,s,u=t.points,c=u.length>2?"weight":"normal",l=r(t);if(t.isInCircle){var f={x:0,y:1};"normal"===c?s=function(t,e,n){var r=a(u[1],f),i=[["M",t.x,t.y]];return i.push(r),i}(u[0]):(l.fill=l.stroke,s=function(t,e){var n=a(t[1],e),r=a(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(u,f)),s=this.parsePath(s),n=e.addShape("path",{attrs:o.mix(l,{path:s})})}else if("normal"===c)u=this.parsePoints(u),n=e.addShape("arc",{attrs:o.mix(l,{x:(u[1].x+u[0].x)/2,y:u[0].y,r:Math.abs(u[1].x-u[0].x)/2,startAngle:Math.PI,endAngle:2*Math.PI})});else{s=[["M",u[0].x,u[0].y],["L",u[1].x,u[1].y]];var h=i(u[1],u[3]),p=i(u[2],u[0]);s.push(h),s.push(["L",u[3].x,u[3].y]),s.push(["L",u[2].x,u[2].y]),s.push(p),s.push(["Z"]),s=this.parsePath(s),l.fill=l.stroke,n=e.addShape("path",{attrs:o.mix(l,{path:s})})}return n},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},r(t))}}),t.exports=h},function(t,e,n){var r=n(73).ColorUtil,i=n(20),a=n(0),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="heatmap",e.paletteCache={},e},n._prepareRange=function(){var t=this.get("mappedData"),e=this.getAttr("color").field,n=1/0,r=-1/0;t.forEach(function(t){var i=t._origin[e];i>r&&(r=i),i<n&&(n=i)}),n===r&&(n=r-1),this.set("valueRange",[n,r])},n._prepareSize=function(){var t=this.getDefaultValue("size");a.isNumber(t)||(t=this._getDefaultSize());var e=this.get("styleOptions"),n=e&&a.isObject(e.style)?e.style.blur:null;a.isFinite(n)&&null!==n||(n=t/2),this.set("heatmapSize",{blur:n,radius:t})},n._getDefaultSize=function(){var t=this.getAttr("position"),e=this.get("coord");return Math.min(e.width/(4*t.scales[0].ticks.length),e.height/(4*t.scales[1].ticks.length))},n._colorize=function(t){for(var e=this.getAttr("color"),n=t.data,i=this.get("paletteCache"),a=3;a<n.length;a+=4){var o=n[a];if(o){var s=void 0;i[o]?s=i[o]:(s=r.rgb2arr(e.gradient(o/256)),i[o]=s),n[a-3]=s[0],n[a-2]=s[1],n[a-1]=s[2],n[a]=o}}},n._prepareGreyScaleBlurredCircle=function(t,e){var n=this.get("grayScaleBlurredCanvas");n||(n=document.createElement("canvas"),this.set("grayScaleBlurredCanvas",n));var r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},n._drawGrayScaleBlurredCircle=function(t,e,n,r,i){var a=this.get("grayScaleBlurredCanvas");i.globalAlpha=r,i.drawImage(a,t-n,e-n)},n._getShadowCanvasCtx=function(){var t=this.get("shadowCanvas");t||(t=document.createElement("canvas"),this.set("shadowCanvas",t));var e=this.get("coord");return e&&(t.width=e.width,t.height=e.height),t.getContext("2d")},n._clearShadowCanvasCtx=function(){var t=this._getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},n._getImageShape=function(){var t=this.get("imageShape");return t||(t=this.get("container").addShape("Image",{}),this.set("imageShape",t),t)},n.clear=function(){this._clearShadowCanvasCtx(),t.prototype.clear.call(this)},n.drawWithRange=function(t){var e=this.get("coord"),n=e.start,r=e.end,i=e.width,a=e.height,o=this.getAttr("color").field,s=this.get("heatmapSize");this._clearShadowCanvasCtx();var u=this._getShadowCanvasCtx(),c=this.get("mappedData");t&&(c=c.filter(function(e){return e._origin[o]<=t[1]&&e._origin[o]>=t[0]}));for(var l=this._getScale(o),f=0;f<c.length;f++){var h=c[f],p=this.getDrawCfg(h),d=l.scale(h._origin[o]);this._drawGrayScaleBlurredCircle(p.x-n.x,p.y-r.y,s.radius+s.blur,d,u)}var g=u.getImageData(0,0,i,a);this._clearShadowCanvasCtx(),this._colorize(g),u.putImageData(g,0,0);var v=this._getImageShape();v.attr("x",n.x),v.attr("y",r.y),v.attr("width",i),v.attr("height",a),v.attr("img",u.canvas)},n.draw=function(t){this.set("mappedData",t),this._prepareRange(),this._prepareSize();var e=this.get("heatmapSize");this._prepareGreyScaleBlurredCircle(e.radius,e.blur);var n=this.get("valueRange");this.drawWithRange(n)},e}(i);i.Heatmap=o,t.exports=o},function(t,e,n){var r=n(20),i=n(0);n(396);var a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=r.x,o=r.y;if(!i.isArray(a)||!i.isArray(o)){var s=this.getXScale(),u=this.getYScale(),c=.5/(s.values?s.values.length:s.ticks.length),l=.5/(u.values?u.values.length:u.ticks.length);s.isCategory&&u.isCategory?(a=[a-c,a-c,a+c,a+c],o=[o-l,o+l,o+l,o-l]):i.isArray(a)?(a=[(n=a)[0],n[0],n[1],n[1]],o=[o-l/2,o+l/2,o+l/2,o-l/2]):i.isArray(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],a=[a-c/2,a-c/2,a+c/2,a+c/2]),r.x=a,r.y=o}return r},e}(r);r.Polygon=a,t.exports=a},function(t,e,n){function r(t){var e=a.mix({},u.shape.polygon,t.style);return s.addFillAttrs(e,t),e}function i(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var i=t[n];i.x===t[n-1].x&&i.y===t[n-1].y||(r.push(["L",i.x,i.y]),i.x===e.x&&i.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return a.isEqual(r[r.length-1],e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}var a=n(0),o=n(18),s=n(45),u=n(7),c=o.registerFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return a.each(t.x,function(n,r){e.push({x:n,y:t.y[r]})}),e},getActiveCfg:function(t,e){return"hollow"===t?{lineWidth:(e.lineWidth||1)+1}:{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});o.registerShape("polygon","polygon",{draw:function(t,e){if(!a.isEmpty(t.points)){var n=r(t),o=i(t.points);return o=this.parsePath(o),e.addShape("path",{attrs:a.mix(n,{path:o})})}},getMarkerCfg:function(t){return a.mix({symbol:"square",radius:4},r(t))}}),o.registerShape("polygon","hollow",{draw:function(t,e){if(!a.isEmpty(t.points)){var n=function(t){var e=a.mix({},u.shape.hollowPolygon,t.style);return s.addStrokeAttrs(e,t),e}(t),r=i(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:a.mix(n,{path:r})})}},getMarkerCfg:function(t){return a.mix({symbol:"square",radius:4},r(t))}}),t.exports=c},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var a=n(20),o=n(0),s=n(357);n(398);var u=function(t){function e(e){var n;return n=t.call(this,e)||this,o.assign(i(i(n)),s),n}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},e}(a),c=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(u);u.Dodge=c,a.Schema=u,a.SchemaDodge=c,t.exports=u},function(t,e,n){function r(t){o.isArray(t)||(t=[t]);var e=t[0],n=t[t.length-1],r=t.length>1?t[1]:e;return{min:e,max:n,min1:r,max1:t.length>3?t[3]:n,median:t.length>2?t[2]:r}}function i(t,e,n){var i,a,s=[];return o.isArray(e)?i=[[t-n/2,(a=r(e)).max],[t+n/2,a.max],[t,a.max],[t,a.max1],[t-n/2,a.min1],[t-n/2,a.max1],[t+n/2,a.max1],[t+n/2,a.min1],[t,a.min1],[t,a.min],[t-n/2,a.min],[t+n/2,a.min],[t-n/2,a.median],[t+n/2,a.median]]:(e=e||.5,i=[[(a=r(t)).min,e-n/2],[a.min,e+n/2],[a.min,e],[a.min1,e],[a.min1,e-n/2],[a.min1,e+n/2],[a.max1,e+n/2],[a.max1,e-n/2],[a.max1,e],[a.max,e],[a.max,e-n/2],[a.max,e+n/2],[a.median,e-n/2],[a.median,e+n/2]]),function(t,e){o.each(i,function(t){e.push({x:t[0],y:t[1]})})}(0,s),s}function a(t,e,n){var r=function(t){o.isArray(t)||(t=[t]);var e=t.sort(function(t,e){return t<e?1:-1}),n=e.length;if(n<4)for(var r=e[n-1],i=0;i<4-n;i++)e.push(r);return e}(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}var o=n(0),s=n(18),u=n(45),c=n(7),l=s.registerFactory("schema",{defaultShapeType:"",getActiveCfg:function(t,e){if("box"===t)return{lineWidth:(e.lineWidth||1)+1};var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});s.registerShape("schema","box",{getPoints:function(t){return i(t.x,t.y,t.size)},draw:function(t,e){var n=function(t){var e=o.mix({},c.shape.schema,t.style);return u.addStrokeAttrs(e,t),e}(t),r=function(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]]}(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:o.mix(n,{path:r})})},getMarkerCfg:function(t){return{symbol:function(t,e,n){var r=i(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},radius:6,lineWidth:1,stroke:t.color}}}),s.registerShape("schema","candle",{getPoints:function(t){return a(t.x,t.y,t.size)},draw:function(t,e){var n=function(t){var e=o.mix({},c.shape.schema,t.style);return u.addFillAttrs(e,t),t.color&&(e.stroke=t.color||e.stroke),e}(t),r=function(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]]}(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:o.mix(n,{path:r})})},getMarkerCfg:function(t){return{symbol:function(t,e,n){var r=a(t,e=[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},lineWidth:1,stroke:t.color,fill:t.color,radius:6}}}),t.exports=l},function(t,e,n){var r=n(20),i=n(0),a=n(400),o=a.venn,s=a.scaleSolution,u=a.circlePath,c=a.intersectionAreaPath,l=a.computeTextCentres;n(458);var f=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="venn",e.shapeType="venn",e.generatePoints=!1,e},n._getAttrValues=function(e,n){return"position"===e.type?[n.x,n.y]:t.prototype._getAttrValues.call(this,e,n)},n.sets=function(t){return this.set("setsField",t),this},n._initAttrs=function(){t.prototype._initAttrs.call(this);var e=this.get("attrOptions"),n=this.get("setsField")||"sets",r=this.get("data"),a=e.size?e.size.field:"size";r.forEach(function(t){t.sets=t[n],t._sets=t[n].join("&"),t.size=t[a]});var f=o(r),h=this.get("coord"),p=[Math.min(h.x.end,h.x.start),Math.max(h.x.end,h.x.start)],d=[Math.min(h.y.end,h.y.start),Math.max(h.y.end,h.y.start)],g=p[1]-p[0],v=d[1]-d[0],y=this.get("styleOptions"),m=y&&i.isObject(y.style)?y.style.padding:0;i.isFinite(m)||(m=0);var x=s(f,g,v,m),b=l(x,r);r.forEach(function(t){var e=t.sets,n=e.join(",");if(t.id=n,1===e.length){var r=x[n];t.path=u(r.x,r.y,r.radius),i.assign(t,r)}else{var a=e.map(function(t){return x[t]}),o=c(a);/[zZ]$/.test(o)||(o+="Z"),t.path=o,i.assign(t,b[n]||{x:0,y:0})}})},e}(r);r.Venn=f,t.exports=f},function(t,e,n){!function(t,e,n){"use strict";function r(t,e){var n,r=function(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=s(t[n],t[r]),a=0;a<i.length;++a){var o=i[a];o.parentIndex=[n,r],e.push(o)}return e}(t),o=r.filter(function(e){return function(t,e){for(var n=0;n<e.length;++n)if(a(t,e[n])>e[n].radius+D)return!1;return!0}(e,t)}),c=0,l=0,f=[];if(o.length>1){var h=u(o);for(n=0;n<o.length;++n){var p=o[n];p.angle=Math.atan2(p.x-h.x,p.y-h.y)}o.sort(function(t,e){return e.angle-t.angle});var d=o[o.length-1];for(n=0;n<o.length;++n){var g=o[n];l+=(d.x+g.x)*(g.y-d.y);for(var v={x:(g.x+d.x)/2,y:(g.y+d.y)/2},y=null,m=0;m<g.parentIndex.length;++m)if(d.parentIndex.indexOf(g.parentIndex[m])>-1){var x=t[g.parentIndex[m]],b=Math.atan2(g.x-x.x,g.y-x.y),_=Math.atan2(d.x-x.x,d.y-x.y),w=_-b;w<0&&(w+=2*Math.PI);var O=_-w/2,j=a(v,{x:x.x+x.radius*Math.sin(O),y:x.y+x.radius*Math.cos(O)});j>2*x.radius&&(j=2*x.radius),(null===y||y.width>j)&&(y={circle:x,width:j,p1:g,p2:d})}null!==y&&(f.push(y),c+=i(y.circle.radius,y.width),d=g)}}else{var S=t[0];for(n=1;n<t.length;++n)t[n].radius<S.radius&&(S=t[n]);var M=!1;for(n=0;n<t.length;++n)if(a(t[n],S)>Math.abs(S.radius-t[n].radius)){M=!0;break}M?c=l=0:(c=S.radius*S.radius*Math.PI,f.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-D,y:S.y+S.radius},width:2*S.radius}))}return l/=2,e&&(e.area=c+l,e.arcArea=c,e.polygonArea=l,e.arcs=f,e.innerPoints=o,e.intersectionPoints=r),c+l}function i(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function a(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function o(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return i(t,t-(n*n-e*e+t*t)/(2*n))+i(e,r)}function s(t,e){var n=a(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),s=Math.sqrt(r*r-o*o),u=t.x+o*(e.x-t.x)/n,c=t.y+o*(e.y-t.y)/n,l=s/n*-(e.y-t.y),f=s/n*-(e.x-t.x);return[{x:u+l,y:c-f},{x:u-l,y:c+f}]}function u(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function c(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function l(t,e){return c(t).map(function(){return c(e)})}function f(t,e){for(var n=0,r=0;r<t.length;++r)n+=t[r]*e[r];return n}function h(t){return Math.sqrt(f(t,t))}function p(t,e,n){for(var r=0;r<e.length;++r)t[r]=e[r]*n}function d(t,e,n,r,i){for(var a=0;a<t.length;++a)t[a]=e*n[a]+r*i[a]}function g(t,e,n){function r(t){for(var e=0;e<t.length;e++)v[g][e]=t[e];v[g].fx=t.fx}var i,a=(n=n||{}).maxIterations||200*e.length,o=n.nonZeroDelta||1.05,s=n.zeroDelta||.001,u=n.minErrorDelta||1e-6,c=n.minErrorDelta||1e-5,l=void 0!==n.rho?n.rho:1,f=void 0!==n.chi?n.chi:2,h=void 0!==n.psi?n.psi:-.5,p=void 0!==n.sigma?n.sigma:.5,g=e.length,v=new Array(g+1);v[0]=e,v[0].fx=t(e),v[0].id=0;for(var y=0;y<g;++y){var m=e.slice();m[y]=m[y]?m[y]*o:s,v[y+1]=m,v[y+1].fx=t(m),v[y+1].id=y+1}for(var x=function(t,e){return t.fx-e.fx},b=e.slice(),_=e.slice(),w=e.slice(),O=e.slice(),j=0;j<a;++j){if(v.sort(x),n.history){var S=v.map(function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e});S.sort(function(t,e){return t.id-e.id}),n.history.push({x:v[0].slice(),fx:v[0].fx,simplex:S})}for(i=0,y=0;y<g;++y)i=Math.max(i,Math.abs(v[0][y]-v[1][y]));if(Math.abs(v[0].fx-v[g].fx)<u&&i<c)break;for(y=0;y<g;++y){b[y]=0;for(var M=0;M<g;++M)b[y]+=v[M][y];b[y]/=g}var E=v[g];if(d(_,1+l,b,-l,E),_.fx=t(_),_.fx<v[0].fx)d(O,1+f,b,-f,E),O.fx=t(O),r(O.fx<_.fx?O:_);else if(_.fx>=v[g-1].fx){var P=!1;if(_.fx>E.fx?(d(w,1+h,b,-h,E),w.fx=t(w),w.fx<E.fx?r(w):P=!0):(d(w,1-h*l,b,h*l,E),w.fx=t(w),w.fx<_.fx?r(w):P=!0),P){if(p>=1)break;for(y=1;y<v.length;++y)d(v[y],1-p,v[0],p,v[y]),v[y].fx=t(v[y])}}else r(_)}return v.sort(x),{fx:v[0].fx,x:v[0]}}function v(t,e,n,r,i,a,o){function s(s,h,g){for(var v=0;v<16;++v)if(d(r.x,1,n.x,i=(s+h)/2,e),l=r.fx=t(r.x,r.fxprime),p=f(r.fxprime,e),l>u+a*i*c||l>=g)h=i;else{if(Math.abs(p)<=-o*c)return i;p*(h-s)>=0&&(h=s),s=i,g=l}return 0}var u=n.fx,c=f(n.fxprime,e),l=u,h=u,p=c,g=0;i=i||1,a=a||1e-6,o=o||.1;for(var v=0;v<10;++v){if(d(r.x,1,n.x,i,e),l=r.fx=t(r.x,r.fxprime),p=f(r.fxprime,e),l>u+a*i*c||v&&l>=h)return s(g,i,h);if(Math.abs(p)<=-o*c)return i;if(p>=0)return s(i,g,l);h=l,g=i,i*=2}return i}function y(t,e,n){var r,i,a,o={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},u=e.slice(),c=1;a=(n=n||{}).maxIterations||20*e.length,o.fx=t(o.x,o.fxprime),p(r=o.fxprime.slice(),o.fxprime,-1);for(var l=0;l<a;++l){if(c=v(t,r,o,s,c),n.history&&n.history.push({x:o.x.slice(),fx:o.fx,fxprime:o.fxprime.slice(),alpha:c}),c){d(u,1,s.fxprime,-1,o.fxprime);var g=f(o.fxprime,o.fxprime);d(r,Math.max(0,f(u,s.fxprime)/g),r,-1,s.fxprime),i=o,o=s,s=i}else p(r,o.fxprime,-1);if(h(o.fxprime)<=1e-5)break}return n.history&&n.history.push({x:o.x.slice(),fx:o.fx,fxprime:o.fxprime.slice(),alpha:c}),o}function m(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n,r=e.lossFunction||w,i=(e.initialLayout||b)(t=function(t){t=t.slice();var e,n,r,i,a=[],o={};for(e=0;e<t.length;++e){var s=t[e];1==s.sets.length?a.push(s.sets[0]):2==s.sets.length&&(o[[r=s.sets[0],i=s.sets[1]]]=!0,o[[i,r]]=!0)}for(a.sort(function(t,e){return t>e}),e=0;e<a.length;++e)for(r=a[e],n=e+1;n<a.length;++n)[r,i=a[n]]in o||t.push({sets:[r,i],size:0});return t}(t),e),a=[],o=[];for(n in i)i.hasOwnProperty(n)&&(a.push(i[n].x),a.push(i[n].y),o.push(n));for(var s=g(function(e){for(var n={},a=0;a<o.length;++a){var s=o[a];n[s]={x:e[2*a],y:e[2*a+1],radius:i[s].radius}}return r(n,t)},a,e).x,u=0;u<o.length;++u)i[n=o[u]].x=s[2*u],i[n].y=s[2*u+1];return i}function x(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+F?Math.abs(t-e):function(t,e,n,r){var i=(r=r||{}).maxIterations||100,a=r.tolerance||1e-10,o=t(e),s=t(n),u=n-e;if(o*s>0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===s)return n;for(var c=0;c<i;++c){var l=e+(u/=2),f=t(l);if(f*o>=0&&(e=l),Math.abs(u)<a||0===f)return l}return e+u}(function(r){return o(t,e,r)-n},0,t+e)}function b(t,e){var n=_(t,e),r=e.lossFunction||w;if(t.length>=8){var i=function(t,e){var n,r=(e=e||{}).restarts||10,i=[],a={};for(n=0;n<t.length;++n){var o=t[n];1==o.sets.length&&(a[o.sets[0]]=i.length,i.push(o))}var s=function(t,e,n){var r=l(e.length,e.length),i=l(e.length,e.length);return t.filter(function(t){return 2==t.sets.length}).map(function(t){var a=n[t.sets[0]],o=n[t.sets[1]],s=x(Math.sqrt(e[a].size/Math.PI),Math.sqrt(e[o].size/Math.PI),t.size);r[a][o]=r[o][a]=s;var u=0;t.size+1e-10>=Math.min(e[a].size,e[o].size)?u=1:t.size<=1e-10&&(u=-1),i[a][o]=i[o][a]=u}),{distances:r,constraints:i}}(t,i,a),u=s.distances,f=s.constraints,d=h(u.map(h))/u.length;u=u.map(function(t){return t.map(function(t){return t/d})});var g,v,m=function(t,e){return function(t,e,n,r){var i,a=0;for(i=0;i<e.length;++i)e[i]=0;for(i=0;i<n.length;++i)for(var o=t[2*i],s=t[2*i+1],u=i+1;u<n.length;++u){var c=t[2*u],l=t[2*u+1],f=n[i][u],h=r[i][u],p=(c-o)*(c-o)+(l-s)*(l-s),d=Math.sqrt(p),g=p-f*f;h>0&&d<=f||h<0&&d>=f||(a+=2*g*g,e[2*i]+=4*g*(o-c),e[2*i+1]+=4*g*(s-l),e[2*u]+=4*g*(c-o),e[2*u+1]+=4*g*(l-s))}return a}(t,e,u,f)};for(n=0;n<r;++n)v=y(m,c(2*u.length).map(Math.random),e),(!g||v.fx<g.fx)&&(g=v);var b=g.x,_={};for(n=0;n<i.length;++n){var w=i[n];_[w.sets[0]]={x:b[2*n]*d,y:b[2*n+1]*d,radius:Math.sqrt(w.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)p(e.history[n].x,d);return _}(t,e);r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function _(t,e){function n(t,e){return e.size-t.size}function r(t){return t.set in m}function i(t,e){u[e].x=t.x,u[e].y=t.y,m[e]=!0}for(var a,o=e&&e.lossFunction?e.lossFunction:w,u={},c={},l=0;l<t.length;++l){var f=t[l];1==f.sets.length&&(u[a=f.sets[0]]={x:1e10,y:1e10,rowid:u.length,size:f.size,radius:Math.sqrt(f.size/Math.PI)},c[a]=[])}for(t=t.filter(function(t){return 2==t.sets.length}),l=0;l<t.length;++l){var h=t[l],p=h.hasOwnProperty("weight")?h.weight:1,d=h.sets[0],g=h.sets[1];h.size+F>=Math.min(u[d].size,u[g].size)&&(p=0),c[d].push({set:g,size:h.size,weight:p}),c[g].push({set:d,size:h.size,weight:p})}var v=[];for(a in c)if(c.hasOwnProperty(a)){var y=0;for(l=0;l<c[a].length;++l)y+=c[a][l].size*c[a][l].weight;v.push({set:a,size:y})}v.sort(n);var m={};for(i({x:0,y:0},v[0].set),l=1;l<v.length;++l){var b=v[l].set,_=c[b].filter(r);if(a=u[b],_.sort(n),0===_.length)throw"ERROR: missing pairwise overlap information";for(var O=[],j=0;j<_.length;++j){var S=u[_[j].set],M=x(a.radius,S.radius,_[j].size);O.push({x:S.x+M,y:S.y}),O.push({x:S.x-M,y:S.y}),O.push({y:S.y+M,x:S.x}),O.push({y:S.y-M,x:S.x});for(var E=j+1;E<_.length;++E)for(var P=u[_[E].set],C=x(a.radius,P.radius,_[E].size),k=s({x:S.x,y:S.y,radius:M},{x:P.x,y:P.y,radius:C}),A=0;A<k.length;++A)O.push(k[A])}var T=1e50,I=O[0];for(j=0;j<O.length;++j){u[b].x=O[j].x,u[b].y=O[j].y;var L=o(u,t);L<T&&(T=L,I=O[j])}i(I,b)}return u}function w(t,e){function n(e){return e.map(function(e){return t[e]})}for(var i=0,s=0;s<e.length;++s){var u,c=e[s];if(1!=c.sets.length){if(2==c.sets.length){var l=t[c.sets[0]],f=t[c.sets[1]];u=o(l.radius,f.radius,a(l,f))}else u=r(n(c.sets));i+=(c.hasOwnProperty("weight")?c.weight:1)*(u-c.size)*(u-c.size)}}return i}function O(t,e,n){var r;if(t.sort(null===n?function(t,e){return e.radius-t.radius}:n),t.length>0){var i=t[0].x,o=t[0].y;for(r=0;r<t.length;++r)t[r].x-=i,t[r].y-=o}if(2==t.length&&a(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){var s,u,c=Math.atan2(t[1].x,t[1].y)-e,l=Math.cos(c),f=Math.sin(c);for(r=0;r<t.length;++r)t[r].x=l*(s=t[r].x)-f*(u=t[r].y),t[r].y=f*s+l*u}if(t.length>2){for(var h=Math.atan2(t[2].x,t[2].y)-e;h<0;)h+=2*Math.PI;for(;h>2*Math.PI;)h-=2*Math.PI;if(h>Math.PI){var p=t[1].y/(1e-10+t[1].x);for(r=0;r<t.length;++r){var d=(t[r].x+p*t[r].y)/(1+p*p);t[r].x=2*d-t[r].x,t[r].y=2*d*p-t[r].y}}}}function j(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}function n(t,n){var r=e(t),i=e(n);r.parent=i}t.map(function(t){t.parent=t});for(var r=0;r<t.length;++r)for(var i=r+1;i<t.length;++i){var o=t[r].radius+t[i].radius;a(t[r],t[i])+1e-10<o&&n(t[i],t[r])}var s,u={};for(r=0;r<t.length;++r)(s=e(t[r]).parent.setid)in u||(u[s]=[]),u[s].push(t[r]);t.map(function(t){delete t.parent});var c=[];for(s in u)u.hasOwnProperty(s)&&c.push(u[s]);return c}function S(t){var e=function(e){return{max:Math.max.apply(null,t.map(function(t){return t[e]+t.radius})),min:Math.min.apply(null,t.map(function(t){return t[e]-t.radius}))}};return{xRange:e("x"),yRange:e("y")}}function M(t,e,n){function r(t,e,n){if(t){var r,i,a,s=t.bounds;e?r=l.xRange.max-s.xRange.min+f:(r=l.xRange.max-s.xRange.max,(a=(s.xRange.max-s.xRange.min)/2-(l.xRange.max-l.xRange.min)/2)<0&&(r+=a)),n?i=l.yRange.max-s.yRange.min+f:(i=l.yRange.max-s.yRange.max,(a=(s.yRange.max-s.yRange.min)/2-(l.yRange.max-l.yRange.min)/2)<0&&(i+=a));for(var u=0;u<t.length;++u)t[u].x+=r,t[u].y+=i,o.push(t[u])}}null===e&&(e=Math.PI/2);var i,a,o=[];for(a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push({x:s.x,y:s.y,radius:s.radius,setid:a})}var u=j(o);for(i=0;i<u.length;++i){O(u[i],e,n);var c=S(u[i]);u[i].size=(c.xRange.max-c.xRange.min)*(c.yRange.max-c.yRange.min),u[i].bounds=c}u.sort(function(t,e){return e.size-t.size});for(var l=(o=u[0]).bounds,f=(l.xRange.max-l.xRange.min)/50,h=1;h<u.length;)r(u[h],!0,!1),r(u[h+1],!1,!0),r(u[h+2],!0,!0),h+=3,l=S(o);var p={};for(i=0;i<o.length;++i)p[o[i].setid]=o[i];return p}function E(t,e,n,r){var i=[],a=[];for(var o in t)t.hasOwnProperty(o)&&(a.push(o),i.push(t[o]));e-=2*r,n-=2*r;var s=S(i),u=s.xRange,c=s.yRange;if(u.max==u.min||c.max==c.min)return console.log("not scaling solution: zero size detected"),t;for(var l=Math.min(n/(c.max-c.min),e/(u.max-u.min)),f=(e-(u.max-u.min)*l)/2,h=(n-(c.max-c.min)*l)/2,p={},d=0;d<i.length;++d){var g=i[d];p[a[d]]={radius:l*g.radius,x:r+f+(g.x-u.min)*l,y:r+h+(g.y-c.min)*l}}return p}function P(t,n){return function(){for(var r,i=e.select(this),a=i.datum(),o=t[a.sets[0]].radius||50,s=n(a)||"",u=s.split(/\s+/).reverse(),c=(s.length+u.length)/3,l=u.pop(),f=[l],h=0,p=i.text(null).append("tspan").text(l);l=u.pop();)f.push(l),r=f.join(" "),p.text(r),r.length>c&&p.node().getComputedTextLength()>o&&(f.pop(),p.text(f.join(" ")),f=[l],p=i.append("tspan").text(l),h++);var d=.35-1.1*h/2,g=i.attr("x"),v=i.attr("y");i.selectAll("tspan").attr("x",g).attr("y",v).attr("dy",function(t,e){return d+1.1*e+"em"})}}function C(t,e,n){var r,i,o=e[0].radius-a(e[0],t);for(r=1;r<e.length;++r)(i=e[r].radius-a(e[r],t))<=o&&(o=i);for(r=0;r<n.length;++r)(i=a(n[r],t)-n[r].radius)<=o&&(o=i);return o}function k(t,e){var n,i=[];for(n=0;n<t.length;++n){var o=t[n];i.push({x:o.x,y:o.y}),i.push({x:o.x+o.radius/2,y:o.y}),i.push({x:o.x-o.radius/2,y:o.y}),i.push({x:o.x,y:o.y+o.radius/2}),i.push({x:o.x,y:o.y-o.radius/2})}var s=i[0],c=C(i[0],t,e);for(n=1;n<i.length;++n){var l=C(i[n],t,e);l>=c&&(s=i[n],c=l)}var f=g(function(n){return-1*C({x:n[0],y:n[1]},t,e)},[s.x,s.y],{maxIterations:500,minErrorDelta:1e-10}).x,h={x:f[0],y:f[1]},p=!0;for(n=0;n<t.length;++n)if(a(h,t[n])>t[n].radius){p=!1;break}for(n=0;n<e.length;++n)if(a(h,e[n])<e[n].radius){p=!1;break}if(!p)if(1==t.length)h={x:t[0].x,y:t[0].y};else{var d={};r(t,d),h=0===d.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==d.arcs.length?{x:d.arcs[0].circle.x,y:d.arcs[0].circle.y}:e.length?k(t,[]):u(d.arcs.map(function(t){return t.p1}))}return h}function A(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var i=0;i<n.length;i++)for(var o=t[n[i]],s=i+1;s<n.length;++s){var u=t[n[s]],c=a(o,u);c+u.radius<=o.radius+1e-10?e[n[s]].push(n[i]):c+o.radius<=u.radius+1e-10&&e[n[i]].push(n[s])}return e}function T(t,e){for(var n={},r=A(t),i=0;i<e.length;++i){for(var a=e[i].sets,o={},s={},u=0;u<a.length;++u){o[a[u]]=!0;for(var c=r[a[u]],l=0;l<c.length;++l)s[c[l]]=!0}var f=[],h=[];for(var p in t)p in o?f.push(t[p]):p in s||h.push(t[p]);var d=k(f,h);n[a]=d,d.disjoint&&e[i].size>0&&console.log("WARNING: area "+a+" not represented on screen")}return n}function I(t,e,n){var r=[];return r.push("\nM",t,e),r.push("\nm",-n,0),r.push("\na",n,n,0,1,0,2*n,0),r.push("\na",n,n,0,1,0,2*-n,0),r.join(" ")}function L(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function R(t){var e={};r(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var i=n[0].circle;return I(i.x,i.y,i.radius)}for(var a=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var s=n[o],u=s.circle.radius;a.push("\nA",u,u,0,s.width>u?1:0,1,s.p1.x,s.p1.y)}return a.join(" ")}var D=1e-10,F=1e-10;t.intersectionArea=r,t.circleCircleIntersection=s,t.circleOverlap=o,t.circleArea=i,t.distance=a,t.venn=m,t.greedyLayout=_,t.scaleSolution=E,t.normalizeSolution=M,t.bestInitialLayout=b,t.lossFunction=w,t.disjointCluster=j,t.distanceFromIntersectArea=x,t.VennDiagram=function(){function t(t){function h(t){return t.sets in _?_[t.sets]:1==t.sets.length?""+t.sets[0]:void 0}var p=t.datum(),d={};p.forEach(function(t){0==t.size&&1==t.sets.length&&(d[t.sets[0]]=1)});var m={},x={};if((p=p.filter(function(t){return!t.sets.some(function(t){return t in d})})).length>0){var b=v(p,{lossFunction:y});s&&(b=M(b,o,f)),m=E(b,n,r,i),x=T(m,p)}var _={};p.forEach(function(t){t.label&&(_[t.sets]=t.label)}),t.selectAll("svg").data([m]).enter().append("svg");var w=t.select("svg").attr("width",n).attr("height",r),O={},j=!1;w.selectAll(".venn-area path").each(function(t){var n=e.select(this).attr("d");1==t.sets.length&&n&&(j=!0,O[t.sets[0]]=L(n))});var S=function(t){return function(e){return R(t.sets.map(function(t){var i=O[t],a=m[t];return i||(i={x:n/2,y:r/2,radius:1}),a||(a={x:n/2,y:r/2,radius:1}),{x:i.x*(1-e)+a.x*e,y:i.y*(1-e)+a.y*e,radius:i.radius*(1-e)+a.radius*e}}))}},C=w.selectAll(".venn-area").data(p,function(t){return t.sets}),k=C.enter().append("g").attr("class",function(t){return"venn-area venn-"+(1==t.sets.length?"circle":"intersection")}).attr("data-venn-sets",function(t){return t.sets.join("_")}),A=k.append("path"),I=k.append("text").attr("class","label").text(function(t){return h(t)}).attr("text-anchor","middle").attr("dy",".35em").attr("x",n/2).attr("y",r/2);c&&(A.style("fill-opacity","0").filter(function(t){return 1==t.sets.length}).style("fill",function(t){return g(t.sets)}).style("fill-opacity",".25"),I.style("fill",function(t){return 1==t.sets.length?g(t.sets):"#444"}));var D=t;j?(D=t.transition("venn").duration(a)).selectAll("path").attrTween("d",S):D.selectAll("path").attr("d",function(t){return R(t.sets.map(function(t){return m[t]}))});var F=D.selectAll("text").filter(function(t){return t.sets in x}).text(function(t){return h(t)}).attr("x",function(t){return Math.floor(x[t.sets].x)}).attr("y",function(t){return Math.floor(x[t.sets].y)});u&&(j?"on"in F?F.on("end",P(m,h)):F.each("end",P(m,h)):F.each(P(m,h)));var B=C.exit().transition("venn").duration(a).remove();B.selectAll("path").attrTween("d",S);var N=B.selectAll("text").attr("x",n/2).attr("y",r/2);return null!==l&&(I.style("font-size","0px"),F.style("font-size",l),N.style("font-size","0px")),{circles:m,textCentres:x,nodes:C,enter:k,update:D,exit:B}}var n=600,r=350,i=15,a=1e3,o=Math.PI/2,s=!0,u=!0,c=!0,l=null,f=null,h={},p=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],d=0,g=function(t){if(t in h)return h[t];var e=h[t]=p[d];return(d+=1)>=p.length&&(d=0),e},v=m,y=w;return t.wrap=function(e){return arguments.length?(u=e,t):u},t.width=function(e){return arguments.length?(n=e,t):n},t.height=function(e){return arguments.length?(r=e,t):r},t.padding=function(e){return arguments.length?(i=e,t):i},t.colours=function(e){return arguments.length?(g=e,t):g},t.fontSize=function(e){return arguments.length?(l=e,t):l},t.duration=function(e){return arguments.length?(a=e,t):a},t.layoutFunction=function(e){return arguments.length?(v=e,t):v},t.normalize=function(e){return arguments.length?(s=e,t):s},t.styled=function(e){return arguments.length?(c=e,t):c},t.orientation=function(e){return arguments.length?(o=e,t):o},t.orientationOrder=function(e){return arguments.length?(f=e,t):f},t.lossFunction=function(e){return arguments.length?(y=e,t):y},t},t.wrapText=P,t.computeTextCentres=T,t.computeTextCentre=k,t.sortAreas=function(t,e){function n(t){for(var e=0;e<t.length;++e)if(!(t[e]in i))return!1;return!0}for(var r=A(t.selectAll("svg").datum()),i={},a=0;a<e.sets.length;++a){var o=e.sets[a];for(var s in r)for(var u=r[s],c=0;c<u.length;++c)if(u[c]==o){i[s]=!0;break}}t.selectAll("g").sort(function(t,r){return t.sets.length!=r.sets.length?t.sets.length-r.sets.length:t==e?n(r.sets)?-1:1:r==e?n(t.sets)?1:-1:r.size-t.size})},t.circlePath=I,t.circleFromPath=L,t.intersectionAreaPath=R,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(72),n(435))},function(t,e,n){"use strict";var r=n(360),i=n(379);e.a=function(t){return Object(i.a)(Object(r.a)(t).call(document.documentElement))}},function(t,e,n){"use strict";var r=n(69),i=n(372);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,a=new Array(n),o=0;o<n;++o)for(var s,u,c=e[o],l=c.length,f=a[o]=new Array(l),h=0;h<l;++h)(s=c[h])&&(u=t.call(s,s.__data__,h,c))&&("__data__"in s&&(u.__data__=s.__data__),f[h]=u);return new r.a(a,this._parents)}},function(t,e,n){"use strict";var r=n(69),i=n(380);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,a=[],o=[],s=0;s<n;++s)for(var u,c=e[s],l=c.length,f=0;f<l;++f)(u=c[f])&&(a.push(t.call(u,u.__data__,f,c)),o.push(u));return new r.a(a,o)}},function(t,e,n){"use strict";var r=n(69),i=n(381);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,a=new Array(n),o=0;o<n;++o)for(var s,u=e[o],c=u.length,l=a[o]=[],f=0;f<c;++f)(s=u[f])&&t.call(s,s.__data__,f,u)&&l.push(s);return new r.a(a,this._parents)}},function(t,e,n){"use strict";var r=n(69),i=n(382),a=n(406);e.a=function(t,e){if(!t)return v=new Array(this.size()),h=-1,this.each(function(t){v[++h]=t}),v;var n=e?function(t,e,n,r,a,o,s){var u,c,l,f={},h=e.length,p=o.length,d=new Array(h);for(u=0;u<h;++u)(c=e[u])&&(d[u]=l="$"+s.call(c,c.__data__,u,e),l in f?a[u]=c:f[l]=c);for(u=0;u<p;++u)(c=f[l="$"+s.call(t,o[u],u,o)])?(r[u]=c,c.__data__=o[u],f[l]=null):n[u]=new i.a(t,o[u]);for(u=0;u<h;++u)(c=e[u])&&f[d[u]]===c&&(a[u]=c)}:function(t,e,n,r,a,o){for(var s,u=0,c=e.length,l=o.length;u<l;++u)(s=e[u])?(s.__data__=o[u],r[u]=s):n[u]=new i.a(t,o[u]);for(;u<c;++u)(s=e[u])&&(a[u]=s)},o=this._parents,s=this._groups;"function"!=typeof t&&(t=Object(a.a)(t));for(var u=s.length,c=new Array(u),l=new Array(u),f=new Array(u),h=0;h<u;++h){var p=o[h],d=s[h],g=d.length,v=t.call(p,p&&p.__data__,h,o),y=v.length,m=l[h]=new Array(y),x=c[h]=new Array(y);n(p,d,m,x,f[h]=new Array(g),v,e);for(var b,_,w=0,O=0;w<y;++w)if(b=m[w]){for(w>=O&&(O=w+1);!(_=x[O])&&++O<y;);b._next=_||null}}return(c=new r.a(c,o))._enter=l,c._exit=f,c}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(383),i=n(69);e.a=function(){return new i.a(this._exit||this._groups.map(r.a),this._parents)}},function(t,e,n){"use strict";var r=n(69);e.a=function(t){for(var e=this._groups,n=t._groups,i=e.length,a=Math.min(i,n.length),o=new Array(i),s=0;s<a;++s)for(var u,c=e[s],l=n[s],f=c.length,h=o[s]=new Array(f),p=0;p<f;++p)(u=c[p]||l[p])&&(h[p]=u);for(;s<i;++s)o[s]=e[s];return new r.a(o,this._parents)}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this}},function(t,e,n){"use strict";function r(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var i=n(69);e.a=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=r);for(var n=this._groups,a=n.length,o=new Array(a),s=0;s<a;++s){for(var u,c=n[s],l=c.length,f=o[s]=new Array(l),h=0;h<l;++h)(u=c[h])&&(f[h]=u);f.sort(e)}return new i.a(o,this._parents).order()}},function(t,e,n){"use strict";e.a=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}},function(t,e,n){"use strict";e.a=function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}},function(t,e,n){"use strict";e.a=function(){var t=0;return this.each(function(){++t}),t}},function(t,e,n){"use strict";e.a=function(){return!this.node()}},function(t,e,n){"use strict";e.a=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this}},function(t,e,n){"use strict";var r=n(370);e.a=function(t,e){var n=Object(r.a)(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))}},function(t,e,n){"use strict";e.a=function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]}},function(t,e,n){"use strict";function r(t){return t.trim().split(/^|\s+/)}function i(t){return t.classList||new a(t)}function a(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function o(t,e){for(var n=i(t),r=-1,a=e.length;++r<a;)n.add(e[r])}function s(t,e){for(var n=i(t),r=-1,a=e.length;++r<a;)n.remove(e[r])}a.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},e.a=function(t,e){var n=r(t+"");if(arguments.length<2){for(var a=i(this.node()),u=-1,c=n.length;++u<c;)if(!a.contains(n[u]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?o:s)(this,t)}}:e?function(t){return function(){o(this,t)}}:function(t){return function(){s(this,t)}})(n,e))}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.each(null==t?function(){this.textContent=""}:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.each(null==t?function(){this.innerHTML=""}:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML}},function(t,e,n){"use strict";function r(){this.nextSibling&&this.parentNode.appendChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";function r(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";var r=n(360);e.a=function(t){var e="function"==typeof t?t:Object(r.a)(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}},function(t,e,n){"use strict";var r=n(360),i=n(372);e.a=function(t,e){var n="function"==typeof t?t:Object(r.a)(t),a=null==e?function(){return null}:"function"==typeof e?e:Object(i.a)(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})}},function(t,e,n){"use strict";function r(){var t=this.parentNode;t&&t.removeChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";e.a=function(t){return this.select(t?function(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}:function(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)})}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.property("__data__",t):this.node().__data__}},function(t,e,n){"use strict";function r(t,e,n){var r=Object(i.a)(t),a=r.CustomEvent;"function"==typeof a?a=new a(e,n):(a=r.document.createEvent("Event"),n?(a.initEvent(e,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}var i=n(373);e.a=function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return r(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return r(this,t,e)}})(t,e))}},function(t,e,n){"use strict";function r(){return new i}function i(){this._="@"+(++a).toString(36)}e.a=r;var a=0;i.prototype=r.prototype={constructor:i,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},function(t,e,n){"use strict";var r=n(375),i=n(361);e.a=function(t){var e=Object(r.a)();return e.changedTouches&&(e=e.changedTouches[0]),Object(i.a)(t,e)}},function(t,e,n){"use strict";var r=n(69);e.a=function(t){return"string"==typeof t?new r.a([document.querySelectorAll(t)],[document.documentElement]):new r.a([null==t?[]:t],r.c)}},function(t,e,n){"use strict";var r=n(375),i=n(361);e.a=function(t,e,n){arguments.length<3&&(n=e,e=Object(r.a)().changedTouches);for(var a,o=0,s=e?e.length:0;o<s;++o)if((a=e[o]).identifier===n)return Object(i.a)(t,a);return null}},function(t,e,n){"use strict";var r=n(375),i=n(361);e.a=function(t,e){null==e&&(e=Object(r.a)().touches);for(var n=0,a=e?e.length:0,o=new Array(a);n<a;++n)o[n]=Object(i.a)(t,e[n]);return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(436);var r=n(169);n.d(e,"transition",function(){return r.b});var i=n(457);n.d(e,"active",function(){return i.a});var a=n(385);n.d(e,"interrupt",function(){return a.a})},function(t,e,n){"use strict";var r=n(72),i=n(437),a=n(440);r.selection.prototype.interrupt=i.a,r.selection.prototype.transition=a.a},function(t,e,n){"use strict";var r=n(385);e.a=function(t){return this.each(function(){Object(r.a)(this,t)})}},function(t,e,n){"use strict";var r=n(439);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";function r(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new i(r)}function i(t){this._=t}function a(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=o,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}var o={value:function(){}};i.prototype=r.prototype={constructor:i,on:function(t,e){var n,r=this._,i=function(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}(t+"",r),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=i[o]).type)r[n]=a(r[n],t.name,e);else if(null==e)for(n in r)r[n]=a(r[n],t.name,null);return this}for(;++o<s;)if((n=(t=i[o]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new i(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}},e.a=r},function(t,e,n){"use strict";function r(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return u.time=Object(s.now)(),u;return n}var i=n(169),a=n(70),o=n(173),s=n(170),u={time:null,delay:0,duration:250,ease:o.easeCubicInOut};e.a=function(t){var e,n;t instanceof i.a?(e=t._id,t=t._name):(e=Object(i.c)(),(n=u).time=Object(s.now)(),t=null==t?null:t+"");for(var o=this._groups,c=o.length,l=0;l<c;++l)for(var f,h=o[l],p=h.length,d=0;d<p;++d)(f=h[d])&&Object(a.e)(f,t,e,d,h,n||r(f,e));return new i.a(o,this._parents,t,e)}},function(t,e,n){"use strict";var r=n(117),i=n(72),a=n(362),o=n(386);e.a=function(t,e){var n=Object(i.namespace)(t),s="transform"===n?r.interpolateTransformSvg:o.a;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,a;return function(){var o,s=n(this);if(null!=s)return(o=this.getAttributeNS(t.space,t.local))===s?null:o===r&&s===i?a:a=e(r=o,i=s);this.removeAttributeNS(t.space,t.local)}}:function(t,e,n){var r,i,a;return function(){var o,s=n(this);if(null!=s)return(o=this.getAttribute(t))===s?null:o===r&&s===i?a:a=e(r=o,i=s);this.removeAttribute(t)}})(n,s,Object(a.b)(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n?null:a===r?i:i=e(r=a,n)}}:function(t,e,n){var r,i;return function(){var a=this.getAttribute(t);return a===n?null:a===r?i:i=e(r=a,n)}})(n,s,e+""))}},function(t,e,n){"use strict";var r=n(72);e.a=function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=Object(r.namespace)(t);return this.tween(n,(i.local?function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttributeNS(t.space,t.local,r(e))}}return n._value=e,n}:function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttribute(t,r(e))}}return n._value=e,n})(i,e))}},function(t,e,n){"use strict";var r=n(70);e.a=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Object(r.g)(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Object(r.g)(this,t).delay=e}})(e,t)):Object(r.f)(this.node(),e).delay}},function(t,e,n){"use strict";var r=n(70);e.a=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Object(r.h)(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Object(r.h)(this,t).duration=e}})(e,t)):Object(r.f)(this.node(),e).duration}},function(t,e,n){"use strict";var r=n(70);e.a=function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Object(r.h)(this,t).ease=e}}(e,t)):Object(r.f)(this.node(),e).ease}},function(t,e,n){"use strict";var r=n(72),i=n(169);e.a=function(t){"function"!=typeof t&&(t=Object(r.matcher)(t));for(var e=this._groups,n=e.length,a=new Array(n),o=0;o<n;++o)for(var s,u=e[o],c=u.length,l=a[o]=[],f=0;f<c;++f)(s=u[f])&&t.call(s,s.__data__,f,u)&&l.push(s);return new i.a(a,this._parents,this._name,this._id)}},function(t,e,n){"use strict";var r=n(169);e.a=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,a=Math.min(i,n.length),o=new Array(i),s=0;s<a;++s)for(var u,c=e[s],l=n[s],f=c.length,h=o[s]=new Array(f),p=0;p<f;++p)(u=c[p]||l[p])&&(h[p]=u);for(;s<i;++s)o[s]=e[s];return new r.a(o,this._parents,this._name,this._id)}},function(t,e,n){"use strict";var r=n(70);e.a=function(t,e){var n=this._id;return arguments.length<2?Object(r.f)(this.node(),n).on.on(t):this.each(function(t,e,n){var i,a,o=(e+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?r.g:r.h;return function(){var r=o(this,t),s=r.on;s!==i&&(a=(i=s).copy()).on(e,n),r.on=a}}(n,t,e))}},function(t,e,n){"use strict";e.a=function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t}},function(t,e,n){"use strict";var r=n(72),i=n(169),a=n(70);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(r.selector)(t));for(var o=this._groups,s=o.length,u=new Array(s),c=0;c<s;++c)for(var l,f,h=o[c],p=h.length,d=u[c]=new Array(p),g=0;g<p;++g)(l=h[g])&&(f=t.call(l,l.__data__,g,h))&&("__data__"in l&&(f.__data__=l.__data__),d[g]=f,Object(a.e)(d[g],e,n,g,d,Object(a.f)(l,n)));return new i.a(u,this._parents,e,n)}},function(t,e,n){"use strict";var r=n(72),i=n(169),a=n(70);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(r.selectorAll)(t));for(var o=this._groups,s=o.length,u=[],c=[],l=0;l<s;++l)for(var f,h=o[l],p=h.length,d=0;d<p;++d)if(f=h[d]){for(var g,v=t.call(f,f.__data__,d,h),y=Object(a.f)(f,n),m=0,x=v.length;m<x;++m)(g=v[m])&&Object(a.e)(g,e,n,m,v,y);u.push(v),c.push(f)}return new i.a(u,c,e,n)}},function(t,e,n){"use strict";var r=n(72).selection.prototype.constructor;e.a=function(){return new r(this._groups,this._parents)}},function(t,e,n){"use strict";var r=n(117),i=n(72),a=n(362),o=n(386);e.a=function(t,e,n){var s="transform"==(t+="")?r.interpolateTransformCss:o.a;return null==e?this.styleTween(t,function(t,e){var n,r,a;return function(){var o=Object(i.style)(this,t),s=(this.style.removeProperty(t),Object(i.style)(this,t));return o===s?null:o===n&&s===r?a:a=e(n=o,r=s)}}(t,s)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,a,o;return function(){var s=Object(i.style)(this,t),u=n(this);return null==u&&(this.style.removeProperty(t),u=Object(i.style)(this,t)),s===u?null:s===r&&u===a?o:o=e(r=s,a=u)}}(t,s,Object(a.b)(this,"style."+t,e)):function(t,e,n){var r,a;return function(){var o=Object(i.style)(this,t);return o===n?null:o===r?a:a=e(r=o,n)}}(t,s,e+""),n)}},function(t,e,n){"use strict";e.a=function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))}},function(t,e,n){"use strict";var r=n(362);e.a=function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Object(r.b)(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))}},function(t,e,n){"use strict";var r=n(169),i=n(70);e.a=function(){for(var t=this._name,e=this._id,n=Object(r.c)(),a=this._groups,o=a.length,s=0;s<o;++s)for(var u,c=a[s],l=c.length,f=0;f<l;++f)if(u=c[f]){var h=Object(i.f)(u,e);Object(i.e)(u,t,n,f,c,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new r.a(a,this._parents,t,n)}},function(t,e,n){"use strict";var r=n(169),i=n(70),a=[null];e.a=function(t,e){var n,o,s=t.__transition;if(s)for(o in e=null==e?null:e+"",s)if((n=s[o]).state>i.c&&n.name===e)return new r.a([[t]],a,e,+o);return null}},function(t,e,n){function r(t){var e=i.mix({},s.shape.venn,t.style);return o.addFillAttrs(e,t),e}var i=n(0),a=n(18),o=n(45),s=n(7),u=i.PathUtil,c=a.registerFactory("venn",{defaultShapeType:"venn",getActiveCfg:function(t,e){return"hollow"===t?{lineWidth:(e.lineWidth||1)+1}:{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});a.registerShape("venn","venn",{draw:function(t,e){var n=t.origin._origin.path,a=r(t),o=u.parsePathString(n);return e.addShape("path",{attrs:i.mix(a,{path:o})})},getMarkerCfg:function(t){return i.mix({symbol:"circle",radius:4},r(t))}}),a.registerShape("venn","hollow",{draw:function(t,e){var n=t.origin._origin.path,r=function(t){var e=i.mix({},s.shape.hollowVenn,t.style);return o.addStrokeAttrs(e,t),e}(t),a=u.parsePathString(n);return e.addShape("path",{attrs:i.mix(r,{path:a})})},getMarkerCfg:function(t){return i.mix({symbol:"circle",radius:4},r(t))}}),t.exports=c},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var a=n(20),o=n(0),s=n(357);n(460);var u=function(t){function e(e){var n;return n=t.call(this,e)||this,o.assign(i(i(n)),s),n}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);n.size=this.getNormalizedSize(e);var r=this.get("_sizeField");return n._size=e._origin[r],n},n.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},n._initAttrs=function(){var e=this.get("attrOptions"),n=e.size?e.size.field:this.get("_sizeField")?this.get("_sizeField"):"size";this.set("_sizeField",n),delete e.size,t.prototype._initAttrs.call(this)},e}(a),c=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(u);u.Dodge=c,a.Violin=u,a.ViolinDodge=c,t.exports=u},function(t,e,n){function r(t){var e=s.mix({},l.shape.venn,t.style);return c.addFillAttrs(e,t),t.color&&(e.stroke=e.stroke||t.color),e}function i(t){var e=s.mix({},l.shape.hollowVenn,t.style);return c.addStrokeAttrs(e,t),e}function a(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];r&&e.push([0===n?"M":"L",r.x,r.y])}var i=t[0];return i&&(e.push(["L",i.x,i.y]),e.push(["z"])),e}function o(t){for(var e=t.length/2,n=[],r=[],i=0;i<t.length;i++)i<e?n.push(t[i]):r.push(t[i]);var a=f.getSplinePath(n,!1),o=f.getSplinePath(r,!1);r.length&&a.push(["L",r[0].x,r[0].y]),o.shift();var s=a.concat(o);return n.length&&s.push(["L",n[0].x,n[0].y]),s.push(["z"]),s}var s=n(0),u=n(18),c=n(45),l=n(7),f=n(22),h=u.registerFactory("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){var e=Math.max.apply(null,t);return t.map(function(t){return t/e})}(t._size);return s.each(t.y,function(i,a){var o=r[a]*e,s=0===a,u=a===t.y.length-1;n.push({isMin:s,isMax:u,x:t.x-o,y:i}),n.unshift({isMin:s,isMax:u,x:t.x+o,y:i})}),n},getActiveCfg:function(t,e){return"hollow"===t?{lineWidth:(e.lineWidth||1)+1}:{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});u.registerShape("violin","violin",{draw:function(t,e){var n=r(t),i=a(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:s.mix(n,{path:i})})},getMarkerCfg:function(t){return s.mix({symbol:"circle",radius:4},r(t))}}),u.registerShape("violin","smooth",{draw:function(t,e){var n=r(t),i=o(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:s.mix(n,{path:i})})},getMarkerCfg:function(t){return s.mix({symbol:"circle",radius:4},r(t))}}),u.registerShape("violin","hollow",{draw:function(t,e){var n=i(t),r=a(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:s.mix(n,{path:r})})},getMarkerCfg:function(t){return s.mix({symbol:"circle",radius:4},i(t))}}),u.registerShape("violin","smoothHollow",{draw:function(t,e){var n=i(t),r=o(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:s.mix(n,{path:r})})},getMarkerCfg:function(t){return s.mix({symbol:"circle",radius:4},i(t))}}),t.exports=h},function(t,e,n){var r=n(0),i=n(147),a={};a.Rect=n(387),a.List=n(388),a.Circle=n(462),a.Tree=n(463),a.Mirror=n(464),a.Matrix=n(465),i.prototype.facet=function(t,e){var n=a[r.upperFirst(t)];if(!n)throw new Error("Not support such type of facets as: "+t);var i=this.get("facets");i&&i.destroy(),e.chart=this;var o=new n(e);this.set("facets",o)},t.exports=a},function(t,e,n){function r(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var i=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="circle",e},n.getRegion=function(t,e){var n=2*Math.PI/t,i=-1*Math.PI/2+n*e,a=.5/(1+1/Math.sin(n/2)),o=r({x:.5,y:.5},.5-a,i),s=5*Math.PI/4,u=1*Math.PI/4;return{start:r(o,a,s),end:r(o,a,u)}},n.generateFacets=function(t){var e=this,n=e.fields[0];if(!n)throw"Please specify for the field for facet!";var r=e.getFieldValues(n,t),i=r.length,a=[];return r.forEach(function(o,s){var u=e.getFilter([{field:n,value:o,values:r}]),c=t.filter(u),l={type:e.type,colValue:o,colField:n,colIndex:s,cols:i,rows:1,rowIndex:0,data:c,region:e.getRegion(i,s)};a.push(l)}),a},e}(n(363));t.exports=i},function(t,e,n){var r=n(363),i=n(0).assign,a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="tree",e.line={lineWidth:1,stroke:"#ddd"},e.lineSmooth=!1,e},n.generateFacets=function(t){if(!this.fields.length)throw"Please specify for the fields for facet!";var e=[],n=this.getRootFacet(t);return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},n.getRootFacet=function(t){return{type:this.type,rows:this.getRows(),rowIndex:0,colIndex:0,colValue:this.rootTitle,data:t}},n.getRows=function(){return this.fields.length+1},n.getChildFacets=function(t,e,n){var r=this,i=r.fields;if(!(i.length<e)){var a=[],o=i[e-1],s=r.getFieldValues(o,t);return s.forEach(function(i,u){var c=r.getFilter([{field:o,value:i,values:s}]),l=t.filter(c);if(l.length){var f={type:r.type,colValue:i,colField:o,colIndex:u,rows:r.getRows(),rowIndex:e,data:l,children:r.getChildFacets(l,e+1,n)};a.push(f),n.push(f)}}),a}},n.setRegion=function(t){var e=this;e.forceColIndex(t),t.forEach(function(t){t.region=e.getRegion(t.rows,t.cols,t.colIndex,t.rowIndex)})},n.forceColIndex=function(t){var e=this,n=[],r=0;t.forEach(function(t){e.isLeaf(t)&&(n.push(t),t.colIndex=r,r++)}),n.forEach(function(t){t.cols=n.length});for(var i=e.fields.length-1;i>=0;i--)for(var a=e.getFacetsByLevel(t,i),o=0;o<a.length;o++){var s=a[o];e.isLeaf(s)||(s.originColIndex=s.colIndex,s.colIndex=e.getRegionIndex(s.children),s.cols=n.length)}},n.getFacetsByLevel=function(t,e){var n=[];return t.forEach(function(t){t.rowIndex===e&&n.push(t)}),n},n.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+2*a/3}}},n.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].colIndex-e.colIndex)/2+e.colIndex},n.isLeaf=function(t){return!t.children||!t.children.length},n.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].label=null,e[t].title=null)},n.setYAxis=function(t,e,n){0!==n.originColIndex&&0!==n.colIndex&&(e[t].title=null,e[t].label=null)},n.onPaint=function(){t.prototype.onPaint.call(this),this.group.clear(),this.facets&&this.line&&this.drawLines(this.facets,this.group)},n.drawLines=function(t,e){var n=this,r=e.addGroup();t.forEach(function(t){n.isLeaf(t)||n._addFacetLines(t,t.children,r)})},n._addFacetLines=function(t,e,n){var r=this,i=t.view.getViewRegion(),a={x:i.start.x+(i.end.x-i.start.x)/2,y:i.start.y};e.forEach(function(t){var e=t.view.getViewRegion(),i={x:e.start.x+(e.end.x-e.start.x)/2,y:e.end.y},o={x:a.x,y:a.y+(i.y-a.y)/2};r._drawLine([a,o,{x:i.x,y:o.y},i],n)})},n._getPath=function(t){var e=[];return this.lineSmooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach(function(t,n){e.push(0===n?["M",t.x,t.y]:["L",t.x,t.y])}),e},n._drawLine=function(t,e){var n=this._getPath(t);e.addShape("path",{attrs:i({path:n},this.line)})},e}(r);t.exports=a},function(t,e,n){var r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="mirror",this.transpose=!1,e},n.init=function(){this.transpose?(this.cols=2,this.rows=1):(this.cols=1,this.rows=2),t.prototype.init.call(this)},n.beforeProcessView=function(t,e){this.transpose?e.colIndex%2==0?t.coord().transpose().scale(-1,1):t.coord().transpose():e.rowIndex%2!=0&&t.coord().scale(1,-1)},n.renderTitle=function(t,e){this.transpose?this.drawColTitle(t,e):this.drawRowTitle(t,e)},n.setXAxis=function(t,e,n){1!==n.colIndex&&1!==n.rowIndex||(e[t].label=null,e[t].title=null)},n.setYAxis=function(){},e}(n(388));t.exports=r},function(t,e,n){var r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="matrix",e.showTitle=!1,e},n.generateFacets=function(t){for(var e=this.fields,n=e.length,r=n,i=[],a=0;a<r;a++)for(var o=e[a],s=0;s<n;s++){var u=e[s],c={type:this.type,colValue:o,rowValue:u,colField:o,rowField:u,colIndex:a,rowIndex:s,cols:r,rows:n,data:t,region:this.getRegion(n,r,a,s)};i.push(c)}return i},n.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].title=null,e[t].label=null)},n.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},e}(n(387));t.exports=r},function(t,e,n){var r=n(172),i=n(147),a=n(0),o={Base:n(171),Brush:n(467),Drag:n(468),ScrollBar:n(470),ShapeSelect:n(472),Slider:n(473),Zoom:n(475)};r._Interactions={},r.registerInteraction=function(t,e){r._Interactions[t]=e},r.getInteraction=function(t){return r._Interactions[t]},i.prototype.getInteractions=function(){return this._interactions||(this._interactions={}),this._interactions},i.prototype._setInteraction=function(t,e){var n=this.getInteractions();n[t]&&n[t]!==e&&n[t].destroy(),n[t]=e},i.prototype.clearInteraction=function(t){var e=this.getInteractions();t?(e[t]&&(e[t]._reset(),e[t].destroy()),delete e[t]):a.each(e,function(t,n){t._reset(),t.destroy(),delete e[n]})},i.prototype.interact=i.prototype.interaction=function(t,e){var n=new(r.getInteraction(t))(e,this);return this._setInteraction(t,n),this},r.registerInteraction("brush",o.Brush),r.registerInteraction("Brush",o.Brush),r.registerInteraction("drag",o.Drag),r.registerInteraction("Drag",o.Drag),r.registerInteraction("zoom",o.Zoom),r.registerInteraction("Zoom",o.Zoom),r.registerInteraction("scroll-bar",o.ScrollBar),r.registerInteraction("ScrollBar",o.ScrollBar),r.registerInteraction("shape-select",o.ShapeSelect),r.registerInteraction("ShapeSelect",o.ShapeSelect),r.registerInteraction("slider",o.Slider),r.registerInteraction("Slider",o.Slider),t.exports=o},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i=n(0),a=["X","Y","XY","POLYGON"],o="XY",s=function(t){function e(e,n){var i,s=r(r(i=t.call(this,e,n)||this));s.filter=!s.draggable,s.type=s.type.toUpperCase(),s.chart=n,-1===a.indexOf(s.type)&&(s.type=o);var u,c=s.canvas;if(c&&(c.get("children").map(function(t){return"plotBack"===t.get("type")?(u=t.get("plotRange"),!1):t}),s.plot={start:u.bl,end:u.tr}),n){var l=n.get("coord");s.plot={start:l.start,end:l.end};var f=n._getScales("x"),h=n._getScales("y");s.xScale=s.xField?f[s.xField]:n.getXScale(),s.yScale=s.yField?h[s.yField]:n.getYScales()[0]}return i}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:o,startPoint:null,brushing:!1,dragging:!1,brushShape:null,container:null,polygonPath:null,style:{fill:"#C5D4EB",opacity:.3,lineWidth:1,stroke:"#82A6DD"},draggable:!1,dragOffX:0,dragOffY:0,inPlot:!0,xField:null,yField:null})},n.start=function(t){var e=this,n=e.canvas,r=e.type,i=e.brushShape;if(r){var a={x:t.offsetX,y:t.offsetY};if(a.x){var o=e.plot&&e.inPlot,s=n.get("canvasDOM"),u=n.get("pixelRatio");if(e.selection&&(e.selection=null),e.draggable&&i&&!i.get("destroyed")){if(i.isHit(a.x*u,a.y*u)){if(s.style.cursor="move",e.selection=i,e.dragging=!0,"X"===r)e.dragoffX=a.x-i.attr("x"),e.dragoffY=0;else if("Y"===r)e.dragoffX=0,e.dragoffY=a.y-i.attr("y");else if("XY"===r)e.dragoffX=a.x-i.attr("x"),e.dragoffY=a.y-i.attr("y");else if("POLYGON"===r){var c=i.getBBox();e.dragoffX=a.x-c.minX,e.dragoffY=a.y-c.minY}e.onDragstart&&e.onDragstart(t)}e.prePoint=a}if(!e.dragging){e.onBrushstart&&e.onBrushstart(a);var l=e.container;if(o){var f=e.plot,h=f.start,p=f.end;if(a.x<h.x||a.x>p.x||a.y<p.y||a.y>h.y)return}s.style.cursor="crosshair",e.startPoint=a,e.brushShape=null,e.brushing=!0,l?l.clear():(l=n.addGroup({zIndex:5})).initTransform(),e.container=l,"POLYGON"===r&&(e.polygonPath="M "+a.x+" "+a.y)}}}},n.process=function(t){var e=this,n=e.brushing,r=e.dragging,a=e.type,o=e.plot,s=e.startPoint,u=e.xScale,c=e.yScale,l=e.canvas;if(n||r){var f={x:t.offsetX,y:t.offsetY},h=l.get("canvasDOM");if(n){h.style.cursor="crosshair";var p,d,g,v,y=o.start,m=o.end,x=e.polygonPath,b=e.brushShape,_=e.container;e.plot&&e.inPlot&&(f=e._limitCoordScope(f)),"Y"===a?(p=y.x,d=f.y>=s.y?s.y:f.y,g=Math.abs(y.x-m.x),v=Math.abs(s.y-f.y)):"X"===a?(p=f.x>=s.x?s.x:f.x,d=m.y,g=Math.abs(s.x-f.x),v=Math.abs(m.y-y.y)):"XY"===a?(f.x>=s.x?(p=s.x,d=f.y>=s.y?s.y:f.y):(p=f.x,d=f.y>=s.y?s.y:f.y),g=Math.abs(s.x-f.x),v=Math.abs(s.y-f.y)):"POLYGON"===a&&(e.polygonPath=x+="L "+f.x+" "+f.y,b?!b.get("destroyed")&&b.attr(i.mix({},b._attrs,{path:x})):b=_.addShape("path",{attrs:i.mix(e.style,{path:x})})),"POLYGON"!==a&&(b?!b.get("destroyed")&&b.attr(i.mix({},b._attrs,{x:p,y:d,width:g,height:v})):b=_.addShape("rect",{attrs:i.mix(e.style,{x:p,y:d,width:g,height:v})})),e.brushShape=b}else if(r){h.style.cursor="move";var w=e.selection;if(w&&!w.get("destroyed"))if("POLYGON"===a){var O=e.prePoint;e.selection.translate(f.x-O.x,f.y-O.y)}else e.dragoffX&&w.attr("x",f.x-e.dragoffX),e.dragoffY&&w.attr("y",f.y-e.dragoffY)}e.prePoint=f,l.draw();var j=e._getSelected(),S=j.yValues,M={data:j.data,shapes:j.shapes,x:f.x,y:f.y};u&&(M[u.field]=j.xValues),c&&(M[c.field]=S),e.onDragmove&&e.onDragmove(M),e.onBrushmove&&e.onBrushmove(M)}},n.end=function(t){var e=this,n=e.data,r=e.shapes,a=e.xValues,o=e.yValues,s=e.canvas,u=e.type,c=e.startPoint,l=e.chart,f=e.container,h=e.xScale,p=e.yScale,d=t.offsetX,g=t.offsetY;if(s.get("canvasDOM").style.cursor="default",Math.abs(c.x-d)<=1&&Math.abs(c.y-g)<=1)return e.brushing=!1,void(e.dragging=!1);var v={data:n,shapes:r,x:d,y:g};if(h&&(v[h.field]=a),p&&(v[p.field]=o),e.dragging)e.dragging=!1,e.onDragend&&e.onDragend(v);else if(e.brushing){e.brushing=!1;var y=e.brushShape,m=e.polygonPath;"POLYGON"===u&&(m+="z",y&&!y.get("destroyed")&&y.attr(i.mix({},y._attrs,{path:m})),e.polygonPath=m,s.draw()),e.onBrushend?e.onBrushend(v):l&&e.filter&&(f.clear(),"X"===u?h&&l.filter(h.field,function(t){return a.indexOf(t)>-1}):"Y"===u?p&&l.filter(p.field,function(t){return o.indexOf(t)>-1}):(h&&l.filter(h.field,function(t){return a.indexOf(t)>-1}),p&&l.filter(p.field,function(t){return o.indexOf(t)>-1})),l.repaint())}},n.reset=function(){var t=this.chart,e=this.brushShape,n=this.canvas;t&&this.filter&&(t.get("options").filters={},t.repaint()),e&&(e.destroy(),n.draw())},n._limitCoordScope=function(t){var e=this.plot,n=e.start,r=e.end;return t.x<n.x&&(t.x=n.x),t.x>r.x&&(t.x=r.x),t.y<r.y&&(t.y=r.y),t.y>n.y&&(t.y=n.y),t},n._getSelected=function(){var t=this,e=t.chart,n=t.xScale,r=t.yScale,i=t.brushShape,a=t.canvas,o=a.get("pixelRatio"),s=[],u=[],c=[],l=[];return e&&e.get("geoms").map(function(t){return t.getShapes().map(function(t){var e=t.get("origin");return Array.isArray(e)||(e=[e]),e.map(function(e){if(i.isHit(e.x*o,e.y*o)){s.push(t);var a=e._origin;l.push(a),n&&u.push(a[n.field]),r&&c.push(a[r.field])}return e}),t}),t}),t.shapes=s,t.xValues=u,t.yValues=c,t.data=l,a.draw(),{data:l,xValues:u,yValues:c,shapes:s}},e}(n(171));t.exports=s},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i=n(0),a=n(171),o=n(469),s=n(377),u=n(378),c=["X","Y","XY"],l="X",f=function(t){function e(e,n){var a,s=r(r(a=t.call(this,e,n)||this));s.type=s.type.toUpperCase(),s.chart=n,s.coord=n.get("coord");var f=s.data=n.get("data");o(n);var h=n.getYScales(),p=n.getXScale();h.push(p);var d=n.get("scaleController");return h.forEach(function(t){var e=t.field;s.limitRange[e]=u(f,t);var n=d.defs[e]||{};s.originScaleDefsByField[e]=i.mix(n,{nice:!!n.nice}),t.isLinear&&(s.stepByField[e]=(t.max-t.min)*s.stepRatio)}),-1===c.indexOf(s.type)&&(s.type=l),s._disableTooltip(),a}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:l,stepRatio:.05,limitRange:{},stepByField:{},threshold:20,originScaleDefsByField:{},previousPoint:null,isDragging:!1})},n._disableTooltip=function(){var t=this.chart;t.get("tooltipController")&&(this._showTooltip=!0,t.tooltip(!1))},n._enableTooltip=function(t){var e=this.chart;this._showTooltip&&(e.tooltip(!0),e.showTooltip(t))},n._applyTranslate=function(t,e,n){void 0===e&&(e=0),t.isLinear?this._translateLinearScale(t,e,n):this._translateCatScale(t,e,n)},n._translateCatScale=function(t,e,n){var r=this.chart,a=t.type,o=t.field,u=t.values,c=t.ticks,l=s(r,o),f=this.limitRange[o],h=u.length,p=Math.max(1,Math.abs(parseInt(e/n*h))),d=f.indexOf(u[0]),g=f.indexOf(u[h-1]);if(e>0&&d>=0){for(var v=0;v<p&&d>0;v++)d-=1,g-=1;var y=f.slice(d,g+1),m=null;if("timeCat"===a){for(var x=c.length>2?c[1]-c[0]:864e5,b=c[0]-x;b>=y[0];b-=x)c.unshift(b);m=c}r.scale(o,i.mix({},l,{values:y,ticks:m}))}else if(e<0&&g<=f.length-1){for(var _=0;_<p&&g<f.length-1;_++)d+=1,g+=1;var w=f.slice(d,g+1),O=null;if("timeCat"===a){for(var j=c.length>2?c[1]-c[0]:864e5,S=c[c.length-1]+j;S<=w[w.length-1];S+=j)c.push(S);O=c}r.scale(o,i.mix({},l,{values:w,ticks:O}))}},n._translateLinearScale=function(t,e,n){var r=this.chart,a=this.limitRange,o=t.min,u=t.max,c=t.field;if(o!==a[c].min||u!==a[c].max){var l=e/n,f=u-o,h=s(r,c);r.scale(c,i.mix({},h,{nice:!1,min:o+l*f,max:u+l*f}))}},n.start=function(t){this.canvas.get("canvasDOM").style.cursor="pointer",this.isDragging=!0,this.previousPoint={x:t.x,y:t.y},this._disableTooltip()},n.process=function(t){var e=this;if(e.isDragging){var n=e.chart,r=e.type,i=e.coord,a=e.threshold;e.canvas.get("canvasDOM").style.cursor="move";var o=e.previousPoint,s=t,u=s.x-o.x,c=s.y-o.y,l=!1;if(Math.abs(u)>a&&r.indexOf("X")>-1){l=!0;var f=n.getXScale();e._applyTranslate(f,f.isLinear?-u:u,i.width)}Math.abs(c)>a&&r.indexOf("Y")>-1&&(l=!0,n.getYScales().forEach(function(t){e._applyTranslate(t,s.y-o.y,i.height)})),l&&(e.previousPoint=s,n.repaint())}},n.end=function(t){this.isDragging=!1,this.canvas.get("canvasDOM").style.cursor="default",this._enableTooltip(t)},n.reset=function(){var t=this.view,e=this.originScaleDefsByField,n=t.getYScales(),r=t.getXScale();n.push(r),n.forEach(function(n){if(n.isLinear){var r=n.field;t.scale(r,e[r])}}),t.repaint(),this._disableTooltip()},e}(a);t.exports=f},function(t,e,n){var r=n(0),i=n(71),a=n(376);t.exports=function(t){t.on("beforeinitgeoms",function(){t.set("limitInPlot",!0);var e=t.get("data"),n=a(t);if(!n)return e;var o=t.get("geoms"),s=!1;r.each(o,function(t){if(-1!==["area","line","path"].indexOf(t.get("type")))return s=!0,!1});var u=[];if(r.each(n,function(t,e){!s&&t&&(t.values||t.min||t.max)&&u.push(e)}),0===u.length)return e;var c=[];r.each(e,function(t){var e=!0;r.each(u,function(a){var o=t[a];if(o){var s=n[a];"timeCat"===s.type&&r.isNumber(s.values[0])&&(o=i.toTimeStamp(o)),(s.values&&-1===s.values.indexOf(o)||s.min&&o<s.min||s.max&&o>s.max)&&(e=!1)}}),e&&c.push(t)}),t.set("filteredData",c)})}},function(t,e,n){var r=n(0),i=n(171),a=n(471),o=n(378),s=function(t){function e(e,n){var i,a=(i=t.call(this,e,n)||this).getDefaultCfg();return n.set("_scrollBarCfg",r.deepMix({},a,e)),n.set("_limitRange",{}),n.get("_horizontalBar")||n.get("_verticalBar")||i._renderScrollBars(),i}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,type:"X",xStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:0,offsetY:-10},yStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:8,offsetY:0}})},n._renderScrollBars=function(){var t=this.chart,e=t.get("_scrollBarCfg");if(e){var n=t.get("data"),r=t.get("plotRange");r.width=Math.abs(r.br.x-r.bl.x),r.height=Math.abs(r.tl.y-r.bl.y);var i=t.get("backPlot"),s=t.get("canvas").get("height"),u=t.get("_limitRange"),c=e.type;if(c.indexOf("X")>-1){var l=e.xStyle,f=l.offsetX,h=l.offsetY,p=l.lineCap,d=l.backgroundColor,g=l.fillerColor,v=l.size,y=t.getXScale(),m=u[y.field];m||(m=o(n,y),u[y.field]=m);var x=a(y,m,y.type),b=t.get("_horizontalBar"),_=s-v/2+h;b?b.get("children")[1].attr({x1:Math.max(r.bl.x+r.width*x[0]+f,r.bl.x),x2:Math.min(r.bl.x+r.width*x[1]+f,r.br.x)}):((b=i.addGroup({className:"horizontalBar"})).addShape("line",{attrs:{x1:r.bl.x+f,y1:_,x2:r.br.x+f,y2:_,lineWidth:v,stroke:d,lineCap:p}}),b.addShape("line",{attrs:{x1:Math.max(r.bl.x+r.width*x[0]+f,r.bl.x),y1:_,x2:Math.min(r.bl.x+r.width*x[1]+f,r.br.x),y2:_,lineWidth:v,stroke:g,lineCap:p}}),t.set("_horizontalBar",b))}if(c.indexOf("Y")>-1){var w=e.yStyle,O=w.offsetX,j=w.offsetY,S=w.lineCap,M=w.backgroundColor,E=w.fillerColor,P=w.size,C=t.getYScales()[0],k=u[C.field];k||(k=o(n,C),u[C.field]=k);var A=a(C,k,C.type),T=t.get("_verticalBar"),I=P/2+O;T?T.get("children")[1].attr({y1:Math.max(r.tl.y+r.height*A[0]+j,r.tl.y),y2:Math.min(r.tl.y+r.height*A[1]+j,r.bl.y)}):((T=i.addGroup({className:"verticalBar"})).addShape("line",{attrs:{x1:I,y1:r.tl.y+j,x2:I,y2:r.bl.y+j,lineWidth:P,stroke:M,lineCap:S}}),T.addShape("line",{attrs:{x1:I,y1:Math.max(r.tl.y+r.height*A[0]+j,r.tl.y),x2:I,y2:Math.min(r.tl.y+r.height*A[1]+j,r.bl.y),lineWidth:P,stroke:E,lineCap:S}}),t.set("_verticalBar",T))}}},n._clear=function(){var t=this.chart;if(t){var e=t.get("_horizontalBar"),n=t.get("_verticalBar");e&&e.remove(!0),n&&n.remove(!0),t.set("_horizontalBar",null),t.set("_verticalBar",null)}},n._bindEvents=function(){this._onAfterclearOrBeforechangedata=this._onAfterclearOrBeforechangedata.bind(this),this._onAfterclearinner=this._onAfterclearinner.bind(this),this._onAfterdrawgeoms=this._onAfterdrawgeoms.bind(this);var t=this.chart;t.on("afterclear",this._onAfterclearOrBeforechangedata),t.on("beforechangedata",this._onAfterclearOrBeforechangedata),t.on("afterclearinner",this._onAfterclearinner),t.on("afterdrawgeoms",this._onAfterdrawgeoms)},n._onAfterclearOrBeforechangedata=function(){this.chart&&this.chart.set("_limitRange",{})},n._onAfterclearinner=function(){this._clear()},n._onAfterdrawgeoms=function(){this._renderScrollBars()},n._clearEvents=function(){var t=this.chart;t&&(t.off("afterclear",this._onAfterclearOrBeforechangedata),t.off("beforechangedata",this._onAfterclearOrBeforechangedata),t.off("afterclearinner",this._onAfterclearinner),t.off("afterdrawgeoms",this._onAfterdrawgeoms))},n.destroy=function(){this._clearEvents(),this._clear(),this.canvas.draw()},e}(i);t.exports=s},function(t,e){t.exports=function(t,e,n){if(!t)return[0,1];var r=0,i=0;if("linear"===n){var a=e.min,o=e.max-a;r=(t.min-a)/o,i=(t.max-a)/o}else{var s=e,u=t.values,c=s.indexOf(u[0]),l=s.indexOf(u[u.length-1]);r=c/(s.length-1),i=l/(s.length-1)}return[r,i]}},function(t,e,n){function r(t,e){var n={};for(var r in e)n[r]=t[r];return n}var i=n(0),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{startEvent:"mouseup",processEvent:null,selectStyle:{fillOpacity:1},unSelectStyle:{fillOpacity:.1},cancelable:!0})},n.start=function(t){var e,n=[];if(this.view.eachShape(function(r,i){i.isPointInPath(t.x,t.y)?e=i:n.push(i)}),e)if(e.get("_selected")){if(!this.cancelable)return;this.reset()}else{var a=this.selectStyle,o=this.unSelectStyle,s=r(e.attr(),e);e.set("_originAttrs",s),e.attr(a),i.each(n,function(t){var e=t.get("_originAttrs");e&&t.attr(e),t.set("_selected",!1),o&&(e=r(t.attr(),o),t.set("_originAttrs",e),t.attr(o))}),e.set("_selected",!0),this.selectedShape=e,this.canvas.draw()}else this.reset()},n.end=function(t){var e=this.selectedShape;e&&!e.get("destroyed")&&e.get("origin")&&(t.data=e.get("origin")._origin,t.shapeInfo=e.get("origin"),t.shape=e,t.selected=!!e.get("_selected"))},n.reset=function(){if(this.selectedShape){var t=this.view.get("geoms")[0].get("container").get("children")[0].get("children");i.each(t,function(t){var e=t.get("_originAttrs");e&&(t._attrs=e,t.set("_originAttrs",null)),t.set("_selected",!1)}),this.canvas.draw()}},e}(n(171));t.exports=a},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i=n(474),a=n(147),o=n(0),s=n(16),u=n(7),c=n(171),l=n(377),f=n(376),h=s.Canvas,p=o.DomUtil,d=o.isNumber,g=function(t){function e(e,n){var i,a=r(r(i=t.call(this,e,n)||this));return a._initContainer(),a._initStyle(),a.render(),i}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,height:26,width:"auto",padding:u.plotCfg.padding,container:null,xAxis:null,yAxis:null,fillerStyle:{fill:"#BDCCED",fillOpacity:.3},backgroundStyle:{stroke:"#CCD6EC",fill:"#CCD6EC",fillOpacity:.3,lineWidth:1},range:[0,100],layout:"horizontal",textStyle:{fill:"#545454"},handleStyle:{img:"https://gw.alipayobjects.com/zos/rmsportal/QXtfhORGlDuRvLXFzpsQ.png",width:5},backgroundChart:{type:["area"],color:"#CCD6EC"}})},n._initContainer=function(){var t=this.container;if(!t)throw new Error("Please specify the container for the Slider!");this.domContainer=o.isString(t)?document.getElementById(t):t},n.forceFit=function(){var t=this;if(t&&!t.destroyed){var e=p.getWidth(t.domContainer);if(e!==t.domWidth){var n=t.canvas;n.changeSize(e,t.height),t.bgChart&&t.bgChart.changeWidth(e),n.clear(),t._initWidth(),t._initSlider(),t._bindEvent(),n.draw()}}},n._initForceFitEvent=function(){var t=setTimeout(o.wrapBehavior(this,"forceFit"),200);clearTimeout(this.resizeTimer),this.resizeTimer=t},n._initStyle=function(){var t=this;t.handleStyle=o.mix({width:t.height,height:t.height},t.handleStyle),"auto"===t.width&&window.addEventListener("resize",o.wrapBehavior(t,"_initForceFitEvent"))},n._initWidth=function(){var t,e=this;t="auto"===e.width?p.getWidth(e.domContainer):e.width,e.domWidth=t;var n=o.toAllPadding(e.padding);"horizontal"===e.layout?(e.plotWidth=t-n[1]-n[3],e.plotPadding=n[3],e.plotHeight=e.height):"vertical"===e.layout&&(e.plotWidth=e.width,e.plotHeight=e.height-n[0]-n[2],e.plotPadding=n[0])},n._initCanvas=function(){var t=new h({width:this.domWidth,height:this.height,containerDOM:this.domContainer,capture:!1}),e=t.get("el");e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.zIndex=3,this.canvas=t},n._initBackground=function(){var t,e=this,n=this.chart,r=n.getAllGeoms[0],i=e.data=e.data||n.get("data"),s=n.getXScale(),u=e.xAxis||s.field,c=e.yAxis||n.getYScales()[0].field,l=o.deepMix(((t={})[""+u]={range:[0,1]},t),f(n),e.scales);if(delete l[u].min,delete l[u].max,!i)throw new Error("Please specify the data!");if(!u)throw new Error("Please specify the xAxis!");if(!c)throw new Error("Please specify the yAxis!");var h=e.backgroundChart,p=h.type||r.get("type"),d=h.color||"grey",g=h.shape;o.isArray(p)||(p=[p]);var v=o.toAllPadding(e.padding),y=new a({container:e.container,width:e.domWidth,height:e.height,padding:[0,v[1],0,v[3]],animate:!1});y.source(i),y.scale(l),y.axis(!1),y.tooltip(!1),y.legend(!1),o.each(p,function(t,e){var n=y[t]().position(u+"*"+c).opacity(1),r=o.isArray(d)?d[e]:d;r&&(o.isObject(r)?r.field&&n.color(r.field,r.colors):n.color(r));var i=o.isArray(g)?g[e]:g;i&&(o.isObject(i)?i.field&&n.shape(i.field,i.callback||i.shapes):n.shape(i))}),y.render(),e.bgChart=y,e.scale="horizontal"===e.layout?y.getXScale():y.getYScales()[0],"vertical"===e.layout&&y.destroy()},n._initRange=function(){var t=this,e=t.startRadio,n=t.endRadio,r=t._startValue,i=t._endValue,a=t.scale,o=0,s=1;d(e)?o=e:r&&(o=a.scale(a.translate(r))),d(n)?s=n:i&&(s=a.scale(a.translate(i)));var u=t.minSpan,c=t.maxSpan,l=0;if("time"===a.type||"timeCat"===a.type){var f=a.values;l=f[f.length-1]-f[0]}else a.isLinear&&(l=a.max-a.min);l&&u&&(t.minRange=u/l*100),l&&c&&(t.maxRange=c/l*100);var h=[100*o,100*s];return t.range=h,h},n._getHandleValue=function(t){var e=this,n=e.range,r=n[1]/100,i=e.scale;return"min"===t?e._startValue?e._startValue:i.invert(n[0]/100):e._endValue?e._endValue:i.invert(r)},n._initSlider=function(){var t=this,e=t.canvas,n=t._initRange(),r=t.scale,a=e.addGroup(i,{middleAttr:t.fillerStyle,range:n,minRange:t.minRange,maxRange:t.maxRange,layout:t.layout,width:t.plotWidth,height:t.plotHeight,backgroundStyle:t.backgroundStyle,textStyle:t.textStyle,handleStyle:t.handleStyle,minText:r.getText(t._getHandleValue("min")),maxText:r.getText(t._getHandleValue("max"))});"horizontal"===t.layout?a.translate(t.plotPadding,0):"vertical"===t.layout&&a.translate(0,t.plotPadding),t.rangeElement=a},n._updateElement=function(t,e){var n=this,r=n.chart,i=n.scale,a=n.rangeElement,s=i.field,u=a.get("minTextElement"),c=a.get("maxTextElement"),f=i.invert(t),h=i.invert(e),p=i.getText(f),d=i.getText(h);u.attr("text",p),c.attr("text",d),n._startValue=p,n._endValue=d,n.onChange&&n.onChange({startText:p,endText:d,startValue:f,endValue:h,startRadio:t,endRadio:e}),r.scale(s,o.mix({},l(r,s),{nice:!1,min:f,max:h})),r.repaint()},n._bindEvent=function(){var t=this;t.rangeElement.on("sliderchange",function(e){var n=e.range;t._updateElement(n[0]/100,n[1]/100)})},n.clear=function(){var t=this;t.canvas.clear(),t.bgChart&&t.bgChart.destroy(),t.bgChart=null,t.scale=null,t.canvas.draw()},n.repaint=function(){this.clear(),this.render()},n.render=function(){var t=this;t._initWidth(),t._initCanvas(),t._initBackground(),t._initSlider(),t._bindEvent(),t.canvas.draw()},n.destroy=function(){var t=this;clearTimeout(t.resizeTimer),t.rangeElement.off("sliderchange"),t.bgChart&&t.bgChart.destroy(),t.canvas.destroy();for(var e=t.domContainer;e.hasChildNodes();)e.removeChild(e.firstChild);window.removeEventListener("resize",o.getWrapBehavior(t,"_initForceFitEvent")),t.destroyed=!0},e}(c);t.exports=g},function(t,e,n){var r=n(0),i=n(16).Group,a=r.DomUtil,o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},n._initHandle=function(t){var e,n,i,a=this.addGroup(),o=this.get("layout"),s=this.get("handleStyle"),u=s.img,c=s.width,l=s.height;if("horizontal"===o){var f=s.width;n=a.addShape("Image",{attrs:{x:-f/2,y:0,width:f,height:l,img:u,cursor:i="ew-resize"}}),e=a.addShape("Text",{attrs:r.mix({x:"min"===t?-(f/2+5):f/2+5,y:l/2,textAlign:"min"===t?"end":"start",textBaseline:"middle",text:this.get("min"===t?"minText":"maxText"),cursor:i},this.get("textStyle"))})}else n=a.addShape("Image",{attrs:{x:0,y:-l/2,width:c,height:l,img:u,cursor:i="ns-resize"}}),e=a.addShape("Text",{attrs:r.mix({x:c/2,y:"min"===t?l/2+5:-(l/2+5),textAlign:"center",textBaseline:"middle",text:this.get("min"===t?"minText":"maxText"),cursor:i},this.get("textStyle"))});return this.set(t+"TextElement",e),this.set(t+"IconElement",n),a},n._initSliderBackground=function(){var t=this.addGroup();return t.initTransform(),t.translate(0,0),t.addShape("Rect",{attrs:r.mix({x:0,y:0,width:this.get("width"),height:this.get("height")},this.get("backgroundStyle"))}),t},n._beforeRenderUI=function(){var t=this._initSliderBackground(),e=this._initHandle("min"),n=this._initHandle("max"),r=this.addShape("rect",{attrs:this.get("middleAttr")});this.set("middleHandleElement",r),this.set("minHandleElement",e),this.set("maxHandleElement",n),this.set("backgroundElement",t),t.set("zIndex",0),r.set("zIndex",1),e.set("zIndex",2),n.set("zIndex",2),r.attr("cursor","move"),this.sort()},n._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},n._transform=function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix?(o.resetMatrix(),s.resetMatrix()):(o.initTransform(),s.initTransform()),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,0),s.translate(r*i,0)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(0,(1-n)*a),s.translate(0,(1-r)*a))},n._renderHorizontal=function(){this._transform("horizontal")},n._renderVertical=function(){this._transform("vertical")},n._bindUI=function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},n._isElement=function(t,e){var n=this.get(e);return t===n||!!n.isGroup&&n.get("children").indexOf(t)>-1},n._getRange=function(t,e){var n=t+e;return(n=n>100?100:n)<0?0:n},n._limitRange=function(t,e,n){n[0]=this._getRange(t,n[0]),n[1]=n[0]+e,n[1]>100&&(n[1]=100,n[0]=n[1]-e)},n._updateStatus=function(t,e){var n=this.get("x"===t?"width":"height");t=r.upperFirst(t);var i=this.get("range"),a=this.get("page"+t),o=this.get("currentTarget"),s=this.get("rangeStash"),u="vertical"===this.get("layout")?-1:1,c=e["page"+t],l=(c-a)/n*100*u,f=this.get("minRange"),h=this.get("maxRange");i[1]<=i[0]?(this._isElement(o,"minHandleElement")||this._isElement(o,"maxHandleElement"))&&(i[0]=this._getRange(l,i[0]),i[1]=this._getRange(l,i[0])):(this._isElement(o,"minHandleElement")&&(i[0]=this._getRange(l,i[0]),f&&i[1]-i[0]<=f&&this._limitRange(l,f,i),h&&i[1]-i[0]>=h&&this._limitRange(l,h,i)),this._isElement(o,"maxHandleElement")&&(i[1]=this._getRange(l,i[1]),f&&i[1]-i[0]<=f&&this._limitRange(l,f,i),h&&i[1]-i[0]>=h&&this._limitRange(l,h,i))),this._isElement(o,"middleHandleElement")&&this._limitRange(l,s[1]-s[0],i),this.emit("sliderchange",{range:i}),this.set("page"+t,c),this._renderUI(),this.get("canvas").draw()},n._onMouseDown=function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},n._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=a.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=a.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=a.addEventListener(t,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},n._onCanvasMouseMove=function(t){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)},n._onCanvasMouseUp=function(){this._removeDocumentEvents()},n._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove(),this.onMouseLeaveListener.remove()},e}(i);t.exports=o},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i=n(0),a=n(171),o=n(377),s=n(378),u=["X","Y","XY"],c="X",l=function(t){function e(e,n){var a,o=r(r(a=t.call(this,e,n)||this));o.chart=n,o.type=o.type.toUpperCase();var l=o.data=n.get("data"),f=n.getYScales(),h=n.getXScale();f.push(h);var p=n.get("scaleController");return f.forEach(function(t){var e=t.field,n=p.defs[e]||{};o.limitRange[e]=s(l,t),o.originScaleDefsByField[e]=i.mix(n,{nice:!!n.nice}),o.stepByField[e]=t.isLinear?(t.max-t.min)*o.stepRatio:o.catStep}),-1===u.indexOf(o.type)&&(o.type=c),a}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{processEvent:"mousewheel",type:c,stepRatio:.05,stepByField:{},minScale:1,maxScale:4,catStep:2,limitRange:{},originScaleDefsByField:{}})},n._applyScale=function(t,e,n,r){void 0===n&&(n=0);var a=this,s=a.chart;if(t.isLinear){var u=t.field,c=a.stepByField[u]*e,l=t.min+c*n,f=t.max-c*(1-n);if(f>l){var h=o(s,u);s.scale(u,i.mix({},h,{nice:!1,min:l,max:f}))}}else{var p=t.field,d=t.values,g=a.chart,v=g.get("coord"),y=o(g,p),m=a.limitRange[p],x=m.length,b=x/a.maxScale,_=x/a.minScale,w=d.length,O=v.invertPoint(r).x,j=w-e*this.catStep,S=parseInt(j*O),M=j+S;if(e>0&&w>=b){var E=S,P=M;M>w&&(P=w-1,E=w-j);var C=d.slice(E,P);g.scale(p,i.mix({},y,{values:C}))}else if(e<0&&w<=_){var k=m.indexOf(d[0]),A=m.indexOf(d[w-1]),T=Math.max(0,k-S),I=Math.min(A+M,x),L=m.slice(T,I);g.scale(p,i.mix({},y,{values:L}))}}},n.process=function(t){var e=this,n=e.chart,r=e.type,i=n.get("coord"),a=t.deltaY,o=i.invertPoint(t);if(a){e.onZoom&&e.onZoom(a,o,e),a>0?e.onZoomin&&e.onZoomin(a,o,e):e.onZoomout&&e.onZoomout(a,o,e);var s=a/Math.abs(a);r.indexOf("X")>-1&&e._applyScale(n.getXScale(),s,o.x,t),r.indexOf("Y")>-1&&n.getYScales().forEach(function(n){e._applyScale(n,s,o.y,t)})}n.repaint()},n.reset=function(){var t=this.view,e=this.originScaleDefsByField,n=t.getYScales(),r=t.getXScale();n.push(r),n.forEach(function(n){if(n.isLinear){var r=n.field;t.scale(r,e[r])}}),t.repaint()},e}(a);t.exports=l}])}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DataSet=e():t.DataSet=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=287)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(154);n.d(e,"geoArea",function(){return r.c});var i=n(307);n.d(e,"geoBounds",function(){return i.a});var a=n(308);n.d(e,"geoCentroid",function(){return a.a});var o=n(155);n.d(e,"geoCircle",function(){return o.b});var s=n(91);n.d(e,"geoClipExtent",function(){return s.b});var u=n(327);n.d(e,"geoContains",function(){return u.a});var c=n(173);n.d(e,"geoDistance",function(){return c.a});var l=n(328);n.d(e,"geoGraticule",function(){return l.a}),n.d(e,"geoGraticule10",function(){return l.b});var f=n(329);n.d(e,"geoInterpolate",function(){return f.a});var h=n(174);n.d(e,"geoLength",function(){return h.a});var p=n(330);n.d(e,"geoPath",function(){return p.a});var d=n(176);n.d(e,"geoAlbers",function(){return d.a});var g=n(340);n.d(e,"geoAlbersUsa",function(){return g.a});var v=n(341);n.d(e,"geoAzimuthalEqualArea",function(){return v.b}),n.d(e,"geoAzimuthalEqualAreaRaw",function(){return v.a});var y=n(342);n.d(e,"geoAzimuthalEquidistant",function(){return y.b}),n.d(e,"geoAzimuthalEquidistantRaw",function(){return y.a});var m=n(343);n.d(e,"geoConicConformal",function(){return m.b}),n.d(e,"geoConicConformalRaw",function(){return m.a});var x=n(94);n.d(e,"geoConicEqualArea",function(){return x.b}),n.d(e,"geoConicEqualAreaRaw",function(){return x.a});var b=n(344);n.d(e,"geoConicEquidistant",function(){return b.b}),n.d(e,"geoConicEquidistantRaw",function(){return b.a});var _=n(178);n.d(e,"geoEquirectangular",function(){return _.a}),n.d(e,"geoEquirectangularRaw",function(){return _.b});var w=n(345);n.d(e,"geoGnomonic",function(){return w.a}),n.d(e,"geoGnomonicRaw",function(){return w.b});var O=n(346);n.d(e,"geoIdentity",function(){return O.a});var j=n(21);n.d(e,"geoProjection",function(){return j.a}),n.d(e,"geoProjectionMutator",function(){return j.b});var S=n(97);n.d(e,"geoMercator",function(){return S.a}),n.d(e,"geoMercatorRaw",function(){return S.c});var M=n(347);n.d(e,"geoOrthographic",function(){return M.a}),n.d(e,"geoOrthographicRaw",function(){return M.b});var E=n(348);n.d(e,"geoStereographic",function(){return E.a}),n.d(e,"geoStereographicRaw",function(){return E.b});var P=n(349);n.d(e,"geoTransverseMercator",function(){return P.a}),n.d(e,"geoTransverseMercatorRaw",function(){return P.b});var C=n(66);n.d(e,"geoRotation",function(){return C.a});var k=n(30);n.d(e,"geoStream",function(){return k.a});var A=n(67);n.d(e,"geoTransform",function(){return A.a})},function(t,e,n){"use strict";function r(t){return t>0?Math.sqrt(t):0}n.d(e,"a",function(){return i}),n.d(e,"f",function(){return a}),n.d(e,"g",function(){return o}),n.d(e,"h",function(){return s}),n.d(e,"m",function(){return u}),n.d(e,"n",function(){return c}),n.d(e,"p",function(){return l}),n.d(e,"q",function(){return f}),n.d(e,"r",function(){return h}),n.d(e,"t",function(){return p}),n.d(e,"w",function(){return d}),n.d(e,"x",function(){return g}),n.d(e,"y",function(){return v}),n.d(e,"F",function(){return y}),n.d(e,"k",function(){return m}),n.d(e,"l",function(){return x}),n.d(e,"s",function(){return b}),n.d(e,"o",function(){return _}),n.d(e,"u",function(){return w}),n.d(e,"C",function(){return O}),n.d(e,"D",function(){return j}),n.d(e,"E",function(){return S}),n.d(e,"H",function(){return M}),n.d(e,"j",function(){return E}),n.d(e,"v",function(){return P}),e.z=function(t){return t?t/Math.sin(t):1},e.e=function(t){return t>1?_:t<-1?-_:Math.asin(t)},e.b=function(t){return t>1?0:t<-1?b:Math.acos(t)},e.B=r,e.G=function(t){return((t=u(2*t))-1)/(t+1)},e.A=function(t){return(u(t)-u(-t))/2},e.i=function(t){return(u(t)+u(-t))/2},e.d=function(t){return l(t+r(t*t+1))},e.c=function(t){return l(t+r(t*t-1))};var i=Math.abs,a=Math.atan,o=Math.atan2,s=(Math,Math.cos),u=Math.exp,c=Math.floor,l=Math.log,f=Math.max,h=Math.min,p=Math.pow,d=Math.round,g=Math.sign||function(t){return t>0?1:t<0?-1:0},v=Math.sin,y=Math.tan,m=1e-6,x=1e-12,b=Math.PI,_=b/2,w=b/4,O=Math.SQRT1_2,j=r(2),S=r(b),M=2*b,E=180/b,P=b/180},function(t,e,n){var r=n(4),i=n(247),a=n(15),o=n(595),s=n(190),u=n(47),c=n(125),l=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{state:{}};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return r(i,{_onChangeTimer:null,DataSet:e,isDataSet:!0,views:{}},n),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._getUniqueViewName=function(){for(var t=o("view_");this.views[t];)t=o("view_");return t},e.prototype.createView=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;if(i(t)&&(t=n._getUniqueViewName()),a(t)&&(e=t,t=n._getUniqueViewName()),n.views[t])throw new Error("data view exists: "+t);var r=new u(n,e);return n.views[t]=r,r},e.prototype.getView=function(t){return this.views[t]},e.prototype.setView=function(t,e){this.views[t]=e},e.prototype.setState=function(t,e){var n=this;n.state[t]=e,n._onChangeTimer&&(clearTimeout(n._onChangeTimer),n._onChangeTimer=null),n._onChangeTimer=setTimeout(function(){n.emit("statechange",t,e)},16)},e}(s);r(l,{CONSTANTS:c,DataSet:l,DataView:u,View:u,connectors:{},transforms:{},registerConnector:function(t,e){l.connectors[t]=e},getConnector:function(t){return l.connectors[t]||l.connectors.default},registerTransform:function(t,e){l.transforms[t]=e},getTransform:function(t){return l.transforms[t]||l.transforms.default}},c),u.DataSet=l,r(l.prototype,{view:l.prototype.createView}),l.version="0.8.9",t.exports=l},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(61),i=n(41),a=n(295),o=n(24),s=n(64),u=n(11),c=Object.prototype.hasOwnProperty,l=a(function(t,e){if(s(e)||o(e))i(e,u(e),t);else for(var n in e)c.call(e,n)&&r(t,n,e[n])});t.exports=l},function(t,e,n){"use strict";n.d(e,"i",function(){return r}),n.d(e,"j",function(){return i}),n.d(e,"o",function(){return a}),n.d(e,"l",function(){return o}),n.d(e,"q",function(){return s}),n.d(e,"w",function(){return u}),n.d(e,"h",function(){return c}),n.d(e,"r",function(){return l}),n.d(e,"a",function(){return f}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return p}),n.d(e,"g",function(){return d}),n.d(e,"f",function(){return g}),n.d(e,"k",function(){return v}),n.d(e,"n",function(){return y}),n.d(e,"p",function(){return m}),n.d(e,"t",function(){return x}),n.d(e,"s",function(){return b}),n.d(e,"u",function(){return _}),n.d(e,"v",function(){return w}),e.b=function(t){return t>1?0:t<-1?a:Math.acos(t)},e.c=function(t){return t>1?o:t<-1?-o:Math.asin(t)},e.m=function(t){return(t=x(t/2))*t};var r=1e-6,i=1e-12,a=Math.PI,o=a/2,s=a/4,u=2*a,c=180/a,l=a/180,f=Math.abs,h=Math.atan,p=Math.atan2,d=Math.cos,g=Math.ceil,v=Math.exp,y=(Math,Math.log),m=Math.pow,x=Math.sin,b=Math.sign||function(t){return t>0?1:t<0?-1:0},_=Math.sqrt,w=Math.tan},function(t,e,n){"use strict";n.d(e,"i",function(){return r}),n.d(e,"j",function(){return i}),n.d(e,"o",function(){return a}),n.d(e,"l",function(){return o}),n.d(e,"q",function(){return s}),n.d(e,"w",function(){return u}),n.d(e,"h",function(){return c}),n.d(e,"r",function(){return l}),n.d(e,"a",function(){return f}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return p}),n.d(e,"g",function(){return d}),n.d(e,"f",function(){return g}),n.d(e,"k",function(){return v}),n.d(e,"n",function(){return y}),n.d(e,"p",function(){return m}),n.d(e,"t",function(){return x}),n.d(e,"s",function(){return b}),n.d(e,"u",function(){return _}),n.d(e,"v",function(){return w}),e.b=function(t){return t>1?0:t<-1?a:Math.acos(t)},e.c=function(t){return t>1?o:t<-1?-o:Math.asin(t)},e.m=function(t){return(t=x(t/2))*t};var r=1e-6,i=1e-12,a=Math.PI,o=a/2,s=a/4,u=2*a,c=180/a,l=a/180,f=Math.abs,h=Math.atan,p=Math.atan2,d=Math.cos,g=Math.ceil,v=Math.exp,y=(Math,Math.log),m=Math.pow,x=Math.sin,b=Math.sign||function(t){return t>0?1:t<0?-1:0},_=Math.sqrt,w=Math.tan},function(t,e,n){var r=n(3),i=n(9),a="Invalid fields: it must be an array!";t.exports={getField:function(t,e){var n=t.field,a=t.fields;if(i(n))return n;if(r(n))return console.warn("Invalid field: it must be a string!"),n[0];if(console.warn("Invalid field: it must be a string! will try to get fields instead."),i(a))return a;if(r(a)&&a.length)return a[0];if(e)return e;throw new TypeError("Invalid field: it must be a string!")},getFields:function(t,e){var n=t.field,o=t.fields;if(r(o))return o;if(i(o))return console.warn(a),[o];if(console.warn(a+" will try to get field instead."),i(n))return console.warn(a),[n];if(r(n)&&n.length)return console.warn(a),n;if(e)return e;throw new TypeError(a)}}},function(t,e,n){var r;try{r=n(262)}catch(t){}r||(r=window._),t.exports=r},function(t,e,n){var r=n(23),i=n(3),a=n(20);t.exports=function(t){return"string"==typeof t||!i(t)&&a(t)&&"[object String]"==r(t)}},function(t,e,n){"use strict";function r(t,e,n,r){var i;do{i=a.uniqueId(r)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function i(t){return a.max(a.map(t.nodes(),function(e){var n=t.node(e).rank;if(!a.isUndefined(n))return n}))}var a=n(8),o=n(17).Graph;t.exports={addDummyNode:r,simplify:function(t){var e=(new o).setGraph(t.graph());return a.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),a.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return a.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),a.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=a.map(t.nodes(),function(e){var n={};return a.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return a.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=a.map(t.nodes(),function(e){var n={};return a.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return a.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,u=t.width/2,c=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(o)*c?(s<0&&(c=-c),n=c*o/s,r=c):(o<0&&(u=-u),n=u,r=u*s/o),{x:i+n,y:a+r}},buildLayerMatrix:function(t){var e=a.map(a.range(i(t)+1),function(){return[]});return a.forEach(t.nodes(),function(n){var r=t.node(n),i=r.rank;a.isUndefined(i)||(e[i][r.order]=n)}),e},normalizeRanks:function(t){var e=a.minBy(a.map(t.nodes(),function(e){return t.node(e).rank}));a.forEach(t.nodes(),function(n){var r=t.node(n);a.has(r,"rank")&&(r.rank-=e)})},removeEmptyRanks:function(t){var e=a.minBy(a.map(t.nodes(),function(e){return t.node(e).rank})),n=[];a.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=t.graph().nodeRankFactor;a.forEach(n,function(e,n){a.isUndefined(e)&&n%i!=0?--r:r&&a.forEach(e,function(e){t.node(e).rank+=r})})},addBorderNode:function(t,e,n,i){var a={width:0,height:0};return arguments.length>=4&&(a.rank=n,a.order=i),r(t,"border",a,e)},maxRank:i,partition:function(t,e){var n={lhs:[],rhs:[]};return a.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=a.now();try{return e()}finally{console.log(t+" time: "+(a.now()-n)+"ms")}},notime:function(t,e){return e()}}},function(t,e,n){var r=n(151),i=n(305),a=n(24);t.exports=function(t){return a(t)?r(t):i(t)}},function(t,e,n){var r=n(212),i=n(213),a=n(105);t.exports=function(t,e){return null==t?t:r(t,i(e),a)}},function(t,e,n){var r=n(23),i=n(15);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r;try{r=n(262)}catch(t){}r||(r=window._),t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(160);n.d(e,"bisect",function(){return r.c}),n.d(e,"bisectRight",function(){return r.b}),n.d(e,"bisectLeft",function(){return r.a});var i=n(37);n.d(e,"ascending",function(){return i.a});var a=n(161);n.d(e,"bisector",function(){return a.a});var o=n(311);n.d(e,"cross",function(){return o.a});var s=n(312);n.d(e,"descending",function(){return s.a});var u=n(163);n.d(e,"deviation",function(){return u.a});var c=n(165);n.d(e,"extent",function(){return c.a});var l=n(313);n.d(e,"histogram",function(){return l.a});var f=n(316);n.d(e,"thresholdFreedmanDiaconis",function(){return f.a});var h=n(317);n.d(e,"thresholdScott",function(){return h.a});var p=n(169);n.d(e,"thresholdSturges",function(){return p.a});var d=n(318);n.d(e,"max",function(){return d.a});var g=n(319);n.d(e,"mean",function(){return g.a});var v=n(320);n.d(e,"median",function(){return v.a});var y=n(321);n.d(e,"merge",function(){return y.a});var m=n(170);n.d(e,"min",function(){return m.a});var x=n(162);n.d(e,"pairs",function(){return x.a});var b=n(322);n.d(e,"permute",function(){return b.a});var _=n(92);n.d(e,"quantile",function(){return _.a});var w=n(167);n.d(e,"range",function(){return w.a});var O=n(323);n.d(e,"scan",function(){return O.a});var j=n(324);n.d(e,"shuffle",function(){return j.a});var S=n(325);n.d(e,"sum",function(){return S.a});var M=n(168);n.d(e,"ticks",function(){return M.a}),n.d(e,"tickIncrement",function(){return M.b}),n.d(e,"tickStep",function(){return M.c});var E=n(171);n.d(e,"transpose",function(){return E.a});var P=n(164);n.d(e,"variance",function(){return P.a});var C=n(326);n.d(e,"zip",function(){return C.a})},function(t,e,n){var r;try{r=n(684)}catch(t){}r||(r=window.graphlib),t.exports=r},function(t,e,n){var r=n(145),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();t.exports=a},function(t,e,n){var r=n(3),i=n(13),a=n(9),o=n(540),s=n(546);t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],u=t;n&&n.length&&(u=s(t,n));var c=void 0;return i(e)?c=e:r(e)?c=function(t){return"_"+e.map(function(e){return t[e]}).join("-")}:a(e)&&(c=function(t){return"_"+t[e]}),o(u,c)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";function r(t){function e(t){return[(t=x(t[0]*c.r,t[1]*c.r))[0]*S+v,y-t[1]*S]}function n(t,e){return[(t=g(t,e))[0]*S+v,y-t[1]*S]}function r(){x=Object(s.a)(m=Object(l.b)(k,A,T),g);var t=g(P,C);return v=M-t[0]*S,y=E+t[1]*S,f()}function f(){return O=j=null,e}var g,v,y,m,x,b,_,w,O,j,S=150,M=480,E=250,P=0,C=0,k=0,A=0,T=0,I=null,L=i.a,R=null,D=u.a,F=.5,B=Object(p.a)(n,F);return e.stream=function(t){return O&&j===t?O:O=d(L(m,B(D(j=t))))},e.clipAngle=function(t){return arguments.length?(L=+t?Object(a.a)(I=t*c.r,6*c.r):(I=null,i.a),f()):I*c.h},e.clipExtent=function(t){return arguments.length?(D=null==t?(R=b=_=w=null,u.a):Object(o.a)(R=+t[0][0],b=+t[0][1],_=+t[1][0],w=+t[1][1]),f()):null==R?null:[[R,b],[_,w]]},e.scale=function(t){return arguments.length?(S=+t,r()):S},e.translate=function(t){return arguments.length?(M=+t[0],E=+t[1],r()):[M,E]},e.center=function(t){return arguments.length?(P=t[0]%360*c.r,C=t[1]%360*c.r,r()):[P*c.h,C*c.h]},e.rotate=function(t){return arguments.length?(k=t[0]%360*c.r,A=t[1]%360*c.r,T=t.length>2?t[2]%360*c.r:0,r()):[k*c.h,A*c.h,T*c.h]},e.precision=function(t){return arguments.length?(B=Object(p.a)(n,F=t*t),f()):Object(c.u)(F)},e.fitExtent=function(t,n){return Object(h.a)(e,t,n)},e.fitSize=function(t,n){return Object(h.b)(e,t,n)},function(){return g=t.apply(this,arguments),e.invert=g.invert&&function(t){return(t=x.invert((t[0]-v)/S,(y-t[1])/S))&&[t[0]*c.h,t[1]*c.h]},r()}}e.a=function(t){return r(function(){return t})()},e.b=r;var i=n(336),a=n(337),o=n(91),s=n(156),u=n(93),c=n(5),l=n(66),f=n(67),h=n(96),p=n(338),d=Object(f.b)({point:function(t,e){this.stream.point(t*c.r,e*c.r)}})},function(t,e,n){"use strict";function r(t){function e(t){return[(t=x(t[0]*c.r,t[1]*c.r))[0]*S+v,y-t[1]*S]}function n(t,e){return[(t=g(t,e))[0]*S+v,y-t[1]*S]}function r(){x=Object(s.a)(m=Object(l.b)(k,A,T),g);var t=g(P,C);return v=M-t[0]*S,y=E+t[1]*S,f()}function f(){return O=j=null,e}var g,v,y,m,x,b,_,w,O,j,S=150,M=480,E=250,P=0,C=0,k=0,A=0,T=0,I=null,L=i.a,R=null,D=u.a,F=.5,B=Object(p.a)(n,F);return e.stream=function(t){return O&&j===t?O:O=d(L(m,B(D(j=t))))},e.clipAngle=function(t){return arguments.length?(L=+t?Object(a.a)(I=t*c.r,6*c.r):(I=null,i.a),f()):I*c.h},e.clipExtent=function(t){return arguments.length?(D=null==t?(R=b=_=w=null,u.a):Object(o.a)(R=+t[0][0],b=+t[0][1],_=+t[1][0],w=+t[1][1]),f()):null==R?null:[[R,b],[_,w]]},e.scale=function(t){return arguments.length?(S=+t,r()):S},e.translate=function(t){return arguments.length?(M=+t[0],E=+t[1],r()):[M,E]},e.center=function(t){return arguments.length?(P=t[0]%360*c.r,C=t[1]%360*c.r,r()):[P*c.h,C*c.h]},e.rotate=function(t){return arguments.length?(k=t[0]%360*c.r,A=t[1]%360*c.r,T=t.length>2?t[2]%360*c.r:0,r()):[k*c.h,A*c.h,T*c.h]},e.precision=function(t){return arguments.length?(B=Object(p.a)(n,F=t*t),f()):Object(c.u)(F)},e.fitExtent=Object(h.a)(e),e.fitSize=Object(h.b)(e),function(){return g=t.apply(this,arguments),e.invert=g.invert&&function(t){return(t=x.invert((t[0]-v)/S,(y-t[1])/S))&&[t[0]*c.h,t[1]*c.h]},r()}}e.a=function(t){return r(function(){return t})()},e.b=r;var i=n(523),a=n(525),o=n(218),s=n(217),u=n(223),c=n(6),l=n(114),f=n(117),h=n(227),p=n(526),d=Object(f.b)({point:function(t,e){this.stream.point(t*c.r,e*c.r)}})},function(t,e,n){var r=n(35),i=n(290),a=n(291),o=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):a(t)}},function(t,e,n){var r=n(13),i=n(87);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";function r(t,e){var n,r=t*Object(o.y)(e),i=30;do{e-=n=(e+Object(o.y)(e)-r)/(1+Object(o.h)(e))}while(Object(o.a)(n)>o.k&&--i>0);return e/2}function i(t,e,n){function i(i,a){return[t*i*Object(o.h)(a=r(n,a)),e*Object(o.y)(a)]}return i.invert=function(r,i){return i=Object(o.e)(i/e),[r/(t*Object(o.h)(i)),Object(o.e)((2*i+Object(o.y)(2*i))/n)]},i}e.c=r,e.b=i,n.d(e,"d",function(){return s});var a=n(0),o=n(1),s=i(o.D/o.o,o.D,o.s);e.a=function(){return Object(a.geoProjection)(s).scale(169.529)}},function(t,e,n){"use strict";var r=t.exports={};r.linearRegression=n(548),r.linearRegressionLine=n(549),r.standardDeviation=n(230),r.rSquared=n(550),r.mode=n(551),r.modeFast=n(552),r.modeSorted=n(234),r.min=n(235),r.max=n(236),r.minSorted=n(553),r.maxSorted=n(554),r.sum=n(232),r.sumSimple=n(555),r.product=n(556),r.quantile=n(122),r.quantileSorted=n(123),r.interquartileRange=r.iqr=n(558),r.medianAbsoluteDeviation=r.mad=n(559),r.chunk=n(560),r.sampleWithReplacement=n(561),r.shuffle=n(238),r.shuffleInPlace=n(239),r.sample=n(562),r.ckmeans=n(563),r.uniqueCountSorted=n(240),r.sumNthPowerDeviations=n(121),r.equalIntervalBreaks=n(564),r.sampleCovariance=n(241),r.sampleCorrelation=n(565),r.sampleVariance=n(124),r.sampleStandardDeviation=n(242),r.sampleSkewness=n(566),r.sampleKurtosis=n(567),r.permutationsHeap=n(568),r.combinations=n(569),r.combinationsReplacement=n(570),r.addToMean=n(571),r.combineMeans=n(243),r.combineVariances=n(572),r.geometricMean=n(573),r.harmonicMean=n(574),r.mean=r.average=n(28),r.median=n(237),r.medianSorted=n(575),r.subtractFromMean=n(576),r.rootMeanSquare=r.rms=n(577),r.variance=n(231),r.tTest=n(578),r.tTestTwoSample=n(579),r.BayesianClassifier=r.bayesian=n(580),r.PerceptronModel=r.perceptron=n(581),r.epsilon=n(78),r.factorial=n(582),r.bernoulliDistribution=n(583),r.binomialDistribution=n(584),r.poissonDistribution=n(585),r.chiSquaredGoodnessOfFit=n(586),r.zScore=n(588),r.cumulativeStdNormalProbability=n(589),r.standardNormalTable=n(244),r.errorFunction=r.erf=n(590),r.inverseErrorFunction=n(245),r.probit=n(591),r.bisect=n(592)},function(t,e,n){"use strict";var r=n(232);t.exports=function(t){if(0===t.length)throw new Error("mean requires at least one data point");return r(t)/t.length}},function(t,e,n){var r=n(289),i=n(294);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){"use strict";function r(t,e){t&&s.hasOwnProperty(t.type)&&s[t.type](t,e)}function i(t,e,n){var r,i=-1,a=t.length-n;for(e.lineStart();++i<a;)e.point((r=t[i])[0],r[1],r[2]);e.lineEnd()}function a(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)i(t[n],e,1);e.polygonEnd()}var o={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,a=n.length;++i<a;)r(n[i].geometry,e)}},s={Sphere:function(t,e){e.sphere()},Point:function(t,e){e.point((t=t.coordinates)[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)e.point((t=n[r])[0],t[1],t[2])},LineString:function(t,e){i(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,a=n.length;++r<a;)i(n[r],e,0)},Polygon:function(t,e){a(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)a(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,a=n.length;++i<a;)r(n[i],e)}};e.a=function(t,e){t&&o.hasOwnProperty(t.type)?o[t.type](t,e):r(t,e)}},function(t,e,n){"use strict";function r(t,e){return Object(s.a)(t[0]-e[0])<s.k&&Object(s.a)(t[1]-e[1])<s.k}function i(t,e){for(var n,r,i,a=-1,o=t.length,s=t[0],u=[];++a<o;){r=((n=t[a])[0]-s[0])/e,i=(n[1]-s[1])/e;for(var c=0;c<e;++c)u.push([s[0]+c*r,s[1]+c*i]);s=n}return u.push(n),u}var a=n(16),o=n(0),s=n(1);e.a=function(t,e){function n(n,r){for(var i=r<0?-1:1,a=e[+(r<0)],o=0,s=a.length-1;o<s&&n>a[o][2][0];++o);var u=t(n-a[o][1][0],r);return u[0]+=t(a[o][1][0],i*r>i*a[o][0][1]?a[o][0][1]:r)[0],u}var u=function(t){var e,n,r,o,u,c=[],l=t[0].length;for(u=0;u<l;++u)n=(e=t[0][u])[0][0],c.push(i([[n+s.k,e[0][1]+s.k],[n+s.k,(r=e[1][1])-s.k],[(o=e[2][0])-s.k,r-s.k],[o-s.k,e[2][1]+s.k]],30));for(u=t[1].length-1;u>=0;--u)n=(e=t[1][u])[0][0],c.push(i([[(o=e[2][0])-s.k,e[2][1]-s.k],[o-s.k,(r=e[1][1])+s.k],[n+s.k,r+s.k],[n+s.k,e[0][1]-s.k]],30));return{type:"Polygon",coordinates:[Object(a.merge)(c)]}}(e),c=(e=e.map(function(t){return t.map(function(t){return[[t[0][0]*s.v,t[0][1]*s.v],[t[1][0]*s.v,t[1][1]*s.v],[t[2][0]*s.v,t[2][1]*s.v]]})})).map(function(e){return e.map(function(e){var n,r=t(e[0][0],e[0][1])[0],i=t(e[2][0],e[2][1])[0],a=t(e[1][0],e[0][1])[1],o=t(e[1][0],e[1][1])[1];return a>o&&(n=a,a=o,o=n),[[r,a],[i,o]]})});t.invert&&(n.invert=function(i,a){for(var o=c[+(a<0)],s=e[+(a<0)],u=0,l=o.length;u<l;++u){var f=o[u];if(f[0][0]<=i&&i<f[1][0]&&f[0][1]<=a&&a<f[1][1]){var h=t.invert(i-t(s[u][1][0],0)[0],a);return h[0]+=s[u][1][0],r(n(h[0],h[1]),[i,a])?h:null}}});var l=Object(o.geoProjection)(n),f=l.stream;return l.stream=function(t){var e=l.rotate(),n=f(t),r=(l.rotate([0,0]),f(t));return l.rotate(e),n.sphere=function(){Object(o.geoStream)(u,r)},n},l}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";function r(t,e){t&&s.hasOwnProperty(t.type)&&s[t.type](t,e)}function i(t,e,n){var r,i=-1,a=t.length-n;for(e.lineStart();++i<a;)e.point((r=t[i])[0],r[1],r[2]);e.lineEnd()}function a(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)i(t[n],e,1);e.polygonEnd()}var o={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,a=n.length;++i<a;)r(n[i].geometry,e)}},s={Sphere:function(t,e){e.sphere()},Point:function(t,e){e.point((t=t.coordinates)[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)e.point((t=n[r])[0],t[1],t[2])},LineString:function(t,e){i(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,a=n.length;++r<a;)i(n[r],e,0)},Polygon:function(t,e){a(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)a(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,a=n.length;++i<a;)r(n[i],e)}};e.a=function(t,e){t&&o.hasOwnProperty(t.type)?o[t.type](t,e):r(t,e)}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){var r=n(18).Symbol;t.exports=r},function(t,e,n){"use strict";function r(){this.reset()}function i(t,e,n){var r=t.s=e+n,i=r-e;t.t=e-(r-i)+(n-i)}e.a=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){i(a,t,this.t),i(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new r},function(t,e,n){"use strict";e.a=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}},function(t,e,n){"use strict";var r=n(0),i=n(1);e.a=function(t){var e=0,n=Object(r.geoProjectionMutator)(t),a=n(e);return a.parallel=function(t){return arguments.length?n(e=t*i.v):e*i.j},a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(536);n.d(e,"path",function(){return r.a})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(608);n.d(e,"cluster",function(){return r.a});var i=n(127);n.d(e,"hierarchy",function(){return i.c});var a=n(620);n.d(e,"pack",function(){return a.a});var o=n(250);n.d(e,"packSiblings",function(){return o.a});var s=n(251);n.d(e,"packEnclose",function(){return s.a});var u=n(622);n.d(e,"partition",function(){return u.a});var c=n(623);n.d(e,"stratify",function(){return c.a});var l=n(624);n.d(e,"tree",function(){return l.a});var f=n(625);n.d(e,"treemap",function(){return f.a});var h=n(626);n.d(e,"treemapBinary",function(){return h.a});var p=n(56);n.d(e,"treemapDice",function(){return p.a});var d=n(79);n.d(e,"treemapSlice",function(){return d.a});var g=n(627);n.d(e,"treemapSliceDice",function(){return g.a});var v=n(129);n.d(e,"treemapSquarify",function(){return v.a});var y=n(628);n.d(e,"treemapResquarify",function(){return y.a})},function(t,e,n){var r=n(61),i=n(85);t.exports=function(t,e,n,a){var o=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=a?a(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),o?i(n,c,l):r(n,c,l)}return n}},function(t,e){t.exports=function(t){return t}},function(t,e,n){"use strict";e.g=function(t){return[Object(r.e)(t[1],t[0]),Object(r.c)(t[2])]},e.a=function(t){var e=t[0],n=t[1],i=Object(r.g)(n);return[i*Object(r.g)(e),i*Object(r.t)(e),Object(r.t)(n)]},e.d=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},e.c=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]},e.b=function(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]},e.f=function(t,e){return[t[0]*e,t[1]*e,t[2]*e]},e.e=function(t){var e=Object(r.u)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e};var r=n(5)},function(t,e,n){"use strict";e.a=function(t){return null===t?NaN:+t}},function(t,e,n){"use strict";e.b=function(t){return function(e,n){var i=Object(r.g)(e),a=Object(r.g)(n),o=t(i*a);return[o*a*Object(r.t)(e),o*Object(r.t)(n)]}},e.a=function(t){return function(e,n){var i=Object(r.u)(e*e+n*n),a=t(i),o=Object(r.t)(a),s=Object(r.g)(a);return[Object(r.e)(e*o,i*s),Object(r.c)(i&&n*o/i)]}};var r=n(5)},function(t,e,n){"use strict";function r(t,e){return[t*Object(a.h)(e),e]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){return[t/Object(a.h)(e),e]},e.a=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,e,n){var r=n(190),i=n(4),a=n(430),o=n(75),s=n(478),u=n(12),c=n(3),l=n(502),f=n(15),h=n(9),p=n(11),d=n(52),g=function(t){function e(n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this)),o=a;if(r=r||{},(n=n||{}).isDataSet||(r=n,n=null),i(o,{dataSet:n,loose:!n,dataType:"table",isView:!0,isDataView:!0,origin:[],rows:[],transforms:[],watchingStates:null},r),!o.loose){var s=o.watchingStates;n.on("statechange",function(t){c(s)?s.indexOf(t)>-1&&o._reExecute():o._reExecute()})}return a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._parseStateExpression=function(t){var e=this.dataSet,n=/^\$state\.(\w+)/.exec(t);return n?e.state[n[1]]:t},e.prototype._preparseOptions=function(t){var e=this,n=a(t);return e.loose?n:(u(n,function(t,r){h(t)&&/^\$state\./.test(t)&&(n[r]=e._parseStateExpression(t))}),n)},e.prototype._prepareSource=function(t,n){var r=this,i=e.DataSet;if(r._source={source:t,options:n},n)n=r._preparseOptions(n),r.origin=i.getConnector(n.type)(t,n,r);else if(t instanceof e||h(t))r.origin=i.getConnector("default")(t,r.dataSet);else if(c(t))r.origin=t;else{if(!f(t)||!t.type)throw new TypeError("Invalid source");n=r._preparseOptions(t),r.origin=i.getConnector(n.type)(n,r)}return r.rows=o(r.origin),r},e.prototype.source=function(t,e){return this._prepareSource(t,e),this._reExecuteTransforms(),this.trigger("change"),this},e.prototype.transform=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.transforms.push(t),this._executeTransform(t),this},e.prototype._executeTransform=function(t){t=this._preparseOptions(t),e.DataSet.getTransform(t.type)(this,t)},e.prototype._reExecuteTransforms=function(){var t=this;t.transforms.forEach(function(e){t._executeTransform(e)})},e.prototype.addRow=function(t){this.rows.push(t)},e.prototype.removeRow=function(t){this.rows.splice(t,1)},e.prototype.updateRow=function(t,e){i(this.rows[t],e)},e.prototype.findRows=function(t){return this.rows.filter(function(e){return l(e,t)})},e.prototype.findRow=function(t){return s(this.rows,t)},e.prototype.getColumnNames=function(){var t=this.rows[0];return t?p(t):[]},e.prototype.getColumnName=function(t){return this.getColumnNames()[t]},e.prototype.getColumnIndex=function(t){return this.getColumnNames().indexOf(t)},e.prototype.getColumn=function(t){return this.rows.map(function(e){return e[t]})},e.prototype.getColumnData=function(t){return this.getColumn(t)},e.prototype.getSubset=function(t,e,n){for(var r=[],i=t;i<=e;i++)r.push(d(this.rows[i],n));return r},e.prototype.toString=function(t){return t?JSON.stringify(this.rows,null,2):JSON.stringify(this.rows)},e.prototype._reExecute=function(){var t=this._source;this._prepareSource(t.source,t.options),this._reExecuteTransforms(),this.trigger("change")},e}(r);t.exports=g},function(t,e,n){var r=n(480),i=n(487),a=n(42),o=n(3),s=n(494);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?o(t)?i(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(23),i=n(20);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(49);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var r=n(503),i=n(506)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},function(t,e,n){"use strict";function r(){this.reset()}function i(t,e,n){var r=t.s=e+n,i=r-e;t.t=e-(r-i)+(n-i)}e.a=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){i(a,t,this.t),i(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new r},function(t,e,n){"use strict";e.g=function(t){return[Object(r.e)(t[1],t[0]),Object(r.c)(t[2])]},e.a=function(t){var e=t[0],n=t[1],i=Object(r.g)(n);return[i*Object(r.g)(e),i*Object(r.t)(e),Object(r.t)(n)]},e.d=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},e.c=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]},e.b=function(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]},e.f=function(t,e){return[t[0]*e,t[1]*e,t[2]*e]},e.e=function(t){var e=Object(r.u)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e};var r=n(6)},function(t,e,n){"use strict";e.b=function(t){return function(e,n){var i=Object(r.g)(e),a=Object(r.g)(n),o=t(i*a);return[o*a*Object(r.t)(e),o*Object(r.t)(n)]}},e.a=function(t){return function(e,n){var i=Object(r.u)(e*e+n*n),a=t(i),o=Object(r.t)(a),s=Object(r.g)(a);return[Object(r.e)(e*o,i*s),Object(r.c)(i&&n*o/i)]}};var r=n(6)},function(t,e,n){"use strict";e.a=function(t,e,n,r,i){for(var a,o=t.children,s=-1,u=o.length,c=t.value&&(r-e)/t.value;++s<u;)(a=o[s]).y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*c}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"d",function(){return i}),n.d(e,"e",function(){return a}),n.d(e,"h",function(){return o}),n.d(e,"i",function(){return s}),n.d(e,"k",function(){return u}),n.d(e,"l",function(){return c}),n.d(e,"f",function(){return l}),n.d(e,"j",function(){return f}),n.d(e,"g",function(){return h}),n.d(e,"m",function(){return p}),e.b=function(t){return t>1?0:t<-1?f:Math.acos(t)},e.c=function(t){return t>=1?h:t<=-1?-h:Math.asin(t)};var r=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,u=Math.sin,c=Math.sqrt,l=1e-12,f=Math.PI,h=f/2,p=2*f},function(t,e,n){"use strict";e.a=function(t,e){if((i=t.length)>1)for(var n,r,i,a=1,o=t[e[0]],s=o.length;a<i;++a)for(r=o,o=t[e[a]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}},function(t,e,n){"use strict";e.a=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}},function(t,e,n){"use strict";function r(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function i(t,e){return e[1]-t[1]||e[0]-t[0]}function a(t,e){var n,r,a,g=t.sort(i).pop();for(c=[],s=new Array(t.length),o=new d.b,u=new d.b;;)if(a=h.c,g&&(!a||g[1]<a.y||g[1]===a.y&&g[0]<a.x))g[0]===n&&g[1]===r||(Object(l.a)(g),n=g[0],r=g[1]),g=t.pop();else{if(!a)break;Object(l.b)(a.arc)}if(Object(f.d)(),e){var v=+e[0][0],y=+e[0][1],m=+e[1][0],x=+e[1][1];Object(p.a)(v,y,m,x),Object(f.b)(v,y,m,x)}this.edges=c,this.cells=s,o=u=c=s=null}n.d(e,"f",function(){return g}),n.d(e,"g",function(){return v}),n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return u}),n.d(e,"e",function(){return c}),e.d=a;var o,s,u,c,l=n(762),f=n(284),h=n(285),p=n(142),d=n(141),g=1e-6,v=1e-12;a.prototype={constructor:a,polygons:function(){var t=this.edges;return this.cells.map(function(e){var n=e.halfedges.map(function(n){return Object(f.a)(e,t[n])});return n.data=e.site.data,n})},triangles:function(){var t=[],e=this.edges;return this.cells.forEach(function(n,i){if(o=(a=n.halfedges).length)for(var a,o,s,u=n.site,c=-1,l=e[a[o-1]],f=l.left===u?l.right:l.left;++c<o;)s=f,f=(l=e[a[c]]).left===u?l.right:l.left,s&&f&&i<s.index&&i<f.index&&r(u,s,f)<0&&t.push([u.data,s.data,f.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,e,n){for(var r,i,a=this,o=a._found||0,s=a.cells.length;!(i=a.cells[o]);)if(++o>=s)return null;var u=t-i.site[0],c=e-i.site[1],l=u*u+c*c;do{i=a.cells[r=o],o=null,i.halfedges.forEach(function(n){var r=a.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var u=t-s[0],c=e-s[1],f=u*u+c*c;f<l&&(l=f,o=s.index)}})}while(null!==o);return a._found=r,null==n||l<=n*n?i.site:null}}},function(t,e,n){var r=n(85),i=n(62),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var o=t[e];a.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){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,e,n){"use strict";function r(t,e){return[t>c.o?t-c.w:t<-c.o?t+c.w:t,e]}function i(t,e,n){return(t%=c.w)?e||n?Object(u.a)(o(t),s(e,n)):o(t):e||n?s(e,n):r}function a(t){return function(e,n){return[(e+=t)>c.o?e-c.w:e<-c.o?e+c.w:e,n]}}function o(t){var e=a(t);return e.invert=a(-t),e}function s(t,e){function n(t,e){var n=Object(c.g)(e),s=Object(c.g)(t)*n,u=Object(c.t)(t)*n,l=Object(c.t)(e),f=l*r+s*i;return[Object(c.e)(u*a-f*o,s*r-l*i),Object(c.c)(f*a+u*o)]}var r=Object(c.g)(t),i=Object(c.t)(t),a=Object(c.g)(e),o=Object(c.t)(e);return n.invert=function(t,e){var n=Object(c.g)(e),s=Object(c.g)(t)*n,u=Object(c.t)(t)*n,l=Object(c.t)(e),f=l*a-u*o;return[Object(c.e)(u*a+l*o,s*r+f*i),Object(c.c)(f*r-s*i)]},n}e.b=i;var u=n(156),c=n(5);r.invert=r,e.a=function(t){function e(e){return(e=t(e[0]*c.r,e[1]*c.r))[0]*=c.h,e[1]*=c.h,e}return t=i(t[0]*c.r,t[1]*c.r,t.length>2?t[2]*c.r:0),e.invert=function(e){return(e=t.invert(e[0]*c.r,e[1]*c.r))[0]*=c.h,e[1]*=c.h,e},e}},function(t,e,n){"use strict";function r(t){return function(e){var n=new i;for(var r in t)n[r]=t[r];return n.stream=e,n}}function i(){}e.b=r,e.a=function(t){return{stream:r(t)}},i.prototype={constructor:i,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(t,e,n){"use strict";var r=n(1);e.a=function(t,e,n,i,a,o,s,u){function c(c,l){if(!l)return[t*c/r.s,0];var f=l*l,h=t+f*(e+f*(n+f*i)),p=l*(a-1+f*(o-u+f*s)),d=(h*h+p*p)/(2*p),g=c*Object(r.e)(h/d)/r.s;return[d*Object(r.y)(g),l*(1+f*u)+d*(1-Object(r.h)(g))]}return arguments.length<8&&(u=0),c.invert=function(c,l){var f,h,p=r.s*c/t,d=l,g=50;do{var v=d*d,y=t+v*(e+v*(n+v*i)),m=d*(a-1+v*(o-u+v*s)),x=y*y+m*m,b=2*m,_=x/b,w=_*_,O=Object(r.e)(y/_)/r.s,j=p*O,S=y*y,M=(2*e+v*(4*n+6*v*i))*d,E=a+v*(3*o+5*v*s),P=(2*(y*M+m*(E-1))*b-x*(2*(E-1)))/(b*b),C=Object(r.h)(j),k=Object(r.y)(j),A=_*C,T=_*k,I=p/r.s*(1/Object(r.B)(1-S/w))*(M*_-y*P)/w,L=T-c,R=d*(1+v*u)+_-A-l,D=P*k+A*I,F=A*O,B=1+P-(P*C-T*I),N=T*O,z=D*N-B*F;if(!z)break;p-=f=(R*D-L*B)/z,d-=h=(L*N-R*F)/z}while((Object(r.a)(f)>r.k||Object(r.a)(h)>r.k)&&--g>0);return[p,d]},c}},function(t,e,n){"use strict";function r(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}function i(t){return t.project.invert||t.children&&t.children.some(i)}var a=n(0),o=n(1),s=n(404);e.a=function(t,e,n){function u(t,n){var r,i=e(t,n),a=i.project([t*o.j,n*o.j]);return(r=i.transform)?[r[0]*a[0]+r[1]*a[1]+r[2],-(r[3]*a[0]+r[4]*a[1]+r[5])]:(a[1]=-a[1],a)}function c(t,n){var r=t.project.invert,i=t.transform,a=n;if(i&&(a=[(i=Object(s.b)(i))[0]*a[0]+i[1]*a[1]+i[2],i[3]*a[0]+i[4]*a[1]+i[5]]),r&&t===function(t){return e(t[0]*o.v,t[1]*o.v)}(u=r(a)))return u;for(var u,l=t.children,f=0,h=l&&l.length;f<h;++f)if(u=c(l[f],n))return u}n=null==n?-o.s/6:n,function t(e,n){if(e.edges=function(t){for(var e=t.length,n=[],r=t[e-1],i=0;i<e;++i)n.push([r,r=t[i]]);return n}(e.face),n.face){var i=e.shared=function(t,e){for(var n,r,i=t.length,a=null,o=0;o<i;++o){n=t[o];for(var s=e.length;--s>=0;)if(n[0]===(r=e[s])[0]&&n[1]===r[1]){if(a)return[a,n];a=n}}}(e.face,n.face),a=Object(s.a)(i.map(n.project),i.map(e.project));e.transform=n.transform?Object(s.c)(n.transform,a):a;for(var o=n.edges,u=0,c=o.length;u<c;++u)r(i[0],o[u][1])&&r(i[1],o[u][0])&&(o[u]=e),r(i[0],o[u][0])&&r(i[1],o[u][1])&&(o[u]=e);for(u=0,c=(o=e.edges).length;u<c;++u)r(i[0],o[u][0])&&r(i[1],o[u][1])&&(o[u]=n),r(i[0],o[u][1])&&r(i[1],o[u][0])&&(o[u]=n)}else e.transform=n.transform;return e.children&&e.children.forEach(function(n){t(n,e)}),e}(t,{transform:[Object(o.h)(n),Object(o.y)(n),0,-Object(o.y)(n),Object(o.h)(n),0]}),i(t)&&(u.invert=function(e,n){var r=c(t,[e,-n]);return r&&(r[0]*=o.v,r[1]*=o.v,r)});var l=Object(a.geoProjection)(u),f=l.stream;return l.stream=function(e){var n=l.rotate(),r=f(e),i=(l.rotate([0,0]),f(e));return l.rotate(n),r.sphere=function(){i.polygonStart(),i.lineStart(),function t(e,n,r){var i,s,u=n.edges,c=u.length,l={type:"MultiPoint",coordinates:n.face},f=n.face.filter(function(t){return 90!==Object(o.a)(t[1])}),h=Object(a.geoBounds)({type:"MultiPoint",coordinates:f}),p=!1,d=-1,g=h[1][0]-h[0][0],v=180===g||360===g?[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]:Object(a.geoCentroid)(l);if(r)for(;++d<c&&u[d]!==r;);++d;for(var y=0;y<c;++y)s=u[(y+d)%c],Array.isArray(s)?(p||(e.point((i=Object(a.geoInterpolate)(s[0],v)(o.k))[0],i[1]),p=!0),e.point((i=Object(a.geoInterpolate)(s[1],v)(o.k))[0],i[1])):(p=!1,s!==r&&t(e,s,n))}(i,t),i.lineEnd(),i.polygonEnd()},r},l}},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(431),a=n(432),o=n(433),s=n(434),u=n(435);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=o,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){var r=n(62);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(29)(Object,"create");t.exports=r},function(t,e,n){var r=n(449);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var r=n(191);t.exports=function(t){return r(t,5)}},function(t,e,n){var r=n(3),i=n(113),a=n(489),o=n(208);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:a(o(t))}},function(t,e,n){var r=n(107),i=n(508);t.exports=function t(e,n,a,o,s){var u=-1,c=e.length;for(a||(a=i),s||(s=[]);++u<c;){var l=e[u];n>0&&a(l)?n>1?t(l,n-1,a,o,s):r(s,l):o||(s[s.length]=l)}return s}},function(t,e,n){"use strict";t.exports=1e-4},function(t,e,n){"use strict";e.a=function(t,e,n,r,i){for(var a,o=t.children,s=-1,u=o.length,c=t.value&&(i-n)/t.value;++s<u;)(a=o[s]).x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*c}},function(t,e,n){"use strict";var r=n(8);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(i){var a=t.node(i);if(r.has(e,i))return a.rank;e[i]=!0;var o=r.minBy(r.map(t.outEdges(i),function(e){return n(e.w)-t.edge(e).minlen}));return o!==Number.POSITIVE_INFINITY&&void 0!==o&&null!==o||(o=0),a.rank=o})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},function(t,e,n){"use strict";function r(t){this._context=t}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function i(t){this._context=t}e.b=r,e.a=i,i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function i(t,e){this._context=t,this._k=(1-e)/6}e.b=r,e.a=i,i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:r(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new i(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){var r=n(144);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(42),i=n(148),a=n(149);t.exports=function(t,e){return a(i(t,e,r),t+"")}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(301),i=n(20),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&o.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){(function(t){var r=n(18),i=n(302),a="object"==typeof e&&e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===a?r.Buffer:void 0;t.exports=(s?s.isBuffer:void 0)||i}).call(e,n(65)(t))},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){"use strict";function r(t,e,n,r){function f(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function h(i,a,o,s){var u=0,c=0;if(null==i||(u=p(i,o))!==(c=p(a,o))||g(i,a)<0^o>0)do{s.point(0===u||3===u?t:n,u>1?r:e)}while((u=(u+o+4)%4)!==c);else s.point(a[0],a[1])}function p(r,a){return Object(i.a)(r[0]-t)<i.i?a>0?0:3:Object(i.a)(r[0]-n)<i.i?a>0?2:1:Object(i.a)(r[1]-e)<i.i?a>0?1:0:a>0?3:2}function d(t,e){return g(t.x,e.x)}function g(t,e){var n=p(t,1),r=p(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(i){function p(t,e){f(t,e)&&E.point(t,e)}function g(i,a){var s=f(i,a);if(y&&m.push([i,a]),S)x=i,b=a,_=s,S=!1,s&&(E.lineStart(),E.point(i,a));else if(s&&j)E.point(i,a);else{var u=[w=Math.max(l,Math.min(c,w)),O=Math.max(l,Math.min(c,O))],h=[i=Math.max(l,Math.min(c,i)),a=Math.max(l,Math.min(c,a))];Object(o.a)(u,h,t,e,n,r)?(j||(E.lineStart(),E.point(u[0],u[1])),E.point(h[0],h[1]),s||E.lineEnd(),M=!1):s&&(E.lineStart(),E.point(i,a),M=!1)}w=i,O=a,j=s}var v,y,m,x,b,_,w,O,j,S,M,E=i,P=Object(a.a)(),C={point:p,lineStart:function(){C.point=g,y&&y.push(m=[]),S=!0,j=!1,w=O=NaN},lineEnd:function(){v&&(g(x,b),_&&j&&P.rejoin(),v.push(P.result())),C.point=p,j&&E.lineEnd()},polygonStart:function(){E=P,v=[],y=[],M=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=y.length;n<i;++n)for(var a,o,s=y[n],u=1,c=s.length,l=s[0],f=l[0],h=l[1];u<c;++u)a=f,o=h,f=(l=s[u])[0],h=l[1],o<=r?h>r&&(f-a)*(r-o)>(h-o)*(t-a)&&++e:h<=r&&(f-a)*(r-o)<(h-o)*(t-a)&&--e;return e}(),n=M&&e,a=(v=Object(u.merge)(v)).length;(n||a)&&(i.polygonStart(),n&&(i.lineStart(),h(null,null,1,i),i.lineEnd()),a&&Object(s.a)(v,d,e,h,i),i.polygonEnd()),E=i,v=y=m=null}};return C}}e.a=r;var i=n(5),a=n(157),o=n(310),s=n(158),u=n(16),c=1e9,l=-c;e.b=function(){var t,e,n,i=0,a=0,o=960,s=500;return n={stream:function(n){return t&&e===n?t:t=r(i,a,o,s)(e=n)},extent:function(r){return arguments.length?(i=+r[0][0],a=+r[0][1],o=+r[1][0],s=+r[1][1],t=e=null,n):[[i,a],[o,s]]}}}},function(t,e,n){"use strict";var r=n(44);e.a=function(t,e,n){if(null==n&&(n=r.a),i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,a=(i-1)*e,o=Math.floor(a),s=+n(t[o],o,t);return s+(+n(t[o+1],o+1,t)-s)*(a-o)}}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";function r(t,e){function n(t,e){var n=Object(i.u)(s-2*a*Object(i.t)(e))/a;return[n*Object(i.t)(t*=a),u-n*Object(i.g)(t)]}var r=Object(i.t)(t),a=(r+Object(i.t)(e))/2;if(Object(i.a)(a)<i.i)return Object(o.a)(t);var s=1+r*(2*a-r),u=Object(i.u)(s)/a;return n.invert=function(t,e){var n=u-e;return[Object(i.e)(t,Object(i.a)(n))/a*Object(i.s)(n),Object(i.c)((s-(t*t+n*n)*a*a)/(2*a))]},n}e.a=r;var i=n(5),a=n(95),o=n(339);e.b=function(){return Object(a.a)(r).scale(155.424).center([0,33.6442])}},function(t,e,n){"use strict";e.a=function(t){var e=0,n=r.o/3,a=Object(i.b)(t),o=a(e,n);return o.parallels=function(t){return arguments.length?a(e=t[0]*r.r,n=t[1]*r.r):[e*r.h,n*r.h]},o};var r=n(5),i=n(21)},function(t,e,n){"use strict";function r(t,e,n){var r=e[1][0]-e[0][0],o=e[1][1]-e[0][1],s=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=s&&t.clipExtent(null),Object(i.a)(n,t.stream(a.a));var u=a.a.result(),c=Math.min(r/(u[1][0]-u[0][0]),o/(u[1][1]-u[0][1])),l=+e[0][0]+(r-c*(u[1][0]+u[0][0]))/2,f=+e[0][1]+(o-c*(u[1][1]+u[0][1]))/2;return null!=s&&t.clipExtent(s),t.scale(150*c).translate([l,f])}e.a=r,e.b=function(t,e,n){return r(t,[[0,0],e],n)};var i=n(30),a=n(175)},function(t,e,n){"use strict";function r(t,e){return[t,Object(a.n)(Object(a.v)((a.l+e)/2))]}function i(t){function e(){var e=a.o*f(),s=c(Object(o.a)(c.rotate()).invert([0,0]));return p(null==d?[[s[0]-e,s[1]-e],[s[0]+e,s[1]+e]]:t===r?[[Math.max(s[0]-e,d),n],[Math.min(s[0]+e,i),u]]:[[d,Math.max(s[1]-e,n)],[i,Math.min(s[1]+e,u)]])}var n,i,u,c=Object(s.a)(t),l=c.center,f=c.scale,h=c.translate,p=c.clipExtent,d=null;return c.scale=function(t){return arguments.length?(f(t),e()):f()},c.translate=function(t){return arguments.length?(h(t),e()):h()},c.center=function(t){return arguments.length?(l(t),e()):l()},c.clipExtent=function(t){return arguments.length?(null==t?d=n=i=u=null:(d=+t[0][0],n=+t[0][1],i=+t[1][0],u=+t[1][1]),e()):null==d?null:[[d,n],[i,u]]},e()}e.c=r,e.b=i;var a=n(5),o=n(66),s=n(21);r.invert=function(t,e){return[t,2*Object(a.d)(Object(a.k)(e))-a.l]},e.a=function(){return i(r).scale(961/a.w)}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.B)(1-Object(a.y)(e));return[2/a.E*t*n,a.E*(1-n)]}e.a=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=(n=e/a.E-1)*n;return[n>0?t*Object(a.B)(a.s/n)/2:0,Object(a.e)(1-n)]},e.b=function(){return Object(i.geoProjection)(r).scale(95.6464).center([0,30])}},function(t,e,n){"use strict";function r(t,e){return e>-s?((t=Object(a.d)(t,e))[1]+=u,t):Object(o.b)(t,e)}n.d(e,"b",function(){return s}),n.d(e,"d",function(){return u}),e.c=r;var i=n(0),a=n(26),o=n(46),s=.7109889596207567,u=.0528035274542;r.invert=function(t,e){return e>-s?a.d.invert(t,e-u):o.b.invert(t,e)},e.a=function(){return Object(i.geoProjection)(r).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}},function(t,e,n){"use strict";var r=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]];e.a=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(t){return t.map(function(t){return r[t]})})},function(t,e,n){"use strict";var r=n(0),i=n(1);e.a=function(t){function e(e,r){var a=Object(i.a)(e)<i.o,o=t(a?e:e>0?e-i.s:e+i.s,r),s=(o[0]-o[1])*i.C,u=(o[0]+o[1])*i.C;if(a)return[s,u];var c=n*i.C,l=s>0^u>0?-1:1;return[l*s-Object(i.x)(u)*c,l*u-Object(i.x)(s)*c]}var n=t(i.o,0)[0]-t(-i.o,0)[0];return t.invert&&(e.invert=function(e,r){var a=(e+r)*i.C,o=(r-e)*i.C,s=Object(i.a)(a)<.5*n&&Object(i.a)(o)<.5*n;if(!s){var u=n*i.C,c=a>0^o>0?-1:1,l=-c*e+(o>0?1:-1)*u,f=-c*r+(a>0?1:-1)*u;a=(-l-f)*i.C,o=(l-f)*i.C}var h=t.invert(a,o);return s||(h[0]+=a>0?i.s:-i.s),h}),Object(r.geoProjection)(e).rotate([-90,-90,45]).clipAngle(179.999)}},function(t,e,n){function r(t){var e=this.__data__=new i(t);this.size=e.size}var i=n(70),a=n(436),o=n(437),s=n(438),u=n(439),c=n(440);r.prototype.clear=a,r.prototype.delete=o,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){var r=n(29)(n(18),"Map");t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(441),a=n(448),o=n(450),s=n(451),u=n(452);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=o,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){var r=n(151),i=n(455),a=n(24);t.exports=function(t){return a(t)?r(t,!0):i(t)}},function(t,e,n){var r=n(460),i=n(193),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(t){return null==t?[]:(t=Object(t),r(o(t),function(e){return a.call(t,e)}))}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(153)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(199);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}var i=n(104),a=n(482),o=n(483);r.prototype.add=r.prototype.push=a,r.prototype.has=o,t.exports=r},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(76),i=n(51);t.exports=function(t,e){for(var n=0,a=(e=r(e,t)).length;null!=t&&n<a;)t=t[i(e[n++])];return n&&n==a?t:void 0}},function(t,e,n){var r=n(3),i=n(49),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||o.test(t)||!a.test(t)||null!=e&&t in Object(e)}},function(t,e,n){"use strict";function r(t,e){return[t>c.o?t-c.w:t<-c.o?t+c.w:t,e]}function i(t,e,n){return(t%=c.w)?e||n?Object(u.a)(o(t),s(e,n)):o(t):e||n?s(e,n):r}function a(t){return function(e,n){return[(e+=t)>c.o?e-c.w:e<-c.o?e+c.w:e,n]}}function o(t){var e=a(t);return e.invert=a(-t),e}function s(t,e){function n(t,e){var n=Object(c.g)(e),s=Object(c.g)(t)*n,u=Object(c.t)(t)*n,l=Object(c.t)(e),f=l*r+s*i;return[Object(c.e)(u*a-f*o,s*r-l*i),Object(c.c)(f*a+u*o)]}var r=Object(c.g)(t),i=Object(c.t)(t),a=Object(c.g)(e),o=Object(c.t)(e);return n.invert=function(t,e){var n=Object(c.g)(e),s=Object(c.g)(t)*n,u=Object(c.t)(t)*n,l=Object(c.t)(e),f=l*a-u*o;return[Object(c.e)(u*a+l*o,s*r+f*i),Object(c.c)(f*r-s*i)]},n}e.b=i;var u=n(217),c=n(6);r.invert=r,e.a=function(t){function e(e){return(e=t(e[0]*c.r,e[1]*c.r))[0]*=c.h,e[1]*=c.h,e}return t=i(t[0]*c.r,t[1]*c.r,t.length>2?t[2]*c.r:0),e.invert=function(e){return(e=t.invert(e[0]*c.r,e[1]*c.r))[0]*=c.h,e[1]*=c.h,e},e}},function(t,e,n){"use strict";function r(t,e){function n(t,e){var n=Object(i.u)(o-2*a*Object(i.t)(e))/a;return[n*Object(i.t)(t*=a),s-n*Object(i.g)(t)]}var r=Object(i.t)(t),a=(r+Object(i.t)(e))/2,o=1+r*(2*a-r),s=Object(i.u)(o)/a;return n.invert=function(t,e){var n=s-e;return[Object(i.e)(t,n)/a,Object(i.c)((o-(t*t+n*n)*a*a)/(2*a))]},n}e.a=r;var i=n(6),a=n(116);e.b=function(){return Object(a.a)(r).scale(155.424).center([0,33.6442])}},function(t,e,n){"use strict";e.a=function(t){var e=0,n=r.o/3,a=Object(i.b)(t),o=a(e,n);return o.parallels=function(t){return arguments.length?a(e=t[0]*r.r,n=t[1]*r.r):[e*r.h,n*r.h]},o};var r=n(6),i=n(22)},function(t,e,n){"use strict";function r(t){function e(){}var n=e.prototype=Object.create(i.prototype);for(var r in t)n[r]=t[r];return function(t){var n=new e;return n.stream=t,n}}function i(){}e.b=r,e.a=function(t){return{stream:r(t)}},i.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(t,e,n){"use strict";function r(t,e){return[t,Object(o.n)(Object(o.v)((o.l+e)/2))]}function i(t){var e,n=Object(a.a)(t),r=n.scale,i=n.translate,s=n.clipExtent;return n.scale=function(t){return arguments.length?(r(t),e&&n.clipExtent(null),n):r()},n.translate=function(t){return arguments.length?(i(t),e&&n.clipExtent(null),n):i()},n.clipExtent=function(t){if(!arguments.length)return e?null:s();if(e=null==t){var a=o.o*r(),u=i();t=[[u[0]-a,u[1]-a],[u[0]+a,u[1]+a]]}return s(t),n},n.clipExtent(null)}e.c=r,e.b=i;var a=n(22),o=n(6);r.invert=function(t,e){return[t,2*Object(o.d)(Object(o.k)(e))-o.l]},e.a=function(){return i(r).scale(961/o.w)}},function(t,e,n){var r=n(539),i=n(11);t.exports=function(t){return null==t?[]:r(t,i(t))}},function(t,e,n){var r=n(544),i=n(545)(r);t.exports=i},function(t,e,n){"use strict";var r=n(28);t.exports=function(t,e){var n,i,a=r(t),o=0;if(2===e)for(i=0;i<t.length;i++)o+=(n=t[i]-a)*n;else for(i=0;i<t.length;i++)o+=Math.pow(t[i]-a,e);return o}},function(t,e,n){"use strict";function r(t,e,n,r){e%1==0?s(t,e,n,r):(e=Math.floor(e),s(t,e,n,r),s(t,e+1,e+1,r))}function i(t,e){return t-e}function a(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!=0?Math.ceil(n)-1:t%2==0?n-.5:n}var o=n(123),s=n(557);t.exports=function(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],o=0;o<e.length;o++)n.push(a(t.length,e[o]));n.push(t.length-1),n.sort(i);for(var s=[0,n.length-1];s.length;){var u=Math.ceil(s.pop()),c=Math.floor(s.pop());if(!(u-c<=1)){var l=Math.floor((c+u)/2);r(t,n[l],n[c],n[u]),s.push(c,l,l,u)}}}(n,e);for(var s=[],u=0;u<e.length;u++)s[u]=o(n,e[u]);return s}return r(n,a(n.length,e),0,n.length-1),o(n,e)}},function(t,e,n){"use strict";t.exports=function(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}},function(t,e,n){"use strict";var r=n(121);t.exports=function(t){if(t.length<2)throw new Error("sampleVariance requires at least two data points");return r(t,2)/(t.length-1)}},function(t,e){t.exports={HIERARCHY:"hierarchy",GEO:"geo",HEX:"hex",GRAPH:"graph",TABLE:"table",GEO_GRATICULE:"geo-graticule",STATISTICS_METHODS:["max","mean","median","min","mode","product","standardDeviation","sum","sumSimple","variance"]}},function(t,e,n){"use strict";function r(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}var i={},a={},o=34,s=10,u=13;e.a=function(t){function e(t,e){function n(){if(d)return a;if(g)return g=!1,i;var e,n,r=h;if(t.charCodeAt(r)===o){for(;h++<l&&t.charCodeAt(h)!==o||t.charCodeAt(++h)===o;);return(e=h)>=l?d=!0:(n=t.charCodeAt(h++))===s?g=!0:n===u&&(g=!0,t.charCodeAt(h)===s&&++h),t.slice(r+1,e-1).replace(/""/g,'"')}for(;h<l;){if((n=t.charCodeAt(e=h++))===s)g=!0;else if(n===u)g=!0,t.charCodeAt(h)===s&&++h;else if(n!==f)continue;return t.slice(r,e)}return d=!0,t.slice(r,l)}var r,c=[],l=t.length,h=0,p=0,d=l<=0,g=!1;for(t.charCodeAt(l-1)===s&&--l,t.charCodeAt(l-1)===u&&--l;(r=n())!==a;){for(var v=[];r!==i&&r!==a;)v.push(r),r=n();e&&null==(v=e(v,p++))||c.push(v)}return c}function n(e){return e.map(c).join(t)}function c(t){return null==t?"":l.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}var l=new RegExp('["'+t+"\n\r]"),f=t.charCodeAt(0);return{parse:function(t,n){var i,a,o=e(t,function(t,e){if(i)return i(t,e-1);a=t,i=n?function(t,e){var n=r(t);return function(r,i){return e(n(r),i,t)}}(t,n):r(t)});return o.columns=a||[],o},parseRows:e,format:function(e,n){return null==n&&(n=function(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var r in t)r in e||n.push(e[r]=r)}),n}(e)),[n.map(c).join(t)].concat(e.map(function(e){return n.map(function(t){return c(e[t])}).join(t)})).join("\n")},formatRows:function(t){return t.map(n).join("\n")}}}},function(t,e,n){"use strict";function r(t,e){var n,r,a,u,c,l=new s(t),f=+t.value&&(l.value=t.value),h=[l];for(null==e&&(e=i);n=h.pop();)if(f&&(n.value=+n.data.value),(a=e(n.data))&&(c=a.length))for(n.children=new Array(c),u=c-1;u>=0;--u)h.push(r=n.children[u]=new s(a[u])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(o)}function i(t){return t.children}function a(t){t.data=t.data.data}function o(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function s(t){this.data=t,this.depth=this.height=0,this.parent=null}e.c=r,e.b=o,e.a=s;var u=n(609),c=n(610),l=n(611),f=n(612),h=n(613),p=n(614),d=n(615),g=n(616),v=n(617),y=n(618),m=n(619);s.prototype=r.prototype={constructor:s,count:u.a,each:c.a,eachAfter:f.a,eachBefore:l.a,sum:h.a,sort:p.a,path:d.a,ancestors:g.a,descendants:v.a,leaves:y.a,links:m.a,copy:function(){return r(this).eachBefore(a)}}},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new Error;return t}e.a=function(t){return null==t?null:r(t)},e.b=r},function(t,e,n){"use strict";function r(t,e,n,r,o,s){for(var u,c,l,f,h,p,d,g,v,y,m,x=[],b=e.children,_=0,w=0,O=b.length,j=e.value;_<O;){l=o-n,f=s-r;do{h=b[w++].value}while(!h&&w<O);for(p=d=h,m=h*h*(y=Math.max(f/l,l/f)/(j*t)),v=Math.max(d/m,m/p);w<O;++w){if(h+=c=b[w].value,c<p&&(p=c),c>d&&(d=c),m=h*h*y,(g=Math.max(d/m,m/p))>v){h-=c;break}v=g}x.push(u={value:h,dice:l<f,children:b.slice(_,w)}),u.dice?Object(i.a)(u,n,r,o,j?r+=f*h/j:s):Object(a.a)(u,n,r,j?n+=l*h/j:o,s),j-=h,_=w}return x}n.d(e,"b",function(){return o}),e.c=r;var i=n(56),a=n(79),o=(1+Math.sqrt(5))/2;e.a=function t(e){function n(t,n,i,a,o){r(e,t,n,i,a,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(o)},function(t,e,n){"use strict";var r=n(255);e.a=function(t){if(null==t)return r.a;var e,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,r){r||(e=n=0);var u=2,c=t.length,l=new Array(c);for(l[0]=(e+=t[0])*i+o,l[1]=(n+=t[1])*a+s;u<c;)l[u]=t[u],++u;return l}}},function(t,e,n){"use strict";function r(t,e){var n=e.id,r=e.bbox,a=null==e.properties?{}:e.properties,o=i(t,e);return null==n&&null==r?{type:"Feature",properties:a,geometry:o}:null==r?{type:"Feature",id:n,properties:a,geometry:o}:{type:"Feature",id:n,bbox:r,properties:a,geometry:o}}function i(t,e){function n(t,e){e.length&&e.pop();for(var n=l[t<0?~t:t],r=0,i=n.length;r<i;++r)e.push(c(n[r],r));t<0&&Object(a.a)(e,i)}function r(t){return c(t)}function i(t){for(var e=[],r=0,i=t.length;r<i;++r)n(t[r],e);return e.length<2&&e.push(e[0]),e}function s(t){for(var e=i(t);e.length<4;)e.push(e[0]);return e}function u(t){return t.map(s)}var c=Object(o.a)(t.transform),l=t.arcs;return function t(e){var n,a=e.type;switch(a){case"GeometryCollection":return{type:a,geometries:e.geometries.map(t)};case"Point":n=r(e.coordinates);break;case"MultiPoint":n=e.coordinates.map(r);break;case"LineString":n=i(e.arcs);break;case"MultiLineString":n=e.arcs.map(i);break;case"Polygon":n=u(e.arcs);break;case"MultiPolygon":n=e.arcs.map(u);break;default:return null}return{type:a,coordinates:n}}(e)}e.b=i;var a=n(631),o=n(130);e.a=function(t,e){return"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map(function(e){return r(t,e)})}:r(t,e)}},function(t,e,n){var r=n(23),i=n(20);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},function(t,e){t.exports=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t[1],r=[],i=t[0];i<n;)r.push(i),i+=e;return r.push(n),r}},function(t,e,n){var r=n(27).standardDeviation;t.exports={silverman:function(t){var e=r(t),n=4*Math.pow(e,5);return Math.pow(n/(3*t.length),.2)}}},function(t,e,n){"use strict";function r(t){this._isDirected=!u.has(t,"directed")||t.directed,this._isMultigraph=!!u.has(t,"multigraph")&&t.multigraph,this._isCompound=!!u.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=u.constant(void 0),this._defaultEdgeLabelFn=u.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(t,e){t[e]?t[e]++:t[e]=1}function a(t,e){--t[e]||delete t[e]}function o(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}return i+f+a+f+(u.isUndefined(r)?c:r)}function s(t,e){return o(t,e.v,e.w,e.name)}var u=n(14);t.exports=r;var c="\0",l="\0",f="\x01";r.prototype._nodeCount=0,r.prototype._edgeCount=0,r.prototype.isDirected=function(){return this._isDirected},r.prototype.isMultigraph=function(){return this._isMultigraph},r.prototype.isCompound=function(){return this._isCompound},r.prototype.setGraph=function(t){return this._label=t,this},r.prototype.graph=function(){return this._label},r.prototype.setDefaultNodeLabel=function(t){return u.isFunction(t)||(t=u.constant(t)),this._defaultNodeLabelFn=t,this},r.prototype.nodeCount=function(){return this._nodeCount},r.prototype.nodes=function(){return u.keys(this._nodes)},r.prototype.sources=function(){var t=this;return u.filter(this.nodes(),function(e){return u.isEmpty(t._in[e])})},r.prototype.sinks=function(){var t=this;return u.filter(this.nodes(),function(e){return u.isEmpty(t._out[e])})},r.prototype.setNodes=function(t,e){var n=arguments,r=this;return u.each(t,function(t){n.length>1?r.setNode(t,e):r.setNode(t)}),this},r.prototype.setNode=function(t,e){return u.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=l,this._children[t]={},this._children[l][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},r.prototype.node=function(t){return this._nodes[t]},r.prototype.hasNode=function(t){return u.has(this._nodes,t)},r.prototype.removeNode=function(t){var e=this;if(u.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],u.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),u.each(u.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],u.each(u.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},r.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(u.isUndefined(e))e=l;else{for(var n=e+="";!u.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},r.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},r.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==l)return e}},r.prototype.children=function(t){if(u.isUndefined(t)&&(t=l),this._isCompound){var e=this._children[t];if(e)return u.keys(e)}else{if(t===l)return this.nodes();if(this.hasNode(t))return[]}},r.prototype.predecessors=function(t){var e=this._preds[t];if(e)return u.keys(e)},r.prototype.successors=function(t){var e=this._sucs[t];if(e)return u.keys(e)},r.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return u.union(e,this.successors(t))},r.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},r.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;u.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),u.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var r={};return this._isCompound&&u.each(e.nodes(),function(t){e.setParent(t,function t(i){var a=n.parent(i);return void 0===a||e.hasNode(a)?(r[i]=a,a):a in r?r[a]:t(a)}(t))}),e},r.prototype.setDefaultEdgeLabel=function(t){return u.isFunction(t)||(t=u.constant(t)),this._defaultEdgeLabelFn=t,this},r.prototype.edgeCount=function(){return this._edgeCount},r.prototype.edges=function(){return u.values(this._edgeObjs)},r.prototype.setPath=function(t,e){var n=this,r=arguments;return u.reduce(t,function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i}),this},r.prototype.setEdge=function(){var t,e,n,r,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(t=s.v,e=s.w,n=s.name,2===arguments.length&&(r=arguments[1],a=!0)):(t=s,e=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],a=!0)),t=""+t,e=""+e,u.isUndefined(n)||(n=""+n);var c=o(this._isDirected,t,e,n);if(u.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=r),this;if(!u.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[c]=a?r:this._defaultEdgeLabelFn(t,e,n);var l=function(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}(this._isDirected,t,e,n);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[c]=l,i(this._preds[e],t),i(this._sucs[t],e),this._in[e][c]=l,this._out[t][c]=l,this._edgeCount++,this},r.prototype.edge=function(t,e,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n);return this._edgeLabels[r]},r.prototype.hasEdge=function(t,e,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n);return u.has(this._edgeLabels,r)},r.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},r.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=u.values(n);return e?u.filter(r,function(t){return t.v===e}):r}},r.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=u.values(n);return e?u.filter(r,function(t){return t.w===e}):r}},r.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},function(t,e,n){"use strict";function r(){}function i(t,e){var n=new r;if(t instanceof r)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==e)for(;++a<o;)n.set(a,t[a]);else for(;++a<o;)n.set(e(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}n.d(e,"b",function(){return a});var a="$";r.prototype=i.prototype={constructor:r,has:function(t){return a+t in this},get:function(t){return this[a+t]},set:function(t,e){return this[a+t]=e,this},remove:function(t){var e=a+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===a&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===a&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===a&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===a&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===a&&++t;return t},empty:function(){for(var t in this)if(t[0]===a)return!1;return!0},each:function(t){for(var e in this)e[0]===a&&t(this[e],e.slice(1),this)}},e.a=i},function(t,e,n){"use strict";var r=n(39),i=n(34),a=n(81),o=n(138);e.a=function(){function t(t){var i,a,o,f=t.length,h=!1;for(null==u&&(l=c(o=Object(r.path)())),i=0;i<=f;++i)!(i<f&&s(a=t[i],i,t))===h&&((h=!h)?l.lineStart():l.lineEnd()),h&&l.point(+e(a,i,t),+n(a,i,t));if(o)return l=null,o+""||null}var e=o.a,n=o.b,s=Object(i.a)(!0),u=null,c=a.a,l=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:Object(i.a)(+n),t):e},t.y=function(e){return arguments.length?(n="function"==typeof e?e:Object(i.a)(+e),t):n},t.defined=function(e){return arguments.length?(s="function"==typeof e?e:Object(i.a)(!!e),t):s},t.curve=function(e){return arguments.length?(c=e,null!=u&&(l=c(u)),t):c},t.context=function(e){return arguments.length?(null==e?u=l=null:l=c(u=e),t):u},t}},function(t,e,n){"use strict";e.a=function(t){return t[0]},e.b=function(t){return t[1]}},function(t,e,n){"use strict";function r(t,e,n){var r=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>a.f){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>a.f){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-e*t._l12_2a)/f,s=(s*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,s,t._x2,t._y2)}function i(t,e){this._context=t,this._alpha=e}e.a=r;var a=n(57),o=n(84);i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:r(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return e?new i(t,e):new o.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}e.b=r;var i=n(59);e.a=function(t){var e=t.map(r);return Object(i.a)(t).sort(function(t,n){return e[t]-e[n]})}},function(t,e,n){"use strict";function r(){this._=null}function i(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function a(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function o(t){for(;t.L;)t=t.L;return t}e.a=function(t){t.U=t.C=t.L=t.R=t.P=t.N=null},r.prototype={constructor:r,insert:function(t,e){var n,r,s;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=o(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(s=r.R)&&s.C?(n.C=s.C=!1,r.C=!0,t=r):(t===n.R&&(i(this,n),n=(t=n).U),n.C=!1,r.C=!0,a(this,r)):(s=r.L)&&s.C?(n.C=s.C=!1,r.C=!0,t=r):(t===n.L&&(a(this,n),n=(t=n).U),n.C=!1,r.C=!0,i(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,s=t.U,u=t.L,c=t.R;if(n=u?c?o(c):u:c,s?s.L===t?s.L=n:s.R=n:this._=n,u&&c?(r=n.C,n.C=t.C,n.L=u,u.U=n,n!==c?(s=n.U,n.U=t.U,s.L=t=n.R,n.R=c,c.U=n):(n.U=s,s=n,t=n.R)):(r=t.C,t=n),t&&(t.U=s),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===s.L){if((e=s.R).C&&(e.C=!1,s.C=!0,i(this,s),e=s.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,a(this,e),e=s.R),e.C=s.C,s.C=e.R.C=!1,i(this,s),t=this._;break}}else if((e=s.L).C&&(e.C=!1,s.C=!0,a(this,s),e=s.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,i(this,e),e=s.L),e.C=s.C,s.C=e.L.C=!1,a(this,s),t=this._;break}e.C=!0,t=s,s=s.U}while(!t.C);t&&(t.C=!1)}}},e.b=r},function(t,e,n){"use strict";function r(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function i(t,e,n,r,i){var a,o=t[0],s=t[1],u=o[0],c=o[1],l=0,f=1,h=s[0]-u,p=s[1]-c;if(a=e-u,h||!(a>0)){if(a/=h,h<0){if(a<l)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>l&&(l=a)}if(a=r-u,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>l&&(l=a)}else if(h>0){if(a<l)return;a<f&&(f=a)}if(a=n-c,p||!(a>0)){if(a/=p,p<0){if(a<l)return;a<f&&(f=a)}else if(p>0){if(a>f)return;a>l&&(l=a)}if(a=i-c,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>l&&(l=a)}else if(p>0){if(a<l)return;a<f&&(f=a)}return!(l>0||f<1)||(l>0&&(t[0]=[u+l*h,c+l*p]),f<1&&(t[1]=[u+f*h,c+f*p]),!0)}}}}}function a(t,e,n,r,i){var a=t[1];if(a)return!0;var o,s,u=t[0],c=t.left,l=t.right,f=c[0],h=c[1],p=l[0],d=l[1],g=(f+p)/2,v=(h+d)/2;if(d===h){if(g<e||g>=r)return;if(f>p){if(u){if(u[1]>=i)return}else u=[g,n];a=[g,i]}else{if(u){if(u[1]<n)return}else u=[g,i];a=[g,n]}}else if(s=v-(o=(f-p)/(d-h))*g,o<-1||o>1)if(f>p){if(u){if(u[1]>=i)return}else u=[(n-s)/o,n];a=[(i-s)/o,i]}else{if(u){if(u[1]<n)return}else u=[(i-s)/o,i];a=[(n-s)/o,n]}else if(h<d){if(u){if(u[0]>=r)return}else u=[e,o*e+s];a=[r,o*r+s]}else{if(u){if(u[0]<e)return}else u=[r,o*r+s];a=[e,o*e+s]}return t[0]=u,t[1]=a,!0}e.c=function(t,e,n,i){var a=[null,null],s=o.e.push(a)-1;return a.left=t,a.right=e,n&&r(a,t,e,n),i&&r(a,e,t,i),o.b[t.index].halfedges.push(s),o.b[e.index].halfedges.push(s),a},e.b=function(t,e,n){var r=[e,n];return r.left=t,r},e.d=r,e.a=function(t,e,n,r){for(var s,u=o.e.length;u--;)a(s=o.e[u],t,e,n,r)&&i(s,t,e,n,r)&&(Math.abs(s[0][0]-s[1][0])>o.f||Math.abs(s[0][1]-s[1][1])>o.f)||delete o.e[u]};var o=n(60)},function(t,e,n){"undefined"!=typeof self&&self,t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(t,e,n){var r=n(1),i=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=n,this.rootNode=new r(e,n)}return t.prototype.execute=function(){throw new Error("please override this method")},t}();t.exports=i},function(t,e){var n={getId:function(t){return t.id||t.name},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){return t.width||18*(t.name||" ").split("").length}},r=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var a=this;if(a.vgap=a.hgap=0,e instanceof t)return e;a.data=e;var o=(r.getHGap||n.getHGap)(e),s=(r.getVGap||n.getVGap)(e);if(a.width=(r.getWidth||n.getWidth)(e),a.height=(r.getHeight||n.getHeight)(e),a.id=(r.getId||n.getId)(e),a.x=a.y=0,a.depth=0,!i&&!e.isCollapsed)for(var u=[a],c=u.pop();c;){if(!c.data.isCollapsed){var l=(r.getChildren||n.getChildren)(c.data),f=l?l.length:0;if(c.children=[],l&&f)for(var h=0;h<f;h++){var p=new t(l[h],r);c.children.push(p),u.push(p),p.parent=c,p.depth=c.depth+1}}c=u.pop()}a.children||(a.children=[]),a.addGap(o,s)}return t.prototype.isRoot=function(){return 0===this.depth},t.prototype.isLeaf=function(){return 0===this.children.length},t.prototype.addGap=function(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e},t.prototype.eachNode=function(t){for(var e=[this],n=e.pop();n;)t(n),n=(e=e.concat(n.children)).pop()},t.prototype.DFTraverse=function(t){this.eachNode(t)},t.prototype.BFTraverse=function(t){for(var e=[this],n=e.shift();n;)t(n),n=(e=e.concat(n.children)).shift()},t.prototype.getBoundingBox=function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)}),t},t.prototype.translate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.eachNode(function(n){n.x+=t,n.y+=e})},t.prototype.right2left=function(){var t=this.getBoundingBox();this.eachNode(function(e){e.x=e.x-2*(e.x-t.left)-e.width}),this.translate(t.width,0)},t.prototype.bottom2top=function(){var t=this.getBoundingBox();this.eachNode(function(e){e.y=e.y-2*(e.y-t.top)-e.height}),this.translate(0,t.height)},t.prototype.getCenterX=function(){return this.x+this.width/2},t.prototype.getCenterY=function(){return this.y+this.height/2},t.prototype.getActualWidth=function(){return this.width-2*this.hgap},t.prototype.getActualHeight=function(){return this.height-2*this.vgap},t}();r.prototype.each=r.prototype.eachNode,t.exports=r},function(t,e,n){var r=n(3),i=["LR","RL","TB","BT","H","V"],a=["LR","RL","H"],o=i[0];t.exports=function(t,e,n){var s=e.direction||o;if(e.isHorizontal=a.indexOf(s)>-1,s&&-1===i.indexOf(s))throw new TypeError("Invalid direction: "+s);if(s===i[0])n(t,e);else if(s===i[1])n(t,e),t.right2left();else if(s===i[2])n(t,e);else if(s===i[3])n(t,e),t.bottom2top();else if(s===i[4]||s===i[5]){var u=r(t,e),c=u.left,l=u.right;n(c,e),n(l,e),e.isHorizontal?c.right2left():c.bottom2top(),l.translate(c.x-l.x,c.y-l.y),t.x=c.x,t.y=l.y;var f=t.getBoundingBox();e.isHorizontal?f.top<0&&t.translate(0,-f.top):f.left<0&&t.translate(-f.left,0)}return t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(1);t.exports=function(t,e){for(var n=new r(t.data,e,!0),i=new r(t.data,e,!0),a=t.children.length,o=Math.round(a/2),s=e.getSide||function(t,e){return e<o?"right":"left"},u=0;u<a;u++){var c=t.children[u];"right"===s(c,u)?i.children.push(c):n.children.push(c)}return n.eachNode(function(t){t.isRoot()||(t.side="left")}),i.eachNode(function(t){t.isRoot()||(t.side="right")}),{left:n,right:i}}},function(t,e,n){var r={compactBox:n(5),dendrogram:n(7),indented:n(9)};t.exports=r},function(t,e,n){var r=n(0),i=n(6),a=n(2),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.execute=function(){var t=a(this.rootNode,this.options,i);return t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t},e}(r),s={};t.exports=function(t,e){return e=Object.assign({},s,e),new o(t,e).execute()}},function(t,e){var n=function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var a=this;a.w=e||0,a.h=n||0,a.y=r||0,a.x=0,a.c=i||[],a.cs=i.length,a.prelim=0,a.mod=0,a.shift=0,a.change=0,a.tl=null,a.tr=null,a.el=null,a.er=null,a.msel=0,a.mser=0};n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach(function(t){r.push(n.fromNode(t,e))}),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t){function e(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function r(t){return t.y+t.h}function i(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}var a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isHorizontal;!function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n?(e.x=r,r+=e.width):(e.y=r,r+=e.height),e.children.forEach(function(e){t(e,n,r)})}(t,a);var o=n.fromNode(t,a);return function t(n){if(0!==n.cs){t(n.c[0]);for(var a=i(r(n.c[0].el),0,null),o=1;o<n.cs;++o){t(n.c[o]);var s=r(n.c[o].er);!function(t,e,n){for(var i=t.c[e-1],a=i.mod,o=t.c[e],s=o.mod;null!==i&&null!==o;){r(i)>n.low&&(n=n.nxt);var u=a+i.prelim+i.w-(s+o.prelim);u>0&&(s+=u,function(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,function(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}(t,e,n,r)}(t,e,n.index,u));var c=r(i),l=r(o);c<=l&&null!==(i=0===i.cs?i.tr:i.c[i.cs-1])&&(a+=i.mod),c>=l&&null!==(o=0===o.cs?o.tl:o.c[0])&&(s+=o.mod)}!i&&o?function(t,e,n,r){var i=t.c[0].el;i.tl=n;var a=r-n.mod-t.c[0].msel;i.mod+=a,i.prelim-=a,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,o,s):i&&!o&&function(t,e,n,r){var i=t.c[e].er;i.tr=n;var a=r-n.mod-t.c[e].mser;i.mod+=a,i.prelim-=a,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,i,a)}(n,o,a),a=i(s,o,a)}!function(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}(n),e(n)}else e(n)}(o),function t(e,n){e.x=e.prelim+(n+=e.mod),function(t){for(var e=0,n=0,r=0;r<t.cs;r++)t.c[r].mod+=n+=(e+=t.c[r].shift)+t.c[r].change}(e);for(var r=0;r<e.cs;r++)t(e.c[r],n)}(o,0),function t(e,n,r){r?n.y=e.x:n.x=e.x,e.c.forEach(function(e,i){t(e,n.children[i],r)})}(o,t,a),function(t,e){!function t(e,n,r){r?e.y+=n:e.x+=n,e.children.forEach(function(e){t(e,n,r)})}(t,-function t(e,n){var r=n?e.y:e.x;return e.children.forEach(function(e){r=Math.min(t(e,n),r)}),r}(t,e),e)}(t,a),t}},function(t,e,n){var r=n(0),i=n(8),a=n(2),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.execute=function(){return this.rootNode.width=0,a(this.rootNode,this.options,i)},e}(r),s={};t.exports=function(t,e){return e=Object.assign({},s,e),new o(t,e).execute()}},function(t,e){var n={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object.assign({},n,e);var r=0,i=void 0,a=function t(e){if(!e)return null;e.width=0,e.depth&&e.depth>r&&(r=e.depth);var n=e.children,i=n.length,a=new function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=this;r.x=r.y=0,r.leftChild=r.rightChild=null,r.height=e||0,r.children=n}(e.height,[]);return n.forEach(function(e,n){var r=t(e);a.children.push(r),0===n&&(a.leftChild=r),n===i-1&&(a.rightChild=r)}),a.originNode=e,a.isLeaf=e.isLeaf(),a}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=r;else{var n=e.children.map(function(e){return t(e)}),i=Math.min.apply(null,n);e.drawingDepth=i-1}return e.drawingDepth}(a),function t(n){n.x=n.drawingDepth*e.rankSep,n.isLeaf?(n.y=0,i&&(n.y=i.y+i.height+e.nodeSep,n.originNode.parent!==i.originNode.parent&&(n.y+=e.subTreeSep)),i=n):(n.children.forEach(function(e){t(e)}),n.y=(n.leftChild.y+n.rightChild.y)/2)}(a),function t(e,n,r){r?(n.x=e.x,n.y=e.y):(n.x=e.y,n.y=e.x),e.children.forEach(function(e,i){t(e,n.children[i],r)})}(a,t,e.isHorizontal),t}},function(t,e,n){var r=n(0),i=n(10),a=n(3),o=["LR","RL","H"],s=o[0],u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=t.direction||s;if(r&&-1===o.indexOf(r))throw new TypeError("Invalid direction: "+r);if(r===o[0])i(e,n);else if(r===o[1])i(e,n),e.right2left();else if(r===o[2]){var u=a(e,t),c=u.left,l=u.right;i(c,n),c.right2left(),i(l,n);var f=c.getBoundingBox();l.translate(f.width,0),e.x=l.x-e.width/2}return e},e}(r),c={};t.exports=function(t,e){return e=Object.assign({},c,e),new u(t,e).execute()}},function(t,e){t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n=null;t.eachNode(function(t){!function(t,e,n){t.x+=n*t.depth,t.y=e?e.y+e.height:0}(t,n,e),n=t})}}])},function(t,e,n){var r=n(29),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(146))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(296),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,s=i(a.length-e,0),u=Array(s);++o<s;)u[o]=a[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=a[o];return c[e]=n(u),r(t,this,c)}}},function(t,e,n){var r=n(297),i=n(299)(r);t.exports=i},function(t,e,n){var r=n(62),i=n(24),a=n(63),o=n(15);t.exports=function(t,e,n){if(!o(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&a(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(300),i=n(88),a=n(3),o=n(89),s=n(63),u=n(152),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=a(t),l=!n&&i(t),f=!n&&!l&&o(t),h=!n&&!l&&!f&&u(t),p=n||l||f||h,d=p?r(t.length,String):[],g=d.length;for(var v in t)!e&&!c.call(t,v)||p&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||d.push(v);return d}},function(t,e,n){var r=n(303),i=n(90),a=n(304),o=a&&a.isTypedArray,s=o?i(o):r;t.exports=s},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){"use strict";function r(){m.point=a}function i(){o(s,u)}function a(t,e){m.point=o,s=t,u=e,e*=p.r,c=t*=p.r,l=Object(p.g)(e=e/2+p.q),f=Object(p.t)(e)}function o(t,e){e=(e*=p.r)/2+p.q;var n=(t*=p.r)-c,r=n>=0?1:-1,i=r*n,a=Object(p.g)(e),o=Object(p.t)(e),s=f*o,u=l*a+s*Object(p.g)(i),h=s*r*Object(p.t)(i);v.add(Object(p.e)(h,u)),c=t,l=a,f=o}n.d(e,"a",function(){return v}),n.d(e,"b",function(){return m});var s,u,c,l,f,h=n(36),p=n(5),d=n(25),g=n(30),v=Object(h.a)(),y=Object(h.a)(),m={point:d.a,lineStart:d.a,lineEnd:d.a,polygonStart:function(){v.reset(),m.lineStart=r,m.lineEnd=i},polygonEnd:function(){var t=+v;y.add(t<0?p.w+t:t),this.lineStart=this.lineEnd=this.point=d.a},sphere:function(){y.add(p.w)}};e.c=function(t){return y.reset(),Object(g.a)(t,m),2*y}},function(t,e,n){"use strict";function r(t,e,n,r,o,u){if(n){var c=Object(s.g)(e),l=Object(s.t)(e),f=r*n;null==o?(o=e+r*s.w,u=e-f/2):(o=i(c,o),u=i(c,u),(r>0?o<u:o>u)&&(o+=r*s.w));for(var h,p=o;r>0?p>u:p<u;p-=f)h=Object(a.g)([c,-l*Object(s.g)(p),-l*Object(s.t)(p)]),t.point(h[0],h[1])}}function i(t,e){(e=Object(a.a)(e))[0]-=t,Object(a.e)(e);var n=Object(s.b)(-e[1]);return((-e[2]<0?-n:n)+s.w-s.i)%s.w}e.a=r;var a=n(43),o=n(309),s=n(5),u=n(66);e.b=function(){function t(){var t=i.apply(this,arguments),o=a.apply(this,arguments)*s.r,f=c.apply(this,arguments)*s.r;return e=[],n=Object(u.b)(-t[0]*s.r,-t[1]*s.r,0).invert,r(l,o,f,1),t={type:"Polygon",coordinates:[e]},e=n=null,t}var e,n,i=Object(o.a)([0,0]),a=Object(o.a)(90),c=Object(o.a)(6),l={point:function(t,r){e.push(t=n(t,r)),t[0]*=s.h,t[1]*=s.h}};return t.center=function(e){return arguments.length?(i="function"==typeof e?e:Object(o.a)([+e[0],+e[1]]),t):i},t.radius=function(e){return arguments.length?(a="function"==typeof e?e:Object(o.a)(+e),t):a},t.precision=function(e){return arguments.length?(c="function"==typeof e?e:Object(o.a)(+e),t):c},t}},function(t,e,n){"use strict";e.a=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}},function(t,e,n){"use strict";var r=n(25);e.a=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:r.a,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}},function(t,e,n){"use strict";function r(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function i(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}var a=n(159);e.a=function(t,e,n,o,s){var u,c,l=[],f=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],o=t[e];if(Object(a.a)(i,o)){for(s.lineStart(),u=0;u<e;++u)s.point((i=t[u])[0],i[1]);s.lineEnd()}else l.push(n=new r(i,t,null,!0)),f.push(n.o=new r(i,null,n,!1)),l.push(n=new r(o,t,null,!1)),f.push(n.o=new r(o,null,n,!0))}}),l.length){for(f.sort(e),i(l),i(f),u=0,c=f.length;u<c;++u)f[u].e=n=!n;for(var h,p,d=l[0];;){for(var g=d,v=!0;g.v;)if((g=g.n)===d)return;h=g.z,s.lineStart();do{if(g.v=g.o.v=!0,g.e){if(v)for(u=0,c=h.length;u<c;++u)s.point((p=h[u])[0],p[1]);else o(g.x,g.n.x,1,s);g=g.n}else{if(v)for(u=(h=g.p.z).length-1;u>=0;--u)s.point((p=h[u])[0],p[1]);else o(g.x,g.p.x,-1,s);g=g.p}h=(g=g.o).z,v=!v}while(!g.v);s.lineEnd()}}}},function(t,e,n){"use strict";var r=n(5);e.a=function(t,e){return Object(r.a)(t[0]-e[0])<r.i&&Object(r.a)(t[1]-e[1])<r.i}},function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"a",function(){return s});var r=n(37),i=n(161),a=Object(i.a)(r.a),o=a.right,s=a.left;e.c=o},function(t,e,n){"use strict";var r=n(37);e.a=function(t){return 1===t.length&&(t=function(t){return function(e,n){return Object(r.a)(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}},function(t,e,n){"use strict";function r(t,e){return[t,e]}e.b=r,e.a=function(t,e){null==e&&(e=r);for(var n=0,i=t.length-1,a=t[0],o=new Array(i<0?0:i);n<i;)o[n]=e(a,a=t[++n]);return o}},function(t,e,n){"use strict";var r=n(164);e.a=function(t,e){var n=Object(r.a)(t,e);return n?Math.sqrt(n):n}},function(t,e,n){"use strict";var r=n(44);e.a=function(t,e){var n,i,a=t.length,o=0,s=-1,u=0,c=0;if(null==e)for(;++s<a;)isNaN(n=Object(r.a)(t[s]))||(c+=(i=n-u)*(n-(u+=i/++o)));else for(;++s<a;)isNaN(n=Object(r.a)(e(t[s],s,t)))||(c+=(i=n-u)*(n-(u+=i/++o)));if(o>1)return c/(o-1)}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(n=t[o])&&n>=n)for(r=i=n;++o<a;)null!=(n=t[o])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++o<a;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=i=n;++o<a;)null!=(n=e(t[o],o,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return a});var r=Array.prototype,i=r.slice,a=r.map},function(t,e,n){"use strict";e.a=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++r<i;)a[r]=t+r*n;return a}},function(t,e,n){"use strict";function r(t,e,n){var r=(e-t)/Math.max(0,n),s=Math.floor(Math.log(r)/Math.LN10),u=r/Math.pow(10,s);return s>=0?(u>=i?10:u>=a?5:u>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=i?10:u>=a?5:u>=o?2:1)}e.b=r,e.c=function(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),u=r/s;return u>=i?s*=10:u>=a?s*=5:u>=o&&(s*=2),e<t?-s:s};var i=Math.sqrt(50),a=Math.sqrt(10),o=Math.sqrt(2);e.a=function(t,e,n){var i,a,o,s,u=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((i=e<t)&&(a=t,t=e,e=a),0===(s=r(t,e,n))||!isFinite(s))return[];if(s>0)for(t=Math.ceil(t/s),e=Math.floor(e/s),o=new Array(a=Math.ceil(e-t+1));++u<a;)o[u]=(t+u)*s;else for(t=Math.floor(t*s),e=Math.ceil(e*s),o=new Array(a=Math.ceil(t-e+1));++u<a;)o[u]=(t-u)/s;return i&&o.reverse(),o}},function(t,e,n){"use strict";e.a=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<i;)null!=(n=t[a])&&r>n&&(r=n)}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<i;)null!=(n=e(t[a],a,t))&&r>n&&(r=n);return r}},function(t,e,n){"use strict";function r(t){return t.length}var i=n(170);e.a=function(t){if(!(o=t.length))return[];for(var e=-1,n=Object(i.a)(t,r),a=new Array(n);++e<n;)for(var o,s=-1,u=a[e]=new Array(o);++s<o;)u[s]=t[s][e];return a}},function(t,e,n){"use strict";var r=n(36),i=n(43),a=n(5),o=Object(r.a)();e.a=function(t,e){var n=e[0],r=e[1],s=[Object(a.t)(n),-Object(a.g)(n),0],u=0,c=0;o.reset();for(var l=0,f=t.length;l<f;++l)if(p=(h=t[l]).length)for(var h,p,d=h[p-1],g=d[0],v=d[1]/2+a.q,y=Object(a.t)(v),m=Object(a.g)(v),x=0;x<p;++x,g=_,y=O,m=j,d=b){var b=h[x],_=b[0],w=b[1]/2+a.q,O=Object(a.t)(w),j=Object(a.g)(w),S=_-g,M=S>=0?1:-1,E=M*S,P=E>a.o,C=y*O;if(o.add(Object(a.e)(C*M*Object(a.t)(E),m*j+C*Object(a.g)(E))),u+=P?S+M*a.w:S,P^g>=n^_>=n){var k=Object(i.c)(Object(i.a)(d),Object(i.a)(b));Object(i.e)(k);var A=Object(i.c)(s,k);Object(i.e)(A);var T=(P^S>=0?-1:1)*Object(a.c)(A[2]);(r>T||r===T&&(k[0]||k[1]))&&(c+=P^S>=0?1:-1)}}return(u<-a.i||u<a.i&&o<-a.i)^1&c}},function(t,e,n){"use strict";var r=n(174),i=[null,null],a={type:"LineString",coordinates:i};e.a=function(t,e){return i[0]=t,i[1]=e,Object(r.a)(a)}},function(t,e,n){"use strict";function r(){d.point=d.lineEnd=f.a}function i(t,e){e*=l.r,o=t*=l.r,s=Object(l.t)(e),u=Object(l.g)(e),d.point=a}function a(t,e){t*=l.r,e*=l.r;var n=Object(l.t)(e),r=Object(l.g)(e),i=Object(l.a)(t-o),a=Object(l.g)(i),c=r*Object(l.t)(i),f=u*n-s*r*a,h=s*n+u*r*a;p.add(Object(l.e)(Object(l.u)(c*c+f*f),h)),o=t,s=n,u=r}var o,s,u,c=n(36),l=n(5),f=n(25),h=n(30),p=Object(c.a)(),d={sphere:f.a,point:f.a,lineStart:function(){d.point=i,d.lineEnd=r},lineEnd:f.a,polygonStart:f.a,polygonEnd:f.a};e.a=function(t){return p.reset(),Object(h.a)(t,d),+p}},function(t,e,n){"use strict";var r=n(25),i=1/0,a=i,o=-i,s=o;e.a={point:function(t,e){t<i&&(i=t),t>o&&(o=t),e<a&&(a=e),e>s&&(s=e)},lineStart:r.a,lineEnd:r.a,polygonStart:r.a,polygonEnd:r.a,result:function(){var t=[[i,a],[o,s]];return o=s=-(a=i=1/0),t}}},function(t,e,n){"use strict";var r=n(94);e.a=function(){return Object(r.b)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(t,e,n){"use strict";function r(t){return t.length>1}function i(t,e){return((t=t.x)[0]<0?t[1]-s.l-s.i:s.l-t[1])-((e=e.x)[0]<0?e[1]-s.l-s.i:s.l-e[1])}var a=n(157),o=n(158),s=n(5),u=n(172),c=n(16);e.a=function(t,e,n,s){return function(l,f){function h(e,n){var r=l(e,n);t(e=r[0],n=r[1])&&f.point(e,n)}function p(t,e){var n=l(t,e);w.point(n[0],n[1])}function d(){E.point=p,w.lineStart()}function g(){E.point=h,w.lineEnd()}function v(t,e){_.push([t,e]);var n=l(t,e);S.point(n[0],n[1])}function y(){S.lineStart(),_=[]}function m(){v(_[0][0],_[0][1]),S.lineEnd();var t,e,n,i,a=S.clean(),o=j.result(),s=o.length;if(_.pop(),x.push(_),_=null,s)if(1&a){if((e=(n=o[0]).length-1)>0){for(M||(f.polygonStart(),M=!0),f.lineStart(),t=0;t<e;++t)f.point((i=n[t])[0],i[1]);f.lineEnd()}}else s>1&&2&a&&o.push(o.pop().concat(o.shift())),b.push(o.filter(r))}var x,b,_,w=e(f),O=l.invert(s[0],s[1]),j=Object(a.a)(),S=e(j),M=!1,E={point:h,lineStart:d,lineEnd:g,polygonStart:function(){E.point=v,E.lineStart=y,E.lineEnd=m,b=[],x=[]},polygonEnd:function(){E.point=h,E.lineStart=d,E.lineEnd=g,b=Object(c.merge)(b);var t=Object(u.a)(x,O);b.length?(M||(f.polygonStart(),M=!0),Object(o.a)(b,i,t,n,f)):t&&(M||(f.polygonStart(),M=!0),f.lineStart(),n(null,null,1,f),f.lineEnd()),M&&(f.polygonEnd(),M=!1),b=x=null},sphere:function(){f.polygonStart(),f.lineStart(),n(null,null,1,f),f.lineEnd(),f.polygonEnd()}};return E}}},function(t,e,n){"use strict";function r(t,e){return[t,e]}e.b=r;var i=n(21);r.invert=r,e.a=function(){return Object(i.a)(r).scale(152.63)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(350);n.d(e,"geoAiry",function(){return r.b}),n.d(e,"geoAiryRaw",function(){return r.a});var i=n(180);n.d(e,"geoAitoff",function(){return i.b}),n.d(e,"geoAitoffRaw",function(){return i.a});var a=n(351);n.d(e,"geoArmadillo",function(){return a.b}),n.d(e,"geoArmadilloRaw",function(){return a.a});var o=n(181);n.d(e,"geoAugust",function(){return o.b}),n.d(e,"geoAugustRaw",function(){return o.a});var s=n(352);n.d(e,"geoBaker",function(){return s.b}),n.d(e,"geoBakerRaw",function(){return s.a});var u=n(353);n.d(e,"geoBerghaus",function(){return u.b}),n.d(e,"geoBerghausRaw",function(){return u.a});var c=n(182);n.d(e,"geoBoggs",function(){return c.b}),n.d(e,"geoBoggsRaw",function(){return c.a});var l=n(354);n.d(e,"geoBonne",function(){return l.b}),n.d(e,"geoBonneRaw",function(){return l.a});var f=n(355);n.d(e,"geoBottomley",function(){return f.b}),n.d(e,"geoBottomleyRaw",function(){return f.a});var h=n(356);n.d(e,"geoBromley",function(){return h.b}),n.d(e,"geoBromleyRaw",function(){return h.a});var p=n(357);n.d(e,"geoChamberlin",function(){return p.c}),n.d(e,"geoChamberlinRaw",function(){return p.b}),n.d(e,"geoChamberlinAfrica",function(){return p.a});var d=n(98);n.d(e,"geoCollignon",function(){return d.b}),n.d(e,"geoCollignonRaw",function(){return d.a});var g=n(358);n.d(e,"geoCraig",function(){return g.b}),n.d(e,"geoCraigRaw",function(){return g.a});var v=n(359);n.d(e,"geoCraster",function(){return v.b}),n.d(e,"geoCrasterRaw",function(){return v.a});var y=n(183);n.d(e,"geoCylindricalEqualArea",function(){return y.b}),n.d(e,"geoCylindricalEqualAreaRaw",function(){return y.a});var m=n(360);n.d(e,"geoCylindricalStereographic",function(){return m.b}),n.d(e,"geoCylindricalStereographicRaw",function(){return m.a});var x=n(361);n.d(e,"geoEckert1",function(){return x.a}),n.d(e,"geoEckert1Raw",function(){return x.b});var b=n(362);n.d(e,"geoEckert2",function(){return b.a}),n.d(e,"geoEckert2Raw",function(){return b.b});var _=n(363);n.d(e,"geoEckert3",function(){return _.a}),n.d(e,"geoEckert3Raw",function(){return _.b});var w=n(364);n.d(e,"geoEckert4",function(){return w.a}),n.d(e,"geoEckert4Raw",function(){return w.b});var O=n(365);n.d(e,"geoEckert5",function(){return O.a}),n.d(e,"geoEckert5Raw",function(){return O.b});var j=n(366);n.d(e,"geoEckert6",function(){return j.a}),n.d(e,"geoEckert6Raw",function(){return j.b});var S=n(367);n.d(e,"geoEisenlohr",function(){return S.a}),n.d(e,"geoEisenlohrRaw",function(){return S.b});var M=n(368);n.d(e,"geoFahey",function(){return M.a}),n.d(e,"geoFaheyRaw",function(){return M.b});var E=n(369);n.d(e,"geoFoucaut",function(){return E.a}),n.d(e,"geoFoucautRaw",function(){return E.b});var P=n(370);n.d(e,"geoGilbert",function(){return P.a});var C=n(371);n.d(e,"geoGingery",function(){return C.a}),n.d(e,"geoGingeryRaw",function(){return C.b});var k=n(372);n.d(e,"geoGinzburg4",function(){return k.a}),n.d(e,"geoGinzburg4Raw",function(){return k.b});var A=n(373);n.d(e,"geoGinzburg5",function(){return A.a}),n.d(e,"geoGinzburg5Raw",function(){return A.b});var T=n(374);n.d(e,"geoGinzburg6",function(){return T.a}),n.d(e,"geoGinzburg6Raw",function(){return T.b});var I=n(375);n.d(e,"geoGinzburg8",function(){return I.a}),n.d(e,"geoGinzburg8Raw",function(){return I.b});var L=n(376);n.d(e,"geoGinzburg9",function(){return L.a}),n.d(e,"geoGinzburg9Raw",function(){return L.b});var R=n(184);n.d(e,"geoGringorten",function(){return R.a}),n.d(e,"geoGringortenRaw",function(){return R.b});var D=n(186);n.d(e,"geoGuyou",function(){return D.a}),n.d(e,"geoGuyouRaw",function(){return D.b});var F=n(378);n.d(e,"geoHammer",function(){return F.a}),n.d(e,"geoHammerRaw",function(){return F.b});var B=n(379);n.d(e,"geoHammerRetroazimuthal",function(){return B.a}),n.d(e,"geoHammerRetroazimuthalRaw",function(){return B.b});var N=n(380);n.d(e,"geoHealpix",function(){return N.a}),n.d(e,"geoHealpixRaw",function(){return N.b});var z=n(381);n.d(e,"geoHill",function(){return z.a}),n.d(e,"geoHillRaw",function(){return z.b});var q=n(187);n.d(e,"geoHomolosine",function(){return q.a}),n.d(e,"geoHomolosineRaw",function(){return q.b});var V=n(31);n.d(e,"geoInterrupt",function(){return V.a});var H=n(382);n.d(e,"geoInterruptedBoggs",function(){return H.a});var Y=n(383);n.d(e,"geoInterruptedHomolosine",function(){return Y.a});var G=n(384);n.d(e,"geoInterruptedMollweide",function(){return G.a});var W=n(385);n.d(e,"geoInterruptedMollweideHemispheres",function(){return W.a});var U=n(386);n.d(e,"geoInterruptedSinuMollweide",function(){return U.a});var X=n(387);n.d(e,"geoInterruptedSinusoidal",function(){return X.a});var $=n(388);n.d(e,"geoKavrayskiy7",function(){return $.a}),n.d(e,"geoKavrayskiy7Raw",function(){return $.b});var Q=n(389);n.d(e,"geoLagrange",function(){return Q.a}),n.d(e,"geoLagrangeRaw",function(){return Q.b});var Z=n(390);n.d(e,"geoLarrivee",function(){return Z.a}),n.d(e,"geoLarriveeRaw",function(){return Z.b});var K=n(391);n.d(e,"geoLaskowski",function(){return K.a}),n.d(e,"geoLaskowskiRaw",function(){return K.b});var J=n(392);n.d(e,"geoLittrow",function(){return J.a}),n.d(e,"geoLittrowRaw",function(){return J.b});var tt=n(393);n.d(e,"geoLoximuthal",function(){return tt.a}),n.d(e,"geoLoximuthalRaw",function(){return tt.b});var et=n(394);n.d(e,"geoMiller",function(){return et.a}),n.d(e,"geoMillerRaw",function(){return et.b});var nt=n(395);n.d(e,"geoModifiedStereographic",function(){return nt.a}),n.d(e,"geoModifiedStereographicRaw",function(){return nt.g}),n.d(e,"geoModifiedStereographicAlaska",function(){return nt.b}),n.d(e,"geoModifiedStereographicGs48",function(){return nt.c}),n.d(e,"geoModifiedStereographicGs50",function(){return nt.d}),n.d(e,"geoModifiedStereographicMiller",function(){return nt.f}),n.d(e,"geoModifiedStereographicLee",function(){return nt.e});var rt=n(26);n.d(e,"geoMollweide",function(){return rt.a}),n.d(e,"geoMollweideRaw",function(){return rt.d});var it=n(396);n.d(e,"geoMtFlatPolarParabolic",function(){return it.a}),n.d(e,"geoMtFlatPolarParabolicRaw",function(){return it.b});var at=n(397);n.d(e,"geoMtFlatPolarQuartic",function(){return at.a}),n.d(e,"geoMtFlatPolarQuarticRaw",function(){return at.b});var ot=n(398);n.d(e,"geoMtFlatPolarSinusoidal",function(){return ot.a}),n.d(e,"geoMtFlatPolarSinusoidalRaw",function(){return ot.b});var st=n(399);n.d(e,"geoNaturalEarth",function(){return st.a}),n.d(e,"geoNaturalEarthRaw",function(){return st.b});var ut=n(400);n.d(e,"geoNaturalEarth2",function(){return ut.a}),n.d(e,"geoNaturalEarth2Raw",function(){return ut.b});var ct=n(401);n.d(e,"geoNellHammer",function(){return ct.a}),n.d(e,"geoNellHammerRaw",function(){return ct.b});var lt=n(402);n.d(e,"geoPatterson",function(){return lt.a}),n.d(e,"geoPattersonRaw",function(){return lt.b});var ft=n(403);n.d(e,"geoPolyconic",function(){return ft.a}),n.d(e,"geoPolyconicRaw",function(){return ft.b});var ht=n(69);n.d(e,"geoPolyhedral",function(){return ht.a});var pt=n(405);n.d(e,"geoPolyhedralButterfly",function(){return pt.a});var dt=n(406);n.d(e,"geoPolyhedralCollignon",function(){return dt.a});var gt=n(407);n.d(e,"geoPolyhedralWaterman",function(){return gt.a});var vt=n(408);n.d(e,"geoProject",function(){return vt.a});var yt=n(412);n.d(e,"geoGringortenQuincuncial",function(){return yt.a});var mt=n(188);n.d(e,"geoPeirceQuincuncial",function(){return mt.a}),n.d(e,"geoPierceQuincuncial",function(){return mt.a});var xt=n(413);n.d(e,"geoQuantize",function(){return xt.a});var bt=n(101);n.d(e,"geoQuincuncial",function(){return bt.a});var _t=n(414);n.d(e,"geoRectangularPolyconic",function(){return _t.a}),n.d(e,"geoRectangularPolyconicRaw",function(){return _t.b});var wt=n(415);n.d(e,"geoRobinson",function(){return wt.a}),n.d(e,"geoRobinsonRaw",function(){return wt.b});var Ot=n(416);n.d(e,"geoSatellite",function(){return Ot.a}),n.d(e,"geoSatelliteRaw",function(){return Ot.b});var jt=n(99);n.d(e,"geoSinuMollweide",function(){return jt.a}),n.d(e,"geoSinuMollweideRaw",function(){return jt.c});var St=n(46);n.d(e,"geoSinusoidal",function(){return St.a}),n.d(e,"geoSinusoidalRaw",function(){return St.b});var Mt=n(417);n.d(e,"geoStitch",function(){return Mt.a});var Et=n(418);n.d(e,"geoTimes",function(){return Et.a}),n.d(e,"geoTimesRaw",function(){return Et.b});var Pt=n(419);n.d(e,"geoTwoPointAzimuthal",function(){return Pt.a}),n.d(e,"geoTwoPointAzimuthalRaw",function(){return Pt.b}),n.d(e,"geoTwoPointAzimuthalUsa",function(){return Pt.c});var Ct=n(420);n.d(e,"geoTwoPointEquidistant",function(){return Ct.a}),n.d(e,"geoTwoPointEquidistantRaw",function(){return Ct.b}),n.d(e,"geoTwoPointEquidistantUsa",function(){return Ct.c});var kt=n(421);n.d(e,"geoVanDerGrinten",function(){return kt.a}),n.d(e,"geoVanDerGrintenRaw",function(){return kt.b});var At=n(422);n.d(e,"geoVanDerGrinten2",function(){return At.a}),n.d(e,"geoVanDerGrinten2Raw",function(){return At.b});var Tt=n(423);n.d(e,"geoVanDerGrinten3",function(){return Tt.a}),n.d(e,"geoVanDerGrinten3Raw",function(){return Tt.b});var It=n(424);n.d(e,"geoVanDerGrinten4",function(){return It.a}),n.d(e,"geoVanDerGrinten4Raw",function(){return It.b});var Lt=n(425);n.d(e,"geoWagner4",function(){return Lt.a}),n.d(e,"geoWagner4Raw",function(){return Lt.b});var Rt=n(426);n.d(e,"geoWagner6",function(){return Rt.a}),n.d(e,"geoWagner6Raw",function(){return Rt.b});var Dt=n(427);n.d(e,"geoWagner7",function(){return Dt.a}),n.d(e,"geoWagner7Raw",function(){return Dt.b});var Ft=n(428);n.d(e,"geoWiechel",function(){return Ft.a}),n.d(e,"geoWiechelRaw",function(){return Ft.b});var Bt=n(429);n.d(e,"geoWinkel3",function(){return Bt.a}),n.d(e,"geoWinkel3Raw",function(){return Bt.b})},function(t,e,n){"use strict";function r(t,e){var n=Object(a.h)(e),r=Object(a.z)(Object(a.b)(n*Object(a.h)(t/=2)));return[2*n*Object(a.y)(t)*r,Object(a.y)(e)*r]}e.a=r;var i=n(0),a=n(1);r.invert=function(t,e){if(!(t*t+4*e*e>a.s*a.s+a.k)){var n=t,r=e,i=25;do{var o,s=Object(a.y)(n),u=Object(a.y)(n/2),c=Object(a.h)(n/2),l=Object(a.y)(r),f=Object(a.h)(r),h=Object(a.y)(2*r),p=l*l,d=f*f,g=u*u,v=1-d*c*c,y=v?Object(a.b)(f*c)*Object(a.B)(o=1/v):o=0,m=2*y*f*u-t,x=y*l-e,b=o*(d*g+y*f*c*p),_=o*(.5*s*h-2*y*l*u),w=.25*o*(h*u-y*l*d*s),O=o*(p*c+y*g*f),j=_*w-O*b;if(!j)break;var S=(x*_-m*O)/j,M=(m*w-x*b)/j;n-=S,r-=M}while((Object(a.a)(S)>a.k||Object(a.a)(M)>a.k)&&--i>0);return[n,r]}},e.b=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.F)(e/2),r=Object(a.B)(1-n*n),i=1+r*Object(a.h)(t/=2),o=Object(a.y)(t)*r/i,s=n/i,u=o*o,c=s*s;return[4/3*o*(3+u-3*c),4/3*s*(3+3*u-c)]}e.a=r;var i=n(0),a=n(1);r.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&Object(a.a)(e)>1)return null;var n=1+t*t+e*e,r=Object(a.B)((n-Object(a.B)(n*n-4*e*e))/2),i=Object(a.e)(r)/3,o=r?Object(a.c)(Object(a.a)(e/r))/3:Object(a.d)(Object(a.a)(t))/3,s=Object(a.h)(i),u=Object(a.i)(o),c=u*u-s*s;return[2*Object(a.x)(t)*Object(a.g)(Object(a.A)(o)*s,.25-c),2*Object(a.x)(e)*Object(a.g)(u*Object(a.y)(i),.25+c)]},e.b=function(){return Object(i.geoProjection)(r).scale(66.1603)}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.c)(o.s,e);return[s*t/(1/Object(o.h)(e)+u/Object(o.h)(n)),(e+o.D*Object(o.y)(n))/s]}e.a=r;var i=n(0),a=n(26),o=n(1),s=2.00276,u=1.11072;r.invert=function(t,e){var n,r,i=s*e,a=e<0?-o.u:o.u,c=25;do{r=i-o.D*Object(o.y)(a),a-=n=(Object(o.y)(2*a)+2*a-o.s*Object(o.y)(r))/(2*Object(o.h)(2*a)+2+o.s*Object(o.h)(r)*o.D*Object(o.h)(a))}while(Object(o.a)(n)>o.k&&--c>0);return r=i-o.D*Object(o.y)(a),[t*(1/Object(o.h)(r)+u/Object(o.h)(a))/s,r]},e.b=function(){return Object(i.geoProjection)(r).scale(160.857)}},function(t,e,n){"use strict";function r(t){function e(t,e){return[t*n,Object(i.y)(e)/n]}var n=Object(i.h)(t);return e.invert=function(t,e){return[t/n,Object(i.e)(e*n)]},e}e.a=r;var i=n(1),a=n(38);e.b=function(){return Object(a.a)(r).parallel(38.58).scale(195.044)}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.x)(t),r=Object(a.x)(e),i=Object(a.h)(e),o=Object(a.h)(t)*i,s=Object(a.y)(t)*i,u=Object(a.y)(r*e);t=Object(a.a)(Object(a.g)(s,u)),e=Object(a.e)(o),Object(a.a)(t-a.o)>a.k&&(t%=a.o);var c=function(t,e){if(e===a.o)return[0,0];var n,r,i=Object(a.y)(e),o=i*i,s=o*o,u=1+s,c=1+3*s,l=1-s,f=Object(a.e)(1/Object(a.B)(u)),h=l+o*u*f,p=(1-i)/h,d=Object(a.B)(p),g=p*u,v=Object(a.B)(g),y=d*l;if(0===t)return[0,-(y+o*v)];var m,x=Object(a.h)(e),b=1/x,_=2*i*x,w=(-h*x-(-3*o+f*c)*_*(1-i))/(h*h),O=-b*_,j=-b*(o*u*w+p*c*_),S=-2*b*(l*(.5*w/d)-2*o*d*_),M=4*t/a.s;if(t>.222*a.s||e<a.s/4&&t>.175*a.s){if(n=(y+o*Object(a.B)(g*(1+s)-y*y))/(1+s),t>a.s/4)return[n,n];var E=n,P=.5*n;n=.5*(P+E),r=50;do{var C=n*(S+O*Object(a.B)(g-n*n))+j*Object(a.e)(n/v)-M;if(!C)break;C<0?P=n:E=n,n=.5*(P+E)}while(Object(a.a)(E-P)>a.k&&--r>0)}else{n=a.k,r=25;do{var k=n*n,A=Object(a.B)(g-k),T=S+O*A,I=n*T+j*Object(a.e)(n/v)-M;n-=m=A?I/(T+(j-O*k)/A):0}while(Object(a.a)(m)>a.k&&--r>0)}return[n,-y-o*Object(a.B)(g-n*n)]}(t>a.s/4?a.o-t:t,e);return t>a.s/4&&(u=c[0],c[0]=-c[1],c[1]=-u),c[0]*=n,c[1]*=-r,c}e.b=r;var i=n(0),a=n(1),o=n(185);r.invert=function(t,e){Object(a.a)(t)>1&&(t=2*Object(a.x)(t)-t),Object(a.a)(e)>1&&(e=2*Object(a.x)(e)-e);var n=Object(a.x)(t),r=Object(a.x)(e),i=-n*t,o=-r*e,s=o/i<1,u=function(t,e){for(var n=0,r=1,i=.5,o=50;;){var s=i*i,u=Object(a.B)(i),c=Object(a.e)(1/Object(a.B)(1+s)),l=1-s+i*(1+s)*c,f=(1-u)/l,h=Object(a.B)(f),p=f*(1+s),d=h*(1-s),g=p-t*t,v=Object(a.B)(g),y=e+d+i*v;if(Object(a.a)(r-n)<a.l||0==--o||0===y)break;y>0?n=i:r=i,i=.5*(n+r)}if(!o)return null;var m=Object(a.e)(u),x=Object(a.h)(m),b=1/x,_=2*u*x,w=(-l*x-(-3*i+c*(1+3*s))*_*(1-u))/(l*l);return[a.s/4*(t*(-2*b*(.5*w/h*(1-s)-2*i*h*_)+-b*_*v)+-b*(i*(1+s)*w+f*(1+3*s)*_)*Object(a.e)(t/Object(a.B)(p))),m]}(s?o:i,s?i:o),c=u[0],l=u[1],f=Object(a.h)(l);return s&&(c=-a.o-c),[n*(Object(a.g)(Object(a.y)(c)*f,-Object(a.y)(l))+a.s),r*Object(a.e)(Object(a.h)(c)*f)]},e.a=function(){return Object(i.geoProjection)(Object(o.a)(r)).scale(239.75)}},function(t,e,n){"use strict";var r=n(1);e.a=function(t){function e(e,i){var a=e>0?-.5:.5,o=t(e+a*r.s,i);return o[0]-=a*n,o}var n=t(r.o,0)[0]-t(-r.o,0)[0];return t.invert&&(e.invert=function(e,i){var a=e>0?-.5:.5,o=t.invert(e+a*n,i),s=o[0]-a*r.s;return s<-r.s?s+=2*r.s:s>r.s&&(s-=2*r.s),o[0]=s,o}),e}},function(t,e,n){"use strict";function r(t,e){var n=(o.D-1)/(o.D+1),r=Object(o.B)(1-n*n),i=Object(a.a)(o.o,r*r),s=Object(o.p)(Object(o.F)(o.s/4+Object(o.a)(e)/2)),u=Object(o.m)(-1*s)/Object(o.B)(n),c=function(t,e){var n=t*t,r=e+1,i=1-n-e*e;return[.5*((t>=0?o.o:-o.o)-Object(o.g)(i,2*t)),-.25*Object(o.p)(i*i+4*n)+.5*Object(o.p)(r*r+n)]}(u*Object(o.h)(-1*t),u*Object(o.y)(-1*t)),l=Object(a.b)(c[0],c[1],r*r);return[-l[1],(e>=0?1:-1)*(.5*i-l[0])]}e.b=r;var i=n(0),a=n(377),o=n(1),s=n(185);r.invert=function(t,e){var n=(o.D-1)/(o.D+1),r=Object(o.B)(1-n*n),i=Object(a.a)(o.o,r*r),s=Object(a.c)(.5*i-e,-t,r*r),u=function(t,e){var n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}(s[0],s[1]);return[Object(o.g)(u[1],u[0])/-1,2*Object(o.f)(Object(o.m)(-.5*Object(o.p)(n*u[0]*u[0]+n*u[1]*u[1])))-o.o]},e.a=function(){return Object(i.geoProjection)(Object(s.a)(r)).scale(151.496)}},function(t,e,n){"use strict";function r(t,e){return Object(a.a)(e)>u.b?((t=Object(o.d)(t,e))[1]-=e>0?u.d:-u.d,t):Object(s.b)(t,e)}e.b=r;var i=n(0),a=n(1),o=n(26),s=n(46),u=n(99);r.invert=function(t,e){return Object(a.a)(e)>u.b?o.d.invert(t,e+(e>0?u.d:-u.d)):s.b.invert(t,e)},e.a=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,e,n){"use strict";var r=n(186),i=n(101);e.a=function(){return Object(i.a)(r.b).scale(111.48)}},function(t,e,n){"use strict";var r=n(0),i=n(1);e.a=function(t,e,n){var a=Object(r.geoInterpolate)(e,n),o=a(.5),s=Object(r.geoRotation)([-o[0],-o[1]])(e),u=a.distance/2,c=-Object(i.e)(Object(i.y)(s[1]*i.v)/Object(i.y)(u)),l=[-o[0],-o[1],-(s[0]>0?i.s-c:c)*i.j],f=Object(r.geoProjection)(t(u)).rotate(l),h=Object(r.geoRotation)(l),p=f.center;return delete f.rotate,f.center=function(t){return arguments.length?p(h(t)):h.invert(p())},f.clipAngle(90)}},function(t,e,n){var r;!function(e){"use strict";function i(){}function a(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function o(t){return function(){return this[t].apply(this,arguments)}}var s=i.prototype,u=e.EventEmitter;s.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},s.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},s.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},s.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"==typeof e;for(n in r)r.hasOwnProperty(n)&&-1===a(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},s.on=o("addListener"),s.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},s.once=o("addOnceListener"),s.defineEvent=function(t){return this.getListeners(t),this},s.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},s.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=a(i[r],e))&&i[r].splice(n,1);return this},s.off=o("removeListener"),s.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},s.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},s.manipulateListeners=function(t,e,n){var r,i,a=t?this.removeListener:this.addListener,o=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=n.length;r--;)a.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?a.call(this,r,i):o.call(this,r,i));return this},s.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},s.removeAllListeners=o("removeEvent"),s.emitEvent=function(t,e){var n,r,i,a,o=this.getListenersAsObject(t);for(a in o)if(o.hasOwnProperty(a))for(n=o[a].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},s.trigger=o("emitEvent"),s.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},s.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},s._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},s._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return e.EventEmitter=u,i},void 0!==(r=(function(){return i}).call(e,n,e,t))&&(t.exports=r)}(this||{})},function(t,e,n){var r=n(102),i=n(192),a=n(61),o=n(453),s=n(454),u=n(457),c=n(458),l=n(459),f=n(461),h=n(195),p=n(462),d=n(197),g=n(466),v=n(467),y=n(476),m=n(3),x=n(89),b=n(15),_=n(11),w="[object Arguments]",O="[object Function]",j="[object Object]",S={};S[w]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S[j]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S[O]=S["[object WeakMap]"]=!1,t.exports=function t(e,n,M,E,P,C){var k,A=1&n,T=2&n,I=4&n;if(M&&(k=P?M(e,E,P,C):M(e)),void 0!==k)return k;if(!b(e))return e;var L=m(e);if(L){if(k=g(e),!A)return c(e,k)}else{var R=d(e),D=R==O||"[object GeneratorFunction]"==R;if(x(e))return u(e,A);if(R==j||R==w||D&&!P){if(k=T||D?{}:y(e),!A)return T?f(e,s(k,e)):l(e,o(k,e))}else{if(!S[R])return P?e:{};k=v(e,R,t,A)}}C||(C=new r);var F=C.get(e);if(F)return F;C.set(e,k);var B=I?T?p:h:T?keysIn:_,N=L?void 0:B(e);return i(N||e,function(r,i){N&&(r=e[i=r]),a(k,i,t(r,n,M,i,e,C))}),k}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(107),i=n(108),a=n(106),o=n(193),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,a(t)),t=i(t);return e}:o;t.exports=s},function(t,e,n){var r=n(196),i=n(106),a=n(11);t.exports=function(t){return r(t,a,i)}},function(t,e,n){var r=n(107),i=n(3);t.exports=function(t,e,n){var a=e(t);return i(t)?a:r(a,n(t))}},function(t,e,n){var r=n(463),i=n(103),a=n(464),o=n(198),s=n(465),u=n(23),c=n(147),l=c(r),f=c(i),h=c(a),p=c(o),d=c(s),g=u;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||a&&"[object Promise]"!=g(a.resolve())||o&&"[object Set]"!=g(new o)||s&&"[object WeakMap]"!=g(new s))&&(g=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=g},function(t,e,n){var r=n(29)(n(18),"Set");t.exports=r},function(t,e,n){var r=n(18).Uint8Array;t.exports=r},function(t,e){t.exports=function(t,e,n,r){var i=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},function(t,e,n){var r=n(102),i=n(203);t.exports=function(t,e,n,a){var o=n.length,s=o,u=!a;if(null==t)return!s;for(t=Object(t);o--;){var c=n[o];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<s;){var l=(c=n[o])[0],f=t[l],h=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var p=new r;if(a)var d=a(f,h,l,t,e,p);if(!(void 0===d?i(h,f,3,a,p):d))return!1}}return!0}},function(t,e,n){var r=n(481),i=n(20);t.exports=function t(e,n,a,o,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,a,o,t,s))}},function(t,e,n){var r=n(110),i=n(484),a=n(111);t.exports=function(t,e,n,o,s,u){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=u.get(t);if(h&&u.get(e))return h==e;var p=-1,d=!0,g=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p<l;){var v=t[p],y=e[p];if(o)var m=c?o(y,v,p,e,t,u):o(v,y,p,t,e,u);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!i(e,function(t,e){if(!a(g,e)&&(v===t||s(v,t,n,o,u)))return g.push(e)})){d=!1;break}}else if(v!==y&&!s(v,y,n,o,u)){d=!1;break}}return u.delete(t),u.delete(e),d}},function(t,e,n){var r=n(206),i=n(11);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var a=e[n],o=t[a];e[n]=[a,o,r(o)]}return e}},function(t,e,n){var r=n(15);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){var r=n(492);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(493),i=n(210);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e,n){var r=n(76),i=n(88),a=n(3),o=n(63),s=n(87),u=n(51);t.exports=function(t,e,n){for(var c=-1,l=(e=r(e,t)).length,f=!1;++c<l;){var h=u(e[c]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&s(l)&&o(h,l)&&(a(t)||i(t))}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,a=n+(r?1:-1);r?a--:++a<i;)if(e(t[a],a,t))return a;return-1}},function(t,e,n){var r=n(501)();t.exports=r},function(t,e,n){var r=n(42);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(13),i=n(9),a=n(0),o=n(179),s=n(509);t.exports=function(t,e){if(r(t))return e?t:t();if(i(t)){if(a[t])return e?a[t]:a[t]();if(o[t])return e?o[t]:o[t]();if(s[t])return e?s[t]:s[t]()}return null}},function(t,e,n){"use strict";function r(){m.point=a}function i(){o(s,u)}function a(t,e){m.point=o,s=t,u=e,e*=p.r,c=t*=p.r,l=Object(p.g)(e=e/2+p.q),f=Object(p.t)(e)}function o(t,e){e=(e*=p.r)/2+p.q;var n=(t*=p.r)-c,r=n>=0?1:-1,i=r*n,a=Object(p.g)(e),o=Object(p.t)(e),s=f*o,u=l*a+s*Object(p.g)(i),h=s*r*Object(p.t)(i);v.add(Object(p.e)(h,u)),c=t,l=a,f=o}n.d(e,"a",function(){return v}),n.d(e,"b",function(){return m});var s,u,c,l,f,h=n(53),p=n(6),d=n(32),g=n(33),v=Object(h.a)(),y=Object(h.a)(),m={point:d.a,lineStart:d.a,lineEnd:d.a,polygonStart:function(){v.reset(),m.lineStart=r,m.lineEnd=i},polygonEnd:function(){var t=+v;y.add(t<0?p.w+t:t),this.lineStart=this.lineEnd=this.point=d.a},sphere:function(){y.add(p.w)}};e.c=function(t){return y.reset(),Object(g.a)(t,m),2*y}},function(t,e,n){"use strict";function r(t,e,n,r,o,u){if(n){var c=Object(s.g)(e),l=Object(s.t)(e),f=r*n;null==o?(o=e+r*s.w,u=e-f/2):(o=i(c,o),u=i(c,u),(r>0?o<u:o>u)&&(o+=r*s.w));for(var h,p=o;r>0?p>u:p<u;p-=f)h=Object(a.g)([c,-l*Object(s.g)(p),-l*Object(s.t)(p)]),t.point(h[0],h[1])}}function i(t,e){(e=Object(a.a)(e))[0]-=t,Object(a.e)(e);var n=Object(s.b)(-e[1]);return((-e[2]<0?-n:n)+s.w-s.i)%s.w}e.a=r;var a=n(54),o=n(513),s=n(6),u=n(114);e.b=function(){function t(){var t=i.apply(this,arguments),o=a.apply(this,arguments)*s.r,f=c.apply(this,arguments)*s.r;return e=[],n=Object(u.b)(-t[0]*s.r,-t[1]*s.r,0).invert,r(l,o,f,1),t={type:"Polygon",coordinates:[e]},e=n=null,t}var e,n,i=Object(o.a)([0,0]),a=Object(o.a)(90),c=Object(o.a)(6),l={point:function(t,r){e.push(t=n(t,r)),t[0]*=s.h,t[1]*=s.h}};return t.center=function(e){return arguments.length?(i="function"==typeof e?e:Object(o.a)([+e[0],+e[1]]),t):i},t.radius=function(e){return arguments.length?(a="function"==typeof e?e:Object(o.a)(+e),t):a},t.precision=function(e){return arguments.length?(c="function"==typeof e?e:Object(o.a)(+e),t):c},t}},function(t,e,n){"use strict";e.a=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}},function(t,e,n){"use strict";function r(t,e,n,r){function f(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function h(i,a,o,s){var u=0,c=0;if(null==i||(u=p(i,o))!==(c=p(a,o))||g(i,a)<0^o>0)do{s.point(0===u||3===u?t:n,u>1?r:e)}while((u=(u+o+4)%4)!==c);else s.point(a[0],a[1])}function p(r,a){return Object(i.a)(r[0]-t)<i.i?a>0?0:3:Object(i.a)(r[0]-n)<i.i?a>0?2:1:Object(i.a)(r[1]-e)<i.i?a>0?1:0:a>0?3:2}function d(t,e){return g(t.x,e.x)}function g(t,e){var n=p(t,1),r=p(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(i){function p(t,e){f(t,e)&&E.point(t,e)}function g(i,a){var s=f(i,a);if(y&&m.push([i,a]),S)x=i,b=a,_=s,S=!1,s&&(E.lineStart(),E.point(i,a));else if(s&&j)E.point(i,a);else{var u=[w=Math.max(l,Math.min(c,w)),O=Math.max(l,Math.min(c,O))],h=[i=Math.max(l,Math.min(c,i)),a=Math.max(l,Math.min(c,a))];Object(o.a)(u,h,t,e,n,r)?(j||(E.lineStart(),E.point(u[0],u[1])),E.point(h[0],h[1]),s||E.lineEnd(),M=!1):s&&(E.lineStart(),E.point(i,a),M=!1)}w=i,O=a,j=s}var v,y,m,x,b,_,w,O,j,S,M,E=i,P=Object(a.a)(),C={point:p,lineStart:function(){C.point=g,y&&y.push(m=[]),S=!0,j=!1,w=O=NaN},lineEnd:function(){v&&(g(x,b),_&&j&&P.rejoin(),v.push(P.result())),C.point=p,j&&E.lineEnd()},polygonStart:function(){E=P,v=[],y=[],M=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=y.length;n<i;++n)for(var a,o,s=y[n],u=1,c=s.length,l=s[0],f=l[0],h=l[1];u<c;++u)a=f,o=h,f=(l=s[u])[0],h=l[1],o<=r?h>r&&(f-a)*(r-o)>(h-o)*(t-a)&&++e:h<=r&&(f-a)*(r-o)<(h-o)*(t-a)&&--e;return e}(),n=M&&e,a=(v=Object(u.merge)(v)).length;(n||a)&&(i.polygonStart(),n&&(i.lineStart(),h(null,null,1,i),i.lineEnd()),a&&Object(s.a)(v,d,e,h,i),i.polygonEnd()),E=i,v=y=m=null}};return C}}e.a=r;var i=n(6),a=n(219),o=n(514),s=n(220),u=n(16),c=1e9,l=-c;e.b=function(){var t,e,n,i=0,a=0,o=960,s=500;return n={stream:function(n){return t&&e===n?t:t=r(i,a,o,s)(e=n)},extent:function(r){return arguments.length?(i=+r[0][0],a=+r[0][1],o=+r[1][0],s=+r[1][1],t=e=null,n):[[i,a],[o,s]]}}}},function(t,e,n){"use strict";var r=n(32);e.a=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:r.a,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}},function(t,e,n){"use strict";function r(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function i(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}var a=n(221);e.a=function(t,e,n,o,s){var u,c,l=[],f=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],o=t[e];if(Object(a.a)(i,o)){for(s.lineStart(),u=0;u<e;++u)s.point((i=t[u])[0],i[1]);s.lineEnd()}else l.push(n=new r(i,t,null,!0)),f.push(n.o=new r(i,null,n,!1)),l.push(n=new r(o,t,null,!1)),f.push(n.o=new r(o,null,n,!0))}}),l.length){for(f.sort(e),i(l),i(f),u=0,c=f.length;u<c;++u)f[u].e=n=!n;for(var h,p,d=l[0];;){for(var g=d,v=!0;g.v;)if((g=g.n)===d)return;h=g.z,s.lineStart();do{if(g.v=g.o.v=!0,g.e){if(v)for(u=0,c=h.length;u<c;++u)s.point((p=h[u])[0],p[1]);else o(g.x,g.n.x,1,s);g=g.n}else{if(v)for(u=(h=g.p.z).length-1;u>=0;--u)s.point((p=h[u])[0],p[1]);else o(g.x,g.p.x,-1,s);g=g.p}h=(g=g.o).z,v=!v}while(!g.v);s.lineEnd()}}}},function(t,e,n){"use strict";var r=n(6);e.a=function(t,e){return Object(r.a)(t[0]-e[0])<r.i&&Object(r.a)(t[1]-e[1])<r.i}},function(t,e,n){"use strict";function r(){d.point=d.lineEnd=f.a}function i(t,e){e*=l.r,o=t*=l.r,s=Object(l.t)(e),u=Object(l.g)(e),d.point=a}function a(t,e){t*=l.r,e*=l.r;var n=Object(l.t)(e),r=Object(l.g)(e),i=Object(l.a)(t-o),a=Object(l.g)(i),c=r*Object(l.t)(i),f=u*n-s*r*a,h=s*n+u*r*a;p.add(Object(l.e)(Object(l.u)(c*c+f*f),h)),o=t,s=n,u=r}var o,s,u,c=n(53),l=n(6),f=n(32),h=n(33),p=Object(c.a)(),d={sphere:f.a,point:f.a,lineStart:function(){d.point=i,d.lineEnd=r},lineEnd:f.a,polygonStart:f.a,polygonEnd:f.a};e.a=function(t){return p.reset(),Object(h.a)(t,d),+p}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var r=n(32),i=1/0,a=i,o=-i,s=o;e.a={point:function(t,e){t<i&&(i=t),t>o&&(o=t),e<a&&(a=e),e>s&&(s=e)},lineStart:r.a,lineEnd:r.a,polygonStart:r.a,polygonEnd:r.a,result:function(){var t=[[i,a],[o,s]];return o=s=-(a=i=1/0),t}}},function(t,e,n){"use strict";var r=n(115);e.a=function(){return Object(r.b)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(t,e,n){"use strict";function r(t){return t.length>1}function i(t,e){return((t=t.x)[0]<0?t[1]-s.l-s.i:s.l-t[1])-((e=e.x)[0]<0?e[1]-s.l-s.i:s.l-e[1])}var a=n(219),o=n(220),s=n(6),u=n(524),c=n(16);e.a=function(t,e,n,s){return function(l,f){function h(e,n){var r=l(e,n);t(e=r[0],n=r[1])&&f.point(e,n)}function p(t,e){var n=l(t,e);w.point(n[0],n[1])}function d(){E.point=p,w.lineStart()}function g(){E.point=h,w.lineEnd()}function v(t,e){_.push([t,e]);var n=l(t,e);S.point(n[0],n[1])}function y(){S.lineStart(),_=[]}function m(){v(_[0][0],_[0][1]),S.lineEnd();var t,e,n,i,a=S.clean(),o=j.result(),s=o.length;if(_.pop(),x.push(_),_=null,s)if(1&a){if((e=(n=o[0]).length-1)>0){for(M||(f.polygonStart(),M=!0),f.lineStart(),t=0;t<e;++t)f.point((i=n[t])[0],i[1]);f.lineEnd()}}else s>1&&2&a&&o.push(o.pop().concat(o.shift())),b.push(o.filter(r))}var x,b,_,w=e(f),O=l.invert(s[0],s[1]),j=Object(a.a)(),S=e(j),M=!1,E={point:h,lineStart:d,lineEnd:g,polygonStart:function(){E.point=v,E.lineStart=y,E.lineEnd=m,b=[],x=[]},polygonEnd:function(){E.point=h,E.lineStart=d,E.lineEnd=g,b=Object(c.merge)(b);var t=Object(u.a)(x,O);b.length?(M||(f.polygonStart(),M=!0),Object(o.a)(b,i,t,n,f)):t&&(M||(f.polygonStart(),M=!0),f.lineStart(),n(null,null,1,f),f.lineEnd()),M&&(f.polygonEnd(),M=!1),b=x=null},sphere:function(){f.polygonStart(),f.lineStart(),n(null,null,1,f),f.lineEnd(),f.polygonEnd()}};return E}}},function(t,e,n){"use strict";function r(t,e,n){var r=e[1][0]-e[0][0],o=e[1][1]-e[0][1],s=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=s&&t.clipExtent(null),Object(i.a)(n,t.stream(a.a));var u=a.a.result(),c=Math.min(r/(u[1][0]-u[0][0]),o/(u[1][1]-u[0][1])),l=+e[0][0]+(r-c*(u[1][0]+u[0][0]))/2,f=+e[0][1]+(o-c*(u[1][1]+u[0][1]))/2;return null!=s&&t.clipExtent(s),t.scale(150*c).translate([l,f])}e.b=function(t){return function(e,n){return r(t,[[0,0],e],n)}},e.a=function(t){return function(e,n){return r(t,e,n)}};var i=n(33),a=n(224)},function(t,e,n){"use strict";function r(t,e){return[t,e]}e.b=r;var i=n(22);r.invert=r,e.a=function(){return Object(i.a)(r).scale(152.63)}},function(t,e,n){var r=n(77);t.exports=function(t){return null!=t&&t.length?r(t,1/0):[]}},function(t,e,n){"use strict";var r=n(231);t.exports=function(t){if(1===t.length)return 0;var e=r(t);return Math.sqrt(e)}},function(t,e,n){"use strict";var r=n(121);t.exports=function(t){if(0===t.length)throw new Error("variance requires at least one data point");return r(t,2)/t.length}},function(t,e,n){"use strict";t.exports=function(t){if(0===t.length)return 0;for(var e,n=t[0],r=0,i=1;i<t.length;i++)e=n+t[i],Math.abs(n)>=Math.abs(t[i])?r+=n-e+t[i]:r+=t[i]-e+n,n=e;return n+r}},function(t,e,n){"use strict";t.exports=function(t){return t.slice().sort(function(t,e){return t-e})}},function(t,e,n){"use strict";t.exports=function(t){if(0===t.length)throw new Error("mode requires at least one data point");if(1===t.length)return t[0];for(var e=t[0],n=NaN,r=0,i=1,a=1;a<t.length+1;a++)t[a]!==e?(i>r&&(r=i,n=e),i=1,e=t[a]):i++;return n}},function(t,e,n){"use strict";t.exports=function(t){if(0===t.length)throw new Error("min requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]<e&&(e=t[n]);return e}},function(t,e,n){"use strict";t.exports=function(t){if(0===t.length)throw new Error("max requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]>e&&(e=t[n]);return e}},function(t,e,n){"use strict";var r=n(122);t.exports=function(t){return+r(t,.5)}},function(t,e,n){"use strict";var r=n(239);t.exports=function(t,e){var n=t.slice();return r(n.slice(),e)}},function(t,e,n){"use strict";t.exports=function(t,e){e=e||Math.random;for(var n,r,i=t.length;i>0;)r=Math.floor(e()*i--),n=t[i],t[i]=t[r],t[r]=n;return t}},function(t,e,n){"use strict";t.exports=function(t){for(var e,n=0,r=0;r<t.length;r++)0!==r&&t[r]===e||(e=t[r],n++);return n}},function(t,e,n){"use strict";var r=n(28);t.exports=function(t,e){if(t.length!==e.length)throw new Error("sampleCovariance requires samples with equal lengths");if(t.length<2)throw new Error("sampleCovariance requires at least two data points in each sample");for(var n=r(t),i=r(e),a=0,o=0;o<t.length;o++)a+=(t[o]-n)*(e[o]-i);return a/(t.length-1)}},function(t,e,n){"use strict";var r=n(124);t.exports=function(t){var e=r(t);return Math.sqrt(e)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){return(t*e+n*r)/(e+r)}},function(t,e,n){"use strict";function r(t){for(var e=t,n=t,r=1;r<15;r++)e+=n*=t*t/(2*r+1);return Math.round(1e4*(.5+e/i*Math.exp(-t*t/2)))/1e4}for(var i=Math.sqrt(2*Math.PI),a=[],o=0;o<=3.09;o+=.01)a.push(r(o));t.exports=a},function(t,e,n){"use strict";t.exports=function(t){var e=8*(Math.PI-3)/(3*Math.PI*(4-Math.PI)),n=Math.sqrt(Math.sqrt(Math.pow(2/(Math.PI*e)+Math.log(1-t*t)/2,2)-Math.log(1-t*t)/e)-(2/(Math.PI*e)+Math.log(1-t*t)/2));return t>=0?n:-n}},function(t,e){t.exports=function(t){for(var e=1/t,n=[],r=0;r<=1;r+=e)n.push(r);return n}},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){function r(t,e,n){n.dataType=u;var r=a(t.features);return r.forEach(function(t){t.name=t.properties.name,t.longitude=[],t.latitude=[];var e=t.pathData=l(t);i(e)._path.forEach(function(e){t.longitude.push(e[1]),t.latitude.push(e[2])});var n=l.centroid(t);t.centroidX=n[0],t.centroidY=n[1]}),r}var i=n(249),a=n(75),o=n(0).geoPath,s=n(2),u=s.GEO,c=s.registerConnector,l=o();c("geo",r),c("geojson",r),c("GeoJSON",r),t.exports=r},function(t,e,n){function r(t){if(!(this instanceof r))return new r(t);this._path=o(t)?t:a(t),this._path=s(this._path),this._path=function(t){for(var e=[],n=["L",0,0],r=0,i=t.length;r<i;r++){var a=t[r];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;default:e.push(a)}}return e}(this._path)}function i(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}var a=n(601),o=n(602),s=n(603);t.exports=r,r.prototype.at=function(t,e){return this._walk(t,e).pos},r.prototype.length=function(){return this._walk(null).length},r.prototype._walk=function(t,e){var n=[0,0],r=[0,0,0],a=0;"number"==typeof t&&(t*=1.045);for(var o=0;o<this._path.length;o++){var s=this._path[o];if("M"===s[0]){if(n[0]=s[1],n[1]=s[2],0===t)return{length:a,pos:n}}else if("C"===s[0]){r[0]=n[0],r[1]=n[1],r[2]=a;for(var u=100,c=0;c<=u;c++){var l=function(t,e){return Math.pow(1-e,3)*n[0]+3*Math.pow(1-e,2)*e*t[1]+3*(1-e)*Math.pow(e,2)*t[3]+Math.pow(e,3)*t[5]}(s,h=c/u),f=function(t,e){return Math.pow(1-e,3)*n[1]+3*Math.pow(1-e,2)*e*t[2]+3*(1-e)*Math.pow(e,2)*t[4]+Math.pow(e,3)*t[6]}(s,h);if(a+=i(n[0],n[1],l,f),n[0]=l,n[1]=f,"number"==typeof t&&a>=t)return{length:a,pos:d=[n[0]*(1-(p=(a-t)/(a-r[2])))+r[0]*p,n[1]*(1-p)+r[1]*p]};r[0]=n[0],r[1]=n[1],r[2]=a}}else if("Q"===s[0])for(r[0]=n[0],r[1]=n[1],r[2]=a,u=100,c=0;c<=u;c++){var h=c/u;if(l=function(t,e){return Math.pow(1-e,2)*n[0]+2*(1-e)*e*t[1]+Math.pow(e,2)*t[3]}(s,h),f=function(t,e){return Math.pow(1-e,2)*n[1]+2*(1-e)*e*t[2]+Math.pow(e,2)*t[4]}(s,h),a+=i(n[0],n[1],l,f),n[0]=l,n[1]=f,"number"==typeof t&&a>=t)return{length:a,pos:d=[n[0]*(1-(p=(a-t)/(a-r[2])))+r[0]*p,n[1]*(1-p)+r[1]*p]};r[0]=n[0],r[1]=n[1],r[2]=a}else if("L"===s[0]){if(r[0]=n[0],r[1]=n[1],r[2]=a,a+=i(n[0],n[1],s[1],s[2]),n[0]=s[1],n[1]=s[2],"number"==typeof t&&a>=t){var p=(a-t)/(a-r[2]),d=[n[0]*(1-p)+r[0]*p,n[1]*(1-p)+r[1]*p];return{length:a,pos:d}}r[0]=n[0],r[1]=n[1],r[2]=a}}return{length:a/1.045,pos:n}}},function(t,e,n){"use strict";function r(t,e,n){var r=t.x,i=t.y,a=e.r+n.r,o=t.r+n.r,s=e.x-r,u=e.y-i,c=s*s+u*u;if(c){var l=.5+((o*=o)-(a*=a))/(2*c),f=Math.sqrt(Math.max(0,2*a*(o+c)-(o-=c)*o-a*a))/(2*c);n.x=r+l*s+f*u,n.y=i+l*u-f*s}else n.x=r+o,n.y=i}function i(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return i*i-1e-6>n*n+r*r}function a(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function o(t){this._=t,this.next=null,this.previous=null}function s(t){if(!(c=t.length))return 0;var e,n,s,c,l,f,h,p,d,g,v;if((e=t[0]).x=0,e.y=0,!(c>1))return e.r;if(e.x=-(n=t[1]).r,n.x=e.r,n.y=0,!(c>2))return e.r+n.r;r(n,e,s=t[2]),e=new o(e),n=new o(n),s=new o(s),e.next=s.previous=n,n.next=e.previous=s,s.next=n.previous=e;t:for(h=3;h<c;++h){r(e._,n._,s=t[h]),s=new o(s),p=n.next,d=e.previous,g=n._.r,v=e._.r;do{if(g<=v){if(i(p._,s._)){e.next=n=p,n.previous=e,--h;continue t}g+=p._.r,p=p.next}else{if(i(d._,s._)){(e=d).next=n,n.previous=e,--h;continue t}v+=d._.r,d=d.previous}}while(p!==d.next);for(s.previous=e,s.next=n,e.next=n.previous=n=s,l=a(e);(s=s.next)!==n;)(f=a(s))<l&&(e=s,l=f);n=e.next}for(e=[n._],s=n;(s=s.next)!==n;)e.push(s._);for(s=Object(u.a)(e),h=0;h<c;++h)(e=t[h]).x-=s.x,e.y-=s.y;return s.r}e.b=s;var u=n(251);e.a=function(t){return s(t),t}},function(t,e,n){"use strict";function r(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function i(t,e){var n=t.r-e.r+1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function a(t,e){for(var n=0;n<e.length;++n)if(!i(t,e[n]))return!1;return!0}function o(t,e){var n=t.x,r=t.y,i=t.r,a=e.x,o=e.y,s=e.r,u=a-n,c=o-r,l=s-i,f=Math.sqrt(u*u+c*c);return{x:(n+a+u/f*l)/2,y:(r+o+c/f*l)/2,r:(f+i+s)/2}}function s(t,e,n){var r=t.x,i=t.y,a=t.r,o=e.x,s=e.y,u=e.r,c=n.x,l=n.y,f=n.r,h=r-o,p=r-c,d=i-s,g=i-l,v=u-a,y=f-a,m=r*r+i*i-a*a,x=m-o*o-s*s+u*u,b=m-c*c-l*l+f*f,_=p*d-h*g,w=(d*b-g*x)/(2*_)-r,O=(g*v-d*y)/_,j=(p*x-h*b)/(2*_)-i,S=(h*y-p*v)/_,M=O*O+S*S-1,E=2*(a+w*O+j*S),P=w*w+j*j-a*a,C=-(M?(E+Math.sqrt(E*E-4*M*P))/(2*M):P/E);return{x:r+w+O*C,y:i+j+S*C,r:C}}var u=n(621);e.a=function(t){for(var e,n,c=0,l=(t=Object(u.a)(u.b.call(t))).length,f=[];c<l;)e=t[c],n&&i(n,e)?++c:(n=function(t){switch(t.length){case 1:return function(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return o(t[0],t[1]);case 3:return s(t[0],t[1],t[2])}}(f=function(t,e){var n,i;if(a(e,t))return[e];for(n=0;n<t.length;++n)if(r(e,t[n])&&a(o(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(i=n+1;i<t.length;++i)if(r(o(t[n],t[i]),e)&&r(o(t[n],e),t[i])&&r(o(t[i],e),t[n])&&a(s(t[n],t[i],e),t))return[t[n],t[i],e];throw new Error}(f,e)),c=0);return n}},function(t,e,n){"use strict";e.a=function(){return 0},e.b=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}},function(t,e,n){"use strict";var r=n(130);e.a=function(t){function e(t){(t=a(t))[0]<o&&(o=t[0]),t[0]>u&&(u=t[0]),t[1]<s&&(s=t[1]),t[1]>c&&(c=t[1])}function n(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(n);break;case"Point":e(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(e)}}var i,a=Object(r.a)(t.transform),o=1/0,s=o,u=-o,c=-o;for(i in t.arcs.forEach(function(t){for(var e,n=-1,r=t.length;++n<r;)(e=a(t[n],n))[0]<o&&(o=e[0]),e[0]>u&&(u=e[0]),e[1]<s&&(s=e[1]),e[1]>c&&(c=e[1])}),t.objects)n(t.objects[i]);return[o,s,u,c]}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";e.a=function(t,e){function n(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach(function(t){r[t<0?~t:t]=1}),o.push(i)}}var r={},i={},a={},o=[],s=-1;return e.forEach(function(n,r){var i,a=t.arcs[n<0?~n:n];a.length<3&&!a[1][0]&&!a[1][1]&&(i=e[++s],e[s]=n,e[r]=i)}),e.forEach(function(e){var n,r,o=function(e){var n,r=t.arcs[e<0?~e:e],i=r[0];return t.transform?(n=[0,0],r.forEach(function(t){n[0]+=t[0],n[1]+=t[1]})):n=r[r.length-1],e<0?[n,i]:[i,n]}(e),s=o[0],u=o[1];if(n=a[s])if(delete a[n.end],n.push(e),n.end=u,r=i[u]){delete i[r.start];var c=r===n?n:n.concat(r);i[c.start=n.start]=a[c.end=r.end]=c}else i[n.start]=a[n.end]=n;else if(n=i[u])if(delete i[n.start],n.unshift(e),n.start=s,r=a[s]){delete a[r.end];var l=r===n?n:r.concat(n);i[l.start=r.start]=a[l.end=n.end]=l}else i[n.start]=a[n.end]=n;else i[(n=[e]).start=s]=a[n.end=u]=n}),n(a,i),n(i,a),e.forEach(function(t){r[t<0?~t:t]||o.push([t])}),o}},function(t,e,n){"use strict";var r=n(255);e.a=function(t){if(null==t)return r.a;var e,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,r){r||(e=n=0);var u=2,c=t.length,l=new Array(c),f=Math.round((t[0]-o)/i),h=Math.round((t[1]-s)/a);for(l[0]=f-e,e=f,l[1]=h-n,n=h;u<c;)l[u]=t[u],++u;return l}}},function(t,e,n){var r=n(642);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},function(t,e){var n=Array.prototype.reverse;t.exports=function(t){return null==t?t:n.call(t)}},function(t,e,n){var r=n(120),i=n(24);t.exports=function(t,e){var n=-1,a=i(t)?Array(t.length):[];return r(t,function(t,r,i){a[++n]=e(t,r,i)}),a}},function(t,e,n){(function(t,r){var i;(function(){function a(t,e){return t.set(e[0],e[1]),t}function o(t,e){return t.add(e),t}function s(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function u(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function c(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function l(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}function f(t,e){return!(null==t||!t.length)&&x(t,e,0)>-1}function h(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function p(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function d(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function g(t,e,n,r){var i=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}function v(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function y(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function m(t,e,n,r){for(var i=t.length,a=n+(r?1:-1);r?a--:++a<i;)if(e(t[a],a,t))return a;return-1}function x(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):m(t,b,n)}function b(t){return t!=t}function _(t,e){var n=null==t?0:t.length;return n?S(t,e)/n:ft}function w(t){return function(e){return null==e?z:e[t]}}function O(t){return function(e){return null==t?z:t[e]}}function j(t,e,n,r,i){return i(t,function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)}),n}function S(t,e){for(var n,r=-1,i=t.length;++r<i;){var a=e(t[r]);a!==z&&(n=n===z?a:n+a)}return n}function M(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function E(t){return function(e){return t(e)}}function P(t,e){return p(e,function(e){return t[e]})}function C(t,e){return t.has(e)}function k(t,e){for(var n=-1,r=t.length;++n<r&&x(e,t[n],0)>-1;);return n}function A(t,e){for(var n=t.length;n--&&x(e,t[n],0)>-1;);return n}function T(t){return"\\"+en[t]}function I(t){return $e.test(t)}function L(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function R(t,e){return function(n){return t(e(n))}}function D(t,e){for(var n=-1,r=t.length,i=0,a=[];++n<r;){var o=t[n];o!==e&&o!==Y||(t[n]=Y,a[i++]=n)}return a}function F(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function B(t){return I(t)?function(t){for(var e=Ue.lastIndex=0;Ue.test(t);)++e;return e}(t):xn(t)}function N(t){return I(t)?function(t){return t.match(Ue)||[]}(t):function(t){return t.split("")}(t)}var z,q=200,V="Expected a function",H="__lodash_hash_undefined__",Y="__lodash_placeholder__",G=1,W=2,U=4,X=1,$=2,Q=1,Z=2,K=4,J=8,tt=16,et=32,nt=64,rt=128,it=256,at=512,ot=800,st=16,ut=1/0,ct=9007199254740991,lt=1.7976931348623157e308,ft=NaN,ht=4294967295,pt=ht-1,dt=ht>>>1,gt=[["ary",rt],["bind",Q],["bindKey",Z],["curry",J],["curryRight",tt],["flip",at],["partial",et],["partialRight",nt],["rearg",it]],vt="[object Arguments]",yt="[object Array]",mt="[object AsyncFunction]",xt="[object Boolean]",bt="[object Date]",_t="[object DOMException]",wt="[object Error]",Ot="[object Function]",jt="[object GeneratorFunction]",St="[object Map]",Mt="[object Number]",Et="[object Null]",Pt="[object Object]",Ct="[object Proxy]",kt="[object RegExp]",At="[object Set]",Tt="[object String]",It="[object Symbol]",Lt="[object Undefined]",Rt="[object WeakMap]",Dt="[object ArrayBuffer]",Ft="[object DataView]",Bt="[object Float32Array]",Nt="[object Float64Array]",zt="[object Int8Array]",qt="[object Int16Array]",Vt="[object Int32Array]",Ht="[object Uint8Array]",Yt="[object Uint8ClampedArray]",Gt="[object Uint16Array]",Wt="[object Uint32Array]",Ut=/\b__p \+= '';/g,Xt=/\b(__p \+=) '' \+/g,$t=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,Kt=RegExp(Qt.source),Jt=RegExp(Zt.source),te=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,ne=/<%=([\s\S]+?)%>/g,re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ie=/^\w*$/,ae=/^\./,oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,se=/[\\^$.*+?()[\]{}|]/g,ue=RegExp(se.source),ce=/^\s+|\s+$/g,le=/^\s+/,fe=/\s+$/,he=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pe=/\{\n\/\* \[wrapped with (.+)\] \*/,de=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ve=/\\(\\)?/g,ye=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,xe=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,_e=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,Oe=/^(?:0|[1-9]\d*)$/,je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,Me=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="["+Pe+"]",ke="["+Ee+"]",Ae="\\d+",Te="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ie="[^\\ud800-\\udfff"+Pe+Ae+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Le="\\ud83c[\\udffb-\\udfff]",Re="[^\\ud800-\\udfff]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ne="(?:"+Te+"|"+Ie+")",ze="(?:"+Be+"|"+Ie+")",qe="(?:"+ke+"|"+Le+")?",Ve="[\\ufe0e\\ufe0f]?"+qe+"(?:\\u200d(?:"+[Re,De,Fe].join("|")+")[\\ufe0e\\ufe0f]?"+qe+")*",He="(?:"+["[\\u2700-\\u27bf]",De,Fe].join("|")+")"+Ve,Ye="(?:"+[Re+ke+"?",ke,De,Fe,"[\\ud800-\\udfff]"].join("|")+")",Ge=RegExp("['\u2019]","g"),We=RegExp(ke,"g"),Ue=RegExp(Le+"(?="+Le+")|"+Ye+Ve,"g"),Xe=RegExp([Be+"?"+Te+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Ce,Be,"$"].join("|")+")",ze+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Ce,Be+Ne,"$"].join("|")+")",Be+"?"+Ne+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Be+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Ae,He].join("|"),"g"),$e=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),Qe=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ke=-1,Je={};Je[Bt]=Je[Nt]=Je[zt]=Je[qt]=Je[Vt]=Je[Ht]=Je[Yt]=Je[Gt]=Je[Wt]=!0,Je[vt]=Je[yt]=Je[Dt]=Je[xt]=Je[Ft]=Je[bt]=Je[wt]=Je[Ot]=Je[St]=Je[Mt]=Je[Pt]=Je[kt]=Je[At]=Je[Tt]=Je[Rt]=!1;var tn={};tn[vt]=tn[yt]=tn[Dt]=tn[Ft]=tn[xt]=tn[bt]=tn[Bt]=tn[Nt]=tn[zt]=tn[qt]=tn[Vt]=tn[St]=tn[Mt]=tn[Pt]=tn[kt]=tn[At]=tn[Tt]=tn[It]=tn[Ht]=tn[Yt]=tn[Gt]=tn[Wt]=!0,tn[wt]=tn[Ot]=tn[Rt]=!1;var en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,an="object"==typeof t&&t&&t.Object===Object&&t,on="object"==typeof self&&self&&self.Object===Object&&self,sn=an||on||Function("return this")(),un="object"==typeof e&&e&&!e.nodeType&&e,cn=un&&"object"==typeof r&&r&&!r.nodeType&&r,ln=cn&&cn.exports===un,fn=ln&&an.process,hn=function(){try{return fn&&fn.binding&&fn.binding("util")}catch(t){}}(),pn=hn&&hn.isArrayBuffer,dn=hn&&hn.isDate,gn=hn&&hn.isMap,vn=hn&&hn.isRegExp,yn=hn&&hn.isSet,mn=hn&&hn.isTypedArray,xn=w("length"),bn=O({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),_n=O({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),wn=O({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),On=function t(e){function n(t){if(Hi(t)&&!Ts(t)&&!(t instanceof O)){if(t instanceof i)return t;if(Aa.call(t,"__wrapped__"))return gi(t)}return new i(t)}function r(){}function i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=z}function O(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ht,this.__views__=[]}function Ee(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Pe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ce(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ke(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ce;++e<n;)this.add(t[e])}function Ae(t){var e=this.__data__=new Pe(t);this.size=e.size}function Te(t,e){var n=Ts(t),r=!n&&As(t),i=!n&&!r&&Ls(t),a=!n&&!r&&!i&&Ns(t),o=n||r||i||a,s=o?M(t.length,Sa):[],u=s.length;for(var c in t)!e&&!Aa.call(t,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ei(c,u))||s.push(c);return s}function Ie(t){var e=t.length;return e?t[Yn(0,e-1)]:z}function Le(t,e,n){(n===z||Ri(t[e],n))&&(n!==z||e in t)||Be(t,e,n)}function Re(t,e,n){var r=t[e];Aa.call(t,e)&&Ri(r,n)&&(n!==z||e in t)||Be(t,e,n)}function De(t,e){for(var n=t.length;n--;)if(Ri(t[n][0],e))return n;return-1}function Fe(t,e){return t&&mr(e,ra(e),t)}function Be(t,e,n){"__proto__"==e&&$a?$a(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ne(t,e){for(var n=-1,r=e.length,i=ma(r),a=null==t;++n<r;)i[n]=a?z:ea(t,e[n]);return i}function ze(t,e,n){return t==t&&(n!==z&&(t=t<=n?t:n),e!==z&&(t=t>=e?t:e)),t}function qe(t,e,n,r,i,s){var c,l=e&G,f=e&W,h=e&U;if(n&&(c=i?n(t,r,i,s):n(t)),c!==z)return c;if(!Vi(t))return t;var p=Ts(t);if(p){if(c=function(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&Aa.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!l)return yr(t,c)}else{var d=Vo(t),v=d==Ot||d==jt;if(Ls(t))return fr(t,l);if(d==Pt||d==vt||v&&!i){if(c=f||v?{}:Jr(t),!l)return f?function(t,e){return mr(t,qo(t),e)}(t,function(e,n){return e&&mr(t,ia(t),e)}(c)):function(t,e){return mr(t,zo(t),e)}(t,Fe(c,t))}else{if(!tn[d])return i?t:{};c=function(t,e,n,r){var i=t.constructor;switch(d){case Dt:return hr(t);case xt:case bt:return new i(+t);case Ft:return function(t,e){var n=r?hr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t);case Bt:case Nt:case zt:case qt:case Vt:case Ht:case Yt:case Gt:case Wt:return pr(t,r);case St:return function(t,e,n){return g(r?n(L(t),G):L(t),a,new t.constructor)}(t,0,n);case Mt:case Tt:return new i(t);case kt:return function(t){var e=new t.constructor(t.source,me.exec(t));return e.lastIndex=t.lastIndex,e}(t);case At:return function(t,e,n){return g(r?n(F(t),G):F(t),o,new t.constructor)}(t,0,n);case It:return function(t){return Eo?Oa(Eo.call(t)):{}}(t)}}(t,0,qe,l)}}s||(s=new Ae);var y=s.get(t);if(y)return y;s.set(t,c);var m=p?z:(h?f?Gr:Yr:f?ia:ra)(t);return u(m||t,function(r,i){m&&(r=t[i=r]),Re(c,i,qe(r,e,n,i,t,s))}),c}function Ve(t,e,n){var r=n.length;if(null==t)return!r;for(t=Oa(t);r--;){var i=n[r],a=t[i];if(a===z&&!(i in t)||!(0,e[i])(a))return!1}return!0}function He(t,e,n){if("function"!=typeof t)throw new Ma(V);return Go(function(){t.apply(z,n)},e)}function Ye(t,e,n,r){var i=-1,a=f,o=!0,s=t.length,u=[],c=e.length;if(!s)return u;n&&(e=p(e,E(n))),r?(a=h,o=!1):e.length>=q&&(a=C,o=!1,e=new ke(e));t:for(;++i<s;){var l=t[i],d=null==n?l:n(l);if(l=r||0!==l?l:0,o&&d==d){for(var g=c;g--;)if(e[g]===d)continue t;u.push(l)}else a(e,d,r)||u.push(l)}return u}function Ue(t,e,n){for(var r=-1,i=t.length;++r<i;){var a=t[r],o=e(a);if(null!=o&&(s===z?o==o&&!Ui(o):n(o,s)))var s=o,u=a}return u}function $e(t,e){var n=[];return ko(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function en(t,e,n,r,i){var a=-1,o=t.length;for(n||(n=ti),i||(i=[]);++a<o;){var s=t[a];e>0&&n(s)?e>1?en(s,e-1,n,r,i):d(i,s):r||(i[i.length]=s)}return i}function an(t,e){return t&&To(t,e,ra)}function on(t,e){return t&&Io(t,e,ra)}function un(t,e){return l(e,function(e){return Ni(t[e])})}function cn(t,e){for(var n=0,r=(e=cr(e,t)).length;null!=t&&n<r;)t=t[pi(e[n++])];return n&&n==r?t:z}function fn(t,e,n){var r=e(t);return Ts(t)?r:d(r,n(t))}function hn(t){return null==t?t===z?Lt:Et:Xa&&Xa in Oa(t)?function(t){var e=Aa.call(t,Xa),n=t[Xa];try{t[Xa]=z;var r=!0}catch(t){}var i=La.call(t);return r&&(e?t[Xa]=n:delete t[Xa]),i}(t):function(t){return La.call(t)}(t)}function xn(t,e){return t>e}function jn(t,e){return null!=t&&Aa.call(t,e)}function Sn(t,e){return null!=t&&e in Oa(t)}function Mn(t,e,n){for(var r=n?h:f,i=t[0].length,a=t.length,o=a,s=ma(a),u=1/0,c=[];o--;){var l=t[o];o&&e&&(l=p(l,E(e))),u=so(l.length,u),s[o]=!n&&(e||i>=120&&l.length>=120)?new ke(o&&l):z}l=t[0];var d=-1,g=s[0];t:for(;++d<i&&c.length<u;){var v=l[d],y=e?e(v):v;if(v=n||0!==v?v:0,!(g?C(g,y):r(c,y,n))){for(o=a;--o;){var m=s[o];if(!(m?C(m,y):r(t[o],y,n)))continue t}g&&g.push(y),c.push(v)}}return c}function En(t,e,n){var r=null==(t=ci(t,e=cr(e,t)))?t:t[pi(bi(e))];return null==r?z:s(r,t,n)}function Pn(t){return Hi(t)&&hn(t)==vt}function Cn(t,e,n,r,i){return t===e||(null==t||null==e||!Hi(t)&&!Hi(e)?t!=t&&e!=e:function(t,e,n,r,i,a){var o=Ts(t),s=Ts(e),u=o?yt:Vo(t),c=s?yt:Vo(e),l=(u=u==vt?Pt:u)==Pt,f=(c=c==vt?Pt:c)==Pt,h=u==c;if(h&&Ls(t)){if(!Ls(e))return!1;o=!0,l=!1}if(h&&!l)return a||(a=new Ae),o||Ns(t)?Vr(t,e,n,r,i,a):function(t,e,n,r,i,a,o){switch(u){case Ft:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Dt:return!(t.byteLength!=e.byteLength||!a(new za(t),new za(e)));case xt:case bt:case Mt:return Ri(+t,+e);case wt:return t.name==e.name&&t.message==e.message;case kt:case Tt:return t==e+"";case St:var s=L;case At:if(s||(s=F),t.size!=e.size&&!(r&X))return!1;var c=o.get(t);if(c)return c==e;r|=$,o.set(t,e);var l=Vr(s(t),s(e),r,i,a,o);return o.delete(t),l;case It:if(Eo)return Eo.call(t)==Eo.call(e)}return!1}(t,e,0,n,r,i,a);if(!(n&X)){var p=l&&Aa.call(t,"__wrapped__"),d=f&&Aa.call(e,"__wrapped__");if(p||d){var g=p?t.value():t,v=d?e.value():e;return a||(a=new Ae),i(g,v,n,r,a)}}return!!h&&(a||(a=new Ae),function(t,e,n,r,i,a){var o=n&X,s=Yr(t),u=s.length;if(u!=Yr(e).length&&!o)return!1;for(var c=u;c--;){var l=s[c];if(!(o?l in e:Aa.call(e,l)))return!1}var f=a.get(t);if(f&&a.get(e))return f==e;var h=!0;a.set(t,e),a.set(e,t);for(var p=o;++c<u;){var d=t[l=s[c]],g=e[l];if(r)var v=o?r(g,d,l,e,t,a):r(d,g,l,t,e,a);if(!(v===z?d===g||i(d,g,n,r,a):v)){h=!1;break}p||(p="constructor"==l)}if(h&&!p){var y=t.constructor,m=e.constructor;y!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m)&&(h=!1)}return a.delete(t),a.delete(e),h}(t,e,n,r,i,a))}(t,e,n,r,Cn,i))}function kn(t,e,n,r){var i=n.length,a=i,o=!r;if(null==t)return!a;for(t=Oa(t);i--;){var s=n[i];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<a;){var u=(s=n[i])[0],c=t[u],l=s[1];if(o&&s[2]){if(c===z&&!(u in t))return!1}else{var f=new Ae;if(r)var h=r(c,l,u,t,e,f);if(!(h===z?Cn(l,c,X|$,r,f):h))return!1}}return!0}function An(t){return!(!Vi(t)||Ia&&Ia in t)&&(Ni(t)?Fa:_e).test(di(t))}function Tn(t){return"function"==typeof t?t:null==t?fa:"object"==typeof t?Ts(t)?Fn(t[0],t[1]):Dn(t):ga(t)}function In(t){if(!ai(t))return ao(t);var e=[];for(var n in Oa(t))Aa.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Ln(t,e){return t<e}function Rn(t,e){var n=-1,r=Di(t)?ma(t.length):[];return ko(t,function(t,i,a){r[++n]=e(t,i,a)}),r}function Dn(t){var e=Qr(t);return 1==e.length&&e[0][2]?si(e[0][0],e[0][1]):function(n){return n===t||kn(n,t,e)}}function Fn(t,e){return ri(t)&&oi(e)?si(pi(t),e):function(n){var r=ea(n,t);return r===z&&r===e?na(n,t):Cn(e,r,X|$)}}function Bn(t,e,n,r,i){t!==e&&To(e,function(a,o){if(Vi(a))i||(i=new Ae),function(t,e,n,r,i,a,o){var s=t[n],u=e[n],c=o.get(u);if(c)Le(t,n,c);else{var l=a?a(s,u,n+"",t,e,o):z,f=l===z;if(f){var h=Ts(u),p=!h&&Ls(u),d=!h&&!p&&Ns(u);l=u,h||p||d?Ts(s)?l=s:Fi(s)?l=yr(s):p?(f=!1,l=fr(u,!0)):d?(f=!1,l=pr(u,!0)):l=[]:Gi(u)||As(u)?(l=s,As(s)?l=Ji(s):(!Vi(s)||r&&Ni(s))&&(l=Jr(u))):f=!1}f&&(o.set(u,l),i(l,u,r,a,o),o.delete(u)),Le(t,n,l)}}(t,e,o,n,Bn,r,i);else{var s=r?r(t[o],a,o+"",t,e,i):z;s===z&&(s=a),Le(t,o,s)}},ia)}function Nn(t,e){var n=t.length;if(n)return ei(e+=e<0?n:0,n)?t[e]:z}function zn(t,e,n){var r=-1;return e=p(e.length?e:[fa],E(Xr())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Rn(t,function(t,n,i){return{criteria:p(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,a=e.criteria,o=i.length,s=n.length;++r<o;){var u=dr(i[r],a[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)})}function qn(t,e,n){for(var r=-1,i=e.length,a={};++r<i;){var o=e[r],s=cn(t,o);n(s,o)&&Un(a,cr(o,t),s)}return a}function Vn(t,e,n,r){var i=r?function(t,e,n,r){for(var i=n-1,a=t.length;++i<a;)if(r(t[i],e))return i;return-1}:x,a=-1,o=e.length,s=t;for(t===e&&(e=yr(e)),n&&(s=p(t,E(n)));++a<o;)for(var u=0,c=e[a],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==t&&Ga.call(s,u,1),Ga.call(t,u,1);return t}function Hn(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==a){var a=i;ei(i)?Ga.call(t,i,1):er(t,i)}}return t}function Yn(t,e){return t+to(lo()*(e-t+1))}function Gn(t,e){var n="";if(!t||e<1||e>ct)return n;do{e%2&&(n+=t),(e=to(e/2))&&(t+=t)}while(e);return n}function Wn(t,e){return Wo(ui(t,e,fa),t+"")}function Un(t,e,n,r){if(!Vi(t))return t;for(var i=-1,a=(e=cr(e,t)).length,o=a-1,s=t;null!=s&&++i<a;){var u=pi(e[i]),c=n;if(i!=o){var l=s[u];(c=r?r(l,u,s):z)===z&&(c=Vi(l)?l:ei(e[i+1])?[]:{})}Re(s,u,c),s=s[u]}return t}function Xn(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=ma(i);++r<i;)a[r]=t[r+e];return a}function $n(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=dt){for(;r<i;){var a=r+i>>>1,o=t[a];null!==o&&!Ui(o)&&(n?o<=e:o<e)?r=a+1:i=a}return i}return Qn(t,e,fa,n)}function Qn(t,e,n,r){e=n(e);for(var i=0,a=null==t?0:t.length,o=e!=e,s=null===e,u=Ui(e),c=e===z;i<a;){var l=to((i+a)/2),f=n(t[l]),h=f!==z,p=null===f,d=f==f,g=Ui(f);if(o)var v=r||d;else v=c?d&&(r||h):s?d&&h&&(r||!p):u?d&&h&&!p&&(r||!g):!p&&!g&&(r?f<=e:f<e);v?i=l+1:a=l}return so(a,pt)}function Zn(t,e){for(var n=-1,r=t.length,i=0,a=[];++n<r;){var o=t[n],s=e?e(o):o;if(!n||!Ri(s,u)){var u=s;a[i++]=0===o?0:o}}return a}function Kn(t){return"number"==typeof t?t:Ui(t)?ft:+t}function Jn(t){if("string"==typeof t)return t;if(Ts(t))return p(t,Jn)+"";if(Ui(t))return Po?Po.call(t):"";var e=t+"";return"0"==e&&1/t==-ut?"-0":e}function tr(t,e,n){var r=-1,i=f,a=t.length,o=!0,s=[],u=s;if(n)o=!1,i=h;else if(a>=q){var c=e?null:Bo(t);if(c)return F(c);o=!1,i=C,u=new ke}else u=e?[]:s;t:for(;++r<a;){var l=t[r],p=e?e(l):l;if(l=n||0!==l?l:0,o&&p==p){for(var d=u.length;d--;)if(u[d]===p)continue t;e&&u.push(p),s.push(l)}else i(u,p,n)||(u!==s&&u.push(p),s.push(l))}return s}function er(t,e){return null==(t=ci(t,e=cr(e,t)))||delete t[pi(bi(e))]}function nr(t,e,n,r){return Un(t,e,n(cn(t,e)),r)}function rr(t,e,n,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&e(t[a],a,t););return n?Xn(t,r?0:a,r?a+1:i):Xn(t,r?a+1:0,r?i:a)}function ir(t,e){var n=t;return n instanceof O&&(n=n.value()),g(e,function(t,e){return e.func.apply(e.thisArg,d([t],e.args))},n)}function ar(t,e,n){var r=t.length;if(r<2)return r?tr(t[0]):[];for(var i=-1,a=ma(r);++i<r;)for(var o=t[i],s=-1;++s<r;)s!=i&&(a[i]=Ye(a[i]||o,t[s],e,n));return tr(en(a,1),e,n)}function or(t,e,n){for(var r=-1,i=t.length,a=e.length,o={};++r<i;)n(o,t[r],r<a?e[r]:z);return o}function sr(t){return Fi(t)?t:[]}function ur(t){return"function"==typeof t?t:fa}function cr(t,e){return Ts(t)?t:ri(t,e)?[t]:Uo(ta(t))}function lr(t,e,n){var r=t.length;return n=n===z?r:n,!e&&n>=r?t:Xn(t,e,n)}function fr(t,e){if(e)return t.slice();var n=t.length,r=qa?qa(n):new t.constructor(n);return t.copy(r),r}function hr(t){var e=new t.constructor(t.byteLength);return new za(e).set(new za(t)),e}function pr(t,e){var n=e?hr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function dr(t,e){if(t!==e){var n=t!==z,r=null===t,i=t==t,a=Ui(t),o=e!==z,s=null===e,u=e==e,c=Ui(e);if(!s&&!c&&!a&&t>e||a&&o&&u&&!s&&!c||r&&o&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&t<e||c&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!u)return-1}return 0}function gr(t,e,n,r){for(var i=-1,a=t.length,o=n.length,s=-1,u=e.length,c=oo(a-o,0),l=ma(u+c),f=!r;++s<u;)l[s]=e[s];for(;++i<o;)(f||i<a)&&(l[n[i]]=t[i]);for(;c--;)l[s++]=t[i++];return l}function vr(t,e,n,r){for(var i=-1,a=t.length,o=-1,s=n.length,u=-1,c=e.length,l=oo(a-s,0),f=ma(l+c),h=!r;++i<l;)f[i]=t[i];for(var p=i;++u<c;)f[p+u]=e[u];for(;++o<s;)(h||i<a)&&(f[p+n[o]]=t[i++]);return f}function yr(t,e){var n=-1,r=t.length;for(e||(e=ma(r));++n<r;)e[n]=t[n];return e}function mr(t,e,n,r){var i=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var s=e[a],u=r?r(n[s],t[s],s,n,t):z;u===z&&(u=t[s]),i?Be(n,s,u):Re(n,s,u)}return n}function xr(t,e){return function(n,r){var i=Ts(n)?function(t,e,n,r){for(var i=-1,a=null==t?0:t.length;++i<a;){var o=t[i];e(r,o,n(o),t)}return r}:function(t,e,n,r){return ko(t,function(t,i,a){e(r,t,n(t),a)}),r},a=e?e():{};return i(n,t,Xr(r,2),a)}}function br(t){return Wn(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:z,o=i>2?n[2]:z;for(a=t.length>3&&"function"==typeof a?(i--,a):z,o&&ni(n[0],n[1],o)&&(a=i<3?z:a,i=1),e=Oa(e);++r<i;){var s=n[r];s&&t(e,s,r,a)}return e})}function _r(t,e){return function(n,r){if(null==n)return n;if(!Di(n))return t(n,r);for(var i=n.length,a=e?i:-1,o=Oa(n);(e?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function wr(t){return function(e,n,r){for(var i=-1,a=Oa(e),o=r(e),s=o.length;s--;){var u=o[t?s:++i];if(!1===n(a[u],u,a))break}return e}}function Or(t){return function(e){var n=I(e=ta(e))?N(e):z,r=n?n[0]:e.charAt(0),i=n?lr(n,1).join(""):e.slice(1);return r[t]()+i}}function jr(t){return function(e){return g(ca(ua(e).replace(Ge,"")),t,"")}}function Sr(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Co(t.prototype),r=t.apply(n,e);return Vi(r)?r:n}}function Mr(t){return function(e,n,r){var i=Oa(e);if(!Di(e)){var a=Xr(n,3);e=ra(e),n=function(t){return a(i[t],t,i)}}var o=t(e,n,r);return o>-1?i[a?e[o]:o]:z}}function Er(t){return Hr(function(e){var n=e.length,r=n,a=i.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new Ma(V);if(a&&!s&&"wrapper"==Wr(o))var s=new i([],!0)}for(r=s?r:n;++r<n;){var u=Wr(o=e[r]),c="wrapper"==u?No(o):z;s=c&&ii(c[0])&&c[1]==(rt|J|et|it)&&!c[4].length&&1==c[9]?s[Wr(c[0])].apply(s,c[3]):1==o.length&&ii(o)?s[u]():s.thru(o)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&Ts(r))return s.plant(r).value();for(var i=0,a=n?e[i].apply(this,t):r;++i<n;)a=e[i].call(this,a);return a}})}function Pr(t,e,n,r,i,a,o,s,u,c){var l=e&rt,f=e&Q,h=e&Z,p=e&(J|tt),d=e&at,g=h?z:Sr(t);return function v(){for(var y=arguments.length,m=ma(y),x=y;x--;)m[x]=arguments[x];if(p)var b=Ur(v),_=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(m,b);if(r&&(m=gr(m,r,i,p)),a&&(m=vr(m,a,o,p)),y-=_,p&&y<c){var w=D(m,b);return Rr(t,e,Pr,v.placeholder,n,m,w,s,u,c-y)}var O=f?n:this,j=h?O[t]:t;return y=m.length,s?m=function(t,e){for(var n=t.length,r=so(e.length,n),i=yr(t);r--;){var a=e[r];t[r]=ei(a,n)?i[a]:z}return t}(m,s):d&&y>1&&m.reverse(),l&&u<y&&(m.length=u),this&&this!==sn&&this instanceof v&&(j=g||Sr(j)),j.apply(O,m)}}function Cr(t,e){return function(n,r){return function(t,e,n,r){return an(t,function(t,i,a){e(r,n(t),i,a)}),r}(n,t,e(r),{})}}function kr(t,e){return function(n,r){var i;if(n===z&&r===z)return e;if(n!==z&&(i=n),r!==z){if(i===z)return r;"string"==typeof n||"string"==typeof r?(n=Jn(n),r=Jn(r)):(n=Kn(n),r=Kn(r)),i=t(n,r)}return i}}function Ar(t){return Hr(function(e){return e=p(e,E(Xr())),Wn(function(n){var r=this;return t(e,function(t){return s(t,r,n)})})})}function Tr(t,e){var n=(e=e===z?" ":Jn(e)).length;if(n<2)return n?Gn(e,t):e;var r=Gn(e,Ja(t/B(e)));return I(e)?lr(N(r),0,t).join(""):r.slice(0,t)}function Ir(t){return function(e,n,r){return r&&"number"!=typeof r&&ni(e,n,r)&&(n=r=z),e=$i(e),n===z?(n=e,e=0):n=$i(n),function(t,e,n,r){for(var i=-1,a=oo(Ja((e-t)/(n||1)),0),o=ma(a);a--;)o[r?a:++i]=t,t+=n;return o}(e,n,r=r===z?e<n?1:-1:$i(r),t)}}function Lr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Ki(e),n=Ki(n)),t(e,n)}}function Rr(t,e,n,r,i,a,o,s,u,c){var l=e&J;e|=l?et:nt,(e&=~(l?nt:et))&K||(e&=~(Q|Z));var f=[t,e,i,l?a:z,l?o:z,l?z:a,l?z:o,s,u,c],h=n.apply(z,f);return ii(t)&&Yo(h,f),h.placeholder=r,li(h,t,e)}function Dr(t){var e=wa[t];return function(t,n){if(t=Ki(t),n=null==n?0:so(Qi(n),292)){var r=(ta(t)+"e").split("e");return+((r=(ta(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}function Fr(t){return function(e){var n=Vo(e);return n==St?L(e):n==At?function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}(e):function(t,e){return p(e,function(e){return[e,t[e]]})}(e,t(e))}}function Br(t,e,n,r,i,a,o,u){var c=e&Z;if(!c&&"function"!=typeof t)throw new Ma(V);var l=r?r.length:0;if(l||(e&=~(et|nt),r=i=z),o=o===z?o:oo(Qi(o),0),u=u===z?u:Qi(u),l-=i?i.length:0,e&nt){var f=r,h=i;r=i=z}var p=c?z:No(t),d=[t,e,n,r,i,f,h,a,o,u];if(p&&function(t,e){var n=t[1],r=e[1],i=n|r;if(!(i<(Q|Z|rt)||r==rt&&n==J||r==rt&&n==it&&t[7].length<=e[8]||r==(rt|it)&&e[7].length<=e[8]&&n==J))return t;r&Q&&(t[2]=e[2],i|=n&Q?0:K);var a=e[3];if(a){var o=t[3];t[3]=o?gr(o,a,e[4]):a,t[4]=o?D(t[3],Y):e[4]}(a=e[5])&&(t[5]=(o=t[5])?vr(o,a,e[6]):a,t[6]=o?D(t[5],Y):e[6]),(a=e[7])&&(t[7]=a),r&rt&&(t[8]=null==t[8]?e[8]:so(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(d,p),t=d[0],e=d[1],n=d[2],r=d[3],i=d[4],!(u=d[9]=d[9]===z?c?0:t.length:oo(d[9]-l,0))&&e&(J|tt)&&(e&=~(J|tt)),e&&e!=Q)g=e==J||e==tt?function(t,e,n){var r=Sr(t);return function i(){for(var a=arguments.length,o=ma(a),u=a,c=Ur(i);u--;)o[u]=arguments[u];var l=a<3&&o[0]!==c&&o[a-1]!==c?[]:D(o,c);return(a-=l.length)<n?Rr(t,e,Pr,i.placeholder,z,o,l,z,z,n-a):s(this&&this!==sn&&this instanceof i?r:t,this,o)}}(t,e,u):e!=et&&e!=(Q|et)||i.length?Pr.apply(z,d):function(t,e,n,r){var i=e&Q,a=Sr(t);return function e(){for(var o=-1,u=arguments.length,c=-1,l=r.length,f=ma(l+u),h=this&&this!==sn&&this instanceof e?a:t;++c<l;)f[c]=r[c];for(;u--;)f[c++]=arguments[++o];return s(h,i?n:this,f)}}(t,e,n,r);else var g=function(t,e,n){var r=e&Q,i=Sr(t);return function e(){return(this&&this!==sn&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return li((p?Lo:Yo)(g,d),t,e)}function Nr(t,e,n,r){return t===z||Ri(t,Pa[n])&&!Aa.call(r,n)?e:t}function zr(t,e,n,r,i,a){return Vi(t)&&Vi(e)&&(a.set(e,t),Bn(t,e,z,zr,a),a.delete(e)),t}function qr(t){return Gi(t)?z:t}function Vr(t,e,n,r,i,a){var o=n&X,s=t.length,u=e.length;if(s!=u&&!(o&&u>s))return!1;var c=a.get(t);if(c&&a.get(e))return c==e;var l=-1,f=!0,h=n&$?new ke:z;for(a.set(t,e),a.set(e,t);++l<s;){var p=t[l],d=e[l];if(r)var g=o?r(d,p,l,e,t,a):r(p,d,l,t,e,a);if(g!==z){if(g)continue;f=!1;break}if(h){if(!v(e,function(t,e){if(!C(h,e)&&(p===t||i(p,t,n,r,a)))return h.push(e)})){f=!1;break}}else if(p!==d&&!i(p,d,n,r,a)){f=!1;break}}return a.delete(t),a.delete(e),f}function Hr(t){return Wo(ui(t,z,mi),t+"")}function Yr(t){return fn(t,ra,zo)}function Gr(t){return fn(t,ia,qo)}function Wr(t){for(var e=t.name+"",n=bo[e],r=Aa.call(bo,e)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==t)return i.name}return e}function Ur(t){return(Aa.call(n,"placeholder")?n:t).placeholder}function Xr(){var t=n.iteratee||ha;return t=t===ha?Tn:t,arguments.length?t(arguments[0],arguments[1]):t}function $r(t,e){var n=t.__data__;return function(t){var n=typeof e;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e}()?n["string"==typeof e?"string":"hash"]:n.map}function Qr(t){for(var e=ra(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,oi(i)]}return e}function Zr(t,e){var n=function(t,e){return null==t?z:t[e]}(t,e);return An(n)?n:z}function Kr(t,e,n){for(var r=-1,i=(e=cr(e,t)).length,a=!1;++r<i;){var o=pi(e[r]);if(!(a=null!=t&&n(t,o)))break;t=t[o]}return a||++r!=i?a:!!(i=null==t?0:t.length)&&qi(i)&&ei(o,i)&&(Ts(t)||As(t))}function Jr(t){return"function"!=typeof t.constructor||ai(t)?{}:Co(Va(t))}function ti(t){return Ts(t)||As(t)||!!(Wa&&t&&t[Wa])}function ei(t,e){return!!(e=null==e?ct:e)&&("number"==typeof t||Oe.test(t))&&t>-1&&t%1==0&&t<e}function ni(t,e,n){if(!Vi(n))return!1;var r=typeof e;return!!("number"==r?Di(n)&&ei(e,n.length):"string"==r&&e in n)&&Ri(n[e],t)}function ri(t,e){if(Ts(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ui(t))||ie.test(t)||!re.test(t)||null!=e&&t in Oa(e)}function ii(t){var e=Wr(t),r=n[e];if("function"!=typeof r||!(e in O.prototype))return!1;if(t===r)return!0;var i=No(r);return!!i&&t===i[0]}function ai(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Pa)}function oi(t){return t==t&&!Vi(t)}function si(t,e){return function(n){return null!=n&&n[t]===e&&(e!==z||t in Oa(n))}}function ui(t,e,n){return e=oo(e===z?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=oo(r.length-e,0),o=ma(a);++i<a;)o[i]=r[e+i];i=-1;for(var u=ma(e+1);++i<e;)u[i]=r[i];return u[e]=n(o),s(t,this,u)}}function ci(t,e){return e.length<2?t:cn(t,Xn(e,0,-1))}function li(t,e,n){var r=e+"";return Wo(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(he,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return u(gt,function(n){var r="_."+n[0];e&n[1]&&!f(t,r)&&t.push(r)}),t.sort()}(function(t){var e=r.match(pe);return e?e[1].split(de):[]}(),n)))}function fi(t){var e=0,n=0;return function(){var r=uo(),i=st-(r-n);if(n=r,i>0){if(++e>=ot)return arguments[0]}else e=0;return t.apply(z,arguments)}}function hi(t,e){var n=-1,r=t.length,i=r-1;for(e=e===z?r:e;++n<e;){var a=Yn(n,i),o=t[a];t[a]=t[n],t[n]=o}return t.length=e,t}function pi(t){if("string"==typeof t||Ui(t))return t;var e=t+"";return"0"==e&&1/t==-ut?"-0":e}function di(t){if(null!=t){try{return ka.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function gi(t){if(t instanceof O)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=yr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function vi(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Qi(n);return i<0&&(i=oo(r+i,0)),m(t,Xr(e,3),i)}function yi(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==z&&(i=Qi(n),i=n<0?oo(r+i,0):so(i,r-1)),m(t,Xr(e,3),i,!0)}function mi(t){return null!=t&&t.length?en(t,1):[]}function xi(t){return t&&t.length?t[0]:z}function bi(t){var e=null==t?0:t.length;return e?t[e-1]:z}function _i(t,e){return t&&t.length&&e&&e.length?Vn(t,e):t}function wi(t){return null==t?t:fo.call(t)}function Oi(t){if(!t||!t.length)return[];var e=0;return t=l(t,function(t){if(Fi(t))return e=oo(t.length,e),!0}),M(e,function(e){return p(t,w(e))})}function ji(t,e){if(!t||!t.length)return[];var n=Oi(t);return null==e?n:p(n,function(t){return s(e,z,t)})}function Si(t){var e=n(t);return e.__chain__=!0,e}function Mi(t,e){return e(t)}function Ei(t,e){return(Ts(t)?u:ko)(t,Xr(e,3))}function Pi(t,e){return(Ts(t)?function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}:Ao)(t,Xr(e,3))}function Ci(t,e){return(Ts(t)?p:Rn)(t,Xr(e,3))}function ki(t,e,n){return e=n?z:e,Br(t,rt,z,z,z,z,e=t&&null==e?t.length:e)}function Ai(t,e){var n;if("function"!=typeof e)throw new Ma(V);return t=Qi(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=z),n}}function Ti(t,e,n){function r(e){var n=u,r=c;return u=c=z,d=e,f=t.apply(r,n)}function i(t){var n=t-p;return p===z||n>=e||n<0||v&&t-d>=l}function a(){var t=bs();if(i(t))return o(t);h=Go(a,function(t){var n=e-(t-p);return v?so(n,l-(t-d)):n}(t))}function o(t){return h=z,y&&u?r(t):(u=c=z,f)}function s(){var t=bs(),n=i(t);if(u=arguments,c=this,p=t,n){if(h===z)return function(t){return d=t,h=Go(a,e),g?r(t):f}(p);if(v)return h=Go(a,e),r(p)}return h===z&&(h=Go(a,e)),f}var u,c,l,f,h,p,d=0,g=!1,v=!1,y=!0;if("function"!=typeof t)throw new Ma(V);return e=Ki(e)||0,Vi(n)&&(g=!!n.leading,l=(v="maxWait"in n)?oo(Ki(n.maxWait)||0,e):l,y="trailing"in n?!!n.trailing:y),s.cancel=function(){h!==z&&Fo(h),d=0,u=p=c=h=z},s.flush=function(){return h===z?f:o(bs())},s}function Ii(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ma(V);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ii.Cache||Ce),n}function Li(t){if("function"!=typeof t)throw new Ma(V);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ri(t,e){return t===e||t!=t&&e!=e}function Di(t){return null!=t&&qi(t.length)&&!Ni(t)}function Fi(t){return Hi(t)&&Di(t)}function Bi(t){if(!Hi(t))return!1;var e=hn(t);return e==wt||e==_t||"string"==typeof t.message&&"string"==typeof t.name&&!Gi(t)}function Ni(t){if(!Vi(t))return!1;var e=hn(t);return e==Ot||e==jt||e==mt||e==Ct}function zi(t){return"number"==typeof t&&t==Qi(t)}function qi(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=ct}function Vi(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Hi(t){return null!=t&&"object"==typeof t}function Yi(t){return"number"==typeof t||Hi(t)&&hn(t)==Mt}function Gi(t){if(!Hi(t)||hn(t)!=Pt)return!1;var e=Va(t);if(null===e)return!0;var n=Aa.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ka.call(n)==Ra}function Wi(t){return"string"==typeof t||!Ts(t)&&Hi(t)&&hn(t)==Tt}function Ui(t){return"symbol"==typeof t||Hi(t)&&hn(t)==It}function Xi(t){if(!t)return[];if(Di(t))return Wi(t)?N(t):yr(t);if(Ua&&t[Ua])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Ua]());var e=Vo(t);return(e==St?L:e==At?F:oa)(t)}function $i(t){return t?(t=Ki(t))===ut||t===-ut?(t<0?-1:1)*lt:t==t?t:0:0===t?t:0}function Qi(t){var e=$i(t),n=e%1;return e==e?n?e-n:e:0}function Zi(t){return t?ze(Qi(t),0,ht):0}function Ki(t){if("number"==typeof t)return t;if(Ui(t))return ft;if(Vi(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Vi(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ce,"");var n=be.test(t);return n||we.test(t)?rn(t.slice(2),n?2:8):xe.test(t)?ft:+t}function Ji(t){return mr(t,ia(t))}function ta(t){return null==t?"":Jn(t)}function ea(t,e,n){var r=null==t?z:cn(t,e);return r===z?n:r}function na(t,e){return null!=t&&Kr(t,e,Sn)}function ra(t){return Di(t)?Te(t):In(t)}function ia(t){return Di(t)?Te(t,!0):function(t){if(!Vi(t))return function(t){var e=[];if(null!=t)for(var n in Oa(t))e.push(n);return e}(t);var e=ai(t),n=[];for(var r in t)("constructor"!=r||!e&&Aa.call(t,r))&&n.push(r);return n}(t)}function aa(t,e){if(null==t)return{};var n=p(Gr(t),function(t){return[t]});return e=Xr(e),qn(t,n,function(t,n){return e(t,n[0])})}function oa(t){return null==t?[]:P(t,ra(t))}function sa(t){return fu(ta(t).toLowerCase())}function ua(t){return(t=ta(t))&&t.replace(je,bn).replace(We,"")}function ca(t,e,n){return t=ta(t),(e=n?z:e)===z?function(t){return Qe.test(t)}(t)?function(t){return t.match(Xe)||[]}(t):function(t){return t.match(ge)||[]}(t):t.match(e)||[]}function la(t){return function(){return t}}function fa(t){return t}function ha(t){return Tn("function"==typeof t?t:qe(t,G))}function pa(t,e,n){var r=ra(e),i=un(e,r);null!=n||Vi(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=un(e,ra(e)));var a=!(Vi(n)&&"chain"in n&&!n.chain),o=Ni(t);return u(i,function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__);return(n.__actions__=yr(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,d([this.value()],arguments))})}),t}function da(){}function ga(t){return ri(t)?w(pi(t)):function(t){return function(e){return cn(e,t)}}(t)}function va(){return[]}function ya(){return!1}var ma=(e=null==e?sn:On.defaults(sn.Object(),e,On.pick(sn,Ze))).Array,xa=e.Date,ba=e.Error,_a=e.Function,wa=e.Math,Oa=e.Object,ja=e.RegExp,Sa=e.String,Ma=e.TypeError,Ea=ma.prototype,Pa=Oa.prototype,Ca=e["__core-js_shared__"],ka=_a.prototype.toString,Aa=Pa.hasOwnProperty,Ta=0,Ia=function(){var t=/[^.]+$/.exec(Ca&&Ca.keys&&Ca.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),La=Pa.toString,Ra=ka.call(Oa),Da=sn._,Fa=ja("^"+ka.call(Aa).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ba=ln?e.Buffer:z,Na=e.Symbol,za=e.Uint8Array,qa=Ba?Ba.allocUnsafe:z,Va=R(Oa.getPrototypeOf,Oa),Ha=Oa.create,Ya=Pa.propertyIsEnumerable,Ga=Ea.splice,Wa=Na?Na.isConcatSpreadable:z,Ua=Na?Na.iterator:z,Xa=Na?Na.toStringTag:z,$a=function(){try{var t=Zr(Oa,"defineProperty");return t({},"",{}),t}catch(t){}}(),Qa=e.clearTimeout!==sn.clearTimeout&&e.clearTimeout,Za=xa&&xa.now!==sn.Date.now&&xa.now,Ka=e.setTimeout!==sn.setTimeout&&e.setTimeout,Ja=wa.ceil,to=wa.floor,eo=Oa.getOwnPropertySymbols,no=Ba?Ba.isBuffer:z,ro=e.isFinite,io=Ea.join,ao=R(Oa.keys,Oa),oo=wa.max,so=wa.min,uo=xa.now,co=e.parseInt,lo=wa.random,fo=Ea.reverse,ho=Zr(e,"DataView"),po=Zr(e,"Map"),go=Zr(e,"Promise"),vo=Zr(e,"Set"),yo=Zr(e,"WeakMap"),mo=Zr(Oa,"create"),xo=yo&&new yo,bo={},_o=di(ho),wo=di(po),Oo=di(go),jo=di(vo),So=di(yo),Mo=Na?Na.prototype:z,Eo=Mo?Mo.valueOf:z,Po=Mo?Mo.toString:z,Co=function(){function t(){}return function(e){if(!Vi(e))return{};if(Ha)return Ha(e);t.prototype=e;var n=new t;return t.prototype=z,n}}();n.templateSettings={escape:te,evaluate:ee,interpolate:ne,variable:"",imports:{_:n}},(n.prototype=r.prototype).constructor=n,(i.prototype=Co(r.prototype)).constructor=i,(O.prototype=Co(r.prototype)).constructor=O,Ee.prototype.clear=function(){this.__data__=mo?mo(null):{},this.size=0},Ee.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ee.prototype.get=function(t){var e=this.__data__;if(mo){var n=e[t];return n===H?z:n}return Aa.call(e,t)?e[t]:z},Ee.prototype.has=function(t){var e=this.__data__;return mo?e[t]!==z:Aa.call(e,t)},Ee.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=mo&&e===z?H:e,this},Pe.prototype.clear=function(){this.__data__=[],this.size=0},Pe.prototype.delete=function(t){var e=this.__data__,n=De(e,t);return!(n<0||(n==e.length-1?e.pop():Ga.call(e,n,1),--this.size,0))},Pe.prototype.get=function(t){var e=this.__data__,n=De(e,t);return n<0?z:e[n][1]},Pe.prototype.has=function(t){return De(this.__data__,t)>-1},Pe.prototype.set=function(t,e){var n=this.__data__,r=De(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Ce.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(po||Pe),string:new Ee}},Ce.prototype.delete=function(t){var e=$r(this,t).delete(t);return this.size-=e?1:0,e},Ce.prototype.get=function(t){return $r(this,t).get(t)},Ce.prototype.has=function(t){return $r(this,t).has(t)},Ce.prototype.set=function(t,e){var n=$r(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},ke.prototype.add=ke.prototype.push=function(t){return this.__data__.set(t,H),this},ke.prototype.has=function(t){return this.__data__.has(t)},Ae.prototype.clear=function(){this.__data__=new Pe,this.size=0},Ae.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Ae.prototype.get=function(t){return this.__data__.get(t)},Ae.prototype.has=function(t){return this.__data__.has(t)},Ae.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Pe){var r=n.__data__;if(!po||r.length<q-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ce(r)}return n.set(t,e),this.size=n.size,this};var ko=_r(an),Ao=_r(on,!0),To=wr(),Io=wr(!0),Lo=xo?function(t,e){return xo.set(t,e),t}:fa,Ro=$a?function(t,e){return $a(t,"toString",{configurable:!0,enumerable:!1,value:la(e),writable:!0})}:fa,Do=Wn,Fo=Qa||function(t){return sn.clearTimeout(t)},Bo=vo&&1/F(new vo([,-0]))[1]==ut?function(t){return new vo(t)}:da,No=xo?function(t){return xo.get(t)}:da,zo=eo?function(t){return null==t?[]:(t=Oa(t),l(eo(t),function(e){return Ya.call(t,e)}))}:va,qo=eo?function(t){for(var e=[];t;)d(e,zo(t)),t=Va(t);return e}:va,Vo=hn;(ho&&Vo(new ho(new ArrayBuffer(1)))!=Ft||po&&Vo(new po)!=St||go&&"[object Promise]"!=Vo(go.resolve())||vo&&Vo(new vo)!=At||yo&&Vo(new yo)!=Rt)&&(Vo=function(t){var e=hn(t),n=e==Pt?t.constructor:z,r=n?di(n):"";if(r)switch(r){case _o:return Ft;case wo:return St;case Oo:return"[object Promise]";case jo:return At;case So:return Rt}return e});var Ho=Ca?Ni:ya,Yo=fi(Lo),Go=Ka||function(t,e){return sn.setTimeout(t,e)},Wo=fi(Ro),Uo=function(t){var e=Ii(function(t){var e=[];return ae.test(t)&&e.push(""),t.replace(oe,function(t,n,r,i){e.push(r?i.replace(ve,"$1"):n||t)}),e},function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(),Xo=Wn(function(t,e){return Fi(t)?Ye(t,en(e,1,Fi,!0)):[]}),$o=Wn(function(t,e){var n=bi(e);return Fi(n)&&(n=z),Fi(t)?Ye(t,en(e,1,Fi,!0),Xr(n,2)):[]}),Qo=Wn(function(t,e){var n=bi(e);return Fi(n)&&(n=z),Fi(t)?Ye(t,en(e,1,Fi,!0),z,n):[]}),Zo=Wn(function(t){var e=p(t,sr);return e.length&&e[0]===t[0]?Mn(e):[]}),Ko=Wn(function(t){var e=bi(t),n=p(t,sr);return e===bi(n)?e=z:n.pop(),n.length&&n[0]===t[0]?Mn(n,Xr(e,2)):[]}),Jo=Wn(function(t){var e=bi(t),n=p(t,sr);return(e="function"==typeof e?e:z)&&n.pop(),n.length&&n[0]===t[0]?Mn(n,z,e):[]}),ts=Wn(_i),es=Hr(function(t,e){var n=null==t?0:t.length,r=Ne(t,e);return Hn(t,p(e,function(t){return ei(t,n)?+t:t}).sort(dr)),r}),ns=Wn(function(t){return tr(en(t,1,Fi,!0))}),rs=Wn(function(t){var e=bi(t);return Fi(e)&&(e=z),tr(en(t,1,Fi,!0),Xr(e,2))}),is=Wn(function(t){var e=bi(t);return e="function"==typeof e?e:z,tr(en(t,1,Fi,!0),z,e)}),as=Wn(function(t,e){return Fi(t)?Ye(t,e):[]}),os=Wn(function(t){return ar(l(t,Fi))}),ss=Wn(function(t){var e=bi(t);return Fi(e)&&(e=z),ar(l(t,Fi),Xr(e,2))}),us=Wn(function(t){var e=bi(t);return e="function"==typeof e?e:z,ar(l(t,Fi),z,e)}),cs=Wn(Oi),ls=Wn(function(t){var e=t.length,n=e>1?t[e-1]:z;return ji(t,n="function"==typeof n?(t.pop(),n):z)}),fs=Hr(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,a=function(e){return Ne(e,t)};return!(e>1||this.__actions__.length)&&r instanceof O&&ei(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Mi,args:[a],thisArg:z}),new i(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(z),t})):this.thru(a)}),hs=xr(function(t,e,n){Aa.call(t,n)?++t[n]:Be(t,n,1)}),ps=Mr(vi),ds=Mr(yi),gs=xr(function(t,e,n){Aa.call(t,n)?t[n].push(e):Be(t,n,[e])}),vs=Wn(function(t,e,n){var r=-1,i="function"==typeof e,a=Di(t)?ma(t.length):[];return ko(t,function(t){a[++r]=i?s(e,t,n):En(t,e,n)}),a}),ys=xr(function(t,e,n){Be(t,n,e)}),ms=xr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),xs=Wn(function(t,e){if(null==t)return[];var n=e.length;return n>1&&ni(t,e[0],e[1])?e=[]:n>2&&ni(e[0],e[1],e[2])&&(e=[e[0]]),zn(t,en(e,1),[])}),bs=Za||function(){return sn.Date.now()},_s=Wn(function(t,e,n){var r=Q;if(n.length){var i=D(n,Ur(_s));r|=et}return Br(t,r,e,n,i)}),ws=Wn(function(t,e,n){var r=Q|Z;if(n.length){var i=D(n,Ur(ws));r|=et}return Br(e,r,t,n,i)}),Os=Wn(function(t,e){return He(t,1,e)}),js=Wn(function(t,e,n){return He(t,Ki(e)||0,n)});Ii.Cache=Ce;var Ss=Do(function(t,e){var n=(e=1==e.length&&Ts(e[0])?p(e[0],E(Xr())):p(en(e,1),E(Xr()))).length;return Wn(function(r){for(var i=-1,a=so(r.length,n);++i<a;)r[i]=e[i].call(this,r[i]);return s(t,this,r)})}),Ms=Wn(function(t,e){var n=D(e,Ur(Ms));return Br(t,et,z,e,n)}),Es=Wn(function(t,e){var n=D(e,Ur(Es));return Br(t,nt,z,e,n)}),Ps=Hr(function(t,e){return Br(t,it,z,z,z,e)}),Cs=Lr(xn),ks=Lr(function(t,e){return t>=e}),As=Pn(function(){return arguments}())?Pn:function(t){return Hi(t)&&Aa.call(t,"callee")&&!Ya.call(t,"callee")},Ts=ma.isArray,Is=pn?E(pn):function(t){return Hi(t)&&hn(t)==Dt},Ls=no||ya,Rs=dn?E(dn):function(t){return Hi(t)&&hn(t)==bt},Ds=gn?E(gn):function(t){return Hi(t)&&Vo(t)==St},Fs=vn?E(vn):function(t){return Hi(t)&&hn(t)==kt},Bs=yn?E(yn):function(t){return Hi(t)&&Vo(t)==At},Ns=mn?E(mn):function(t){return Hi(t)&&qi(t.length)&&!!Je[hn(t)]},zs=Lr(Ln),qs=Lr(function(t,e){return t<=e}),Vs=br(function(t,e){if(ai(e)||Di(e))mr(e,ra(e),t);else for(var n in e)Aa.call(e,n)&&Re(t,n,e[n])}),Hs=br(function(t,e){mr(e,ia(e),t)}),Ys=br(function(t,e,n,r){mr(e,ia(e),t,r)}),Gs=br(function(t,e,n,r){mr(e,ra(e),t,r)}),Ws=Hr(Ne),Us=Wn(function(t){return t.push(z,Nr),s(Ys,z,t)}),Xs=Wn(function(t){return t.push(z,zr),s(Js,z,t)}),$s=Cr(function(t,e,n){t[e]=n},la(fa)),Qs=Cr(function(t,e,n){Aa.call(t,e)?t[e].push(n):t[e]=[n]},Xr),Zs=Wn(En),Ks=br(function(t,e,n){Bn(t,e,n)}),Js=br(function(t,e,n,r){Bn(t,e,n,r)}),tu=Hr(function(t,e){var n={};if(null==t)return n;var r=!1;e=p(e,function(e){return e=cr(e,t),r||(r=e.length>1),e}),mr(t,Gr(t),n),r&&(n=qe(n,G|W|U,qr));for(var i=e.length;i--;)er(n,e[i]);return n}),eu=Hr(function(t,e){return null==t?{}:function(t,e){return qn(t,e,function(e,n){return na(t,n)})}(t,e)}),nu=Fr(ra),ru=Fr(ia),iu=jr(function(t,e,n){return e=e.toLowerCase(),t+(n?sa(e):e)}),au=jr(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),ou=jr(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),su=Or("toLowerCase"),uu=jr(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),cu=jr(function(t,e,n){return t+(n?" ":"")+fu(e)}),lu=jr(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),fu=Or("toUpperCase"),hu=Wn(function(t,e){try{return s(t,z,e)}catch(t){return Bi(t)?t:new ba(t)}}),pu=Hr(function(t,e){return u(e,function(e){e=pi(e),Be(t,e,_s(t[e],t))}),t}),du=Er(),gu=Er(!0),vu=Wn(function(t,e){return function(n){return En(n,t,e)}}),yu=Wn(function(t,e){return function(n){return En(t,n,e)}}),mu=Ar(p),xu=Ar(c),bu=Ar(v),_u=Ir(),wu=Ir(!0),Ou=kr(function(t,e){return t+e},0),ju=Dr("ceil"),Su=kr(function(t,e){return t/e},1),Mu=Dr("floor"),Eu=kr(function(t,e){return t*e},1),Pu=Dr("round"),Cu=kr(function(t,e){return t-e},0);return n.after=function(t,e){if("function"!=typeof e)throw new Ma(V);return t=Qi(t),function(){if(--t<1)return e.apply(this,arguments)}},n.ary=ki,n.assign=Vs,n.assignIn=Hs,n.assignInWith=Ys,n.assignWith=Gs,n.at=Ws,n.before=Ai,n.bind=_s,n.bindAll=pu,n.bindKey=ws,n.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ts(t)?t:[t]},n.chain=Si,n.chunk=function(t,e,n){e=(n?ni(t,e,n):e===z)?1:oo(Qi(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,a=0,o=ma(Ja(r/e));i<r;)o[a++]=Xn(t,i,i+=e);return o},n.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var a=t[e];a&&(i[r++]=a)}return i},n.concat=function(){var t=arguments.length;if(!t)return[];for(var e=ma(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return d(Ts(n)?yr(n):[n],en(e,1))},n.cond=function(t){var e=null==t?0:t.length,n=Xr();return t=e?p(t,function(t){if("function"!=typeof t[1])throw new Ma(V);return[n(t[0]),t[1]]}):[],Wn(function(n){for(var r=-1;++r<e;){var i=t[r];if(s(i[0],this,n))return s(i[1],this,n)}})},n.conforms=function(t){return function(t){var e=ra(t);return function(n){return Ve(n,t,e)}}(qe(t,G))},n.constant=la,n.countBy=hs,n.create=function(t,e){var n=Co(t);return null==e?n:Fe(n,e)},n.curry=function t(e,n,r){var i=Br(e,J,z,z,z,z,z,n=r?z:n);return i.placeholder=t.placeholder,i},n.curryRight=function t(e,n,r){var i=Br(e,tt,z,z,z,z,z,n=r?z:n);return i.placeholder=t.placeholder,i},n.debounce=Ti,n.defaults=Us,n.defaultsDeep=Xs,n.defer=Os,n.delay=js,n.difference=Xo,n.differenceBy=$o,n.differenceWith=Qo,n.drop=function(t,e,n){var r=null==t?0:t.length;return r?Xn(t,(e=n||e===z?1:Qi(e))<0?0:e,r):[]},n.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Xn(t,0,(e=r-(e=n||e===z?1:Qi(e)))<0?0:e):[]},n.dropRightWhile=function(t,e){return t&&t.length?rr(t,Xr(e,3),!0,!0):[]},n.dropWhile=function(t,e){return t&&t.length?rr(t,Xr(e,3),!0):[]},n.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&ni(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=Qi(n))<0&&(n=-n>i?0:i+n),(r=r===z||r>i?i:Qi(r))<0&&(r+=i),r=n>r?0:Zi(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},n.filter=function(t,e){return(Ts(t)?l:$e)(t,Xr(e,3))},n.flatMap=function(t,e){return en(Ci(t,e),1)},n.flatMapDeep=function(t,e){return en(Ci(t,e),ut)},n.flatMapDepth=function(t,e,n){return n=n===z?1:Qi(n),en(Ci(t,e),n)},n.flatten=mi,n.flattenDeep=function(t){return null!=t&&t.length?en(t,ut):[]},n.flattenDepth=function(t,e){return null!=t&&t.length?en(t,e=e===z?1:Qi(e)):[]},n.flip=function(t){return Br(t,at)},n.flow=du,n.flowRight=gu,n.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},n.functions=function(t){return null==t?[]:un(t,ra(t))},n.functionsIn=function(t){return null==t?[]:un(t,ia(t))},n.groupBy=gs,n.initial=function(t){return null!=t&&t.length?Xn(t,0,-1):[]},n.intersection=Zo,n.intersectionBy=Ko,n.intersectionWith=Jo,n.invert=$s,n.invertBy=Qs,n.invokeMap=vs,n.iteratee=ha,n.keyBy=ys,n.keys=ra,n.keysIn=ia,n.map=Ci,n.mapKeys=function(t,e){var n={};return e=Xr(e,3),an(t,function(t,r,i){Be(n,e(t,r,i),t)}),n},n.mapValues=function(t,e){var n={};return e=Xr(e,3),an(t,function(t,r,i){Be(n,r,e(t,r,i))}),n},n.matches=function(t){return Dn(qe(t,G))},n.matchesProperty=function(t,e){return Fn(t,qe(e,G))},n.memoize=Ii,n.merge=Ks,n.mergeWith=Js,n.method=vu,n.methodOf=yu,n.mixin=pa,n.negate=Li,n.nthArg=function(t){return t=Qi(t),Wn(function(e){return Nn(e,t)})},n.omit=tu,n.omitBy=function(t,e){return aa(t,Li(Xr(e)))},n.once=function(t){return Ai(2,t)},n.orderBy=function(t,e,n,r){return null==t?[]:(Ts(e)||(e=null==e?[]:[e]),Ts(n=r?z:n)||(n=null==n?[]:[n]),zn(t,e,n))},n.over=mu,n.overArgs=Ss,n.overEvery=xu,n.overSome=bu,n.partial=Ms,n.partialRight=Es,n.partition=ms,n.pick=eu,n.pickBy=aa,n.property=ga,n.propertyOf=function(t){return function(e){return null==t?z:cn(t,e)}},n.pull=ts,n.pullAll=_i,n.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Vn(t,e,Xr(n,2)):t},n.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Vn(t,e,z,n):t},n.pullAt=es,n.range=_u,n.rangeRight=wu,n.rearg=Ps,n.reject=function(t,e){return(Ts(t)?l:$e)(t,Li(Xr(e,3)))},n.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],a=t.length;for(e=Xr(e,3);++r<a;){var o=t[r];e(o,r,t)&&(n.push(o),i.push(r))}return Hn(t,i),n},n.rest=function(t,e){if("function"!=typeof t)throw new Ma(V);return Wn(t,e=e===z?e:Qi(e))},n.reverse=wi,n.sampleSize=function(t,e,n){return e=(n?ni(t,e,n):e===z)?1:Qi(e),(Ts(t)?function(t,e){return hi(yr(t),ze(e,0,t.length))}:function(t,e){var n=oa(t);return hi(n,ze(e,0,n.length))})(t,e)},n.set=function(t,e,n){return null==t?t:Un(t,e,n)},n.setWith=function(t,e,n,r){return r="function"==typeof r?r:z,null==t?t:Un(t,e,n,r)},n.shuffle=function(t){return(Ts(t)?function(t){return hi(yr(t))}:function(t){return hi(oa(t))})(t)},n.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&ni(t,e,n)?(e=0,n=r):(e=null==e?0:Qi(e),n=n===z?r:Qi(n)),Xn(t,e,n)):[]},n.sortBy=xs,n.sortedUniq=function(t){return t&&t.length?Zn(t):[]},n.sortedUniqBy=function(t,e){return t&&t.length?Zn(t,Xr(e,2)):[]},n.split=function(t,e,n){return n&&"number"!=typeof n&&ni(t,e,n)&&(e=n=z),(n=n===z?ht:n>>>0)?(t=ta(t))&&("string"==typeof e||null!=e&&!Fs(e))&&!(e=Jn(e))&&I(t)?lr(N(t),0,n):t.split(e,n):[]},n.spread=function(t,e){if("function"!=typeof t)throw new Ma(V);return e=null==e?0:oo(Qi(e),0),Wn(function(n){var r=n[e],i=lr(n,0,e);return r&&d(i,r),s(t,this,i)})},n.tail=function(t){var e=null==t?0:t.length;return e?Xn(t,1,e):[]},n.take=function(t,e,n){return t&&t.length?Xn(t,0,(e=n||e===z?1:Qi(e))<0?0:e):[]},n.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Xn(t,(e=r-(e=n||e===z?1:Qi(e)))<0?0:e,r):[]},n.takeRightWhile=function(t,e){return t&&t.length?rr(t,Xr(e,3),!1,!0):[]},n.takeWhile=function(t,e){return t&&t.length?rr(t,Xr(e,3)):[]},n.tap=function(t,e){return e(t),t},n.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Ma(V);return Vi(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ti(t,e,{leading:r,maxWait:e,trailing:i})},n.thru=Mi,n.toArray=Xi,n.toPairs=nu,n.toPairsIn=ru,n.toPath=function(t){return Ts(t)?p(t,pi):Ui(t)?[t]:yr(Uo(ta(t)))},n.toPlainObject=Ji,n.transform=function(t,e,n){var r=Ts(t),i=r||Ls(t)||Ns(t);if(e=Xr(e,4),null==n){var a=t&&t.constructor;n=i?r?new a:[]:Vi(t)&&Ni(a)?Co(Va(t)):{}}return(i?u:an)(t,function(t,r,i){return e(n,t,r,i)}),n},n.unary=function(t){return ki(t,1)},n.union=ns,n.unionBy=rs,n.unionWith=is,n.uniq=function(t){return t&&t.length?tr(t):[]},n.uniqBy=function(t,e){return t&&t.length?tr(t,Xr(e,2)):[]},n.uniqWith=function(t,e){return e="function"==typeof e?e:z,t&&t.length?tr(t,z,e):[]},n.unset=function(t,e){return null==t||er(t,e)},n.unzip=Oi,n.unzipWith=ji,n.update=function(t,e,n){return null==t?t:nr(t,e,ur(n))},n.updateWith=function(t,e,n,r){return r="function"==typeof r?r:z,null==t?t:nr(t,e,ur(n),r)},n.values=oa,n.valuesIn=function(t){return null==t?[]:P(t,ia(t))},n.without=as,n.words=ca,n.wrap=function(t,e){return Ms(ur(e),t)},n.xor=os,n.xorBy=ss,n.xorWith=us,n.zip=cs,n.zipObject=function(t,e){return or(t||[],e||[],Re)},n.zipObjectDeep=function(t,e){return or(t||[],e||[],Un)},n.zipWith=ls,n.entries=nu,n.entriesIn=ru,n.extend=Hs,n.extendWith=Ys,pa(n,n),n.add=Ou,n.attempt=hu,n.camelCase=iu,n.capitalize=sa,n.ceil=ju,n.clamp=function(t,e,n){return n===z&&(n=e,e=z),n!==z&&(n=(n=Ki(n))==n?n:0),e!==z&&(e=(e=Ki(e))==e?e:0),ze(Ki(t),e,n)},n.clone=function(t){return qe(t,U)},n.cloneDeep=function(t){return qe(t,G|U)},n.cloneDeepWith=function(t,e){return qe(t,G|U,e="function"==typeof e?e:z)},n.cloneWith=function(t,e){return qe(t,U,e="function"==typeof e?e:z)},n.conformsTo=function(t,e){return null==e||Ve(t,e,ra(e))},n.deburr=ua,n.defaultTo=function(t,e){return null==t||t!=t?e:t},n.divide=Su,n.endsWith=function(t,e,n){t=ta(t),e=Jn(e);var r=t.length,i=n=n===z?r:ze(Qi(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},n.eq=Ri,n.escape=function(t){return(t=ta(t))&&Jt.test(t)?t.replace(Zt,_n):t},n.escapeRegExp=function(t){return(t=ta(t))&&ue.test(t)?t.replace(se,"\\$&"):t},n.every=function(t,e,n){var r=Ts(t)?c:function(t,e){var n=!0;return ko(t,function(t,r,i){return n=!!e(t,r,i)}),n};return n&&ni(t,e,n)&&(e=z),r(t,Xr(e,3))},n.find=ps,n.findIndex=vi,n.findKey=function(t,e){return y(t,Xr(e,3),an)},n.findLast=ds,n.findLastIndex=yi,n.findLastKey=function(t,e){return y(t,Xr(e,3),on)},n.floor=Mu,n.forEach=Ei,n.forEachRight=Pi,n.forIn=function(t,e){return null==t?t:To(t,Xr(e,3),ia)},n.forInRight=function(t,e){return null==t?t:Io(t,Xr(e,3),ia)},n.forOwn=function(t,e){return t&&an(t,Xr(e,3))},n.forOwnRight=function(t,e){return t&&on(t,Xr(e,3))},n.get=ea,n.gt=Cs,n.gte=ks,n.has=function(t,e){return null!=t&&Kr(t,e,jn)},n.hasIn=na,n.head=xi,n.identity=fa,n.includes=function(t,e,n,r){t=Di(t)?t:oa(t),n=n&&!r?Qi(n):0;var i=t.length;return n<0&&(n=oo(i+n,0)),Wi(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&x(t,e,n)>-1},n.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Qi(n);return i<0&&(i=oo(r+i,0)),x(t,e,i)},n.inRange=function(t,e,n){return e=$i(e),n===z?(n=e,e=0):n=$i(n),function(t,e,n){return t>=so(e,n)&&t<oo(e,n)}(t=Ki(t),e,n)},n.invoke=Zs,n.isArguments=As,n.isArray=Ts,n.isArrayBuffer=Is,n.isArrayLike=Di,n.isArrayLikeObject=Fi,n.isBoolean=function(t){return!0===t||!1===t||Hi(t)&&hn(t)==xt},n.isBuffer=Ls,n.isDate=Rs,n.isElement=function(t){return Hi(t)&&1===t.nodeType&&!Gi(t)},n.isEmpty=function(t){if(null==t)return!0;if(Di(t)&&(Ts(t)||"string"==typeof t||"function"==typeof t.splice||Ls(t)||Ns(t)||As(t)))return!t.length;var e=Vo(t);if(e==St||e==At)return!t.size;if(ai(t))return!In(t).length;for(var n in t)if(Aa.call(t,n))return!1;return!0},n.isEqual=function(t,e){return Cn(t,e)},n.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:z)?n(t,e):z;return r===z?Cn(t,e,z,n):!!r},n.isError=Bi,n.isFinite=function(t){return"number"==typeof t&&ro(t)},n.isFunction=Ni,n.isInteger=zi,n.isLength=qi,n.isMap=Ds,n.isMatch=function(t,e){return t===e||kn(t,e,Qr(e))},n.isMatchWith=function(t,e,n){return n="function"==typeof n?n:z,kn(t,e,Qr(e),n)},n.isNaN=function(t){return Yi(t)&&t!=+t},n.isNative=function(t){if(Ho(t))throw new ba("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return An(t)},n.isNil=function(t){return null==t},n.isNull=function(t){return null===t},n.isNumber=Yi,n.isObject=Vi,n.isObjectLike=Hi,n.isPlainObject=Gi,n.isRegExp=Fs,n.isSafeInteger=function(t){return zi(t)&&t>=-ct&&t<=ct},n.isSet=Bs,n.isString=Wi,n.isSymbol=Ui,n.isTypedArray=Ns,n.isUndefined=function(t){return t===z},n.isWeakMap=function(t){return Hi(t)&&Vo(t)==Rt},n.isWeakSet=function(t){return Hi(t)&&"[object WeakSet]"==hn(t)},n.join=function(t,e){return null==t?"":io.call(t,e)},n.kebabCase=au,n.last=bi,n.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==z&&(i=(i=Qi(n))<0?oo(r+i,0):so(i,r-1)),e==e?function(t,e,n){for(var r=i+1;r--;)if(t[r]===e)return r;return r}(t,e):m(t,b,i,!0)},n.lowerCase=ou,n.lowerFirst=su,n.lt=zs,n.lte=qs,n.max=function(t){return t&&t.length?Ue(t,fa,xn):z},n.maxBy=function(t,e){return t&&t.length?Ue(t,Xr(e,2),xn):z},n.mean=function(t){return _(t,fa)},n.meanBy=function(t,e){return _(t,Xr(e,2))},n.min=function(t){return t&&t.length?Ue(t,fa,Ln):z},n.minBy=function(t,e){return t&&t.length?Ue(t,Xr(e,2),Ln):z},n.stubArray=va,n.stubFalse=ya,n.stubObject=function(){return{}},n.stubString=function(){return""},n.stubTrue=function(){return!0},n.multiply=Eu,n.nth=function(t,e){return t&&t.length?Nn(t,Qi(e)):z},n.noConflict=function(){return sn._===this&&(sn._=Da),this},n.noop=da,n.now=bs,n.pad=function(t,e,n){t=ta(t);var r=(e=Qi(e))?B(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Tr(to(i),n)+t+Tr(Ja(i),n)},n.padEnd=function(t,e,n){t=ta(t);var r=(e=Qi(e))?B(t):0;return e&&r<e?t+Tr(e-r,n):t},n.padStart=function(t,e,n){t=ta(t);var r=(e=Qi(e))?B(t):0;return e&&r<e?Tr(e-r,n)+t:t},n.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),co(ta(t).replace(le,""),e||0)},n.random=function(t,e,n){if(n&&"boolean"!=typeof n&&ni(t,e,n)&&(e=n=z),n===z&&("boolean"==typeof e?(n=e,e=z):"boolean"==typeof t&&(n=t,t=z)),t===z&&e===z?(t=0,e=1):(t=$i(t),e===z?(e=t,t=0):e=$i(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=lo();return so(t+i*(e-t+nn("1e-"+((i+"").length-1))),e)}return Yn(t,e)},n.reduce=function(t,e,n){var r=Ts(t)?g:j,i=arguments.length<3;return r(t,Xr(e,4),n,i,ko)},n.reduceRight=function(t,e,n){var r=Ts(t)?function(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}:j,i=arguments.length<3;return r(t,Xr(e,4),n,i,Ao)},n.repeat=function(t,e,n){return e=(n?ni(t,e,n):e===z)?1:Qi(e),Gn(ta(t),e)},n.replace=function(){var t=arguments,e=ta(t[0]);return t.length<3?e:e.replace(t[1],t[2])},n.result=function(t,e,n){var r=-1,i=(e=cr(e,t)).length;for(i||(i=1,t=z);++r<i;){var a=null==t?z:t[pi(e[r])];a===z&&(r=i,a=n),t=Ni(a)?a.call(t):a}return t},n.round=Pu,n.runInContext=t,n.sample=function(t){return(Ts(t)?Ie:function(t){return Ie(oa(t))})(t)},n.size=function(t){if(null==t)return 0;if(Di(t))return Wi(t)?B(t):t.length;var e=Vo(t);return e==St||e==At?t.size:In(t).length},n.snakeCase=uu,n.some=function(t,e,n){var r=Ts(t)?v:function(t,e){var n;return ko(t,function(t,r,i){return!(n=e(t,r,i))}),!!n};return n&&ni(t,e,n)&&(e=z),r(t,Xr(e,3))},n.sortedIndex=function(t,e){return $n(t,e)},n.sortedIndexBy=function(t,e,n){return Qn(t,e,Xr(n,2))},n.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=$n(t,e);if(r<n&&Ri(t[r],e))return r}return-1},n.sortedLastIndex=function(t,e){return $n(t,e,!0)},n.sortedLastIndexBy=function(t,e,n){return Qn(t,e,Xr(n,2),!0)},n.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=$n(t,e,!0)-1;if(Ri(t[n],e))return n}return-1},n.startCase=cu,n.startsWith=function(t,e,n){return t=ta(t),n=null==n?0:ze(Qi(n),0,t.length),e=Jn(e),t.slice(n,n+e.length)==e},n.subtract=Cu,n.sum=function(t){return t&&t.length?S(t,fa):0},n.sumBy=function(t,e){return t&&t.length?S(t,Xr(e,2)):0},n.template=function(t,e,r){var i=n.templateSettings;r&&ni(t,e,r)&&(e=z),t=ta(t),e=Ys({},e,i,Nr);var a,o,s=Ys({},e.imports,i.imports,Nr),u=ra(s),c=P(s,u),l=0,f=e.interpolate||Se,h="__p += '",p=ja((e.escape||Se).source+"|"+f.source+"|"+(f===ne?ye:Se).source+"|"+(e.evaluate||Se).source+"|$","g"),d="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Ke+"]")+"\n";t.replace(p,function(e,n,r,i,s,u){return r||(r=i),h+=t.slice(l,u).replace(Me,T),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e}),h+="';\n";var g=e.variable;g||(h="with (obj) {\n"+h+"\n}\n"),h=(o?h.replace(Ut,""):h).replace(Xt,"$1").replace($t,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=hu(function(){return _a(u,d+"return "+h).apply(z,c)});if(v.source=h,Bi(v))throw v;return v},n.times=function(t,e){if((t=Qi(t))<1||t>ct)return[];var n=ht,r=so(t,ht);e=Xr(e),t-=ht;for(var i=M(r,e);++n<t;)e(n);return i},n.toFinite=$i,n.toInteger=Qi,n.toLength=Zi,n.toLower=function(t){return ta(t).toLowerCase()},n.toNumber=Ki,n.toSafeInteger=function(t){return t?ze(Qi(t),-ct,ct):0===t?t:0},n.toString=ta,n.toUpper=function(t){return ta(t).toUpperCase()},n.trim=function(t,e,n){if((t=ta(t))&&(n||e===z))return t.replace(ce,"");if(!t||!(e=Jn(e)))return t;var r=N(t),i=N(e);return lr(r,k(r,i),A(r,i)+1).join("")},n.trimEnd=function(t,e,n){if((t=ta(t))&&(n||e===z))return t.replace(fe,"");if(!t||!(e=Jn(e)))return t;var r=N(t);return lr(r,0,A(r,N(e))+1).join("")},n.trimStart=function(t,e,n){if((t=ta(t))&&(n||e===z))return t.replace(le,"");if(!t||!(e=Jn(e)))return t;var r=N(t);return lr(r,k(r,N(e))).join("")},n.truncate=function(t,e){var n=30,r="...";if(Vi(e)){var i="separator"in e?e.separator:i;n="length"in e?Qi(e.length):n,r="omission"in e?Jn(e.omission):r}var a=(t=ta(t)).length;if(I(t)){var o=N(t);a=o.length}if(n>=a)return t;var s=n-B(r);if(s<1)return r;var u=o?lr(o,0,s).join(""):t.slice(0,s);if(i===z)return u+r;if(o&&(s+=u.length-s),Fs(i)){if(t.slice(s).search(i)){var c,l=u;for(i.global||(i=ja(i.source,ta(me.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;u=u.slice(0,f===z?s:f)}}else if(t.indexOf(Jn(i),s)!=s){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r},n.unescape=function(t){return(t=ta(t))&&Kt.test(t)?t.replace(Qt,wn):t},n.uniqueId=function(t){var e=++Ta;return ta(t)+e},n.upperCase=lu,n.upperFirst=fu,n.each=Ei,n.eachRight=Pi,n.first=xi,pa(n,function(){var t={};return an(n,function(e,r){Aa.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION="4.17.4",u(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),u(["drop","take"],function(t,e){O.prototype[t]=function(n){n=n===z?1:oo(Qi(n),0);var r=this.__filtered__&&!e?new O(this):this.clone();return r.__filtered__?r.__takeCount__=so(n,r.__takeCount__):r.__views__.push({size:so(n,ht),type:t+(r.__dir__<0?"Right":"")}),r},O.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),u(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;O.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Xr(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),u(["head","last"],function(t,e){var n="take"+(e?"Right":"");O.prototype[t]=function(){return this[n](1).value()[0]}}),u(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");O.prototype[t]=function(){return this.__filtered__?new O(this):this[n](1)}}),O.prototype.compact=function(){return this.filter(fa)},O.prototype.find=function(t){return this.filter(t).head()},O.prototype.findLast=function(t){return this.reverse().find(t)},O.prototype.invokeMap=Wn(function(t,e){return"function"==typeof t?new O(this):this.map(function(n){return En(n,t,e)})}),O.prototype.reject=function(t){return this.filter(Li(Xr(t)))},O.prototype.slice=function(t,e){t=Qi(t);var n=this;return n.__filtered__&&(t>0||e<0)?new O(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==z&&(n=(e=Qi(e))<0?n.dropRight(-e):n.take(e-t)),n)},O.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},O.prototype.toArray=function(){return this.take(ht)},an(O.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),a=/^(?:head|last)$/.test(e),o=n[a?"take"+("last"==e?"Right":""):e],s=a||/^find/.test(e);o&&(n.prototype[e]=function(){var e=this.__wrapped__,u=a?[1]:arguments,c=e instanceof O,l=u[0],f=c||Ts(e),h=function(t){var e=o.apply(n,d([t],u));return a&&p?e[0]:e};f&&r&&"function"==typeof l&&1!=l.length&&(c=f=!1);var p=this.__chain__,g=s&&!p,v=c&&!this.__actions__.length;if(!s&&f){e=v?e:new O(this);var y=t.apply(e,u);return y.__actions__.push({func:Mi,args:[h],thisArg:z}),new i(y,p)}return g&&v?t.apply(this,u):(y=this.thru(h),g?a?y.value()[0]:y.value():y)})}),u(["pop","push","shift","sort","splice","unshift"],function(t){var e=Ea[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var n=this.value();return e.apply(Ts(n)?n:[],t)}return this[r](function(n){return e.apply(Ts(n)?n:[],t)})}}),an(O.prototype,function(t,e){var r=n[e];if(r){var i=r.name+"";(bo[i]||(bo[i]=[])).push({name:e,func:r})}}),bo[Pr(z,Z).name]=[{name:"wrapper",func:z}],O.prototype.clone=function(){var t=new O(this.__wrapped__);return t.__actions__=yr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=yr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=yr(this.__views__),t},O.prototype.reverse=function(){if(this.__filtered__){var t=new O(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},O.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ts(t),r=e<0,i=n?t.length:0,a=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=so(e,t+o);break;case"takeRight":t=oo(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=a.start,s=a.end,u=s-o,c=r?s:o-1,l=this.__iteratees__,f=l.length,h=0,p=so(u,this.__takeCount__);if(!n||!r&&i==u&&p==u)return ir(t,this.__actions__);var d=[];t:for(;u--&&h<p;){for(var g=-1,v=t[c+=e];++g<f;){var y=l[g],m=y.type,x=(0,y.iteratee)(v);if(2==m)v=x;else if(!x){if(1==m)continue t;break t}}d[h++]=v}return d},n.prototype.at=fs,n.prototype.chain=function(){return Si(this)},n.prototype.commit=function(){return new i(this.value(),this.__chain__)},n.prototype.next=function(){this.__values__===z&&(this.__values__=Xi(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?z:this.__values__[this.__index__++]}},n.prototype.plant=function(t){for(var e,n=this;n instanceof r;){var i=gi(n);i.__index__=0,i.__values__=z,e?a.__wrapped__=i:e=i;var a=i;n=n.__wrapped__}return a.__wrapped__=t,e},n.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof O){var e=t;return this.__actions__.length&&(e=new O(this)),(e=e.reverse()).__actions__.push({func:Mi,args:[wi],thisArg:z}),new i(e,this.__chain__)}return this.thru(wi)},n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=function(){return ir(this.__wrapped__,this.__actions__)},n.prototype.first=n.prototype.head,Ua&&(n.prototype[Ua]=function(){return this}),n}();sn._=On,(i=(function(){return On}).call(e,n,e,r))!==z&&(r.exports=i)}).call(this)}).call(e,n(146),n(65)(t))},function(t,e,n){var r=n(14),i=n(264);t.exports=function(t,e,n,r){return function(t,e,n,r){var a,o,s={},u=new i,c=function(t){var e=t.v!==a?t.v:t.w,r=s[e],i=n(t),c=o.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c<r.distance&&(r.distance=c,r.predecessor=a,u.decrease(e,c))};for(t.nodes().forEach(function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},u.add(t,n)});u.size()>0&&(a=u.removeMin(),(o=s[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(c);return s}(t,String(e),n||a,r||function(e){return t.outEdges(e)})};var a=r.constant(1)},function(t,e,n){function r(){this._arr=[],this._keyIndices={}}var i=n(14);t.exports=r,r.prototype.size=function(){return this._arr.length},r.prototype.keys=function(){return this._arr.map(function(t){return t.key})},r.prototype.has=function(t){return i.has(this._keyIndices,t)},r.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},r.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},r.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!i.has(n,t)){var r=this._arr,a=r.length;return n[t]=a,r.push({key:t,priority:e}),this._decrease(a),!0}return!1},r.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},r.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},r.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},r.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},r.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],a=n[e];n[t]=a,n[e]=i,r[a.key]=t,r[i.key]=e}},function(t,e,n){var r=n(14);t.exports=function(t){function e(s){var u=a[s]={onStack:!0,lowlink:n,index:n++};if(i.push(s),t.successors(s).forEach(function(t){r.has(a,t)?a[t].onStack&&(u.lowlink=Math.min(u.lowlink,a[t].index)):(e(t),u.lowlink=Math.min(u.lowlink,a[t].lowlink))}),u.lowlink===u.index){var c,l=[];do{c=i.pop(),a[c].onStack=!1,l.push(c)}while(s!==c);o.push(l)}}var n=0,i=[],a={},o=[];return t.nodes().forEach(function(t){r.has(a,t)||e(t)}),o}},function(t,e,n){function r(t){var e={},n={},r=[];if(a.each(t.sinks(),function o(s){if(a.has(n,s))throw new i;a.has(e,s)||(n[s]=!0,e[s]=!0,a.each(t.predecessors(s),o),delete n[s],r.push(s))}),a.size(e)!==t.nodeCount())throw new i;return r}function i(){}var a=n(14);t.exports=r,r.CycleException=i},function(t,e,n){var r=n(14);t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],o={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,i,a,o,s){r.has(a,n)||(a[n]=!0,i||s.push(n),r.each(o(n),function(n){t(e,n,i,a,o,s)}),i&&s.push(n))}(t,e,"post"===n,o,i,a)}),a}},function(t,e,n){"use strict";var r=n(8),i=n(17).Graph,a=n(80).slack;t.exports=function(t){var e,n=new i({directed:!1}),o=t.nodes()[0],s=t.nodeCount();for(n.setNode(o,{});function(t,e){return r.forEach(t.nodes(),function n(i){r.forEach(e.nodeEdges(i),function(r){var o=r.v,s=i===o?r.w:o;t.hasNode(s)||a(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))})}),t.nodeCount()}(n,t)<s;)e=function(t,e){return r.minBy(e.edges(),function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return a(e,n)})}(n,t),function(t,e,n){r.forEach(t.nodes(),function(t){e.node(t).rank+=n})}(n,t,n.hasNode(e.v)?a(t,e):-a(t,e));return n}},function(t,e,n){"use strict";function r(t){return t.target.depth}e.c=function(t){return t.depth},e.d=function(t,e){return e-1-t.height},e.b=function(t,e){return t.sourceLinks.length?t.depth:e-1},e.a=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(i.min)(t.sourceLinks,r)-1:0};var i=n(16)},function(t,e,n){"use strict";var r=n(39),i=n(34),a=n(81),o=n(137),s=n(138);e.a=function(){function t(t){var e,i,a,o,s,g=t.length,v=!1,y=new Array(g),m=new Array(g);for(null==h&&(d=p(s=Object(r.path)())),e=0;e<=g;++e){if(!(e<g&&f(o=t[e],e,t))===v)if(v=!v)i=e,d.areaStart(),d.lineStart();else{for(d.lineEnd(),d.lineStart(),a=e-1;a>=i;--a)d.point(y[a],m[a]);d.lineEnd(),d.areaEnd()}v&&(y[e]=+n(o,e,t),m[e]=+c(o,e,t),d.point(u?+u(o,e,t):y[e],l?+l(o,e,t):m[e]))}if(s)return d=null,s+""||null}function e(){return Object(o.a)().defined(f).curve(p).context(h)}var n=s.a,u=null,c=Object(i.a)(0),l=s.b,f=Object(i.a)(!0),h=null,p=a.a,d=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:Object(i.a)(+e),u=null,t):n},t.x0=function(e){return arguments.length?(n="function"==typeof e?e:Object(i.a)(+e),t):n},t.x1=function(e){return arguments.length?(u=null==e?null:"function"==typeof e?e:Object(i.a)(+e),t):u},t.y=function(e){return arguments.length?(c="function"==typeof e?e:Object(i.a)(+e),l=null,t):c},t.y0=function(e){return arguments.length?(c="function"==typeof e?e:Object(i.a)(+e),t):c},t.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:Object(i.a)(+e),t):l},t.lineX0=t.lineY0=function(){return e().x(n).y(c)},t.lineY1=function(){return e().x(n).y(l)},t.lineX1=function(){return e().x(u).y(c)},t.defined=function(e){return arguments.length?(f="function"==typeof e?e:Object(i.a)(!!e),t):f},t.curve=function(e){return arguments.length?(p=e,null!=h&&(d=p(h)),t):p},t.context=function(e){return arguments.length?(null==e?h=d=null:d=p(h=e),t):h},t}},function(t,e,n){"use strict";function r(t){this._curve=t}function i(t){function e(e){return new r(t(e))}return e._curve=t,e}n.d(e,"a",function(){return a}),e.b=i;var a=i(n(81).a);r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}}},function(t,e,n){"use strict";e.a=function(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Object(r.b)(t)):e()._curve},t};var r=n(271);n(137)},function(t,e,n){"use strict";e.a=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.prototype.slice},function(t,e,n){"use strict";var r=n(57);e.a={draw:function(t,e){var n=Math.sqrt(e/r.j);t.moveTo(n,0),t.arc(0,0,n,0,r.m)}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}}},function(t,e,n){"use strict";var r=Math.sqrt(1/3),i=2*r;e.a={draw:function(t,e){var n=Math.sqrt(e/i),a=n*r;t.moveTo(0,-n),t.lineTo(a,0),t.lineTo(0,n),t.lineTo(-a,0),t.closePath()}}},function(t,e,n){"use strict";var r=n(57),i=Math.sin(r.j/10)/Math.sin(7*r.j/10),a=Math.sin(r.m/10)*i,o=-Math.cos(r.m/10)*i;e.a={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),i=a*n,s=o*n;t.moveTo(0,-n),t.lineTo(i,s);for(var u=1;u<5;++u){var c=r.m*u/5,l=Math.cos(c),f=Math.sin(c);t.lineTo(f*n,-l*n),t.lineTo(l*i-f*s,f*i+l*s)}t.closePath()}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}}},function(t,e,n){"use strict";var r=Math.sqrt(3);e.a={draw:function(t,e){var n=-Math.sqrt(e/(3*r));t.moveTo(0,2*n),t.lineTo(-r*n,-n),t.lineTo(r*n,-n),t.closePath()}}},function(t,e,n){"use strict";var r=-.5,i=Math.sqrt(3)/2,a=1/Math.sqrt(12),o=3*(a/2+1);e.a={draw:function(t,e){var n=Math.sqrt(e/o),s=n/2,u=n*a,c=s,l=n*a+n,f=-c,h=l;t.moveTo(s,u),t.lineTo(c,l),t.lineTo(f,h),t.lineTo(r*s-i*u,i*s+r*u),t.lineTo(r*c-i*l,i*c+r*l),t.lineTo(r*f-i*h,i*f+r*h),t.lineTo(r*s+i*u,r*u-i*s),t.lineTo(r*c+i*l,r*l-i*c),t.lineTo(r*f+i*h,r*h-i*f),t.closePath()}}},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var i=n(82),a=n(84);r.prototype={areaStart:i.a,areaEnd:i.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(a.b)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var i=n(84);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(i.b)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function i(t,e){return e[+(e.left!==t.site)]}function a(t,e){return e[+(e.left===t.site)]}e.c=function(t){return s.b[t.index]={site:t,halfedges:[]}},e.a=i,e.d=function(){for(var t,e,n,i,a=0,o=s.b.length;a<o;++a)if((t=s.b[a])&&(i=(e=t.halfedges).length)){var u=new Array(i),c=new Array(i);for(n=0;n<i;++n)u[n]=n,c[n]=r(t,s.e[e[n]]);for(u.sort(function(t,e){return c[e]-c[t]}),n=0;n<i;++n)c[n]=e[u[n]];for(n=0;n<i;++n)e[n]=c[n]}},e.b=function(t,e,n,r){var u,c,l,f,h,p,d,g,v,y,m,x,b=s.b.length,_=!0;for(u=0;u<b;++u)if(c=s.b[u]){for(l=c.site,f=(h=c.halfedges).length;f--;)s.e[h[f]]||h.splice(f,1);for(f=0,p=h.length;f<p;)m=(y=a(c,s.e[h[f]]))[0],x=y[1],g=(d=i(c,s.e[h[++f%p]]))[0],v=d[1],(Math.abs(m-g)>s.f||Math.abs(x-v)>s.f)&&(h.splice(f,0,s.e.push(Object(o.b)(l,y,Math.abs(m-t)<s.f&&r-x>s.f?[t,Math.abs(g-t)<s.f?v:r]:Math.abs(x-r)<s.f&&n-m>s.f?[Math.abs(v-r)<s.f?g:n,r]:Math.abs(m-n)<s.f&&x-e>s.f?[n,Math.abs(g-n)<s.f?v:e]:Math.abs(x-e)<s.f&&m-t>s.f?[Math.abs(v-e)<s.f?g:t,e]:null))-1),++p);p&&(_=!1)}if(_){var w,O,j,S=1/0;for(u=0,_=null;u<b;++u)(c=s.b[u])&&(j=(w=(l=c.site)[0]-t)*w+(O=l[1]-e)*O)<S&&(S=j,_=c);if(_){var M=[t,e],E=[t,r],P=[n,r],C=[n,e];_.halfedges.push(s.e.push(Object(o.b)(l=_.site,M,E))-1,s.e.push(Object(o.b)(l,E,P))-1,s.e.push(Object(o.b)(l,P,C))-1,s.e.push(Object(o.b)(l,C,M))-1)}}for(u=0;u<b;++u)(c=s.b[u])&&(c.halfedges.length||delete s.b[u])};var o=n(142),s=n(60)},function(t,e,n){"use strict";n.d(e,"c",function(){return r}),e.a=function(t){var e=t.P,n=t.N;if(e&&n){var s=e.site,u=t.site,c=n.site;if(s!==c){var l=u[0],f=u[1],h=s[0]-l,p=s[1]-f,d=c[0]-l,g=c[1]-f,v=2*(h*g-p*d);if(!(v>=-a.g)){var y=h*h+p*p,m=d*d+g*g,x=(g*y-p*m)/v,b=(h*m-d*y)/v,_=o.pop()||new function(){Object(i.a)(this),this.x=this.y=this.arc=this.site=this.cy=null};_.arc=t,_.site=u,_.x=x+l,_.y=(_.cy=b+f)+Math.sqrt(x*x+b*b),t.circle=_;for(var w=null,O=a.c._;O;)if(_.y<O.y||_.y===O.y&&_.x<=O.x){if(!O.L){w=O.P;break}O=O.L}else{if(!O.R){w=O;break}O=O.R}a.c.insert(w,_),w||(r=_)}}}},e.b=function(t){var e=t.circle;e&&(e.P||(r=e.N),a.c.remove(e),o.push(e),Object(i.a)(e),t.circle=null)};var r,i=n(141),a=n(60),o=[]},function(t,e){function n(t){return Math.abs(t)<=1?.5:0}t.exports={boxcar:n,cosine:function(t){return Math.abs(t)<=1?Math.PI/4*Math.cos(Math.PI/2*t):0},epanechnikov:function(t){return Math.abs(t)<1?.75*(1-t*t):0},gaussian:function(t){return.3989422804*Math.exp(-.5*t*t)},quartic:function(t){if(Math.abs(t)<1){var e=1-t*t;return.9375*e*e}return 0},triangular:function(t){var e=Math.abs(t);return e<1?1-e:0},tricube:function(t){return Math.abs(t)<1?70/81*function(t){var e=1-Math.pow(Math.abs(t),3);return Math.pow(e,3)}(t):0},triweight:function(t){if(Math.abs(t)<1){var e=1-t*t;return 35/32*e*e*e}return 0},uniform:n}},function(t,e,n){n(288),n(537),n(538),n(547),n(594),n(596),n(600),n(248),n(604),n(605),n(607),n(629),n(637),n(638),n(639),n(646),n(647),n(648),n(649),n(650),n(651),n(653),n(654),n(655),n(661),n(662),n(663),n(667),n(672),n(674),n(675),n(676),n(677),n(678),n(679),n(680),n(681),n(682),n(721),n(757),n(763),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(773),n(777),n(778),t.exports=n(2)},function(t,e,n){var r=n(4),i=n(0),a=i.geoArea,o=i.geoCentroid,s=i.geoContains,u=i.geoDistance,c=i.geoLength,l=n(179).geoProject,f=n(47),h=n(214);r(f.prototype,{geoArea:function(t){return a(t)},geoAreaByName:function(t){return a(this.geoFeatureByName(t))},geoCentroid:function(t){return o(t)},geoCentroidByName:function(t){return o(this.geoFeatureByName(t))},geoDistance:function(t,e){return u(t,e)},geoLength:function(t){return c(t)},geoLengthByName:function(t){return c(this.geoFeatureByName(t))},geoContains:function(t,e){return s(t,e)},geoFeatureByName:function(t){var e=void 0;return this.rows.some(function(n){return n.name===t&&(e=n,!0)}),e},geoFeatureByPosition:function(t){var e=void 0;return this.rows.some(function(n){return!!s(n,t)&&(e=n,!0)}),e},geoNameByPosition:function(t){var e=this.geoFeatureByPosition(t);if(e)return e.name},getGeoProjection:h,geoProject:function(t,e,n){return e=h(e,n),l(t,e)},geoProjectByName:function(t,e,n){return e=h(e,n),l(this.geoFeatureByName(t),e)},geoProjectPosition:function(t,e,n){return(e=h(e,n))(t)},geoProjectInvert:function(t,e,n){return(e=h(e,n)).invert(t)}})},function(t,e,n){var r=n(13),i=n(292),a=n(15),o=n(147),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=RegExp("^"+u.toString.call(c.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||i(t))&&(r(t)?l:s).test(o(t))}},function(t,e,n){var r=n(35),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=o.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(293),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(18)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(86),i=n(150);t.exports=function(t){return r(function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);++r<a;){var u=n[r];u&&t(e,u,r,o)}return e})}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(298),i=n(144),a=n(42);t.exports=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(23),i=n(20);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(23),i=n(87),a=n(20),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return a(t)&&i(t.length)&&!!o[r(t)]}},function(t,e,n){(function(t){var r=n(145),i="object"==typeof e&&e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i&&r.process,s=function(){try{return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}).call(e,n(65)(t))},function(t,e,n){var r=n(64),i=n(306),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(153)(Object.keys,Object);t.exports=r},function(t,e,n){"use strict";function r(t,e){_.push(w=[p=t,g=t]),e<d&&(d=e),e>v&&(v=e)}function i(t,e){var n=Object(S.a)([t*M.r,e*M.r]);if(b){var r=Object(S.c)(b,n),i=[r[1],-r[0],0],a=Object(S.c)(i,r);Object(S.e)(a),a=Object(S.g)(a);var o,s=t-y,u=s>0?1:-1,c=a[0]*M.h*u,f=Object(M.a)(s)>180;f^(u*y<c&&c<u*t)?(o=a[1]*M.h)>v&&(v=o):f^(u*y<(c=(c+360)%360-180)&&c<u*t)?(o=-a[1]*M.h)<d&&(d=o):(e<d&&(d=e),e>v&&(v=e)),f?t<y?l(p,t)>l(p,g)&&(g=t):l(t,g)>l(p,g)&&(p=t):g>=p?(t<p&&(p=t),t>g&&(g=t)):t>y?l(p,t)>l(p,g)&&(g=t):l(t,g)>l(p,g)&&(p=t)}else _.push(w=[p=t,g=t]);e<d&&(d=e),e>v&&(v=e),b=n,y=t}function a(){C.point=i}function o(){w[0]=p,w[1]=g,C.point=r,b=null}function s(t,e){if(b){var n=t-y;P.add(Object(M.a)(n)>180?n+(n>0?360:-360):n)}else m=t,x=e;j.b.point(t,e),i(t,e)}function u(){j.b.lineStart()}function c(){s(m,x),j.b.lineEnd(),Object(M.a)(P)>M.i&&(p=-(g=180)),w[0]=p,w[1]=g,b=null}function l(t,e){return(e-=t)<0?e+360:e}function f(t,e){return t[0]-e[0]}function h(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var p,d,g,v,y,m,x,b,_,w,O=n(36),j=n(154),S=n(43),M=n(5),E=n(30),P=Object(O.a)(),C={point:r,lineStart:a,lineEnd:o,polygonStart:function(){C.point=s,C.lineStart=u,C.lineEnd=c,P.reset(),j.b.polygonStart()},polygonEnd:function(){j.b.polygonEnd(),C.point=r,C.lineStart=a,C.lineEnd=o,j.a<0?(p=-(g=180),d=-(v=90)):P>M.i?v=90:P<-M.i&&(d=-90),w[0]=p,w[1]=g}};e.a=function(t){var e,n,r,i,a,o,s;if(v=g=-(p=d=1/0),_=[],Object(E.a)(t,C),n=_.length){for(_.sort(f),e=1,a=[r=_[0]];e<n;++e)h(r,(i=_[e])[0])||h(r,i[1])?(l(r[0],i[1])>l(r[0],r[1])&&(r[1]=i[1]),l(i[0],r[1])>l(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)(s=l(r[1],(i=a[e])[0]))>o&&(o=s,p=i[0],g=r[1])}return _=w=null,p===1/0||d===1/0?[[NaN,NaN],[NaN,NaN]]:[[p,d],[g,v]]}},function(t,e,n){"use strict";function r(t,e){t*=C.r,e*=C.r;var n=Object(C.g)(e);i(n*Object(C.g)(t),n*Object(C.t)(t),Object(C.t)(e))}function i(t,e,n){g+=(t-g)/++p,v+=(e-v)/p,y+=(n-y)/p}function a(){T.point=o}function o(t,e){t*=C.r,e*=C.r;var n=Object(C.g)(e);M=n*Object(C.g)(t),E=n*Object(C.t)(t),P=Object(C.t)(e),T.point=s,i(M,E,P)}function s(t,e){t*=C.r,e*=C.r;var n=Object(C.g)(e),r=n*Object(C.g)(t),a=n*Object(C.t)(t),o=Object(C.t)(e),s=Object(C.e)(Object(C.u)((s=E*o-P*a)*s+(s=P*r-M*o)*s+(s=M*a-E*r)*s),M*r+E*a+P*o);d+=s,m+=s*(M+(M=r)),x+=s*(E+(E=a)),b+=s*(P+(P=o)),i(M,E,P)}function u(){T.point=r}function c(){T.point=f}function l(){h(j,S),T.point=r}function f(t,e){j=t,S=e,t*=C.r,e*=C.r,T.point=h;var n=Object(C.g)(e);M=n*Object(C.g)(t),E=n*Object(C.t)(t),P=Object(C.t)(e),i(M,E,P)}function h(t,e){t*=C.r,e*=C.r;var n=Object(C.g)(e),r=n*Object(C.g)(t),a=n*Object(C.t)(t),o=Object(C.t)(e),s=E*o-P*a,u=P*r-M*o,c=M*a-E*r,l=Object(C.u)(s*s+u*u+c*c),f=Object(C.c)(l),h=l&&-f/l;_+=h*s,w+=h*u,O+=h*c,d+=f,m+=f*(M+(M=r)),x+=f*(E+(E=a)),b+=f*(P+(P=o)),i(M,E,P)}var p,d,g,v,y,m,x,b,_,w,O,j,S,M,E,P,C=n(5),k=n(25),A=n(30),T={sphere:k.a,point:r,lineStart:a,lineEnd:u,polygonStart:function(){T.lineStart=c,T.lineEnd=l},polygonEnd:function(){T.lineStart=a,T.lineEnd=u}};e.a=function(t){p=d=g=v=y=m=x=b=_=w=O=0,Object(A.a)(t,T);var e=_,n=w,r=O,i=e*e+n*n+r*r;return i<C.j&&(e=m,n=x,r=b,d<C.i&&(e=g,n=v,r=y),(i=e*e+n*n+r*r)<C.j)?[NaN,NaN]:[Object(C.e)(n,e)*C.h,Object(C.c)(r/Object(C.u)(i))*C.h]}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t,e,n,r,i,a){var o,s=t[0],u=t[1],c=0,l=1,f=e[0]-s,h=e[1]-u;if(o=n-s,f||!(o>0)){if(o/=f,f<0){if(o<c)return;o<l&&(l=o)}else if(f>0){if(o>l)return;o>c&&(c=o)}if(o=i-s,f||!(o<0)){if(o/=f,f<0){if(o>l)return;o>c&&(c=o)}else if(f>0){if(o<c)return;o<l&&(l=o)}if(o=r-u,h||!(o>0)){if(o/=h,h<0){if(o<c)return;o<l&&(l=o)}else if(h>0){if(o>l)return;o>c&&(c=o)}if(o=a-u,h||!(o<0)){if(o/=h,h<0){if(o>l)return;o>c&&(c=o)}else if(h>0){if(o<c)return;o<l&&(l=o)}return c>0&&(t[0]=s+c*f,t[1]=u+c*h),l<1&&(e[0]=s+l*f,e[1]=u+l*h),!0}}}}}},function(t,e,n){"use strict";var r=n(162);e.a=function(t,e,n){var i,a,o,s,u=t.length,c=e.length,l=new Array(u*c);for(null==n&&(n=r.b),i=o=0;i<u;++i)for(s=t[i],a=0;a<c;++a,++o)l[o]=n(s,e[a]);return l}},function(t,e,n){"use strict";e.a=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}},function(t,e,n){"use strict";var r=n(166),i=n(160),a=n(314),o=n(165),s=n(315),u=n(167),c=n(168),l=n(169);e.a=function(){function t(t){var r,a,o=t.length,s=new Array(o);for(r=0;r<o;++r)s[r]=e(t[r],r,t);var l=n(s),h=l[0],p=l[1],d=f(s,h,p);Array.isArray(d)||(d=Object(c.c)(h,p,d),d=Object(u.a)(Math.ceil(h/d)*d,Math.floor(p/d)*d,d));for(var g=d.length;d[0]<=h;)d.shift(),--g;for(;d[g-1]>p;)d.pop(),--g;var v,y=new Array(g+1);for(r=0;r<=g;++r)(v=y[r]=[]).x0=r>0?d[r-1]:h,v.x1=r<g?d[r]:p;for(r=0;r<o;++r)h<=(a=s[r])&&a<=p&&y[Object(i.c)(d,a,0,g)].push(t[r]);return y}var e=s.a,n=o.a,f=l.a;return t.value=function(n){return arguments.length?(e="function"==typeof n?n:Object(a.a)(n),t):e},t.domain=function(e){return arguments.length?(n="function"==typeof e?e:Object(a.a)([e[0],e[1]]),t):n},t.thresholds=function(e){return arguments.length?(f="function"==typeof e?e:Array.isArray(e)?Object(a.a)(r.b.call(e)):Object(a.a)(e),t):f},t}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var r=n(166),i=n(37),a=n(44),o=n(92);e.a=function(t,e,n){return t=r.a.call(t,a.a).sort(i.a),Math.ceil((n-e)/(2*(Object(o.a)(t,.75)-Object(o.a)(t,.25))*Math.pow(t.length,-1/3)))}},function(t,e,n){"use strict";var r=n(163);e.a=function(t,e,n){return Math.ceil((n-e)/(3.5*Object(r.a)(t)*Math.pow(t.length,-1/3)))}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<i;)null!=(n=t[a])&&n>r&&(r=n)}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<i;)null!=(n=e(t[a],a,t))&&n>r&&(r=n);return r}},function(t,e,n){"use strict";var r=n(44);e.a=function(t,e){var n,i=t.length,a=i,o=-1,s=0;if(null==e)for(;++o<i;)isNaN(n=Object(r.a)(t[o]))?--a:s+=n;else for(;++o<i;)isNaN(n=Object(r.a)(e(t[o],o,t)))?--a:s+=n;if(a)return s/a}},function(t,e,n){"use strict";var r=n(37),i=n(44),a=n(92);e.a=function(t,e){var n,o=t.length,s=-1,u=[];if(null==e)for(;++s<o;)isNaN(n=Object(i.a)(t[s]))||u.push(n);else for(;++s<o;)isNaN(n=Object(i.a)(e(t[s],s,t)))||u.push(n);return Object(a.a)(u.sort(r.a),.5)}},function(t,e,n){"use strict";e.a=function(t){for(var e,n,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(n=new Array(o);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n}},function(t,e,n){"use strict";e.a=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}},function(t,e,n){"use strict";var r=n(37);e.a=function(t,e){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==e&&(e=r.a);++a<n;)(e(i=t[a],s)<0||0!==e(s,s))&&(s=i,o=a);return 0===e(s,s)?o:void 0}}},function(t,e,n){"use strict";e.a=function(t,e,n){for(var r,i,a=(null==n?t.length:n)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,r=t[a+e],t[a+e]=t[i+e],t[i+e]=r;return t}},function(t,e,n){"use strict";e.a=function(t,e){var n,r=t.length,i=-1,a=0;if(null==e)for(;++i<r;)(n=+t[i])&&(a+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(a+=n);return a}},function(t,e,n){"use strict";var r=n(171);e.a=function(){return Object(r.a)(arguments)}},function(t,e,n){"use strict";function r(t,e){return!(!t||!p.hasOwnProperty(t.type))&&p[t.type](t,e)}function i(t,e){return 0===Object(l.a)(t,e)}function a(t,e){var n=Object(l.a)(t[0],t[1]);return Object(l.a)(t[0],e)+Object(l.a)(e,t[1])<=n+f.i}function o(t,e){return!!Object(c.a)(t.map(s),u(e))}function s(t){return(t=t.map(u)).pop(),t}function u(t){return[t[0]*f.r,t[1]*f.r]}var c=n(172),l=n(173),f=n(5),h={Feature:function(t,e){return r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,a=n.length;++i<a;)if(r(n[i].geometry,e))return!0;return!1}},p={Sphere:function(){return!0},Point:function(t,e){return i(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,a=n.length;++r<a;)if(i(n[r],e))return!0;return!1},LineString:function(t,e){return a(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(a(n[r],e))return!0;return!1},Polygon:function(t,e){return o(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(o(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,a=n.length;++i<a;)if(r(n[i],e))return!0;return!1}};e.a=function(t,e){return(t&&h.hasOwnProperty(t.type)?h[t.type]:r)(t,e)}},function(t,e,n){"use strict";function r(t,e,n){var r=Object(o.range)(t,e-s.i,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function i(t,e,n){var r=Object(o.range)(t,e-s.i,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function a(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return Object(o.range)(Object(s.f)(c/b)*b,u,b).map(v).concat(Object(o.range)(Object(s.f)(p/_)*_,h,_).map(y)).concat(Object(o.range)(Object(s.f)(a/m)*m,n,m).filter(function(t){return Object(s.a)(t%b)>s.i}).map(d)).concat(Object(o.range)(Object(s.f)(f/x)*x,l,x).filter(function(t){return Object(s.a)(t%_)>s.i}).map(g))}var n,a,u,c,l,f,h,p,d,g,v,y,m=10,x=m,b=90,_=360,w=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[v(c).concat(y(h).slice(1),v(u).reverse().slice(1),y(p).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.extentMajor(e).extentMinor(e):t.extentMinor()},t.extentMajor=function(e){return arguments.length?(p=+e[0][1],h=+e[1][1],(c=+e[0][0])>(u=+e[1][0])&&(e=c,c=u,u=e),p>h&&(e=p,p=h,h=e),t.precision(w)):[[c,p],[u,h]]},t.extentMinor=function(e){return arguments.length?(f=+e[0][1],l=+e[1][1],(a=+e[0][0])>(n=+e[1][0])&&(e=a,a=n,n=e),f>l&&(e=f,f=l,l=e),t.precision(w)):[[a,f],[n,l]]},t.step=function(e){return arguments.length?t.stepMajor(e).stepMinor(e):t.stepMinor()},t.stepMajor=function(e){return arguments.length?(b=+e[0],_=+e[1],t):[b,_]},t.stepMinor=function(e){return arguments.length?(m=+e[0],x=+e[1],t):[m,x]},t.precision=function(e){return arguments.length?(w=+e,d=r(f,l,90),g=i(a,n,w),v=r(p,h,90),y=i(c,u,w),t):w},t.extentMajor([[-180,-90+s.i],[180,90-s.i]]).extentMinor([[-180,-80-s.i],[180,80+s.i]])}e.a=a,e.b=function(){return a()()};var o=n(16),s=n(5)},function(t,e,n){"use strict";var r=n(5);e.a=function(t,e){var n=t[0]*r.r,i=t[1]*r.r,a=e[0]*r.r,o=e[1]*r.r,s=Object(r.g)(i),u=Object(r.t)(i),c=Object(r.g)(o),l=Object(r.t)(o),f=s*Object(r.g)(n),h=s*Object(r.t)(n),p=c*Object(r.g)(a),d=c*Object(r.t)(a),g=2*Object(r.c)(Object(r.u)(Object(r.m)(o-i)+s*c*Object(r.m)(a-n))),v=Object(r.t)(g),y=g?function(t){var e=Object(r.t)(t*=g)/v,n=Object(r.t)(g-t)/v,i=n*f+e*p,a=n*h+e*d,o=n*u+e*l;return[Object(r.e)(a,i)*r.h,Object(r.e)(o,Object(r.u)(i*i+a*a))*r.h]}:function(){return[n*r.h,i*r.h]};return y.distance=g,y}},function(t,e,n){"use strict";var r=n(93),i=n(30),a=n(331),o=n(175),s=n(332),u=n(333),c=n(334),l=n(335);e.a=function(t,e){function n(t){return t&&("function"==typeof p&&h.pointRadius(+p.apply(this,arguments)),Object(i.a)(t,f(h))),h.result()}var f,h,p=4.5;return n.area=function(t){return Object(i.a)(t,f(a.a)),a.a.result()},n.measure=function(t){return Object(i.a)(t,f(c.a)),c.a.result()},n.bounds=function(t){return Object(i.a)(t,f(o.a)),o.a.result()},n.centroid=function(t){return Object(i.a)(t,f(s.a)),s.a.result()},n.projection=function(e){return arguments.length?(f=null==e?(t=null,r.a):(t=e).stream,n):t},n.context=function(t){return arguments.length?(h=null==t?(e=null,new l.a):new u.a(e=t),"function"!=typeof p&&h.pointRadius(p),n):e},n.pointRadius=function(t){return arguments.length?(p="function"==typeof t?t:(h.pointRadius(+t),+t),n):p},n.projection(t).context(e)}},function(t,e,n){"use strict";function r(){v.point=i}function i(t,e){v.point=a,s=c=t,u=l=e}function a(t,e){g.add(l*t-c*e),c=t,l=e}function o(){a(s,u)}var s,u,c,l,f=n(36),h=n(5),p=n(25),d=Object(f.a)(),g=Object(f.a)(),v={point:p.a,lineStart:p.a,lineEnd:p.a,polygonStart:function(){v.lineStart=r,v.lineEnd=o},polygonEnd:function(){v.lineStart=v.lineEnd=v.point=p.a,d.add(Object(h.a)(g)),g.reset()},result:function(){var t=d/2;return d.reset(),t}};e.a=v},function(t,e,n){"use strict";function r(t,e){y+=t,m+=e,++x}function i(){M.point=a}function a(t,e){M.point=o,r(d=t,g=e)}function o(t,e){var n=t-d,i=e-g,a=Object(v.u)(n*n+i*i);b+=a*(d+t)/2,_+=a*(g+e)/2,w+=a,r(d=t,g=e)}function s(){M.point=r}function u(){M.point=l}function c(){f(h,p)}function l(t,e){M.point=f,r(h=d=t,p=g=e)}function f(t,e){var n=t-d,i=e-g,a=Object(v.u)(n*n+i*i);b+=a*(d+t)/2,_+=a*(g+e)/2,w+=a,O+=(a=g*t-d*e)*(d+t),j+=a*(g+e),S+=3*a,r(d=t,g=e)}var h,p,d,g,v=n(5),y=0,m=0,x=0,b=0,_=0,w=0,O=0,j=0,S=0,M={point:r,lineStart:i,lineEnd:s,polygonStart:function(){M.lineStart=u,M.lineEnd=c},polygonEnd:function(){M.point=r,M.lineStart=i,M.lineEnd=s},result:function(){var t=S?[O/S,j/S]:w?[b/w,_/w]:x?[y/x,m/x]:[NaN,NaN];return y=m=x=b=_=w=O=j=S=0,t}};e.a=M},function(t,e,n){"use strict";function r(t){this._context=t}e.a=r;var i=n(5),a=n(25);r.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,i.w)}},result:a.a}},function(t,e,n){"use strict";function r(t,e){d.point=i,o=u=t,s=c=e}function i(t,e){u-=t,c-=e,p.add(Object(f.u)(u*u+c*c)),u=t,c=e}var a,o,s,u,c,l=n(36),f=n(5),h=n(25),p=Object(l.a)(),d={point:h.a,lineStart:function(){d.point=r},lineEnd:function(){a&&i(o,s),d.point=h.a},polygonStart:function(){a=!0},polygonEnd:function(){a=null},result:function(){var t=+p;return p.reset(),t}};e.a=d},function(t,e,n){"use strict";function r(){this._string=[]}function i(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}e.a=r,r.prototype={_radius:4.5,_circle:i(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=i(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}}},function(t,e,n){"use strict";var r=n(177),i=n(5);e.a=Object(r.a)(function(){return!0},function(t){var e,n=NaN,r=NaN,a=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var u=o>0?i.o:-i.o,c=Object(i.a)(o-n);Object(i.a)(c-i.o)<i.i?(t.point(n,r=(r+s)/2>0?i.l:-i.l),t.point(a,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):a!==u&&c>=i.o&&(Object(i.a)(n-a)<i.i&&(n-=a*i.i),Object(i.a)(o-u)<i.i&&(o-=u*i.i),r=function(t,e,n,r){var a,o,s=Object(i.t)(t-n);return Object(i.a)(s)>i.i?Object(i.d)((Object(i.t)(e)*(o=Object(i.g)(r))*Object(i.t)(n)-Object(i.t)(r)*(a=Object(i.g)(e))*Object(i.t)(t))/(a*o*s)):(e+r)/2}(n,r,o,s),t.point(a,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=s),a=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var a;if(null==t)r.point(-i.o,a=n*i.l),r.point(0,a),r.point(i.o,a),r.point(i.o,0),r.point(i.o,-a),r.point(0,-a),r.point(-i.o,-a),r.point(-i.o,0),r.point(-i.o,a);else if(Object(i.a)(t[0]-e[0])>i.i){var o=t[0]<e[0]?i.o:-i.o;r.point(-o,a=n*o/2),r.point(0,a),r.point(o,a)}else r.point(e[0],e[1])},[-i.o,-i.l])},function(t,e,n){"use strict";var r=n(43),i=n(155),a=n(5),o=n(159),s=n(177);e.a=function(t,e){function n(t,e){return Object(a.g)(t)*Object(a.g)(e)>l}function u(t,e,n){var i=Object(r.a)(t),o=Object(r.a)(e),s=[1,0,0],u=Object(r.c)(i,o),c=Object(r.d)(u,u),f=u[0],h=c-f*f;if(!h)return!n&&t;var p=l*c/h,d=-l*f/h,g=Object(r.c)(s,u),v=Object(r.f)(s,p),y=Object(r.f)(u,d);Object(r.b)(v,y);var m=g,x=Object(r.d)(v,m),b=Object(r.d)(m,m),_=x*x-b*(Object(r.d)(v,v)-1);if(!(_<0)){var w=Object(a.u)(_),O=Object(r.f)(m,(-x-w)/b);if(Object(r.b)(O,v),O=Object(r.g)(O),!n)return O;var j,S=t[0],M=e[0],E=t[1],P=e[1];M<S&&(j=S,S=M,M=j);var C=M-S,k=Object(a.a)(C-a.o)<a.i;if(!k&&P<E&&(j=E,E=P,P=j),k||C<a.i?k?E+P>0^O[1]<(Object(a.a)(O[0]-S)<a.i?E:P):E<=O[1]&&O[1]<=P:C>a.o^(S<=O[0]&&O[0]<=M)){var A=Object(r.f)(m,(-x+w)/b);return Object(r.b)(A,v),[O,Object(r.g)(A)]}}}function c(e,n){var r=f?t:a.o-t,i=0;return e<-r?i|=1:e>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}var l=Object(a.g)(t),f=l>0,h=Object(a.a)(l)>a.i;return Object(s.a)(n,function(t){var e,r,i,s,l;return{lineStart:function(){s=i=!1,l=1},point:function(p,d){var g,v=[p,d],y=n(p,d),m=f?y?0:c(p,d):y?c(p+(p<0?a.o:-a.o),d):0;if(!e&&(s=i=y)&&t.lineStart(),y!==i&&(!(g=u(e,v))||Object(o.a)(e,g)||Object(o.a)(v,g))&&(v[0]+=a.i,v[1]+=a.i,y=n(v[0],v[1])),y!==i)l=0,y?(t.lineStart(),g=u(v,e),t.point(g[0],g[1])):(g=u(e,v),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(h&&e&&f^y){var x;m&r||!(x=u(v,e,!0))||(l=0,f?(t.lineStart(),t.point(x[0][0],x[0][1]),t.point(x[1][0],x[1][1]),t.lineEnd()):(t.point(x[1][0],x[1][1]),t.lineEnd(),t.lineStart(),t.point(x[0][0],x[0][1])))}!y||e&&Object(o.a)(e,v)||t.point(v[0],v[1]),e=v,i=y,r=m},lineEnd:function(){i&&t.lineEnd(),e=null},clean:function(){return l|(s&&i)<<1}}},function(n,r,a,o){Object(i.a)(o,t,e,a,n,r)},f?[0,-t]:[-a.o,t-a.o])}},function(t,e,n){"use strict";var r=n(43),i=n(5),a=n(67),o=16,s=Object(i.g)(30*i.r);e.a=function(t,e){return+e?function(t,e){function n(r,a,o,u,c,l,f,h,p,d,g,v,y,m){var x=f-r,b=h-a,_=x*x+b*b;if(_>4*e&&y--){var w=u+d,O=c+g,j=l+v,S=Object(i.u)(w*w+O*O+j*j),M=Object(i.c)(j/=S),E=Object(i.a)(Object(i.a)(j)-1)<i.i||Object(i.a)(o-p)<i.i?(o+p)/2:Object(i.e)(O,w),P=t(E,M),C=P[0],k=P[1],A=C-r,T=k-a,I=b*A-x*T;(I*I/_>e||Object(i.a)((x*A+b*T)/_-.5)>.3||u*d+c*g+l*v<s)&&(n(r,a,o,u,c,l,C,k,E,w/=S,O/=S,j,y,m),m.point(C,k),n(C,k,E,w,O,j,f,h,p,d,g,v,y,m))}}return function(e){function i(n,r){n=t(n,r),e.point(n[0],n[1])}function a(){x=NaN,j.point=s,e.lineStart()}function s(i,a){var s=Object(r.a)([i,a]),u=t(i,a);n(x,b,m,_,w,O,x=u[0],b=u[1],m=i,_=s[0],w=s[1],O=s[2],o,e),e.point(x,b)}function u(){j.point=i,e.lineEnd()}function c(){a(),j.point=l,j.lineEnd=f}function l(t,e){s(h=t,e),p=x,d=b,g=_,v=w,y=O,j.point=s}function f(){n(x,b,m,_,w,O,p,d,h,g,v,y,o,e),j.lineEnd=u,u()}var h,p,d,g,v,y,m,x,b,_,w,O,j={point:i,lineStart:a,lineEnd:u,polygonStart:function(){e.polygonStart(),j.lineStart=c},polygonEnd:function(){e.polygonEnd(),j.lineStart=a}};return j}}(t,e):function(t){return Object(a.b)({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}},function(t,e,n){"use strict";e.a=function(t){function e(t,e){return[t*n,Object(r.t)(e)/n]}var n=Object(r.g)(t);return e.invert=function(t,e){return[t/n,Object(r.c)(e*n)]},e};var r=n(5)},function(t,e,n){"use strict";var r=n(5),i=n(176),a=n(94),o=n(96);e.a=function(){function t(t){var e=t[0],n=t[1];return f=null,u.point(e,n),f||(c.point(e,n),f)||(l.point(e,n),f)}function e(){return n=s=null,t}var n,s,u,c,l,f,h=Object(i.a)(),p=Object(a.b)().rotate([154,0]).center([-2,58.5]).parallels([55,65]),d=Object(a.b)().rotate([157,0]).center([-3,19.9]).parallels([8,18]),g={point:function(t,e){f=[t,e]}};return t.invert=function(t){var e=h.scale(),n=h.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?p:i>=.166&&i<.234&&r>=-.214&&r<-.115?d:h).invert(t)},t.stream=function(t){return n&&s===t?n:n=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([h.stream(s=t),p.stream(t),d.stream(t)])},t.precision=function(t){return arguments.length?(h.precision(t),p.precision(t),d.precision(t),e()):h.precision()},t.scale=function(e){return arguments.length?(h.scale(e),p.scale(.35*e),d.scale(e),t.translate(h.translate())):h.scale()},t.translate=function(t){if(!arguments.length)return h.translate();var n=h.scale(),i=+t[0],a=+t[1];return u=h.translate(t).clipExtent([[i-.455*n,a-.238*n],[i+.455*n,a+.238*n]]).stream(g),c=p.translate([i-.307*n,a+.201*n]).clipExtent([[i-.425*n+r.i,a+.12*n+r.i],[i-.214*n-r.i,a+.234*n-r.i]]).stream(g),l=d.translate([i-.205*n,a+.212*n]).clipExtent([[i-.214*n+r.i,a+.166*n+r.i],[i-.115*n-r.i,a+.234*n-r.i]]).stream(g),e()},t.fitExtent=function(e,n){return Object(o.a)(t,e,n)},t.fitSize=function(e,n){return Object(o.b)(t,e,n)},t.scale(1070)}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(5),i=n(45),a=n(21),o=Object(i.b)(function(t){return Object(r.u)(2/(1+t))});o.invert=Object(i.a)(function(t){return 2*Object(r.c)(t/2)}),e.b=function(){return Object(a.a)(o).scale(124.75).clipAngle(179.999)}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(5),i=n(45),a=n(21),o=Object(i.b)(function(t){return(t=Object(r.b)(t))&&t/Object(r.t)(t)});o.invert=Object(i.a)(function(t){return t}),e.b=function(){return Object(a.a)(o).scale(79.4188).clipAngle(179.999)}},function(t,e,n){"use strict";function r(t){return Object(a.v)((a.l+t)/2)}function i(t,e){function n(t,e){u>0?e<-a.l+a.i&&(e=-a.l+a.i):e>a.l-a.i&&(e=a.l-a.i);var n=u/Object(a.p)(r(e),o);return[n*Object(a.t)(o*t),u-n*Object(a.g)(o*t)]}var i=Object(a.g)(t),o=t===e?Object(a.t)(t):Object(a.n)(i/Object(a.g)(e))/Object(a.n)(r(e)/r(t)),u=i*Object(a.p)(r(t),o)/o;return o?(n.invert=function(t,e){var n=u-e,r=Object(a.s)(o)*Object(a.u)(t*t+n*n);return[Object(a.e)(t,Object(a.a)(n))/o*Object(a.s)(n),2*Object(a.d)(Object(a.p)(u/r,1/o))-a.l]},n):s.c}e.a=i;var a=n(5),o=n(95),s=n(97);e.b=function(){return Object(o.a)(i).scale(109.5).parallels([30,30])}},function(t,e,n){"use strict";function r(t,e){function n(t,e){var n=s-e,r=a*t;return[n*Object(i.t)(r),s-n*Object(i.g)(r)]}var r=Object(i.g)(t),a=t===e?Object(i.t)(t):(r-Object(i.g)(e))/(e-t),s=r/a+t;return Object(i.a)(a)<i.i?o.b:(n.invert=function(t,e){var n=s-e;return[Object(i.e)(t,Object(i.a)(n))/a*Object(i.s)(n),s-Object(i.s)(a)*Object(i.u)(t*t+n*n)]},n)}e.a=r;var i=n(5),a=n(95),o=n(178);e.b=function(){return Object(a.a)(r).scale(131.154).center([0,13.9389])}},function(t,e,n){"use strict";function r(t,e){var n=Object(i.g)(e),r=Object(i.g)(t)*n;return[n*Object(i.t)(t)/r,Object(i.t)(e)/r]}e.b=r;var i=n(5),a=n(45),o=n(21);r.invert=Object(a.a)(i.d),e.a=function(){return Object(o.a)(r).scale(144.049).clipAngle(60)}},function(t,e,n){"use strict";function r(t,e,n,r){return 1===t&&1===e&&0===n&&0===r?a.a:Object(o.b)({point:function(i,a){this.stream.point(i*t+n,a*e+r)}})}var i=n(91),a=n(93),o=n(67),s=n(96);e.a=function(){function t(){return u=c=null,l}var e,n,o,u,c,l,f=1,h=0,p=0,d=1,g=1,v=a.a,y=null,m=a.a;return l={stream:function(t){return u&&c===t?u:u=v(m(c=t))},clipExtent:function(r){return arguments.length?(m=null==r?(y=e=n=o=null,a.a):Object(i.a)(y=+r[0][0],e=+r[0][1],n=+r[1][0],o=+r[1][1]),t()):null==y?null:[[y,e],[n,o]]},scale:function(e){return arguments.length?(v=r((f=+e)*d,f*g,h,p),t()):f},translate:function(e){return arguments.length?(v=r(f*d,f*g,h=+e[0],p=+e[1]),t()):[h,p]},reflectX:function(e){return arguments.length?(v=r(f*(d=e?-1:1),f*g,h,p),t()):d<0},reflectY:function(e){return arguments.length?(v=r(f*d,f*(g=e?-1:1),h,p),t()):g<0},fitExtent:function(t,e){return Object(s.a)(l,t,e)},fitSize:function(t,e){return Object(s.b)(l,t,e)}}}},function(t,e,n){"use strict";function r(t,e){return[Object(i.g)(e)*Object(i.t)(t),Object(i.t)(e)]}e.b=r;var i=n(5),a=n(45),o=n(21);r.invert=Object(a.a)(i.c),e.a=function(){return Object(o.a)(r).scale(249.5).clipAngle(90+i.i)}},function(t,e,n){"use strict";function r(t,e){var n=Object(i.g)(e),r=1+Object(i.g)(t)*n;return[n*Object(i.t)(t)/r,Object(i.t)(e)/r]}e.b=r;var i=n(5),a=n(45),o=n(21);r.invert=Object(a.a)(function(t){return 2*Object(i.d)(t)}),e.a=function(){return Object(o.a)(r).scale(250).clipAngle(142)}},function(t,e,n){"use strict";function r(t,e){return[Object(i.n)(Object(i.v)((i.l+e)/2)),-t]}e.b=r;var i=n(5),a=n(97);r.invert=function(t,e){return[-e,2*Object(i.d)(Object(i.k)(t))-i.l]},e.a=function(){var t=Object(a.b)(r),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}},function(t,e,n){"use strict";function r(t){function e(t,e){var n=Object(a.h)(t),i=Object(a.h)(e),o=Object(a.y)(e),s=i*n,u=-((1-s?Object(a.p)((1+s)/2)/(1-s):-.5)+r/(1+s));return[u*i*Object(a.y)(t),u*o]}var n=Object(a.F)(t/2),r=2*Object(a.p)(Object(a.h)(t/2))/(n*n);return e.invert=function(e,n){var i,o=Object(a.B)(e*e+n*n),s=-t/2,u=50;if(!o)return[0,0];do{var c=s/2,l=Object(a.h)(c),f=Object(a.y)(c),h=Object(a.F)(c),p=Object(a.p)(1/l);s-=i=(2/h*p-r*h-o)/(-p/(f*f)+1-r/(2*l*l))}while(Object(a.a)(i)>a.k&&--u>0);var d=Object(a.y)(s);return[Object(a.g)(e*d,o*Object(a.h)(s)),Object(a.e)(n*d/o)]},e}e.a=r;var i=n(0),a=n(1);e.b=function(){var t=a.o,e=Object(i.geoProjectionMutator)(r),n=e(t);return n.radius=function(n){return arguments.length?e(t=n*a.v):t*a.j},n.scale(179.976).clipAngle(147)}},function(t,e,n){"use strict";function r(t){function e(t,e){var u=Object(a.h)(e),c=Object(a.h)(t/=2);return[(1+u)*Object(a.y)(t),(i*e>-Object(a.g)(c,o)-.001?0:10*-i)+s+Object(a.y)(e)*r-(1+u)*n*c]}var n=Object(a.y)(t),r=Object(a.h)(t),i=t>=0?1:-1,o=Object(a.F)(i*t),s=(1+n-r)/2;return e.invert=function(t,e){var u=0,c=0,l=50;do{var f=Object(a.h)(u),h=Object(a.y)(u),p=Object(a.h)(c),d=Object(a.y)(c),g=1+p,v=g*h-t,y=s+d*r-g*n*f-e,m=g*f/2,x=-h*d,b=n*g*h/2,_=r*p+n*f*d,w=x*b-_*m,O=(y*x-v*_)/w/2,j=(v*b-y*m)/w;u-=O,c-=j}while((Object(a.a)(O)>a.k||Object(a.a)(j)>a.k)&&--l>0);return i*c>-Object(a.g)(Object(a.h)(u),o)-.001?[2*u,c]:null},e}e.a=r;var i=n(0),a=n(1);e.b=function(){var t=20*a.v,e=t>=0?1:-1,n=Object(a.F)(e*t),o=Object(i.geoProjectionMutator)(r),s=o(t),u=s.stream;return s.parallel=function(r){return arguments.length?(n=Object(a.F)((e=(t=r*a.v)>=0?1:-1)*t),o(t)):t*a.j},s.stream=function(r){var i=s.rotate(),o=u(r),c=(s.rotate([0,0]),u(r));return s.rotate(i),o.sphere=function(){c.polygonStart(),c.lineStart();for(var r=-180*e;e*r<180;r+=90*e)c.point(r,90*e);for(;e*(r-=t)>=-180;)c.point(r,e*-Object(a.g)(Object(a.h)(r*a.v/2),n)*a.j);c.lineEnd(),c.polygonEnd()},o},s.scale(218.695).center([0,28.0974])}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.a)(e);return n<a.u?[t,Object(a.p)(Object(a.F)(a.u+e/2))]:[t*Object(a.h)(n)*(2*a.D-1/Object(a.y)(n)),Object(a.x)(e)*(2*a.D*(n-a.u)-Object(a.p)(Object(a.F)(n/2)))]}e.a=r;var i=n(0),a=n(1),o=Object(a.B)(8),s=Object(a.p)(1+a.D);r.invert=function(t,e){if((r=Object(a.a)(e))<s)return[t,2*Object(a.f)(Object(a.m)(e))-a.o];var n,r,i=a.u,u=25;do{var c=Object(a.h)(i/2),l=Object(a.F)(i/2);i-=n=(o*(i-a.u)-Object(a.p)(l)-r)/(o-c*c/(2*l))}while(Object(a.a)(n)>a.l&&--u>0);return[t/(Object(a.h)(i)*(o-1/Object(a.y)(i))),Object(a.x)(e)*i]},e.b=function(){return Object(i.geoProjection)(r).scale(112.314)}},function(t,e,n){"use strict";function r(t){function e(t,e){var r=Object(i.geoAzimuthalEquidistantRaw)(t,e);if(Object(a.a)(t)>a.o){var o=Object(a.g)(r[1],r[0]),s=Object(a.B)(r[0]*r[0]+r[1]*r[1]),u=n*Object(a.w)((o-a.o)/n)+a.o,c=Object(a.g)(Object(a.y)(o-=u),2-Object(a.h)(o));o=u+Object(a.e)(a.s/s*Object(a.y)(c))-c,r[0]=s*Object(a.h)(o),r[1]=s*Object(a.y)(o)}return r}var n=2*a.s/t;return e.invert=function(t,e){var r=Object(a.B)(t*t+e*e);if(r>a.o){var o=Object(a.g)(e,t),s=n*Object(a.w)((o-a.o)/n)+a.o,u=o>s?-1:1,c=r*Object(a.h)(s-o),l=1/Object(a.F)(u*Object(a.b)((c-a.s)/Object(a.B)(a.s*(a.s-2*c)+r*r)));o=s+2*Object(a.f)((l+u*Object(a.B)(l*l-3))/3),t=r*Object(a.h)(o),e=r*Object(a.y)(o)}return i.geoAzimuthalEquidistantRaw.invert(t,e)},e}e.a=r;var i=n(0),a=n(1);e.b=function(){var t=5,e=Object(i.geoProjectionMutator)(r),n=e(t),o=n.stream,s=-Object(a.h)(.01*a.v),u=Object(a.y)(.01*a.v);return n.lobes=function(n){return arguments.length?e(t=+n):t},n.stream=function(e){var r=n.rotate(),i=o(e),c=(n.rotate([0,0]),o(e));return n.rotate(r),i.sphere=function(){c.polygonStart(),c.lineStart();for(var e=0,n=360/t,r=2*a.s/t,i=90-180/t,o=a.o;e<t;++e,i-=n,o-=r)c.point(Object(a.g)(u*Object(a.h)(o),s)*a.j,Object(a.e)(u*Object(a.y)(o))*a.j),i<-90?(c.point(-90,-180-i-.01),c.point(-90,-180-i+.01)):(c.point(90,i+.01),c.point(90,i-.01));c.lineEnd(),c.polygonEnd()},i},n.scale(87.8076).center([0,17.1875]).clipAngle(179.999)}},function(t,e,n){"use strict";function r(t){function e(e,r){var i=n+t-r,o=i?e*Object(a.h)(r)/i:i;return[i*Object(a.y)(o),n-i*Object(a.h)(o)]}if(!t)return o.b;var n=1/Object(a.F)(t);return e.invert=function(e,r){var i=Object(a.B)(e*e+(r=n-r)*r),o=n+t-i;return[i/Object(a.h)(o)*Object(a.g)(e,r),o]},e}e.a=r;var i=n(38),a=n(1),o=n(46);e.b=function(){return Object(i.a)(r).scale(123.082).center([0,26.1441]).parallel(45)}},function(t,e,n){"use strict";function r(t){function e(e,n){var r=a.o-n,i=r?e*t*Object(a.y)(r)/r:r;return[r*Object(a.y)(i)/t,a.o-r*Object(a.h)(i)]}return e.invert=function(e,n){var r=e*t,i=a.o-n,o=Object(a.B)(r*r+i*i),s=Object(a.g)(r,i);return[(o?o/Object(a.y)(o):1)*s/t,a.o-o]},e}e.a=r;var i=n(0),a=n(1);e.b=function(){var t=.5,e=Object(i.geoProjectionMutator)(r),n=e(t);return n.fraction=function(n){return arguments.length?e(t=+n):t},n.scale(158.837)}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(0),i=n(1),a=n(26),o=Object(a.b)(1,4/i.s,i.s);e.b=function(){return Object(r.geoProjection)(o).scale(152.63)}},function(t,e,n){"use strict";function r(t,e,n,r,i,a){var o,s=Object(l.h)(a);if(Object(l.a)(t)>1||Object(l.a)(a)>1)o=Object(l.b)(n*i+e*r*s);else{var u=Object(l.y)(t/2),c=Object(l.y)(a/2);o=2*Object(l.e)(Object(l.B)(u*u+e*r*c*c))}return Object(l.a)(o)>l.k?[o,Object(l.g)(r*Object(l.y)(a),e*i-n*r*s)]:[0,0]}function i(t,e,n){return Object(l.b)((t*t+e*e-n*n)/(2*t*e))}function a(t){return t-2*l.s*Object(l.n)((t+l.s)/(2*l.s))}function o(t,e,n){for(var o,s=[[t[0],t[1],Object(l.y)(t[1]),Object(l.h)(t[1])],[e[0],e[1],Object(l.y)(e[1]),Object(l.h)(e[1])],[n[0],n[1],Object(l.y)(n[1]),Object(l.h)(n[1])]],u=s[2],c=0;c<3;++c,u=o)u.v=r((o=s[c])[1]-u[1],u[3],u[2],o[3],o[2],o[0]-u[0]),u.point=[0,0];var f=i(s[0].v[0],s[2].v[0],s[1].v[0]),h=i(s[0].v[0],s[1].v[0],s[2].v[0]),p=l.s-f;s[2].point[1]=0,s[0].point[0]=-(s[1].point[0]=s[0].v[0]/2);var d=[s[2].point[0]=s[0].point[0]+s[2].v[0]*Object(l.h)(f),2*(s[0].point[1]=s[1].point[1]=s[2].v[0]*Object(l.y)(f))];return function(t,e){var n,o=Object(l.y)(e),u=Object(l.h)(e),c=new Array(3);for(n=0;n<3;++n){var f=s[n];if(c[n]=r(e-f[1],f[3],f[2],u,o,t-f[0]),!c[n][0])return f.point;c[n][1]=a(c[n][1]-f.v[1])}var g=d.slice();for(n=0;n<3;++n){var v=i(s[n].v[0],c[n][0],c[2==n?0:n+1][0]);c[n][1]<0&&(v=-v),n?1==n?(v=h-v,g[0]-=c[n][0]*Object(l.h)(v),g[1]-=c[n][0]*Object(l.y)(v)):(v=p-v,g[0]+=c[n][0]*Object(l.h)(v),g[1]+=c[n][0]*Object(l.y)(v)):(g[0]+=c[n][0]*Object(l.h)(v),g[1]-=c[n][0]*Object(l.y)(v))}return g[0]/=3,g[1]/=3,g}}function s(t){return t[0]*=l.v,t[1]*=l.v,t}function u(t,e,n){var r=Object(c.geoCentroid)({type:"MultiPoint",coordinates:[t,e,n]}),i=[-r[0],-r[1]],a=Object(c.geoRotation)(i),u=Object(c.geoProjection)(o(s(a(t)),s(a(e)),s(a(n)))).rotate(i),l=u.center;return delete u.rotate,u.center=function(t){return arguments.length?l(a(t)):a.invert(l())},u.clipAngle(90)}e.b=o,e.a=function(){return u([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])},e.c=u;var c=n(0),l=n(1)},function(t,e,n){"use strict";function r(t){function e(t,e){return[t,(t?t/Object(i.y)(t):1)*(Object(i.y)(e)*Object(i.h)(t)-n*Object(i.h)(e))]}var n=Object(i.F)(t);return e.invert=n?function(t,e){t&&(e*=Object(i.y)(t)/t);var r=Object(i.h)(t);return[t,2*Object(i.g)(Object(i.B)(r*r+n*n-e*e)-r,n-e)]}:function(t,e){return[t,Object(i.e)(t?e*Object(i.F)(t)/t:e)]},e}e.a=r;var i=n(1),a=n(38);e.b=function(){return Object(a.a)(r).scale(249.828).clipAngle(90)}},function(t,e,n){"use strict";function r(t,e){return[o*t*(2*Object(a.h)(2*e/3)-1)/a.E,o*a.E*Object(a.y)(e/3)]}e.a=r;var i=n(0),a=n(1),o=Object(a.B)(3);r.invert=function(t,e){var n=3*Object(a.e)(e/(o*a.E));return[a.E*t/(o*(2*Object(a.h)(2*n/3)-1)),n]},e.b=function(){return Object(i.geoProjection)(r).scale(156.19)}},function(t,e,n){"use strict";function r(t){function e(t,e){return[t*n,(1+n)*Object(i.F)(e/2)]}var n=Object(i.h)(t);return e.invert=function(t,e){return[t/n,2*Object(i.f)(e/(1+n))]},e}e.a=r;var i=n(1),a=n(38);e.b=function(){return Object(a.a)(r).scale(124.75)}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.B)(8/(3*a.s));return[n*t*(1-Object(a.a)(e)/a.s),n*e]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=Object(a.B)(8/(3*a.s)),r=e/n;return[t/(n*(1-Object(a.a)(r)/a.s)),r]},e.a=function(){return Object(i.geoProjection)(r).scale(165.664)}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.B)(4-3*Object(a.y)(Object(a.a)(e)));return[2/Object(a.B)(6*a.s)*t*n,Object(a.x)(e)*Object(a.B)(2*a.s/3)*(2-n)]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=2-Object(a.a)(e)/Object(a.B)(2*a.s/3);return[t*Object(a.B)(6*a.s)/(2*n),Object(a.x)(e)*Object(a.e)((4-n*n)/3)]},e.a=function(){return Object(i.geoProjection)(r).scale(165.664)}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.B)(a.s*(4+a.s));return[2/n*t*(1+Object(a.B)(1-4*e*e/(a.s*a.s))),4/n*e]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=Object(a.B)(a.s*(4+a.s))/2;return[t*n/(1+Object(a.B)(1-e*e*(4+a.s)/(4*a.s))),e*n/2]},e.a=function(){return Object(i.geoProjection)(r).scale(180.739)}},function(t,e,n){"use strict";function r(t,e){var n=(2+a.o)*Object(a.y)(e);e/=2;for(var r=0,i=1/0;r<10&&Object(a.a)(i)>a.k;r++){var o=Object(a.h)(e);e-=i=(e+Object(a.y)(e)*(o+2)-n)/(2*o*(1+o))}return[2/Object(a.B)(a.s*(4+a.s))*t*(1+Object(a.h)(e)),2*Object(a.B)(a.s/(4+a.s))*Object(a.y)(e)]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=e*Object(a.B)((4+a.s)/a.s)/2,r=Object(a.e)(n),i=Object(a.h)(r);return[t/(2/Object(a.B)(a.s*(4+a.s))*(1+i)),Object(a.e)((r+n*(i+2))/(2+a.o))]},e.a=function(){return Object(i.geoProjection)(r).scale(180.739)}},function(t,e,n){"use strict";function r(t,e){return[t*(1+Object(a.h)(e))/Object(a.B)(2+a.s),2*e/Object(a.B)(2+a.s)]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=Object(a.B)(2+a.s),r=e*n/2;return[n*t/(1+Object(a.h)(r)),r]},e.a=function(){return Object(i.geoProjection)(r).scale(173.044)}},function(t,e,n){"use strict";function r(t,e){for(var n=(1+a.o)*Object(a.y)(e),r=0,i=1/0;r<10&&Object(a.a)(i)>a.k;r++)e-=i=(e+Object(a.y)(e)-n)/(1+Object(a.h)(e));return n=Object(a.B)(2+a.s),[t*(1+Object(a.h)(e))/n,2*e/n]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=1+a.o,r=Object(a.B)(n/2);return[2*t*r/(1+Object(a.h)(e*=r)),Object(a.e)((e+Object(a.y)(e))/n)]},e.a=function(){return Object(i.geoProjection)(r).scale(173.044)}},function(t,e,n){"use strict";function r(t,e){var n=Object(o.y)(t/=2),r=Object(o.h)(t),i=Object(o.B)(Object(o.h)(e)),a=Object(o.h)(e/=2),u=Object(o.y)(e)/(a+o.D*r*i),c=Object(o.B)(2/(1+u*u)),l=Object(o.B)((o.D*a+(r+n)*i)/(o.D*a+(r-n)*i));return[s*(c*(l-1/l)-2*Object(o.p)(l)),s*(c*u*(l+1/l)-2*Object(o.f)(u))]}e.b=r;var i=n(0),a=n(181),o=n(1),s=3+2*o.D;r.invert=function(t,e){if(!(n=a.a.invert(t/1.2,1.065*e)))return null;var n,r=n[0],i=n[1],u=20;t/=s,e/=s;do{var c=r/2,l=i/2,f=Object(o.y)(c),h=Object(o.h)(c),p=Object(o.y)(l),d=Object(o.h)(l),g=Object(o.h)(i),v=Object(o.B)(g),y=p/(d+o.D*h*v),m=y*y,x=Object(o.B)(2/(1+m)),b=(o.D*d+(h+f)*v)/(o.D*d+(h-f)*v),_=Object(o.B)(b),w=_-1/_,O=_+1/_,j=x*w-2*Object(o.p)(_)-t,S=x*y*O-2*Object(o.f)(y)-e,M=p&&o.C*v*f*m/p,E=(o.D*h*d+v)/(2*(d+o.D*h*v)*(d+o.D*h*v)*v),P=-.5*y*x*x*x,C=P*M,k=P*E,A=(A=2*d+o.D*v*(h-f))*A*_,T=(o.D*h*d*v+g)/A,I=-o.D*f*p/(v*A),L=w*C-2*T/_+x*(T+T/b),R=w*k-2*I/_+x*(I+I/b),D=y*O*C-2*M/(1+m)+x*O*M+x*y*(T-T/b),F=y*O*k-2*E/(1+m)+x*O*E+x*y*(I-I/b),B=R*D-F*L;if(!B)break;var N=(S*R-j*F)/B,z=(j*D-S*L)/B;r-=N,i=Object(o.q)(-o.o,Object(o.r)(o.o,i-z))}while((Object(o.a)(N)>o.k||Object(o.a)(z)>o.k)&&--u>0);return Object(o.a)(Object(o.a)(i)-o.o)<o.k?[0,i]:u&&[r,i]},e.a=function(){return Object(i.geoProjection)(r).scale(62.5271)}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.F)(e/2);return[t*o*Object(a.B)(1-n*n),(1+o)*n]}e.b=r;var i=n(0),a=n(1),o=Object(a.h)(35*a.v);r.invert=function(t,e){var n=e/(1+o);return[t&&t/(o*Object(a.B)(1-n*n)),2*Object(a.f)(n)]},e.a=function(){return Object(i.geoProjection)(r).scale(137.152)}},function(t,e,n){"use strict";function r(t,e){var n=e/2,r=Object(a.h)(n);return[2*t/a.E*Object(a.h)(e)*r*r,a.E*Object(a.F)(n)]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=Object(a.f)(e/a.E),r=Object(a.h)(n),i=2*n;return[t*a.E/2/(Object(a.h)(i)*r*r),i]},e.a=function(){return Object(i.geoProjection)(r).scale(135.264)}},function(t,e,n){"use strict";function r(t){return[t[0]/2,Object(o.e)(Object(o.F)(t[1]/2*o.v))*o.j]}function i(t){return[2*t[0],2*Object(o.f)(Object(o.y)(t[1]*o.v))*o.j]}var a=n(0),o=n(1);e.a=function(t){function e(t){return s(r(t))}function n(t){e[t]=function(n){return arguments.length?(s[t](n),e):s[t]()}}null==t&&(t=a.geoOrthographic);var s=t(),u=Object(a.geoEquirectangular)().scale(o.j).precision(0).clipAngle(null).translate([0,0]);return s.invert&&(e.invert=function(t){return i(s.invert(t))}),e.stream=function(t){var e=s.stream(t),n=u.stream({point:function(t,n){e.point(t/2,Object(o.e)(Object(o.F)(-n/2*o.v))*o.j)},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}});return n.sphere=e.sphere,n},e.rotate=function(t){return arguments.length?(u.rotate(t),e):u.rotate()},e.center=function(t){return arguments.length?(s.center(r(t)),e):i(s.center())},n("clipAngle"),n("clipExtent"),n("scale"),n("translate"),n("precision"),e.scale(249.5)}},function(t,e,n){"use strict";function r(t,e){function n(e,n){var c=Object(o.geoAzimuthalEquidistantRaw)(e,n),l=c[0],f=c[1],h=l*l+f*f;if(h>u){var p=Object(s.B)(h),d=Object(s.g)(f,l),g=r*Object(s.w)(d/r),v=d-g,y=t*Object(s.h)(v),m=(t*Object(s.y)(v)-v*Object(s.y)(y))/(s.o-y),x=i(v,m),b=(s.s-t)/a(x,y,s.s);l=p;var _,w=50;do{l-=_=(t+a(x,y,l)*b-p)/(x(l)*b)}while(Object(s.a)(_)>s.k&&--w>0);f=v*Object(s.y)(l),l<s.o&&(f-=m*(l-s.o));var O=Object(s.y)(g),j=Object(s.h)(g);c[0]=l*j-f*O,c[1]=l*O+f*j}return c}var r=2*s.s/e,u=t*t;return n.invert=function(e,n){var c=e*e+n*n;if(c>u){var l=Object(s.B)(c),f=Object(s.g)(n,e),h=r*Object(s.w)(f/r),p=f-h;e=l*Object(s.h)(p),n=l*Object(s.y)(p);for(var d=e-s.o,g=Object(s.y)(e),v=n/g,y=e<s.o?1/0:0,m=10;;){var x=t*Object(s.y)(v),b=t*Object(s.h)(v),_=Object(s.y)(b),w=s.o-b,O=(x-v*_)/w,j=i(v,O);if(Object(s.a)(y)<s.l||!--m)break;v-=y=(v*g-O*d-n)/(g-2*d*(w*(b+v*x*Object(s.h)(b)-_)-x*(x-v*_))/(w*w))}f=h+v,e=(l=t+a(j,b,e)*(s.s-t)/a(j,b,s.s))*Object(s.h)(f),n=l*Object(s.y)(f)}return o.geoAzimuthalEquidistantRaw.invert(e,n)},n}function i(t,e){return function(n){var r=t*Object(s.h)(n);return n<s.o&&(r-=e),Object(s.B)(1+r*r)}}function a(t,e,n){for(var r=(n-e)/50,i=t(e)+t(n),a=1,o=e;a<50;++a)i+=2*t(o+=r);return.5*i*r}e.b=r;var o=n(0),s=n(1);e.a=function(){var t=6,e=30*s.v,n=Object(s.h)(e),i=Object(s.y)(e),a=Object(o.geoProjectionMutator)(r),u=a(e,t),c=u.stream,l=-Object(s.h)(.01*s.v),f=Object(s.y)(.01*s.v);return u.radius=function(r){return arguments.length?(n=Object(s.h)(e=r*s.v),i=Object(s.y)(e),a(e,t)):e*s.j},u.lobes=function(n){return arguments.length?a(e,t=+n):t},u.stream=function(e){var r=u.rotate(),a=c(e),o=(u.rotate([0,0]),c(e));return u.rotate(r),a.sphere=function(){o.polygonStart(),o.lineStart();for(var e=0,r=2*s.s/t,a=0;e<t;++e,a-=r)o.point(Object(s.g)(f*Object(s.h)(a),l)*s.j,Object(s.e)(f*Object(s.y)(a))*s.j),o.point(Object(s.g)(i*Object(s.h)(a-r/2),n)*s.j,Object(s.e)(i*Object(s.y)(a-r/2))*s.j);o.lineEnd(),o.polygonEnd()},a},u.rotate([90,-40]).scale(91.7095).clipAngle(179.999)}},function(t,e,n){"use strict";n.d(e,"b",function(){return a});var r=n(0),i=n(68),a=Object(i.a)(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);e.a=function(){return Object(r.geoProjection)(a).scale(149.995)}},function(t,e,n){"use strict";n.d(e,"b",function(){return a});var r=n(0),i=n(68),a=Object(i.a)(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);e.a=function(){return Object(r.geoProjection)(a).scale(153.93)}},function(t,e,n){"use strict";n.d(e,"b",function(){return o});var r=n(0),i=n(68),a=n(1),o=Object(i.a)(5/6*a.s,-.62636,-.0344,0,1.3493,-.05524,0,.045);e.a=function(){return Object(r.geoProjection)(o).scale(130.945)}},function(t,e,n){"use strict";function r(t,e){var n=t*t,r=e*e;return[t*(1-.162388*r)*(.87-952426e-9*n*n),e*(1+r/12)]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n,r=t,i=e,o=50;do{var s=i*i;i-=n=(i*(1+s/12)-e)/(1+s/4)}while(Object(a.a)(n)>a.k&&--o>0);o=50,t/=1-.162388*s;do{var u=(u=r*r)*u;r-=n=(r*(.87-952426e-9*u)-t)/(.87-.00476213*u)}while(Object(a.a)(n)>a.k&&--o>0);return[r,i]},e.a=function(){return Object(i.geoProjection)(r).scale(131.747)}},function(t,e,n){"use strict";n.d(e,"b",function(){return a});var r=n(0),i=n(68),a=Object(i.a)(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);e.a=function(){return Object(r.geoProjection)(a).scale(131.087)}},function(t,e,n){"use strict";function r(t,e){var n,r,i,o,s;if(e<a.k)return[(o=Object(a.y)(t))-(n=e*(t-o*(r=Object(a.h)(t)))/4)*r,r+n*o,1-e*o*o/2,t-n];if(e>=1-a.k)return n=(1-e)/4,i=1/(r=Object(a.i)(t)),[(o=Object(a.G)(t))+n*((s=r*Object(a.A)(t))-t)/(r*r),i-n*o*i*(s-t),i+n*o*i*(s+t),2*Object(a.f)(Object(a.m)(t))-a.o+n*(s-t)/r];var u=[1,0,0,0,0,0,0,0,0],c=[Object(a.B)(e),0,0,0,0,0,0,0,0],l=0;for(r=Object(a.B)(1-e),s=1;Object(a.a)(c[l]/u[l])>a.k&&l<8;)n=u[l++],c[l]=(n-r)/2,u[l]=(n+r)/2,r=Object(a.B)(n*r),s*=2;i=s*u[l]*t;do{o=c[l]*Object(a.y)(r=i)/u[l],i=(Object(a.e)(o)+i)/2}while(--l);return[Object(a.y)(i),o=Object(a.h)(i),o/Object(a.h)(i-r),i]}function i(t,e){if(!e)return t;if(1===e)return Object(a.p)(Object(a.F)(t/2+a.u));for(var n=1,r=Object(a.B)(1-e),i=Object(a.B)(e),o=0;Object(a.a)(i)>a.k;o++){if(t%a.s){var s=Object(a.f)(r*Object(a.F)(t)/n);s<0&&(s+=a.s),t+=s+~~(t/a.s)*a.s}else t+=t;i=(n+r)/2,r=Object(a.B)(n*r),i=((n=i)-r)/2}return t/(Object(a.t)(2,o)*n)}e.c=function(t,e,n){var i,a,o;return t?(i=r(t,n),e?(a=r(e,1-n),[[i[0]*a[2]/(o=a[1]*a[1]+n*i[0]*i[0]*a[0]*a[0]),i[1]*i[2]*a[0]*a[1]/o],[i[1]*a[1]/o,-i[0]*i[2]*a[0]*a[2]/o],[i[2]*a[1]*a[2]/o,-n*i[0]*i[1]*a[0]/o]]):[[i[0],0],[i[1],0],[i[2],0]]):[[0,(a=r(e,1-n))[0]/a[1]],[1/a[1],0],[a[2]/a[1],0]]},e.b=function(t,e,n){var r=Object(a.a)(t),o=Object(a.a)(e),s=Object(a.A)(o);if(r){var u=1/Object(a.y)(r),c=1/(Object(a.F)(r)*Object(a.F)(r)),l=-(c+n*(s*s*u*u)-1+n),f=(n-1)*c,h=(-l+Object(a.B)(l*l-4*f))/2;return[i(Object(a.f)(1/Object(a.B)(h)),n)*Object(a.x)(t),i(Object(a.f)(Object(a.B)((h/c-1)/n)),1-n)*Object(a.x)(e)]}return[0,i(Object(a.f)(s),1-n)*Object(a.x)(e)]},e.a=i;var a=n(1)},function(t,e,n){"use strict";function r(t,e){function n(n,r){var i=Object(a.geoAzimuthalEqualAreaRaw)(n/e,r);return i[0]*=t,i}return arguments.length<2&&(e=t),1===e?a.geoAzimuthalEqualAreaRaw:e===1/0?i:(n.invert=function(n,r){var i=a.geoAzimuthalEqualAreaRaw.invert(n/t,r);return i[0]*=e,i},n)}function i(t,e){return[t*Object(o.h)(e)/Object(o.h)(e/=2),2*Object(o.y)(e)]}e.b=r;var a=n(0),o=n(1);i.invert=function(t,e){var n=2*Object(o.e)(e/2);return[t*Object(o.h)(n/2)/Object(o.h)(n),n]},e.a=function(){var t=2,e=Object(a.geoProjectionMutator)(r),n=e(t);return n.coefficient=function(n){return arguments.length?e(t=+n):t},n.scale(169.529)}},function(t,e,n){"use strict";function r(t){function e(t,e){var i=a(t,e);t=i[0],e=i[1];var s=Object(o.y)(e),u=Object(o.h)(e),c=Object(o.h)(t),l=Object(o.b)(n*s+r*u*c),f=Object(o.y)(l),h=Object(o.a)(f)>o.k?l/f:1;return[h*r*Object(o.y)(t),(Object(o.a)(t)>o.o?h:-h)*(n*u-r*s*c)]}var n=Object(o.y)(t),r=Object(o.h)(t),a=i(t);return a.invert=i(-t),e.invert=function(t,e){var r=Object(o.B)(t*t+e*e),i=-Object(o.y)(r),s=Object(o.h)(r),u=r*s,c=-e*i,l=r*n,f=Object(o.B)(u*u+c*c-l*l),h=Object(o.g)(u*l+c*f,c*l-u*f),p=(r>o.o?-1:1)*Object(o.g)(t*i,r*Object(o.h)(h)*s+e*Object(o.y)(h)*i);return a.invert(p,h)},e}function i(t){var e=Object(o.y)(t),n=Object(o.h)(t);return function(t,r){var i=Object(o.h)(r),a=Object(o.h)(t)*i,s=Object(o.y)(t)*i,u=Object(o.y)(r);return[Object(o.g)(s,a*n-u*e),Object(o.e)(u*n+a*e)]}}e.b=r;var a=n(0),o=n(1);e.a=function(){var t=0,e=Object(a.geoProjectionMutator)(r),n=e(t),i=n.rotate,s=n.stream,u=Object(a.geoCircle)();return n.parallel=function(r){if(!arguments.length)return t*o.j;var i=n.rotate();return e(t=r*o.v).rotate(i)},n.rotate=function(e){return arguments.length?(i.call(n,[e[0],e[1]-t*o.j]),u.center([-e[0],-e[1]]),n):((e=i.call(n))[1]+=t*o.j,e)},n.stream=function(t){return(t=s(t)).sphere=function(){t.polygonStart();var e,n=u.radius(89.99)().coordinates[0],r=n.length-1,i=-1;for(t.lineStart();++i<r;)t.point((e=n[i])[0],e[1]);for(t.lineEnd(),r=(n=u.radius(90.01)().coordinates[0]).length-1,t.lineStart();--i>=0;)t.point((e=n[i])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},n.scale(79.4187).parallel(45).clipAngle(179.999)}},function(t,e,n){"use strict";function r(t){function e(e,c){var d,g=Object(u.a)(c);if(g>n){var v=Object(u.r)(t-1,Object(u.q)(0,Object(u.n)((e+u.s)/f)));e+=u.s*(t-1)/t-v*f,(d=Object(o.a)(e,g))[0]=d[0]*u.H/r-u.H*(t-1)/(2*t)+v*u.H/t,d[1]=i+4*(d[1]-a)*s/u.H,c<0&&(d[1]=-d[1])}else d=l(e,c);return d[0]*=h,d[1]/=p,d}var n=c*u.v,r=Object(o.a)(u.s,n)[0]-Object(o.a)(-u.s,n)[0],i=l(0,n)[1],a=Object(o.a)(0,n)[1],s=u.E-a,f=u.H/t,h=4/u.H,p=i+s*s*4/u.H;return e.invert=function(e,n){e/=h,n*=p;var c=Object(u.a)(n);if(c>i){var d=Object(u.r)(t-1,Object(u.q)(0,Object(u.n)((e+u.s)/f))),g=o.a.invert(e=(e+u.s*(t-1)/t-d*f)*r/u.H,.25*(c-i)*u.H/s+a);return g[0]-=u.s*(t-1)/t-d*f,n<0&&(g[1]=-g[1]),g}return l.invert(e,n)},e}e.b=r;var i=n(16),a=n(0),o=n(98),s=n(183),u=n(1),c=41+48/36+37/3600,l=Object(s.a)(0);e.a=function(){var t=4,e=Object(a.geoProjectionMutator)(r),n=e(t),o=n.stream;return n.lobes=function(n){return arguments.length?e(t=+n):t},n.stream=function(e){var r=n.rotate(),s=o(e),u=(n.rotate([0,0]),o(e));return n.rotate(r),s.sphere=function(){Object(a.geoStream)(function(t){return{type:"Polygon",coordinates:[Object(i.range)(-180,180+t/2,t).map(function(t,e){return[t,1&e?90-1e-6:c]}).concat(Object(i.range)(180,-180-t/2,-t).map(function(t,e){return[t,1&e?1e-6-90:-c]}))]}}(180/t),u)},s},n.scale(239.75)}},function(t,e,n){"use strict";function r(t){function e(e,i){var f,h,p=1-Object(a.y)(i);if(p&&p<2){var d,g=a.o-i,v=25;do{var y=Object(a.y)(g),m=Object(a.h)(g),x=o+Object(a.g)(y,r-m),b=1+l-2*r*m;g-=d=(g-c*o-r*y+b*x-.5*p*n)/(2*r*y*x)}while(Object(a.a)(d)>a.l&&--v>0);f=s*Object(a.B)(b),h=e*x/a.s}else f=s*(t+p),h=e*o/a.s;return[f*Object(a.y)(h),u-f*Object(a.h)(h)]}var n,r=1+t,i=Object(a.y)(1/r),o=Object(a.e)(i),s=2*Object(a.B)(a.s/(n=a.s+4*o*r)),u=.5*s*(r+Object(a.B)(t*(2+t))),c=t*t,l=r*r;return e.invert=function(t,e){var i=t*t+(e-=u)*e,f=(1+l-i/(s*s))/(2*r),h=Object(a.b)(f),p=Object(a.y)(h),d=o+Object(a.g)(p,r-f);return[Object(a.e)(t/Object(a.B)(i))*a.s/d,Object(a.e)(1-2*(h-c*o-r*p+(1+l-2*r*f)*d)/n)]},e}e.b=r;var i=n(0),a=n(1);e.a=function(){var t=1,e=Object(i.geoProjectionMutator)(r),n=e(t);return n.ratio=function(n){return arguments.length?e(t=+n):t},n.scale(167.774).center([0,18.67])}},function(t,e,n){"use strict";var r=n(182),i=n(31),a=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];e.a=function(){return Object(i.a)(r.a,a).scale(160.857)}},function(t,e,n){"use strict";var r=n(187),i=n(31),a=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];e.a=function(){return Object(i.a)(r.b,a).scale(152.63)}},function(t,e,n){"use strict";var r=n(26),i=n(31),a=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];e.a=function(){return Object(i.a)(r.d,a).scale(169.529)}},function(t,e,n){"use strict";var r=n(26),i=n(31),a=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];e.a=function(){return Object(i.a)(r.d,a).scale(169.529).rotate([20,0])}},function(t,e,n){"use strict";var r=n(99),i=n(31),a=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];e.a=function(){return Object(i.a)(r.c,a).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}},function(t,e,n){"use strict";var r=n(46),i=n(31),a=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];e.a=function(){return Object(i.a)(r.b,a).scale(152.63).rotate([-20,0])}},function(t,e,n){"use strict";function r(t,e){return[3/a.H*t*Object(a.B)(a.s*a.s/3-e*e),e]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){return[a.H/3*t/Object(a.B)(a.s*a.s/3-e*e),e]},e.a=function(){return Object(i.geoProjection)(r).scale(158.837)}},function(t,e,n){"use strict";function r(t){function e(e,n){if(Object(a.a)(Object(a.a)(n)-a.o)<a.k)return[0,n<0?-2:2];var r=Object(a.y)(n),i=Object(a.t)((1+r)/(1-r),t/2),o=.5*(i+1/i)+Object(a.h)(e*=t);return[2*Object(a.y)(e)/o,(i-1/i)/o]}return e.invert=function(e,n){var r=Object(a.a)(n);if(Object(a.a)(r-2)<a.k)return e?null:[0,Object(a.x)(n)*a.o];if(r>2)return null;var i=(e/=2)*e,o=(n/=2)*n,s=2*n/(1+i+o);return s=Object(a.t)((1+s)/(1-s),1/t),[Object(a.g)(2*e,1-i-o)/t,Object(a.e)((s-1)/(s+1))]},e}e.b=r;var i=n(0),a=n(1);e.a=function(){var t=.5,e=Object(i.geoProjectionMutator)(r),n=e(t);return n.spacing=function(n){return arguments.length?e(t=+n):t},n.scale(124.75)}},function(t,e,n){"use strict";function r(t,e){return[t*(1+Object(a.B)(Object(a.h)(e)))/2,e/(Object(a.h)(e/2)*Object(a.h)(t/6))]}e.b=r;var i=n(0),a=n(1),o=a.s/a.D;r.invert=function(t,e){var n=Object(a.a)(t),r=Object(a.a)(e),i=a.k,s=a.o;r<o?s*=r/o:i+=6*Object(a.b)(o/r);for(var u=0;u<25;u++){var c=Object(a.y)(s),l=Object(a.B)(Object(a.h)(s)),f=Object(a.y)(s/2),h=Object(a.h)(s/2),p=Object(a.y)(i/6),d=Object(a.h)(i/6),g=.5*i*(1+l)-n,v=s/(h*d)-r,y=l?-.25*i*c/l:0,m=.5*(1+l),x=(1+.5*s*f/h)/(h*d),b=s/h*(p/6)/(d*d),_=y*b-x*m,w=(g*b-v*m)/_,O=(v*y-g*x)/_;if(s-=w,i-=O,Object(a.a)(w)<a.k&&Object(a.a)(O)<a.k)break}return[t<0?-i:i,e<0?-s:s]},e.a=function(){return Object(i.geoProjection)(r).scale(97.2672)}},function(t,e,n){"use strict";function r(t,e){var n=t*t,r=e*e;return[t*(.975534+r*(-.0143059*n-.119161+-.0547009*r)),e*(1.00384+n*(.0802894+-.02855*r+199025e-9*n)+r*(.0998909+-.0491032*r))]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=Object(a.x)(t)*a.s,r=e/2,i=50;do{var o=n*n,s=r*r,u=n*r,c=n*(.975534+s*(-.0143059*o-.119161+-.0547009*s))-t,l=r*(1.00384+o*(.0802894+-.02855*s+199025e-9*o)+s*(.0998909+-.0491032*s))-e,f=.975534-s*(.119161+3*o*.0143059+.0547009*s),h=-u*(.238322+.2188036*s+.0286118*o),p=u*(.1605788+7961e-7*o+-.0571*s),d=1.00384+o*(.0802894+199025e-9*o)+s*(3*(.0998909-.02855*o)-.245516*s),g=h*p-d*f,v=(l*h-c*d)/g,y=(c*p-l*f)/g;n-=v,r-=y}while((Object(a.a)(v)>a.k||Object(a.a)(y)>a.k)&&--i>0);return i&&[n,r]},e.a=function(){return Object(i.geoProjection)(r).scale(139.98)}},function(t,e,n){"use strict";function r(t,e){return[Object(a.y)(t)/Object(a.h)(e),Object(a.F)(e)*Object(a.h)(t)]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=t*t,r=e*e,i=r+1,o=t?a.C*Object(a.B)((i-Object(a.B)(n*n+2*n*(r-1)+i*i))/n+1):1/Object(a.B)(i);return[Object(a.e)(t*o),Object(a.x)(e)*Object(a.b)(o)]},e.a=function(){return Object(i.geoProjection)(r).scale(144.049).clipAngle(89.999)}},function(t,e,n){"use strict";function r(t){function e(e,i){var o=i-t,s=Object(a.a)(o)<a.k?e*n:Object(a.a)(s=a.u+i/2)<a.k||Object(a.a)(Object(a.a)(s)-a.o)<a.k?0:e*o/Object(a.p)(Object(a.F)(s)/r);return[s,o]}var n=Object(a.h)(t),r=Object(a.F)(a.u+t/2);return e.invert=function(e,i){var o,s=i+t;return[Object(a.a)(i)<a.k?e/n:Object(a.a)(o=a.u+s/2)<a.k||Object(a.a)(Object(a.a)(o)-a.o)<a.k?0:e*Object(a.p)(Object(a.F)(o)/r)/i,s]},e}e.b=r;var i=n(38),a=n(1);e.a=function(){return Object(i.a)(r).parallel(40).scale(158.837)}},function(t,e,n){"use strict";function r(t,e){return[t,1.25*Object(a.p)(Object(a.F)(a.u+.4*e))]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){return[t,2.5*Object(a.f)(Object(a.m)(.8*e))-.625*a.s]},e.a=function(){return Object(i.geoProjection)(r).scale(108.318)}},function(t,e,n){"use strict";function r(t){function e(e,r){for(var i,a=Object(o.h)(r),s=2/(1+a*Object(o.h)(e)),u=s*a*Object(o.y)(e),c=s*Object(o.y)(r),l=n,f=t[l],h=f[0],p=f[1];--l>=0;)h=(f=t[l])[0]+u*(i=h)-c*p,p=f[1]+u*p+c*i;return[h=u*(i=h)-c*p,p=u*p+c*i]}var n=t.length-1;return e.invert=function(e,r){var i=20,a=e,s=r;do{for(var u,c=n,l=t[c],f=l[0],h=l[1],p=0,d=0;--c>=0;)p=f+a*(u=p)-s*d,d=h+a*d+s*u,f=(l=t[c])[0]+a*(u=f)-s*h,h=l[1]+a*h+s*u;var g,v,y=(p=f+a*(u=p)-s*d)*p+(d=h+a*d+s*u)*d;a-=g=((f=a*(u=f)-s*h-e)*p+(h=a*h+s*u-r)*d)/y,s-=v=(h*p-f*d)/y}while(Object(o.a)(g)+Object(o.a)(v)>o.k*o.k&&--i>0);if(i){var m=Object(o.B)(a*a+s*s),x=2*Object(o.f)(.5*m),b=Object(o.y)(x);return[Object(o.g)(a*b,m*Object(o.h)(x)),m?Object(o.e)(s*b/m):0]}},e}function i(t,e){var n=Object(a.geoProjection)(r(t)).rotate(e).clipAngle(90),i=Object(a.geoRotation)(e),o=n.center;return delete n.rotate,n.center=function(t){return arguments.length?o(i(t)):i.invert(o())},n}e.g=r,e.b=function(){return i(s,[152,-64]).scale(1500).center([-160.908,62.4864]).clipAngle(25)},e.c=function(){return i(u,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},e.d=function(){return i(c,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},e.f=function(){return i(l,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},e.e=function(){return i(f,[165,10]).scale(250).clipAngle(130).center([-165,-10])},e.a=i;var a=n(0),o=n(1),s=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],u=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],c=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],l=[[.9245,0],[0,0],[.01943,0]],f=[[.721316,0],[0,0],[-.00881625,-.00617325]]},function(t,e,n){"use strict";function r(t,e){var n=Object(a.e)(7*Object(a.y)(e)/(3*o));return[o*t*(2*Object(a.h)(2*n/3)-1)/s,9*Object(a.y)(n/3)/s]}e.b=r;var i=n(0),a=n(1),o=Object(a.B)(6),s=Object(a.B)(7);r.invert=function(t,e){var n=3*Object(a.e)(e*s/9);return[t*s/(o*(2*Object(a.h)(2*n/3)-1)),Object(a.e)(3*Object(a.y)(n)*o/7)]},e.a=function(){return Object(i.geoProjection)(r).scale(164.859)}},function(t,e,n){"use strict";function r(t,e){for(var n,r=(1+a.C)*Object(a.y)(e),i=e,o=0;o<25&&(i-=n=(Object(a.y)(i/2)+Object(a.y)(i)-r)/(.5*Object(a.h)(i/2)+Object(a.h)(i)),!(Object(a.a)(n)<a.k));o++);return[t*(1+2*Object(a.h)(i)/Object(a.h)(i/2))/(3*a.D),2*Object(a.B)(3)*Object(a.y)(i/2)/Object(a.B)(2+a.D)]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=e*Object(a.B)(2+a.D)/(2*Object(a.B)(3)),r=2*Object(a.e)(n);return[3*a.D*t/(1+2*Object(a.h)(r)/Object(a.h)(r/2)),Object(a.e)((n+Object(a.y)(r))/(1+a.C))]},e.a=function(){return Object(i.geoProjection)(r).scale(188.209)}},function(t,e,n){"use strict";function r(t,e){for(var n,r=Object(a.B)(6/(4+a.s)),i=(1+a.s/4)*Object(a.y)(e),o=e/2,s=0;s<25&&(o-=n=(o/2+Object(a.y)(o)-i)/(.5+Object(a.h)(o)),!(Object(a.a)(n)<a.k));s++);return[r*(.5+Object(a.h)(o))*t/1.5,r*o]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=Object(a.B)(6/(4+a.s)),r=e/n;return Object(a.a)(Object(a.a)(r)-a.o)<a.k&&(r=r<0?-a.o:a.o),[1.5*t/(n*(.5+Object(a.h)(r))),Object(a.e)((r/2+Object(a.y)(r))/(1+a.s/4))]},e.a=function(){return Object(i.geoProjection)(r).scale(166.518)}},function(t,e,n){"use strict";function r(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,s=o*o;r-=n=(r*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-e)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(Object(a.a)(n)>a.k&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},e.a=function(){return Object(i.geoProjection)(r).scale(175.295)}},function(t,e,n){"use strict";function r(t,e){var n=e*e,r=n*n,i=n*r;return[t*(.84719-.13063*n+i*i*(.05494*n-.04515-.02326*r+.00331*i)),e*(1.01183+r*r*(.01926*n-.02625-.00396*r))]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n,r,i,o,s=e,u=25;do{s-=n=(s*(1.01183+(i=(r=s*s)*r)*i*(.01926*r-.02625-.00396*i))-e)/(1.01183+i*i*(.21186*r-.23625+-.05148*i))}while(Object(a.a)(n)>a.l&&--u>0);return[t/(.84719-.13063*(r=s*s)+(o=r*(i=r*r))*o*(.05494*r-.04515-.02326*i+.00331*o)),s]},e.a=function(){return Object(i.geoProjection)(r).scale(175.295)}},function(t,e,n){"use strict";function r(t,e){return[t*(1+Object(a.h)(e))/2,2*(e-Object(a.F)(e/2))]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){for(var n=e/2,r=0,i=1/0;r<10&&Object(a.a)(i)>a.k;++r){var o=Object(a.h)(e/2);e-=i=(e-Object(a.F)(e/2)-n)/(1-.5/(o*o))}return[2*t/(1+Object(a.h)(e)),e]},e.a=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,e,n){"use strict";function r(t,e){var n=e*e;return[t,e*(o+n*n*(s+n*(u+c*n)))]}e.b=r;var i=n(0),a=n(1),o=1.0148,s=.23185,u=-.14499,c=.02406,l=o,f=5*s,h=7*u,p=9*c;r.invert=function(t,e){e>1.790857183?e=1.790857183:e<-1.790857183&&(e=-1.790857183);var n,r=e;do{var i=r*r;r-=n=(r*(o+i*i*(s+i*(u+c*i)))-e)/(l+i*i*(f+i*(h+p*i)))}while(Object(a.a)(n)>a.k);return[t,r]},e.a=function(){return Object(i.geoProjection)(r).scale(139.319)}},function(t,e,n){"use strict";function r(t,e){if(Object(a.a)(e)<a.k)return[t,0];var n=Object(a.F)(e),r=t*Object(a.y)(e);return[Object(a.y)(r)/n,e+(1-Object(a.h)(r))/n]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){if(Object(a.a)(e)<a.k)return[t,0];var n,r=t*t+e*e,i=.5*e,o=10;do{var s=Object(a.F)(i),u=1/Object(a.h)(i),c=r-2*e*i+i*i;i-=n=(s*c+2*(i-e))/(2+c*u*u+2*(i-e)*s)}while(Object(a.a)(n)>a.k&&--o>0);return s=Object(a.F)(i),[(Object(a.a)(e)<Object(a.a)(i+1/s)?Object(a.e)(t*s):Object(a.x)(t)*(Object(a.b)(Object(a.a)(t*s))+a.o))/Object(a.y)(i),i]},e.a=function(){return Object(i.geoProjection)(r).scale(103.74)}},function(t,e,n){"use strict";function r(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function i(t,e){return[t[0]-e[0],t[1]-e[1]]}function a(t){return Object(o.B)(t[0]*t[0]+t[1]*t[1])}e.b=function(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]},e.c=r;var o=n(1);e.a=function(t,e){var n=i(t[1],t[0]),s=i(e[1],e[0]),u=function(t,e){return Object(o.g)(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}(n,s),c=a(n)/a(s);return r([1,0,t[0][0],0,1,t[0][1]],r([c,0,0,0,c,0],r([Object(o.h)(u),Object(o.y)(u),0,-Object(o.y)(u),Object(o.h)(u),0],[1,0,-e[0][0],0,1,-e[0][1]])))}},function(t,e,n){"use strict";var r=n(0),i=n(1),a=n(69),o=n(100);e.a=function(t){t=t||function(t){var e=Object(r.geoCentroid)({type:"MultiPoint",coordinates:t});return Object(r.geoGnomonic)().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var e=o.a.map(function(e){return{face:e,project:t(e)}});return[-1,0,0,1,0,1,4,5].forEach(function(t,n){var r=e[t];r&&(r.children||(r.children=[])).push(e[n])}),Object(a.a)(e[0],function(t,n){return e[t<-i.s/2?n<0?6:4:t<0?n<0?2:0:t<i.s/2?n<0?3:1:n<0?7:5]}).scale(101.858).center([0,45])}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.a)(t,e);return[n[0]*c,n[1]]}var i=n(0),a=n(98),o=n(1),s=n(69),u=n(100),c=2/Object(o.B)(3);r.invert=function(t,e){return a.a.invert(t/c,e)},e.a=function(t){t=t||function(t){var e=Object(i.geoCentroid)({type:"MultiPoint",coordinates:t});return Object(i.geoProjection)(r).translate([0,0]).scale(1).rotate(e[1]>0?[-e[0],0]:[180-e[0],180])};var e=u.a.map(function(e){return{face:e,project:t(e)}});return[-1,0,0,1,0,1,4,5].forEach(function(t,n){var r=e[t];r&&(r.children||(r.children=[])).push(e[n])}),Object(s.a)(e[0],function(t,n){return e[t<-o.s/2?n<0?6:4:t<0?n<0?2:0:t<o.s/2?n<0?3:1:n<0?7:5]}).scale(121.906).center([0,48.5904])}},function(t,e,n){"use strict";function r(t,e){for(var n=0,r=t.length,i=0;n<r;++n)i+=t[n]*e[n];return i}function i(t){return[Object(s.g)(t[1],t[0])*s.j,Object(s.e)(Object(s.q)(-1,Object(s.r)(1,t[2])))*s.j]}function a(t){var e=t[0]*s.v,n=t[1]*s.v,r=Object(s.h)(n);return[r*Object(s.h)(e),r*Object(s.y)(e),Object(s.y)(n)]}var o=n(0),s=n(1),u=n(69),c=n(100);e.a=function(t){t=t||function(t){var e=6===t.length?Object(o.geoCentroid)({type:"MultiPoint",coordinates:t}):t[0];return Object(o.geoGnomonic)().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var e=c.a.map(function(t){for(var e,n=t.map(a),r=n.length,o=n[r-1],s=[],u=0;u<r;++u)s.push(i([.9486832980505138*o[0]+.31622776601683794*(e=n[u])[0],.9486832980505138*o[1]+.31622776601683794*e[1],.9486832980505138*o[2]+.31622776601683794*e[2]]),i([.9486832980505138*e[0]+.31622776601683794*o[0],.9486832980505138*e[1]+.31622776601683794*o[1],.9486832980505138*e[2]+.31622776601683794*o[2]])),o=e;return s}),n=[],l=[-1,0,0,1,0,1,4,5];e.forEach(function(t,r){for(var i=c.a[r],o=i.length,s=n[r]=[],u=0;u<o;++u)e.push([i[u],t[(2*u+2)%(2*o)],t[(2*u+1)%(2*o)]]),l.push(r),s.push(function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(a(t[(2*u+2)%(2*o)]),a(t[(2*u+1)%(2*o)])))});var f=e.map(function(e){return{project:t(e),face:e}});return l.forEach(function(t,e){var n=f[t];n&&(n.children||(n.children=[])).push(f[e])}),Object(u.a)(f[0],function(t,e){var i=Object(s.h)(e),a=[i*Object(s.h)(t),i*Object(s.y)(t),Object(s.y)(e)],o=t<-s.s/2?e<0?6:4:t<0?e<0?2:0:t<s.s/2?e<0?3:1:e<0?7:5,u=n[o];return f[r(u[0],a)<0?8+3*o:r(u[1],a)<0?8+3*o+1:r(u[2],a)<0?8+3*o+2:o]}).scale(110.625).center([0,45])}},function(t,e,n){"use strict";function r(t,e){return{type:"FeatureCollection",features:t.features.map(function(t){return i(t,e)})}}function i(t,e){return{type:"Feature",id:t.id,properties:t.properties,geometry:a(t.geometry,e)}}function a(t,e){if(!t)return null;if("GeometryCollection"===t.type)return function(t,e){return{type:"GeometryCollection",geometries:t.geometries.map(function(t){return a(t,e)})}}(t,e);var n;switch(t.type){case"Point":case"MultiPoint":n=h;break;case"LineString":case"MultiLineString":n=p;break;case"Polygon":case"MultiPolygon":case"Sphere":n=d;break;default:return null}return Object(o.geoStream)(t,e(n)),n.result()}var o=n(0),s=n(409),u=n(410),c=n(411);e.a=function(t,e){var n,o=e.stream;if(!o)throw new Error("invalid projection");switch(t&&t.type){case"Feature":n=i;break;case"FeatureCollection":n=r;break;default:n=a}return n(t,o)};var l=[],f=[],h={point:function(t,e){l.push([t,e])},result:function(){var t=l.length?l.length<2?{type:"Point",coordinates:l[0]}:{type:"MultiPoint",coordinates:l}:null;return l=[],t}},p={lineStart:s.a,point:function(t,e){l.push([t,e])},lineEnd:function(){l.length&&(f.push(l),l=[])},result:function(){var t=f.length?f.length<2?{type:"LineString",coordinates:f[0]}:{type:"MultiLineString",coordinates:f}:null;return f=[],t}},d={polygonStart:s.a,lineStart:s.a,point:function(t,e){l.push([t,e])},lineEnd:function(){var t=l.length;if(t){do{l.push(l[0].slice())}while(++t<4);f.push(l),l=[]}},polygonEnd:s.a,result:function(){if(!f.length)return null;var t=[],e=[];return f.forEach(function(n){Object(u.a)(n)?t.push([n]):e.push(n)}),e.forEach(function(e){var n=e[0];t.some(function(t){if(Object(c.a)(t[0],n))return t.push(e),!0})||t.push([e])}),f=[],t.length?t.length>1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";e.a=function(t){if((e=t.length)<4)return!1;for(var e,n=0,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r<=0}},function(t,e,n){"use strict";e.a=function(t,e){for(var n=e[0],r=e[1],i=!1,a=0,o=t.length,s=o-1;a<o;s=a++){var u=t[a],c=u[0],l=u[1],f=t[s],h=f[1];l>r^h>r&&n<(f[0]-c)*(r-l)/(h-l)+c&&(i=!i)}return i}},function(t,e,n){"use strict";var r=n(184),i=n(101);e.a=function(){return Object(i.a)(r.b).scale(176.423)}},function(t,e,n){"use strict";e.a=function(t,e){function n(t){var n=t.length,r=2,i=new Array(n);for(i[0]=+t[0].toFixed(e),i[1]=+t[1].toFixed(e);r<n;)i[r]=t[r],++r;return i}function r(t){return t.map(n)}function i(t){return t.map(r)}function a(t){if(null==t)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(a)};break;case"Point":e={type:"Point",coordinates:n(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:r(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:i(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(i)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}function o(t){var e={type:"Feature",properties:t.properties,geometry:a(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),e}if(!(0<=(e=+e)&&e<=20))throw new Error("invalid digits");if(null!=t)switch(t.type){case"Feature":return o(t);case"FeatureCollection":var s={type:"FeatureCollection",features:t.features.map(o)};return null!=t.bbox&&(s.bbox=t.bbox),s;default:return a(t)}return t}},function(t,e,n){"use strict";function r(t){function e(e,r){var a=n?Object(i.F)(e*n/2)/n:e/2;if(!r)return[2*a,-t];var o=2*Object(i.f)(a*Object(i.y)(r)),s=1/Object(i.F)(r);return[Object(i.y)(o)*s,r+(1-Object(i.h)(o))*s-t]}var n=Object(i.y)(t);return e.invert=function(e,r){if(Object(i.a)(r+=t)<i.k)return[n?2*Object(i.f)(n*e/2)/n:e,0];var a,o=e*e+r*r,s=0,u=10;do{var c=Object(i.F)(s),l=1/Object(i.h)(s),f=o-2*r*s+s*s;s-=a=(c*f+2*(s-r))/(2+f*l*l+2*(s-r)*c)}while(Object(i.a)(a)>i.k&&--u>0);var h=e*(c=Object(i.F)(s)),p=Object(i.F)(Object(i.a)(r)<Object(i.a)(s+1/c)?.5*Object(i.e)(h):.5*Object(i.b)(h)+i.s/4)/Object(i.y)(s);return[n?2*Object(i.f)(n*p)/n:2*p,s]},e}e.b=r;var i=n(1),a=n(38);e.a=function(){return Object(a.a)(r).scale(131.215)}},function(t,e,n){"use strict";function r(t,e){var n,r=Object(a.r)(18,36*Object(a.a)(e)/a.s),i=Object(a.n)(r),s=r-i,u=(n=o[i])[0],c=n[1],l=(n=o[++i])[0],f=n[1],h=(n=o[Object(a.r)(19,++i)])[0],p=n[1];return[t*(l+s*(h-u)/2+s*s*(h-2*l+u)/2),(e>0?a.o:-a.o)*(f+s*(p-c)/2+s*s*(p-2*f+c)/2)]}e.b=r;var i=n(0),a=n(1),o=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];o.forEach(function(t){t[1]*=1.0144}),r.invert=function(t,e){var n=e/a.o,r=90*n,i=Object(a.r)(18,Object(a.a)(r/5)),s=Object(a.q)(0,Object(a.n)(i));do{var u=o[s][1],c=o[s+1][1],l=o[Object(a.r)(19,s+2)][1],f=l-u,h=l-2*c+u,p=2*(Object(a.a)(n)-c)/f,d=h/f,g=p*(1-d*p*(1-2*d*p));if(g>=0||1===s){r=(e>=0?5:-5)*(g+i);var v,y=50;do{g=(i=Object(a.r)(18,Object(a.a)(r)/5))-(s=Object(a.n)(i)),u=o[s][1],c=o[s+1][1],l=o[Object(a.r)(19,s+2)][1],r-=(v=(e>=0?a.o:-a.o)*(c+g*(l-u)/2+g*g*(l-2*c+u)/2)-e)*a.j}while(Object(a.a)(v)>a.l&&--y>0);break}}while(--s>=0);var m=o[s][0],x=o[s+1][0],b=o[Object(a.r)(19,s+2)][0];return[t/(x+g*(b-m)/2+g*g*(b-2*x+m)/2),r*a.v]},e.a=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,e,n){"use strict";function r(t,e){function n(e,n){var a=r(e,n),s=a[1],u=s*o/(t-1)+i;return[a[0]*i/u,s/u]}var r=function(t){function e(e,n){var r=Object(a.h)(n),i=(t-1)/(t-r*Object(a.h)(e));return[i*r*Object(a.y)(e),i*Object(a.y)(n)]}return e.invert=function(e,n){var r=e*e+n*n,i=Object(a.B)(r),o=(t-Object(a.B)(1-r*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[Object(a.g)(e*o,i*Object(a.B)(1-o*o)),i?Object(a.e)(n*o/i):0]},e}(t);if(!e)return r;var i=Object(a.h)(e),o=Object(a.y)(e);return n.invert=function(e,n){var a=(t-1)/(t-1-n*o);return r.invert(a*e,a*n*i)},n}e.b=r;var i=n(0),a=n(1);e.a=function(){var t=2,e=0,n=Object(i.geoProjectionMutator)(r),o=n(t,e);return o.distance=function(r){return arguments.length?n(t=+r,e):t},o.tilt=function(r){return arguments.length?n(t,e=r*a.v):e*a.j},o.scale(432.147).clipAngle(Object(a.b)(1/t)*a.j-1e-6)}},function(t,e,n){"use strict";function r(t){return t.length>0}function i(t){return t===v||t===m?[0,t]:[h,function(t){return Math.floor(t*f)/f}(t)]}function a(t){var e=t[0],n=t[1],r=!1;return e<=p?(e=h,r=!0):e>=g&&(e=d,r=!0),n<=y?(n=v,r=!0):n>=x&&(n=m,r=!0),r?[e,n]:t}function o(t){return t.map(a)}function s(t,e,n){for(var r=0,o=t.length;r<o;++r){var s=t[r].slice();n.push({index:-1,polygon:e,ring:s});for(var u=0,c=s.length;u<c;++u){var l=s[u],f=l[0],h=l[1];if(f<=p||f>=g||h<=y||h>=x){s[u]=a(l);for(var d=u+1;d<c;++d){var v=s[d],m=v[0],b=v[1];if(m>p&&m<g&&b>y&&b<x)break}if(d===u+1)continue;if(u){var _={index:-1,polygon:e,ring:s.slice(0,u+1)};_.ring[_.ring.length-1]=i(h),n[n.length-1]=_}else n.pop();if(d>=c)break;n.push({index:-1,polygon:e,ring:s=s.slice(d-1)}),s[0]=i(s[0][1]),u=-1,c=s.length}}}}function u(t){var e,n,r,i,a,o,s=t.length,u={},c={};for(e=0;e<s;++e)(r=(n=t[e]).ring[0])[0]!==(a=n.ring[n.ring.length-1])[0]||r[1]!==a[1]?(n.index=e,u[r]=c[a]=n):(n.polygon.push(n.ring),t[e]=null);for(e=0;e<s;++e)if(n=t[e]){if(i=c[r=n.ring[0]],o=u[a=n.ring[n.ring.length-1]],delete u[r],delete c[a],r[0]===a[0]&&r[1]===a[1]){n.polygon.push(n.ring);continue}i?(delete c[r],delete u[i.ring[0]],i.ring.pop(),t[i.index]=null,n={index:-1,polygon:i.polygon,ring:i.ring.concat(n.ring)},i===o?n.polygon.push(n.ring):(n.index=s++,t.push(u[n.ring[0]]=c[n.ring[n.ring.length-1]]=n))):o?(delete u[a],delete c[o.ring[o.ring.length-1]],n.ring.pop(),n={index:s++,polygon:o.polygon,ring:n.ring.concat(o.ring)},t[o.index]=null,t.push(u[n.ring[0]]=c[n.ring[n.ring.length-1]]=n)):(n.ring.push(n.ring[0]),n.polygon.push(n.ring))}}function c(t){var e={type:"Feature",geometry:l(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}function l(t){if(null==t)return t;var e,n,i,c;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(l)};break;case"Point":e={type:"Point",coordinates:a(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:o(t.coordinates)};break;case"MultiLineString":e={type:"MultiLineString",coordinates:t.coordinates.map(o)};break;case"Polygon":var f=[];s(t.coordinates,f,n=[]),u(n),e={type:"Polygon",coordinates:f};break;case"MultiPolygon":n=[],i=-1,c=t.coordinates.length;for(var h=new Array(c);++i<c;)s(t.coordinates[i],h[i]=[],n);u(n),e={type:"MultiPolygon",coordinates:h.filter(r)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}var f=1e4,h=-180,p=h+1e-4,d=180,g=d-1e-4,v=-90,y=v+1e-4,m=90,x=m-1e-4;e.a=function(t){if(null==t)return t;switch(t.type){case"Feature":return c(t);case"FeatureCollection":var e={type:"FeatureCollection",features:t.features.map(c)};return null!=t.bbox&&(e.bbox=t.bbox),e;default:return l(t)}}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.F)(e/2),r=Object(a.y)(a.u*n);return[t*(.74482-.34588*r*r),1.70711*n]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=e/1.70711,r=Object(a.y)(a.u*n);return[t/(.74482-.34588*r*r),2*Object(a.f)(n)]},e.a=function(){return Object(i.geoProjection)(r).scale(146.153)}},function(t,e,n){"use strict";function r(t){function e(t,e){var r=Object(a.geoGnomonicRaw)(t,e);return r[0]*=n,r}var n=Object(o.h)(t);return e.invert=function(t,e){return a.geoGnomonicRaw.invert(t/n,e)},e}function i(t,e){return Object(s.a)(r,t,e)}e.b=r,e.c=function(){return i([-158,21.5],[-77,39]).clipAngle(60).scale(400)},e.a=i;var a=n(0),o=n(1),s=n(189)},function(t,e,n){"use strict";function r(t){function e(e,a){var s=Object(o.b)(Object(o.h)(a)*Object(o.h)(e-n)),u=Object(o.b)(Object(o.h)(a)*Object(o.h)(e-r));return[((s*=s)-(u*=u))/(2*t),(a<0?-1:1)*Object(o.B)(4*i*u-(i-s+u)*(i-s+u))/(2*t)]}if(!(t*=2))return a.geoAzimuthalEquidistantRaw;var n=-t/2,r=-n,i=t*t,s=Object(o.F)(r),u=.5/Object(o.y)(r);return e.invert=function(t,e){var i,a,c=e*e,l=Object(o.h)(Object(o.B)(c+(i=t+n)*i)),f=Object(o.h)(Object(o.B)(c+(i=t+r)*i));return[Object(o.g)(a=l-f,i=(l+f)*s),(e<0?-1:1)*Object(o.b)(Object(o.B)(i*i+a*a)*u)]},e}function i(t,e){return Object(s.a)(r,t,e)}e.b=r,e.c=function(){return i([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)},e.a=i;var a=n(0),o=n(1),s=n(189)},function(t,e,n){"use strict";function r(t,e){if(Object(a.a)(e)<a.k)return[t,0];var n=Object(a.a)(e/a.o),r=Object(a.e)(n);if(Object(a.a)(t)<a.k||Object(a.a)(Object(a.a)(e)-a.o)<a.k)return[0,Object(a.x)(e)*a.s*Object(a.F)(r/2)];var i=Object(a.h)(r),o=Object(a.a)(a.s/t-t/a.s)/2,s=o*o,u=i/(n+i-1),c=u*(2/n-1),l=c*c,f=l+s,h=u-l,p=s+u;return[Object(a.x)(t)*a.s*(o*h+Object(a.B)(s*h*h-f*(u*u-l)))/f,Object(a.x)(e)*a.s*(c*p-o*Object(a.B)((s+1)*f-p*p))/f]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){if(Object(a.a)(e)<a.k)return[t,0];if(Object(a.a)(t)<a.k)return[0,a.o*Object(a.y)(2*Object(a.f)(e/a.s))];var n=(t/=a.s)*t,r=(e/=a.s)*e,i=n+r,o=i*i,s=-Object(a.a)(e)*(1+i),u=s-2*r+n,c=-2*s+1+2*r+o,l=r/c+(2*u*u*u/(c*c*c)-9*s*u/(c*c))/27,f=(s-u*u/(3*c))/c,h=2*Object(a.B)(-f/3),p=Object(a.b)(3*l/(f*h))/3;return[a.s*(i-1+Object(a.B)(1+2*(n-r)+o))/(2*t),Object(a.x)(e)*a.s*(-h*Object(a.h)(p+a.s/3)-u/(3*c))]},e.a=function(){return Object(i.geoProjection)(r).scale(79.4183)}},function(t,e,n){"use strict";function r(t,e){if(Object(a.a)(e)<a.k)return[t,0];var n=Object(a.a)(e/a.o),r=Object(a.e)(n);if(Object(a.a)(t)<a.k||Object(a.a)(Object(a.a)(e)-a.o)<a.k)return[0,Object(a.x)(e)*a.s*Object(a.F)(r/2)];var i=Object(a.h)(r),o=Object(a.a)(a.s/t-t/a.s)/2,s=o*o,u=i*(Object(a.B)(1+s)-o*i)/(1+s*n*n);return[Object(a.x)(t)*a.s*u,Object(a.x)(e)*a.s*Object(a.B)(1-u*(2*o+u))]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){if(!t)return[0,a.o*Object(a.y)(2*Object(a.f)(e/a.s))];var n=Object(a.a)(t/a.s),r=(1-n*n-(e/=a.s)*e)/(2*n),i=r*r,o=Object(a.B)(i+1);return[Object(a.x)(t)*a.s*(o-r),Object(a.x)(e)*a.o*Object(a.y)(2*Object(a.g)(Object(a.B)((1-2*r*n)*(r+o)-n),Object(a.B)(o+r+n)))]},e.a=function(){return Object(i.geoProjection)(r).scale(79.4183)}},function(t,e,n){"use strict";function r(t,e){if(Object(a.a)(e)<a.k)return[t,0];var n=e/a.o,r=Object(a.e)(n);if(Object(a.a)(t)<a.k||Object(a.a)(Object(a.a)(e)-a.o)<a.k)return[0,a.s*Object(a.F)(r/2)];var i=(a.s/t-t/a.s)/2,o=n/(1+Object(a.h)(r));return[a.s*(Object(a.x)(t)*Object(a.B)(i*i+1-o*o)-i),a.s*o]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){if(!e)return[t,0];var n=e/a.s,r=(a.s*a.s*(1-n*n)-t*t)/(2*a.s*t);return[t?a.s*(Object(a.x)(t)*Object(a.B)(r*r+1)-r):0,a.o*Object(a.y)(2*Object(a.f)(n))]},e.a=function(){return Object(i.geoProjection)(r).scale(79.4183)}},function(t,e,n){"use strict";function r(t,e){if(!e)return[t,0];var n=Object(a.a)(e);if(!t||n===a.o)return[0,e];var r=n/a.o,i=r*r,o=(8*r-i*(i+2)-5)/(2*i*(r-1)),s=o*o,u=r*o,c=i+s+2*u,l=r+3*o,f=t/a.o,h=f+1/f,p=Object(a.x)(Object(a.a)(t)-a.o)*Object(a.B)(h*h-4),d=p*p,g=c*(i+s*d-1)+(1-i)*(i*(l*l+4*s)+12*u*s+4*s*s),v=(p*(c+s-1)+2*Object(a.B)(g))/(4*c+d);return[Object(a.x)(t)*a.o*v,Object(a.x)(e)*a.o*Object(a.B)(1+p*Object(a.a)(v)-v*v)]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n;if(!t||!e)return[t,e];e/=a.s;var r=Object(a.x)(t)*t/a.o,i=(r*r-1+4*e*e)/Object(a.a)(r),o=i*i,s=2*e,u=50;do{var c=s*s,l=(8*s-c*(c+2)-5)/(2*c*(s-1)),f=(3*s-c*s-10)/(2*c*s),h=l*l,p=s*l,d=s+l,g=d*d,v=s+3*l,y=g*(c+h*o-1)+(1-c)*(c*(v*v+4*h)+h*(12*p+4*h)),m=-2*d*(4*p*h+(1-4*c+3*c*c)*(1+f)+h*(14*c-6-o+(8*c-8-2*o)*f)+p*(12*c-8+(10*c-10-o)*f)),x=Object(a.B)(y);s-=n=(i*(g+h-1)+2*x-r*(4*g+o))/(i*(2*l*f+2*d*(1+f))+m/x-8*d*(i*(-1+h+g)+2*x)*(1+f)/(o+4*g))}while(n>a.k&&--u>0);return[Object(a.x)(t)*(Object(a.B)(i*i+4)+i)*a.s/4,a.o*s]},e.a=function(){return Object(i.geoProjection)(r).scale(127.16)}},function(t,e,n){"use strict";n.d(e,"b",function(){return u});var r=n(0),i=n(1),a=n(26),o=4*i.s+3*Object(i.B)(3),s=2*Object(i.B)(2*i.s*Object(i.B)(3)/o),u=Object(a.b)(s*Object(i.B)(3)/i.s,s,o/6);e.a=function(){return Object(r.geoProjection)(u).scale(176.84)}},function(t,e,n){"use strict";function r(t,e){return[t*Object(a.B)(1-3*e*e/(a.s*a.s)),e]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){return[t/Object(a.B)(1-3*e*e/(a.s*a.s)),e]},e.a=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,e,n){"use strict";function r(t,e){var n=.90631*Object(a.y)(e),r=Object(a.B)(1-n*n),i=Object(a.B)(2/(1+r*Object(a.h)(t/=3)));return[2.66723*r*i*Object(a.y)(t),1.24104*n*i]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=t/2.66723,r=e/1.24104,i=Object(a.B)(n*n+r*r),o=2*Object(a.e)(i/2);return[3*Object(a.g)(t*Object(a.F)(o),2.66723*i),i&&Object(a.e)(e*Object(a.y)(o)/(1.24104*.90631*i))]},e.a=function(){return Object(i.geoProjection)(r).scale(172.632)}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.h)(e),r=Object(a.h)(t)*n,i=1-r,o=Object(a.h)(t=Object(a.g)(Object(a.y)(t)*n,-Object(a.y)(e))),s=Object(a.y)(t);return[s*(n=Object(a.B)(1-r*r))-o*i,-o*n-s*i]}e.b=r;var i=n(0),a=n(1);r.invert=function(t,e){var n=(t*t+e*e)/-2,r=Object(a.B)(-n*(2+n)),i=e*n+t*r,o=t*n-e*r,s=Object(a.B)(o*o+i*i);return[Object(a.g)(r*i,s*(1+n)),s?-Object(a.e)(r*o/s):0]},e.a=function(){return Object(i.geoProjection)(r).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}},function(t,e,n){"use strict";function r(t,e){var n=Object(a.a)(t,e);return[(n[0]+t/o.o)/2,(n[1]+e)/2]}e.b=r;var i=n(0),a=n(180),o=n(1);r.invert=function(t,e){var n=t,r=e,i=25;do{var a,s=Object(o.h)(r),u=Object(o.y)(r),c=Object(o.y)(2*r),l=u*u,f=s*s,h=Object(o.y)(n),p=Object(o.h)(n/2),d=Object(o.y)(n/2),g=d*d,v=1-f*p*p,y=v?Object(o.b)(s*p)*Object(o.B)(a=1/v):a=0,m=.5*(2*y*s*d+n/o.o)-t,x=.5*(y*u+r)-e,b=.5*a*(f*g+y*s*p*l)+.5/o.o,_=a*(h*c/4-y*u*d),w=.125*a*(c*d-y*u*f*h),O=.5*a*(l*p+y*g*s)+.5,j=_*w-O*b,S=(x*_-m*O)/j,M=(m*w-x*b)/j;n-=S,r-=M}while((Object(o.a)(S)>o.k||Object(o.a)(M)>o.k)&&--i>0);return[n,r]},e.a=function(){return Object(i.geoProjection)(r).scale(158.837)}},function(t,e,n){var r=n(191);t.exports=function(t){return r(t,4)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(71),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},function(t,e,n){var r=n(71);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(71);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(71);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(70);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(70),i=n(103),a=n(104);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(442),i=n(70),a=n(103);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(443),a=n(444),o=n(445),s=n(446),u=n(447);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=o,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){var r=n(72);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(72),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(72),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(72);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(73);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(73);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(73);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(73);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(41),i=n(11);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(41),i=n(105);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(15),i=n(64),a=n(456),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return a(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&o.call(t,s))&&n.push(s);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){(function(t){var r=n(18),i="object"==typeof e&&e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(e,n(65)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(41),i=n(106);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}},function(t,e,n){var r=n(41),i=n(194);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(196),i=n(194),a=n(105);t.exports=function(t){return r(t,a,i)}},function(t,e,n){var r=n(29)(n(18),"DataView");t.exports=r},function(t,e,n){var r=n(29)(n(18),"Promise");t.exports=r},function(t,e,n){var r=n(29)(n(18),"WeakMap");t.exports=r},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(109),i=n(468),a=n(469),o=n(471),s=n(472),u=n(474),c=n(475);t.exports=function(t,e,n,l){var f=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new f(+t);case"[object DataView]":return i(t,l);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(t,l);case"[object Map]":return a(t,l,n);case"[object Number]":case"[object String]":return new f(t);case"[object RegExp]":return o(t);case"[object Set]":return s(t,l,n);case"[object Symbol]":return u(t)}}},function(t,e,n){var r=n(109);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e,n){var r=n(470),i=n(200),a=n(201);t.exports=function(t,e,n){var o=e?n(a(t),1):a(t);return i(o,r,new t.constructor)}},function(t,e){t.exports=function(t,e){return t.set(e[0],e[1]),t}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(473),i=n(200),a=n(74);t.exports=function(t,e,n){var o=e?n(a(t),1):a(t);return i(o,r,new t.constructor)}},function(t,e){t.exports=function(t,e){return t.add(e),t}},function(t,e,n){var r=n(35),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;t.exports=function(t){return a?Object(a.call(t)):{}}},function(t,e,n){var r=n(109);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(477),i=n(108),a=n(64);t.exports=function(t){return"function"!=typeof t.constructor||a(t)?{}:r(i(t))}},function(t,e,n){var r=n(15),i=Object.create,a=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=a},function(t,e,n){var r=n(479)(n(497));t.exports=r},function(t,e,n){var r=n(48),i=n(24),a=n(11);t.exports=function(t){return function(e,n,o){var s=Object(e);if(!i(e)){var u=r(n,3);e=a(e),n=function(t){return u(s[t],t,s)}}var c=t(e,n,o);return c>-1?s[u?e[c]:c]:void 0}}},function(t,e,n){var r=n(202),i=n(205),a=n(207);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(102),i=n(204),a=n(485),o=n(486),s=n(197),u=n(3),c=n(89),l=n(152),f="[object Arguments]",h="[object Array]",p="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,v,y){var m=u(t),x=u(e),b=m?h:s(t),_=x?h:s(e),w=(b=b==f?p:b)==p,O=(_=_==f?p:_)==p,j=b==_;if(j&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(j&&!w)return y||(y=new r),m||l(t)?i(t,e,n,g,v,y):a(t,e,b,n,g,v,y);if(!(1&n)){var S=w&&d.call(t,"__wrapped__"),M=O&&d.call(e,"__wrapped__");if(S||M){var E=S?t.value():t,P=M?e.value():e;return y||(y=new r),v(E,P,n,g,y)}}return!!j&&(y||(y=new r),o(t,e,n,g,v,y))}},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(35),i=n(199),a=n(62),o=n(204),s=n(201),u=n(74),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,f,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=s;case"[object Set]":if(p||(p=u),t.size!=e.size&&!(1&r))return!1;var d=h.get(t);if(d)return d==e;r|=2,h.set(t,e);var g=o(p(t),p(e),r,c,f,h);return h.delete(t),g;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},function(t,e,n){var r=n(195),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,a,o,s){var u=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!u)return!1;for(var f=l;f--;){var h=c[f];if(!(u?h in e:i.call(e,h)))return!1}var p=s.get(t);if(p&&s.get(e))return p==e;var d=!0;s.set(t,e),s.set(e,t);for(var g=u;++f<l;){var v=t[h=c[f]],y=e[h];if(a)var m=u?a(y,v,h,e,t,s):a(v,y,h,t,e,s);if(!(void 0===m?v===y||o(v,y,n,a,s):m)){d=!1;break}g||(g="constructor"==h)}if(d&&!g){var x=t.constructor,b=e.constructor;x!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof b&&b instanceof b)&&(d=!1)}return s.delete(t),s.delete(e),d}},function(t,e,n){var r=n(203),i=n(488),a=n(209),o=n(113),s=n(206),u=n(207),c=n(51);t.exports=function(t,e){return o(t)&&s(e)?u(c(t),e):function(n){var o=i(n,t);return void 0===o&&o===e?a(n,t):r(e,o,3)}}},function(t,e,n){var r=n(112);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){var r=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=n(490)(function(t){var e=[];return r.test(t)&&e.push(""),t.replace(i,function(t,n,r,i){e.push(r?i.replace(a,"$1"):n||t)}),e});t.exports=o},function(t,e,n){var r=n(491);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(a);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(r.Cache||i),n}var i=n(104),a="Expected a function";r.Cache=i,t.exports=r},function(t,e,n){var r=n(35),i=n(50),a=n(3),o=n(49),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(a(e))return i(e,t)+"";if(o(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(495),i=n(496),a=n(113),o=n(51);t.exports=function(t){return a(t)?r(o(t)):i(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(112);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(211),i=n(48),a=n(498),o=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:a(n);return u<0&&(u=o(s+u,0)),r(t,i(e,3),u)}},function(t,e,n){var r=n(499);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(500);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?1.7976931348623157e308*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(15),i=n(49),a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):o.test(t)?NaN:+t}},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var u=o[t?s:++i];if(!1===n(a[u],u,a))break}return e}}},function(t,e,n){var r=n(202),i=n(205);t.exports=function(t,e){return t===e||r(t,e,i(e))}},function(t,e,n){var r=n(504),i=n(209);t.exports=function(t,e){return r(t,e,function(e,n){return i(t,n)})}},function(t,e,n){var r=n(112),i=n(505),a=n(76);t.exports=function(t,e,n){for(var o=-1,s=e.length,u={};++o<s;){var c=e[o],l=r(t,c);n(l,c)&&i(u,a(c,t),l)}return u}},function(t,e,n){var r=n(61),i=n(76),a=n(63),o=n(15),s=n(51);t.exports=function(t,e,n,u){if(!o(t))return t;for(var c=-1,l=(e=i(e,t)).length,f=l-1,h=t;null!=h&&++c<l;){var p=s(e[c]),d=n;if(c!=f){var g=h[p];void 0===(d=u?u(g,p,h):void 0)&&(d=o(g)?g:a(e[c+1])?[]:{})}r(h,p,d),h=h[p]}return t}},function(t,e,n){var r=n(507),i=n(148),a=n(149);t.exports=function(t){return a(i(t,void 0,r),t+"")}},function(t,e,n){var r=n(77);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},function(t,e,n){var r=n(35),i=n(88),a=n(3),o=r?r.isConcatSpreadable:void 0;t.exports=function(t){return a(t)||i(t)||!!(o&&t&&t[o])}},function(t,e,n){!function(t,e,n){"use strict";function r(){}function i(t,n,r){var i=n[1][0]-n[0][0],a=n[1][1]-n[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),e.geoStream(r,t.stream(f));var s=f.result(),u=Math.min(i/(s[1][0]-s[0][0]),a/(s[1][1]-s[0][1])),c=+n[0][0]+(i-u*(s[1][0]+s[0][0]))/2,l=+n[0][1]+(a-u*(s[1][1]+s[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*u).translate([c,l])}function a(t,e,n){return i(t,[[0,0],e],n)}var o=1e-6,s=1/0,u=s,c=-s,l=c,f={point:function(t,e){t<s&&(s=t),t>c&&(c=t),e<u&&(u=e),e>l&&(l=e)},lineStart:r,lineEnd:r,polygonStart:r,polygonEnd:r,result:function(){var t=[[s,u],[c,l]];return c=l=-(u=s=1/0),t}};t.geoAlbersUsa=function(){function t(t){var e=t[0],n=t[1];return h=null,c.point(e,n),h||(l.point(e,n),h)||(f.point(e,n),h)}function r(){return s=u=null,t}var s,u,c,l,f,h,p=e.geoAlbers(),d=e.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),g=e.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),v={point:function(t,e){h=[t,e]}};return t.invert=function(t){var e=p.scale(),n=p.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?d:i>=.166&&i<.234&&r>=-.214&&r<-.115?g:p).invert(t)},t.stream=function(t){return s&&u===t?s:s=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([p.stream(u=t),d.stream(t),g.stream(t)])},t.precision=function(t){return arguments.length?(p.precision(t),d.precision(t),g.precision(t),r()):p.precision()},t.scale=function(e){return arguments.length?(p.scale(e),d.scale(.35*e),g.scale(e),t.translate(p.translate())):p.scale()},t.translate=function(t){if(!arguments.length)return p.translate();var e=p.scale(),n=+t[0],i=+t[1];return c=p.translate(t).clipExtent([[n-.455*e,i-.238*e],[n+.455*e,i+.238*e]]).stream(v),l=d.translate([n-.307*e,i+.201*e]).clipExtent([[n-.425*e+o,i+.12*e+o],[n-.214*e-o,i+.234*e-o]]).stream(v),f=g.translate([n-.205*e,i+.212*e]).clipExtent([[n-.214*e+o,i+.166*e+o],[n-.115*e-o,i+.234*e-o]]).stream(v),r()},t.fitExtent=function(e,n){return i(t,e,n)},t.fitSize=function(e,n){return a(t,e,n)},t.drawCompositionBorders=function(t){var e=p([-102.91,26.3]),n=p([-104,27.5]),r=p([-108,29.1]),i=p([-110,29.1]),a=p([-110,26.7]),o=p([-112.8,27.6]),s=p([-114.3,30.6]),u=p([-119.3,30.1]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.moveTo(a[0],a[1]),t.lineTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1])},t.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},t.scale(1070)},t.geoAlbersUsaTerritories=function(){function t(t){var e=t[0],n=t[1];return g=null,c.point(e,n),g||(l.point(e,n),g)||(f.point(e,n),g)||(h.point(e,n),g)||(p.point(e,n),g)||(d.point(e,n),g)}function r(){return s=u=null,t}var s,u,c,l,f,h,p,d,g,v=e.geoAlbers(),y=e.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),m=e.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),x=e.geoConicEqualArea().rotate([66,0]).center([0,18]).parallels([8,18]),b=e.geoEquirectangular().rotate([173,14]),_=e.geoEquirectangular().rotate([-145,-16.8]),w={point:function(t,e){g=[t,e]}};return t.invert=function(t){var e=v.scale(),n=v.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?y:i>=.166&&i<.234&&r>=-.214&&r<-.115?m:i>=.2064&&i<.2413&&r>=.312&&r<.385?x:i>=.09&&i<.1197&&r>=-.4243&&r<-.3232?b:i>=-.0518&&i<.0895&&r>=-.4243&&r<-.3824?_:v).invert(t)},t.stream=function(t){return s&&u===t?s:s=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([v.stream(u=t),y.stream(t),m.stream(t),x.stream(t),b.stream(t),_.stream(t)])},t.precision=function(t){return arguments.length?(v.precision(t),y.precision(t),m.precision(t),x.precision(t),b.precision(t),_.precision(t),r()):v.precision()},t.scale=function(e){return arguments.length?(v.scale(e),y.scale(.35*e),m.scale(e),x.scale(e),b.scale(2*e),_.scale(e),t.translate(v.translate())):v.scale()},t.translate=function(t){if(!arguments.length)return v.translate();var e=v.scale(),n=+t[0],i=+t[1];return c=v.translate(t).clipExtent([[n-.455*e,i-.238*e],[n+.455*e,i+.238*e]]).stream(w),l=y.translate([n-.307*e,i+.201*e]).clipExtent([[n-.425*e+o,i+.12*e+o],[n-.214*e-o,i+.233*e-o]]).stream(w),f=m.translate([n-.205*e,i+.212*e]).clipExtent([[n-.214*e+o,i+.166*e+o],[n-.115*e-o,i+.233*e-o]]).stream(w),h=x.translate([n+.35*e,i+.224*e]).clipExtent([[n+.312*e+o,i+.2064*e+o],[n+.385*e-o,i+.233*e-o]]).stream(w),p=b.translate([n-.492*e,i+.09*e]).clipExtent([[n-.4243*e+o,i+.0903*e+o],[n-.3233*e-o,i+.1197*e-o]]).stream(w),d=_.translate([n-.408*e,i+.018*e]).clipExtent([[n-.4244*e+o,i-.0519*e+o],[n-.3824*e-o,i+.0895*e-o]]).stream(w),r()},t.fitExtent=function(e,n){return i(t,e,n)},t.fitSize=function(e,n){return a(t,e,n)},t.drawCompositionBorders=function(t){var e=v([-110.4641,28.2805]),n=v([-104.0597,28.9528]),r=v([-103.7049,25.1031]),i=v([-109.8337,24.4531]),a=v([-124.4745,28.1407]),o=v([-110.931,30.8844]),s=v([-109.8337,24.4531]),u=v([-122.4628,21.8562]),c=v([-76.8579,25.1544]),l=v([-72.429,24.2097]),f=v([-72.8265,22.7056]),h=v([-77.1852,23.6392]),p=v([-125.0093,29.7791]),d=v([-118.5193,31.3262]),g=v([-118.064,29.6912]),y=v([-124.4369,28.169]),m=v([-128.1314,37.4582]),x=v([-125.2132,38.214]),b=v([-122.3616,30.5115]),_=v([-125.0315,29.8211]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(a[0],a[1]),t.lineTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1]),t.closePath(),t.moveTo(c[0],c[1]),t.lineTo(l[0],l[1]),t.lineTo(f[0],f[1]),t.lineTo(f[0],f[1]),t.lineTo(h[0],h[1]),t.closePath(),t.moveTo(p[0],p[1]),t.lineTo(d[0],d[1]),t.lineTo(g[0],g[1]),t.lineTo(g[0],g[1]),t.lineTo(y[0],y[1]),t.closePath(),t.moveTo(m[0],m[1]),t.lineTo(x[0],x[1]),t.lineTo(b[0],b[1]),t.lineTo(b[0],b[1]),t.lineTo(_[0],_[1]),t.closePath()},t.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},t.scale(1070)},t.geoConicConformalSpain=function(){function t(t){var e=t[0],n=t[1];return f=null,c.point(e,n),f||(l.point(e,n),f)}function r(){return s=u=null,t}var s,u,c,l,f,h=e.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),p=e.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),d={point:function(t,e){f=[t,e]}};return t.invert=function(t){var e=h.scale(),n=h.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.05346&&i<.0897&&r>=-.13388&&r<-.0322?p:h).invert(t)},t.stream=function(t){return s&&u===t?s:s=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([h.stream(u=t),p.stream(t)])},t.precision=function(t){return arguments.length?(h.precision(t),p.precision(t),r()):h.precision()},t.scale=function(e){return arguments.length?(h.scale(e),p.scale(e),t.translate(h.translate())):h.scale()},t.translate=function(t){if(!arguments.length)return h.translate();var e=h.scale(),n=+t[0],i=+t[1];return c=h.translate(t).clipExtent([[n-.06857*e,i-.1288*e],[n+.13249*e,i+.06*e]]).stream(d),l=p.translate([n+.1*e,i-.094*e]).clipExtent([[n-.1331*e+o,i+.053457*e+o],[n-.0354*e-o,i+.08969*e-o]]).stream(d),r()},t.fitExtent=function(e,n){return i(t,e,n)},t.fitSize=function(e,n){return a(t,e,n)},t.drawCompositionBorders=function(t){var e=h([-14.034675,34.965007]),n=h([-7.4208899,35.536988]),r=h([-7.3148275,33.54359]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1])},t.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},t.scale(2700)},t.geoConicConformalPortugal=function(){function t(t){var e=t[0],n=t[1];return h=null,c.point(e,n),h||(l.point(e,n),h)||(f.point(e,n),h)}function r(){return s=u=null,t}var s,u,c,l,f,h,p=e.geoConicConformal().rotate([10,-39.3]).parallels([0,60]),d=e.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),g=e.geoConicConformal().rotate([27.8,-38.6]).parallels([0,60]),v={point:function(t,e){h=[t,e]}};return t.invert=function(t){var e=p.scale(),n=p.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.0093&&i<.03678&&r>=-.03875&&r<-.0116?d:i>=-.0412&&i<.0091&&r>=-.07782&&r<-.01166?g:p).invert(t)},t.stream=function(t){return s&&u===t?s:s=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([p.stream(u=t),d.stream(t),g.stream(t)])},t.precision=function(t){return arguments.length?(p.precision(t),d.precision(t),g.precision(t),r()):p.precision()},t.scale=function(e){return arguments.length?(p.scale(e),d.scale(e),g.scale(.6*e),t.translate(p.translate())):p.scale()},t.translate=function(t){if(!arguments.length)return p.translate();var e=p.scale(),n=+t[0],i=+t[1];return c=p.translate(t).clipExtent([[n-.0115*e,i-.1138*e],[n+.2105*e,i+.0673*e]]).stream(v),l=d.translate([n-.0265*e,i+.025*e]).clipExtent([[n-.0388*e+o,i+.0093*e+o],[n-.0116*e-o,i+.0368*e-o]]).stream(v),f=g.translate([n-.045*e,i+-.02*e]).clipExtent([[n-.0778*e+o,i-.0413*e+o],[n-.0117*e-o,i+.0091*e-o]]).stream(v),r()},t.fitExtent=function(e,n){return i(t,e,n)},t.fitSize=function(e,n){return a(t,e,n)},t.drawCompositionBorders=function(t){var e=p([-12.8351,38.7113]),n=p([-10.8482,38.7633]),r=p([-10.8181,37.2072]),i=p([-12.7345,37.1573]),a=p([-16.0753,41.4436]),o=p([-10.9168,41.6861]),s=p([-10.8557,38.7747]),u=p([-15.6728,38.5505]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(a[0],a[1]),t.lineTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1]),t.closePath()},t.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},t.scale(4200)},t.geoMercatorEcuador=function(){function t(t){var e=t[0],n=t[1];return f=null,c.point(e,n),f||(l.point(e,n),f)}function r(){return s=u=null,t}var s,u,c,l,f,h=e.geoMercator().rotate([80,1.5]),p=e.geoMercator().rotate([90.73,1]),d={point:function(t,e){f=[t,e]}};return t.invert=function(t){var e=h.scale(),n=h.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.0676&&i<-.026&&r>=-.0857&&r<-.0263?p:h).invert(t)},t.stream=function(t){return s&&u===t?s:s=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([h.stream(u=t),p.stream(t)])},t.precision=function(t){return arguments.length?(h.precision(t),p.precision(t),r()):h.precision()},t.scale=function(e){return arguments.length?(h.scale(e),p.scale(e),t.translate(h.translate())):h.scale()},t.translate=function(t){if(!arguments.length)return h.translate();var e=h.scale(),n=+t[0],i=+t[1];return c=h.translate(t).clipExtent([[n-.0262*e,i-.0734*e],[n+.1741*e,i+.079*e]]).stream(d),l=p.translate([n-.06*e,i-.04*e]).clipExtent([[n-.0857*e+o,i-.0676*e+o],[n-.0263*e-o,i-.026*e-o]]).stream(d),r()},t.fitExtent=function(e,n){return i(t,e,n)},t.fitSize=function(e,n){return a(t,e,n)},t.drawCompositionBorders=function(t){var e=h([-84.9032,2.3757]),n=h([-81.5047,2.3708]),r=h([-81.5063,-.01]),i=h([-84.9086,-.005]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},t.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},t.scale(3500)},t.geoTransverseMercatorChile=function(){function t(t){var e=t[0],n=t[1];return p=null,c.point(e,n),p||(l.point(e,n),p)||(f.point(e,n),p)||(h.point(e,n),p)}function r(){return s=u=null,t}var s,u,c,l,f,h,p,d=e.geoTransverseMercator().rotate([72,37]),g=e.geoStereographic().rotate([72,0]),v=e.geoMercator().rotate([80,33.5]),y=e.geoMercator().rotate([110,25]),m={point:function(t,e){p=[t,e]}};return t.invert=function(t){var e=d.scale(),n=d.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.2582&&i<.32&&r>=-.1036&&r<-.087?g:i>=-.01298&&i<.0133&&r>=-.11396&&r<-.05944?v:i>=.01539&&i<.03911&&r>=-.089&&r<-.0588?y:d).invert(t)},t.stream=function(t){return s&&u===t?s:s=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([d.stream(u=t),g.stream(t),v.stream(t),y.stream(t)])},t.precision=function(t){return arguments.length?(d.precision(t),g.precision(t),v.precision(t),y.precision(t),r()):d.precision()},t.scale=function(e){return arguments.length?(d.scale(e),g.scale(.15*e),v.scale(1.5*e),y.scale(1.5*e),t.translate(d.translate())):d.scale()},t.translate=function(t){if(!arguments.length)return d.translate();var e=d.scale(),n=+t[0],i=+t[1];return c=d.translate(t).clipExtent([[n-.059*e,i-.3835*e],[n+.4498*e,i+.3375*e]]).stream(m),l=g.translate([n-.087*e,i+.17*e]).clipExtent([[n-.1166*e+o,i+.2582*e+o],[n-.06*e-o,i+.32*e-o]]).stream(m),f=v.translate([n-.092*e,i-0*e]).clipExtent([[n-.114*e+o,i-.013*e+o],[n-.0594*e-o,i+.0133*e-o]]).stream(m),h=y.translate([n-.089*e,i-.0265*e]).clipExtent([[n-.089*e+o,i+.0154*e+o],[n-.0588*e-o,i+.0391*e-o]]).stream(m),r()},t.fitExtent=function(e,n){return i(t,e,n)},t.fitSize=function(e,n){return a(t,e,n)},t.drawCompositionBorders=function(t){var e=d([-82.6999,-51.3043]),n=d([-77.5442,-51.6631]),r=d([-78.0254,-55.186]),i=d([-83.6106,-54.7785]),a=d([-80.0638,-35.984]),o=d([-76.2153,-36.1811]),s=d([-76.2994,-37.6839]),u=d([-80.2231,-37.4757]),c=d([-78.442,-37.706]),l=d([-76.263,-37.8054]),f=d([-76.344,-39.1595]),h=d([-78.5638,-39.0559]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(a[0],a[1]),t.lineTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1]),t.closePath(),t.moveTo(c[0],c[1]),t.lineTo(l[0],l[1]),t.lineTo(f[0],f[1]),t.lineTo(f[0],f[1]),t.lineTo(h[0],h[1]),t.closePath()},t.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},t.scale(700)},t.geoConicEquidistantJapan=function(){function t(t){var e=t[0],n=t[1];return h=null,c.point(e,n),h||(l.point(e,n),h)||(f.point(e,n),h)}function r(){return s=u=null,t}var s,u,c,l,f,h,p=e.geoConicEquidistant().rotate([-136,-22]).parallels([40,34]),d=e.geoConicEquidistant().rotate([-146,-26]).parallels([40,34]),g=e.geoConicEquidistant().rotate([-126,-19]).parallels([40,34]),v={point:function(t,e){h=[t,e]}};return t.invert=function(t){var e=p.scale(),n=p.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.10925&&i<-.02701&&r>=-.135&&r<-.0397?d:i>=.04713&&i<.11138&&r>=-.03986&&r<.051?g:p).invert(t)},t.stream=function(t){return s&&u===t?s:s=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([p.stream(u=t),d.stream(t),g.stream(t)])},t.precision=function(t){return arguments.length?(p.precision(t),d.precision(t),g.precision(t),r()):p.precision()},t.scale=function(e){return arguments.length?(p.scale(e),d.scale(e),g.scale(.7*e),t.translate(p.translate())):p.scale()},t.translate=function(t){if(!arguments.length)return p.translate();var e=p.scale(),n=+t[0],i=+t[1];return c=p.translate(t).clipExtent([[n-.1352*e,i-.1091*e],[n+.117*e,i+.098*e]]).stream(v),l=d.translate([n-.0425*e,i-.005*e]).clipExtent([[n-.135*e+o,i-.1093*e+o],[n-.0397*e-o,i-.027*e-o]]).stream(v),f=g.translate(t).clipExtent([[n-.0399*e+o,i+.0471*e+o],[n+.051*e-o,i+.1114*e-o]]).stream(v),r()},t.fitExtent=function(e,n){return i(t,e,n)},t.fitSize=function(e,n){return a(t,e,n)},t.drawCompositionBorders=function(t){var e=p([126.01320483689143,41.621090310215585]),n=p([133.04304387025903,42.15087523707186]),r=p([133.3021766080688,37.43975444725098]),i=p([126.87889168628224,36.95488945159779]),a=p([132.9,29.8]),o=p([134,33]),s=p([139.3,33.2]),u=p([139.16,30.5]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(a[0],a[1]),t.lineTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1])},t.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},t.scale(2200)},t.geoConicConformalFrance=function(){function t(t){var e=t[0],n=t[1];return _=null,c.point(e,n),_||(l.point(e,n),_)||(f.point(e,n),_)||(h.point(e,n),_)||(p.point(e,n),_)||(d.point(e,n),_)||(g.point(e,n),_)||(v.point(e,n),_)||(y.point(e,n),_)||(m.point(e,n),_)||(x.point(e,n),_)||(b.point(e,n),_)}function r(){return s=u=null,t}var s,u,c,l,f,h,p,d,g,v,y,m,x,b,_,w=e.geoConicConformal().rotate([-3,-46.2]).parallels([0,60]),O=e.geoMercator().center([-53.2,3.9]),j=e.geoMercator().center([-61.03,14.67]),S=e.geoMercator().center([-61.46,16.14]),M=e.geoMercator().center([-62.85,17.92]),E=e.geoMercator().center([-56.23,46.93]),P=e.geoMercator().center([45.16,-12.8]),C=e.geoMercator().center([55.52,-21.13]),k=e.geoMercator().center([165.8,-21.07]),A=e.geoMercator().center([-178.1,-14.3]),T=e.geoMercator().center([-150.55,-17.11]),I=e.geoMercator().center([-150.55,-17.11]),L={point:function(t,e){_=[t,e]}};return t.invert=function(t){var e=w.scale(),n=w.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.029&&i<.0864&&r>=-.14&&r<-.0996?O:i>=0&&i<.029&&r>=-.14&&r<-.0996?j:i>=-.032&&i<0&&r>=-.14&&r<-.0996?S:i>=-.052&&i<-.032&&r>=-.14&&r<-.0996?M:i>=-.076&&i<.052&&r>=-.14&&r<-.0996?E:i>=-.076&&i<-.052&&r>=.0967&&r<.1371?P:i>=-.052&&i<-.02&&r>=.0967&&r<.1371?C:i>=-.02&&i<.012&&r>=.0967&&r<.1371?k:i>=.012&&i<.033&&r>=.0967&&r<.1371?A:i>=.033&&i<.0864&&r>=.0967&&r<.1371?T:w).invert(t)},t.stream=function(t){return s&&u===t?s:s=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([w.stream(u=t),O.stream(t),j.stream(t),S.stream(t),M.stream(t),E.stream(t),P.stream(t),C.stream(t),k.stream(t),A.stream(t),T.stream(t),I.stream(t)])},t.precision=function(t){return arguments.length?(w.precision(t),O.precision(t),j.precision(t),S.precision(t),M.precision(t),E.precision(t),P.precision(t),C.precision(t),k.precision(t),A.precision(t),T.precision(t),I.precision(t),r()):w.precision()},t.scale=function(e){return arguments.length?(w.scale(e),O.scale(.6*e),j.scale(1.6*e),S.scale(1.4*e),M.scale(5*e),E.scale(1.3*e),P.scale(1.6*e),C.scale(1.2*e),k.scale(.3*e),A.scale(2.7*e),T.scale(.5*e),I.scale(.06*e),t.translate(w.translate())):w.scale()},t.translate=function(t){if(!arguments.length)return w.translate();var e=w.scale(),n=+t[0],i=+t[1];return c=w.translate(t).clipExtent([[n-.0996*e,i-.0908*e],[n+.0967*e,i+.0864*e]]).stream(L),l=O.translate([n-.12*e,i+.0575*e]).clipExtent([[n-.14*e+o,i+.029*e+o],[n-.0996*e-o,i+.0864*e-o]]).stream(L),f=j.translate([n-.12*e,i+.013*e]).clipExtent([[n-.14*e+o,i+0*e+o],[n-.0996*e-o,i+.029*e-o]]).stream(L),h=S.translate([n-.12*e,i-.014*e]).clipExtent([[n-.14*e+o,i-.032*e+o],[n-.0996*e-o,i+0*e-o]]).stream(L),p=M.translate([n-.12*e,i-.044*e]).clipExtent([[n-.14*e+o,i-.052*e+o],[n-.0996*e-o,i-.032*e-o]]).stream(L),d=E.translate([n-.12*e,i-.065*e]).clipExtent([[n-.14*e+o,i-.076*e+o],[n-.0996*e-o,i-.052*e-o]]).stream(L),g=P.translate([n+.117*e,i-.064*e]).clipExtent([[n+.0967*e+o,i-.076*e+o],[n+.1371*e-o,i-.052*e-o]]).stream(L),v=C.translate([n+.116*e,i-.0355*e]).clipExtent([[n+.0967*e+o,i-.052*e+o],[n+.1371*e-o,i-.02*e-o]]).stream(L),y=k.translate([n+.116*e,i-.0048*e]).clipExtent([[n+.0967*e+o,i-.02*e+o],[n+.1371*e-o,i+.012*e-o]]).stream(L),m=A.translate([n+.116*e,i+.022*e]).clipExtent([[n+.0967*e+o,i+.012*e+o],[n+.1371*e-o,i+.033*e-o]]).stream(L),b=I.translate([n+.11*e,i+.045*e]).clipExtent([[n+.0967*e+o,i+.033*e+o],[n+.1371*e-o,i+.06*e-o]]).stream(L),x=T.translate([n+.115*e,i+.075*e]).clipExtent([[n+.0967*e+o,i+.06*e+o],[n+.1371*e-o,i+.0864*e-o]]).stream(L),r()},t.fitExtent=function(e,n){return i(t,e,n)},t.fitSize=function(e,n){return a(t,e,n)},t.drawCompositionBorders=function(t){var e,n,r,i;e=w([-7.938886725111036,43.7219460918835]),n=w([-4.832080896458295,44.12930268549372]),r=w([-4.205299743793263,40.98096346967365]),i=w([-7.071796453126152,40.610037319181444]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([-8.42751373617692,45.32889452553031]),n=w([-5.18599305777107,45.7566442062976]),r=w([-4.832080905154431,44.129302726751426]),i=w([-7.938886737126192,43.72194613263854]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([-9.012656899657046,47.127733821030176]),n=w([-5.6105244772793155,47.579777861410626]),r=w([-5.185993067168585,45.756644248170346]),i=w([-8.427513749141811,45.32889456686326]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([-9.405747558985553,48.26506375557457]),n=w([-5.896175018439575,48.733352850851624]),r=w([-5.610524487556043,47.57977790393761]),i=w([-9.012656913808351,47.127733862971255]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([-9.908436061346974,49.642448789505856]),n=w([-6.262026716233124,50.131426841787174]),r=w([-5.896175029331232,48.73335289377258]),i=w([-9.40574757396393,48.26506379787767]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([11.996907706504462,50.16039028163579]),n=w([15.649907879773343,49.68279246765253]),r=w([15.156712840526632,48.30371557625831]),i=w([11.64122661754411,48.761078240546816]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([11.641226606955788,48.7610781975889]),n=w([15.156712825832164,48.30371553390465]),r=w([14.549932166241172,46.4866532486199]),i=w([11.204443787952183,46.91899233914248]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([11.204443778297161,46.918992296823646]),n=w([14.549932152815039,46.486653206856396]),r=w([13.994409796764009,44.695833444323256]),i=w([10.805306599253848,45.105133870684924]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([10.805306590412085,45.10513382903308]),n=w([13.99440978444733,44.695833403183606]),r=w([13.654633799024392,43.53552468558152]),i=w([10.561516803980956,43.930671459798624]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([10.561516795617383,43.93067141859757]),n=w([13.654633787361952,43.5355246448671]),r=w([12.867691604239901,40.640701985019405]),i=w([9.997809515987688,41.00288343254471]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([10.8,42.4]),n=w([12.8,42.13]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1])},t.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},t.scale(2700)},t.geoConicConformalEurope=function(){function t(t){var e=t[0],n=t[1];return _=null,c.point(e,n),_||(f.point(e,n),_)||(y.point(e,n),_)||(l.point(e,n),_)||(v.point(e,n),_)||(g.point(e,n),_)||(m.point(e,n),_)||(x.point(e,n),_)||(b.point(e,n),_)||(h.point(e,n),_)||(p.point(e,n),_)||(d.point(e,n),_)}function r(){return s=u=null,t}var s,u,c,l,f,h,p,d,g,v,y,m,x,b,_,w=e.geoConicConformal().rotate([-10,-53]).parallels([0,60]),O=e.geoMercator().center([-61.46,16.14]),j=e.geoMercator().center([-53.2,3.9]),S=e.geoConicConformal().rotate([27.8,-38.9]).parallels([0,60]),M=e.geoConicConformal().rotate([25.43,-37.398]).parallels([0,60]),E=e.geoConicConformal().rotate([31.17,-39.539]).parallels([0,60]),P=e.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),C=e.geoConicConformal().rotate([16,-28.5]).parallels([0,60]),k=e.geoMercator().center([-61.03,14.67]),A=e.geoMercator().center([45.16,-12.8]),T=e.geoMercator().center([55.52,-21.13]),I=e.geoConicConformal().rotate([-14.4,-35.95]).parallels([0,60]),L={point:function(t,e){_=[t,e]}};return t.invert=function(t){var e=w.scale(),n=w.translate(),r=(t[0]-(n[0]+.08*e))/e,i=(t[1]-n[1])/e;return(i>=-.31&&i<-.24&&r>=.14&&r<.24?O:i>=-.24&&i<-.17&&r>=.14&&r<.24?j:i>=-.17&&i<-.12&&r>=.21&&r<.24?M:i>=-.17&&i<-.14&&r>=.14&&r<.165?E:i>=-.17&&i<-.1&&r>=.14&&r<.24?S:i>=-.1&&i<-.03&&r>=.14&&r<.24?P:i>=-.03&&i<.04&&r>=.14&&r<.24?C:i>=-.31&&i<-.24&&r>=.24&&r<.34?k:i>=-.24&&i<-.17&&r>=.24&&r<.34?A:i>=-.17&&i<-.1&&r>=.24&&r<.34?T:i>=-.1&&i<-.03&&r>=.24&&r<.34?I:w).invert(t)},t.stream=function(t){return s&&u===t?s:s=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([w.stream(u=t),j.stream(t),k.stream(t),O.stream(t),C.stream(t),P.stream(t),A.stream(t),T.stream(t),I.stream(t),S.stream(t),M.stream(t),E.stream(t)])},t.precision=function(t){return arguments.length?(w.precision(t),j.precision(t),k.precision(t),O.precision(t),C.precision(t),P.precision(t),A.precision(t),T.precision(t),I.precision(t),S.precision(t),M.precision(t),E.precision(t),r()):w.precision()},t.scale=function(e){return arguments.length?(w.scale(e),O.scale(3*e),j.scale(.8*e),k.scale(3.5*e),T.scale(2.7*e),S.scale(2*e),M.scale(2*e),E.scale(2*e),P.scale(3*e),C.scale(e),A.scale(5.5*e),I.scale(6*e),t.translate(w.translate())):w.scale()},t.translate=function(t){if(!arguments.length)return w.translate();var e=w.scale(),n=+t[0],i=+t[1];return c=w.translate([n-.08*e,i]).clipExtent([[n-.51*e,i-.33*e],[n+.5*e,i+.33*e]]).stream(L),l=O.translate([n+.19*e,i-.275*e]).clipExtent([[n+.14*e+o,i-.31*e+o],[n+.24*e-o,i-.24*e-o]]).stream(L),f=j.translate([n+.19*e,i-.205*e]).clipExtent([[n+.14*e+o,i-.24*e+o],[n+.24*e-o,i-.17*e-o]]).stream(L),h=S.translate([n+.19*e,i-.135*e]).clipExtent([[n+.14*e+o,i-.17*e+o],[n+.24*e-o,i-.1*e-o]]).stream(L),p=M.translate([n+.225*e,i-.147*e]).clipExtent([[n+.21*e+o,i-.17*e+o],[n+.24*e-o,i-.12*e-o]]).stream(L),d=E.translate([n+.153*e,i-.15*e]).clipExtent([[n+.14*e+o,i-.17*e+o],[n+.165*e-o,i-.14*e-o]]).stream(L),g=P.translate([n+.19*e,i-.065*e]).clipExtent([[n+.14*e+o,i-.1*e+o],[n+.24*e-o,i-.03*e-o]]).stream(L),v=C.translate([n+.19*e,i+.005*e]).clipExtent([[n+.14*e+o,i-.03*e+o],[n+.24*e-o,i+.04*e-o]]).stream(L),y=k.translate([n+.29*e,i-.275*e]).clipExtent([[n+.24*e+o,i-.31*e+o],[n+.34*e-o,i-.24*e-o]]).stream(L),m=A.translate([n+.29*e,i-.205*e]).clipExtent([[n+.24*e+o,i-.24*e+o],[n+.34*e-o,i-.17*e-o]]).stream(L),x=T.translate([n+.29*e,i-.135*e]).clipExtent([[n+.24*e+o,i-.17*e+o],[n+.34*e-o,i-.1*e-o]]).stream(L),b=I.translate([n+.29*e,i-.065*e]).clipExtent([[n+.24*e+o,i-.1*e+o],[n+.34*e-o,i-.03*e-o]]).stream(L),r()},t.fitExtent=function(e,n){return i(t,e,n)},t.fitSize=function(e,n){return a(t,e,n)},t.drawCompositionBorders=function(t){var e,n,r,i;e=w([42.45755610828648,63.343658547914934]),n=w([52.65837266667029,59.35045080290929]),r=w([47.19754502247785,56.12653496548117]),i=w([37.673034273363044,59.61638268506111]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([59.41110754003403,62.35069727399336]),n=w([66.75050228640794,57.11797303636038]),r=w([60.236065725110436,54.63331433818992]),i=w([52.65837313153311,59.350450804599355]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([48.81091130080243,66.93353402634641]),n=w([59.41110730654679,62.35069740653086]),r=w([52.6583728974441,59.3504509222445]),i=w([42.45755631675751,63.34365868805821]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([31.054198418446475,52.1080673766184]),n=w([39.09869284884117,49.400700047190554]),r=w([36.0580811499175,46.02944174908498]),i=w([28.690508588835726,48.433126979386415]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([33.977877745912025,55.849945501331]),n=w([42.75328432167726,52.78455122462353]),r=w([39.09869297540224,49.400700176148625]),i=w([31.05419851807008,52.10806751810923]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([52.658372900759296,59.35045068526415]),n=w([60.23606549583304,54.63331423800264]),r=w([54.6756370953122,51.892298789399455]),i=w([47.19754524788189,56.126534861222794]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([47.19754506082455,56.126534735591456]),n=w([54.675636900123514,51.892298681337095]),r=w([49.94448648951486,48.98775484983285]),i=w([42.75328468716108,52.78455126060818]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([42.75328453416769,52.78455113209101]),n=w([49.94448632339758,48.98775473706457]),r=w([45.912339990394315,45.99361784987003]),i=w([39.09869317356607,49.40070009378711]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([37.673034114296634,59.61638254183119]),n=w([47.197544835420544,56.126534839849846]),r=w([42.75328447467064,52.78455135314068]),i=w([33.977877870363905,55.849945644671145]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([44.56748486446032,57.26489367845818]),r=w([43.9335791193588,53.746540942601726]),i=w([43,56]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=w([37.673034114296634,59.61638254183119]),n=w([40.25902691953466,58.83002044222639]),r=w([38.458270492742024,57.26232178028002]),i=w([35.97754948030156,58.00266637992386]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},t.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},t.scale(750)},t.geoMercatorMalaysia=function(){function t(t){var e=t[0],n=t[1];return f=null,c.point(e,n),f||(l.point(e,n),f)}function r(){return s=u=null,t}var s,u,c,l,f,h=e.geoMercator().center([105.25,4]),p=e.geoMercator().center([118.65,2.86]),d={point:function(t,e){f=[t,e]}};return t.invert=function(t){var e=h.scale(),n=h.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.0521&&i<.0229&&r>=-.0111&&r<.1?p:h).invert(t)},t.stream=function(t){return s&&u===t?s:s=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([h.stream(u=t),p.stream(t)])},t.precision=function(t){return arguments.length?(h.precision(t),p.precision(t),r()):h.precision()},t.scale=function(e){return arguments.length?(h.scale(e),p.scale(.615*e),t.translate(h.translate())):h.scale()},t.translate=function(t){if(!arguments.length)return h.translate();var e=h.scale(),n=+t[0],i=+t[1];return c=h.translate(t).clipExtent([[n-.11*e,i-.0521*e],[n-.0111*e,i+.0521*e]]).stream(d),l=p.translate([n+.09*e,i-0*e]).clipExtent([[n-.0111*e+o,i-.0521*e+o],[n+.1*e-o,i+.024*e-o]]).stream(d),r()},t.fitExtent=function(e,n){return i(t,e,n)},t.fitSize=function(e,n){return a(t,e,n)},t.drawCompositionBorders=function(t){var e=h([106.3214,2.0228]),n=h([105.1843,2.3761]),r=h([104.2151,3.3618]),i=h([104.215,4.5651]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1])},t.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},t.scale(4800)},t.geoMercatorEquatorialGuinea=function(){function t(t){var e=t[0],n=t[1];return h=null,c.point(e,n),h||(l.point(e,n),h)||(f.point(e,n),h)}function r(){return s=u=null,t}var s,u,c,l,f,h,p=e.geoMercator().rotate([-9.5,-1.5]),d=e.geoMercator().rotate([-8.6,-3.5]),g=e.geoMercator().rotate([-5.6,1.45]),v={point:function(t,e){h=[t,e]}};return t.invert=function(t){var e=p.scale(),n=p.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.02&&i<0&&r>=-.038&&r<-.005?d:i>=0&&i<.02&&r>=-.038&&r<-.005?g:p).invert(t)},t.stream=function(t){return s&&u===t?s:s=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([p.stream(u=t),d.stream(t),g.stream(t)])},t.precision=function(t){return arguments.length?(p.precision(t),d.precision(t),g.precision(t),r()):p.precision()},t.scale=function(e){return arguments.length?(p.scale(e),d.scale(1.5*e),g.scale(4*e),t.translate(p.translate())):p.scale()},t.translate=function(t){if(!arguments.length)return p.translate();var e=p.scale(),n=+t[0],i=+t[1];return c=p.translate(t).clipExtent([[n-.005*e,i-.02*e],[n+.038*e,i+.02*e]]).stream(v),l=d.translate([n-.025*e,i-.01*e]).clipExtent([[n-.038*e+o,i-.02*e+o],[n-.005*e-o,i+0*e-o]]).stream(v),f=g.translate([n-.025*e,i+.01*e]).clipExtent([[n-.038*e+o,i-0*e+o],[n-.005*e-o,i+.02*e-o]]).stream(v),r()},t.fitExtent=function(e,n){return i(t,e,n)},t.fitSize=function(e,n){return a(t,e,n)},t.drawCompositionBorders=function(t){var e,n,r,i;e=p([9.21327272751682,2.645820439454123]),n=p([11.679126293239872,2.644755519268689]),r=p([11.676845389029227,.35307824637606433]),i=p([9.213572917774014,.35414205204417754]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=p([7.320873711543669,2.64475551449975]),n=p([9.213272722738658,2.645820434679803]),r=p([9.213422896480349,1.4999812505283054]),i=p([7.322014760520787,1.4989168878985566]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=p([7.3220147605302905,1.4989168783492766]),n=p([9.213422896481598,1.499981240979021]),r=p([9.213572912999604,.354142056817247]),i=p([7.323154615739809,.353078251154504]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},t.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},t.scale(12e3)},Object.defineProperty(t,"__esModule",{value:!0})}(e,n(510),n(39))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(215);n.d(e,"geoArea",function(){return r.c});var i=n(511);n.d(e,"geoBounds",function(){return i.a});var a=n(512);n.d(e,"geoCentroid",function(){return a.a});var o=n(216);n.d(e,"geoCircle",function(){return o.b});var s=n(218);n.d(e,"geoClipExtent",function(){return s.b});var u=n(515);n.d(e,"geoDistance",function(){return u.a});var c=n(516);n.d(e,"geoGraticule",function(){return c.a});var l=n(517);n.d(e,"geoInterpolate",function(){return l.a});var f=n(222);n.d(e,"geoLength",function(){return f.a});var h=n(518);n.d(e,"geoPath",function(){return h.a});var p=n(225);n.d(e,"geoAlbers",function(){return p.a});var d=n(527);n.d(e,"geoAlbersUsa",function(){return d.a});var g=n(528);n.d(e,"geoAzimuthalEqualArea",function(){return g.b}),n.d(e,"geoAzimuthalEqualAreaRaw",function(){return g.a});var v=n(529);n.d(e,"geoAzimuthalEquidistant",function(){return v.b}),n.d(e,"geoAzimuthalEquidistantRaw",function(){return v.a});var y=n(530);n.d(e,"geoConicConformal",function(){return y.b}),n.d(e,"geoConicConformalRaw",function(){return y.a});var m=n(115);n.d(e,"geoConicEqualArea",function(){return m.b}),n.d(e,"geoConicEqualAreaRaw",function(){return m.a});var x=n(531);n.d(e,"geoConicEquidistant",function(){return x.b}),n.d(e,"geoConicEquidistantRaw",function(){return x.a});var b=n(228);n.d(e,"geoEquirectangular",function(){return b.a}),n.d(e,"geoEquirectangularRaw",function(){return b.b});var _=n(532);n.d(e,"geoGnomonic",function(){return _.a}),n.d(e,"geoGnomonicRaw",function(){return _.b});var w=n(22);n.d(e,"geoProjection",function(){return w.a}),n.d(e,"geoProjectionMutator",function(){return w.b});var O=n(118);n.d(e,"geoMercator",function(){return O.a}),n.d(e,"geoMercatorRaw",function(){return O.c});var j=n(533);n.d(e,"geoOrthographic",function(){return j.a}),n.d(e,"geoOrthographicRaw",function(){return j.b});var S=n(534);n.d(e,"geoStereographic",function(){return S.a}),n.d(e,"geoStereographicRaw",function(){return S.b});var M=n(535);n.d(e,"geoTransverseMercator",function(){return M.a}),n.d(e,"geoTransverseMercatorRaw",function(){return M.b});var E=n(114);n.d(e,"geoRotation",function(){return E.a});var P=n(33);n.d(e,"geoStream",function(){return P.a});var C=n(117);n.d(e,"geoTransform",function(){return C.a})},function(t,e,n){"use strict";function r(t,e){_.push(w=[p=t,g=t]),e<d&&(d=e),e>v&&(v=e)}function i(t,e){var n=Object(S.a)([t*M.r,e*M.r]);if(b){var i=Object(S.c)(b,n),a=[i[1],-i[0],0],o=Object(S.c)(a,i);Object(S.e)(o),o=Object(S.g)(o);var s,u=t-y,c=u>0?1:-1,f=o[0]*M.h*c,h=Object(M.a)(u)>180;h^(c*y<f&&f<c*t)?(s=o[1]*M.h)>v&&(v=s):h^(c*y<(f=(f+360)%360-180)&&f<c*t)?(s=-o[1]*M.h)<d&&(d=s):(e<d&&(d=e),e>v&&(v=e)),h?t<y?l(p,t)>l(p,g)&&(g=t):l(t,g)>l(p,g)&&(p=t):g>=p?(t<p&&(p=t),t>g&&(g=t)):t>y?l(p,t)>l(p,g)&&(g=t):l(t,g)>l(p,g)&&(p=t)}else r(t,e);b=n,y=t}function a(){C.point=i}function o(){w[0]=p,w[1]=g,C.point=r,b=null}function s(t,e){if(b){var n=t-y;P.add(Object(M.a)(n)>180?n+(n>0?360:-360):n)}else m=t,x=e;j.b.point(t,e),i(t,e)}function u(){j.b.lineStart()}function c(){s(m,x),j.b.lineEnd(),Object(M.a)(P)>M.i&&(p=-(g=180)),w[0]=p,w[1]=g,b=null}function l(t,e){return(e-=t)<0?e+360:e}function f(t,e){return t[0]-e[0]}function h(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var p,d,g,v,y,m,x,b,_,w,O=n(53),j=n(215),S=n(54),M=n(6),E=n(33),P=Object(O.a)(),C={point:r,lineStart:a,lineEnd:o,polygonStart:function(){C.point=s,C.lineStart=u,C.lineEnd=c,P.reset(),j.b.polygonStart()},polygonEnd:function(){j.b.polygonEnd(),C.point=r,C.lineStart=a,C.lineEnd=o,j.a<0?(p=-(g=180),d=-(v=90)):P>M.i?v=90:P<-M.i&&(d=-90),w[0]=p,w[1]=g}};e.a=function(t){var e,n,r,i,a,o,s;if(v=g=-(p=d=1/0),_=[],Object(E.a)(t,C),n=_.length){for(_.sort(f),e=1,a=[r=_[0]];e<n;++e)h(r,(i=_[e])[0])||h(r,i[1])?(l(r[0],i[1])>l(r[0],r[1])&&(r[1]=i[1]),l(i[0],r[1])>l(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)(s=l(r[1],(i=a[e])[0]))>o&&(o=s,p=i[0],g=r[1])}return _=w=null,p===1/0||d===1/0?[[NaN,NaN],[NaN,NaN]]:[[p,d],[g,v]]}},function(t,e,n){"use strict";function r(t,e){t*=C.r,e*=C.r;var n=Object(C.g)(e);i(n*Object(C.g)(t),n*Object(C.t)(t),Object(C.t)(e))}function i(t,e,n){g+=(t-g)/++p,v+=(e-v)/p,y+=(n-y)/p}function a(){T.point=o}function o(t,e){t*=C.r,e*=C.r;var n=Object(C.g)(e);M=n*Object(C.g)(t),E=n*Object(C.t)(t),P=Object(C.t)(e),T.point=s,i(M,E,P)}function s(t,e){t*=C.r,e*=C.r;var n=Object(C.g)(e),r=n*Object(C.g)(t),a=n*Object(C.t)(t),o=Object(C.t)(e),s=Object(C.e)(Object(C.u)((s=E*o-P*a)*s+(s=P*r-M*o)*s+(s=M*a-E*r)*s),M*r+E*a+P*o);d+=s,m+=s*(M+(M=r)),x+=s*(E+(E=a)),b+=s*(P+(P=o)),i(M,E,P)}function u(){T.point=r}function c(){T.point=f}function l(){h(j,S),T.point=r}function f(t,e){j=t,S=e,t*=C.r,e*=C.r,T.point=h;var n=Object(C.g)(e);M=n*Object(C.g)(t),E=n*Object(C.t)(t),P=Object(C.t)(e),i(M,E,P)}function h(t,e){t*=C.r,e*=C.r;var n=Object(C.g)(e),r=n*Object(C.g)(t),a=n*Object(C.t)(t),o=Object(C.t)(e),s=E*o-P*a,u=P*r-M*o,c=M*a-E*r,l=Object(C.u)(s*s+u*u+c*c),f=M*r+E*a+P*o,h=l&&-Object(C.b)(f)/l,p=Object(C.e)(l,f);_+=h*s,w+=h*u,O+=h*c,d+=p,m+=p*(M+(M=r)),x+=p*(E+(E=a)),b+=p*(P+(P=o)),i(M,E,P)}var p,d,g,v,y,m,x,b,_,w,O,j,S,M,E,P,C=n(6),k=n(32),A=n(33),T={sphere:k.a,point:r,lineStart:a,lineEnd:u,polygonStart:function(){T.lineStart=c,T.lineEnd=l},polygonEnd:function(){T.lineStart=a,T.lineEnd=u}};e.a=function(t){p=d=g=v=y=m=x=b=_=w=O=0,Object(A.a)(t,T);var e=_,n=w,r=O,i=e*e+n*n+r*r;return i<C.j&&(e=m,n=x,r=b,d<C.i&&(e=g,n=v,r=y),(i=e*e+n*n+r*r)<C.j)?[NaN,NaN]:[Object(C.e)(n,e)*C.h,Object(C.c)(r/Object(C.u)(i))*C.h]}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t,e,n,r,i,a){var o,s=t[0],u=t[1],c=0,l=1,f=e[0]-s,h=e[1]-u;if(o=n-s,f||!(o>0)){if(o/=f,f<0){if(o<c)return;o<l&&(l=o)}else if(f>0){if(o>l)return;o>c&&(c=o)}if(o=i-s,f||!(o<0)){if(o/=f,f<0){if(o>l)return;o>c&&(c=o)}else if(f>0){if(o<c)return;o<l&&(l=o)}if(o=r-u,h||!(o>0)){if(o/=h,h<0){if(o<c)return;o<l&&(l=o)}else if(h>0){if(o>l)return;o>c&&(c=o)}if(o=a-u,h||!(o<0)){if(o/=h,h<0){if(o>l)return;o>c&&(c=o)}else if(h>0){if(o<c)return;o<l&&(l=o)}return c>0&&(t[0]=s+c*f,t[1]=u+c*h),l<1&&(e[0]=s+l*f,e[1]=u+l*h),!0}}}}}},function(t,e,n){"use strict";var r=n(222),i=[null,null],a={type:"LineString",coordinates:i};e.a=function(t,e){return i[0]=t,i[1]=e,Object(r.a)(a)}},function(t,e,n){"use strict";function r(t,e,n){var r=Object(a.range)(t,e-o.i,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function i(t,e,n){var r=Object(a.range)(t,e-o.i,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}var a=n(16),o=n(6);e.a=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return Object(a.range)(Object(o.f)(c/b)*b,u,b).map(v).concat(Object(a.range)(Object(o.f)(p/_)*_,h,_).map(y)).concat(Object(a.range)(Object(o.f)(s/m)*m,n,m).filter(function(t){return Object(o.a)(t%b)>o.i}).map(d)).concat(Object(a.range)(Object(o.f)(f/x)*x,l,x).filter(function(t){return Object(o.a)(t%_)>o.i}).map(g))}var n,s,u,c,l,f,h,p,d,g,v,y,m=10,x=m,b=90,_=360,w=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[v(c).concat(y(h).slice(1),v(u).reverse().slice(1),y(p).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.extentMajor(e).extentMinor(e):t.extentMinor()},t.extentMajor=function(e){return arguments.length?(p=+e[0][1],h=+e[1][1],(c=+e[0][0])>(u=+e[1][0])&&(e=c,c=u,u=e),p>h&&(e=p,p=h,h=e),t.precision(w)):[[c,p],[u,h]]},t.extentMinor=function(e){return arguments.length?(f=+e[0][1],l=+e[1][1],(s=+e[0][0])>(n=+e[1][0])&&(e=s,s=n,n=e),f>l&&(e=f,f=l,l=e),t.precision(w)):[[s,f],[n,l]]},t.step=function(e){return arguments.length?t.stepMajor(e).stepMinor(e):t.stepMinor()},t.stepMajor=function(e){return arguments.length?(b=+e[0],_=+e[1],t):[b,_]},t.stepMinor=function(e){return arguments.length?(m=+e[0],x=+e[1],t):[m,x]},t.precision=function(e){return arguments.length?(w=+e,d=r(f,l,90),g=i(s,n,w),v=r(p,h,90),y=i(c,u,w),t):w},t.extentMajor([[-180,-90+o.i],[180,90-o.i]]).extentMinor([[-180,-80-o.i],[180,80+o.i]])}},function(t,e,n){"use strict";var r=n(6);e.a=function(t,e){var n=t[0]*r.r,i=t[1]*r.r,a=e[0]*r.r,o=e[1]*r.r,s=Object(r.g)(i),u=Object(r.t)(i),c=Object(r.g)(o),l=Object(r.t)(o),f=s*Object(r.g)(n),h=s*Object(r.t)(n),p=c*Object(r.g)(a),d=c*Object(r.t)(a),g=2*Object(r.c)(Object(r.u)(Object(r.m)(o-i)+s*c*Object(r.m)(a-n))),v=Object(r.t)(g),y=g?function(t){var e=Object(r.t)(t*=g)/v,n=Object(r.t)(g-t)/v,i=n*f+e*p,a=n*h+e*d,o=n*u+e*l;return[Object(r.e)(a,i)*r.h,Object(r.e)(o,Object(r.u)(i*i+a*a))*r.h]}:function(){return[n*r.h,i*r.h]};return y.distance=g,y}},function(t,e,n){"use strict";var r=n(223),i=n(33),a=n(519),o=n(224),s=n(520),u=n(521),c=n(522);e.a=function(){function t(t){return t&&("function"==typeof h&&f.pointRadius(+h.apply(this,arguments)),Object(i.a)(t,n(f))),f.result()}var e,n,l,f,h=4.5;return t.area=function(t){return Object(i.a)(t,n(a.a)),a.a.result()},t.bounds=function(t){return Object(i.a)(t,n(o.a)),o.a.result()},t.centroid=function(t){return Object(i.a)(t,n(s.a)),s.a.result()},t.projection=function(i){return arguments.length?(n=null==(e=i)?r.a:i.stream,t):e},t.context=function(e){return arguments.length?(f=null==(l=e)?new c.a:new u.a(e),"function"!=typeof h&&f.pointRadius(h),t):l},t.pointRadius=function(e){return arguments.length?(h="function"==typeof e?e:(f.pointRadius(+e),+e),t):h},t.projection(null).context(null)}},function(t,e,n){"use strict";function r(){v.point=i}function i(t,e){v.point=a,s=c=t,u=l=e}function a(t,e){g.add(l*t-c*e),c=t,l=e}function o(){a(s,u)}var s,u,c,l,f=n(53),h=n(6),p=n(32),d=Object(f.a)(),g=Object(f.a)(),v={point:p.a,lineStart:p.a,lineEnd:p.a,polygonStart:function(){v.lineStart=r,v.lineEnd=o},polygonEnd:function(){v.lineStart=v.lineEnd=v.point=p.a,d.add(Object(h.a)(g)),g.reset()},result:function(){var t=d/2;return d.reset(),t}};e.a=v},function(t,e,n){"use strict";function r(t,e){y+=t,m+=e,++x}function i(){M.point=a}function a(t,e){M.point=o,r(d=t,g=e)}function o(t,e){var n=t-d,i=e-g,a=Object(v.u)(n*n+i*i);b+=a*(d+t)/2,_+=a*(g+e)/2,w+=a,r(d=t,g=e)}function s(){M.point=r}function u(){M.point=l}function c(){f(h,p)}function l(t,e){M.point=f,r(h=d=t,p=g=e)}function f(t,e){var n=t-d,i=e-g,a=Object(v.u)(n*n+i*i);b+=a*(d+t)/2,_+=a*(g+e)/2,w+=a,O+=(a=g*t-d*e)*(d+t),j+=a*(g+e),S+=3*a,r(d=t,g=e)}var h,p,d,g,v=n(6),y=0,m=0,x=0,b=0,_=0,w=0,O=0,j=0,S=0,M={point:r,lineStart:i,lineEnd:s,polygonStart:function(){M.lineStart=u,M.lineEnd=c},polygonEnd:function(){M.point=r,M.lineStart=i,M.lineEnd=s},result:function(){var t=S?[O/S,j/S]:w?[b/w,_/w]:x?[y/x,m/x]:[NaN,NaN];return y=m=x=b=_=w=O=j=S=0,t}};e.a=M},function(t,e,n){"use strict";function r(t){this._context=t}e.a=r;var i=n(6),a=n(32);r.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,i.w)}},result:a.a}},function(t,e,n){"use strict";function r(){this._string=[]}function i(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}e.a=r,r.prototype={_circle:i(4.5),pointRadius:function(t){return this._circle=i(t),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}}}},function(t,e,n){"use strict";var r=n(226),i=n(6);e.a=Object(r.a)(function(){return!0},function(t){var e,n=NaN,r=NaN,a=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var u=o>0?i.o:-i.o,c=Object(i.a)(o-n);Object(i.a)(c-i.o)<i.i?(t.point(n,r=(r+s)/2>0?i.l:-i.l),t.point(a,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):a!==u&&c>=i.o&&(Object(i.a)(n-a)<i.i&&(n-=a*i.i),Object(i.a)(o-u)<i.i&&(o-=u*i.i),r=function(t,e,n,r){var a,o,s=Object(i.t)(t-n);return Object(i.a)(s)>i.i?Object(i.d)((Object(i.t)(e)*(o=Object(i.g)(r))*Object(i.t)(n)-Object(i.t)(r)*(a=Object(i.g)(e))*Object(i.t)(t))/(a*o*s)):(e+r)/2}(n,r,o,s),t.point(a,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=s),a=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var a;if(null==t)r.point(-i.o,a=n*i.l),r.point(0,a),r.point(i.o,a),r.point(i.o,0),r.point(i.o,-a),r.point(0,-a),r.point(-i.o,-a),r.point(-i.o,0),r.point(-i.o,a);else if(Object(i.a)(t[0]-e[0])>i.i){var o=t[0]<e[0]?i.o:-i.o;r.point(-o,a=n*o/2),r.point(0,a),r.point(o,a)}else r.point(e[0],e[1])},[-i.o,-i.l])},function(t,e,n){"use strict";var r=n(53),i=n(54),a=n(6),o=Object(r.a)();e.a=function(t,e){var n=e[0],r=e[1],s=[Object(a.t)(n),-Object(a.g)(n),0],u=0,c=0;o.reset();for(var l=0,f=t.length;l<f;++l)if(p=(h=t[l]).length)for(var h,p,d=h[p-1],g=d[0],v=d[1]/2+a.q,y=Object(a.t)(v),m=Object(a.g)(v),x=0;x<p;++x,g=_,y=O,m=j,d=b){var b=h[x],_=b[0],w=b[1]/2+a.q,O=Object(a.t)(w),j=Object(a.g)(w),S=_-g,M=S>=0?1:-1,E=M*S,P=E>a.o,C=y*O;if(o.add(Object(a.e)(C*M*Object(a.t)(E),m*j+C*Object(a.g)(E))),u+=P?S+M*a.w:S,P^g>=n^_>=n){var k=Object(i.c)(Object(i.a)(d),Object(i.a)(b));Object(i.e)(k);var A=Object(i.c)(s,k);Object(i.e)(A);var T=(P^S>=0?-1:1)*Object(a.c)(A[2]);(r>T||r===T&&(k[0]||k[1]))&&(c+=P^S>=0?1:-1)}}return(u<-a.i||u<a.i&&o<-a.i)^1&c}},function(t,e,n){"use strict";var r=n(54),i=n(216),a=n(6),o=n(221),s=n(226);e.a=function(t,e){function n(t,e){return Object(a.g)(t)*Object(a.g)(e)>l}function u(t,e,n){var i=Object(r.a)(t),o=Object(r.a)(e),s=[1,0,0],u=Object(r.c)(i,o),c=Object(r.d)(u,u),f=u[0],h=c-f*f;if(!h)return!n&&t;var p=l*c/h,d=-l*f/h,g=Object(r.c)(s,u),v=Object(r.f)(s,p),y=Object(r.f)(u,d);Object(r.b)(v,y);var m=g,x=Object(r.d)(v,m),b=Object(r.d)(m,m),_=x*x-b*(Object(r.d)(v,v)-1);if(!(_<0)){var w=Object(a.u)(_),O=Object(r.f)(m,(-x-w)/b);if(Object(r.b)(O,v),O=Object(r.g)(O),!n)return O;var j,S=t[0],M=e[0],E=t[1],P=e[1];M<S&&(j=S,S=M,M=j);var C=M-S,k=Object(a.a)(C-a.o)<a.i;if(!k&&P<E&&(j=E,E=P,P=j),k||C<a.i?k?E+P>0^O[1]<(Object(a.a)(O[0]-S)<a.i?E:P):E<=O[1]&&O[1]<=P:C>a.o^(S<=O[0]&&O[0]<=M)){var A=Object(r.f)(m,(-x+w)/b);return Object(r.b)(A,v),[O,Object(r.g)(A)]}}}function c(e,n){var r=f?t:a.o-t,i=0;return e<-r?i|=1:e>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}var l=Object(a.g)(t),f=l>0,h=Object(a.a)(l)>a.i;return Object(s.a)(n,function(t){var e,r,i,s,l;return{lineStart:function(){s=i=!1,l=1},point:function(p,d){var g,v=[p,d],y=n(p,d),m=f?y?0:c(p,d):y?c(p+(p<0?a.o:-a.o),d):0;if(!e&&(s=i=y)&&t.lineStart(),y!==i&&(g=u(e,v),(Object(o.a)(e,g)||Object(o.a)(v,g))&&(v[0]+=a.i,v[1]+=a.i,y=n(v[0],v[1]))),y!==i)l=0,y?(t.lineStart(),g=u(v,e),t.point(g[0],g[1])):(g=u(e,v),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(h&&e&&f^y){var x;m&r||!(x=u(v,e,!0))||(l=0,f?(t.lineStart(),t.point(x[0][0],x[0][1]),t.point(x[1][0],x[1][1]),t.lineEnd()):(t.point(x[1][0],x[1][1]),t.lineEnd(),t.lineStart(),t.point(x[0][0],x[0][1])))}!y||e&&Object(o.a)(e,v)||t.point(v[0],v[1]),e=v,i=y,r=m},lineEnd:function(){i&&t.lineEnd(),e=null},clean:function(){return l|(s&&i)<<1}}},function(n,r,a,o){Object(i.a)(o,t,e,a,n,r)},f?[0,-t]:[-a.o,t-a.o])}},function(t,e,n){"use strict";var r=n(54),i=n(6),a=n(117),o=16,s=Object(i.g)(30*i.r);e.a=function(t,e){return+e?function(t,e){function n(r,a,o,u,c,l,f,h,p,d,g,v,y,m){var x=f-r,b=h-a,_=x*x+b*b;if(_>4*e&&y--){var w=u+d,O=c+g,j=l+v,S=Object(i.u)(w*w+O*O+j*j),M=Object(i.c)(j/=S),E=Object(i.a)(Object(i.a)(j)-1)<i.i||Object(i.a)(o-p)<i.i?(o+p)/2:Object(i.e)(O,w),P=t(E,M),C=P[0],k=P[1],A=C-r,T=k-a,I=b*A-x*T;(I*I/_>e||Object(i.a)((x*A+b*T)/_-.5)>.3||u*d+c*g+l*v<s)&&(n(r,a,o,u,c,l,C,k,E,w/=S,O/=S,j,y,m),m.point(C,k),n(C,k,E,w,O,j,f,h,p,d,g,v,y,m))}}return function(e){function i(n,r){n=t(n,r),e.point(n[0],n[1])}function a(){x=NaN,j.point=s,e.lineStart()}function s(i,a){var s=Object(r.a)([i,a]),u=t(i,a);n(x,b,m,_,w,O,x=u[0],b=u[1],m=i,_=s[0],w=s[1],O=s[2],o,e),e.point(x,b)}function u(){j.point=i,e.lineEnd()}function c(){a(),j.point=l,j.lineEnd=f}function l(t,e){s(h=t,e),p=x,d=b,g=_,v=w,y=O,j.point=s}function f(){n(x,b,m,_,w,O,p,d,h,g,v,y,o,e),j.lineEnd=u,u()}var h,p,d,g,v,y,m,x,b,_,w,O,j={point:i,lineStart:a,lineEnd:u,polygonStart:function(){e.polygonStart(),j.lineStart=c},polygonEnd:function(){e.polygonEnd(),j.lineStart=a}};return j}}(t,e):function(t){return Object(a.b)({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}},function(t,e,n){"use strict";var r=n(6),i=n(225),a=n(115),o=n(227);e.a=function(){function t(t){var e=t[0],n=t[1];return l=null,s.point(e,n),l||(u.point(e,n),l)||(c.point(e,n),l)}var e,n,s,u,c,l,f=Object(i.a)(),h=Object(a.b)().rotate([154,0]).center([-2,58.5]).parallels([55,65]),p=Object(a.b)().rotate([157,0]).center([-3,19.9]).parallels([8,18]),d={point:function(t,e){l=[t,e]}};return t.invert=function(t){var e=f.scale(),n=f.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?h:i>=.166&&i<.234&&r>=-.214&&r<-.115?p:f).invert(t)},t.stream=function(t){return e&&n===t?e:e=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([f.stream(n=t),h.stream(t),p.stream(t)])},t.precision=function(e){return arguments.length?(f.precision(e),h.precision(e),p.precision(e),t):f.precision()},t.scale=function(e){return arguments.length?(f.scale(e),h.scale(.35*e),p.scale(e),t.translate(f.translate())):f.scale()},t.translate=function(e){if(!arguments.length)return f.translate();var n=f.scale(),i=+e[0],a=+e[1];return s=f.translate(e).clipExtent([[i-.455*n,a-.238*n],[i+.455*n,a+.238*n]]).stream(d),u=h.translate([i-.307*n,a+.201*n]).clipExtent([[i-.425*n+r.i,a+.12*n+r.i],[i-.214*n-r.i,a+.234*n-r.i]]).stream(d),c=p.translate([i-.205*n,a+.212*n]).clipExtent([[i-.214*n+r.i,a+.166*n+r.i],[i-.115*n-r.i,a+.234*n-r.i]]).stream(d),t},t.fitExtent=Object(o.a)(t),t.fitSize=Object(o.b)(t),t.scale(1070)}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(6),i=n(55),a=n(22),o=Object(i.b)(function(t){return Object(r.u)(2/(1+t))});o.invert=Object(i.a)(function(t){return 2*Object(r.c)(t/2)}),e.b=function(){return Object(a.a)(o).scale(124.75).clipAngle(179.999)}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(6),i=n(55),a=n(22),o=Object(i.b)(function(t){return(t=Object(r.b)(t))&&t/Object(r.t)(t)});o.invert=Object(i.a)(function(t){return t}),e.b=function(){return Object(a.a)(o).scale(79.4188).clipAngle(179.999)}},function(t,e,n){"use strict";function r(t){return Object(a.v)((a.l+t)/2)}function i(t,e){function n(t,e){u>0?e<-a.l+a.i&&(e=-a.l+a.i):e>a.l-a.i&&(e=a.l-a.i);var n=u/Object(a.p)(r(e),o);return[n*Object(a.t)(o*t),u-n*Object(a.g)(o*t)]}var i=Object(a.g)(t),o=t===e?Object(a.t)(t):Object(a.n)(i/Object(a.g)(e))/Object(a.n)(r(e)/r(t)),u=i*Object(a.p)(r(t),o)/o;return o?(n.invert=function(t,e){var n=u-e,r=Object(a.s)(o)*Object(a.u)(t*t+n*n);return[Object(a.e)(t,n)/o,2*Object(a.d)(Object(a.p)(u/r,1/o))-a.l]},n):s.c}e.a=i;var a=n(6),o=n(116),s=n(118);e.b=function(){return Object(o.a)(i).scale(109.5).parallels([30,30])}},function(t,e,n){"use strict";function r(t,e){function n(t,e){var n=s-e,r=a*t;return[n*Object(i.t)(r),s-n*Object(i.g)(r)]}var r=Object(i.g)(t),a=t===e?Object(i.t)(t):(r-Object(i.g)(e))/(e-t),s=r/a+t;return Object(i.a)(a)<i.i?o.b:(n.invert=function(t,e){var n=s-e;return[Object(i.e)(t,n)/a,s-Object(i.s)(a)*Object(i.u)(t*t+n*n)]},n)}e.a=r;var i=n(6),a=n(116),o=n(228);e.b=function(){return Object(a.a)(r).scale(131.154).center([0,13.9389])}},function(t,e,n){"use strict";function r(t,e){var n=Object(i.g)(e),r=Object(i.g)(t)*n;return[n*Object(i.t)(t)/r,Object(i.t)(e)/r]}e.b=r;var i=n(6),a=n(55),o=n(22);r.invert=Object(a.a)(i.d),e.a=function(){return Object(o.a)(r).scale(144.049).clipAngle(60)}},function(t,e,n){"use strict";function r(t,e){return[Object(i.g)(e)*Object(i.t)(t),Object(i.t)(e)]}e.b=r;var i=n(6),a=n(55),o=n(22);r.invert=Object(a.a)(i.c),e.a=function(){return Object(o.a)(r).scale(249.5).clipAngle(90+i.i)}},function(t,e,n){"use strict";function r(t,e){var n=Object(i.g)(e),r=1+Object(i.g)(t)*n;return[n*Object(i.t)(t)/r,Object(i.t)(e)/r]}e.b=r;var i=n(6),a=n(55),o=n(22);r.invert=Object(a.a)(function(t){return 2*Object(i.d)(t)}),e.a=function(){return Object(o.a)(r).scale(250).clipAngle(142)}},function(t,e,n){"use strict";function r(t,e){return[Object(i.n)(Object(i.v)((i.l+e)/2)),-t]}e.b=r;var i=n(6),a=n(118);r.invert=function(t,e){return[-e,2*Object(i.d)(Object(i.k)(t))-i.l]},e.a=function(){var t=Object(a.b)(r),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}},function(t,e,n){"use strict";function r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function i(){return new r}var a=Math.PI,o=2*a,s=o-1e-6;r.prototype=i.prototype={constructor:r,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){var o=this._x1,s=this._y1,u=(n=+n)-(t=+t),c=(r=+r)-(e=+e),l=o-t,f=s-e,h=l*l+f*f;if((i=+i)<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(f*u-c*l)>1e-6&&i){var p=n-o,d=r-s,g=u*u+c*c,v=p*p+d*d,y=Math.sqrt(g),m=Math.sqrt(h),x=i*Math.tan((a-Math.acos((g+h-v)/(2*y*m)))/2),b=x/m,_=x/y;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*l)+","+(e+b*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>l*d)+","+(this._x1=t+_*u)+","+(this._y1=e+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,u){t=+t,e=+e;var c=(n=+n)*Math.cos(r),l=n*Math.sin(r),f=t+c,h=e+l,p=1^u,d=u?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),n&&(d<0&&(d=d%o+o),d>s?this._+="A"+n+","+n+",0,1,"+p+","+(t-c)+","+(e-l)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=h):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=a)+","+p+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.a=i},function(t,e,n){var r=n(4),i=n(47);r(i.prototype,{getAllNodes:function(){var t=[];return this.root.each(function(e){t.push(e)}),t},getAllLinks:function(){for(var t=[],e=[this.root],n=void 0;n=e.pop();){var r=n.children;r&&r.forEach(function(r){t.push({source:n,target:r}),e.push(r)})}return t}}),r(i.prototype,{getAllEdges:i.prototype.getAllLinks})},function(t,e,n){var r=n(4),i=n(119),a=n(19);r(n(47).prototype,{partition:function(){return a(this.rows,arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],arguments.length>1&&void 0!==arguments[1]?arguments[1]:[])},group:function(t,e){var n=this.partition(t,e);return i(n)},groups:function(t,e){return this.group(t,e)}})},function(t,e,n){var r=n(50);t.exports=function(t,e){return r(e,function(e){return t[e]})}},function(t,e,n){var r=n(85),i=n(541),a=Object.prototype.hasOwnProperty,o=i(function(t,e,n){a.call(t,n)?t[n].push(e):r(t,n,[e])});t.exports=o},function(t,e,n){var r=n(542),i=n(543),a=n(48),o=n(3);t.exports=function(t,e){return function(n,s){var u=o(n)?r:i,c=e?e():{};return u(n,t,a(s,2),c)}}},function(t,e){t.exports=function(t,e,n,r){for(var i=-1,a=null==t?0:t.length;++i<a;){var o=t[i];e(r,o,n(o),t)}return r}},function(t,e,n){var r=n(120);t.exports=function(t,e,n,i){return r(t,function(t,r,a){e(i,t,n(t),a)}),i}},function(t,e,n){var r=n(212),i=n(11);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(24);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var a=n.length,o=e?a:-1,s=Object(n);(e?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},function(t,e,n){var r=n(3),i=n(13),a=n(9);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=void 0;return i(e)?n=e:r(e)?n=function(t,n){for(var r=0;r<e.length;r++){var i=e[r];if(t[i]<n[i])return-1;if(t[i]>n[i])return 1}return 0}:a(e)&&(n=function(t,n){return t[e]<n[e]?-1:t[e]>n[e]?1:0}),t.sort(n)}},function(t,e,n){function r(t,e){var n=t.getColumn(e);return o(n)&&o(n[0])&&(n=a(n)),n}var i=n(4),a=n(229),o=n(3),s=n(27),u=n(47),c=n(246);n(125).STATISTICS_METHODS.forEach(function(t){u.prototype[t]=function(e){return s[t](r(this,e))}});var l=s.quantile;i(u.prototype,{average:u.prototype.mean,quantile:function(t,e){return l(r(this,t),e)},quantiles:function(t,e){var n=r(this,t);return e.map(function(t){return l(n,t)})},quantilesByFraction:function(t,e){return this.quantiles(t,c(e))},range:function(t){return[this.min(t),this.max(t)]},extent:function(t){return this.range(t)}})},function(t,e,n){"use strict";t.exports=function(t){var e,n,r=t.length;if(1===r)e=0,n=t[0][1];else{for(var i,a,o,s=0,u=0,c=0,l=0,f=0;f<r;f++)s+=a=(i=t[f])[0],u+=o=i[1],c+=a*a,l+=a*o;n=u/r-(e=(r*l-s*u)/(r*c-s*s))*s/r}return{m:e,b:n}}},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.b+t.m*e}}},function(t,e,n){"use strict";t.exports=function(t,e){if(t.length<2)return 1;for(var n,r=0,i=0;i<t.length;i++)r+=t[i][1];n=r/t.length;for(var a=0,o=0;o<t.length;o++)a+=Math.pow(n-t[o][1],2);for(var s=0,u=0;u<t.length;u++)s+=Math.pow(t[u][1]-e(t[u][0]),2);return 1-s/a}},function(t,e,n){"use strict";var r=n(233),i=n(234);t.exports=function(t){return i(r(t))}},function(t,e,n){"use strict";t.exports=function(t){for(var e,n=new Map,r=0,i=0;i<t.length;i++){var a=n.get(t[i]);void 0===a?a=1:a++,a>r&&(e=t[i],r=a),n.set(t[i],a)}if(0===r)throw new Error("mode requires at last one data point");return e}},function(t,e,n){"use strict";t.exports=function(t){return t[0]}},function(t,e,n){"use strict";t.exports=function(t){return t[t.length-1]}},function(t,e,n){"use strict";t.exports=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n];return e}},function(t,e,n){"use strict";t.exports=function(t){for(var e=1,n=0;n<t.length;n++)e*=t[n];return e}},function(t,e,n){"use strict";function r(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}t.exports=function t(e,n,i,a){for(i=i||0,a=a||e.length-1;a>i;){if(a-i>600){var o=a-i+1,s=n-i+1,u=Math.log(o),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(o-c)/o);s-o/2<0&&(l*=-1),t(e,n,Math.max(i,Math.floor(n-s*c/o+l)),Math.min(a,Math.floor(n+(o-s)*c/o+l)))}var f=e[n],h=i,p=a;for(r(e,i,n),e[a]>f&&r(e,i,a);h<p;){for(r(e,h,p),h++,p--;e[h]<f;)h++;for(;e[p]>f;)p--}e[i]===f?r(e,i,p):r(e,++p,a),p<=n&&(i=p+1),n<=p&&(a=p-1)}}},function(t,e,n){"use strict";var r=n(122);t.exports=function(t){var e=r(t,.75),n=r(t,.25);if("number"==typeof e&&"number"==typeof n)return e-n}},function(t,e,n){"use strict";var r=n(237);t.exports=function(t){for(var e=r(t),n=[],i=0;i<t.length;i++)n.push(Math.abs(t[i]-e));return r(n)}},function(t,e,n){"use strict";t.exports=function(t,e){var n=[];if(e<1)throw new Error("chunk size must be a positive number");if(Math.floor(e)!==e)throw new Error("chunk size must be an integer");for(var r=0;r<t.length;r+=e)n.push(t.slice(r,r+e));return n}},function(t,e,n){"use strict";t.exports=function(t,e,n){if(0===t.length)return[];n=n||Math.random;for(var r=t.length,i=[],a=0;a<e;a++){var o=Math.floor(n()*r);i.push(t[o])}return i}},function(t,e,n){"use strict";var r=n(238);t.exports=function(t,e,n){return r(t,n).slice(0,e)}},function(t,e,n){"use strict";function r(t,e){for(var n=[],r=0;r<t;r++){for(var i=[],a=0;a<e;a++)i.push(0);n.push(i)}return n}function i(t,e,n,r){var i;if(t>0){var a=(n[e]-n[t-1])/(e-t+1);i=r[e]-r[t-1]-(e-t+1)*a*a}else i=r[e]-n[e]*n[e]/(e+1);return i<0?0:i}function a(t,e,n,r,o,s,u){if(!(t>e)){var c=Math.floor((t+e)/2);r[n][c]=r[n-1][c-1],o[n][c]=c;var l=n;t>n&&(l=Math.max(l,o[n][t-1]||0)),l=Math.max(l,o[n-1][c]||0);var f=c-1;e<r.length-1&&(f=Math.min(f,o[n][e+1]||0));for(var h,p,d,g=f;g>=l&&!((h=i(g,c,s,u))+r[n-1][l-1]>=r[n][c]);--g)(p=i(l,c,s,u)+r[n-1][l-1])<r[n][c]&&(r[n][c]=p,o[n][c]=l),l++,(d=h+r[n-1][g-1])<r[n][c]&&(r[n][c]=d,o[n][c]=g);a(t,c-1,n,r,o,s,u),a(c+1,e,n,r,o,s,u)}}var o=n(240),s=n(233);t.exports=function(t,e){if(e>t.length)throw new Error("cannot generate more classes than there are data values");var n=s(t);if(1===o(n))return[n];var u=r(e,n.length),c=r(e,n.length);!function(t,e,n){for(var r,o=e[0].length,s=t[Math.floor(o/2)],u=[],c=[],l=0;l<o;++l)r=t[l]-s,0===l?(u.push(r),c.push(r*r)):(u.push(u[l-1]+r),c.push(c[l-1]+r*r)),e[0][l]=i(0,l,u,c),n[0][l]=0;for(var f=1;f<e.length;++f)a(f<e.length-1?f:o-1,o-1,f,e,n,u,c)}(n,u,c);for(var l=[],f=c[0].length-1,h=c.length-1;h>=0;h--){var p=c[h][f];l[h]=n.slice(p,f+1),h>0&&(f=p-1)}return l}},function(t,e,n){"use strict";var r=n(236),i=n(235);t.exports=function(t,e){if(t.length<2)return t;for(var n=i(t),a=r(t),o=[n],s=(a-n)/e,u=1;u<e;u++)o.push(o[0]+s*u);return o.push(a),o}},function(t,e,n){"use strict";var r=n(241),i=n(242);t.exports=function(t,e){return r(t,e)/i(t)/i(e)}},function(t,e,n){"use strict";var r=n(28);t.exports=function(t){if(t.length<3)throw new Error("sampleSkewness requires at least three data points");for(var e,n=r(t),i=0,a=0,o=0;o<t.length;o++)i+=(e=t[o]-n)*e,a+=e*e*e;var s=Math.sqrt(i/(t.length-1)),u=t.length;return u*a/((u-1)*(u-2)*Math.pow(s,3))}},function(t,e,n){"use strict";var r=n(28);t.exports=function(t){var e=t.length;if(e<4)throw new Error("sampleKurtosis requires at least four data points");for(var n,i=r(t),a=0,o=0,s=0;s<e;s++)a+=(n=t[s]-i)*n,o+=n*n*n*n;return(e-1)/((e-2)*(e-3))*(e*(e+1)*o/(a*a)-3*(e-1))}},function(t,e,n){"use strict";t.exports=function(t){for(var e=new Array(t.length),n=[t.slice()],r=0;r<t.length;r++)e[r]=0;for(r=0;r<t.length;)if(e[r]<r){var i=0;r%2!=0&&(i=e[r]);var a=t[i];t[i]=t[r],t[r]=a,n.push(t.slice()),e[r]++,r=0}else e[r]=0,r++;return n}},function(t,e,n){"use strict";t.exports=function t(e,n){var r,i,a,o,s=[];for(r=0;r<e.length;r++)if(1===n)s.push([e[r]]);else for(a=t(e.slice(r+1,e.length),n-1),i=0;i<a.length;i++)(o=a[i]).unshift(e[r]),s.push(o);return s}},function(t,e,n){"use strict";t.exports=function t(e,n){for(var r=[],i=0;i<e.length;i++)if(1===n)r.push([e[i]]);else for(var a=t(e.slice(i,e.length),n-1),o=0;o<a.length;o++)r.push([e[i]].concat(a[o]));return r}},function(t,e,n){"use strict";t.exports=function(t,e,n){return t+(n-t)/(e+1)}},function(t,e,n){"use strict";var r=n(243);t.exports=function(t,e,n,i,a,o){var s=r(e,n,a,o);return(n*(t+Math.pow(e-s,2))+o*(i+Math.pow(a-s,2)))/(n+o)}},function(t,e,n){"use strict";t.exports=function(t){if(0===t.length)throw new Error("geometricMean requires at least one data point");for(var e=1,n=0;n<t.length;n++){if(t[n]<=0)throw new Error("geometricMean requires only positive numbers as input");e*=t[n]}return Math.pow(e,1/t.length)}},function(t,e,n){"use strict";t.exports=function(t){if(0===t.length)throw new Error("harmonicMean requires at least one data point");for(var e=0,n=0;n<t.length;n++){if(t[n]<=0)throw new Error("harmonicMean requires only positive numbers as input");e+=1/t[n]}return t.length/e}},function(t,e,n){"use strict";var r=n(123);t.exports=function(t){return r(t,.5)}},function(t,e,n){"use strict";t.exports=function(t,e,n){return(t*e-n)/(e-1)}},function(t,e,n){"use strict";t.exports=function(t){if(0===t.length)throw new Error("rootMeanSquare requires at least one data point");for(var e=0,n=0;n<t.length;n++)e+=Math.pow(t[n],2);return Math.sqrt(e/t.length)}},function(t,e,n){"use strict";var r=n(230),i=n(28);t.exports=function(t,e){return(i(t)-e)/(r(t)/Math.sqrt(t.length))}},function(t,e,n){"use strict";var r=n(28),i=n(124);t.exports=function(t,e,n){var a=t.length,o=e.length;if(!a||!o)return null;n||(n=0);var s=r(t),u=r(e),c=i(t),l=i(e);return"number"==typeof s&&"number"==typeof u&&"number"==typeof c&&"number"==typeof l?(s-u-n)/Math.sqrt(((a-1)*c+(o-1)*l)/(a+o-2)*(1/a+1/o)):void 0}},function(t,e,n){"use strict";function r(){this.totalCount=0,this.data={}}r.prototype.train=function(t,e){for(var n in this.data[e]||(this.data[e]={}),t){var r=t[n];void 0===this.data[e][n]&&(this.data[e][n]={}),void 0===this.data[e][n][r]&&(this.data[e][n][r]=0),this.data[e][n][r]++}this.totalCount++},r.prototype.score=function(t){var e,n={};for(var r in t){var i=t[r];for(e in this.data)n[e]={},n[e][r+"_"+i]=this.data[e][r]?(this.data[e][r][i]||0)/this.totalCount:0}var a={};for(e in n)for(var o in a[e]=0,n[e])a[e]+=n[e][o];return a},t.exports=r},function(t,e,n){"use strict";function r(){this.weights=[],this.bias=0}r.prototype.predict=function(t){if(t.length!==this.weights.length)return null;for(var e=0,n=0;n<this.weights.length;n++)e+=this.weights[n]*t[n];return(e+=this.bias)>0?1:0},r.prototype.train=function(t,e){if(0!==e&&1!==e)return null;t.length!==this.weights.length&&(this.weights=t,this.bias=1);var n=this.predict(t);if(n!==e){for(var r=e-n,i=0;i<this.weights.length;i++)this.weights[i]+=r*t[i];this.bias+=r}return this},t.exports=r},function(t,e,n){"use strict";t.exports=function(t){if(t<0)throw new Error("factorial requires a non-negative value");if(Math.floor(t)!==t)throw new Error("factorial requires an integer input");for(var e=1,n=2;n<=t;n++)e*=n;return e}},function(t,e,n){"use strict";t.exports=function(t){if(t<0||t>1)throw new Error("bernoulliDistribution requires probability to be between 0 and 1 inclusive");return[1-t,t]}},function(t,e,n){"use strict";var r=n(78);t.exports=function(t,e){if(!(e<0||e>1||t<=0||t%1!=0)){var n=0,i=0,a=[],o=1;do{a[n]=o*Math.pow(e,n)*Math.pow(1-e,t-n),i+=a[n],o=o*(t-++n+1)/n}while(i<1-r);return a}}},function(t,e,n){"use strict";var r=n(78);t.exports=function(t){if(!(t<=0)){var e=0,n=0,i=[],a=1;do{i[e]=Math.exp(-t)*Math.pow(t,e)/a,n+=i[e],a*=++e}while(n<1-r);return i}}},function(t,e,n){"use strict";var r=n(28),i=n(587);t.exports=function(t,e,n){for(var a,o=0,s=e(r(t)),u=[],c=[],l=0;l<t.length;l++)void 0===u[t[l]]&&(u[t[l]]=0),u[t[l]]++;for(l=0;l<u.length;l++)void 0===u[l]&&(u[l]=0);for(a in s)a in u&&(c[+a]=s[a]*t.length);for(a=c.length-1;a>=0;a--)c[a]<3&&(c[a-1]+=c[a],c.pop(),u[a-1]+=u[a],u.pop());for(a=0;a<u.length;a++)o+=Math.pow(u[a]-c[a],2)/c[a];return i[u.length-1-1][n]<o}},function(t,e,n){"use strict";t.exports={1:{.995:0,.99:0,.975:0,.95:0,.9:.02,.5:.45,.1:2.71,.05:3.84,.025:5.02,.01:6.63,.005:7.88},2:{.995:.01,.99:.02,.975:.05,.95:.1,.9:.21,.5:1.39,.1:4.61,.05:5.99,.025:7.38,.01:9.21,.005:10.6},3:{.995:.07,.99:.11,.975:.22,.95:.35,.9:.58,.5:2.37,.1:6.25,.05:7.81,.025:9.35,.01:11.34,.005:12.84},4:{.995:.21,.99:.3,.975:.48,.95:.71,.9:1.06,.5:3.36,.1:7.78,.05:9.49,.025:11.14,.01:13.28,.005:14.86},5:{.995:.41,.99:.55,.975:.83,.95:1.15,.9:1.61,.5:4.35,.1:9.24,.05:11.07,.025:12.83,.01:15.09,.005:16.75},6:{.995:.68,.99:.87,.975:1.24,.95:1.64,.9:2.2,.5:5.35,.1:10.65,.05:12.59,.025:14.45,.01:16.81,.005:18.55},7:{.995:.99,.99:1.25,.975:1.69,.95:2.17,.9:2.83,.5:6.35,.1:12.02,.05:14.07,.025:16.01,.01:18.48,.005:20.28},8:{.995:1.34,.99:1.65,.975:2.18,.95:2.73,.9:3.49,.5:7.34,.1:13.36,.05:15.51,.025:17.53,.01:20.09,.005:21.96},9:{.995:1.73,.99:2.09,.975:2.7,.95:3.33,.9:4.17,.5:8.34,.1:14.68,.05:16.92,.025:19.02,.01:21.67,.005:23.59},10:{.995:2.16,.99:2.56,.975:3.25,.95:3.94,.9:4.87,.5:9.34,.1:15.99,.05:18.31,.025:20.48,.01:23.21,.005:25.19},11:{.995:2.6,.99:3.05,.975:3.82,.95:4.57,.9:5.58,.5:10.34,.1:17.28,.05:19.68,.025:21.92,.01:24.72,.005:26.76},12:{.995:3.07,.99:3.57,.975:4.4,.95:5.23,.9:6.3,.5:11.34,.1:18.55,.05:21.03,.025:23.34,.01:26.22,.005:28.3},13:{.995:3.57,.99:4.11,.975:5.01,.95:5.89,.9:7.04,.5:12.34,.1:19.81,.05:22.36,.025:24.74,.01:27.69,.005:29.82},14:{.995:4.07,.99:4.66,.975:5.63,.95:6.57,.9:7.79,.5:13.34,.1:21.06,.05:23.68,.025:26.12,.01:29.14,.005:31.32},15:{.995:4.6,.99:5.23,.975:6.27,.95:7.26,.9:8.55,.5:14.34,.1:22.31,.05:25,.025:27.49,.01:30.58,.005:32.8},16:{.995:5.14,.99:5.81,.975:6.91,.95:7.96,.9:9.31,.5:15.34,.1:23.54,.05:26.3,.025:28.85,.01:32,.005:34.27},17:{.995:5.7,.99:6.41,.975:7.56,.95:8.67,.9:10.09,.5:16.34,.1:24.77,.05:27.59,.025:30.19,.01:33.41,.005:35.72},18:{.995:6.26,.99:7.01,.975:8.23,.95:9.39,.9:10.87,.5:17.34,.1:25.99,.05:28.87,.025:31.53,.01:34.81,.005:37.16},19:{.995:6.84,.99:7.63,.975:8.91,.95:10.12,.9:11.65,.5:18.34,.1:27.2,.05:30.14,.025:32.85,.01:36.19,.005:38.58},20:{.995:7.43,.99:8.26,.975:9.59,.95:10.85,.9:12.44,.5:19.34,.1:28.41,.05:31.41,.025:34.17,.01:37.57,.005:40},21:{.995:8.03,.99:8.9,.975:10.28,.95:11.59,.9:13.24,.5:20.34,.1:29.62,.05:32.67,.025:35.48,.01:38.93,.005:41.4},22:{.995:8.64,.99:9.54,.975:10.98,.95:12.34,.9:14.04,.5:21.34,.1:30.81,.05:33.92,.025:36.78,.01:40.29,.005:42.8},23:{.995:9.26,.99:10.2,.975:11.69,.95:13.09,.9:14.85,.5:22.34,.1:32.01,.05:35.17,.025:38.08,.01:41.64,.005:44.18},24:{.995:9.89,.99:10.86,.975:12.4,.95:13.85,.9:15.66,.5:23.34,.1:33.2,.05:36.42,.025:39.36,.01:42.98,.005:45.56},25:{.995:10.52,.99:11.52,.975:13.12,.95:14.61,.9:16.47,.5:24.34,.1:34.28,.05:37.65,.025:40.65,.01:44.31,.005:46.93},26:{.995:11.16,.99:12.2,.975:13.84,.95:15.38,.9:17.29,.5:25.34,.1:35.56,.05:38.89,.025:41.92,.01:45.64,.005:48.29},27:{.995:11.81,.99:12.88,.975:14.57,.95:16.15,.9:18.11,.5:26.34,.1:36.74,.05:40.11,.025:43.19,.01:46.96,.005:49.65},28:{.995:12.46,.99:13.57,.975:15.31,.95:16.93,.9:18.94,.5:27.34,.1:37.92,.05:41.34,.025:44.46,.01:48.28,.005:50.99},29:{.995:13.12,.99:14.26,.975:16.05,.95:17.71,.9:19.77,.5:28.34,.1:39.09,.05:42.56,.025:45.72,.01:49.59,.005:52.34},30:{.995:13.79,.99:14.95,.975:16.79,.95:18.49,.9:20.6,.5:29.34,.1:40.26,.05:43.77,.025:46.98,.01:50.89,.005:53.67},40:{.995:20.71,.99:22.16,.975:24.43,.95:26.51,.9:29.05,.5:39.34,.1:51.81,.05:55.76,.025:59.34,.01:63.69,.005:66.77},50:{.995:27.99,.99:29.71,.975:32.36,.95:34.76,.9:37.69,.5:49.33,.1:63.17,.05:67.5,.025:71.42,.01:76.15,.005:79.49},60:{.995:35.53,.99:37.48,.975:40.48,.95:43.19,.9:46.46,.5:59.33,.1:74.4,.05:79.08,.025:83.3,.01:88.38,.005:91.95},70:{.995:43.28,.99:45.44,.975:48.76,.95:51.74,.9:55.33,.5:69.33,.1:85.53,.05:90.53,.025:95.02,.01:100.42,.005:104.22},80:{.995:51.17,.99:53.54,.975:57.15,.95:60.39,.9:64.28,.5:79.33,.1:96.58,.05:101.88,.025:106.63,.01:112.33,.005:116.32},90:{.995:59.2,.99:61.75,.975:65.65,.95:69.13,.9:73.29,.5:89.33,.1:107.57,.05:113.14,.025:118.14,.01:124.12,.005:128.3},100:{.995:67.33,.99:70.06,.975:74.22,.95:77.93,.9:82.36,.5:99.33,.1:118.5,.05:124.34,.025:129.56,.01:135.81,.005:140.17}}},function(t,e,n){"use strict";t.exports=function(t,e,n){return(t-e)/n}},function(t,e,n){"use strict";var r=n(244);t.exports=function(t){var e=Math.abs(t),n=Math.min(Math.round(100*e),r.length-1);return t>=0?r[n]:+(1-r[n]).toFixed(4)}},function(t,e,n){"use strict";t.exports=function(t){var e=1/(1+.5*Math.abs(t)),n=e*Math.exp(-Math.pow(t,2)-1.26551223+1.00002368*e+.37409196*Math.pow(e,2)+.09678418*Math.pow(e,3)-.18628806*Math.pow(e,4)+.27886807*Math.pow(e,5)-1.13520398*Math.pow(e,6)+1.48851587*Math.pow(e,7)-.82215223*Math.pow(e,8)+.17087277*Math.pow(e,9));return t>=0?1-n:n-1}},function(t,e,n){"use strict";var r=n(78),i=n(245);t.exports=function(t){return 0===t?t=r:t>=1&&(t=1-r),Math.sqrt(2)*i(2*t-1)}},function(t,e,n){"use strict";var r=n(593);t.exports=function(t,e,n,i,a){if("function"!=typeof t)throw new TypeError("func must be a function");for(var o=0;o<i;o++){var s=(e+n)/2;if(0===t(s)||Math.abs((n-e)/2)<a)return s;r(t(s))===r(t(e))?e=s:n=s}throw new Error("maximum number of iterations exceeded")}},function(t,e,n){"use strict";t.exports=function(t){if("number"==typeof t)return t<0?-1:0===t?0:1;throw new TypeError("not a number")}},function(t,e,n){var r=n(9),i=n(75);(0,n(2).registerConnector)("default",function(t,e){if(r(t)&&(t=e.getView(t)),!t)throw new TypeError("Invalid dataView");return i(t.rows)})},function(t,e,n){var r=n(208),i=0;t.exports=function(t){var e=++i;return r(t)+e}},function(t,e,n){var r=n(9),i=n(597),a=i.dsvFormat,o=i.csvParse,s=i.tsvParse,u=n(2).registerConnector;u("dsv",function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).delimiter||",";if(!r(e))throw new TypeError("Invalid delimiter: must be a string!");return a(e).parse(t)}),u("csv",function(t){return o(t)}),u("tsv",function(t){return s(t)})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(126);n.d(e,"dsvFormat",function(){return r.a});var i=n(598);n.d(e,"csvParse",function(){return i.c}),n.d(e,"csvParseRows",function(){return i.d}),n.d(e,"csvFormat",function(){return i.a}),n.d(e,"csvFormatRows",function(){return i.b});var a=n(599);n.d(e,"tsvParse",function(){return a.c}),n.d(e,"tsvParseRows",function(){return a.d}),n.d(e,"tsvFormat",function(){return a.a}),n.d(e,"tsvFormatRows",function(){return a.b})},function(t,e,n){"use strict";n.d(e,"c",function(){return a}),n.d(e,"d",function(){return o}),n.d(e,"a",function(){return s}),n.d(e,"b",function(){return u});var r=n(126),i=Object(r.a)(","),a=i.parse,o=i.parseRows,s=i.format,u=i.formatRows},function(t,e,n){"use strict";n.d(e,"c",function(){return a}),n.d(e,"d",function(){return o}),n.d(e,"a",function(){return s}),n.d(e,"b",function(){return u});var r=n(126),i=Object(r.a)("\t"),a=i.parse,o=i.parseRows,s=i.format,u=i.formatRows},function(t,e,n){function r(t,e){e.dataType="geo-graticule";var n=i().lines();return n.map(function(t,e){return t.index=""+e,t}),e.rows=n,n}var i=n(0).geoGraticule;(0,n(2).registerConnector)("geo-graticule",r),t.exports=r},function(t,e){t.exports=function(t){var e=[];return t.replace(r,function(t,r,a){var o=r.toLowerCase();for(a=function(t){var e=a.match(i);return e?e.map(Number):[]}(),"m"==o&&a.length>2&&(e.push([r].concat(a.splice(0,2))),o="l",r="m"==r?"l":"L");;){if(a.length==n[o])return a.unshift(r),e.push(a);if(a.length<n[o])throw new Error("malformed path data");e.push([r].concat(a.splice(0,n[o])))}}),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi,i=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e){t.exports=function(t){var e=0,n=0,r=0,i=0;return t.map(function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case"a":t[6]+=r,t[7]+=i;break;case"v":t[1]+=i;break;case"h":t[1]+=r;break;default:for(var s=1;s<t.length;)t[s++]+=r,t[s++]+=i}switch(o){case"Z":r=e,i=n;break;case"H":r=t[1];break;case"V":i=t[1];break;case"M":r=e=t[1],i=n=t[2];break;default:r=t[t.length-2],i=t[t.length-1]}return t})}},function(t,e,n){function r(t,e,n){e=i({},c,e),n.dataType=s;var r=e.nodes,o=e.edges;if(r&&!a(r))throw new TypeError("Invalid nodes: must be a function!");if(o&&!a(o))throw new TypeError("Invalid edges: must be a function!");return n.rows=n.graph={nodes:r(t),edges:o(t)},i(n,n.graph),n.rows}var i=n(4),a=n(13),o=n(2),s=o.GRAPH,u=o.registerConnector,c={nodes:function(t){return t.nodes},edges:function(t){return t.edges}};u("graph",r),u("diagram",r)},function(t,e,n){function r(t){return t.cx=t.x,t.cy=t.y,t.x=[],t.y=[],t.vertices.forEach(function(e){t.x.push(e.x+t.cx),t.y.push(e.y+t.cy)}),t}function i(t,e,n){n.dataType=f;var i=e=a({},p,e),s=i.width,l=i.height,h=o(t);n._HexJSON=h;var d=n._GridHexJSON=u(h),g=n.rows=c(h,s,l).map(r);return n._gridRows=c(d,s,l).map(r),g}var a=n(4),o=n(75),s=n(606),u=s.getGridForHexJSON,c=s.renderHexJSON,l=n(2),f=l.HEX,h=l.registerConnector,p={width:1,height:1};h("hex",i),h("hexjson",i),h("hex-json",i),h("HexJSON",i),t.exports=i},function(t,e,n){!function(t,e){"use strict";t.renderHexJSON=function(t,n,r){var i,a=t.layout,o=[];Object.keys(t.hexes).forEach(function(e){t.hexes[e].key=e,o.push(t.hexes[e])});var s=e.max(o,function(t){return+t.q}),u=e.min(o,function(t){return+t.q}),c=e.max(o,function(t){return+t.r}),l=e.min(o,function(t){return+t.r}),f=s-u+1,h=c-l+1,p=(i=e.min("odd-r"===a||"even-r"===a?[n/((f+.5)*Math.sqrt(3)),r/(1.5*(h+1/3))]:[r/((h+.5)*Math.sqrt(3)),n/(1.5*(f+1/3))]))*Math.sqrt(3),d=[],g=function(t){var e="";return d.forEach(function(t){e+=t.x+","+t.y+" "}),e.substring(0,e.length-1)}();return o.forEach(function(t){t.qc=t.q-u,t.rc=c-t.r,t.x=function(t,e,n,r){var i=0;switch(e){case"odd-r":i=t.qc*n+(t.rc%2==1?n:n/2);break;case"even-r":i=t.qc*n+(t.rc%2==0?n:n/2);break;case"odd-q":case"even-q":i=t.qc*r*1.5+r}return i}(t,a,p,i),t.y=function(t,e,n,r){var i=0;switch(e){case"odd-r":case"even-r":i=t.rc*r*1.5+r;break;case"odd-q":i=t.rc*n+(t.qc%2==1?n:n/2);break;case"even-q":i=t.rc*n+(t.qc%2==0?n:n/2)}return i}(t,a,p,i),t.vertices=d,t.points=g}),o},t.getGridForHexJSON=function(t){var n={};n.layout=t.layout,n.hexes={};var r=[];Object.keys(t.hexes).forEach(function(e){r.push(t.hexes[e])});var i,a,o=e.max(r,function(t){return+t.q}),s=e.min(r,function(t){return+t.q}),u=e.max(r,function(t){return+t.r}),c=e.min(r,function(t){return+t.r});for(i=s;i<=o;i++)for(a=c;a<=u;a++)n.hexes["Q"+i+"R"+a]={q:i,r:a};return n},Object.defineProperty(t,"__esModule",{value:!0})}(e,n(16))},function(t,e,n){function r(t,e,n){n.dataType=s;var r=e&&e.children?e.children:null;if(r&&!i(r))throw new TypeError("Invalid children: must be a function!");return n.rows=n.root=e.pureData?t:a(t,r),t}var i=n(13),a=n(40).hierarchy,o=n(2),s=o.HIERARCHY,u=o.registerConnector;u("hierarchy",r),u("tree",r)},function(t,e,n){"use strict";function r(t,e){return t.parent===e.parent?1:2}function i(t,e){return t+e.x}function a(t,e){return Math.max(t,e.y)}e.a=function(){function t(t){var r,u=0;t.eachAfter(function(t){var n=t.children;n?(t.x=function(t){return t.reduce(i,0)/t.length}(n),t.y=1+n.reduce(a,0)):(t.x=r?u+=e(t,r):0,t.y=0,r=t)});var c=function(t){for(var e;e=t.children;)t=e[0];return t}(t),l=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(t),f=c.x-e(c,l)/2,h=l.x+e(l,c)/2;return t.eachAfter(s?function(e){e.x=(e.x-t.x)*n,e.y=(t.y-e.y)*o}:function(e){e.x=(e.x-f)/(h-f)*n,e.y=(1-(t.y?e.y/t.y:1))*o})}var e=r,n=1,o=1,s=!1;return t.separation=function(n){return arguments.length?(e=n,t):e},t.size=function(e){return arguments.length?(s=!1,n=+e[0],o=+e[1],t):s?null:[n,o]},t.nodeSize=function(e){return arguments.length?(s=!0,n=+e[0],o=+e[1],t):s?[n,o]:null},t}},function(t,e,n){"use strict";function r(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}e.a=function(){return this.eachAfter(r)}},function(t,e,n){"use strict";e.a=function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r<i;++r)o.push(n[r])}while(o.length);return this}},function(t,e,n){"use strict";e.a=function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this}},function(t,e,n){"use strict";e.a=function(t){for(var e,n,r,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)a.push(e[n]);for(;i=o.pop();)t(i);return this}},function(t,e,n){"use strict";e.a=function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}},function(t,e,n){"use strict";e.a=function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}},function(t,e,n){"use strict";e.a=function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}},function(t,e,n){"use strict";e.a=function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}},function(t,e,n){"use strict";e.a=function(){var t=[];return this.each(function(e){t.push(e)}),t}},function(t,e,n){"use strict";e.a=function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}},function(t,e,n){"use strict";e.a=function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}},function(t,e,n){"use strict";function r(t){return Math.sqrt(t.value)}function i(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function a(t,e){return function(n){if(r=n.children){var r,i,a,o=r.length,u=t(n)*e||0;if(u)for(i=0;i<o;++i)r[i].r+=u;if(a=Object(s.b)(r),u)for(i=0;i<o;++i)r[i].r-=u;n.r=a+u}}}function o(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var s=n(250),u=n(128),c=n(252);e.a=function(){function t(t){return t.x=n/2,t.y=s/2,e?t.eachBefore(i(e)).eachAfter(a(l,.5)).eachBefore(o(1)):t.eachBefore(i(r)).eachAfter(a(c.a,1)).eachAfter(a(l,t.r/Math.min(n,s))).eachBefore(o(Math.min(n,s)/(2*t.r))),t}var e=null,n=1,s=1,l=c.a;return t.radius=function(n){return arguments.length?(e=Object(u.a)(n),t):e},t.size=function(e){return arguments.length?(n=+e[0],s=+e[1],t):[n,s]},t.padding=function(e){return arguments.length?(l="function"==typeof e?e:Object(c.b)(+e),t):l},t}},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),e.a=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t};var r=Array.prototype.slice},function(t,e,n){"use strict";var r=n(253),i=n(56);e.a=function(){function t(t){var s=t.height+1;return t.x0=t.y0=a,t.x1=e,t.y1=n/s,t.eachBefore(function(t,e){return function(n){n.children&&Object(i.a)(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var r=n.x0,o=n.y0,s=n.x1-a,u=n.y1-a;s<r&&(r=s=(r+s)/2),u<o&&(o=u=(o+u)/2),n.x0=r,n.y0=o,n.x1=s,n.y1=u}}(n,s)),o&&t.eachBefore(r.a),t}var e=1,n=1,a=0,o=!1;return t.round=function(e){return arguments.length?(o=!!e,t):o},t.size=function(r){return arguments.length?(e=+r[0],n=+r[1],t):[e,n]},t.padding=function(e){return arguments.length?(a=+e,t):a},t}},function(t,e,n){"use strict";function r(t){return t.id}function i(t){return t.parentId}var a=n(128),o=n(127),s="$",u={depth:-1},c={};e.a=function(){function t(t){var r,i,a,l,f,h,p,d=t.length,g=new Array(d),v={};for(i=0;i<d;++i)f=g[i]=new o.a(r=t[i]),null!=(h=e(r,i,t))&&(h+="")&&(v[p=s+(f.id=h)]=p in v?c:f);for(i=0;i<d;++i)if(f=g[i],null!=(h=n(t[i],i,t))&&(h+="")){if(!(l=v[s+h]))throw new Error("missing: "+h);if(l===c)throw new Error("ambiguous: "+h);l.children?l.children.push(f):l.children=[f],f.parent=l}else{if(a)throw new Error("multiple roots");a=f}if(!a)throw new Error("no root");if(a.parent=u,a.eachBefore(function(t){t.depth=t.parent.depth+1,--d}).eachBefore(o.b),a.parent=null,d>0)throw new Error("cycle");return a}var e=r,n=i;return t.id=function(n){return arguments.length?(e=Object(a.b)(n),t):e},t.parentId=function(e){return arguments.length?(n=Object(a.b)(e),t):n},t}},function(t,e,n){"use strict";function r(t,e){return t.parent===e.parent?1:2}function i(t){var e=t.children;return e?e[0]:t.t}function a(t){var e=t.children;return e?e[e.length-1]:t.t}function o(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function s(t,e,n){return t.a.parent===e.parent?t.a:n}function u(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}var c=n(127);u.prototype=Object.create(c.a.prototype),e.a=function(){function t(t){var r=function(t){for(var e,n,r,i,a,o=new u(t,0),s=[o];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new u(r[i],i)),n.parent=e;return(o.parent=new u(null,0)).children=[o],o}(t);if(r.eachAfter(e),r.parent.m=-r.z,r.eachBefore(n),p)t.eachBefore(c);else{var i=t,a=t,o=t;t.eachBefore(function(t){t.x<i.x&&(i=t),t.x>a.x&&(a=t),t.depth>o.depth&&(o=t)});var s=i===a?1:l(i,a)/2,d=s-i.x,g=f/(a.x+s+d),v=h/(o.depth||1);t.eachBefore(function(t){t.x=(t.x+d)*g,t.y=t.depth*v})}return t}function e(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(t);var u=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+l(t._,r._),t.m=t.z-u):t.z=u}else r&&(t.z=r.z+l(t._,r._));t.parent.A=function(t,e,n){if(e){for(var r,u=t,c=t,f=e,h=u.parent.children[0],p=u.m,d=c.m,g=f.m,v=h.m;f=a(f),u=i(u),f&&u;)h=i(h),(c=a(c)).a=t,(r=f.z+g-u.z-p+l(f._,u._))>0&&(o(s(f,t,n),t,r),p+=r,d+=r),g+=f.m,p+=u.m,v+=h.m,d+=c.m;f&&!a(c)&&(c.t=f,c.m+=g-d),u&&!i(h)&&(h.t=u,h.m+=p-v,n=t)}return n}(t,r,t.parent.A||n[0])}function n(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function c(t){t.x*=f,t.y=t.depth*h}var l=r,f=1,h=1,p=null;return t.separation=function(e){return arguments.length?(l=e,t):l},t.size=function(e){return arguments.length?(p=!1,f=+e[0],h=+e[1],t):p?null:[f,h]},t.nodeSize=function(e){return arguments.length?(p=!0,f=+e[0],h=+e[1],t):p?[f,h]:null},t}},function(t,e,n){"use strict";var r=n(253),i=n(129),a=n(128),o=n(252);e.a=function(){function t(t){return t.x0=t.y0=0,t.x1=u,t.y1=c,t.eachBefore(e),l=[0],s&&t.eachBefore(r.a),t}function e(t){var e=l[t.depth],r=t.x0+e,i=t.y0+e,a=t.x1-e,o=t.y1-e;a<r&&(r=a=(r+a)/2),o<i&&(i=o=(i+o)/2),t.x0=r,t.y0=i,t.x1=a,t.y1=o,t.children&&(e=l[t.depth+1]=f(t)/2,r+=g(t)-e,i+=h(t)-e,a-=p(t)-e,o-=d(t)-e,a<r&&(r=a=(r+a)/2),o<i&&(i=o=(i+o)/2),n(t,r,i,a,o))}var n=i.a,s=!1,u=1,c=1,l=[0],f=o.a,h=o.a,p=o.a,d=o.a,g=o.a;return t.round=function(e){return arguments.length?(s=!!e,t):s},t.size=function(e){return arguments.length?(u=+e[0],c=+e[1],t):[u,c]},t.tile=function(e){return arguments.length?(n=Object(a.b)(e),t):n},t.padding=function(e){return arguments.length?t.paddingInner(e).paddingOuter(e):t.paddingInner()},t.paddingInner=function(e){return arguments.length?(f="function"==typeof e?e:Object(o.b)(+e),t):f},t.paddingOuter=function(e){return arguments.length?t.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):t.paddingTop()},t.paddingTop=function(e){return arguments.length?(h="function"==typeof e?e:Object(o.b)(+e),t):h},t.paddingRight=function(e){return arguments.length?(p="function"==typeof e?e:Object(o.b)(+e),t):p},t.paddingBottom=function(e){return arguments.length?(d="function"==typeof e?e:Object(o.b)(+e),t):d},t.paddingLeft=function(e){return arguments.length?(g="function"==typeof e?e:Object(o.b)(+e),t):g},t}},function(t,e,n){"use strict";e.a=function(t,e,n,r,i){var a,o,s=t.children,u=s.length,c=new Array(u+1);for(c[0]=o=a=0;a<u;++a)c[a+1]=o+=s[a].value;!function t(e,n,r,i,a,o,u){if(e>=n-1){var l=s[e];return l.x0=i,l.y0=a,l.x1=o,void(l.y1=u)}for(var f=c[e],h=r/2+f,p=e+1,d=n-1;p<d;){var g=p+d>>>1;c[g]<h?p=g+1:d=g}h-c[p-1]<c[p]-h&&e+1<p&&--p;var v=c[p]-f,y=r-v;if(o-i>u-a){var m=(i*y+o*v)/r;t(e,p,v,i,a,m,u),t(p,n,y,m,a,o,u)}else{var x=(a*y+u*v)/r;t(e,p,v,i,a,o,x),t(p,n,y,i,x,o,u)}}(0,u,t.value,e,n,r,i)}},function(t,e,n){"use strict";var r=n(56),i=n(79);e.a=function(t,e,n,a,o){(1&t.depth?i.a:r.a)(t,e,n,a,o)}},function(t,e,n){"use strict";var r=n(56),i=n(79),a=n(129);e.a=function t(e){function n(t,n,o,s,u){if((c=t._squarify)&&c.ratio===e)for(var c,l,f,h,p,d=-1,g=c.length,v=t.value;++d<g;){for(f=(l=c[d]).children,h=l.value=0,p=f.length;h<p;++h)l.value+=f[h].value;l.dice?Object(r.a)(l,n,o,s,o+=(u-o)*l.value/v):Object(i.a)(l,n,o,n+=(s-n)*l.value/v,u),v-=l.value}else t._squarify=c=Object(a.c)(e,t,n,o,s,u),c.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(a.b)},function(t,e,n){function r(t,e,n){var r=e.object;if(!i(r))throw new TypeError("Invalid object: must be a string!");var s=a(t,t.objects[r]);return o(s,e,n)}var i=n(9),a=n(630).feature,o=n(248),s=n(2).registerConnector;s("topojson",r),s("TopoJSON",r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(254);n.d(e,"bbox",function(){return r.a});var i=n(131);n.d(e,"feature",function(){return i.a});var a=n(632);n.d(e,"mesh",function(){return a.a}),n.d(e,"meshArcs",function(){return a.b});var o=n(633);n.d(e,"merge",function(){return o.a}),n.d(e,"mergeArcs",function(){return o.b});var s=n(634);n.d(e,"neighbors",function(){return s.a});var u=n(636);n.d(e,"quantize",function(){return u.a});var c=n(130);n.d(e,"transform",function(){return c.a});var l=n(257);n.d(e,"untransform",function(){return l.a})},function(t,e,n){"use strict";e.a=function(t,e){for(var n,r=t.length,i=r-e;i<--r;)n=t[i],t[i++]=t[r],t[r]=n}},function(t,e,n){"use strict";function r(t,e,n){var r,i,o;if(arguments.length>1)r=function(t,e,n){function r(t){var e=t<0?~t:t;(u[e]||(u[e]=[])).push({i:t,g:o})}function i(t){t.forEach(r)}function a(t){t.forEach(i)}var o,s=[],u=[];return function t(e){switch(o=e,e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"LineString":i(e.arcs);break;case"MultiLineString":case"Polygon":a(e.arcs);break;case"MultiPolygon":!function(t){t.forEach(a)}(e.arcs)}}(e),u.forEach(null==n?function(t){s.push(t[0].i)}:function(t){n(t[0].g,t[t.length-1].g)&&s.push(t[0].i)}),s}(0,e,n);else for(i=0,r=new Array(o=t.arcs.length);i<o;++i)r[i]=i;return{type:"MultiLineString",arcs:Object(a.a)(t,r)}}e.b=r;var i=n(131),a=n(256);e.a=function(t){return Object(i.b)(t,r.apply(this,arguments))}},function(t,e,n){"use strict";function r(t,e){function n(t){t.forEach(function(e){e.forEach(function(e){(o[e=e<0?~e:e]||(o[e]=[])).push(t)})}),s.push(t)}function r(e){return function(t){for(var e,n=-1,r=t.length,i=t[r-1],a=0;++n<r;)a+=(e=i)[0]*(i=t[n])[1]-e[1]*i[0];return Math.abs(a)}(Object(i.b)(t,{type:"Polygon",arcs:[e]}).coordinates[0])}var o={},s=[],u=[];return e.forEach(function t(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"Polygon":n(e.arcs);break;case"MultiPolygon":e.arcs.forEach(n)}}),s.forEach(function(t){if(!t._){var e=[],n=[t];for(t._=1,u.push(e);t=n.pop();)e.push(t),t.forEach(function(t){t.forEach(function(t){o[t<0?~t:t].forEach(function(t){t._||(t._=1,n.push(t))})})})}}),s.forEach(function(t){delete t._}),{type:"MultiPolygon",arcs:u.map(function(e){var n,i=[];if(e.forEach(function(t){t.forEach(function(t){t.forEach(function(t){o[t<0?~t:t].length<2&&i.push(t)})})}),(n=(i=Object(a.a)(t,i)).length)>1)for(var s,u,c=1,l=r(i[0]);c<n;++c)(s=r(i[c]))>l&&(u=i[0],i[0]=i[c],i[c]=u,l=s);return i})}}e.b=r;var i=n(131),a=n(256);e.a=function(t){return Object(i.b)(t,r.apply(this,arguments))}},function(t,e,n){"use strict";var r=n(635);e.a=function(t){function e(t,e){t.forEach(function(t){t<0&&(t=~t);var n=i[t];n?n.push(e):i[t]=[e]})}function n(t,n){t.forEach(function(t){e(t,n)})}var i={},a=t.map(function(){return[]}),o={LineString:e,MultiLineString:n,Polygon:n,MultiPolygon:function(t,e){t.forEach(function(t){n(t,e)})}};for(var s in t.forEach(function t(e,n){"GeometryCollection"===e.type?e.geometries.forEach(function(e){t(e,n)}):e.type in o&&o[e.type](e.arcs,n)}),i)for(var u=i[s],c=u.length,l=0;l<c;++l)for(var f=l+1;f<c;++f){var h,p=u[l],d=u[f];(h=a[p])[s=Object(r.a)(h,d)]!==d&&h.splice(s,0,d),(h=a[d])[s=Object(r.a)(h,p)]!==p&&h.splice(s,0,p)}return a}},function(t,e,n){"use strict";e.a=function(t,e){for(var n=0,r=t.length;n<r;){var i=n+r>>>1;t[i]<e?n=i+1:r=i}return n}},function(t,e,n){"use strict";var r=n(254),i=n(257);e.a=function(t,e){function n(t){return p(t)}function a(t){var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(a)};break;case"Point":e={type:"Point",coordinates:n(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(n)};break;default:return t}return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}if(t.transform)throw new Error("already quantized");if(e&&e.scale)f=t.bbox;else{if(!((o=Math.floor(e))>=2))throw new Error("n must be \u22652");var o,s=(f=t.bbox||Object(r.a)(t))[0],u=f[1],c=f[2],l=f[3];e={scale:[c-s?(c-s)/(o-1):1,l-u?(l-u)/(o-1):1],translate:[s,u]}}var f,h,p=Object(i.a)(e),d=t.objects,g={};for(h in d)g[h]=a(d[h]);return{type:"Topology",bbox:f,transform:e,objects:g,arcs:t.arcs.map(function(t){var e,n=0,r=1,i=t.length,a=new Array(i);for(a[0]=p(t[0],0);++n<i;)((e=p(t[n],n))[0]||e[1])&&(a[r++]=e);return 1===r&&(a[r++]=[0,0]),a.length=r,a})}}},function(t,e,n){(0,n(2).registerTransform)("default",function(t){return t})},function(t,e,n){(0,n(2).registerTransform)("filter",function(t){t.rows=t.rows.filter((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).callback||function(t){return!!t})})},function(t,e,n){var r=n(4),i=n(640),a=n(52),o=n(2).registerTransform,s=n(7).getFields,u={fields:[],key:"key",retains:[],value:"value"};o("fold",function(t,e){var n=t.getColumnNames();e=r({},u,e);var o=s(e);0===o.length&&(console.warn("warning: option fields is not specified, will fold all columns."),o=n);var c=e.key,l=e.value,f=e.retains;0===f.length&&(f=i(n,o));var h=[];t.rows.forEach(function(t){o.forEach(function(e){var n=a(t,f);n[c]=e,n[l]=t[e],h.push(n)})}),t.rows=h})},function(t,e,n){var r=n(641),i=n(77),a=n(86),o=n(645),s=a(function(t,e){return o(t)?r(t,i(e,1,o,!0)):[]});t.exports=s},function(t,e,n){var r=n(110),i=n(258),a=n(259),o=n(50),s=n(90),u=n(111);t.exports=function(t,e,n,c){var l=-1,f=i,h=!0,p=t.length,d=[],g=e.length;if(!p)return d;n&&(e=o(e,s(n))),c?(f=a,h=!1):e.length>=200&&(f=u,h=!1,e=new r(e));t:for(;++l<p;){var v=t[l],y=null==n?v:n(v);if(v=c||0!==v?v:0,h&&y==y){for(var m=g;m--;)if(e[m]===y)continue t;d.push(v)}else f(e,y,c)||d.push(v)}return d}},function(t,e,n){var r=n(211),i=n(643),a=n(644);t.exports=function(t,e,n){return e==e?a(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(24),i=n(20);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){(0,n(2).registerTransform)("map",function(t){t.rows=t.rows.map((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).callback||function(t){return t})})},function(t,e,n){function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=i({},u,e),t.rows=a(o(t.rows,e.groupBy,e.orderBy))}var i=n(4),a=n(119),o=n(19),s=n(2).registerTransform,u={groupBy:[],orderBy:[]};s("partition",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=i({},u,e),t.rows=o(t.rows,e.groupBy,e.orderBy)}),s("group",r),s("groups",r)},function(t,e,n){var r=n(4),i=n(12),a=n(3),o=n(9),s=n(27).sum,u=n(19),c=n(2).registerTransform,l=n(7).getField,f={groupBy:[],as:"_percent"};c("percent",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=r({},f,e);var n=l(e),c=e.dimension,h=e.groupBy,p=e.as;if(!o(c))throw new TypeError("Invalid dimension: must be a string!");if(a(p)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),p=p[0]),!o(p))throw new TypeError("Invalid as: must be a string!");var d=[],g=u(t.rows,h);i(g,function(t){var e=s(t.map(function(t){return t[n]}));0===e&&console.warn("Invalid data: total sum of field "+n+" is 0!");var r=u(t,[c]);i(r,function(t){var r=s(t.map(function(t){return t[n]})),i=t[0],a=i[c];i[n]=r,i[c]=a,i[p]=0===e?0:r/e,d.push(i)})}),t.rows=d})},function(t,e,n){var r=n(52),i=n(2).registerTransform,a=n(7).getFields;i("pick",function(t){var e=a(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t.getColumnNames());t.rows=t.rows.map(function(t){return r(t,e)})})},function(t,e,n){var r=n(4),i=n(12),a=n(3),o=n(9),s=n(19),u=n(2).registerTransform,c=n(7).getField,l={groupBy:[],as:"_proportion"};u("proportion",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=r({},l,e);var n=c(e),u=e.dimension,f=e.groupBy,h=e.as;if(!o(u))throw new TypeError("Invalid dimension: must be a string!");if(a(h)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),h=h[0]),!o(h))throw new TypeError("Invalid as: must be a string!");var p=[],d=s(t.rows,f);i(d,function(t){var e=t.length,r=s(t,[u]);i(r,function(t){var r=t.length,i=t[0],a=i[u];i[n]=r,i[u]=a,i[h]=r/e,p.push(i)})}),t.rows=p})},function(t,e,n){function r(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).map||{},n={};a(e)&&i(e,function(t,e){o(t)&&o(e)&&(n[e]=t)}),t.rows.forEach(function(t){i(e,function(e,n){var r=t[n];delete t[n],t[e]=r})})}var i=n(12),a=n(652),o=n(9),s=n(2).registerTransform;s("rename",r),s("rename-fields",r)},function(t,e,n){var r=n(23),i=n(108),a=n(20),o=Function.prototype,s=Object.prototype,u=o.toString,c=s.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!a(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},function(t,e,n){var r=n(260);(0,n(2).registerTransform)("reverse",function(t){t.rows=r(t.rows)})},function(t,e,n){(0,n(2).registerTransform)("sort",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getColumnName(0);t.rows.sort(e.callback||function(t,e){return t[n]-e[n]})})},function(t,e,n){function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=u(e,[t.getColumnName(0)]);if(!i(n))throw new TypeError("Invalid fields: must be an array with strings!");t.rows=o(t.rows,n);var r=e.order;if(r&&-1===c.indexOf(r))throw new TypeError("Invalid order: "+r+" must be one of "+c.join(", "));"DESC"===r&&(t.rows=a(t.rows))}var i=n(3),a=n(260),o=n(656),s=n(2).registerTransform,u=n(7).getFields,c=["ASC","DESC"];s("sort-by",r),s("sortBy",r)},function(t,e,n){var r=n(77),i=n(657),a=n(86),o=n(150),s=a(function(t,e){if(null==t)return[];var n=e.length;return n>1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=s},function(t,e,n){var r=n(50),i=n(48),a=n(261),o=n(658),s=n(90),u=n(659),c=n(42);t.exports=function(t,e,n){var l=-1;e=r(e.length?e:[c],s(i));var f=a(t,function(t,n,i){return{criteria:r(e,function(e){return e(t)}),index:++l,value:t}});return o(f,function(t,e){return u(t,e,n)})}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(660);t.exports=function(t,e,n){for(var i=-1,a=t.criteria,o=e.criteria,s=a.length,u=n.length;++i<s;){var c=r(a[i],o[i]);if(c)return i>=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(49);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,a=t==t,o=r(t),s=void 0!==e,u=null===e,c=e==e,l=r(e);if(!u&&!l&&!o&&t>e||o&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!a)return 1;if(!i&&!o&&!l&&t<e||l&&n&&a&&!i&&!o||u&&n&&a||!s&&a||!c)return-1}return 0}},function(t,e,n){var r=n(2).registerTransform,i=n(7).getFields;r("subset",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.startRowIndex||0,r=e.endRowIndex||t.rows.length-1,a=i(e,t.getColumnNames());t.rows=t.getSubset(n,r,a)})},function(t,e,n){function r(t,e){var n=t.map(function(t){return t});return e.forEach(function(t){var e=n.indexOf(t);e>-1&&n.splice(e,1)}),n}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=a({},c,e);var n=t.rows,i=e.groupBy,u=e.orderBy,l=s(n,i,u),f=0,h=[];o(l,function(t){t.length>f&&(f=t.length,h=t)});var p=[],d={};if(h.forEach(function(t){var e=u.map(function(e){return t[e]}).join("-");p.push(e),d[e]=t}),"order"===e.fillBy){var g=h[0],v=[],y={};n.forEach(function(t){var e=u.map(function(e){return t[e]}).join("-");-1===v.indexOf(e)&&(v.push(e),y[e]=t)}),r(v,p).forEach(function(t){var e={};i.forEach(function(t){e[t]=g[t]}),u.forEach(function(n){e[n]=y[t][n]}),n.push(e),h.push(e),p.push(t),d[t]=e}),f=h.length}o(l,function(t){if(t!==h&&t.length<f){var e=t[0],a=[];t.forEach(function(t){a.push(u.map(function(e){return t[e]}).join("-"))}),r(p,a).some(function(r,a){if(a>=f-t.length)return!0;var o=d[r],s={};return i.forEach(function(t){s[t]=e[t]}),u.forEach(function(t){s[t]=o[t]}),n.push(s),!1})}})}var a=n(4),o=n(12),s=n(19),u=n(2).registerTransform,c={fillBy:"group",groupBy:[],orderBy:[]};u("fill-rows",i),u("fillRows",i)},function(t,e,n){function r(t){return t.filter(function(t){return!u(t)})}var i=n(4),a=n(12),o=n(664),s=n(13),u=n(666),c=n(9),l=n(27),f=n(19),h=n(2).registerTransform,p=n(7).getField,d={groupBy:[]},g=["mean","median","max","min"],v={};g.forEach(function(t){v[t]=function(e,n){return l[t](n)}}),v.value=function(t,e,n){return n},h("impute",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.rows;e=i({},d,e);var l=p(e),h=e.method,y=e.groupBy;if(!h)throw new TypeError("Invalid method!");if("value"===h&&!o(e,"value"))throw new TypeError("Invalid value: it is nil.");var m=r(t.getColumn(l)),x=f(n,y);a(x,function(t){var n=r(t.map(function(t){return t[l]}));0===n.length&&(n=m),t.forEach(function(r){if(u(r[l]))if(s(h))r[l]=h(r,n,e.value,t);else{if(!c(h))throw new TypeError("Invalid method: must be a function or one of "+g.join(", "));r[l]=v[h](r,n,e.value)}})})})},function(t,e,n){var r=n(665),i=n(210);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){function r(t,e){e=i({},v,e);var n=t.rows,r=e.groupBy,a=g(e);if(!s(a))throw new TypeError("Invalid fields: it must be an array with one or more strings!");var c=e.as||[];u(c)&&(c=[c]);var l=e.operations;u(l)&&(l=[l]);var f=[y];if(s(l)&&l.length||(console.warn('operations is not defined, will use [ "count" ] directly.'),c=l=f),1!==l.length||l[0]!==y){if(l.length!==a.length)throw new TypeError("Invalid operations: it's length must be the same as fields!");if(c.length!==a.length)throw new TypeError("Invalid as: it's length must be the same as fields!")}var p=h(n,r),d=[];o(p,function(t){var e=t[0];l.forEach(function(n,r){e[c[r]]=m[n](t,a[r])}),d.push(e)}),t.rows=d}var i=n(4),a=n(229),o=n(12),s=n(3),u=n(9),c=n(11),l=n(668),f=n(27),h=n(19),p=n(2).registerTransform,d=n(125).STATISTICS_METHODS,g=n(7).getFields,v={as:[],fields:[],groupBy:[],operations:[]},y="count",m={count:function(t){return t.length},distinct:function(t,e){return l(t.map(function(t){return t[e]})).length}};d.forEach(function(t){m[t]=function(e,n){var r=e.map(function(t){return t[n]});return s(r)&&s(r[0])&&(r=a(r)),f[t](r)}}),m.average=m.mean,p("aggregate",r),p("summary",r),t.exports={VALID_AGGREGATES:c(m)}},function(t,e,n){var r=n(669);t.exports=function(t){return t&&t.length?r(t):[]}},function(t,e,n){var r=n(110),i=n(258),a=n(259),o=n(111),s=n(670),u=n(74);t.exports=function(t,e,n){var c=-1,l=i,f=t.length,h=!0,p=[],d=p;if(n)h=!1,l=a;else if(f>=200){var g=e?null:s(t);if(g)return u(g);h=!1,l=o,d=new r}else d=e?[]:p;t:for(;++c<f;){var v=t[c],y=e?e(v):v;if(v=n||0!==v?v:0,h&&y==y){for(var m=d.length;m--;)if(d[m]===y)continue t;e&&d.push(y),p.push(v)}else l(d,y,n)||(d!==p&&d.push(y),p.push(v))}return p}},function(t,e,n){var r=n(198),i=n(671),a=n(74),o=r&&1/a(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=o},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(4),i=n(3),a=n(132),o=n(673),s=n(133),u=n(2).registerTransform,c=n(7).getFields,l=n(134).silverman,f={as:["x","y"],method:"linear",order:2,precision:2},h=["linear","exponential","logarithmic","power","polynomial"];u("regression",function(t,e){e=r({},f,e);var n=c(e);if(!i(n)||2!==n.length)throw new TypeError("invalid fields: must be an array of 2 strings.");var u=n[0],p=n[1],d=e.method;if(-1===h.indexOf(d))throw new TypeError("invalid method: "+d+". Must be one of "+h.join(", "));var g=t.rows.map(function(t){return[t[u],t[p]]}),v=o[d](g,e),y=e.extent;i(y)&&2===y.length||(y=t.range(u));var m=e.bandwidth;(!a(m)||m<=0)&&(m=l(t.getColumn(u)));var x=s(y,m),b=[],_=e.as,w=_[0],O=_[1];x.forEach(function(t){var e={},n=v.predict(t),r=n[1];e[w]=n[0],e[O]=r,isFinite(r)&&b.push(e)}),t.rows=b}),t.exports={REGRESSION_METHODS:h}},function(t,e,n){var r,i;void 0!==(i="function"==typeof(r=function(t){"use strict";function e(t,e){var n=[],r=[];t.forEach(function(t,i){null!==t[1]&&(r.push(t),n.push(e[i]))});var i=r.reduce(function(t,e){return t+e[1]},0)/r.length,a=r.reduce(function(t,e){var n=e[1]-i;return t+n*n},0);return 1-r.reduce(function(t,e,r){var i=e[1]-n[r][1];return t+i*i},0)/a}function n(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i={order:2,precision:2,period:null},a={linear:function(t,r){for(var i=[0,0,0,0,0],a=0,o=0;o<t.length;o++)null!==t[o][1]&&(a++,i[0]+=t[o][0],i[1]+=t[o][1],i[2]+=t[o][0]*t[o][0],i[3]+=t[o][0]*t[o][1],i[4]+=t[o][1]*t[o][1]);var s=a*i[2]-i[0]*i[0],u=0===s?0:n((a*i[3]-i[0]*i[1])/s,r.precision),c=n(i[1]/a-u*i[0]/a,r.precision),l=function(t){return[n(t,r.precision),n(u*t+c,r.precision)]},f=t.map(function(t){return l(t[0])});return{points:f,predict:l,equation:[u,c],r2:n(e(t,f),r.precision),string:0===c?"y = "+u+"x":"y = "+u+"x + "+c}},exponential:function(t,r){for(var i=[0,0,0,0,0,0],a=0;a<t.length;a++)null!==t[a][1]&&(i[0]+=t[a][0],i[1]+=t[a][1],i[2]+=t[a][0]*t[a][0]*t[a][1],i[3]+=t[a][1]*Math.log(t[a][1]),i[4]+=t[a][0]*t[a][1]*Math.log(t[a][1]),i[5]+=t[a][0]*t[a][1]);var o=i[1]*i[2]-i[5]*i[5],s=Math.exp((i[2]*i[3]-i[5]*i[4])/o),u=(i[1]*i[4]-i[5]*i[3])/o,c=n(s,r.precision),l=n(u,r.precision),f=function(t){return[n(t,r.precision),n(c*Math.exp(l*t),r.precision)]},h=t.map(function(t){return f(t[0])});return{points:h,predict:f,equation:[c,l],string:"y = "+c+"e^("+l+"x)",r2:n(e(t,h),r.precision)}},logarithmic:function(t,r){for(var i=[0,0,0,0],a=t.length,o=0;o<a;o++)null!==t[o][1]&&(i[0]+=Math.log(t[o][0]),i[1]+=t[o][1]*Math.log(t[o][0]),i[2]+=t[o][1],i[3]+=Math.pow(Math.log(t[o][0]),2));var s=n((a*i[1]-i[2]*i[0])/(a*i[3]-i[0]*i[0]),r.precision),u=n((i[2]-s*i[0])/a,r.precision),c=function(t){return[n(t,r.precision),n(n(u+s*Math.log(t),r.precision),r.precision)]},l=t.map(function(t){return c(t[0])});return{points:l,predict:c,equation:[u,s],string:"y = "+u+" + "+s+" ln(x)",r2:n(e(t,l),r.precision)}},power:function(t,r){for(var i=[0,0,0,0,0],a=t.length,o=0;o<a;o++)null!==t[o][1]&&(i[0]+=Math.log(t[o][0]),i[1]+=Math.log(t[o][1])*Math.log(t[o][0]),i[2]+=Math.log(t[o][1]),i[3]+=Math.pow(Math.log(t[o][0]),2));var s=(a*i[1]-i[0]*i[2])/(a*i[3]-Math.pow(i[0],2)),u=n(Math.exp((i[2]-s*i[0])/a),r.precision),c=n(s,r.precision),l=function(t){return[n(t,r.precision),n(n(u*Math.pow(t,c),r.precision),r.precision)]},f=t.map(function(t){return l(t[0])});return{points:f,predict:l,equation:[u,c],string:"y = "+u+"x^"+c,r2:n(e(t,f),r.precision)}},polynomial:function(t,r){for(var i=[],a=[],o=0,s=0,u=t.length,c=r.order+1,l=0;l<c;l++){for(var f=0;f<u;f++)null!==t[f][1]&&(o+=Math.pow(t[f][0],l)*t[f][1]);i.push(o),o=0;for(var h=[],p=0;p<c;p++){for(var d=0;d<u;d++)null!==t[d][1]&&(s+=Math.pow(t[d][0],l+p));h.push(s),s=0}a.push(h)}a.push(i);for(var g=function(t,e){for(var n=t,r=t.length-1,i=[e],a=0;a<r;a++){for(var o=a,s=a+1;s<r;s++)Math.abs(n[a][s])>Math.abs(n[a][o])&&(o=s);for(var u=a;u<r+1;u++){var c=n[u][a];n[u][a]=n[u][o],n[u][o]=c}for(var l=a+1;l<r;l++)for(var f=r;f>=a;f--)n[f][l]-=n[f][a]*n[a][l]/n[a][a]}for(var h=r-1;h>=0;h--){for(var p=0,d=h+1;d<r;d++)p+=n[d][h]*i[d];i[h]=(n[r][h]-p)/n[h][h]}return i}(a,c).map(function(t){return n(t,r.precision)}),v=function(t){return[n(t,r.precision),n(g.reduce(function(e,n,r){return e+n*Math.pow(t,r)},0),r.precision)]},y=t.map(function(t){return v(t[0])}),m="y = ",x=g.length-1;x>=0;x--)m+=x>1?g[x]+"x^"+x+" + ":1===x?g[x]+"x + ":g[x];return{string:m,points:y,predict:v,equation:[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(g)).reverse(),r2:n(e(t,y),r.precision)}}};t.exports=Object.keys(a).reduce(function(t,e){return r({_round:n},t,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,function(t,n){return a[e](t,r({},i,n))}))},{})})?r.apply(e,[t]):r)&&(t.exports=i)},function(t,e,n){function r(t,e,n,r){return Math.sqrt((t-n)*(t-n)+(e-r)*(e-r))}function i(t,e,n){e/=2;var r=Math.floor((t-n)/e);return[e*(r+(1===Math.abs(r%2)?1:0))+n,e*(r+(1===Math.abs(r%2)?0:1))+n]}function a(t,e){e=o({},f,e);var n=l(e);if(!u(n)||2!==n.length)throw new TypeError("Invalid fields: it must be an array with 2 strings!");var a=n[0],c=n[1],p=t.range(a),g=t.range(c),v=p[1]-p[0],y=g[1]-g[0],m=e.binWidth||[];if(2!==m.length){var x=e.bins,b=x[0],_=x[1];if(b<=0||_<=0)throw new TypeError("Invalid bins: must be an array with two positive numbers (e.g. [ 30, 30 ])!");m=[v/b,y/_]}var w=e.offset,O=w[0],j=w[1],S=3*m[0]/(h*m[1]),M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[1,1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],a={},o=e[0],s=e[1],u=n[0],c=n[1];return t.forEach(function(t){var e=t[0],n=t[1],l=i(e,o,u),f=l[0],h=l[1],p=i(n,s,c),d=p[0],g=p[1],v=void 0,y=void 0,m=void 0;r(e,n,f,d)<r(e,n,h,g)?(v="x"+f+"y"+d,y=f,m=d):(v="x"+h+"y"+g,y=h,m=g),a[v]=a[v]||{x:y,y:m,count:0},a[v].count++}),a}(t.rows.map(function(t){return[t[a],S*t[c]]}),[m[0],S*m[1]],[O,S*j]),E=e.as,P=E[0],C=E[1],k=E[2];if(!P||!C||!k)throw new TypeError('Invalid as: it must be an array with three elements (e.g. [ "x", "y", "count" ])!');var A=m[0]/h,T=d.map(function(t){return[Math.sin(t)*A,-Math.cos(t)*A]}),I=[],L=0;e.sizeByCount&&s(M,function(t){t.count>L&&(L=t.count)}),s(M,function(t){var n=t.x,r=t.y,i={};i[k]=t.count,e.sizeByCount?(i[P]=T.map(function(e){return n+t.count/L*e[0]}),i[C]=T.map(function(e){return(r+t.count/L*e[1])/S})):(i[P]=T.map(function(t){return n+t[0]}),i[C]=T.map(function(t){return(r+t[1])/S})),I.push(i)}),t.rows=I}var o=n(4),s=n(12),u=n(3),c=n(2).registerTransform,l=n(7).getFields,f={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1},h=Math.sqrt(3),p=Math.PI/3,d=[0,p,2*p,3*p,4*p,5*p];c("bin.hexagon",a),c("bin.hex",a),c("hexbin",a)},function(t,e,n){function r(t,e){e=i({},l,e);var n=c(e);if(0!==t.rows.length){var r=t.range(n),u=r[1]-r[0],f=e.binWidth;if(!f){var h=e.bins;if(h<=0)throw new TypeError("Invalid bins: it must be a positive number!");f=u/h}var p=e.offset%f,d=[],g=e.groupBy,v=s(t.rows,g);a(v,function(t){var r={};t.map(function(t){return t[n]}).forEach(function(t){var e=function(t,e,n){var r=Math.floor((t-n)/e);return[r*e+n,(r+1)*e+n]}(t,f,p),n=e[0],i=e[1],a=n+"-"+i;r[a]=r[a]||{x0:n,x1:i,count:0},r[a].count++});var s=e.as,u=s[0],c=s[1];if(!u||!c)throw new TypeError('Invalid as: it must be an array with 2 elements (e.g. [ "x", "count" ])!');var l=o(t[0],g);a(r,function(t){var e=i({},l);e[u]=[t.x0,t.x1],e[c]=t.count,d.push(e)})}),t.rows=d}}var i=n(4),a=n(12),o=n(52),s=n(19),u=n(2).registerTransform,c=n(7).getField,l={as:["x","count"],bins:30,offset:0,groupBy:[]};u("bin.histogram",r),u("bin.dot",r)},function(t,e,n){var r=n(4),i=n(12),a=n(3),o=n(9),s=n(27).quantile,u=n(19),c=n(246),l=n(2).registerTransform,f=n(7).getField,h={as:"_bin",groupBy:[],fraction:4};l("bin.quantile",function(t,e){e=r({},h,e);var n=f(e),l=e.as;if(!o(l))throw new TypeError('Invalid as: it must be a string (e.g. "_bin")!');var p=e.p,d=e.fraction;a(p)&&0!==p.length||(p=c(d));var g=u(t.rows,e.groupBy),v=[];i(g,function(t){var e=t[0],r=t.map(function(t){return t[n]}),i=p.map(function(t){return s(r,t)});e[l]=i,v.push(e)}),t.rows=v})},function(t,e,n){function r(t,e,n){var r=Math.floor((t-n)/e);return[r*e+n,(r+1)*e+n]}function i(t,e){e=a({},c,e);var n=u(e),i=n[0],s=n[1];if(!i||!s)throw new TypeError("Invalid fields: must be an array with 2 strings!");var l=t.range(i),f=t.range(s),h=l[1]-l[0],p=f[1]-f[0],d=e.binWidth||[];if(2!==d.length){var g=e.bins,v=g[0],y=g[1];if(v<=0||y<=0)throw new TypeError("Invalid bins: must be an array with 2 positive numbers (e.g. [ 30, 30 ])!");d=[h/v,p/y]}var m=t.rows.map(function(t){return[t[i],t[s]]}),x={},b=e.offset,_=b[0],w=b[1];m.forEach(function(t){var e=r(t[0],d[0],_),n=e[0],i=e[1],a=r(t[1],d[1],w),o=a[0],s=a[1],u=n+"-"+i+"-"+o+"-"+s;x[u]=x[u]||{x0:n,x1:i,y0:o,y1:s,count:0},x[u].count++});var O=[],j=e.as,S=j[0],M=j[1],E=j[2];if(!S||!M||!E)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "count" ])!');if(e.sizeByCount){var P=0;o(x,function(t){t.count>P&&(P=t.count)}),o(x,function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1,a=t.count,o=a/P,s=(e+n)/2,u=(r+i)/2,c=(n-e)*o/2,l=(i-r)*o/2,f=s-c,h=s+c,p=u-l,d=u+l,g={};g[S]=[f,h,h,f],g[M]=[p,p,d,d],g[E]=a,O.push(g)})}else o(x,function(t){var e={};e[S]=[t.x0,t.x1,t.x1,t.x0],e[M]=[t.y0,t.y0,t.y1,t.y1],e[E]=t.count,O.push(e)});t.rows=O}var a=n(4),o=n(12),s=n(2).registerTransform,u=n(7).getFields,c={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1};s("bin.rectangle",i),s("bin.rect",i)},function(t,e,n){var r=n(4),i=n(3),a=n(9),o=n(2).registerTransform,s=n(7).getField,u={as:["_centroid_x","_centroid_y"]};o("geo.centroid",function(t,e){e=r({},u,e);var n=s(e),o=e.geoView||e.geoDataView;if(a(o)&&(o=t.dataSet.getView(o)),!o||"geo"!==o.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var c=e.as;if(!i(c)||2!==c.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "cX", "cY" ])!');var l=c[0],f=c[1];t.rows.forEach(function(t){var e=o.geoFeatureByName(t[n]);e&&(o._projectedAs?(t[l]=e[o._projectedAs[2]],t[f]=e[o._projectedAs[3]]):(t[l]=e.centroidX,t[f]=e.centroidY))})})},function(t,e,n){var r=n(4),i=n(0),a=n(249),o=n(3),s=n(2).registerTransform,u=n(214),c=i.geoPath,l={as:["_x","_y","_centroid_x","_centroid_y"]};s("geo.projection",function(t,e){if("geo"!==t.dataType&&"geo-graticule"!==t.dataType)throw new TypeError("Invalid dataView: this transform is for Geo data only!");var n=(e=r({},l,e)).projection;if(!n)throw new TypeError("Invalid projection!");n=u(n);var i=c(n),s=e.as;if(!o(s)||4!==s.length)throw new TypeError('Invalid as: it must be an array with 4 strings (e.g. [ "x", "y", "cX", "cY" ])!');t._projectedAs=s;var f=s[0],h=s[1],p=s[2],d=s[3];t.rows.forEach(function(t){t[f]=[],t[h]=[];var e=i(t);if(e){a(e)._path.forEach(function(e){t[f].push(e[1]),t[h].push(e[2])});var n=i.centroid(t);t[p]=n[0],t[d]=n[1]}}),t.rows=t.rows.filter(function(t){return 0!==t[f].length})})},function(t,e,n){var r=n(4),i=n(3),a=n(9),o=n(2).registerTransform,s=n(7).getField,u={as:["_x","_y"]};o("geo.region",function(t,e){e=r({},u,e);var n=s(e),o=e.geoView||e.geoDataView;if(a(o)&&(o=t.dataSet.getView(o)),!o||"geo"!==o.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var c=e.as;if(!i(c)||2!==c.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var l=c[0],f=c[1];t.rows.forEach(function(t){var e=o.geoFeatureByName(t[n]);e&&(o._projectedAs?(t[l]=e[o._projectedAs[0]],t[f]=e[o._projectedAs[1]]):(t[l]=e.longitude,t[f]=e.latitude))})})},function(t,e,n){function r(t,e){e=i({},l,e);var n={},r=t.nodes,c=t.edges;o(r)&&0!==r.length||(r=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.forEach(function(t){var r=e.edgeSource(t),i=e.edgeTarget(t);n[r]||(n[r]={id:r}),n[i]||(n[i]={id:i})}),s(n)}(c,e,n)),r.forEach(function(t){var r=e.id(t);n[r]=t}),function(t,e,n){a(t,function(t,r){t.inEdges=e.filter(function(t){return""+n.target(t)==""+r}),t.outEdges=e.filter(function(t){return""+n.source(t)==""+r}),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach(function(e){t.value+=n.targetWeight(e)}),t.outEdges.forEach(function(e){t.value+=n.sourceWeight(e)})})}(n,c,e),function(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}}[e.sortBy];!n&&u(e.sortBy)&&(n=e.sortBy),n&&t.sort(n)}(r,e),function(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.marginRatio;if(r<0||r>=1)throw new TypeError("Invalid marginRatio: it must be in range [0, 1)!");var i=r/(2*n),a=e.thickness;if(a<=0||a>=1)throw new TypeError("Invalid thickness: it must be in range (0, 1)!");var o=0;t.forEach(function(t){o+=t.value}),t.forEach(function(t){t.weight=t.value/o,t.width=t.weight*(1-r),t.height=a}),t.forEach(function(n,r){for(var o=0,s=r-1;s>=0;s--)o+=t[s].width+2*i;var u=n.minX=i+o,c=n.maxX=n.minX+n.width,l=n.minY=e.y-a/2,f=n.maxY=l+a;n.x=[u,c,c,u],n.y=[l,l,f,f]})}else{var s=1/n;t.forEach(function(t,n){t.x=(n+.5)*s,t.y=e.y})}}(r,e),function(t,e,n){if(n.weight){var r={};a(t,function(t,e){r[e]=t.value}),e.forEach(function(e){var i=n.source(e),a=n.target(e),o=t[i],s=t[a];if(o&&s){var u=r[i],c=n.sourceWeight(e),l=o.minX+(o.value-u)/o.value*o.width,f=l+c/o.value*o.width;r[i]-=c;var h=r[a],p=n.targetWeight(e),d=s.minX+(s.value-h)/s.value*s.width,g=d+p/s.value*s.width;r[a]-=p;var v=n.y;e.x=[l,f,d,g],e.y=[v,v,v,v]}})}else e.forEach(function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y])})}(n,c,e),t.nodes=r,t.edges=c}var i=n(4),a=n(12),o=n(3),s=n(119),u=n(13),c=n(2).registerTransform,l={y:0,thickness:.05,weight:!1,marginRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};c("diagram.arc",r),c("arc",r)},function(t,e,n){function r(t,e){e=i({},s,e);var n=new a.graphlib.Graph;n.setGraph({}),n.setDefaultEdgeLabel(function(){return{}}),t.nodes.forEach(function(t){var r=e.nodeId?e.nodeId(t):t.id;t.height||t.width||(t.height=t.width=e.edgesep),n.setNode(r,t)}),t.edges.forEach(function(t){n.setEdge(e.source(t),e.target(t))}),a.layout(n);var r=[],o=[];n.nodes().forEach(function(t){var e=n.node(t),i=e.x,a=e.y,o=e.height,s=e.width;e.x=[i-s/2,i+s/2,i+s/2,i-s/2],e.y=[a+o/2,a+o/2,a-o/2,a-o/2],r.push(e)}),n.edges().forEach(function(t){var e=n.edge(t).points,r={};r.x=e.map(function(t){return t.x}),r.y=e.map(function(t){return t.y}),o.push(r)}),t.nodes=r,t.edges=o}var i=n(4),a=n(683),o=n(2).registerTransform,s={rankdir:"TB",align:"TB",nodesep:50,edgesep:10,ranksep:50,source:function(t){return t.source},target:function(t){return t.target}};o("diagram.dagre",r),o("dagre",r)},function(t,e,n){t.exports={graphlib:n(17),layout:n(697),debug:n(719),util:{time:n(10).time,notime:n(10).notime},version:n(720)}},function(t,e,n){var r=n(685);t.exports={Graph:r.Graph,json:n(687),alg:n(688),version:r.version}},function(t,e,n){t.exports={Graph:n(135),version:n(686)}},function(t,e){t.exports="2.1.5"},function(t,e,n){var r=n(14),i=n(135);t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:function(t){return r.map(t.nodes(),function(e){var n=t.node(e),i=t.parent(e),a={v:e};return r.isUndefined(n)||(a.value=n),r.isUndefined(i)||(a.parent=i),a})}(t),edges:function(t){return r.map(t.edges(),function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i})}(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},function(t,e,n){t.exports={components:n(689),dijkstra:n(263),dijkstraAll:n(690),findCycles:n(691),floydWarshall:n(692),isAcyclic:n(693),postorder:n(694),preorder:n(695),prim:n(696),tarjan:n(265),topsort:n(266)}},function(t,e,n){var r=n(14);t.exports=function(t){function e(a){r.has(i,a)||(i[a]=!0,n.push(a),r.each(t.successors(a),e),r.each(t.predecessors(a),e))}var n,i={},a=[];return r.each(t.nodes(),function(t){n=[],e(t),n.length&&a.push(n)}),a}},function(t,e,n){var r=n(263),i=n(14);t.exports=function(t,e,n){return i.transform(t.nodes(),function(i,a){i[a]=r(t,a,e,n)},{})}},function(t,e,n){var r=n(14),i=n(265);t.exports=function(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},function(t,e,n){var r=n(14);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,a=e(n);r[t][i]={distance:a,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var a=r[n];i.forEach(function(n){var r=e[n],i=a[n],o=a[t].distance+r.distance;o<i.distance&&(i.distance=o,i.predecessor=r.predecessor)})})}),r}(t,e||i,n||function(e){return t.outEdges(e)})};var i=r.constant(1)},function(t,e,n){var r=n(266);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},function(t,e,n){var r=n(267);t.exports=function(t,e){return r(t,e,"post")}},function(t,e,n){var r=n(267);t.exports=function(t,e){return r(t,e,"pre")}},function(t,e,n){var r=n(14),i=n(135),a=n(264);t.exports=function(t,e){function n(t){var n=t.v===o?t.w:t.v,r=c.priority(n);if(void 0!==r){var i=e(t);i<r&&(u[n]=o,c.decrease(n,i))}}var o,s=new i,u={},c=new a;if(0===t.nodeCount())return s;r.each(t.nodes(),function(t){c.add(t,Number.POSITIVE_INFINITY),s.setNode(t)}),c.decrease(t.nodes()[0],0);for(var l=!1;c.size()>0;){if(o=c.removeMin(),r.has(u,o))s.setEdge(o,u[o]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(o).forEach(n)}return s}},function(t,e,n){"use strict";function r(t,e){return a.mapValues(a.pick(t,e),Number)}function i(t){var e={};return a.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}var a=n(8),o=n(698),s=n(701),u=n(702),c=n(10).normalizeRanks,l=n(704),f=n(10).removeEmptyRanks,h=n(705),p=n(706),d=n(707),g=n(708),v=n(717),y=n(10),m=n(17).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?y.time:y.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return function(t){var e=new m({multigraph:!0,compound:!0}),n=i(t.graph());return e.setGraph(a.merge({},b,r(n,x),a.pick(n,_))),a.forEach(t.nodes(),function(n){var o=i(t.node(n));e.setNode(n,a.defaults(r(o,w),O)),e.setParent(n,t.parent(n))}),a.forEach(t.edges(),function(n){var o=i(t.edge(n));e.setEdge(n,a.merge({},S,r(o,j),a.pick(o,M)))}),e}(t)});n(" runLayout",function(){!function(t,e){e(" makeSpaceForEdgeLabels",function(){!function(t){var e=t.graph();e.ranksep/=2,a.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),e(" removeSelfEdges",function(){!function(t){a.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}(t)}),e(" acyclic",function(){o.run(t)}),e(" nestingGraph.run",function(){h.run(t)}),e(" rank",function(){u(y.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){!function(t){a.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};y.addDummyNode(t,"edge-proxy",i,"_ep")}})}(t)}),e(" removeEmptyRanks",function(){f(t)}),e(" nestingGraph.cleanup",function(){h.cleanup(t)}),e(" normalizeRanks",function(){c(t)}),e(" assignRankMinMax",function(){!function(t){var e=0;a.forEach(t.nodes(),function(n){var r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=a.max(e,r.maxRank))}),t.graph().maxRank=e}(t)}),e(" removeEdgeLabelProxies",function(){!function(t){a.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}(t)}),e(" normalize.run",function(){s.run(t)}),e(" parentDummyChains",function(){l(t)}),e(" addBorderSegments",function(){p(t)}),e(" order",function(){g(t)}),e(" insertSelfEdges",function(){!function(t){var e=y.buildLayerMatrix(t);a.forEach(e,function(e){var n=0;a.forEach(e,function(e,r){var i=t.node(e);i.order=r+n,a.forEach(i.selfEdges,function(e){y.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:r+ ++n,e:e.e,label:e.label},"_se")}),delete i.selfEdges})})}(t)}),e(" adjustCoordinateSystem",function(){d.adjust(t)}),e(" position",function(){v(t)}),e(" positionSelfEdges",function(){!function(t){a.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}(t)}),e(" removeBorderNodes",function(){!function(t){a.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),r=t.node(n.borderTop),i=t.node(n.borderBottom),o=t.node(a.last(n.borderLeft)),s=t.node(a.last(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(i.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2}}),a.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}(t)}),e(" normalize.undo",function(){s.undo(t)}),e(" fixupEdgeLabelCoords",function(){!function(t){a.forEach(t.edges(),function(e){var n=t.edge(e);if(a.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(t)}),e(" undoCoordinateSystem",function(){d.undo(t)}),e(" translateGraph",function(){!function(t){function e(t){var e=t.x,a=t.y,s=t.width,u=t.height;n=Math.min(n,e-s/2),r=Math.max(r,e+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}var n=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),u=s.marginx||0,c=s.marginy||0;a.forEach(t.nodes(),function(n){e(t.node(n))}),a.forEach(t.edges(),function(n){var r=t.edge(n);a.has(r,"x")&&e(r)}),n-=u,i-=c,a.forEach(t.nodes(),function(e){var r=t.node(e);r.x-=n,r.y-=i}),a.forEach(t.edges(),function(e){var r=t.edge(e);a.forEach(r.points,function(t){t.x-=n,t.y-=i}),a.has(r,"x")&&(r.x-=n),a.has(r,"y")&&(r.y-=i)}),s.width=r-n+u,s.height=o-i+c}(t)}),e(" assignNodeIntersects",function(){!function(t){a.forEach(t.edges(),function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(y.intersectRect(a,n)),i.points.push(y.intersectRect(o,r))})}(t)}),e(" reversePoints",function(){!function(t){a.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}(t)}),e(" acyclic.undo",function(){o.undo(t)})}(e,n)}),n(" updateInputGraph",function(){!function(t,e){a.forEach(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),a.forEach(t.edges(),function(n){var r=t.edge(n),i=e.edge(n);r.points=i.points,a.has(i,"x")&&(r.x=i.x,r.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)})})};var x=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],w=["width","height"],O={width:0,height:0},j=["minlen","weight","width","height","labeloffset"],S={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},M=["labelpos"]},function(t,e,n){"use strict";var r=n(8),i=n(699);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),function a(o){r.has(i,o)||(i[o]=!0,n[o]=!0,r.forEach(t.outEdges(o),function(t){r.has(n,t.w)?e.push(t):a(t.w)}),delete n[o])}),e}(t);r.forEach(e,function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))})},undo:function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})}}},function(t,e,n){function r(t,e,n,r,o){var s=o?[]:void 0;return a.forEach(t.inEdges(r.v),function(r){var a=t.edge(r),u=t.node(r.v);o&&s.push({v:r.v,w:r.w}),u.out-=a,i(e,n,u)}),a.forEach(t.outEdges(r.v),function(r){var a=t.edge(r),o=t.node(r.w);o.in-=a,i(e,n,o)}),t.removeNode(r.v),s}function i(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}var a=n(8),o=n(17).Graph,s=n(700);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new o,r=0,u=0;a.forEach(t.nodes(),function(t){n.setNode(t,{v:t,in:0,out:0})}),a.forEach(t.edges(),function(t){var i=n.edge(t.v,t.w)||0,a=e(t);n.setEdge(t.v,t.w,i+a),u=Math.max(u,n.node(t.v).out+=a),r=Math.max(r,n.node(t.w).in+=a)});var c=a.range(u+r+3).map(function(){return new s}),l=r+1;return a.forEach(n.nodes(),function(t){i(c,l,n.node(t))}),{graph:n,buckets:c,zeroIdx:l}}(t,e||u),c=function(t,e,n){for(var i,a=[],o=e[e.length-1],s=e[0];t.nodeCount();){for(;i=s.dequeue();)r(t,e,n,i);for(;i=o.dequeue();)r(t,e,n,i);if(t.nodeCount())for(var u=e.length-2;u>0;--u)if(i=e[u].dequeue()){a=a.concat(r(t,e,n,i,!0));break}}return a}(n.graph,n.buckets,n.zeroIdx);return a.flatten(a.map(c,function(e){return t.outEdges(e.v,e.w)}),!0)};var u=a.constant(1)},function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},function(t,e,n){"use strict";var r=n(8),i=n(10);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n=e.v,r=t.node(n).rank,a=e.w,o=t.node(a).rank,s=e.name,u=t.edge(e),c=u.labelRank;if(o!==r+1){var l,f,h;for(t.removeEdge(e),h=0,++r;r<o;++h,++r)u.points=[],l=i.addDummyNode(t,"edge",f={width:0,height:0,edgeLabel:u,edgeObj:e,rank:r},"_d"),r===c&&(f.width=u.width,f.height=u.height,f.dummy="edge-label",f.labelpos=u.labelpos),t.setEdge(n,l,{weight:u.weight},s),0===h&&t.graph().dummyChains.push(l),n=l;t.setEdge(n,a,{weight:u.weight},s)}}(t,e)})},undo:function(t){r.forEach(t.graph().dummyChains,function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),r=t.node(e=n)})}}},function(t,e,n){"use strict";function r(t){o(t)}var i=n(80).longestPath,a=n(268),o=n(703);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":r(t);break;case"tight-tree":!function(t){i(t),a(t)}(t);break;case"longest-path":s(t);break;default:r(t)}};var s=i},function(t,e,n){"use strict";function r(t){t=y(t),d(t);var e,n=h(t);for(o(n),i(n,t);e=s(n);)c(n,t,e,u(n,t,e))}function i(t,e){var n=v(t,t.nodes());n=n.slice(0,n.length-1),f.forEach(n,function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=a(t,e,n)}(t,e,n)})}function a(t,e,n){var r=t.node(n).parent,i=!0,a=e.edge(n,r),o=0;return a||(i=!1,a=e.edge(r,n)),o=a.weight,f.forEach(e.nodeEdges(n),function(a){var s=a.v===n,u=s?a.w:a.v;if(u!==r){var c=s===i,l=e.edge(a).weight;if(o+=c?l:-l,function(t,e,n){return t.hasEdge(e,u)}(t,n)){var f=t.edge(n,u).cutvalue;o+=c?-f:f}}}),o}function o(t,e){arguments.length<2&&(e=t.nodes()[0]),function t(e,n,r,i,a){var o=r,s=e.node(i);return n[i]=!0,f.forEach(e.neighbors(i),function(a){f.has(n,a)||(r=t(e,n,r,a,i))}),s.low=o,s.lim=r++,a?s.parent=a:delete s.parent,r}(t,{},1,e)}function s(t){return f.find(t.edges(),function(e){return t.edge(e).cutvalue<0})}function u(t,e,n){var r=n.v,i=n.w;e.hasEdge(r,i)||(r=n.w,i=n.v);var a=t.node(r),o=t.node(i),s=a,u=!1;a.lim>o.lim&&(s=o,u=!0);var c=f.filter(e.edges(),function(e){return u===l(0,t.node(e.v),s)&&u!==l(0,t.node(e.w),s)});return f.minBy(c,function(t){return p(e,t)})}function c(t,e,n,r){t.removeEdge(n.v,n.w),t.setEdge(r.v,r.w,{}),o(t),i(t,e),function(t,e){var n=f.find(t.nodes(),function(t){return!e.node(t).parent}),r=g(t,n);r=r.slice(1),f.forEach(r,function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)})}(t,e)}function l(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}var f=n(8),h=n(268),p=n(80).slack,d=n(80).longestPath,g=n(17).alg.preorder,v=n(17).alg.postorder,y=n(10).simplify;t.exports=r,r.initLowLimValues=o,r.initCutValues=i,r.calcCutValue=a,r.leaveEdge=s,r.enterEdge=u,r.exchangeEdges=c},function(t,e,n){var r=n(8);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}}),e}(t);r.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),i=r.edgeObj,a=function(t,e,n,r){var i,a,o=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>u||c>e[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)s.push(i);return{path:o.concat(s.reverse()),lca:a}}(t,e,i.v,i.w),o=a.path,s=a.lca,u=0,c=o[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=o[u])!==s&&t.node(c).maxRank<r.rank;)u++;c===s&&(l=!1)}if(!l){for(;u<o.length-1&&t.node(c=o[u+1]).minRank<=r.rank;)u++;c=o[u]}t.setParent(n,c),n=t.successors(n)[0]}})}},function(t,e,n){function r(t,e,n,o,s,u,c){var l=t.children(c);if(l.length){var f=a.addBorderNode(t,"_bt"),h=a.addBorderNode(t,"_bb"),p=t.node(c);t.setParent(f,c),p.borderTop=f,t.setParent(h,c),p.borderBottom=h,i.forEach(l,function(i){r(t,e,n,o,s,u,i);var a=t.node(i),l=a.borderTop?a.borderTop:i,p=a.borderBottom?a.borderBottom:i,d=a.borderTop?o:2*o,g=l!==p?1:s-u[c]+1;t.setEdge(f,l,{weight:d,minlen:g,nestingEdge:!0}),t.setEdge(p,h,{weight:d,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(e,f,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}var i=n(8),a=n(10);t.exports={run:function(t){var e=a.addDummyNode(t,"root",{},"_root"),n=function(t){function e(r,a){var o=t.children(r);o&&o.length&&i.forEach(o,function(t){e(t,a+1)}),n[r]=a}var n={};return i.forEach(t.children(),function(t){e(t,1)}),n}(t),o=i.max(i.values(n))-1,s=2*o+1;t.graph().nestingRoot=e,i.forEach(t.edges(),function(e){t.edge(e).minlen*=s});var u=function(t){return i.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;i.forEach(t.children(),function(i){r(t,e,s,u,o,n,i)}),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,i.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},function(t,e,n){function r(t,e,n,r,i,o){var s=i[e][o-1],u=a.addDummyNode(t,"border",{width:0,height:0,rank:o,borderType:e},n);i[e][o]=u,t.setParent(u,r),s&&t.setEdge(s,u,{weight:1})}var i=n(8),a=n(10);t.exports=function(t){i.forEach(t.children(),function e(n){var a=t.children(n),o=t.node(n);if(a.length&&i.forEach(a,e),i.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,u=o.maxRank+1;s<u;++s)r(t,"borderLeft","_bl",n,o,s),r(t,"borderRight","_br",n,o,s)}})}},function(t,e,n){"use strict";function r(t){s.forEach(t.nodes(),function(e){i(t.node(e))}),s.forEach(t.edges(),function(e){i(t.edge(e))})}function i(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function o(t){var e=t.x;t.x=t.y,t.y=e}var s=n(8);t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||r(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){s.forEach(t.nodes(),function(e){a(t.node(e))}),s.forEach(t.edges(),function(e){var n=t.edge(e);s.forEach(n.points,a),s.has(n,"y")&&a(n)})}(t),"lr"!==e&&"rl"!==e||(function(t){s.forEach(t.nodes(),function(e){o(t.node(e))}),s.forEach(t.edges(),function(e){var n=t.edge(e);s.forEach(n.points,o),s.has(n,"x")&&o(n)})}(t),r(t))}}},function(t,e,n){"use strict";function r(t,e,n){return a.map(e,function(e){return c(t,e,n)})}function i(t,e){a.forEach(e,function(e){a.forEach(e,function(e,n){t.node(e).order=n})})}var a=n(8),o=n(709),s=n(710),u=n(711),c=n(715),l=n(716),f=n(17).Graph,h=n(10);t.exports=function(t){var e=h.maxRank(t),n=r(t,a.range(1,e+1),"inEdges"),c=r(t,a.range(e-1,-1,-1),"outEdges"),p=o(t);i(t,p);for(var d,g=Number.POSITIVE_INFINITY,v=0,y=0;y<4;++v,++y){!function(t,e){var n=new f;a.forEach(t,function(t){var r=t.graph().root,i=u(t,r,n,e);a.forEach(i.vs,function(e,n){t.node(e).order=n}),l(t,n,i.vs)})}(v%2?n:c,v%4>=2),p=h.buildLayerMatrix(t);var m=s(t,p);m<g&&(y=0,d=a.cloneDeep(p),g=m)}i(t,d)}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t){var e={},n=r.filter(t.nodes(),function(e){return!t.children(e).length}),i=r.max(r.map(n,function(e){return t.node(e).rank})),a=r.map(r.range(i+1),function(){return[]}),o=r.sortBy(n,function(e){return t.node(e).rank});return r.forEach(o,function n(i){if(!r.has(e,i)){e[i]=!0;var o=t.node(i);a[o.rank].push(i),r.forEach(t.successors(i),n)}}),a}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e){for(var n=0,i=1;i<e.length;++i)n+=function(t,e,n){for(var i=r.zipObject(n,r.map(n,function(t,e){return e})),a=r.flatten(r.map(e,function(e){return r.chain(t.outEdges(e)).map(function(e){return{pos:i[e.w],weight:t.edge(e).weight}}).sortBy("pos").value()}),!0),o=1;o<n.length;)o<<=1;var s=2*o-1;o-=1;var u=r.map(new Array(s),function(){return 0}),c=0;return r.forEach(a.forEach(function(t){var e=t.pos+o;u[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}(t,e[i-1],e[i]);return n}},function(t,e,n){var r=n(8),i=n(712),a=n(713),o=n(714);t.exports=function t(e,n,s,u){var c=e.children(n),l=e.node(n),f=l?l.borderLeft:void 0,h=l?l.borderRight:void 0,p={};f&&(c=r.filter(c,function(t){return t!==f&&t!==h}));var d=i(e,c);r.forEach(d,function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);p[n.v]=i,r.has(i,"barycenter")&&function(t,e){r.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}(n,i)}});var g=a(d,s);!function(t,e){r.forEach(g,function(t){t.vs=r.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(0,p);var v=o(g,u);if(f&&(v.vs=r.flatten([f,v.vs,h],!0),e.predecessors(f).length)){var y=e.node(e.predecessors(f)[0]),m=e.node(e.predecessors(h)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+m.order)/(v.weight+2),v.weight+=2}return v}},function(t,e,n){var r=n(8);t.exports=function(t,e){return r.map(e,function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}},{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}})}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e){var n={};return r.forEach(t,function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)}),r.forEach(e.edges(),function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))}),function(t){function e(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function n(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(var i=[];t.length;){var a=t.pop();i.push(a),r.forEach(a.in.reverse(),e(a)),r.forEach(a.out,n(a))}return r.chain(i).filter(function(t){return!t.merged}).map(function(t){return r.pick(t,["vs","i","barycenter","weight"])}).value()}(r.filter(n,function(t){return!t.indegree}))}},function(t,e,n){function r(t,e,n){for(var r;e.length&&(r=i.last(e)).i<=n;)e.pop(),t.push(r.vs),n++;return n}var i=n(8),a=n(10);t.exports=function(t,e){var n=a.partition(t,function(t){return i.has(t,"barycenter")}),o=n.lhs,s=i.sortBy(n.rhs,function(t){return-t.i}),u=[],c=0,l=0,f=0;o.sort(function(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}(!!e)),f=r(u,s,f),i.forEach(o,function(t){f+=t.vs.length,u.push(t.vs),c+=t.barycenter*t.weight,l+=t.weight,f=r(u,s,f)});var h={vs:i.flatten(u,!0)};return l&&(h.barycenter=c/l,h.weight=l),h}},function(t,e,n){var r=n(8),i=n(17).Graph;t.exports=function(t,e,n){var a=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),o=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(e){return t.node(e)});return r.forEach(t.nodes(),function(i){var s=t.node(i),u=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(o.setNode(i),o.setParent(i,u||a),r.forEach(t[n](i),function(e){var n=e.v===i?e.w:e.v,a=o.edge(n,i),s=r.isUndefined(a)?0:a.weight;o.setEdge(n,i,{weight:t.edge(e).weight+s})}),r.has(s,"minRank")&&o.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),o}},function(t,e,n){var r=n(8);t.exports=function(t,e,n){var i,a={};r.forEach(n,function(n){for(var r,o,s=t.parent(n);s;){if((r=t.parent(s))?(o=a[r],a[r]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=r}})}},function(t,e,n){"use strict";var r=n(8),i=n(10),a=n(718).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,a=0;r.forEach(e,function(e){var i=r.max(r.map(e,function(e){return t.node(e).height}));r.forEach(e,function(e){t.node(e).y=a+i/2}),a+=i+n})})(t=i.asNonCompoundGraph(t)),r.forEach(a(t),function(e,n){t.node(n).x=e})}},function(t,e,n){"use strict";function r(t,e){var n={};return h.reduce(e,function(e,r){var i=0,o=0,s=e.length,u=h.last(r);return h.forEach(r,function(e,c){var l=function(t,e){if(t.node(e).dummy)return h.find(t.predecessors(e),function(e){return t.node(e).dummy})}(t,e),f=l?t.node(l).order:s;(l||e===u)&&(h.forEach(r.slice(o,c+1),function(e){h.forEach(t.predecessors(e),function(r){var o=t.node(r),s=o.order;!(s<i||f<s)||o.dummy&&t.node(e).dummy||a(n,r,e)})}),o=c+1,i=f)}),r}),n}function i(t,e){function n(e,n,i,o,s){var u;h.forEach(h.range(n,i),function(n){t.node(u=e[n]).dummy&&h.forEach(t.predecessors(u),function(e){var n=t.node(e);n.dummy&&(n.order<o||n.order>s)&&a(r,e,u)})})}var r={};return h.reduce(e,function(e,r){var i,a=-1,o=0;return h.forEach(r,function(s,u){if("border"===t.node(s).dummy){var c=t.predecessors(s);c.length&&(i=t.node(c[0]).order,n(r,o,u,a,i),o=u,a=i)}n(r,o,r.length,i,e.length)}),r}),r}function a(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function o(t,e,n){if(e>n){var r=e;e=n,n=r}return h.has(t[e],n)}function s(t,e,n,r){var i={},a={},s={};return h.forEach(e,function(t){h.forEach(t,function(t,e){i[t]=t,a[t]=t,s[t]=e})}),h.forEach(e,function(t){var e=-1;h.forEach(t,function(t){var u=r(t);if(u.length)for(var c=((u=h.sortBy(u,function(t){return s[t]})).length-1)/2,l=Math.floor(c),f=Math.ceil(c);l<=f;++l){var p=u[l];a[t]===t&&e<s[p]&&!o(n,t,p)&&(a[p]=t,a[t]=i[t]=i[p],e=s[p])}})}),{root:i,align:a}}function u(t,e,n,r,i){function a(t,e){for(var n=s.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}var o={},s=function(t,e,n,r){var i=new p,a=t.graph(),o=function(t,e,n){return function(r,i,a){var o,s=r.node(i),u=r.node(a),c=0;if(c+=s.width/2,h.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=-s.width/2;break;case"r":o=s.width/2}if(o&&(c+=n?o:-o),o=0,c+=(s.dummy?e:t)/2,c+=(u.dummy?e:t)/2,c+=u.width/2,h.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":o=u.width/2;break;case"r":o=-u.width/2}return o&&(c+=n?o:-o),o=0,c}}(a.nodesep,a.edgesep,r);return h.forEach(e,function(e){var r;h.forEach(e,function(e){var a=n[e];if(i.setNode(a),r){var s=n[r],u=i.edge(s,a);i.setEdge(s,a,Math.max(o(t,e,r),u||0))}r=e})}),i}(t,e,n,i),u=i?"borderLeft":"borderRight";return a(function(t){o[t]=s.inEdges(t).reduce(function(t,e){return Math.max(t,o[e.v]+s.edge(e))},0)},h.bind(s.predecessors,s)),a(function(e){var n=s.outEdges(e).reduce(function(t,e){return Math.min(t,o[e.w]-s.edge(e))},Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==u&&(o[e]=Math.max(o[e],n))},h.bind(s.successors,s)),h.forEach(r,function(t){o[t]=o[n[t]]}),o}function c(t,e){return h.minBy(h.values(e),function(e){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return h.forIn(e,function(e,i){var a=function(t,e){return t.node(i).width}(t)/2;n=Math.max(e+a,n),r=Math.min(e-a,r)}),n-r})}function l(t,e){var n=h.values(e),r=h.min(n),i=h.max(n);h.forEach(["u","d"],function(n){h.forEach(["l","r"],function(a){var o,s=n+a,u=t[s];if(u!==e){var c=h.values(u);(o="l"===a?r-h.min(c):i-h.max(c))&&(t[s]=h.mapValues(u,function(t){return t+o}))}})})}function f(t,e){return h.mapValues(t.ul,function(n,r){if(e)return t[e.toLowerCase()][r];var i=h.sortBy(h.map(t,r));return(i[1]+i[2])/2})}var h=n(8),p=n(17).Graph,d=n(10);t.exports={positionX:function(t){var e,n=d.buildLayerMatrix(t),a=h.merge(r(t,n),i(t,n)),o={};h.forEach(["u","d"],function(r){e="u"===r?n:h.values(n).reverse(),h.forEach(["l","r"],function(n){"r"===n&&(e=h.map(e,function(t){return h.values(t).reverse()}));var i=h.bind("u"===r?t.predecessors:t.successors,t),c=s(0,e,a,i),l=u(t,e,c.root,c.align,"r"===n);"r"===n&&(l=h.mapValues(l,function(t){return-t})),o[r+n]=l})});var p=c(t,o);return l(o,p),f(o,t.graph().align)},findType1Conflicts:r,findType2Conflicts:i,addConflict:a,hasConflict:o,verticalAlignment:s,horizontalCompaction:u,alignCoordinates:l,findSmallestWidthAlignment:c,balance:f}},function(t,e,n){var r=n(8),i=n(10),a=n(17).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)}),r.forEach(t.edges(),function(t){n.setEdge(t.v,t.w,{},t.name)}),r.forEach(e,function(t,e){n.setNode("layer"+e,{rank:"same"}),r.reduce(t,function(t,e){return n.setEdge(t,e,{style:"invis"}),e})}),n}}},function(t,e){t.exports="0.8.2"},function(t,e,n){function r(t,e){e=i({},g,e);var n=null;a(e.nodeAlign)?n=d[e.nodeAlign]:o(e.nodeAlign)&&(n=e.nodeAlign);var r=u().links(function(t){return t.edges}).nodeWidth(e.nodeWidth).nodePadding(e.nodePadding).extent([[0,0],[1,1]]);o(e.nodeId)&&r.nodeId(e.nodeId),n&&r.nodeAlign(n),r(t),t.nodes.forEach(function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;t.x=[e,n,n,e],t.y=[r,r,i,i]}),t.edges.forEach(function(t){var e=t.source.x1,n=t.target.x0;t.x=[e,e,n,n];var r=t.width/2;t.y=[t.y0+r,t.y0-r,t.y1+r,t.y1-r]})}var i=n(4),a=n(9),o=n(13),s=n(722),u=s.sankey,c=s.sankeyLeft,l=s.sankeyRight,f=s.sankeyCenter,h=s.sankeyJustify,p=n(2).registerTransform,d={sankeyLeft:c,sankeyRight:l,sankeyCenter:f,sankeyJustify:h},g={value:function(t){return t.value},source:function(t){return t.source},target:function(t){return t.target},nodeAlign:"sankeyJustify",nodeWidth:.02,nodePadding:.02};p("diagram.sankey",r),p("sankey",r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(723);n.d(e,"sankey",function(){return r.a});var i=n(269);n.d(e,"sankeyCenter",function(){return i.a}),n.d(e,"sankeyLeft",function(){return i.c}),n.d(e,"sankeyRight",function(){return i.d}),n.d(e,"sankeyJustify",function(){return i.b});var a=n(731);n.d(e,"sankeyLinkHorizontal",function(){return a.a})},function(t,e,n){"use strict";function r(t,e){return a(t.source,e.source)||t.index-e.index}function i(t,e){return a(t.target,e.target)||t.index-e.index}function a(t,e){return t.y0-e.y0}function o(t){return t.value}function s(t){return(t.y0+t.y1)/2}function u(t){return s(t.source)*t.value}function c(t){return s(t.target)*t.value}function l(t){return t.index}function f(t){return t.nodes}function h(t){return t.links}function p(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}var d=n(16),g=n(724),v=n(269),y=n(730);e.a=function(){function t(){var t={nodes:S.apply(null,arguments),links:M.apply(null,arguments)};return function(t){t.nodes.forEach(function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]});var e=Object(g.a)(t.nodes,O);t.links.forEach(function(t,n){t.index=n;var r=t.source,i=t.target;"object"!=typeof r&&(r=t.source=p(e,r)),"object"!=typeof i&&(i=t.target=p(e,i)),r.sourceLinks.push(t),i.targetLinks.push(t)})}(t),function(t){t.nodes.forEach(function(t){t.value=Math.max(Object(d.sum)(t.sourceLinks,o),Object(d.sum)(t.targetLinks,o))})}(t),function(t){var e,r,i;for(e=t.nodes,r=[],i=0;e.length;++i,e=r,r=[])e.forEach(function(t){t.depth=i,t.sourceLinks.forEach(function(t){r.indexOf(t.target)<0&&r.push(t.target)})});for(e=t.nodes,r=[],i=0;e.length;++i,e=r,r=[])e.forEach(function(t){t.height=i,t.targetLinks.forEach(function(t){r.indexOf(t.source)<0&&r.push(t.source)})});var a=(x-n-_)/(i-1);t.nodes.forEach(function(t){t.x1=(t.x0=n+Math.max(0,Math.min(i-1,Math.floor(j.call(null,t,i))))*a)+_})}(t),function(t){function e(){n.forEach(function(t){var e,n,r,i=m,o=t.length;for(t.sort(a),r=0;r<o;++r)(n=i-(e=t[r]).y0)>0&&(e.y0+=n,e.y1+=n),i=e.y1+w;if((n=i-w-b)>0)for(i=e.y0-=n,e.y1-=n,r=o-2;r>=0;--r)(n=(e=t[r]).y1+w-i)>0&&(e.y0-=n,e.y1-=n),i=e.y0})}var n=Object(g.b)().key(function(t){return t.x0}).sortKeys(d.ascending).entries(t.nodes).map(function(t){return t.values});(function(){var e=Object(d.min)(n,function(t){return(b-m-(t.length-1)*w)/Object(d.sum)(t,o)});n.forEach(function(t){t.forEach(function(t,n){t.y1=(t.y0=n)+t.value*e})}),t.links.forEach(function(t){t.width=t.value*e})})(),e();for(var r=1,i=E;i>0;--i)!function(t){n.slice().reverse().forEach(function(e){e.forEach(function(e){if(e.sourceLinks.length){var n=(Object(d.sum)(e.sourceLinks,c)/Object(d.sum)(e.sourceLinks,o)-s(e))*t;e.y0+=n,e.y1+=n}})})}(r*=.99),e(),function(t){n.forEach(function(e){e.forEach(function(e){if(e.targetLinks.length){var n=(Object(d.sum)(e.targetLinks,u)/Object(d.sum)(e.targetLinks,o)-s(e))*t;e.y0+=n,e.y1+=n}})})}(r),e()}(t),e(t),t}function e(t){t.nodes.forEach(function(t){t.sourceLinks.sort(i),t.targetLinks.sort(r)}),t.nodes.forEach(function(t){var e=t.y0,n=e;t.sourceLinks.forEach(function(t){t.y0=e+t.width/2,e+=t.width}),t.targetLinks.forEach(function(t){t.y1=n+t.width/2,n+=t.width})})}var n=0,m=0,x=1,b=1,_=24,w=8,O=l,j=v.b,S=f,M=h,E=32;return t.update=function(t){return e(t),t},t.nodeId=function(e){return arguments.length?(O="function"==typeof e?e:Object(y.a)(e),t):O},t.nodeAlign=function(e){return arguments.length?(j="function"==typeof e?e:Object(y.a)(e),t):j},t.nodeWidth=function(e){return arguments.length?(_=+e,t):_},t.nodePadding=function(e){return arguments.length?(w=+e,t):w},t.nodes=function(e){return arguments.length?(S="function"==typeof e?e:Object(y.a)(e),t):S},t.links=function(e){return arguments.length?(M="function"==typeof e?e:Object(y.a)(e),t):M},t.size=function(e){return arguments.length?(n=m=0,x=+e[0],b=+e[1],t):[x-n,b-m]},t.extent=function(e){return arguments.length?(n=+e[0][0],x=+e[1][0],m=+e[0][1],b=+e[1][1],t):[[n,m],[x,b]]},t.iterations=function(e){return arguments.length?(E=+e,t):E},t}},function(t,e,n){"use strict";var r=n(725);n.d(e,"b",function(){return r.a}),n(726);var i=n(136);n.d(e,"a",function(){return i.a}),n(727),n(728),n(729)},function(t,e,n){"use strict";function r(){return{}}function i(t,e,n){t[e]=n}function a(){return Object(s.a)()}function o(t,e,n){t.set(e,n)}var s=n(136);e.a=function(){function t(r,i,a,o){if(i>=c.length)return null!=e&&r.sort(e),null!=n?n(r):r;for(var u,l,f,h=-1,p=r.length,d=c[i++],g=Object(s.a)(),v=a();++h<p;)(f=g.get(u=d(l=r[h])+""))?f.push(l):g.set(u,[l]);return g.each(function(e,n){o(v,n,t(e,i,a,o))}),v}var e,n,u,c=[],l=[];return u={object:function(e){return t(e,0,r,i)},map:function(e){return t(e,0,a,o)},entries:function(e){return function t(e,r){if(++r>c.length)return e;var i,a=l[r-1];return null!=n&&r>=c.length?i=e.entries():(i=[],e.each(function(e,n){i.push({key:n,values:t(e,r)})})),null!=a?i.sort(function(t,e){return a(t.key,e.key)}):i}(t(e,0,a,o),0)},key:function(t){return c.push(t),u},sortKeys:function(t){return l[c.length-1]=t,u},sortValues:function(t){return e=t,u},rollup:function(t){return n=t,u}}}},function(t,e,n){"use strict";function r(){}var i=n(136),a=i.a.prototype;r.prototype=(function(t,e){var n=new r;if(t instanceof r)t.each(function(t){n.add(t)});else if(t){var i=-1,a=t.length;if(null==e)for(;++i<a;)n.add(t[i]);else for(;++i<a;)n.add(e(t[i],i,t))}return n}).prototype={constructor:r,has:a.has,add:function(t){return this[i.b+(t+="")]=t,this},remove:a.remove,clear:a.clear,values:a.keys,size:a.size,empty:a.empty,each:a.each}},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";function r(t){return[t.source.x1,t.y0]}function i(t){return[t.target.x0,t.y1]}var a=n(732);e.a=function(){return Object(a.a)().source(r).target(i)}},function(t,e,n){"use strict";n(733),n(270),n(137),n(734),n(737),n(272),n(273);var r=n(738);n.d(e,"a",function(){return r.a}),n(739),n(275),n(276),n(277),n(279),n(278),n(280),n(281),n(740),n(741),n(83),n(742),n(282),n(283),n(84),n(743),n(744),n(139),n(745),n(81),n(746),n(747),n(748),n(749),n(750),n(751),n(58),n(752),n(753),n(140),n(754),n(755),n(59),n(756)},function(t,e,n){"use strict";n(39),n(34),n(57)},function(t,e,n){"use strict";n(34),n(735),n(736),n(57)},function(t,e,n){"use strict";e.a=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";n(271),n(270),n(272)},function(t,e,n){"use strict";function r(t){return t.source}function i(t){return t.target}function a(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}e.a=function(){return function(t){function e(){var e,r=s.a.call(arguments),i=n.apply(this,r),u=a.apply(this,r);if(h||(h=e=Object(o.path)()),t(h,+l.apply(this,(r[0]=i,r)),+f.apply(this,r),+l.apply(this,(r[0]=u,r)),+f.apply(this,r)),e)return h=null,e+""||null}var n=r,a=i,l=c.a,f=c.b,h=null;return e.source=function(t){return arguments.length?(n=t,e):n},e.target=function(t){return arguments.length?(a=t,e):a},e.x=function(t){return arguments.length?(l="function"==typeof t?t:Object(u.a)(+t),e):l},e.y=function(t){return arguments.length?(f="function"==typeof t?t:Object(u.a)(+t),e):f},e.context=function(t){return arguments.length?(h=null==t?null:t,e):h},e}(a)};var o=n(39),s=n(274),u=n(34),c=n(138);n(273)},function(t,e,n){"use strict";n(39),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(34)},function(t,e,n){"use strict";n(82),n(83)},function(t,e,n){"use strict";n(83)},function(t,e,n){"use strict";function r(t,e){this._basis=new i.a(t),this._beta=e}var i=n(83);r.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/n)*o),this._beta*e[u]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}},function t(e){function n(t){return 1===e?new i.a(t):new r(t,e)}return n.beta=function(e){return t(+e)},n}(.85)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._alpha=e}var i=n(282),a=n(82),o=n(139);r.prototype={areaStart:a.a,areaEnd:a.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(o.a)(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return e?new r(t,e):new i.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._alpha=e}var i=n(283),a=n(139);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(a.a)(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return e?new r(t,e):new i.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";n(82)},function(t,e,n){"use strict";function r(t){return t<0?-1:1}function i(t,e,n){var i=t._x1-t._x0,a=e-t._x1,o=(t._y1-t._y0)/(i||a<0&&-0),s=(n-t._y1)/(a||i<0&&-0),u=(o*a+s*i)/(i+a);return(r(o)+r(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(u))||0}function a(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function o(t,e,n){var r=t._x0,i=t._x1,a=t._y1,o=(i-r)/3;t._context.bezierCurveTo(r+o,t._y0+o*e,i-o,a-o*n,i,a)}function s(t){this._context=t}function u(t){this._context=t}s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,o(this,a(this,n=i(this,t,e)),n);break;default:o(this,this._t0,n=i(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},((function(t){this._context=new u(t)}).prototype=Object.create(s.prototype)).point=function(t,e){s.prototype.point.call(this,e,t)},u.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}}},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(274),n(34),n(58),n(59)},function(t,e,n){"use strict";n(58)},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(58)},function(t,e,n){"use strict";n(58)},function(t,e,n){"use strict";n(140)},function(t,e,n){"use strict";n(59),n(140)},function(t,e,n){"use strict";n(59)},function(t,e,n){function r(t,e){var n=(e=i({},c,e)).as;if(!o(n)||2!==n.length)throw new TypeError("Invalid as: must be an array with two strings!");var r=n[0],s=n[1],l=u(e);if(!o(l)&&2!==l.length)throw new TypeError("Invalid fields: must be an array with two strings!");var f=l[0],h=l[1],p=t.rows,d=p.map(function(t){return[t[f],t[h]]}),g=a.voronoi();e.extend&&g.extent(e.extend),e.size&&g.size(e.size);var v=g(d).polygons();p.forEach(function(t,e){var n=v[e].filter(function(t){return!!t});t[r]=n.map(function(t){return t[0]}),t[s]=n.map(function(t){return t[1]})})}var i=n(4),a=n(758),o=n(3),s=n(2).registerTransform,u=n(7).getFields,c={as:["_x","_y"]};s("diagram.voronoi",r),s("voronoi",r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(759);n.d(e,"voronoi",function(){return r.a})},function(t,e,n){"use strict";var r=n(760),i=n(761),a=n(60);e.a=function(){function t(t){return new a.d(t.map(function(r,i){var o=[Math.round(e(r,i,t)/a.f)*a.f,Math.round(n(r,i,t)/a.f)*a.f];return o.index=i,o.data=r,o}),o)}var e=i.a,n=i.b,o=null;return t.polygons=function(e){return t(e).polygons()},t.links=function(e){return t(e).links()},t.triangles=function(e){return t(e).triangles()},t.x=function(n){return arguments.length?(e="function"==typeof n?n:Object(r.a)(+n),t):e},t.y=function(e){return arguments.length?(n="function"==typeof e?e:Object(r.a)(+e),t):n},t.extent=function(e){return arguments.length?(o=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],t):o&&[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},t.size=function(e){return arguments.length?(o=null==e?null:[[0,0],[+e[0],+e[1]]],t):o&&[o[1][0]-o[0][0],o[1][1]-o[0][1]]},t}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){return t[0]},e.b=function(t){return t[1]}},function(t,e,n){"use strict";function r(t){var e=f.pop()||new function(){Object(o.a)(this),this.edge=this.site=this.circle=null};return e.site=t,e}function i(t){Object(u.b)(t),l.a.remove(t),f.push(t),Object(o.a)(t)}function a(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var s=(n=o.site)[0],u=n[1],c=u-e;if(!c)return s;var l=s-r,f=1/a-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-u+c/2+i-a/2)))/f+r:(r+s)/2}e.b=function(t){var e=t.circle,n=e.x,r=e.cy,a=[n,r],o=t.P,s=t.N,f=[t];i(t);for(var h=o;h.circle&&Math.abs(n-h.circle.x)<l.f&&Math.abs(r-h.circle.cy)<l.f;)o=h.P,f.unshift(h),i(h),h=o;f.unshift(h),Object(u.b)(h);for(var p=s;p.circle&&Math.abs(n-p.circle.x)<l.f&&Math.abs(r-p.circle.cy)<l.f;)s=p.N,f.push(p),i(p),p=s;f.push(p),Object(u.b)(p);var d,g=f.length;for(d=1;d<g;++d)p=f[d],h=f[d-1],Object(c.d)(p.edge,h.site,p.site,a);h=f[0],(p=f[g-1]).edge=Object(c.c)(h.site,p.site,null,a),Object(u.a)(h),Object(u.a)(p)},e.a=function(t){for(var e,n,i,o,f=t[0],h=t[1],p=l.a._;p;)if((i=a(p,h)-f)>l.f)p=p.L;else{if(!((o=f-function(t,e){var n=t.N;if(n)return a(n,e);var r=t.site;return r[1]===e?r[0]:1/0}(p,h))>l.f)){i>-l.f?(e=p.P,n=p):o>-l.f?(e=p,n=p.N):e=n=p;break}if(!p.R){e=p;break}p=p.R}Object(s.c)(t);var d=r(t);if(l.a.insert(e,d),e||n){if(e===n)return Object(u.b)(e),n=r(e.site),l.a.insert(d,n),d.edge=n.edge=Object(c.c)(e.site,d.site),Object(u.a)(e),void Object(u.a)(n);if(n){Object(u.b)(e),Object(u.b)(n);var g=e.site,v=g[0],y=g[1],m=t[0]-v,x=t[1]-y,b=n.site,_=b[0]-v,w=b[1]-y,O=2*(m*w-x*_),j=m*m+x*x,S=_*_+w*w,M=[(w*j-x*S)/O+v,(m*S-_*j)/O+y];Object(c.d)(n.edge,g,b,M),d.edge=Object(c.c)(g,t,null,M),n.edge=Object(c.c)(t,b,null,M),Object(u.a)(e),Object(u.a)(n)}else d.edge=Object(c.c)(e.site,d.site)}};var o=n(141),s=n(284),u=n(285),c=n(142),l=n(60),f=[]},function(t,e,n){function r(t,e){if(t.dataType!==u)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,r=(e=i({},f,e)).as;if(!o(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var s=void 0;try{s=l(e)}catch(t){console.warn(t)}s&&n.sum(function(t){return t[s]});var c=a.cluster();c.size(e.size),e.nodeSize&&c.nodeSize(e.nodeSize),e.separation&&c.separation(e.separation),c(n);var h=r[0],p=r[1];n.each(function(t){t[h]=t.x,t[p]=t.y})}var i=n(4),a=n(40),o=n(3),s=n(2),u=s.HIERARCHY,c=s.registerTransform,l=n(7).getField,f={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};c("hierarchy.cluster",r),c("dendrogram",r)},function(t,e,n){function r(t,e){var n=t.root;if(e=Object.assign({},u,e),t.dataType!==o)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=i.compactBox(n,e)}var i=n(143),a=n(2),o=a.HIERARCHY,s=a.registerTransform,u={};s("hierarchy.compact-box",r),s("compact-box-tree",r),s("non-layered-tidy-tree",r),s("mindmap-logical",r)},function(t,e,n){function r(t,e){var n=t.root;if(e=Object.assign({},u,e),t.dataType!==o)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=i.dendrogram(n,e)}var i=n(143),a=n(2),o=a.HIERARCHY,s=a.registerTransform,u={};s("hierarchy.dendrogram",r),s("dendrogram",r)},function(t,e,n){function r(t,e){var n=t.root;if(e=Object.assign({},u,e),t.dataType!==o)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=i.indented(n,e)}var i=n(143),a=n(2),o=a.HIERARCHY,s=a.registerTransform,u={};s("hierarchy.indented",r),s("indented-tree",r)},function(t,e,n){function r(t,e){if(t.dataType!==u)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,r=(e=i({},f,e)).as;if(!o(r)||3!==r.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');var s=void 0;try{s=l(e)}catch(t){console.warn(t)}s&&n.sum(function(t){return t[s]}).sort(function(t,e){return e[s]-t[s]});var c=a.pack();c.size(e.size),e.padding&&c.padding(e.padding),c(n);var h=r[0],p=r[1],d=r[2];n.each(function(t){t[h]=t.x,t[p]=t.y,t[d]=t.r})}var i=n(4),a=n(40),o=n(3),s=n(2),u=s.HIERARCHY,c=s.registerTransform,l=n(7).getField,f={field:"value",size:[1,1],padding:0,as:["x","y","r"]};c("hierarchy.pack",r),c("hierarchy.circle-packing",r),c("circle-packing",r)},function(t,e,n){function r(t,e){if(t.dataType!==u)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,r=(e=i({},f,e)).as;if(!o(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var s=void 0;try{s=l(e)}catch(t){console.warn(t)}s&&n.sum(function(t){return t[s]});var c=a.partition();c.size(e.size).round(e.round).padding(e.padding),c(n);var h=r[0],p=r[1];n.each(function(t){t[h]=[t.x0,t.x1,t.x1,t.x0],t[p]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach(function(e){-1===r.indexOf(e)&&delete t[e]})})}var i=n(4),a=n(40),o=n(3),s=n(2),u=s.HIERARCHY,c=s.registerTransform,l=n(7).getField,f={field:"value",size:[1,1],round:!1,padding:0,sort:!0,as:["x","y"]};c("hierarchy.partition",r),c("adjacency",r)},function(t,e,n){function r(t,e){if(t.dataType!==u)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,r=(e=i({},f,e)).as;if(!o(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var s=void 0;try{s=l(e)}catch(t){console.warn(t)}s&&n.sum(function(t){return t[s]});var c=a.tree();c.size(e.size),e.nodeSize&&c.nodeSize(e.nodeSize),e.separation&&c.separation(e.separation),c(n);var h=r[0],p=r[1];n.each(function(t){t[h]=t.x,t[p]=t.y})}var i=n(4),a=n(40),o=n(3),s=n(2),u=s.HIERARCHY,c=s.registerTransform,l=n(7).getField,f={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};c("hierarchy.tree",r),c("tree",r)},function(t,e,n){function r(t,e){if(t.dataType!==u)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,r=(e=i({},f,e)).as;if(!o(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var s=void 0;try{s=l(e)}catch(t){console.warn(t)}s&&n.sum(function(t){return t[s]});var c=a.treemap();c.tile(a[e.tile]).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft),c(n);var h=r[0],p=r[1];n.each(function(t){t[h]=[t.x0,t.x1,t.x1,t.x0],t[p]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach(function(e){-1===r.indexOf(e)&&delete t[e]})})}var i=n(4),a=n(40),o=n(3),s=n(2),u=s.HIERARCHY,c=s.registerTransform,l=n(7).getField,f={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"]};c("hierarchy.treemap",r),c("treemap",r)},function(t,e,n){function r(t,e){e=i({},c,e);var n=s();["font","fontSize","padding","rotate","size","spiral","timeInterval"].forEach(function(t){e[t]&&n[t](e[t])});var r=u(e),o=r[0],l=r[1];if(!a(o)||!a(l))throw new TypeError('Invalid fields: must be an array with 2 strings (e.g. [ "text", "value" ])!');var f=t.rows.map(function(t){return t.text=t[o],t.value=t[l],t});n.words(f),e.imageMask&&n.createMask(e.imageMask);var h=n.start(),p=h._tags,d=h._bounds;p.forEach(function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2});var g=e.size,v=g[0],y=g[1],m=h.hasImage;p.push({text:"",value:0,x:m?0:d[0].x,y:m?0:d[0].y,opacity:0}),p.push({text:"",value:0,x:m?v:d[1].x,y:m?y:d[1].y,opacity:0}),t.rows=p,t._tagCloud=h}var i=n(4),a=n(9),o=n(2).registerTransform,s=n(772),u=n(7).getFields,c={fields:["text","value"],font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:500};o("tag-cloud",r),o("word-cloud",r)},function(t,e){function n(t){return t.text}function r(){return"serif"}function i(){return"normal"}function a(t){return t.value}function o(){return 90*~~(2*Math.random())}function s(){return 1}function u(t,e,n,r){if(!e.sprite){var i=t.context,a=t.ratio;i.clearRect(0,0,(y<<5)/a,m/a);var o=0,s=0,u=0,c=n.length;for(--r;++r<c;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/a)+"px "+e.font;var l=i.measureText(e.text+"m").width*a,f=e.size<<1;if(e.rotate){var h=Math.sin(e.rotate*v),p=Math.cos(e.rotate*v),d=l*p,g=l*h,x=f*p,b=f*h;l=Math.max(Math.abs(d+b),Math.abs(d-b))+31>>5<<5,f=~~Math.max(Math.abs(g+x),Math.abs(g-x))}else l=l+31>>5<<5;if(f>u&&(u=f),o+l>=y<<5&&(o=0,s+=u,u=0),s+f>=m)break;i.translate((o+(l>>1))/a,(s+(f>>1))/a),e.rotate&&i.rotate(e.rotate*v),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=l,e.height=f,e.xoff=o,e.yoff=s,e.x1=l>>1,e.y1=f>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=l}for(var _=i.getImageData(0,0,(y<<5)/a,m/a).data,w=[];--r>=0;)if((e=n[r]).hasText){for(var O=e.width,j=O>>5,S=e.y1-e.y0,M=0;M<S*j;M++)w[M]=0;if(null==(o=e.xoff))return;s=e.yoff;for(var E=0,P=-1,C=0;C<S;C++){for(var k=0;k<O;k++){var A=_[(s+C)*(y<<5)+(o+k)<<2]?1<<31-k%32:0;w[j*C+(k>>5)]|=A,E|=A}E?P=C:(e.y0++,S--,C--,s++)}e.y1=e.y0+P,e.sprite=w.slice(0,(e.y1-e.y0)*j)}}}function c(t,e,n){for(var r=t.sprite,i=t.width>>5,a=t.x-(i<<4),o=127&a,s=32-o,u=t.y1-t.y0,c=(t.y+t.y0)*(n>>=5)+(a>>5),l=void 0,f=0;f<u;f++){l=0;for(var h=0;h<=i;h++)if((l<<s|(h<i?(l=r[f*i+h])>>>o:0))&e[c+h])return!0;c+=n}return!1}function l(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function f(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function h(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function p(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function d(){return document.createElement("canvas")}function g(t){return"function"==typeof t?t:function(){return t}}var v=Math.PI/180,y=64,m=2048,x={archimedean:h,rectangular:function(t){var e=4*t[0]/t[1],n=0,r=0;return function(t){var i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}};t.exports=function(){var t=[256,256],e=n,v=r,b=a,_=i,w=i,O=o,j=s,S=h,M=[],E=1/0,P=Math.random,C=d,k={canvas:function(t){return arguments.length?(C=g(t),k):C},start:function(){var n=t[0],r=t[1],i=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(y<<5)/e,t.height=m/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(C()),a=k.board?k.board:p((t[0]>>5)*t[1]),o=M.length,s=[],h=M.map(function(t,n){return t.text=e.call(this,t,n),t.font=v.call(this,t,n),t.style=_.call(this,t,n),t.weight=w.call(this,t,n),t.rotate=O.call(this,t,n),t.size=~~b.call(this,t,n),t.padding=j.call(this,t,n),t}).sort(function(t,e){return e.size-t.size}),d=-1,g=k.board?[{x:0,y:0},{x:n,y:r}]:null;return function(){for(var e=Date.now();Date.now()-e<E&&++d<o;){var p=h[d];p.x=n*(P()+.5)>>1,p.y=r*(P()+.5)>>1,u(i,p,h,d),p.hasText&&function(e,n,r){for(var i=n.x,a=n.y,o=Math.sqrt(t[0]*t[0]+t[1]*t[1]),s=S(t),u=P()<.5?1:-1,l=void 0,h=-u,p=void 0,d=void 0;(l=s(h+=u))&&(p=~~l[0],d=~~l[1],!(Math.min(Math.abs(p),Math.abs(d))>=o));)if(n.x=i+p,n.y=a+d,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!c(n,e,t[0]))&&(!r||f(n,r))){for(var g=n.sprite,v=n.width>>5,y=t[0]>>5,m=n.x-(v<<4),x=127&m,b=32-x,_=n.y1-n.y0,w=void 0,O=(n.y+n.y0)*y+(m>>5),j=0;j<_;j++){w=0;for(var M=0;M<=v;M++)e[O+M]|=w<<b|(M<v?(w=g[j*v+M])>>>x:0);O+=y}return delete n.sprite,!0}return!1}(a,p,g)&&(s.push(p),g?k.hasImage||l(g,p):g=[{x:p.x+p.x0,y:p.y+p.y0},{x:p.x+p.x1,y:p.y+p.y1}],p.x-=t[0]>>1,p.y-=t[1]>>1)}k._tags=s,k._bounds=g}(),k},createMask:function(e){var n=document.createElement("canvas"),r=t[0],i=t[1],a=r>>5,o=p((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var u=s.getImageData(0,0,r,i).data,c=0;c<i;c++)for(var l=0;l<r;l++){var f=c*r+l<<2;o[a*c+(l>>5)]|=u[f]>=250&&u[f+1]>=250&&u[f+2]>=250?1<<31-l%32:0}k.board=o,k.hasImage=!0},timeInterval:function(t){return arguments.length?(E=null==t?1/0:t,k):E},words:function(t){return arguments.length?(M=t,k):M},size:function(e){return arguments.length?(t=[+e[0],+e[1]],k):t},font:function(t){return arguments.length?(v=g(t),k):v},fontStyle:function(t){return arguments.length?(_=g(t),k):_},fontWeight:function(t){return arguments.length?(w=g(t),k):w},rotate:function(t){return arguments.length?(O=g(t),k):O},text:function(t){return arguments.length?(e=g(t),k):e},spiral:function(t){return arguments.length?(S=x[t]||t,k):S},fontSize:function(t){return arguments.length?(b=g(t),k):b},padding:function(t){return arguments.length?(j=g(t),k):j},random:function(t){return arguments.length?(P=t,k):P}};return k}},function(t,e,n){var r=n(4),i=n(774),a=n(12),o=n(11),s=n(776),u=n(52),c=n(27).sum,l=n(19),f=n(2).registerTransform,h=n(7).getFields,p={fields:["name","value"],rows:5,size:[1,1],scale:1,groupBy:[],maxCount:1e3,gapRatio:.1,as:["x","y"]};f("waffle",function(t,e){e=r({},p,e);var n=h(e),f=n[0],d=n[1],g=e.as,v=g[0],y=g[1],m=e.groupBy,x=l(t.rows,m),b=o(x),_=e.size,w=_[0],O=e.maxCount,j=_[1]/b.length,S=e.rows,M=e.gapRatio,E=[],P=e.scale,C=0,k=0;a(x,function(t){var e=c(s(t,function(t){return t[d]})),n=Math.ceil(e*P/S);e*P>O&&(P=O/e,n=Math.ceil(e*P/S)),k=w/n}),a(x,function(t){var e=[C*j,(C+1)*j],n=(e[1]-e[0])*(1-M)/S,r=0,a=0;i(t,function(t){for(var i=Math.round(t[d]*P),o=0;o<i;o++){a===S&&(a=0,r++);var s=u(t,[f,d].concat(m));s[v]=r*k+k/2,s[y]=a*n+n/2+e[0],s._wStep=k,s._hStep=n,a++,E.push(s)}}),C+=1}),t.rows=E})},function(t,e,n){t.exports=n(775)},function(t,e,n){var r=n(192),i=n(120),a=n(213),o=n(3);t.exports=function(t,e){return(o(t)?r:i)(t,a(e))}},function(t,e,n){var r=n(50),i=n(48),a=n(261),o=n(3);t.exports=function(t,e){return(o(t)?r:a)(t,i(e,3))}},function(t,e,n){function r(t,e){e=i({},g,e);var n=p(e);if(!a(n)||2!==n.length)throw new TypeError("invalid fields: must be an array of 2 strings!");var r=e.as,c=r[0],h=r[1],y=r[2];if(!u(c)||!u(h)||!u(y))throw new TypeError("invalid as: must be an array of 3 strings!");var m=e.method;if(u(m)){if(-1===v.indexOf(m))throw new TypeError("invalid method: "+m+". Must be one of "+v.join(", "));m=f[m]}if(!o(m))throw new TypeError("invalid method: kernel method must be a function!");var x=n[0],b=n[1],_=e.extent,w=_[0],O=_[1];a(w)&&a(O)||(w=t.range(x),O=t.range(b));var j=e.bandwidth,S=j[0],M=j[1];(!s(S)||S<=0||!s(M)||M<=0)&&(S=d(t.getColumn(x)),M=d(t.getColumn(b)));for(var E=l(w,S),P=l(O,M),C=t.rows.length,k=[],A=0;A<E.length;A++)for(var T=0;T<P.length;T++){for(var I=0,L=E[A],R=P[T],D=0;D<C;D++)I+=m((L-t.rows[D][x])/S)*m((R-t.rows[D][b])/M);var F=1/(C*S*M)*I,B={};B[c]=L,B[h]=R,B[y]=F,k.push(B)}t.rows=k}var i=n(4),a=n(3),o=n(13),s=n(132),u=n(9),c=n(11),l=n(133),f=n(286),h=n(2).registerTransform,p=n(7).getFields,d=n(134).silverman,g={as:["x","y","z"],method:"gaussian",extent:[],bandwidth:[]},v=c(f);h("kernel-smooth.density",r),h("kernel.density",r),t.exports={KERNEL_METHODS:v}},function(t,e,n){function r(t){return function(e){return o(e)?e.map(function(e){return t(e)}):t(e)}}function i(t,e){e=a({},m,e);var n=v(e);if(!o(n)||1!==n.length&&2!==n.length)throw new TypeError("invalid fields: must be an array of 1 or 2 strings!");var i=e.as,f=i[0],g=i[1];if(!l(f)||!l(g))throw new TypeError("invalid as: must be an array of 2 strings!");var b=e.method;if(l(b)){if(-1===x.indexOf(b))throw new TypeError("invalid method: "+b+". Must be one of "+x.join(", "));b=d[b]}if(!s(b))throw new TypeError("invalid method: kernel method must be a function!");var _=n[0],w=n[1],O=t.getColumn(_),j=e.extent;o(j)||(j=t.range(_));var S=e.bandwidth;(!c(S)||S<=0)&&(S=y(O));var M=p(j,S),E=O.length,P=(function(t,e,n,r){return t((r-n)/e)}).bind(null,b,S),C=void 0;if(u(w))C=r(function(t){var e=O.map(function(e){return P(t,e)}),n=h(e),r=E*S;return n&&r?n/r:0});else{var k=t.getColumn(w);C=r(function(t){var e=O.map(function(e){return P(t,e)}),n=h(e.map(function(t,e){return t*k[e]})),r=h(e);return n&&r?n/r:0})}var A=M.map(function(t){var e={};return e[f]=t,e[g]=C(t),e});t.rows=A}var a=n(4),o=n(3),s=n(13),u=n(247),c=n(132),l=n(9),f=n(11),h=n(27).sum,p=n(133),d=n(286),g=n(2).registerTransform,v=n(7).getFields,y=n(134).silverman,m={as:["x","y"],method:"gaussian"},x=f(d);g("kernel-smooth.regression",i),g("kernel.regression",i),t.exports={KERNEL_METHODS:x}}])}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Slider=e():t.Slider=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){var r=n(1);window&&!window.G2&&console.err("Please load the G2 script first!"),t.exports=r},function(t,e,n){var r=n(2),i=window&&window.G2,a=i.Chart,o=i.Util,s=i.Global,u=i.G.Canvas,c=o.DomUtil,l=function(t){return"number"==typeof t},f=function(){function t(t){this._initProps(),o.deepMix(this,t);var e=this.container;if(!e)throw new Error("Please specify the container for the Slider!");this.domContainer=o.isString(e)?document.getElementById(e):e,this.handleStyle=o.mix({width:this.height,height:this.height},this.handleStyle),"auto"===this.width&&window.addEventListener("resize",o.wrapBehavior(this,"_initForceFitEvent"))}var e=t.prototype;return e._initProps=function(){this.height=26,this.width="auto",this.padding=s.plotCfg.padding,this.container=null,this.xAxis=null,this.yAxis=null,this.fillerStyle={fill:"#BDCCED",fillOpacity:.3},this.backgroundStyle={stroke:"#CCD6EC",fill:"#CCD6EC",fillOpacity:.3,lineWidth:1},this.range=[0,100],this.layout="horizontal",this.textStyle={fill:"#545454"},this.handleStyle={img:"https://gw.alipayobjects.com/zos/rmsportal/QXtfhORGlDuRvLXFzpsQ.png",width:5},this.backgroundChart={type:["area"],color:"#CCD6EC"}},e._initForceFitEvent=function(){var t=setTimeout(o.wrapBehavior(this,"forceFit"),200);clearTimeout(this.resizeTimer),this.resizeTimer=t},e.forceFit=function(){if(this&&!this.destroyed){var t=c.getWidth(this.domContainer);if(t!==this.domWidth){var e=this.canvas;e.changeSize(t,this.height),this.bgChart&&this.bgChart.changeWidth(t),e.clear(),this._initWidth(),this._initSlider(),this._bindEvent(),e.draw()}}},e._initWidth=function(){var t;t="auto"===this.width?c.getWidth(this.domContainer):this.width,this.domWidth=t;var e=o.toAllPadding(this.padding);"horizontal"===this.layout?(this.plotWidth=t-e[1]-e[3],this.plotPadding=e[3],this.plotHeight=this.height):"vertical"===this.layout&&(this.plotWidth=this.width,this.plotHeight=this.height-e[0]-e[2],this.plotPadding=e[0])},e.render=function(){this._initWidth(),this._initCanvas(),this._initBackground(),this._initSlider(),this._bindEvent(),this.canvas.draw()},e.changeData=function(t){this.data=t,this.repaint()},e.destroy=function(){clearTimeout(this.resizeTimer),this.rangeElement.off("sliderchange"),this.bgChart&&this.bgChart.destroy(),this.canvas.destroy();for(var t=this.domContainer;t.hasChildNodes();)t.removeChild(t.firstChild);window.removeEventListener("resize",o.getWrapBehavior(this,"_initForceFitEvent")),this.destroyed=!0},e.clear=function(){this.canvas.clear(),this.bgChart&&this.bgChart.destroy(),this.bgChart=null,this.scale=null,this.canvas.draw()},e.repaint=function(){this.clear(),this.render()},e._initCanvas=function(){var t=new u({width:this.domWidth,height:this.height,containerDOM:this.domContainer,capture:!1}),e=t.get("el");e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.zIndex=3,this.canvas=t},e._initBackground=function(){var t,e=this.data,n=this.xAxis,r=this.yAxis,i=o.deepMix(((t={})[""+n]={range:[0,1]},t),this.scales);if(!e)throw new Error("Please specify the data!");if(!n)throw new Error("Please specify the xAxis!");if(!r)throw new Error("Please specify the yAxis!");var s=this.backgroundChart,u=s.type,c=s.color;o.isArray(u)||(u=[u]);var l=o.toAllPadding(this.padding),f=new a({container:this.container,width:this.domWidth,height:this.height,padding:[0,l[1],0,l[3]],animate:!1});f.source(e),f.scale(i),f.axis(!1),f.tooltip(!1),f.legend(!1),o.each(u,function(t){f[t]().position(n+"*"+r).color(c).opacity(1)}),f.render(),this.bgChart=f,this.scale="horizontal"===this.layout?f.getXScale():f.getYScales()[0],"vertical"===this.layout&&f.destroy()},e._initRange=function(){var t=this.startRadio,e=this.endRadio,n=this.start,r=this.end,i=this.scale,a=0,o=1;l(t)?a=t:n&&(a=i.scale(i.translate(n))),l(e)?o=e:r&&(o=i.scale(i.translate(r)));var s=this.minSpan,u=this.maxSpan,c=0;if("time"===i.type||"timeCat"===i.type){var f=i.values;c=f[f.length-1]-f[0]}else i.isLinear&&(c=i.max-i.min);c&&s&&(this.minRange=s/c*100),c&&u&&(this.maxRange=u/c*100);var h=[100*a,100*o];return this.range=h,h},e._getHandleValue=function(t){var e=this.range,n=e[1]/100,r=this.scale;return"min"===t?this.start?this.start:r.invert(e[0]/100):this.end?this.end:r.invert(n)},e._initSlider=function(){var t=this.canvas,e=this._initRange(),n=this.scale,i=t.addGroup(r,{middleAttr:this.fillerStyle,range:e,minRange:this.minRange,maxRange:this.maxRange,layout:this.layout,width:this.plotWidth,height:this.plotHeight,backgroundStyle:this.backgroundStyle,textStyle:this.textStyle,handleStyle:this.handleStyle,minText:n.getText(this._getHandleValue("min")),maxText:n.getText(this._getHandleValue("max"))});"horizontal"===this.layout?i.translate(this.plotPadding,0):"vertical"===this.layout&&i.translate(0,this.plotPadding),this.rangeElement=i},e._bindEvent=function(){var t=this;t.rangeElement.on("sliderchange",function(e){var n=e.range;t._updateElement(n[0]/100,n[1]/100)})},e._updateElement=function(t,e){var n=this.scale,r=this.rangeElement,i=r.get("minTextElement"),a=r.get("maxTextElement"),o=n.invert(t),s=n.invert(e),u=n.getText(o),c=n.getText(s);i.attr("text",u),a.attr("text",c),this.start=o,this.end=s,this.onChange&&this.onChange({startText:u,endText:c,startValue:o,endValue:s,startRadio:t,endRadio:e})},t}();t.exports=f},function(t,e){var n=window&&window.G2,r=n.Util,i=r.DomUtil,a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},n._initHandle=function(t){var e,n,i,a=this.addGroup(),o=this.get("layout"),s=this.get("handleStyle"),u=s.img,c=s.width,l=s.height;if("horizontal"===o){var f=s.width;n=a.addShape("Image",{attrs:{x:-f/2,y:0,width:f,height:l,img:u,cursor:i="ew-resize"}}),e=a.addShape("Text",{attrs:r.mix({x:"min"===t?-(f/2+5):f/2+5,y:l/2,textAlign:"min"===t?"end":"start",textBaseline:"middle",text:this.get("min"===t?"minText":"maxText"),cursor:i},this.get("textStyle"))})}else n=a.addShape("Image",{attrs:{x:0,y:-l/2,width:c,height:l,img:u,cursor:i="ns-resize"}}),e=a.addShape("Text",{attrs:r.mix({x:c/2,y:"min"===t?l/2+5:-(l/2+5),textAlign:"center",textBaseline:"middle",text:this.get("min"===t?"minText":"maxText"),cursor:i},this.get("textStyle"))});return this.set(t+"TextElement",e),this.set(t+"IconElement",n),a},n._initSliderBackground=function(){var t=this.addGroup();return t.initTransform(),t.translate(0,0),t.addShape("Rect",{attrs:r.mix({x:0,y:0,width:this.get("width"),height:this.get("height")},this.get("backgroundStyle"))}),t},n._beforeRenderUI=function(){var t=this._initSliderBackground(),e=this._initHandle("min"),n=this._initHandle("max"),r=this.addShape("rect",{attrs:this.get("middleAttr")});this.set("middleHandleElement",r),this.set("minHandleElement",e),this.set("maxHandleElement",n),this.set("backgroundElement",t),t.set("zIndex",0),r.set("zIndex",1),e.set("zIndex",2),n.set("zIndex",2),r.attr("cursor","move"),this.sort()},n._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},n._transform=function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix?(o.resetMatrix(),s.resetMatrix()):(o.initTransform(),s.initTransform()),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,0),s.translate(r*i,0)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(0,(1-n)*a),s.translate(0,(1-r)*a))},n._renderHorizontal=function(){this._transform("horizontal")},n._renderVertical=function(){this._transform("vertical")},n._bindUI=function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},n._isElement=function(t,e){var n=this.get(e);return t===n||!!n.isGroup&&n.get("children").indexOf(t)>-1},n._getRange=function(t,e){var n=t+e;return(n=n>100?100:n)<0?0:n},n._limitRange=function(t,e,n){n[0]=this._getRange(t,n[0]),n[1]=n[0]+e,n[1]>100&&(n[1]=100,n[0]=n[1]-e)},n._updateStatus=function(t,e){var n=this.get("x"===t?"width":"height");t=r.upperFirst(t);var i=this.get("range"),a=this.get("page"+t),o=this.get("currentTarget"),s=this.get("rangeStash"),u="vertical"===this.get("layout")?-1:1,c=e["page"+t],l=(c-a)/n*100*u,f=this.get("minRange"),h=this.get("maxRange");i[1]<=i[0]?(this._isElement(o,"minHandleElement")||this._isElement(o,"maxHandleElement"))&&(i[0]=this._getRange(l,i[0]),i[1]=this._getRange(l,i[0])):(this._isElement(o,"minHandleElement")&&(i[0]=this._getRange(l,i[0]),f&&i[1]-i[0]<=f&&this._limitRange(l,f,i),h&&i[1]-i[0]>=h&&this._limitRange(l,h,i)),this._isElement(o,"maxHandleElement")&&(i[1]=this._getRange(l,i[1]),f&&i[1]-i[0]<=f&&this._limitRange(l,f,i),h&&i[1]-i[0]>=h&&this._limitRange(l,h,i))),this._isElement(o,"middleHandleElement")&&this._limitRange(l,s[1]-s[0],i),this.emit("sliderchange",{range:i}),this.set("page"+t,c),this._renderUI(),this.get("canvas").draw()},n._onMouseDown=function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},n._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=i.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=i.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=i.addEventListener(t,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},n._onCanvasMouseMove=function(t){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)},n._onCanvasMouseUp=function(){this._removeDocumentEvents()},n._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove(),this.onMouseLeaveListener.remove()},e}(n.G.Group);t.exports=a}])}),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Ajv=t()}(function(){return function t(e,n,r){function i(o,s){if(!n[o]){if(!e[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[o]={exports:{}};e[o][0].call(l.exports,function(t){return i(e[o][1][t]||t)},l,l.exports,t,e,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,e,n){"use strict";var r=e.exports=function(){this._cache={}};r.prototype.put=function(t,e){this._cache[t]=e},r.prototype.get=function(t){return this._cache[t]},r.prototype.del=function(t){delete this._cache[t]},r.prototype.clear=function(){this._cache={}}},{}],2:[function(t,e,n){"use strict";var r=t("./error_classes").MissingRef;e.exports=function t(e,n,i){var a=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof n&&(i=n,n=void 0);var o=s(e).then(function(){var t=a._addSchema(e,void 0,n);return t.validate||function(t){try{return a._compile(t)}catch(e){if(e instanceof r)return function(e){var i=e.missingSchema;if(c(i))throw new Error("Schema "+i+" is loaded but "+e.missingRef+" cannot be resolved");var o=a._loadingSchemas[i];return o||(o=a._loadingSchemas[i]=a._opts.loadSchema(i)).then(u,u),o.then(function(t){if(!c(i))return s(t).then(function(){c(i)||a.addSchema(t,i,void 0,n)})}).then(function(){return function t(e){try{return a._compile(e)}catch(i){if(i instanceof r)return function(r){var i=r.missingSchema;if(c(i))throw new Error("Schema "+i+" is loaded but "+r.missingRef+" cannot be resolved");var o=a._loadingSchemas[i];return o||(o=a._loadingSchemas[i]=a._opts.loadSchema(i)).then(u,u),o.then(function(t){if(!c(i))return s(t).then(function(){c(i)||a.addSchema(t,i,void 0,n)})}).then(function(){return t(e)});function u(){delete a._loadingSchemas[i]}function c(t){return a._refs[t]||a._schemas[t]}}(i);throw i}}(t)});function u(){delete a._loadingSchemas[i]}function c(t){return a._refs[t]||a._schemas[t]}}(e);throw e}}(t)});return i&&o.then(function(t){i(null,t)},i),o;function s(e){var n=e.$schema;return n&&!a.getSchema(n)?t.call(a,{$ref:n},!0):Promise.resolve()}}},{"./error_classes":3}],3:[function(t,e,n){"use strict";var r=t("./resolve");function i(t,e,n){this.message=n||i.message(t,e),this.missingRef=r.url(t,e),this.missingSchema=r.normalizeId(r.fullPath(this.missingRef))}function a(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}e.exports={Validation:a(function(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}),MissingRef:a(i)},i.message=function(t,e){return"can't resolve reference "+e+" from id "+t}},{"./resolve":6}],4:[function(t,e,n){"use strict";var r=t("./util"),i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31],o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d:\d\d)?$/i,s=/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*$/i,u=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,l=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,h=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,d=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function g(t){return r.copy(g[t="full"==t?"full":"fast"])}function v(t){var e=t.match(i);if(!e)return!1;var n=+e[2],r=+e[3];return n>=1&&n<=12&&r>=1&&r<=(2==n&&function(t){return t%4==0&&(t%100!=0||t%400==0)}(+e[1])?29:a[n])}function y(t,e){var n=t.match(o);if(!n)return!1;var r=n[1],i=n[2],a=n[3];return(r<=23&&i<=59&&a<=59||23==r&&59==i&&60==a)&&(!e||n[5])}e.exports=g,g.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:l,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:_,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d},g.full={date:v,time:y,"date-time":function(t){var e=t.split(m);return 2==e.length&&v(e[0])&&y(e[1],!0)},uri:function(t){return x.test(t)&&u.test(t)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:l,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:function(t){return t.length<=255&&s.test(t)},ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:_,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d};var m=/t|\s/i,x=/\/|:/,b=/[^\\]\\Z/;function _(t){if(b.test(t))return!1;try{return new RegExp(t),!0}catch(t){return!1}}},{"./util":10}],5:[function(t,e,n){"use strict";var r=t("./resolve"),i=t("./util"),a=t("./error_classes"),o=t("fast-json-stable-stringify"),s=t("../dotjs/validate"),u=i.ucs2length,c=t("fast-deep-equal"),l=a.Validation;function f(t,e,n){for(var r=0;r<this._compilations.length;r++){var i=this._compilations[r];if(i.schema==t&&i.root==e&&i.baseId==n)return r}return-1}function h(t,e){return"var pattern"+t+" = new RegExp("+i.toQuotedString(e[t])+");"}function p(t){return"var default"+t+" = defaults["+t+"];"}function d(t,e){return void 0===e[t]?"":"var refVal"+t+" = refVal["+t+"];"}function g(t){return"var customRule"+t+" = customRules["+t+"];"}function v(t,e){if(!t.length)return"";for(var n="",r=0;r<t.length;r++)n+=e(r,t);return n}e.exports=function t(e,n,y,m){var x=this,b=this._opts,_=[void 0],w={},O=[],j={},S=[],M={},E=[],P=(function(t,e,n){var r=f.call(this,t,e,n);return r>=0?{index:r,compiling:!0}:(this._compilations[r=this._compilations.length]={schema:t,root:e,baseId:n},{index:r,compiling:!1})}).call(this,e,n=n||{schema:e,refVal:_,refs:w},m),C=this._compilations[P.index];if(P.compiling)return C.callValidate=function t(){var e=C.validate,n=e.apply(this,arguments);return t.errors=e.errors,n};var k=this._formats,A=this.RULES;try{var T=L(e,n,y,m);C.validate=T;var I=C.callValidate;return I&&(I.schema=T.schema,I.errors=null,I.refs=T.refs,I.refVal=T.refVal,I.root=T.root,I.$async=T.$async,b.sourceCode&&(I.source=T.source)),T}finally{(function(t,e,n){var r=f.call(this,t,e,n);r>=0&&this._compilations.splice(r,1)}).call(this,e,n,m)}function L(e,o,f,y){var m=!o||o&&o.schema==e;if(o.schema!=n.schema)return t.call(x,e,o,f,y);var j,M=!0===e.$async,P=s({isTop:!0,schema:e,isRoot:m,baseId:y,root:o,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:a.MissingRef,RULES:A,validate:s,util:i,resolve:r,resolveRef:R,usePattern:B,useDefault:N,useCustomRule:z,opts:b,formats:k,logger:x.logger,self:x});P=v(_,d)+v(O,h)+v(S,p)+v(E,g)+P,b.processCode&&(P=b.processCode(P));try{j=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",P)(x,A,k,n,_,S,E,c,u,l),_[0]=j}catch(t){throw x.logger.error("Error compiling schema, function code:",P),t}return j.schema=e,j.errors=null,j.refs=w,j.refVal=_,j.root=m?j:o,M&&(j.$async=!0),!0===b.sourceCode&&(j.source={code:P,patterns:O,defaults:S}),j}function R(e,i,a){i=r.url(e,i);var o,s,u=w[i];if(void 0!==u)return F(o=_[u],s="refVal["+u+"]");if(!a&&n.refs){var c=n.refs[i];if(void 0!==c)return s=D(i,o=n.refVal[c]),F(o,s)}s=D(i);var l=r.call(x,L,n,i);if(void 0===l){var f=y&&y[i];f&&(l=r.inlineRef(f,b.inlineRefs)?f:t.call(x,f,n,y,e))}if(void 0!==l)return function(t,e){_[w[t]]=e}(i,l),F(l,s);!function(t){delete w[t]}(i)}function D(t,e){var n=_.length;return _[n]=e,w[t]=n,"refVal"+n}function F(t,e){return"object"==typeof t||"boolean"==typeof t?{code:e,schema:t,inline:!0}:{code:e,$async:t&&!!t.$async}}function B(t){var e=j[t];return void 0===e&&(e=j[t]=O.length,O[e]=t),"pattern"+e}function N(t){switch(typeof t){case"boolean":case"number":return""+t;case"string":return i.toQuotedString(t);case"object":if(null===t)return"null";var e=o(t),n=M[e];return void 0===n&&(n=M[e]=S.length,S[n]=t),"default"+n}}function z(t,e,n,r){if(!1!==x._opts.validateSchema){var i=t.definition.dependencies;if(i&&!i.every(function(t){return Object.prototype.hasOwnProperty.call(n,t)}))throw new Error("parent schema must have all required keywords: "+i.join(","));var a=t.definition.validateSchema;if(a&&!a(e)){var o="keyword schema is invalid: "+x.errorsText(a.errors);if("log"!=x._opts.validateSchema)throw new Error(o);x.logger.error(o)}}var s,u=t.definition.compile,c=t.definition.inline,l=t.definition.macro;if(u)s=u.call(x,e,n,r);else if(l)s=l.call(x,e,n,r),!1!==b.validateSchema&&x.validateSchema(s,!0);else if(c)s=c.call(x,r,t.keyword,e,n);else if(!(s=t.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+t.keyword+'"failed to compile');var f=E.length;return E[f]=s,{code:"customRule"+f,validate:s}}}},{"../dotjs/validate":38,"./error_classes":3,"./resolve":6,"./util":10,"fast-deep-equal":42,"fast-json-stable-stringify":43}],6:[function(t,e,n){"use strict";var r=t("uri-js"),i=t("fast-deep-equal"),a=t("./util"),o=t("./schema_obj"),s=t("json-schema-traverse");function u(t,e,n){var r=this._refs[n];if("string"==typeof r){if(!this._refs[r])return u.call(this,t,e,r);r=this._refs[r]}if((r=r||this._schemas[n])instanceof o)return p(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r);var i,a,s,l=c.call(this,e,n);return l&&(i=l.schema,e=l.root,s=l.baseId),i instanceof o?a=i.validate||t.call(this,i.schema,e,void 0,s):void 0!==i&&(a=p(i,this._opts.inlineRefs)?i:t.call(this,i,e,void 0,s)),a}function c(t,e){var n=r.parse(e),i=g(n),a=d(this._getId(t.schema));if(0===Object.keys(t.schema).length||i!==a){var s=y(i),u=this._refs[s];if("string"==typeof u)return(function(t,e,n){var r=c.call(this,t,e);if(r){var i=r.schema,a=r.baseId;t=r.root;var o=this._getId(i);return o&&(a=m(a,o)),f.call(this,n,a,i,t)}}).call(this,t,u,n);if(u instanceof o)u.validate||this._compile(u),t=u;else{if(!((u=this._schemas[s])instanceof o))return;if(u.validate||this._compile(u),s==y(e))return{schema:u,root:t,baseId:a};t=u}if(!t.schema)return;a=d(this._getId(t.schema))}return f.call(this,n,a,t.schema,t)}e.exports=u,u.normalizeId=y,u.fullPath=d,u.url=m,u.ids=function(t){var e=y(this._getId(t)),n={"":e},o={"":d(e,!1)},u={},c=this;return s(t,{allKeys:!0},function(t,e,s,l,f,h,p){if(""!==e){var d=c._getId(t),g=n[l],v=o[l]+"/"+f;if(void 0!==p&&(v+="/"+("number"==typeof p?p:a.escapeFragment(p))),"string"==typeof d){d=g=y(g?r.resolve(g,d):d);var m=c._refs[d];if("string"==typeof m&&(m=c._refs[m]),m&&m.schema){if(!i(t,m.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=y(v))if("#"==d[0]){if(u[d]&&!i(t,u[d]))throw new Error('id "'+d+'" resolves to more than one schema');u[d]=t}else c._refs[d]=v}n[e]=g,o[e]=v}}),u},u.inlineRef=p,u.schema=c;var l=a.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function f(t,e,n,r){if(t.fragment=t.fragment||"","/"==t.fragment.slice(0,1)){for(var i=t.fragment.split("/"),o=1;o<i.length;o++){var s=i[o];if(s){if(void 0===(n=n[s=a.unescapeFragment(s)]))break;var u;if(!l[s]&&((u=this._getId(n))&&(e=m(e,u)),n.$ref)){var f=m(e,n.$ref),h=c.call(this,r,f);h&&(n=h.schema,r=h.root,e=h.baseId)}}}return void 0!==n&&n!==r.schema?{schema:n,root:r,baseId:e}:void 0}}var h=a.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function p(t,e){return!1!==e&&(void 0===e||!0===e?function t(e){var n;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(n=e[r])&&!t(n))return!1}else for(var i in e){if("$ref"==i)return!1;if("object"==typeof(n=e[i])&&!t(n))return!1}return!0}(t):e?function t(e){var n,r=0;if(Array.isArray(e)){for(var i=0;i<e.length;i++)if("object"==typeof(n=e[i])&&(r+=t(n)),r==1/0)return 1/0}else for(var a in e){if("$ref"==a)return 1/0;if(h[a])r++;else if("object"==typeof(n=e[a])&&(r+=t(n)+1),r==1/0)return 1/0}return r}(t)<=e:void 0)}function d(t,e){return!1!==e&&(t=y(t)),g(r.parse(t))}function g(t){return r.serialize(t).split("#")[0]+"#"}var v=/#\/?$/;function y(t){return t?t.replace(v,""):""}function m(t,e){return e=y(e),r.resolve(t,e)}},{"./schema_obj":8,"./util":10,"fast-deep-equal":42,"json-schema-traverse":44,"uri-js":45}],7:[function(t,e,n){"use strict";var r=t("../dotjs"),i=t("./util").toHash;e.exports=function(){var t=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],e=["type","$comment"];return t.all=i(e),t.types=i(["number","integer","string","array","object","boolean","null"]),t.forEach(function(n){n.rules=n.rules.map(function(n){var i;if("object"==typeof n){var a=Object.keys(n)[0];i=n[a],n=a,i.forEach(function(n){e.push(n),t.all[n]=!0})}return e.push(n),t.all[n]={keyword:n,code:r[n],implements:i}}),t.all.$comment={keyword:"$comment",code:r.$comment},n.type&&(t.types[n.type]=n)}),t.keywords=i(e.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),t.custom={},t}},{"../dotjs":27,"./util":10}],8:[function(t,e,n){"use strict";var r=t("./util");e.exports=function(t){r.copy(t,this)}},{"./util":10}],9:[function(t,e,n){"use strict";e.exports=function(t){for(var e,n=0,r=t.length,i=0;i<r;)n++,(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<r&&56320==(64512&(e=t.charCodeAt(i)))&&i++;return n}},{}],10:[function(t,e,n){"use strict";function r(t,e,n){var r=n?" !== ":" === ",i=n?" || ":" && ",a=n?"!":"",o=n?"":"!";switch(t){case"null":return e+r+"null";case"array":return a+"Array.isArray("+e+")";case"object":return"("+a+e+i+"typeof "+e+r+'"object"'+i+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+r+'"number"'+i+o+"("+e+" % 1)"+i+e+r+e+")";default:return"typeof "+e+r+'"'+t+'"'}}e.exports={copy:function(t,e){for(var n in e=e||{},t)e[n]=t[n];return e},checkDataType:r,checkDataTypes:function(t,e){switch(t.length){case 1:return r(t[0],e,!0);default:var n="",i=a(t);for(var o in i.array&&i.object&&(n=i.null?"(":"(!"+e+" || ",n+="typeof "+e+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)n+=(n?" && ":"")+r(o,e,!0);return n}},coerceToTypes:function(t,e){if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++){var a=e[r];i[a]?n[n.length]=a:"array"===t&&"array"===a&&(n[n.length]=a)}if(n.length)return n}else{if(i[e])return[e];if("array"===t&&"array"===e)return["array"]}},toHash:a,getProperty:u,escapeQuotes:c,equal:t("fast-deep-equal"),ucs2length:t("./ucs2length"),varOccurences:function(t,e){var n=t.match(new RegExp(e+="[^0-9]","g"));return n?n.length:0},varReplace:function(t,e,n){return e+="([^0-9])",n=n.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),n+"$1")},cleanUpCode:function(t){return t.replace(l,"").replace(f,"").replace(h,"if (!($1))")},finalCleanUpCode:function(t,e){var n=t.match(p);return n&&2==n.length&&(t=e?t.replace(g,"").replace(m,x):t.replace(d,"").replace(v,y)),(n=t.match(b))&&3===n.length?t.replace(_,""):t},schemaHasRules:function(t,e){if("boolean"==typeof t)return!t;for(var n in t)if(e[n])return!0},schemaHasRulesExcept:function(t,e,n){if("boolean"==typeof t)return!t&&"not"!=n;for(var r in t)if(r!=n&&e[r])return!0},schemaUnknownRules:function(t,e){if("boolean"!=typeof t)for(var n in t)if(!e[n])return n},toQuotedString:w,getPathExpr:function(t,e,n,r){return S(t,n?"'/' + "+e+(r?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):r?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'")},getPath:function(t,e,n){return S(t,w(n?"/"+M(e):u(e)))},getData:function(t,e,n){var r,i,a,o;if(""===t)return"rootData";if("/"==t[0]){if(!O.test(t))throw new Error("Invalid JSON-pointer: "+t);i=t,a="rootData"}else{if(!(o=t.match(j)))throw new Error("Invalid JSON-pointer: "+t);if(r=+o[1],"#"==(i=o[2])){if(r>=e)throw new Error("Cannot access property/index "+r+" levels up, current level is "+e);return n[e-r]}if(r>e)throw new Error("Cannot access data "+r+" levels up, current level is "+e);if(a="data"+(e-r||""),!i)return a}for(var s=a,c=i.split("/"),l=0;l<c.length;l++){var f=c[l];f&&(s+=" && "+(a+=u(E(f))))}return s},unescapeFragment:function(t){return E(decodeURIComponent(t))},unescapeJsonPointer:E,escapeFragment:function(t){return encodeURIComponent(M(t))},escapeJsonPointer:M};var i=a(["string","number","integer","boolean","null"]);function a(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}var o=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function u(t){return"number"==typeof t?"["+t+"]":o.test(t)?"."+t:"['"+c(t)+"']"}function c(t){return t.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}var l=/else\s*{\s*}/g,f=/if\s*\([^)]+\)\s*\{\s*\}(?!\s*else)/g,h=/if\s*\(([^)]+)\)\s*\{\s*\}\s*else(?!\s*if)/g,p=/[^v.]errors/g,d=/var errors = 0;|var vErrors = null;|validate.errors = vErrors;/g,g=/var errors = 0;|var vErrors = null;/g,v="return errors === 0;",y="validate.errors = null; return true;",m=/if \(errors === 0\) return data;\s*else throw new ValidationError\(vErrors\);/,x="return data;",b=/[^A-Za-z_$]rootData[^A-Za-z0-9_$]/g,_=/if \(rootData === undefined\) rootData = data;/;function w(t){return"'"+c(t)+"'"}var O=/^\/(?:[^~]|~0|~1)*$/,j=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function S(t,e){return'""'==t?e:(t+" + "+e).replace(/' \+ '/g,"")}function M(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function E(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}},{"./ucs2length":9,"fast-deep-equal":42}],11:[function(t,e,n){"use strict";var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(t,e){for(var n=0;n<e.length;n++){t=JSON.parse(JSON.stringify(t));var i,a=e[n].split("/"),o=t;for(i=1;i<a.length;i++)o=o[a[i]];for(i=0;i<r.length;i++){var s=r[i],u=o[s];u&&(o[s]={anyOf:[u,{$ref:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#"}]})}}return t}},{}],12:[function(t,e,n){"use strict";var r=t("./refs/json-schema-draft-07.json");e.exports={$id:"https://github.com/epoberezkin/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:r.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:r.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},{"./refs/json-schema-draft-07.json":41}],13:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i=" ",a=t.level,o=t.dataLevel,s=t.schema[e],u=t.schemaPath+t.util.getProperty(e),c=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,f="data"+(o||""),h=t.opts.$data&&s&&s.$data;h?(i+=" var schema"+a+" = "+t.util.getData(s.$data,o,t.dataPathArr)+"; ",r="schema"+a):r=s;var p="maximum"==e,d=p?"exclusiveMaximum":"exclusiveMinimum",g=t.schema[d],v=t.opts.$data&&g&&g.$data,y=p?"<":">",m=p?">":"<",x=void 0;if(v){var b,_=t.util.getData(g.$data,o,t.dataPathArr),w="exclusive"+a,O="exclType"+a,j="exclIsNumber"+a,S="' + "+(E="op"+a)+" + '";i+=" var schemaExcl"+a+" = "+_+"; ",i+=" var "+w+"; var "+O+" = typeof "+(_="schemaExcl"+a)+"; if ("+O+" != 'boolean' && "+O+" != 'undefined' && "+O+" != 'number') { ",x=d,(b=b||[]).push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(x||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: {} ",!1!==t.opts.messages&&(i+=" , message: '"+d+" should be boolean' "),t.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var M=i;i=b.pop(),i+=!t.compositeRule&&l?t.async?" throw new ValidationError(["+M+"]); ":" validate.errors = ["+M+"]; return false; ":" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",h&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+O+" == 'number' ? ( ("+w+" = "+r+" === undefined || "+_+" "+y+"= "+r+") ? "+f+" "+m+"= "+_+" : "+f+" "+m+" "+r+" ) : ( ("+w+" = "+_+" === true) ? "+f+" "+m+"= "+r+" : "+f+" "+m+" "+r+" ) || "+f+" !== "+f+") { var op"+a+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(x=d,c=t.errSchemaPath+"/"+d,r=_,h=v)}else if(S=y,(j="number"==typeof g)&&h){var E="'"+S+"'";i+=" if ( ",h&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" ( "+r+" === undefined || "+g+" "+y+"= "+r+" ? "+f+" "+m+"= "+g+" : "+f+" "+m+" "+r+" ) || "+f+" !== "+f+") { "}else j&&void 0===s?(w=!0,x=d,c=t.errSchemaPath+"/"+d,r=g,m+="="):(j&&(r=Math[p?"min":"max"](g,s)),g===(!j||r)?(w=!0,x=d,c=t.errSchemaPath+"/"+d,m+="="):(w=!1,S+="=")),E="'"+S+"'",i+=" if ( ",h&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+f+" "+m+" "+r+" || "+f+" !== "+f+") { ";return x=x||e,(b=b||[]).push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(x||"_limit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { comparison: "+E+", limit: "+r+", exclusive: "+w+" } ",!1!==t.opts.messages&&(i+=" , message: 'should be "+S+" ",i+=h?"' + "+r:r+"'"),t.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",M=i,i=b.pop(),i+=!t.compositeRule&&l?t.async?" throw new ValidationError(["+M+"]); ":" validate.errors = ["+M+"]; return false; ":" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { "),i}},{}],14:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i=" ",a=t.level,o=t.dataLevel,s=t.schema[e],u=t.schemaPath+t.util.getProperty(e),c=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,f="data"+(o||""),h=t.opts.$data&&s&&s.$data;h?(i+=" var schema"+a+" = "+t.util.getData(s.$data,o,t.dataPathArr)+"; ",r="schema"+a):r=s,i+="if ( ",h&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+f+".length "+("maxItems"==e?">":"<")+" "+r+") { ";var p=e,d=d||[];d.push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==e?"more":"fewer",i+=" than ",i+=h?"' + "+r+" + '":""+s,i+=" items' "),t.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var g=i;return i=d.pop(),i+=!t.compositeRule&&l?t.async?" throw new ValidationError(["+g+"]); ":" validate.errors = ["+g+"]; return false; ":" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},{}],15:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i=" ",a=t.level,o=t.dataLevel,s=t.schema[e],u=t.schemaPath+t.util.getProperty(e),c=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,f="data"+(o||""),h=t.opts.$data&&s&&s.$data;h?(i+=" var schema"+a+" = "+t.util.getData(s.$data,o,t.dataPathArr)+"; ",r="schema"+a):r=s,i+="if ( ",h&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=!1===t.opts.unicode?" "+f+".length ":" ucs2length("+f+") ",i+=" "+("maxLength"==e?">":"<")+" "+r+") { ";var p=e,d=d||[];d.push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==e?"longer":"shorter",i+=" than ",i+=h?"' + "+r+" + '":""+s,i+=" characters' "),t.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var g=i;return i=d.pop(),i+=!t.compositeRule&&l?t.async?" throw new ValidationError(["+g+"]); ":" validate.errors = ["+g+"]; return false; ":" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},{}],16:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i=" ",a=t.level,o=t.dataLevel,s=t.schema[e],u=t.schemaPath+t.util.getProperty(e),c=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,f="data"+(o||""),h=t.opts.$data&&s&&s.$data;h?(i+=" var schema"+a+" = "+t.util.getData(s.$data,o,t.dataPathArr)+"; ",r="schema"+a):r=s,i+="if ( ",h&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" Object.keys("+f+").length "+("maxProperties"==e?">":"<")+" "+r+") { ";var p=e,d=d||[];d.push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { limit: "+r+" } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==e?"more":"fewer",i+=" than ",i+=h?"' + "+r+" + '":""+s,i+=" properties' "),t.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var g=i;return i=d.pop(),i+=!t.compositeRule&&l?t.async?" throw new ValidationError(["+g+"]); ":" validate.errors = ["+g+"]; return false; ":" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},{}],17:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.schema[e],a=t.schemaPath+t.util.getProperty(e),o=t.errSchemaPath+"/"+e,s=!t.opts.allErrors,u=t.util.copy(t),c="";u.level++;var l="valid"+u.level,f=u.baseId,h=!0,p=i;if(p)for(var d,g=-1,v=p.length-1;g<v;)d=p[g+=1],(t.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0:t.util.schemaHasRules(d,t.RULES.all))&&(h=!1,u.schema=d,u.schemaPath=a+"["+g+"]",u.errSchemaPath=o+"/"+g,r+=" "+t.validate(u)+" ",u.baseId=f,s&&(r+=" if ("+l+") { ",c+="}"));return s&&(r+=h?" if (true) { ":" "+c.slice(0,-1)+" "),t.util.cleanUpCode(r)}},{}],18:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="valid"+i,h="errs__"+i,p=t.util.copy(t),d="";p.level++;var g="valid"+p.level;if(o.every(function(e){return t.opts.strictKeywords?"object"==typeof e&&Object.keys(e).length>0:t.util.schemaHasRules(e,t.RULES.all)})){var v=p.baseId;r+=" var "+h+" = errors; var "+f+" = false; ";var y=t.compositeRule;t.compositeRule=p.compositeRule=!0;var m=o;if(m)for(var x,b=-1,_=m.length-1;b<_;)x=m[b+=1],p.schema=x,p.schemaPath=s+"["+b+"]",p.errSchemaPath=u+"/"+b,r+=" "+t.validate(p)+" ",p.baseId=v,r+=" "+f+" = "+f+" || "+g+"; if (!"+f+") { ",d+="}";t.compositeRule=p.compositeRule=y,r+=" "+d+" if (!"+f+") { var err = ",!1!==t.createErrors?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",!1!==t.opts.messages&&(r+=" , message: 'should match some schema in anyOf' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(r+=t.async?" throw new ValidationError(vErrors); ":" validate.errors = vErrors; return false; "),r+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",t.opts.allErrors&&(r+=" } "),r=t.util.cleanUpCode(r)}else c&&(r+=" if (true) { ");return r}},{}],19:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.errSchemaPath+"/"+e,a=t.util.toQuotedString(t.schema[e]);return!0===t.opts.$comment?r+=" console.log("+a+");":"function"==typeof t.opts.$comment&&(r+=" self._opts.$comment("+a+", "+t.util.toQuotedString(i)+", validate.root.schema);"),r}},{}],20:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="valid"+i,h=t.opts.$data&&o&&o.$data;h&&(r+=" var schema"+i+" = "+t.util.getData(o.$data,a,t.dataPathArr)+"; "),h||(r+=" var schema"+i+" = validate.schema"+s+";"),r+="var "+f+" = equal("+l+", schema"+i+"); if (!"+f+") { ";var p=p||[];p.push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { allowedValue: schema"+i+" } ",!1!==t.opts.messages&&(r+=" , message: 'should be equal to constant' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ";var d=r;return r=p.pop(),r+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+d+"]); ":" validate.errors = ["+d+"]; return false; ":" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",c&&(r+=" else { "),r}},{}],21:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="valid"+i,h="errs__"+i,p=t.util.copy(t);p.level++;var d="valid"+p.level,g="i"+i,v=p.dataLevel=t.dataLevel+1,y="data"+v,m=t.baseId,x=t.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0:t.util.schemaHasRules(o,t.RULES.all);if(r+="var "+h+" = errors;var "+f+";",x){var b=t.compositeRule;t.compositeRule=p.compositeRule=!0,p.schema=o,p.schemaPath=s,p.errSchemaPath=u,r+=" var "+d+" = false; for (var "+g+" = 0; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers,!0);var _=l+"["+g+"]";p.dataPathArr[v]=g;var w=t.validate(p);p.baseId=m,t.util.varOccurences(w,y)<2?r+=" "+t.util.varReplace(w,y,_)+" ":r+=" var "+y+" = "+_+"; "+w+" ",r+=" if ("+d+") break; } ",t.compositeRule=p.compositeRule=b,r+=" if (!"+d+") {"}else r+=" if ("+l+".length == 0) {";var O=O||[];O.push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",!1!==t.opts.messages&&(r+=" , message: 'should contain a valid item' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ";var j=r;return r=O.pop(),r+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+j+"]); ":" validate.errors = ["+j+"]; return false; ":" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",x&&(r+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),t.opts.allErrors&&(r+=" } "),t.util.cleanUpCode(r)}},{}],22:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i,a=" ",o=t.level,s=t.dataLevel,u=t.schema[e],c=t.schemaPath+t.util.getProperty(e),l=t.errSchemaPath+"/"+e,f=!t.opts.allErrors,h="data"+(s||""),p="valid"+o,d="errs__"+o,g=t.opts.$data&&u&&u.$data;g?(a+=" var schema"+o+" = "+t.util.getData(u.$data,s,t.dataPathArr)+"; ",i="schema"+o):i=u;var v,y,m,x,b,_="definition"+o,w=this.definition,O="";if(g&&w.$data){var j=w.validateSchema;a+=" var "+_+" = RULES.custom['"+e+"'].definition; var "+(b="keywordValidate"+o)+" = "+_+".validate;"}else{if(!(x=t.useCustomRule(this,u,t.schema,t)))return;i="validate.schema"+c,b=x.code,v=w.compile,y=w.inline,m=w.macro}var S=b+".errors",M="i"+o,E="ruleErr"+o,P=w.async;if(P&&!t.async)throw new Error("async keyword in sync schema");if(y||m||(a+=S+" = null;"),a+="var "+d+" = errors;var "+p+";",g&&w.$data&&(O+="}",a+=" if ("+i+" === undefined) { "+p+" = true; } else { ",j&&(O+="}",a+=" "+p+" = "+_+".validateSchema("+i+"); if ("+p+") { ")),y)a+=w.statements?" "+x.validate+" ":" "+p+" = "+x.validate+"; ";else if(m){var C=t.util.copy(t);O="",C.level++;var k="valid"+C.level;C.schema=x.validate,C.schemaPath="";var A=t.compositeRule;t.compositeRule=C.compositeRule=!0;var T=t.validate(C).replace(/validate\.schema/g,b);t.compositeRule=C.compositeRule=A,a+=" "+T}else{(D=D||[]).push(a),a="",a+=" "+b+".call( ",a+=t.opts.passContext?"this":"self",a+=v||!1===w.schema?" , "+h+" ":" , "+i+" , "+h+" , validate.schema"+t.schemaPath+" ",a+=" , (dataPath || '')",'""'!=t.errorPath&&(a+=" + "+t.errorPath);var I=s?"data"+(s-1||""):"parentData",L=s?t.dataPathArr[s]:"parentDataProperty",R=a+=" , "+I+" , "+L+" , rootData ) ";a=D.pop(),!1===w.errors?(a+=" "+p+" = ",P&&(a+="await "),a+=R+"; "):a+=P?" var "+(S="customErrors"+o)+" = null; try { "+p+" = await "+R+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+S+" = e.errors; else throw e; } ":" "+S+" = null; "+p+" = "+R+"; "}if(w.modifying&&(a+=" if ("+I+") "+h+" = "+I+"["+L+"];"),a+=""+O,w.valid)f&&(a+=" if (true) { ");else{var D;a+=" if ( ",void 0===w.valid?(a+=" !",a+=m?""+k:""+p):a+=" "+!w.valid+" ",a+=") { ",r=this.keyword,(D=D||[]).push(a),a="",(D=D||[]).push(a),a="",!1!==t.createErrors?(a+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { keyword: '"+this.keyword+"' } ",!1!==t.opts.messages&&(a+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),t.opts.verbose&&(a+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),a+=" } "):a+=" {} ";var F=a;a=D.pop();var B=a+=!t.compositeRule&&f?t.async?" throw new ValidationError(["+F+"]); ":" validate.errors = ["+F+"]; return false; ":" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";a=D.pop(),y?w.errors?"full"!=w.errors&&(a+=" for (var "+M+"="+d+"; "+M+"<errors; "+M+"++) { var "+E+" = vErrors["+M+"]; if ("+E+".dataPath === undefined) "+E+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+E+".schemaPath === undefined) { "+E+'.schemaPath = "'+l+'"; } ',t.opts.verbose&&(a+=" "+E+".schema = "+i+"; "+E+".data = "+h+"; "),a+=" } "):!1===w.errors?a+=" "+B+" ":(a+=" if ("+d+" == errors) { "+B+" } else { for (var "+M+"="+d+"; "+M+"<errors; "+M+"++) { var "+E+" = vErrors["+M+"]; if ("+E+".dataPath === undefined) "+E+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+E+".schemaPath === undefined) { "+E+'.schemaPath = "'+l+'"; } ',t.opts.verbose&&(a+=" "+E+".schema = "+i+"; "+E+".data = "+h+"; "),a+=" } } "):m?(a+=" var err = ",!1!==t.createErrors?(a+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { keyword: '"+this.keyword+"' } ",!1!==t.opts.messages&&(a+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),t.opts.verbose&&(a+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&f&&(a+=t.async?" throw new ValidationError(vErrors); ":" validate.errors = vErrors; return false; ")):!1===w.errors?a+=" "+B+" ":(a+=" if (Array.isArray("+S+")) { if (vErrors === null) vErrors = "+S+"; else vErrors = vErrors.concat("+S+"); errors = vErrors.length; for (var "+M+"="+d+"; "+M+"<errors; "+M+"++) { var "+E+" = vErrors["+M+"]; if ("+E+".dataPath === undefined) "+E+".dataPath = (dataPath || '') + "+t.errorPath+"; "+E+'.schemaPath = "'+l+'"; ',t.opts.verbose&&(a+=" "+E+".schema = "+i+"; "+E+".data = "+h+"; "),a+=" } } else { "+B+" } "),a+=" } ",f&&(a+=" else { ")}return a}},{}],23:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="errs__"+i,h=t.util.copy(t),p="";h.level++;var d="valid"+h.level,g={},v={},y=t.opts.ownProperties;for(_ in o){var m=o[_],x=Array.isArray(m)?v:g;x[_]=m}r+="var "+f+" = errors;";var b=t.errorPath;for(var _ in r+="var missing"+i+";",v)if((x=v[_]).length){if(r+=" if ( "+l+t.util.getProperty(_)+" !== undefined ",y&&(r+=" && Object.prototype.hasOwnProperty.call("+l+", '"+t.util.escapeQuotes(_)+"') "),c){r+=" && ( ";var w=x;if(w)for(var O=-1,j=w.length-1;O<j;)k=w[O+=1],O&&(r+=" || "),r+=" ( ( "+(L=l+(I=t.util.getProperty(k)))+" === undefined ",y&&(r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+t.util.escapeQuotes(k)+"') "),r+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?k:I)+") ) ";r+=")) { ";var S="missing"+i,M="' + "+S+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(b,S,!0):b+" + "+S);var E=E||[];E.push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { property: '"+t.util.escapeQuotes(_)+"', missingProperty: '"+M+"', depsCount: "+x.length+", deps: '"+t.util.escapeQuotes(1==x.length?x[0]:x.join(", "))+"' } ",!1!==t.opts.messages&&(r+=" , message: 'should have ",r+=1==x.length?"property "+t.util.escapeQuotes(x[0]):"properties "+t.util.escapeQuotes(x.join(", ")),r+=" when property "+t.util.escapeQuotes(_)+" is present' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ";var P=r;r=E.pop(),r+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+P+"]); ":" validate.errors = ["+P+"]; return false; ":" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var C=x;if(C)for(var k,A=-1,T=C.length-1;A<T;){k=C[A+=1];var I=t.util.getProperty(k),L=(M=t.util.escapeQuotes(k),l+I);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(b,k,t.opts.jsonPointers)),r+=" if ( "+L+" === undefined ",y&&(r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+t.util.escapeQuotes(k)+"') "),r+=") { var err = ",!1!==t.createErrors?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { property: '"+t.util.escapeQuotes(_)+"', missingProperty: '"+M+"', depsCount: "+x.length+", deps: '"+t.util.escapeQuotes(1==x.length?x[0]:x.join(", "))+"' } ",!1!==t.opts.messages&&(r+=" , message: 'should have ",r+=1==x.length?"property "+t.util.escapeQuotes(x[0]):"properties "+t.util.escapeQuotes(x.join(", ")),r+=" when property "+t.util.escapeQuotes(_)+" is present' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",c&&(p+="}",r+=" else { ")}t.errorPath=b;var R=h.baseId;for(var _ in g)m=g[_],(t.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0:t.util.schemaHasRules(m,t.RULES.all))&&(r+=" "+d+" = true; if ( "+l+t.util.getProperty(_)+" !== undefined ",y&&(r+=" && Object.prototype.hasOwnProperty.call("+l+", '"+t.util.escapeQuotes(_)+"') "),r+=") { ",h.schema=m,h.schemaPath=s+t.util.getProperty(_),h.errSchemaPath=u+"/"+t.util.escapeFragment(_),r+=" "+t.validate(h)+" ",h.baseId=R,r+=" } ",c&&(r+=" if ("+d+") { ",p+="}"));return c&&(r+=" "+p+" if ("+f+" == errors) {"),t.util.cleanUpCode(r)}},{}],24:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="valid"+i,h=t.opts.$data&&o&&o.$data;h&&(r+=" var schema"+i+" = "+t.util.getData(o.$data,a,t.dataPathArr)+"; ");var p="i"+i,d="schema"+i;h||(r+=" var "+d+" = validate.schema"+s+";"),r+="var "+f+";",h&&(r+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),r+=f+" = false;for (var "+p+"=0; "+p+"<"+d+".length; "+p+"++) if (equal("+l+", "+d+"["+p+"])) { "+f+" = true; break; }",h&&(r+=" } "),r+=" if (!"+f+") { ";var g=g||[];g.push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",!1!==t.opts.messages&&(r+=" , message: 'should be equal to one of the allowed values' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ";var v=r;return r=g.pop(),r+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+v+"]); ":" validate.errors = ["+v+"]; return false; ":" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",c&&(r+=" else { "),r}},{}],25:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||"");if(!1===t.opts.format)return c&&(r+=" if (true) { "),r;var f,h=t.opts.$data&&o&&o.$data;h?(r+=" var schema"+i+" = "+t.util.getData(o.$data,a,t.dataPathArr)+"; ",f="schema"+i):f=o;var p=t.opts.unknownFormats,d=Array.isArray(p);if(h)r+=" var "+(g="format"+i)+" = formats["+f+"]; var "+(v="isObject"+i)+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+(y="formatType"+i)+" = "+v+" && "+g+".type || 'string'; if ("+v+") { ",t.async&&(r+=" var async"+i+" = "+g+".async; "),r+=" "+g+" = "+g+".validate; } if ( ",h&&(r+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),r+=" (","ignore"!=p&&(r+=" ("+f+" && !"+g+" ",d&&(r+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),r+=") || "),r+=" ("+g+" && "+y+" == '"+n+"' && !(typeof "+g+" == 'function' ? ",r+=t.async?" (async"+i+" ? await "+g+"("+l+") : "+g+"("+l+")) ":" "+g+"("+l+") ",r+=" : "+g+".test("+l+"))))) {";else{var g;if(!(g=t.formats[o])){if("ignore"==p)return t.logger.warn('unknown format "'+o+'" ignored in schema at path "'+t.errSchemaPath+'"'),c&&(r+=" if (true) { "),r;if(d&&p.indexOf(o)>=0)return c&&(r+=" if (true) { "),r;throw new Error('unknown format "'+o+'" is used in schema at path "'+t.errSchemaPath+'"')}var v,y=(v="object"==typeof g&&!(g instanceof RegExp)&&g.validate)&&g.type||"string";if(v){var m=!0===g.async;g=g.validate}if(y!=n)return c&&(r+=" if (true) { "),r;if(m){if(!t.async)throw new Error("async format in sync schema");r+=" if (!(await "+(x="formats"+t.util.getProperty(o)+".validate")+"("+l+"))) { "}else{r+=" if (! ";var x="formats"+t.util.getProperty(o);v&&(x+=".validate"),r+="function"==typeof g?" "+x+"("+l+") ":" "+x+".test("+l+") ",r+=") { "}}var b=b||[];b.push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { format: ",r+=h?""+f:""+t.util.toQuotedString(o),r+=" } ",!1!==t.opts.messages&&(r+=" , message: 'should match format \"",r+=h?"' + "+f+" + '":""+t.util.escapeQuotes(o),r+="\"' "),t.opts.verbose&&(r+=" , schema: ",r+=h?"validate.schema"+s:""+t.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ";var _=r;return r=b.pop(),r+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+_+"]); ":" validate.errors = ["+_+"]; return false; ":" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",c&&(r+=" else { "),r}},{}],26:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="valid"+i,h="errs__"+i,p=t.util.copy(t);p.level++;var d="valid"+p.level,g=t.schema.then,v=t.schema.else,y=void 0!==g&&(t.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0:t.util.schemaHasRules(g,t.RULES.all)),m=void 0!==v&&(t.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0:t.util.schemaHasRules(v,t.RULES.all)),x=p.baseId;if(y||m){var b;p.createErrors=!1,p.schema=o,p.schemaPath=s,p.errSchemaPath=u,r+=" var "+h+" = errors; var "+f+" = true; ";var _=t.compositeRule;t.compositeRule=p.compositeRule=!0,r+=" "+t.validate(p)+" ",p.baseId=x,p.createErrors=!0,r+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",t.compositeRule=p.compositeRule=_,y?(r+=" if ("+d+") { ",p.schema=t.schema.then,p.schemaPath=t.schemaPath+".then",p.errSchemaPath=t.errSchemaPath+"/then",r+=" "+t.validate(p)+" ",p.baseId=x,r+=" "+f+" = "+d+"; ",y&&m?r+=" var "+(b="ifClause"+i)+" = 'then'; ":b="'then'",r+=" } ",m&&(r+=" else { ")):r+=" if (!"+d+") { ",m&&(p.schema=t.schema.else,p.schemaPath=t.schemaPath+".else",p.errSchemaPath=t.errSchemaPath+"/else",r+=" "+t.validate(p)+" ",p.baseId=x,r+=" "+f+" = "+d+"; ",y&&m?r+=" var "+(b="ifClause"+i)+" = 'else'; ":b="'else'",r+=" } "),r+=" if (!"+f+") { var err = ",!1!==t.createErrors?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { failingKeyword: "+b+" } ",!1!==t.opts.messages&&(r+=" , message: 'should match \"' + "+b+" + '\" schema' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(r+=t.async?" throw new ValidationError(vErrors); ":" validate.errors = vErrors; return false; "),r+=" } ",c&&(r+=" else { "),r=t.util.cleanUpCode(r)}else c&&(r+=" if (true) { ");return r}},{}],27:[function(t,e,n){"use strict";e.exports={$ref:t("./ref"),allOf:t("./allOf"),anyOf:t("./anyOf"),$comment:t("./comment"),const:t("./const"),contains:t("./contains"),dependencies:t("./dependencies"),enum:t("./enum"),format:t("./format"),if:t("./if"),items:t("./items"),maximum:t("./_limit"),minimum:t("./_limit"),maxItems:t("./_limitItems"),minItems:t("./_limitItems"),maxLength:t("./_limitLength"),minLength:t("./_limitLength"),maxProperties:t("./_limitProperties"),minProperties:t("./_limitProperties"),multipleOf:t("./multipleOf"),not:t("./not"),oneOf:t("./oneOf"),pattern:t("./pattern"),properties:t("./properties"),propertyNames:t("./propertyNames"),required:t("./required"),uniqueItems:t("./uniqueItems"),validate:t("./validate")}},{"./_limit":13,"./_limitItems":14,"./_limitLength":15,"./_limitProperties":16,"./allOf":17,"./anyOf":18,"./comment":19,"./const":20,"./contains":21,"./dependencies":23,"./enum":24,"./format":25,"./if":26,"./items":28,"./multipleOf":29,"./not":30,"./oneOf":31,"./pattern":32,"./properties":33,"./propertyNames":34,"./ref":35,"./required":36,"./uniqueItems":37,"./validate":38}],28:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="valid"+i,h="errs__"+i,p=t.util.copy(t),d="";p.level++;var g="valid"+p.level,v="i"+i,y=p.dataLevel=t.dataLevel+1,m="data"+y,x=t.baseId;if(r+="var "+h+" = errors;var "+f+";",Array.isArray(o)){var b=t.schema.additionalItems;if(!1===b){r+=" "+f+" = "+l+".length <= "+o.length+"; ";var _=u;u=t.errSchemaPath+"/additionalItems",r+=" if (!"+f+") { ";var w=w||[];w.push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { limit: "+o.length+" } ",!1!==t.opts.messages&&(r+=" , message: 'should NOT have more than "+o.length+" items' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ";var O=r;r=w.pop(),r+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+O+"]); ":" validate.errors = ["+O+"]; return false; ":" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",u=_,c&&(d+="}",r+=" else { ")}var j=o;if(j)for(var S,M=-1,E=j.length-1;M<E;)if(S=j[M+=1],t.opts.strictKeywords?"object"==typeof S&&Object.keys(S).length>0:t.util.schemaHasRules(S,t.RULES.all)){r+=" "+g+" = true; if ("+l+".length > "+M+") { ";var P=l+"["+M+"]";p.schema=S,p.schemaPath=s+"["+M+"]",p.errSchemaPath=u+"/"+M,p.errorPath=t.util.getPathExpr(t.errorPath,M,t.opts.jsonPointers,!0),p.dataPathArr[y]=M;var C=t.validate(p);p.baseId=x,t.util.varOccurences(C,m)<2?r+=" "+t.util.varReplace(C,m,P)+" ":r+=" var "+m+" = "+P+"; "+C+" ",r+=" } ",c&&(r+=" if ("+g+") { ",d+="}")}"object"==typeof b&&(t.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0:t.util.schemaHasRules(b,t.RULES.all))&&(p.schema=b,p.schemaPath=t.schemaPath+".additionalItems",p.errSchemaPath=t.errSchemaPath+"/additionalItems",r+=" "+g+" = true; if ("+l+".length > "+o.length+") { for (var "+v+" = "+o.length+"; "+v+" < "+l+".length; "+v+"++) { ",p.errorPath=t.util.getPathExpr(t.errorPath,v,t.opts.jsonPointers,!0),P=l+"["+v+"]",p.dataPathArr[y]=v,C=t.validate(p),p.baseId=x,t.util.varOccurences(C,m)<2?r+=" "+t.util.varReplace(C,m,P)+" ":r+=" var "+m+" = "+P+"; "+C+" ",c&&(r+=" if (!"+g+") break; "),r+=" } } ",c&&(r+=" if ("+g+") { ",d+="}"))}else(t.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0:t.util.schemaHasRules(o,t.RULES.all))&&(p.schema=o,p.schemaPath=s,p.errSchemaPath=u,r+=" for (var "+v+" = 0; "+v+" < "+l+".length; "+v+"++) { ",p.errorPath=t.util.getPathExpr(t.errorPath,v,t.opts.jsonPointers,!0),P=l+"["+v+"]",p.dataPathArr[y]=v,C=t.validate(p),p.baseId=x,t.util.varOccurences(C,m)<2?r+=" "+t.util.varReplace(C,m,P)+" ":r+=" var "+m+" = "+P+"; "+C+" ",c&&(r+=" if (!"+g+") break; "),r+=" }");return c&&(r+=" "+d+" if ("+h+" == errors) {"),t.util.cleanUpCode(r)}},{}],29:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i=" ",a=t.level,o=t.dataLevel,s=t.schema[e],u=t.schemaPath+t.util.getProperty(e),c=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,f="data"+(o||""),h=t.opts.$data&&s&&s.$data;h?(i+=" var schema"+a+" = "+t.util.getData(s.$data,o,t.dataPathArr)+"; ",r="schema"+a):r=s,i+="var division"+a+";if (",h&&(i+=" "+r+" !== undefined && ( typeof "+r+" != 'number' || "),i+=" (division"+a+" = "+f+" / "+r+", ",i+=t.opts.multipleOfPrecision?" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+t.opts.multipleOfPrecision+" ":" division"+a+" !== parseInt(division"+a+") ",i+=" ) ",h&&(i+=" ) "),i+=" ) { ";var p=p||[];p.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { multipleOf: "+r+" } ",!1!==t.opts.messages&&(i+=" , message: 'should be multiple of ",i+=h?"' + "+r:r+"'"),t.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var d=i;return i=p.pop(),i+=!t.compositeRule&&l?t.async?" throw new ValidationError(["+d+"]); ":" validate.errors = ["+d+"]; return false; ":" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},{}],30:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="errs__"+i,h=t.util.copy(t);h.level++;var p="valid"+h.level;if(t.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0:t.util.schemaHasRules(o,t.RULES.all)){h.schema=o,h.schemaPath=s,h.errSchemaPath=u,r+=" var "+f+" = errors; ";var d,g=t.compositeRule;t.compositeRule=h.compositeRule=!0,h.createErrors=!1,h.opts.allErrors&&(d=h.opts.allErrors,h.opts.allErrors=!1),r+=" "+t.validate(h)+" ",h.createErrors=!0,d&&(h.opts.allErrors=d),t.compositeRule=h.compositeRule=g,r+=" if ("+p+") { ";var v=v||[];v.push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",!1!==t.opts.messages&&(r+=" , message: 'should NOT be valid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ";var y=r;r=v.pop(),r+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+y+"]); ":" validate.errors = ["+y+"]; return false; ":" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",t.opts.allErrors&&(r+=" } ")}else r+=" var err = ",!1!==t.createErrors?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: {} ",!1!==t.opts.messages&&(r+=" , message: 'should NOT be valid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(r+=" if (false) { ");return r}},{}],31:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="valid"+i,h="errs__"+i,p=t.util.copy(t),d="";p.level++;var g="valid"+p.level,v=p.baseId,y="prevValid"+i,m="passingSchemas"+i;r+="var "+h+" = errors , "+y+" = false , "+f+" = false , "+m+" = null; ";var x=t.compositeRule;t.compositeRule=p.compositeRule=!0;var b=o;if(b)for(var _,w=-1,O=b.length-1;w<O;)_=b[w+=1],(t.opts.strictKeywords?"object"==typeof _&&Object.keys(_).length>0:t.util.schemaHasRules(_,t.RULES.all))?(p.schema=_,p.schemaPath=s+"["+w+"]",p.errSchemaPath=u+"/"+w,r+=" "+t.validate(p)+" ",p.baseId=v):r+=" var "+g+" = true; ",w&&(r+=" if ("+g+" && "+y+") { "+f+" = false; "+m+" = ["+m+", "+w+"]; } else { ",d+="}"),r+=" if ("+g+") { "+f+" = "+y+" = true; "+m+" = "+w+"; }";return t.compositeRule=p.compositeRule=x,r+=d+"if (!"+f+") { var err = ",!1!==t.createErrors?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { passingSchemas: "+m+" } ",!1!==t.opts.messages&&(r+=" , message: 'should match exactly one schema in oneOf' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(r+=t.async?" throw new ValidationError(vErrors); ":" validate.errors = vErrors; return false; "),r+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",t.opts.allErrors&&(r+=" } "),r}},{}],32:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i=" ",a=t.level,o=t.dataLevel,s=t.schema[e],u=t.schemaPath+t.util.getProperty(e),c=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,f="data"+(o||""),h=t.opts.$data&&s&&s.$data;h?(i+=" var schema"+a+" = "+t.util.getData(s.$data,o,t.dataPathArr)+"; ",r="schema"+a):r=s;var p=h?"(new RegExp("+r+"))":t.usePattern(s);i+="if ( ",h&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'string') || "),i+=" !"+p+".test("+f+") ) { ";var d=d||[];d.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { pattern: ",i+=h?""+r:""+t.util.toQuotedString(s),i+=" } ",!1!==t.opts.messages&&(i+=" , message: 'should match pattern \"",i+=h?"' + "+r+" + '":""+t.util.escapeQuotes(s),i+="\"' "),t.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+u:""+t.util.toQuotedString(s),i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var g=i;return i=d.pop(),i+=!t.compositeRule&&l?t.async?" throw new ValidationError(["+g+"]); ":" validate.errors = ["+g+"]; return false; ":" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i}},{}],33:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="errs__"+i,h=t.util.copy(t),p="";h.level++;var d="valid"+h.level,g="key"+i,v="idx"+i,y=h.dataLevel=t.dataLevel+1,m="data"+y,x="dataProperties"+i,b=Object.keys(o||{}),_=t.schema.patternProperties||{},w=Object.keys(_),O=t.schema.additionalProperties,j=b.length||w.length,S=!1===O,M="object"==typeof O&&Object.keys(O).length,E=t.opts.removeAdditional,P=S||M||E,C=t.opts.ownProperties,k=t.baseId,A=t.schema.required;if(A&&(!t.opts.$data||!A.$data)&&A.length<t.opts.loopRequired)var T=t.util.toHash(A);if(r+="var "+f+" = errors;var "+d+" = true;",C&&(r+=" var "+x+" = undefined;"),P){if(r+=C?" "+x+" = "+x+" || Object.keys("+l+"); for (var "+v+"=0; "+v+"<"+x+".length; "+v+"++) { var "+g+" = "+x+"["+v+"]; ":" for (var "+g+" in "+l+") { ",j){if(r+=" var isAdditional"+i+" = !(false ",b.length)if(b.length>8)r+=" || validate.schema"+s+".hasOwnProperty("+g+") ";else{var I=b;if(I)for(var L=-1,R=I.length-1;L<R;)X=I[L+=1],r+=" || "+g+" == "+t.util.toQuotedString(X)+" "}if(w.length){var D=w;if(D)for(var F=-1,B=D.length-1;F<B;)it=D[F+=1],r+=" || "+t.usePattern(it)+".test("+g+") "}r+=" ); if (isAdditional"+i+") { "}if("all"==E)r+=" delete "+l+"["+g+"]; ";else{var N=t.errorPath,z="' + "+g+" + '";if(t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers)),S)if(E)r+=" delete "+l+"["+g+"]; ";else{r+=" "+d+" = false; ";var q=u;u=t.errSchemaPath+"/additionalProperties",(et=et||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { additionalProperty: '"+z+"' } ",!1!==t.opts.messages&&(r+=" , message: '",r+=t.opts._errorDataPathProperty?"is an invalid additional property":"should NOT have additional properties",r+="' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ";var V=r;r=et.pop(),r+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+V+"]); ":" validate.errors = ["+V+"]; return false; ":" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=q,c&&(r+=" break; ")}else if(M)if("failing"==E){r+=" var "+f+" = errors; ";var H=t.compositeRule;t.compositeRule=h.compositeRule=!0,h.schema=O,h.schemaPath=t.schemaPath+".additionalProperties",h.errSchemaPath=t.errSchemaPath+"/additionalProperties",h.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers);var Y=l+"["+g+"]";h.dataPathArr[y]=g;var G=t.validate(h);h.baseId=k,t.util.varOccurences(G,m)<2?r+=" "+t.util.varReplace(G,m,Y)+" ":r+=" var "+m+" = "+Y+"; "+G+" ",r+=" if (!"+d+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+g+"]; } ",t.compositeRule=h.compositeRule=H}else h.schema=O,h.schemaPath=t.schemaPath+".additionalProperties",h.errSchemaPath=t.errSchemaPath+"/additionalProperties",h.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers),Y=l+"["+g+"]",h.dataPathArr[y]=g,G=t.validate(h),h.baseId=k,t.util.varOccurences(G,m)<2?r+=" "+t.util.varReplace(G,m,Y)+" ":r+=" var "+m+" = "+Y+"; "+G+" ",c&&(r+=" if (!"+d+") break; ");t.errorPath=N}j&&(r+=" } "),r+=" } ",c&&(r+=" if ("+d+") { ",p+="}")}var W=t.opts.useDefaults&&!t.compositeRule;if(b.length){var U=b;if(U)for(var X,$=-1,Q=U.length-1;$<Q;){var Z=o[X=U[$+=1]];if(t.opts.strictKeywords?"object"==typeof Z&&Object.keys(Z).length>0:t.util.schemaHasRules(Z,t.RULES.all)){var K=t.util.getProperty(X),J=(Y=l+K,W&&void 0!==Z.default);if(h.schema=Z,h.schemaPath=s+K,h.errSchemaPath=u+"/"+t.util.escapeFragment(X),h.errorPath=t.util.getPath(t.errorPath,X,t.opts.jsonPointers),h.dataPathArr[y]=t.util.toQuotedString(X),G=t.validate(h),h.baseId=k,t.util.varOccurences(G,m)<2){G=t.util.varReplace(G,m,Y);var tt=Y}else tt=m,r+=" var "+m+" = "+Y+"; ";if(J)r+=" "+G+" ";else{if(T&&T[X]){r+=" if ( "+tt+" === undefined ",C&&(r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+t.util.escapeQuotes(X)+"') "),r+=") { "+d+" = false; ",N=t.errorPath,q=u;var et,nt=t.util.escapeQuotes(X);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(N,X,t.opts.jsonPointers)),u=t.errSchemaPath+"/required",(et=et||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+nt+"' } ",!1!==t.opts.messages&&(r+=" , message: '",r+=t.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+nt+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ",V=r,r=et.pop(),r+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+V+"]); ":" validate.errors = ["+V+"]; return false; ":" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=q,t.errorPath=N,r+=" } else { "}else c?(r+=" if ( "+tt+" === undefined ",C&&(r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+t.util.escapeQuotes(X)+"') "),r+=") { "+d+" = true; } else { "):(r+=" if ("+tt+" !== undefined ",C&&(r+=" && Object.prototype.hasOwnProperty.call("+l+", '"+t.util.escapeQuotes(X)+"') "),r+=" ) { ");r+=" "+G+" } "}}c&&(r+=" if ("+d+") { ",p+="}")}}if(w.length){var rt=w;if(rt)for(var it,at=-1,ot=rt.length-1;at<ot;)Z=_[it=rt[at+=1]],(t.opts.strictKeywords?"object"==typeof Z&&Object.keys(Z).length>0:t.util.schemaHasRules(Z,t.RULES.all))&&(h.schema=Z,h.schemaPath=t.schemaPath+".patternProperties"+t.util.getProperty(it),h.errSchemaPath=t.errSchemaPath+"/patternProperties/"+t.util.escapeFragment(it),r+=C?" "+x+" = "+x+" || Object.keys("+l+"); for (var "+v+"=0; "+v+"<"+x+".length; "+v+"++) { var "+g+" = "+x+"["+v+"]; ":" for (var "+g+" in "+l+") { ",r+=" if ("+t.usePattern(it)+".test("+g+")) { ",h.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers),Y=l+"["+g+"]",h.dataPathArr[y]=g,G=t.validate(h),h.baseId=k,t.util.varOccurences(G,m)<2?r+=" "+t.util.varReplace(G,m,Y)+" ":r+=" var "+m+" = "+Y+"; "+G+" ",c&&(r+=" if (!"+d+") break; "),r+=" } ",c&&(r+=" else "+d+" = true; "),r+=" } ",c&&(r+=" if ("+d+") { ",p+="}"))}return c&&(r+=" "+p+" if ("+f+" == errors) {"),t.util.cleanUpCode(r)}},{}],34:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="errs__"+i,h=t.util.copy(t);h.level++;var p="valid"+h.level;if(r+="var "+f+" = errors;",t.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0:t.util.schemaHasRules(o,t.RULES.all)){h.schema=o,h.schemaPath=s,h.errSchemaPath=u;var d="key"+i,g="idx"+i,v="i"+i,y="' + "+d+" + '",m="data"+(h.dataLevel=t.dataLevel+1),x="dataProperties"+i,b=t.opts.ownProperties,_=t.baseId;b&&(r+=" var "+x+" = undefined; "),r+=b?" "+x+" = "+x+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+x+".length; "+g+"++) { var "+d+" = "+x+"["+g+"]; ":" for (var "+d+" in "+l+") { ",r+=" var startErrs"+i+" = errors; ";var w=d,O=t.compositeRule;t.compositeRule=h.compositeRule=!0;var j=t.validate(h);h.baseId=_,t.util.varOccurences(j,m)<2?r+=" "+t.util.varReplace(j,m,w)+" ":r+=" var "+m+" = "+w+"; "+j+" ",t.compositeRule=h.compositeRule=O,r+=" if (!"+p+") { for (var "+v+"=startErrs"+i+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+d+"; } var err = ",!1!==t.createErrors?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { propertyName: '"+y+"' } ",!1!==t.opts.messages&&(r+=" , message: 'property name \\'"+y+"\\' is invalid' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&c&&(r+=t.async?" throw new ValidationError(vErrors); ":" validate.errors = vErrors; return false; "),c&&(r+=" break; "),r+=" } }"}return c&&(r+=" if ("+f+" == errors) {"),t.util.cleanUpCode(r)}},{}],35:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i,a=" ",o=t.dataLevel,s=t.schema[e],u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(o||""),f="valid"+t.level;if("#"==s||"#/"==s)t.isRoot?(r=t.async,i="validate"):(r=!0===t.root.schema.$async,i="root.refVal[0]");else{var h=t.resolveRef(t.baseId,s,t.isRoot);if(void 0===h){var p=t.MissingRefError.message(t.baseId,s);if("fail"==t.opts.missingRefs){t.logger.error(p),(y=y||[]).push(a),a="",!1!==t.createErrors?(a+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { ref: '"+t.util.escapeQuotes(s)+"' } ",!1!==t.opts.messages&&(a+=" , message: 'can\\'t resolve reference "+t.util.escapeQuotes(s)+"' "),t.opts.verbose&&(a+=" , schema: "+t.util.toQuotedString(s)+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),a+=" } "):a+=" {} ";var d=a;a=y.pop(),a+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+d+"]); ":" validate.errors = ["+d+"]; return false; ":" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(a+=" if (false) { ")}else{if("ignore"!=t.opts.missingRefs)throw new t.MissingRefError(t.baseId,s,p);t.logger.warn(p),c&&(a+=" if (true) { ")}}else if(h.inline){var g=t.util.copy(t);g.level++;var v="valid"+g.level;g.schema=h.schema,g.schemaPath="",g.errSchemaPath=s,a+=" "+t.validate(g).replace(/validate\.schema/g,h.code)+" ",c&&(a+=" if ("+v+") { ")}else r=!0===h.$async||t.async&&!1!==h.$async,i=h.code}if(i){var y;(y=y||[]).push(a),a="",a+=t.opts.passContext?" "+i+".call(this, ":" "+i+"( ",a+=" "+l+", (dataPath || '')",'""'!=t.errorPath&&(a+=" + "+t.errorPath);var m=a+=" , "+(o?"data"+(o-1||""):"parentData")+" , "+(o?t.dataPathArr[o]:"parentDataProperty")+", rootData) ";if(a=y.pop(),r){if(!t.async)throw new Error("async schema referenced by sync schema");c&&(a+=" var "+f+"; "),a+=" try { await "+m+"; ",c&&(a+=" "+f+" = true; "),a+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",c&&(a+=" "+f+" = false; "),a+=" } ",c&&(a+=" if ("+f+") { ")}else a+=" if (!"+m+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",c&&(a+=" else { ")}return a}},{}],36:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=" ",i=t.level,a=t.dataLevel,o=t.schema[e],s=t.schemaPath+t.util.getProperty(e),u=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,l="data"+(a||""),f="valid"+i,h=t.opts.$data&&o&&o.$data;h&&(r+=" var schema"+i+" = "+t.util.getData(o.$data,a,t.dataPathArr)+"; ");var p="schema"+i;if(!h)if(o.length<t.opts.loopRequired&&t.schema.properties&&Object.keys(t.schema.properties).length){var d=[],g=o;if(g)for(var v,y=-1,m=g.length-1;y<m;){v=g[y+=1];var x=t.schema.properties[v];x&&(t.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0:t.util.schemaHasRules(x,t.RULES.all))||(d[d.length]=v)}}else d=o;if(h||d.length){var b=t.errorPath,_=h||d.length>=t.opts.loopRequired,w=t.opts.ownProperties;if(c)if(r+=" var missing"+i+"; ",_){h||(r+=" var "+p+" = validate.schema"+s+"; ");var O="' + "+(C="schema"+i+"["+(E="i"+i)+"]")+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(b,C,t.opts.jsonPointers)),r+=" var "+f+" = true; ",h&&(r+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),r+=" for (var "+E+" = 0; "+E+" < "+p+".length; "+E+"++) { "+f+" = "+l+"["+p+"["+E+"]] !== undefined ",w&&(r+=" && Object.prototype.hasOwnProperty.call("+l+", "+p+"["+E+"]) "),r+="; if (!"+f+") break; } ",h&&(r+=" } "),r+=" if (!"+f+") { ",(S=S||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",!1!==t.opts.messages&&(r+=" , message: '",r+=t.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+O+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ";var j=r;r=S.pop(),r+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+j+"]); ":" validate.errors = ["+j+"]; return false; ":" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var S,M=d;if(M)for(var E=-1,P=M.length-1;E<P;)A=M[E+=1],E&&(r+=" || "),r+=" ( ( "+(R=l+(L=t.util.getProperty(A)))+" === undefined ",w&&(r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+t.util.escapeQuotes(A)+"') "),r+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?A:L)+") ) ";r+=") { ",O="' + "+(C="missing"+i)+" + '",t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(b,C,!0):b+" + "+C),(S=S||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",!1!==t.opts.messages&&(r+=" , message: '",r+=t.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+O+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ",j=r,r=S.pop(),r+=!t.compositeRule&&c?t.async?" throw new ValidationError(["+j+"]); ":" validate.errors = ["+j+"]; return false; ":" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(_){var C;h||(r+=" var "+p+" = validate.schema"+s+"; "),O="' + "+(C="schema"+i+"["+(E="i"+i)+"]")+" + '",t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(b,C,t.opts.jsonPointers)),h&&(r+=" if ("+p+" && !Array.isArray("+p+")) { var err = ",!1!==t.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",!1!==t.opts.messages&&(r+=" , message: '",r+=t.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+O+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),r+=" for (var "+E+" = 0; "+E+" < "+p+".length; "+E+"++) { if ("+l+"["+p+"["+E+"]] === undefined ",w&&(r+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+p+"["+E+"]) "),r+=") { var err = ",!1!==t.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",!1!==t.opts.messages&&(r+=" , message: '",r+=t.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+O+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(r+=" } ")}else{var k=d;if(k)for(var A,T=-1,I=k.length-1;T<I;){A=k[T+=1];var L=t.util.getProperty(A),R=(O=t.util.escapeQuotes(A),l+L);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(b,A,t.opts.jsonPointers)),r+=" if ( "+R+" === undefined ",w&&(r+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+t.util.escapeQuotes(A)+"') "),r+=") { var err = ",!1!==t.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",!1!==t.opts.messages&&(r+=" , message: '",r+=t.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+O+"\\'",r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+l+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t.errorPath=b}else c&&(r+=" if (true) {");return r}},{}],37:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r,i=" ",a=t.level,o=t.dataLevel,s=t.schema[e],u=t.schemaPath+t.util.getProperty(e),c=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,f="data"+(o||""),h="valid"+a,p=t.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+a+" = "+t.util.getData(s.$data,o,t.dataPathArr)+"; ",r="schema"+a):r=s,(s||p)&&!1!==t.opts.uniqueItems){p&&(i+=" var "+h+"; if ("+r+" === false || "+r+" === undefined) "+h+" = true; else if (typeof "+r+" != 'boolean') "+h+" = false; else { "),i+=" var i = "+f+".length , "+h+" = true , j; if (i > 1) { ";var d=t.schema.items&&t.schema.items.type,g=Array.isArray(d);!d||"object"==d||"array"==d||g&&(d.indexOf("object")>=0||d.indexOf("array")>=0)?i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+h+" = false; break outer; } } } ":(i+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ",i+=" if ("+t.util["checkDataType"+(g?"s":"")](d,"item",!0)+") continue; ",g&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),i+=" } ",p&&(i+=" } "),i+=" if (!"+h+") { ";var v=v||[];v.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),t.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var y=i;i=v.pop(),i+=!t.compositeRule&&l?t.async?" throw new ValidationError(["+y+"]); ":" validate.errors = ["+y+"]; return false; ":" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { ")}else l&&(i+=" if (true) { ");return i}},{}],38:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r="",i=!0===t.schema.$async,a=t.util.schemaHasRulesExcept(t.schema,t.RULES.all,"$ref"),o=t.self._getId(t.schema);if(t.opts.strictKeywords){var s=t.util.schemaUnknownRules(t.schema,t.RULES.keywords);if(s){var u="unknown keyword: "+s;if("log"!==t.opts.strictKeywords)throw new Error(u);t.logger.warn(u)}}if(t.isTop&&(r+=" var validate = ",i&&(t.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(t.opts.sourceCode||t.opts.processCode)&&(r+=" /*# sourceURL="+o+" */ ")),"boolean"==typeof t.schema||!a&&!t.schema.$ref){var c=t.level,l=t.dataLevel,f=t.schema["false schema"],h=t.schemaPath+t.util.getProperty("false schema"),p=t.errSchemaPath+"/false schema",d=!t.opts.allErrors,g="data"+(l||""),v="valid"+c;if(!1===t.schema){t.isTop?d=!0:r+=" var "+v+" = false; ",(G=G||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(p)+" , params: {} ",!1!==t.opts.messages&&(r+=" , message: 'boolean schema is false' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";var y=r;r=G.pop(),r+=!t.compositeRule&&d?t.async?" throw new ValidationError(["+y+"]); ":" validate.errors = ["+y+"]; return false; ":" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else r+=t.isTop?i?" return data; ":" validate.errors = null; return true; ":" var "+v+" = true; ";return t.isTop&&(r+=" }; return validate; "),r}if(t.isTop){var m=t.isTop;if(c=t.level=0,l=t.dataLevel=0,g="data",t.rootId=t.resolve.fullPath(t.self._getId(t.root.schema)),t.baseId=t.baseId||t.rootId,delete t.isTop,t.dataPathArr=[void 0],void 0!==t.schema.default&&t.opts.useDefaults&&t.opts.strictDefaults){var x="default is ignored in the schema root";if("log"!==t.opts.strictDefaults)throw new Error(x);t.logger.warn(x)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{if(c=t.level,g="data"+((l=t.dataLevel)||""),o&&(t.baseId=t.resolve.url(t.baseId,o)),i&&!t.async)throw new Error("async schema in sync schema");r+=" var errs_"+c+" = errors;"}v="valid"+c,d=!t.opts.allErrors;var b="",_="",w=t.schema.type,O=Array.isArray(w);if(w&&t.opts.nullable&&!0===t.schema.nullable&&(O?-1==w.indexOf("null")&&(w=w.concat("null")):"null"!=w&&(w=[w,"null"],O=!0)),O&&1==w.length&&(w=w[0],O=!1),t.schema.$ref&&a){if("fail"==t.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+t.errSchemaPath+'" (see option extendRefs)');!0!==t.opts.extendRefs&&(a=!1,t.logger.warn('$ref: keywords ignored in schema at path "'+t.errSchemaPath+'"'))}if(t.schema.$comment&&t.opts.$comment&&(r+=" "+t.RULES.all.$comment.code(t,"$comment")),w){if(t.opts.coerceTypes)var j=t.util.coerceToTypes(t.opts.coerceTypes,w);var S=t.RULES.types[w];if(j||O||!0===S||S&&!Z(S)){if(h=t.schemaPath+".type",p=t.errSchemaPath+"/type",h=t.schemaPath+".type",p=t.errSchemaPath+"/type",r+=" if ("+t.util[O?"checkDataTypes":"checkDataType"](w,g,!0)+") { ",j){var M="dataType"+c,E="coerced"+c;r+=" var "+M+" = typeof "+g+"; ","array"==t.opts.coerceTypes&&(r+=" if ("+M+" == 'object' && Array.isArray("+g+")) "+M+" = 'array'; "),r+=" var "+E+" = undefined; ";var P="",C=j;if(C)for(var k,A=-1,T=C.length-1;A<T;)k=C[A+=1],A&&(r+=" if ("+E+" === undefined) { ",P+="}"),"array"==t.opts.coerceTypes&&"array"!=k&&(r+=" if ("+M+" == 'array' && "+g+".length == 1) { "+E+" = "+g+" = "+g+"[0]; "+M+" = typeof "+g+"; } "),"string"==k?r+=" if ("+M+" == 'number' || "+M+" == 'boolean') "+E+" = '' + "+g+"; else if ("+g+" === null) "+E+" = ''; ":"number"==k||"integer"==k?(r+=" if ("+M+" == 'boolean' || "+g+" === null || ("+M+" == 'string' && "+g+" && "+g+" == +"+g+" ","integer"==k&&(r+=" && !("+g+" % 1)"),r+=")) "+E+" = +"+g+"; "):"boolean"==k?r+=" if ("+g+" === 'false' || "+g+" === 0 || "+g+" === null) "+E+" = false; else if ("+g+" === 'true' || "+g+" === 1) "+E+" = true; ":"null"==k?r+=" if ("+g+" === '' || "+g+" === 0 || "+g+" === false) "+E+" = null; ":"array"==t.opts.coerceTypes&&"array"==k&&(r+=" if ("+M+" == 'string' || "+M+" == 'number' || "+M+" == 'boolean' || "+g+" == null) "+E+" = ["+g+"]; ");r+=" "+P+" if ("+E+" === undefined) { ",(G=G||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(p)+" , params: { type: '",r+=O?""+w.join(","):""+w,r+="' } ",!1!==t.opts.messages&&(r+=" , message: 'should be ",r+=O?""+w.join(","):""+w,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ",y=r,r=G.pop(),r+=!t.compositeRule&&d?t.async?" throw new ValidationError(["+y+"]); ":" validate.errors = ["+y+"]; return false; ":" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ";var I=l?"data"+(l-1||""):"parentData";r+=" "+g+" = "+E+"; ",l||(r+="if ("+I+" !== undefined)"),r+=" "+I+"["+(l?t.dataPathArr[l]:"parentDataProperty")+"] = "+E+"; } "}else(G=G||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(p)+" , params: { type: '",r+=O?""+w.join(","):""+w,r+="' } ",!1!==t.opts.messages&&(r+=" , message: 'should be ",r+=O?""+w.join(","):""+w,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ",y=r,r=G.pop(),r+=!t.compositeRule&&d?t.async?" throw new ValidationError(["+y+"]); ":" validate.errors = ["+y+"]; return false; ":" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";r+=" } "}}if(t.schema.$ref&&!a)r+=" "+t.RULES.all.$ref.code(t,"$ref")+" ",d&&(r+=" } if (errors === ",r+=m?"0":"errs_"+c,r+=") { ",_+="}");else{var L=t.RULES;if(L)for(var R=-1,D=L.length-1;R<D;)if(Z(S=L[R+=1])){if(S.type&&(r+=" if ("+t.util.checkDataType(S.type,g)+") { "),t.opts.useDefaults)if("object"==S.type&&t.schema.properties){f=t.schema.properties;var F=Object.keys(f);if(F)for(var B,N=-1,z=F.length-1;N<z;)if(void 0!==(H=f[B=F[N+=1]]).default){var q=g+t.util.getProperty(B);if(t.compositeRule){if(t.opts.strictDefaults){if(x="default is ignored for: "+q,"log"!==t.opts.strictDefaults)throw new Error(x);t.logger.warn(x)}}else r+=" if ("+q+" === undefined ","empty"==t.opts.useDefaults&&(r+=" || "+q+" === null || "+q+" === '' "),r+=" ) "+q+" = ",r+="shared"==t.opts.useDefaults?" "+t.useDefault(H.default)+" ":" "+JSON.stringify(H.default)+" ",r+="; "}}else if("array"==S.type&&Array.isArray(t.schema.items)){var V=t.schema.items;if(V){A=-1;for(var H,Y=V.length-1;A<Y;)if(void 0!==(H=V[A+=1]).default)if(q=g+"["+A+"]",t.compositeRule){if(t.opts.strictDefaults){if(x="default is ignored for: "+q,"log"!==t.opts.strictDefaults)throw new Error(x);t.logger.warn(x)}}else r+=" if ("+q+" === undefined ","empty"==t.opts.useDefaults&&(r+=" || "+q+" === null || "+q+" === '' "),r+=" ) "+q+" = ",r+="shared"==t.opts.useDefaults?" "+t.useDefault(H.default)+" ":" "+JSON.stringify(H.default)+" ",r+="; "}}var G,W=S.rules;if(W)for(var U,X=-1,$=W.length-1;X<$;)if(K(U=W[X+=1])){var Q=U.code(t,U.keyword,S.type);Q&&(r+=" "+Q+" ",d&&(b+="}"))}d&&(r+=" "+b+" ",b=""),S.type&&(r+=" } ",w&&w===S.type&&!j)&&(r+=" else { ",h=t.schemaPath+".type",p=t.errSchemaPath+"/type",(G=G||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(p)+" , params: { type: '",r+=O?""+w.join(","):""+w,r+="' } ",!1!==t.opts.messages&&(r+=" , message: 'should be ",r+=O?""+w.join(","):""+w,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ",y=r,r=G.pop(),r+=!t.compositeRule&&d?t.async?" throw new ValidationError(["+y+"]); ":" validate.errors = ["+y+"]; return false; ":" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "),d&&(r+=" if (errors === ",r+=m?"0":"errs_"+c,r+=") { ",_+="}")}}function Z(t){for(var e=t.rules,n=0;n<e.length;n++)if(K(e[n]))return!0}function K(e){return void 0!==t.schema[e.keyword]||e.implements&&function(e){for(var n=e.implements,r=0;r<n.length;r++)if(void 0!==t.schema[n[r]])return!0}(e)}return d&&(r+=" "+_+" "),m?(i?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+v+" = errors === errs_"+c+";",r=t.util.cleanUpCode(r),m&&(r=t.util.finalCleanUpCode(r,i)),r}},{}],39:[function(t,e,n){"use strict";var r=/^[a-z_$][a-z0-9_$-]*$/i,i=t("./dotjs/custom"),a=t("./definition_schema");e.exports={add:function(t,e){var n=this.RULES;if(n.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!r.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var a=e.type;if(Array.isArray(a))for(var o=0;o<a.length;o++)u(t,a[o],e);else u(t,a,e);var s=e.metaSchema;s&&(e.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(s,!0))}function u(t,e,r){for(var a,o=0;o<n.length;o++){var s=n[o];if(s.type==e){a=s;break}}a||n.push(a={type:e,rules:[]});var u={keyword:t,definition:r,custom:!0,code:i,implements:r.implements};a.rules.push(u),n.custom[t]=u}return n.keywords[t]=n.all[t]=!0,this},get:function(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1},remove:function(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var n=0;n<e.length;n++)for(var r=e[n].rules,i=0;i<r.length;i++)if(r[i].keyword==t){r.splice(i,1);break}return this},validate:function t(e,n){t.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(a,!0);if(r(e))return!0;if(t.errors=r.errors,n)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}}},{"./definition_schema":12,"./dotjs/custom":22}],40:[function(t,e,n){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}},{}],41:[function(t,e,n){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}},{}],42:[function(t,e,n){"use strict";var r=Array.isArray,i=Object.keys,a=Object.prototype.hasOwnProperty;e.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){var o,s,u,c=r(e),l=r(n);if(c&&l){if((s=e.length)!=n.length)return!1;for(o=s;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(c!=l)return!1;var f=e instanceof Date,h=n instanceof Date;if(f!=h)return!1;if(f&&h)return e.getTime()==n.getTime();var p=e instanceof RegExp,d=n instanceof RegExp;if(p!=d)return!1;if(p&&d)return e.toString()==n.toString();var g=i(e);if((s=g.length)!==i(n).length)return!1;for(o=s;0!=o--;)if(!a.call(n,g[o]))return!1;for(o=s;0!=o--;)if(!t(e[u=g[o]],n[u]))return!1;return!0}return e!=e&&n!=n}},{}],43:[function(t,e,n){"use strict";e.exports=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var n,r="boolean"==typeof e.cycles&&e.cycles,i=e.cmp&&(n=e.cmp,function(t){return function(e,r){return n({key:e,value:t[e]},{key:r,value:t[r]})}}),a=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var n,o;if(Array.isArray(e)){for(o="[",n=0;n<e.length;n++)n&&(o+=","),o+=t(e[n])||"null";return o+"]"}if(null===e)return"null";if(-1!==a.indexOf(e)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=a.push(e)-1,u=Object.keys(e).sort(i&&i(e));for(o="",n=0;n<u.length;n++){var c=u[n],l=t(e[c]);l&&(o&&(o+=","),o+=JSON.stringify(c)+":"+l)}return a.splice(s,1),"{"+o+"}"}}(t)}},{}],44:[function(t,e,n){"use strict";var r=e.exports=function(t,e,n){"function"==typeof e&&(n=e,e={}),function t(e,n,i,a,o,s,u,c,l,f){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var h in n(a,o,s,u,c,l,f),a){var p=a[h];if(Array.isArray(p)){if(h in r.arrayKeywords)for(var d=0;d<p.length;d++)t(e,n,i,p[d],o+"/"+h+"/"+d,s,o,h,a,d)}else if(h in r.propsKeywords){if(p&&"object"==typeof p)for(var g in p)t(e,n,i,p[g],o+"/"+h+"/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),s,o,h,a,g)}else(h in r.keywords||e.allKeys&&!(h in r.skipKeywords))&&t(e,n,i,p,o+"/"+h,s,o,h,a)}i(a,o,s,u,c,l,f)}}(e,"function"==typeof(n=e.cb||n)?n:n.pre||function(){},n.post||function(){},t,"",t)};r.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},r.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},r.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},r.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},{}],45:[function(t,e,n){!function(t){"use strict";function e(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length>1){e[0]=e[0].slice(0,-1);for(var r=e.length-1,i=1;i<r;++i)e[i]=e[i].slice(1,-1);return e[r]=e[r].slice(1),e.join("")}return e[0]}function n(t){return"(?:"+t+")"}function r(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).split(" ").pop().split("]").shift().toLowerCase()}function i(t){return t.toUpperCase()}function a(t){var r=e("[0-9]","[A-Fa-f]"),i=n(n("%[EFef]"+r+"%"+r+r+"%"+r+r)+"|"+n("%[89A-Fa-f]"+r+"%"+r+r)+"|"+n("%"+r+r)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",o=e("[\\:\\/\\?\\#\\[\\]\\@]",a),s=t?"[\\uE000-\\uF8FF]":"[]",u=e("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",t?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),c=n("[A-Za-z]"+e("[A-Za-z]","[0-9]","[\\+\\-\\.]")+"*"),l=n(n(i+"|"+e(u,a,"[\\:]"))+"*"),f=(n(n("25[0-5]")+"|"+n("2[0-4][0-9]")+"|"+n("1[0-9][0-9]")+"|"+n("[1-9][0-9]")+"|[0-9]"),n(n("25[0-5]")+"|"+n("2[0-4][0-9]")+"|"+n("1[0-9][0-9]")+"|"+n("0?[1-9][0-9]")+"|0?0?[0-9]")),h=n(f+"\\."+f+"\\."+f+"\\."+f),p=n(r+"{1,4}"),d=n(n(p+"\\:"+p)+"|"+h),g=n([n(n(p+"\\:")+"{6}"+d),n("\\:\\:"+n(p+"\\:")+"{5}"+d),n(n(p)+"?\\:\\:"+n(p+"\\:")+"{4}"+d),n(n(n(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+n(p+"\\:")+"{3}"+d),n(n(n(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+n(p+"\\:")+"{2}"+d),n(n(n(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+d),n(n(n(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+d),n(n(n(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),n(n(n(p+"\\:")+"{0,6}"+p)+"?\\:\\:")].join("|")),v=n(n(u+"|"+i)+"+"),y=(n(g+"\\%25"+v),n("\\["+n(n(g+n("\\%25|\\%(?!"+r+"{2})")+v)+"|"+g+"|"+n("[vV]"+r+"+\\."+e(u,a,"[\\:]")+"+"))+"\\]")),m=n(n(i+"|"+e(u,a))+"*"),x=n(y+"|"+h+"(?!"+m+")|"+m),b=n("[0-9]*"),_=n(n(l+"@")+"?"+x+n("\\:"+b)+"?"),w=n(i+"|"+e(u,a,"[\\:\\@]")),O=n(w+"*"),j=n(w+"+"),S=n(n(i+"|"+e(u,a,"[\\@]"))+"+"),M=n(n("\\/"+O)+"*"),E=n("\\/"+n(j+M)+"?"),P=n(S+M),C=n(j+M),k="(?!"+w+")",A=(n(M+"|"+E+"|"+P+"|"+C+"|"+k),n(n(w+"|"+e("[\\/\\?]",s))+"*")),T=n(n(w+"|[\\/\\?]")+"*"),I=n(n("\\/\\/"+_+M)+"|"+E+"|"+C+"|"+k);return n(n(c+"\\:"+I+n("\\?"+A)+"?"+n("\\#"+T)+"?")+"|"+n(n(n("\\/\\/"+_+M)+"|"+E+"|"+P+"|"+k)+n("\\?"+A)+"?"+n("\\#"+T)+"?")),n(c+"\\:"+I+n("\\?"+A)+"?"),n(n("\\/\\/("+n("("+l+")@")+"?("+x+")"+n("\\:("+b+")")+"?)")+"?("+M+"|"+E+"|"+C+"|"+k+")"),n("\\?("+A+")"),n("\\#("+T+")"),n(n("\\/\\/("+n("("+l+")@")+"?("+x+")"+n("\\:("+b+")")+"?)")+"?("+M+"|"+E+"|"+P+"|"+k+")"),n("\\?("+A+")"),n("\\#("+T+")"),n(n("\\/\\/("+n("("+l+")@")+"?("+x+")"+n("\\:("+b+")")+"?)")+"?("+M+"|"+E+"|"+C+"|"+k+")"),n("\\?("+A+")"),n("\\#("+T+")"),n("("+l+")@"),n("\\:("+b+")"),{NOT_SCHEME:new RegExp(e("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",u,a),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",u,a),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",u,a),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",u,a),"g"),NOT_QUERY:new RegExp(e("[^\\%]",u,a,"[\\:\\@\\/\\?]",s),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",u,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",u,a),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",u,o),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+h+")$"),IPV6ADDRESS:new RegExp("^\\[?("+g+")"+n(n("\\%25|\\%(?!"+r+"{2})")+"("+v+")")+"?\\]?$")}}var o=a(!1),s=a(!0),u=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},c=2147483647,l=/^xn--/,f=/[^\0-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,g=String.fromCharCode;function v(t){throw new RangeError(p[t])}function y(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]);var i=function(t,e){for(var n=[],r=t.length;r--;)n[r]=e(t[r]);return n}((t=t.replace(h,".")).split("."),e).join(".");return r+i}function m(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=t.charCodeAt(n++);56320==(64512&a)?e.push(((1023&i)<<10)+(1023&a)+65536):(e.push(i),n--)}else e.push(i)}return e}var x=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},b=function(t,e,n){var r=0;for(t=n?d(t/700):t>>1,t+=d(t/e);t>455;r+=36)t=d(t/35);return d(r+36*t/(t+38))},_=function(t){var e,n=[],r=t.length,i=0,a=128,o=72,s=t.lastIndexOf("-");s<0&&(s=0);for(var u=0;u<s;++u)t.charCodeAt(u)>=128&&v("not-basic"),n.push(t.charCodeAt(u));for(var l=s>0?s+1:0;l<r;){for(var f=i,h=1,p=36;;p+=36){l>=r&&v("invalid-input");var g=(e=t.charCodeAt(l++))-48<10?e-22:e-65<26?e-65:e-97<26?e-97:36;(g>=36||g>d((c-i)/h))&&v("overflow"),i+=g*h;var y=p<=o?1:p>=o+26?26:p-o;if(g<y)break;var m=36-y;h>d(c/m)&&v("overflow"),h*=m}var x=n.length+1;o=b(i-f,x,0==f),d(i/x)>c-a&&v("overflow"),a+=d(i/x),i%=x,n.splice(i++,0,a)}return String.fromCodePoint.apply(String,n)},w=function(t){var e=[],n=(t=m(t)).length,r=128,i=0,a=72,o=!0,s=!1,u=void 0;try{for(var l,f=t[Symbol.iterator]();!(o=(l=f.next()).done);o=!0){var h=l.value;h<128&&e.push(g(h))}}catch(t){s=!0,u=t}finally{try{!o&&f.return&&f.return()}finally{if(s)throw u}}var p=e.length,y=p;for(p&&e.push("-");y<n;){var _=c,w=!0,O=!1,j=void 0;try{for(var S,M=t[Symbol.iterator]();!(w=(S=M.next()).done);w=!0){var E=S.value;E>=r&&E<_&&(_=E)}}catch(t){O=!0,j=t}finally{try{!w&&M.return&&M.return()}finally{if(O)throw j}}var P=y+1;_-r>d((c-i)/P)&&v("overflow"),i+=(_-r)*P,r=_;var C=!0,k=!1,A=void 0;try{for(var T,I=t[Symbol.iterator]();!(C=(T=I.next()).done);C=!0){var L=T.value;if(L<r&&++i>c&&v("overflow"),L==r){for(var R=i,D=36;;D+=36){var F=D<=a?1:D>=a+26?26:D-a;if(R<F)break;var B=R-F,N=36-F;e.push(g(x(F+B%N,0))),R=d(B/N)}e.push(g(x(R,0))),a=b(i,P,y==p),i=0,++y}}}catch(t){k=!0,A=t}finally{try{!C&&I.return&&I.return()}finally{if(k)throw A}}++i,++r}return e.join("")},O={version:"2.1.0",ucs2:{decode:m,encode:function(t){return String.fromCodePoint.apply(String,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(t))}},decode:_,encode:w,toASCII:function(t){return y(t,function(t){return f.test(t)?"xn--"+w(t):t})},toUnicode:function(t){return y(t,function(t){return l.test(t)?_(t.slice(4).toLowerCase()):t})}},j={};function S(t){var e=t.charCodeAt(0);return e<16?"%0"+e.toString(16).toUpperCase():e<128?"%"+e.toString(16).toUpperCase():e<2048?"%"+(e>>6|192).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase():"%"+(e>>12|224).toString(16).toUpperCase()+"%"+(e>>6&63|128).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase()}function M(t){for(var e="",n=0,r=t.length;n<r;){var i=parseInt(t.substr(n+1,2),16);if(i<128)e+=String.fromCharCode(i),n+=3;else if(i>=194&&i<224){if(r-n>=6){var a=parseInt(t.substr(n+4,2),16);e+=String.fromCharCode((31&i)<<6|63&a)}else e+=t.substr(n,6);n+=6}else if(i>=224){if(r-n>=9){var o=parseInt(t.substr(n+4,2),16),s=parseInt(t.substr(n+7,2),16);e+=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}else e+=t.substr(n,9);n+=9}else e+=t.substr(n,3),n+=3}return e}function E(t,e){function n(t){var n=M(t);return n.match(e.UNRESERVED)?n:t}return t.scheme&&(t.scheme=String(t.scheme).replace(e.PCT_ENCODED,n).toLowerCase().replace(e.NOT_SCHEME,"")),void 0!==t.userinfo&&(t.userinfo=String(t.userinfo).replace(e.PCT_ENCODED,n).replace(e.NOT_USERINFO,S).replace(e.PCT_ENCODED,i)),void 0!==t.host&&(t.host=String(t.host).replace(e.PCT_ENCODED,n).toLowerCase().replace(e.NOT_HOST,S).replace(e.PCT_ENCODED,i)),void 0!==t.path&&(t.path=String(t.path).replace(e.PCT_ENCODED,n).replace(t.scheme?e.NOT_PATH:e.NOT_PATH_NOSCHEME,S).replace(e.PCT_ENCODED,i)),void 0!==t.query&&(t.query=String(t.query).replace(e.PCT_ENCODED,n).replace(e.NOT_QUERY,S).replace(e.PCT_ENCODED,i)),void 0!==t.fragment&&(t.fragment=String(t.fragment).replace(e.PCT_ENCODED,n).replace(e.NOT_FRAGMENT,S).replace(e.PCT_ENCODED,i)),t}function P(t){return t.replace(/^0*(.*)/,"$1")||"0"}function C(t,e){var n=t.match(e.IPV4ADDRESS)||[],r=u(n,2)[1];return r?r.split(".").map(P).join("."):t}function k(t,e){var n=t.match(e.IPV6ADDRESS)||[],r=u(n,3),i=r[1],a=r[2];if(i){for(var o=i.toLowerCase().split("::").reverse(),s=u(o,2),c=s[0],l=s[1],f=l?l.split(":").map(P):[],h=c.split(":").map(P),p=e.IPV4ADDRESS.test(h[h.length-1]),d=p?7:8,g=h.length-d,v=Array(d),y=0;y<d;++y)v[y]=f[y]||h[g+y]||"";p&&(v[d-1]=C(v[d-1],e));var m=v.reduce(function(t,e,n){if(!e||"0"===e){var r=t[t.length-1];r&&r.index+r.length===n?r.length++:t.push({index:n,length:1})}return t},[]).sort(function(t,e){return e.length-t.length})[0],x=void 0;if(m&&m.length>1){var b=v.slice(0,m.index),_=v.slice(m.index+m.length);x=b.join(":")+"::"+_.join(":")}else x=v.join(":");return a&&(x+="%"+a),x}return t}var A=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,T=void 0==="".match(/(){0}/)[1];function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==e.iri?s:o;"suffix"===e.reference&&(t=(e.scheme?e.scheme+":":"")+"//"+t);var i=t.match(A);if(i){T?(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5])):(n.scheme=i[1]||void 0,n.userinfo=-1!==t.indexOf("@")?i[3]:void 0,n.host=-1!==t.indexOf("//")?i[4]:void 0,n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=-1!==t.indexOf("?")?i[7]:void 0,n.fragment=-1!==t.indexOf("#")?i[8]:void 0,isNaN(n.port)&&(n.port=t.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),n.host&&(n.host=k(C(n.host,r),r)),n.reference=void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?"relative":void 0===n.fragment?"absolute":"uri":"same-document",e.reference&&"suffix"!==e.reference&&e.reference!==n.reference&&(n.error=n.error||"URI is not a "+e.reference+" reference.");var a=j[(e.scheme||n.scheme||"").toLowerCase()];if(e.unicodeSupport||a&&a.unicodeSupport)E(n,r);else{if(n.host&&(e.domainHost||a&&a.domainHost))try{n.host=O.toASCII(n.host.replace(r.PCT_ENCODED,M).toLowerCase())}catch(t){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+t}E(n,o)}a&&a.parse&&a.parse(n,e)}else n.error=n.error||"URI can not be parsed.";return n}var L=/^\.\.?\//,R=/^\/\.(\/|$)/,D=/^\/\.\.(\/|$)/,F=/^\/?(?:.|\n)*?(?=\/|$)/;function B(t){for(var e=[];t.length;)if(t.match(L))t=t.replace(L,"");else if(t.match(R))t=t.replace(R,"/");else if(t.match(D))t=t.replace(D,"/"),e.pop();else if("."===t||".."===t)t="";else{var n=t.match(F);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];t=t.slice(r.length),e.push(r)}return e.join("")}function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.iri?s:o,r=[],i=j[(e.scheme||t.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(t,e),t.host)if(n.IPV6ADDRESS.test(t.host));else if(e.domainHost||i&&i.domainHost)try{t.host=e.iri?O.toUnicode(t.host):O.toASCII(t.host.replace(n.PCT_ENCODED,M).toLowerCase())}catch(n){t.error=t.error||"Host's domain name can not be converted to "+(e.iri?"Unicode":"ASCII")+" via punycode: "+n}E(t,n),"suffix"!==e.reference&&t.scheme&&(r.push(t.scheme),r.push(":"));var a=function(t,e){var n=!1!==e.iri?s:o,r=[];return void 0!==t.userinfo&&(r.push(t.userinfo),r.push("@")),void 0!==t.host&&r.push(k(C(String(t.host),n),n).replace(n.IPV6ADDRESS,function(t,e,n){return"["+e+(n?"%25"+n:"")+"]"})),"number"==typeof t.port&&(r.push(":"),r.push(t.port.toString(10))),r.length?r.join(""):void 0}(t,e);if(void 0!==a&&("suffix"!==e.reference&&r.push("//"),r.push(a),t.path&&"/"!==t.path.charAt(0)&&r.push("/")),void 0!==t.path){var u=t.path;e.absolutePath||i&&i.absolutePath||(u=B(u)),void 0===a&&(u=u.replace(/^\/\//,"/%2F")),r.push(u)}return void 0!==t.query&&(r.push("?"),r.push(t.query)),void 0!==t.fragment&&(r.push("#"),r.push(t.fragment)),r.join("")}function z(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(t=I(N(t,n),n),e=I(N(e,n),n)),!(n=n||{}).tolerant&&e.scheme?(r.scheme=e.scheme,r.userinfo=e.userinfo,r.host=e.host,r.port=e.port,r.path=B(e.path||""),r.query=e.query):(void 0!==e.userinfo||void 0!==e.host||void 0!==e.port?(r.userinfo=e.userinfo,r.host=e.host,r.port=e.port,r.path=B(e.path||""),r.query=e.query):(e.path?("/"===e.path.charAt(0)?r.path=B(e.path):(r.path=void 0===t.userinfo&&void 0===t.host&&void 0===t.port||t.path?t.path?t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:e.path:"/"+e.path,r.path=B(r.path)),r.query=e.query):(r.path=t.path,r.query=void 0!==e.query?e.query:t.query),r.userinfo=t.userinfo,r.host=t.host,r.port=t.port),r.scheme=t.scheme),r.fragment=e.fragment,r}function q(t,e){return t&&t.toString().replace(e&&e.iri?s.PCT_ENCODED:o.PCT_ENCODED,M)}var V={scheme:"http",domainHost:!0,parse:function(t,e){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t},serialize:function(t,e){return t.port!==("https"!==String(t.scheme).toLowerCase()?80:443)&&""!==t.port||(t.port=void 0),t.path||(t.path="/"),t}},H={scheme:"https",domainHost:V.domainHost,parse:V.parse,serialize:V.serialize},Y={},G="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",W="[0-9A-Fa-f]",U=n(n("%[EFef][0-9A-Fa-f]%"+W+W+"%"+W+W)+"|"+n("%[89A-Fa-f][0-9A-Fa-f]%"+W+W)+"|"+n("%"+W+W)),X=e("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),$=new RegExp(G,"g"),Q=new RegExp(U,"g"),Z=new RegExp(e("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',X),"g"),K=new RegExp(e("[^]",G,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),J=K;function tt(t){var e=M(t);return e.match($)?e:t}var et={scheme:"mailto",parse:function(t,e){var n=t,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var i=!1,a={},o=n.query.split("&"),s=0,u=o.length;s<u;++s){var c=o[s].split("=");switch(c[0]){case"to":for(var l=c[1].split(","),f=0,h=l.length;f<h;++f)r.push(l[f]);break;case"subject":n.subject=q(c[1],e);break;case"body":n.body=q(c[1],e);break;default:i=!0,a[q(c[0],e)]=q(c[1],e)}}i&&(n.headers=a)}n.query=void 0;for(var p=0,d=r.length;p<d;++p){var g=r[p].split("@");if(g[0]=q(g[0]),e.unicodeSupport)g[1]=q(g[1],e).toLowerCase();else try{g[1]=O.toASCII(q(g[1],e).toLowerCase())}catch(t){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+t}r[p]=g.join("@")}return n},serialize:function(t,e){var n,r=t,a=void 0!==(n=t.to)&&null!==n?n instanceof Array?n:"number"!=typeof n.length||n.split||n.setInterval||n.call?[n]:Array.prototype.slice.call(n):[];if(a){for(var o=0,s=a.length;o<s;++o){var u=String(a[o]),c=u.lastIndexOf("@"),l=u.slice(0,c).replace(Q,tt).replace(Q,i).replace(Z,S),f=u.slice(c+1);try{f=e.iri?O.toUnicode(f):O.toASCII(q(f,e).toLowerCase())}catch(t){r.error=r.error||"Email address's domain name can not be converted to "+(e.iri?"Unicode":"ASCII")+" via punycode: "+t}a[o]=l+"@"+f}r.path=a.join(",")}var h=t.headers=t.headers||{};t.subject&&(h.subject=t.subject),t.body&&(h.body=t.body);var p=[];for(var d in h)h[d]!==Y[d]&&p.push(d.replace(Q,tt).replace(Q,i).replace(K,S)+"="+h[d].replace(Q,tt).replace(Q,i).replace(J,S));return p.length&&(r.query=p.join("&")),r}},nt=/^([^\:]+)\:(.*)/,rt={scheme:"urn",parse:function(t,e){var n=t.path&&t.path.match(nt),r=t;if(n){var i=e.scheme||r.scheme||"urn",a=n[1].toLowerCase(),o=n[2],s=j[i+":"+(e.nid||a)];r.nid=a,r.nss=o,r.path=void 0,s&&(r=s.parse(r,e))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(t,e){var n=t.nid,r=j[(e.scheme||t.scheme||"urn")+":"+(e.nid||n)];r&&(t=r.serialize(t,e));var i=t;return i.path=(n||e.nid)+":"+t.nss,i}},it=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,at={scheme:"urn:uuid",parse:function(t,e){var n=t;return n.uuid=n.nss,n.nss=void 0,e.tolerant||n.uuid&&n.uuid.match(it)||(n.error=n.error||"UUID is not valid."),n},serialize:function(t,e){var n=t;return n.nss=(t.uuid||"").toLowerCase(),n}};j[V.scheme]=V,j[H.scheme]=H,j[et.scheme]=et,j[rt.scheme]=rt,j[at.scheme]=at,t.SCHEMES=j,t.pctEncChar=S,t.pctDecChars=M,t.parse=I,t.removeDotSegments=B,t.serialize=N,t.resolveComponents=z,t.resolve=function(t,e,n){var r=function(t,e){var n={scheme:"null"};if(e)for(var r in e)n[r]=e[r];return n}(0,n);return N(z(I(t,r),I(e,r),r,!0),r)},t.normalize=function(t,e){return"string"==typeof t?t=N(I(t,e),e):"object"===r(t)&&(t=I(N(t,e),e)),t},t.equal=function(t,e,n){return"string"==typeof t?t=N(I(t,n),n):"object"===r(t)&&(t=N(t,n)),"string"==typeof e?e=N(I(e,n),n):"object"===r(e)&&(e=N(e,n)),t===e},t.escapeComponent=function(t,e){return t&&t.toString().replace(e&&e.iri?s.ESCAPE:o.ESCAPE,S)},t.unescapeComponent=q,Object.defineProperty(t,"__esModule",{value:!0})}("object"==typeof n&&void 0!==e?n:this.URI=this.URI||{})},{}],ajv:[function(t,e,n){"use strict";var r=t("./compile"),i=t("./compile/resolve"),a=t("./cache"),o=t("./compile/schema_obj"),s=t("fast-json-stable-stringify"),u=t("./compile/formats"),c=t("./compile/rules"),l=t("./data"),f=t("./compile/util");e.exports=y,y.prototype.validate=function(t,e){var n;if("string"==typeof t){if(!(n=this.getSchema(t)))throw new Error('no schema with key or ref "'+t+'"')}else{var r=this._addSchema(t);n=r.validate||this._compile(r)}var i=n(e);return!0!==n.$async&&(this.errors=n.errors),i},y.prototype.compile=function(t,e){var n=this._addSchema(t,void 0,e);return n.validate||this._compile(n)},y.prototype.addSchema=function(t,e,n,r){if(Array.isArray(t)){for(var a=0;a<t.length;a++)this.addSchema(t[a],void 0,n,r);return this}var o=this._getId(t);if(void 0!==o&&"string"!=typeof o)throw new Error("schema id must be string");return O(this,e=i.normalizeId(e||o)),this._schemas[e]=this._addSchema(t,n,r,!0),this},y.prototype.addMetaSchema=function(t,e,n){return this.addSchema(t,e,n,!0),this},y.prototype.validateSchema=function(t,e){var n,r=t.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||(n=this._opts.meta,this._opts.defaultMeta="object"==typeof n?this._getId(n)||n:this.getSchema(d)?d:void 0,this._opts.defaultMeta)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var i=this.validate(r,t);if(!i&&e){var a="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(a);this.logger.error(a)}return i},y.prototype.getSchema=function(t){var e=m(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return function(t,e){var n=i.schema.call(t,{schema:{}},e);if(n){var a=n.schema,s=n.root,u=n.baseId,c=r.call(t,a,s,void 0,u);return t._fragments[e]=new o({ref:e,fragment:!0,schema:a,root:s,baseId:u,validate:c}),c}}(this,t)}},y.prototype.removeSchema=function(t){if(t instanceof RegExp)return x(this,this._schemas,t),x(this,this._refs,t),this;switch(typeof t){case"undefined":return x(this,this._schemas),x(this,this._refs),this._cache.clear(),this;case"string":var e=m(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var n=this._opts.serialize,r=n?n(t):t;this._cache.del(r);var a=this._getId(t);a&&(a=i.normalizeId(a),delete this._schemas[a],delete this._refs[a])}return this},y.prototype.addFormat=function(t,e){return"string"==typeof e&&(e=new RegExp(e)),this._formats[t]=e,this},y.prototype.errorsText=function(t,e){if(!(t=t||this.errors))return"No errors";for(var n=void 0===(e=e||{}).separator?", ":e.separator,r=void 0===e.dataVar?"data":e.dataVar,i="",a=0;a<t.length;a++){var o=t[a];o&&(i+=r+o.dataPath+" "+o.message+n)}return i.slice(0,-n.length)},y.prototype._addSchema=function(t,e,n,r){if("object"!=typeof t&&"boolean"!=typeof t)throw new Error("schema should be object or boolean");var a=this._opts.serialize,s=a?a(t):t,u=this._cache.get(s);if(u)return u;r=r||!1!==this._opts.addUsedSchema;var c=i.normalizeId(this._getId(t));c&&r&&O(this,c);var l,f=!1!==this._opts.validateSchema&&!e;f&&!(l=c&&c==i.normalizeId(t.$schema))&&this.validateSchema(t,!0);var h=i.ids.call(this,t),p=new o({id:c,schema:t,localRefs:h,cacheKey:s,meta:n});return"#"!=c[0]&&r&&(this._refs[c]=p),this._cache.put(s,p),f&&l&&this.validateSchema(t,!0),p},y.prototype._compile=function(t,e){if(t.compiling)return t.validate=a,a.schema=t.schema,a.errors=null,a.root=e||a,!0===t.schema.$async&&(a.$async=!0),a;var n,i;t.compiling=!0,t.meta&&(n=this._opts,this._opts=this._metaOpts);try{i=r.call(this,t.schema,e,t.localRefs)}catch(e){throw delete t.validate,e}finally{t.compiling=!1,t.meta&&(this._opts=n)}return t.validate=i,t.refs=i.refs,t.refVal=i.refVal,t.root=i.root,i;function a(){var e=t.validate,n=e.apply(this,arguments);return a.errors=e.errors,n}},y.prototype.compileAsync=t("./compile/async");var h=t("./keyword");y.prototype.addKeyword=h.add,y.prototype.getKeyword=h.get,y.prototype.removeKeyword=h.remove,y.prototype.validateKeyword=h.validate;var p=t("./compile/error_classes");y.ValidationError=p.Validation,y.MissingRefError=p.MissingRef,y.$dataMetaSchema=l;var d="http://json-schema.org/draft-07/schema",g=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],v=["/properties"];function y(e){if(!(this instanceof y))return new y(e);e=this._opts=f.copy(e)||{},function(t){var e=t._opts.logger;if(!1===e)t.logger={log:j,warn:j,error:j};else{if(void 0===e&&(e=console),!("object"==typeof e&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=u(e.format),this._cache=e.cache||new a,this._loadingSchemas={},this._compilations=[],this.RULES=c(),this._getId=function(t){switch(t.schemaId){case"auto":return w;case"id":return b;default:return _}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(t){for(var e=f.copy(t._opts),n=0;n<g.length;n++)delete e[g[n]];return e}(this),e.formats&&function(t){for(var e in t._opts.formats)t.addFormat(e,t._opts.formats[e])}(this),function(e){var n;if(e._opts.$data&&(n=t("./refs/data.json"),e.addMetaSchema(n,n.$id,!0)),!1!==e._opts.meta){var r=t("./refs/json-schema-draft-07.json");e._opts.$data&&(r=l(r,v)),e.addMetaSchema(r,d,!0),e._refs["http://json-schema.org/schema"]=d}}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var n in e)t.addSchema(e[n],n)}(this)}function m(t,e){return e=i.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function x(t,e,n){for(var r in e){var i=e[r];i.meta||n&&!n.test(r)||(t._cache.del(i.cacheKey),delete e[r])}}function b(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function _(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function w(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function O(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function j(){}},{"./cache":1,"./compile":5,"./compile/async":2,"./compile/error_classes":3,"./compile/formats":4,"./compile/resolve":6,"./compile/rules":7,"./compile/schema_obj":8,"./compile/util":10,"./data":11,"./keyword":39,"./refs/data.json":40,"./refs/json-schema-draft-07.json":41,"fast-json-stable-stringify":43}]},{},[])("ajv")}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.QRious=e()}(this,function(){"use strict";function t(t,n){var i;return"function"==typeof Object.create?i=Object.create(t):(r.prototype=t,i=new r,r.prototype=null),n&&e(!0,i,n),i}function e(t,e,n){for(var r,o,s=0,u=(n=a.call(arguments,2)).length;s<u;s++)for(r in o=n[s])t&&!i.call(o,r)||(e[r]=o[r])}function n(){}var r=function(){},i=Object.prototype.hasOwnProperty,a=Array.prototype.slice;n.class_="Nevis",n.super_=Object,n.extend=function(n,r,i,a){var o=this;return"string"!=typeof n&&(a=i,i=r,r=n,n=null),"function"!=typeof r&&(a=i,i=r,r=function(){return o.apply(this,arguments)}),e(!1,r,o,a),r.prototype=t(o.prototype,i),r.prototype.constructor=r,r.class_=n||o.class_,r.super_=o,r};var o=n,s=o.extend(function(t,e,n){this.qrious=t,this.element=e,this.element.qrious=t,this.enabled=Boolean(n)},{draw:function(t){},getElement:function(){return this.enabled||(this.enabled=!0,this.render()),this.element},getModuleSize:function(t){var e=this.qrious,n=Math.floor((e.size-2*(e.padding||0))/t.width);return Math.max(1,n)},getOffset:function(t){var e=this.qrious,n=e.padding;if(null!=n)return n;var r=this.getModuleSize(t),i=Math.floor((e.size-r*t.width)/2);return Math.max(0,i)},render:function(t){this.enabled&&(this.resize(),this.reset(),this.draw(t))},reset:function(){},resize:function(){}}),u=s.extend({draw:function(t){var e,n,r=this.qrious,i=this.getModuleSize(t),a=this.getOffset(t),o=this.element.getContext("2d");for(o.fillStyle=r.foreground,o.globalAlpha=r.foregroundAlpha,e=0;e<t.width;e++)for(n=0;n<t.width;n++)t.buffer[n*t.width+e]&&o.fillRect(i*e+a,i*n+a,i,i)},reset:function(){var t=this.qrious,e=this.element.getContext("2d"),n=t.size;e.lineWidth=1,e.clearRect(0,0,n,n),e.fillStyle=t.background,e.globalAlpha=t.backgroundAlpha,e.fillRect(0,0,n,n)},resize:function(){var t=this.element;t.width=t.height=this.qrious.size}}),c=o.extend(null,{BLOCK:[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28]}),l=o.extend(null,{BLOCKS:[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,30,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],FINAL_FORMAT:[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],LEVELS:{L:1,M:2,Q:3,H:4}}),f=o.extend(null,{EXPONENT:[1,2,4,8,16,32,64,128,29,58,116,232,205,135,19,38,76,152,45,90,180,117,234,201,143,3,6,12,24,48,96,192,157,39,78,156,37,74,148,53,106,212,181,119,238,193,159,35,70,140,5,10,20,40,80,160,93,186,105,210,185,111,222,161,95,190,97,194,153,47,94,188,101,202,137,15,30,60,120,240,253,231,211,187,107,214,177,127,254,225,223,163,91,182,113,226,217,175,67,134,17,34,68,136,13,26,52,104,208,189,103,206,129,31,62,124,248,237,199,147,59,118,236,197,151,51,102,204,133,23,46,92,184,109,218,169,79,158,33,66,132,21,42,84,168,77,154,41,82,164,85,170,73,146,57,114,228,213,183,115,230,209,191,99,198,145,63,126,252,229,215,179,123,246,241,255,227,219,171,75,150,49,98,196,149,55,110,220,165,87,174,65,130,25,50,100,200,141,7,14,28,56,112,224,221,167,83,166,81,162,89,178,121,242,249,239,195,155,43,86,172,69,138,9,18,36,72,144,61,122,244,245,247,243,251,235,203,139,11,22,44,88,176,125,250,233,207,131,27,54,108,216,173,71,142,0],LOG:[255,0,1,25,2,50,26,198,3,223,51,238,27,104,199,75,4,100,224,14,52,141,239,129,28,193,105,248,200,8,76,113,5,138,101,47,225,36,15,33,53,147,142,218,240,18,130,69,29,181,194,125,106,39,249,185,201,154,9,120,77,228,114,166,6,191,139,98,102,221,48,253,226,152,37,179,16,145,34,136,54,208,148,206,143,150,219,189,241,210,19,92,131,56,70,64,30,66,182,163,195,72,126,110,107,58,40,84,250,133,186,61,202,94,155,159,10,21,121,43,78,212,229,172,115,243,167,87,7,112,192,247,140,128,99,13,103,74,222,237,49,197,254,24,227,165,153,119,38,184,180,124,17,68,146,217,35,32,137,46,55,63,209,91,149,188,207,205,144,135,151,178,220,252,190,97,242,86,211,171,20,42,93,158,132,60,57,83,71,109,65,162,31,45,67,216,183,123,164,118,196,23,73,236,127,12,111,246,108,161,59,82,41,157,85,170,251,96,134,177,187,204,62,90,203,89,95,176,156,169,160,81,11,245,22,235,122,117,44,215,79,174,213,233,230,231,173,232,116,214,244,234,168,80,88,175]}),h=o.extend(null,{BLOCK:[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177]}),p=o.extend(function(t){var e,n,r,i,a,o=t.value.length;for(this._badness=[],this._level=l.LEVELS[t.level],this._polynomial=[],this._value=t.value,this._version=0,this._stringBuffer=[];this._version<40&&(this._version++,r=4*(this._level-1)+16*(this._version-1),i=l.BLOCKS[r++],a=l.BLOCKS[r++],e=l.BLOCKS[r++],n=l.BLOCKS[r],!(o<=(r=e*(i+a)+a-3+(this._version<=9)))););this._dataBlock=e,this._eccBlock=n,this._neccBlock1=i,this._neccBlock2=a;var s=this.width=17+4*this._version;this.buffer=p._createArray(s*s),this._ecc=p._createArray(e+(e+n)*(i+a)+a),this._mask=p._createArray((s*(s+1)+1)/2),this._insertFinders(),this._insertAlignments(),this.buffer[8+s*(s-8)]=1,this._insertTimingGap(),this._reverseMask(),this._insertTimingRowAndColumn(),this._insertVersion(),this._syncMask(),this._convertBitStream(o),this._calculatePolynomial(),this._appendEccToData(),this._interleaveBlocks(),this._pack(),this._finish()},{_addAlignment:function(t,e){var n,r=this.buffer,i=this.width;for(r[t+i*e]=1,n=-2;n<2;n++)r[t+n+i*(e-2)]=1,r[t-2+i*(e+n+1)]=1,r[t+2+i*(e+n)]=1,r[t+n+1+i*(e+2)]=1;for(n=0;n<2;n++)this._setMask(t-1,e+n),this._setMask(t+1,e-n),this._setMask(t-n,e-1),this._setMask(t+n,e+1)},_appendData:function(t,e,n,r){var i,a,o,s=this._polynomial,u=this._stringBuffer;for(a=0;a<r;a++)u[n+a]=0;for(a=0;a<e;a++){if(255!==(i=f.LOG[u[t+a]^u[n]]))for(o=1;o<r;o++)u[n+o-1]=u[n+o]^f.EXPONENT[p._modN(i+s[r-o])];else for(o=n;o<n+r;o++)u[o]=u[o+1];u[n+r-1]=255===i?0:f.EXPONENT[p._modN(i+s[0])]}},_appendEccToData:function(){var t,e=0,n=this._dataBlock,r=this._calculateMaxLength(),i=this._eccBlock;for(t=0;t<this._neccBlock1;t++)this._appendData(e,n,r,i),e+=n,r+=i;for(t=0;t<this._neccBlock2;t++)this._appendData(e,n+1,r,i),e+=n+1,r+=i},_applyMask:function(t){var e,n,r,i,a=this.buffer,o=this.width;switch(t){case 0:for(i=0;i<o;i++)for(r=0;r<o;r++)r+i&1||this._isMasked(r,i)||(a[r+i*o]^=1);break;case 1:for(i=0;i<o;i++)for(r=0;r<o;r++)1&i||this._isMasked(r,i)||(a[r+i*o]^=1);break;case 2:for(i=0;i<o;i++)for(e=0,r=0;r<o;r++,e++)3===e&&(e=0),e||this._isMasked(r,i)||(a[r+i*o]^=1);break;case 3:for(n=0,i=0;i<o;i++,n++)for(3===n&&(n=0),e=n,r=0;r<o;r++,e++)3===e&&(e=0),e||this._isMasked(r,i)||(a[r+i*o]^=1);break;case 4:for(i=0;i<o;i++)for(e=0,n=i>>1&1,r=0;r<o;r++,e++)3===e&&(e=0,n=!n),n||this._isMasked(r,i)||(a[r+i*o]^=1);break;case 5:for(n=0,i=0;i<o;i++,n++)for(3===n&&(n=0),e=0,r=0;r<o;r++,e++)3===e&&(e=0),(r&i&1)+!(!e|!n)||this._isMasked(r,i)||(a[r+i*o]^=1);break;case 6:for(n=0,i=0;i<o;i++,n++)for(3===n&&(n=0),e=0,r=0;r<o;r++,e++)3===e&&(e=0),(r&i&1)+(e&&e===n)&1||this._isMasked(r,i)||(a[r+i*o]^=1);break;case 7:for(n=0,i=0;i<o;i++,n++)for(3===n&&(n=0),e=0,r=0;r<o;r++,e++)3===e&&(e=0),(e&&e===n)+(r+i&1)&1||this._isMasked(r,i)||(a[r+i*o]^=1)}},_calculateMaxLength:function(){return this._dataBlock*(this._neccBlock1+this._neccBlock2)+this._neccBlock2},_calculatePolynomial:function(){var t,e,n=this._eccBlock,r=this._polynomial;for(r[0]=1,t=0;t<n;t++){for(r[t+1]=1,e=t;e>0;e--)r[e]=r[e]?r[e-1]^f.EXPONENT[p._modN(f.LOG[r[e]]+t)]:r[e-1];r[0]=f.EXPONENT[p._modN(f.LOG[r[0]]+t)]}for(t=0;t<=n;t++)r[t]=f.LOG[r[t]]},_checkBadness:function(){var t,e,n,r,i,a=0,o=this._badness,s=this.buffer,u=this.width;for(i=0;i<u-1;i++)for(r=0;r<u-1;r++)(s[r+u*i]&&s[r+1+u*i]&&s[r+u*(i+1)]&&s[r+1+u*(i+1)]||!(s[r+u*i]||s[r+1+u*i]||s[r+u*(i+1)]||s[r+1+u*(i+1)]))&&(a+=p.N2);var c=0;for(i=0;i<u;i++){for(n=0,o[0]=0,t=0,r=0;r<u;r++)t===(e=s[r+u*i])?o[n]++:o[++n]=1,c+=(t=e)?1:-1;a+=this._getBadness(n)}c<0&&(c=-c);var l=0,f=c;for(f+=f<<2,f<<=1;f>u*u;)f-=u*u,l++;for(a+=l*p.N4,r=0;r<u;r++){for(n=0,o[0]=0,t=0,i=0;i<u;i++)t===(e=s[r+u*i])?o[n]++:o[++n]=1,t=e;a+=this._getBadness(n)}return a},_convertBitStream:function(t){var e,n,r=this._ecc,i=this._version;for(n=0;n<t;n++)r[n]=this._value.charCodeAt(n);var a=this._stringBuffer=r.slice(),o=this._calculateMaxLength();t>=o-2&&(t=o-2,i>9&&t--);var s=t;if(i>9){for(a[s+2]=0,a[s+3]=0;s--;)a[s+3]|=255&(e=a[s])<<4,a[s+2]=e>>4;a[2]|=255&t<<4,a[1]=t>>4,a[0]=64|t>>12}else{for(a[s+1]=0,a[s+2]=0;s--;)a[s+2]|=255&(e=a[s])<<4,a[s+1]=e>>4;a[1]|=255&t<<4,a[0]=64|t>>4}for(s=t+3-(i<10);s<o;)a[s++]=236,a[s++]=17},_getBadness:function(t){var e,n=0,r=this._badness;for(e=0;e<=t;e++)r[e]>=5&&(n+=p.N1+r[e]-5);for(e=3;e<t-1;e+=2)r[e-2]===r[e+2]&&r[e+2]===r[e-1]&&r[e-1]===r[e+1]&&3*r[e-1]===r[e]&&(0===r[e-3]||e+3>t||3*r[e-3]>=4*r[e]||3*r[e+3]>=4*r[e])&&(n+=p.N3);return n},_finish:function(){this._stringBuffer=this.buffer.slice();var t,e,n=0,r=3e4;for(e=0;e<8&&(this._applyMask(e),(t=this._checkBadness())<r&&(r=t,n=e),7!==n);e++)this.buffer=this._stringBuffer.slice();n!==e&&this._applyMask(n),r=l.FINAL_FORMAT[n+(this._level-1<<3)];var i=this.buffer,a=this.width;for(e=0;e<8;e++,r>>=1)1&r&&(i[a-1-e+8*a]=1,e<6?i[8+a*e]=1:i[8+a*(e+1)]=1);for(e=0;e<7;e++,r>>=1)1&r&&(i[8+a*(a-7+e)]=1,e?i[6-e+8*a]=1:i[7+8*a]=1)},_interleaveBlocks:function(){var t,e,n=this._dataBlock,r=this._ecc,i=this._eccBlock,a=0,o=this._calculateMaxLength(),s=this._neccBlock1,u=this._neccBlock2,c=this._stringBuffer;for(t=0;t<n;t++){for(e=0;e<s;e++)r[a++]=c[t+e*n];for(e=0;e<u;e++)r[a++]=c[s*n+t+e*(n+1)]}for(e=0;e<u;e++)r[a++]=c[s*n+t+e*(n+1)];for(t=0;t<i;t++)for(e=0;e<s+u;e++)r[a++]=c[o+t+e*i];this._stringBuffer=r},_insertAlignments:function(){var t,e,n,r=this._version,i=this.width;if(r>1)for(t=c.BLOCK[r],n=i-7;;){for(e=i-7;e>t-3&&(this._addAlignment(e,n),!(e<t));)e-=t;if(n<=t+9)break;this._addAlignment(6,n-=t),this._addAlignment(n,6)}},_insertFinders:function(){var t,e,n,r,i=this.buffer,a=this.width;for(t=0;t<3;t++){for(e=0,r=0,1===t&&(e=a-7),2===t&&(r=a-7),i[r+3+a*(e+3)]=1,n=0;n<6;n++)i[r+n+a*e]=1,i[r+a*(e+n+1)]=1,i[r+6+a*(e+n)]=1,i[r+n+1+a*(e+6)]=1;for(n=1;n<5;n++)this._setMask(r+n,e+1),this._setMask(r+1,e+n+1),this._setMask(r+5,e+n),this._setMask(r+n+1,e+5);for(n=2;n<4;n++)i[r+n+a*(e+2)]=1,i[r+2+a*(e+n+1)]=1,i[r+4+a*(e+n)]=1,i[r+n+1+a*(e+4)]=1}},_insertTimingGap:function(){var t,e,n=this.width;for(e=0;e<7;e++)this._setMask(7,e),this._setMask(n-8,e),this._setMask(7,e+n-7);for(t=0;t<8;t++)this._setMask(t,7),this._setMask(t+n-8,7),this._setMask(t,n-8)},_insertTimingRowAndColumn:function(){var t,e=this.buffer,n=this.width;for(t=0;t<n-14;t++)1&t?(this._setMask(8+t,6),this._setMask(6,8+t)):(e[8+t+6*n]=1,e[6+n*(8+t)]=1)},_insertVersion:function(){var t,e,n,r,i=this.buffer,a=this._version,o=this.width;if(a>6)for(t=h.BLOCK[a-7],e=17,n=0;n<6;n++)for(r=0;r<3;r++,e--)1&(e>11?a>>e-12:t>>e)?(i[5-n+o*(2-r+o-11)]=1,i[2-r+o-11+o*(5-n)]=1):(this._setMask(5-n,2-r+o-11),this._setMask(2-r+o-11,5-n))},_isMasked:function(t,e){var n=p._getMaskBit(t,e);return 1===this._mask[n]},_pack:function(){var t,e,n,r=1,i=1,a=this.width,o=a-1,s=a-1,u=(this._dataBlock+this._eccBlock)*(this._neccBlock1+this._neccBlock2)+this._neccBlock2;for(e=0;e<u;e++)for(t=this._stringBuffer[e],n=0;n<8;n++,t<<=1){128&t&&(this.buffer[o+a*s]=1);do{i?o--:(o++,r?0!==s?s--:(r=!r,6==(o-=2)&&(o--,s=9)):s!==a-1?s++:(r=!r,6==(o-=2)&&(o--,s-=8))),i=!i}while(this._isMasked(o,s))}},_reverseMask:function(){var t,e,n=this.width;for(t=0;t<9;t++)this._setMask(t,8);for(t=0;t<8;t++)this._setMask(t+n-8,8),this._setMask(8,t);for(e=0;e<7;e++)this._setMask(8,e+n-7)},_setMask:function(t,e){var n=p._getMaskBit(t,e);this._mask[n]=1},_syncMask:function(){var t,e,n=this.width;for(e=0;e<n;e++)for(t=0;t<=e;t++)this.buffer[t+n*e]&&this._setMask(t,e)}},{_createArray:function(t){var e,n=[];for(e=0;e<t;e++)n[e]=0;return n},_getMaskBit:function(t,e){var n;return t>e&&(n=t,t=e,e=n),n=e,n+=e*e,(n>>=1)+t},_modN:function(t){for(;t>=255;)t=((t-=255)>>8)+(255&t);return t},N1:3,N2:3,N3:40,N4:10}),d=p,g=s.extend({draw:function(){this.element.src=this.qrious.toDataURL()},reset:function(){this.element.src=""},resize:function(){var t=this.element;t.width=t.height=this.qrious.size}}),v=o.extend(function(t,e,n,r){this.name=t,this.modifiable=Boolean(e),this.defaultValue=n,this._valueTransformer=r},{transform:function(t){var e=this._valueTransformer;return"function"==typeof e?e(t,this):t}}),y=o.extend(null,{abs:function(t){return null!=t?Math.abs(t):null},hasOwn:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},noop:function(){},toUpperCase:function(t){return null!=t?t.toUpperCase():null}}),m=o.extend(function(t){this.options={},t.forEach(function(t){this.options[t.name]=t},this)},{exists:function(t){return null!=this.options[t]},get:function(t,e){return m._get(this.options[t],e)},getAll:function(t){var e,n=this.options,r={};for(e in n)y.hasOwn(n,e)&&(r[e]=m._get(n[e],t));return r},init:function(t,e,n){var r,i;for(r in"function"!=typeof n&&(n=y.noop),this.options)y.hasOwn(this.options,r)&&(m._set(i=this.options[r],i.defaultValue,e),m._createAccessor(i,e,n));this._setAll(t,e,!0)},set:function(t,e,n){return this._set(t,e,n)},setAll:function(t,e){return this._setAll(t,e)},_set:function(t,e,n,r){var i=this.options[t];if(!i)throw new Error("Invalid option: "+t);if(!i.modifiable&&!r)throw new Error("Option cannot be modified: "+t);return m._set(i,e,n)},_setAll:function(t,e,n){if(!t)return!1;var r,i=!1;for(r in t)y.hasOwn(t,r)&&this._set(r,t[r],e,n)&&(i=!0);return i}},{_createAccessor:function(t,e,n){var r={get:function(){return m._get(t,e)}};t.modifiable&&(r.set=function(r){m._set(t,r,e)&&n(r,t)}),Object.defineProperty(e,t.name,r)},_get:function(t,e){return e["_"+t.name]},_set:function(t,e,n){var r="_"+t.name,i=n[r],a=t.transform(null!=e?e:t.defaultValue);return n[r]=a,a!==i}}),x=m,b=o.extend(function(){this._services={}},{getService:function(t){var e=this._services[t];if(!e)throw new Error("Service is not being managed with name: "+t);return e},setService:function(t,e){if(this._services[t])throw new Error("Service is already managed with name: "+t);e&&(this._services[t]=e)}}),_=new x([new v("background",!0,"white"),new v("backgroundAlpha",!0,1,y.abs),new v("element"),new v("foreground",!0,"black"),new v("foregroundAlpha",!0,1,y.abs),new v("level",!0,"L",y.toUpperCase),new v("mime",!0,"image/png"),new v("padding",!0,null,y.abs),new v("size",!0,100,y.abs),new v("value",!0,"")]),w=new b,O=o.extend(function(t){_.init(t,this,this.update.bind(this));var e=_.get("element",this),n=w.getService("element"),r=e&&n.isCanvas(e)?e:n.createCanvas(),i=e&&n.isImage(e)?e:n.createImage();this._canvasRenderer=new u(this,r,!0),this._imageRenderer=new g(this,i,i===e),this.update()},{get:function(){return _.getAll(this)},set:function(t){_.setAll(t,this)&&this.update()},toDataURL:function(t){return this.canvas.toDataURL(t||this.mime)},update:function(){var t=new d({level:this.level,value:this.value});this._canvasRenderer.render(t),this._imageRenderer.render(t)}},{use:function(t){w.setService(t.getName(),t)}});Object.defineProperties(O.prototype,{canvas:{get:function(){return this._canvasRenderer.getElement()}},image:{get:function(){return this._imageRenderer.getElement()}}});var j=O,S=o.extend({getName:function(){}}).extend({createCanvas:function(){},createImage:function(){},getName:function(){return"element"},isCanvas:function(t){},isImage:function(t){}}).extend({createCanvas:function(){return document.createElement("canvas")},createImage:function(){return document.createElement("img")},isCanvas:function(t){return t instanceof HTMLCanvasElement},isImage:function(t){return t instanceof HTMLImageElement}});return j.use(new S),j});