var dll_vue=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=188)}([function(t,e,n){"use strict";n.r(e),n.d(e,"inBrowser",(function(){return a})),n.d(e,"isServer",(function(){return s})),n.d(e,"noop",(function(){return u})),n.d(e,"isDef",(function(){return l})),n.d(e,"isFunction",(function(){return c})),n.d(e,"isObject",(function(){return f})),n.d(e,"isPromise",(function(){return d})),n.d(e,"get",(function(){return h})),n.d(e,"isEmpty",(function(){return p}));var r=n(15),i=n(2);n.d(e,"createNamespace",(function(){return i.createNamespace}));var o=n(10);n.d(e,"addUnit",(function(){return o.addUnit}));var a="undefined"!=typeof window,s=r.default.prototype.$isServer;function u(){}function l(t){return null!=t}function c(t){return"function"==typeof t}function f(t){return null!==t&&"object"==typeof t}function d(t){return f(t)&&c(t.then)&&c(t.catch)}function h(t,e){var n=e.split("."),r=t;return n.forEach((function(t){var e;r=null!=(e=r[t])?e:""})),r}function p(t){return null==t||("object"!=typeof t||0===Object.keys(t).length)}},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e2?n-2:0),i=2;io?1:-1:n>r?1:-1}function c(t,e){var n=l(t,e);if(0===n){var r=t.getDate(),i=e.getDate();return r===i?0:r>i?1:-1}return n}function f(t,e){return(t=new Date(t)).setDate(t.getDate()+e),t}function d(t){return f(t,-1)}function h(t){return f(t,1)}function p(t){var e=t[0].getTime();return(t[1].getTime()-e)/864e5+1}function v(t){return new Date(t)}function g(t){return Array.isArray(t)?t.map((function(t){return null===t?t:v(t)})):v(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"RED",(function(){return r})),n.d(e,"BORDER",(function(){return i})),n.d(e,"BORDER_TOP",(function(){return o})),n.d(e,"BORDER_LEFT",(function(){return a})),n.d(e,"BORDER_BOTTOM",(function(){return s})),n.d(e,"BORDER_SURROUND",(function(){return u})),n.d(e,"BORDER_TOP_BOTTOM",(function(){return l})),n.d(e,"BORDER_UNSET_TOP_BOTTOM",(function(){return c}));var r="#ee0a24",i="van-hairline",o=i+"--top",a=i+"--left",s=i+"--bottom",u=i+"--surround",l=i+"--top-bottom",c=i+"-unset--top-bottom"},function(t,e,n){"use strict";n.r(e),n.d(e,"addUnit",(function(){return a})),n.d(e,"unitToPx",(function(){return u}));var r,i=n(0),o=n(32);function a(t){if(Object(i.isDef)(t))return t=String(t),Object(o.isNumeric)(t)?t+"px":t}function s(t){return+(t=t.replace(/rem/g,""))*function(){if(!r){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;r=parseFloat(e)}return r}()}function u(t){if("number"==typeof t)return t;if(i.inBrowser){if(-1!==t.indexOf("rem"))return s(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)}},function(t,e,n){"use strict";function r(t){return t===window}n.r(e),n.d(e,"getScroller",(function(){return o})),n.d(e,"getScrollTop",(function(){return a})),n.d(e,"setScrollTop",(function(){return s})),n.d(e,"getRootScrollTop",(function(){return u})),n.d(e,"setRootScrollTop",(function(){return l})),n.d(e,"getElementTop",(function(){return c})),n.d(e,"getVisibleHeight",(function(){return f})),n.d(e,"getVisibleTop",(function(){return d}));var i=/scroll|auto/i;function o(t,e){void 0===e&&(e=window);for(var n=t;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e;){var r=window.getComputedStyle(n).overflowY;if(i.test(r))return n;n=n.parentNode}return e}function a(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function s(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function u(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function l(t){s(window,t),s(document.body,t)}function c(t,e){if(r(t))return 0;var n=e?a(e):u();return t.getBoundingClientRect().top+n}function f(t){return r(t)?t.innerHeight:t.getBoundingClientRect().height}function d(t){return r(t)?0:t.getBoundingClientRect().top}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(4),o=n.n(i),a=n(2),s=n(0),u=n(3),l=n(17),c=n(56),f=n(5),d=Object(a.createNamespace)("cell"),h=d[0],p=d[1];function v(t,e,n,r){var i,a=e.icon,c=e.size,d=e.title,h=e.label,v=e.value,g=e.isLink,m=n.title||Object(s.isDef)(d);function y(){if(n.label||Object(s.isDef)(h))return t("div",{class:[p("label"),e.labelClass]},[n.label?n.label():h])}var _=null!=(i=e.clickable)?i:g,b={clickable:_,center:e.center,required:e.required,borderless:!e.border};return c&&(b[c]=c),t("div",o()([{class:p(b),attrs:{role:_?"button":null,tabindex:_?0:null},on:{click:function(t){Object(u.emit)(r,"click",t),Object(l.functionalRoute)(r)}}},Object(u.inherit)(r)]),[n.icon?n.icon():a?t(f.default,{class:p("left-icon"),attrs:{name:a,classPrefix:e.iconPrefix}}):void 0,function(){if(m)return t("div",{class:[p("title"),e.titleClass],style:e.titleStyle},[n.title?n.title():t("span",[d]),y()])}(),function(){if(n.default||Object(s.isDef)(v))return t("div",{class:[p("value",{alone:!m}),e.valueClass]},[n.default?n.default():t("span",[v])])}(),function(){var r=n["right-icon"];if(r)return r();if(g){var i=e.arrowDirection;return t(f.default,{class:p("right-icon"),attrs:{name:i?"arrow-"+i:"arrow"}})}}(),null==n.extra?void 0:n.extra()])}v.props=Object(r.default)({},c.cellProps,l.routeProps),e.default=h(v)},function(t,e,n){"use strict";n.r(e),n.d(e,"camelize",(function(){return i})),n.d(e,"padZero",(function(){return o}));var r=/-(\w)/g;function i(t){return t.replace(r,(function(t,e){return e.toUpperCase()}))}function o(t,e){void 0===e&&(e=2);for(var n=t+"";n.length=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var w=/-(\w)/g,j=x((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),S=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),O=/\B([A-Z])/g,k=x((function(t){return t.replace(O,"-$1").toLowerCase()}));var E=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function C(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function M(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n0,Z=W&&W.indexOf("edge/")>0,Q=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===Y),J=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),tt={}.watch,et=!1;if(G)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){et=!0}}),window.addEventListener("test-passive",null,nt)}catch(t){}var rt=function(){return void 0===q&&(q=!G&&!U&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),q},it=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,st="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);at="undefined"!=typeof Set&&ot(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=P,lt=0,ct=function(){this.id=lt++,this.subs=[]};ct.prototype.addSub=function(t){this.subs.push(t)},ct.prototype.removeSub=function(t){y(this.subs,t)},ct.prototype.depend=function(){ct.target&&ct.target.addDep(this)},ct.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===k(t)){var u=zt(String,i.type);(u<0||s0&&(ce((u=t(u,(n||"")+"_"+r))[0])&&ce(c)&&(f[l]=mt(c.text+u[0].text),u.shift()),f.push.apply(f,u)):s(u)?ce(c)?f[l]=mt(c.text+u):""!==u&&f.push(mt(u)):ce(u)&&ce(c)?f[l]=mt(c.text+u.text):(a(e._isVList)&&o(u.tag)&&i(u.key)&&o(n)&&(u.key="__vlist"+n+"_"+r+"__"),f.push(u)));return f}(t):void 0}function ce(t){return o(t)&&o(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var n=Object.create(null),r=st?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=ve(e,u,t[u]))}else i={};for(var l in e)l in i||(i[l]=ge(e,l));return t&&Object.isExtensible(t)&&(t._normalized=i),z(i,"$stable",a),z(i,"$key",s),z(i,"$hasNormal",o),i}function ve(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:le(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function ge(t,e){return function(){return t[e]}}function me(t,e){var n,r,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(un=function(){return ln.now()})}function cn(){var t,e;for(sn=un(),on=!0,tn.sort((function(t,e){return t.id-e.id})),an=0;anan&&tn[n].id>t.id;)n--;tn.splice(n+1,0,t)}else tn.push(t);rn||(rn=!0,ee(cn))}}(this)},dn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Vt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},dn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},dn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},dn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:P,set:P};function pn(t,e,n){hn.get=function(){return this[e][n]},hn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,hn)}function vn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&jt(!1);var o=function(o){i.push(o);var a=Bt(o,e,n,t);kt(r,o,a),o in t||pn(t,"_props",o)};for(var a in e)o(a);jt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?P:E(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;c(e=t._data="function"==typeof e?function(t,e){dt();try{return t.call(e,e)}catch(t){return Vt(t,e,"data()"),{}}finally{ht()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&b(r,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&pn(t,"_data",o))}var a;Ot(e,!0)}(t):Ot(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=rt();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new dn(t,a||P,P,gn)),i in t||mn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==tt&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function En(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=On(a.componentOptions);s&&!e(s)&&Cn(n,o,r,i)}}}function Cn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=xn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Rt(wn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&We(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=de(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return $e(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return $e(t,e,n,r,i,!0)};var o=n&&n.data;kt(t,"$attrs",o&&o.attrs||r,null,!0),kt(t,"$listeners",e._parentListeners||r,null,!0)}(e),Je(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(jt(!1),Object.keys(e).forEach((function(n){kt(t,n,e[n])})),jt(!0))}(e),vn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),Je(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(jn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Et,t.prototype.$delete=Ct,t.prototype.$watch=function(t,e,n){if(c(e))return bn(this,t,e,n);(n=n||{}).user=!0;var r=new dn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Vt(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(jn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?C(n):n;for(var r=C(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;oparseInt(this.max)&&Cn(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return $}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:M,mergeOptions:Rt,defineReactive:kt},t.set=Et,t.delete=Ct,t.nextTick=ee,t.observable=function(t){return Ot(t),t},t.options=Object.create(null),L.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,M(t.options.components,Tn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=C(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Rt(this.options,t),this}}(t),Sn(t),function(t){L.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(jn),Object.defineProperty(jn.prototype,"$isServer",{get:rt}),Object.defineProperty(jn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(jn,"FunctionalRenderContext",{value:Ae}),jn.version="2.6.12";var Pn=g("style,class"),An=g("input,textarea,option,select,progress"),In=g("contenteditable,draggable,spellcheck"),Nn=g("events,caret,typing,plaintext-only"),Dn=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Rn="http://www.w3.org/1999/xlink",Ln=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Bn=function(t){return Ln(t)?t.slice(6,t.length):""},$n=function(t){return null==t||!1===t};function Fn(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=zn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=zn(e,n.data));return function(t,e){if(o(t)||o(e))return Vn(t,qn(e));return""}(e.staticClass,e.class)}function zn(t,e){return{staticClass:Vn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Vn(t,e){return t?e?t+" "+e:t:e||""}function qn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?dr(t,e,n):Dn(e)?$n(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):In(e)?t.setAttribute(e,function(t,e){return $n(e)||"false"===e?"false":"contenteditable"===t&&Nn(e)?e:"true"}(e,n)):Ln(e)?$n(n)?t.removeAttributeNS(Rn,Bn(e)):t.setAttributeNS(Rn,e,n):dr(t,e,n)}function dr(t,e,n){if($n(n))t.removeAttribute(e);else{if(X&&!K&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var hr={create:cr,update:cr};function pr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=Fn(e),u=n._transitionClasses;o(u)&&(s=Vn(s,qn(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var vr,gr={create:pr,update:pr};function mr(t,e,n){var r=vr;return function i(){var o=e.apply(null,arguments);null!==o&&br(t,i,n,r)}}var yr=Yt&&!(J&&Number(J[1])<=53);function _r(t,e,n,r){if(yr){var i=sn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}vr.addEventListener(t,e,et?{capture:n,passive:r}:n)}function br(t,e,n,r){(r||vr).removeEventListener(t,e._wrapper||e,n)}function xr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};vr=e.elm,function(t){if(o(t.__r)){var e=X?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),ae(n,r,_r,br,mr,e.context),vr=void 0}}var wr,jr={create:xr,update:xr};function Sr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};for(n in o(u.__ob__)&&(u=e.data.domProps=M({},u)),s)n in u||(a[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var l=i(r)?"":String(r);Or(a,l)&&(a.value=l)}else if("innerHTML"===n&&Un(a.tagName)&&i(a.innerHTML)){(wr=wr||document.createElement("div")).innerHTML=""+r+"";for(var c=wr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(r!==s[n])try{a[n]=r}catch(t){}}}}function Or(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return v(n)!==v(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var kr={create:Sr,update:Sr},Er=x((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Cr(t){var e=Mr(t.style);return t.staticStyle?M(t.staticStyle,e):e}function Mr(t){return Array.isArray(t)?T(t):"string"==typeof t?Er(t):t}var Tr,Pr=/^--/,Ar=/\s*!important$/,Ir=function(t,e,n){if(Pr.test(e))t.style.setProperty(e,n);else if(Ar.test(n))t.style.setProperty(k(e),n.replace(Ar,""),"important");else{var r=Dr(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(Br).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Fr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Br).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function zr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&M(e,Vr(t.name||"v")),M(e,t),e}return"string"==typeof t?Vr(t):void 0}}var Vr=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),qr=G&&!K,Hr="transition",Gr="transitionend",Ur="animation",Yr="animationend";qr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Hr="WebkitTransition",Gr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ur="WebkitAnimation",Yr="webkitAnimationEnd"));var Wr=G?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Xr(t){Wr((function(){Wr(t)}))}function Kr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),$r(t,e))}function Zr(t,e){t._transitionClasses&&y(t._transitionClasses,e),Fr(t,e)}function Qr(t,e,n){var r=ti(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s="transition"===i?Gr:Yr,u=0,l=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++u>=a&&l()};setTimeout((function(){u0&&(n="transition",c=a,f=o.length):"animation"===e?l>0&&(n="animation",c=l,f=u.length):f=(n=(c=Math.max(a,l))>0?a>l?"transition":"animation":null)?"transition"===n?o.length:u.length:0,{type:n,timeout:c,propCount:f,hasTransform:"transition"===n&&Jr.test(r[Hr+"Property"])}}function ei(t,e){for(;t.length1}function si(t,e){!0!==e.data.show&&ri(e)}var ui=function(t){var e,n,r={},u=t.modules,l=t.nodeOps;for(e=0;ep?_(t,i(n[m+1])?null:n[m+1].elm,n,h,m,r):h>m&&x(e,d,p)}(d,g,m,n,c):o(m)?(o(t.text)&&l.setTextContent(d,""),_(d,null,m,0,m.length-1,n)):o(g)?x(g,0,g.length-1):o(t.text)&&l.setTextContent(d,""):t.text!==e.text&&l.setTextContent(d,e.text),o(p)&&o(h=p.hook)&&o(h=h.postpatch)&&h(t,e)}}}function O(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(N(hi(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function di(t,e){return e.every((function(e){return!N(e,t)}))}function hi(t){return"_value"in t?t._value:t.value}function pi(t){t.target.composing=!0}function vi(t){t.target.composing&&(t.target.composing=!1,gi(t.target,"input"))}function gi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function mi(t){return!t.componentInstance||t.data&&t.data.transition?t:mi(t.componentInstance._vnode)}var yi={model:li,show:{bind:function(t,e,n){var r=e.value,i=(n=mi(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ri(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=mi(n)).data&&n.data.transition?(n.data.show=!0,r?ri(n,(function(){t.style.display=t.__vOriginalDisplay})):ii(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},_i={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function bi(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?bi(He(e.children)):t}function xi(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[j(o)]=i[o];return e}function wi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ji=function(t){return t.tag||qe(t)},Si=function(t){return"show"===t.name},Oi={name:"transition",props:_i,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(ji)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=bi(i);if(!o)return i;if(this._leaving)return wi(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=xi(this),l=this._vnode,c=bi(l);if(o.data.directives&&o.data.directives.some(Si)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!qe(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var f=c.data.transition=M({},u);if("out-in"===r)return this._leaving=!0,se(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),wi(t,i);if("in-out"===r){if(qe(o))return l;var d,h=function(){d()};se(u,"afterEnter",h),se(u,"enterCancelled",h),se(f,"delayLeave",(function(t){d=t}))}}return i}}},ki=M({tag:String,moveClass:String},_i);function Ei(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Ci(t){t.data.newPos=t.elm.getBoundingClientRect()}function Mi(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete ki.mode;var Ti={Transition:Oi,TransitionGroup:{props:ki,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Ke(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=xi(this),s=0;s-1?Wn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Wn[t]=/HTMLUnknownElement/.test(e.toString())},M(jn.options.directives,yi),M(jn.options.components,Ti),jn.prototype.__patch__=G?ui:P,jn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=gt),Je(t,"beforeMount"),r=function(){t._update(t._render(),n)},new dn(t,r,P,{before:function(){t._isMounted&&!t._isDestroyed&&Je(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Je(t,"mounted")),t}(this,t=t&&G?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},G&&setTimeout((function(){$.devtools&&it&&it.emit("init",jn)}),0),e.default=jn}.call(this,n(52),n(210).setImmediate)},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"raf",(function(){return u})),n.d(e,"doubleRaf",(function(){return l})),n.d(e,"cancelRaf",(function(){return c}));var r=n(0),i=Date.now();var o=r.isServer?t:window,a=o.requestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-i)),r=setTimeout(t,n);return i=e+n,r},s=o.cancelAnimationFrame||o.clearTimeout;function u(t){return a.call(o,t)}function l(t){u((function(){u(t)}))}function c(t){s.call(o,t)}}.call(this,n(52))},function(t,e,n){"use strict";function r(t,e){var n=e.to,r=e.url,i=e.replace;if(n&&t){var o=t[i?"replace":"push"](n);o&&o.catch&&o.catch((function(t){if(t&&!function(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}(t))throw t}))}else r&&(i?location.replace(r):location.href=r)}function i(t){r(t.parent&&t.parent.$router,t.props)}n.r(e),n.d(e,"route",(function(){return r})),n.d(e,"functionalRoute",(function(){return i})),n.d(e,"routeProps",(function(){return o}));var o={url:String,replace:Boolean,to:[String,Object]}},function(t,e,n){"use strict";n.r(e),n.d(e,"TouchMixin",(function(){return i}));var r=n(7);var i={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e,n,r=t.touches[0];this.deltaX=r.clientX<0?0:r.clientX-this.startX,this.deltaY=r.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(e=this.offsetX,n=this.offsetY,e>n&&e>10?"horizontal":n>e&&n>10?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,n=this.onTouchMove,i=this.onTouchEnd;Object(r.on)(t,"touchstart",e),Object(r.on)(t,"touchmove",n),i&&(Object(r.on)(t,"touchend",i),Object(r.on)(t,"touchcancel",i))}}}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(10),s=n(3),u=Object(o.createNamespace)("loading"),l=u[0],c=u[1];function f(t,e){if("spinner"===e.type){for(var n=[],r=0;r<12;r++)n.push(t("i"));return n}return t("svg",{class:c("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function d(t,e,n){if(n.default){var r,i={fontSize:Object(a.addUnit)(e.textSize),color:null!=(r=e.textColor)?r:e.color};return t("span",{class:c("text"),style:i},[n.default()])}}function h(t,e,n,r){var o=e.color,u=e.size,l=e.type,h={color:o};if(u){var p=Object(a.addUnit)(u);h.width=p,h.height=p}return t("div",i()([{class:c([l,{vertical:e.vertical}])},Object(s.inherit)(r,!0)]),[t("span",{class:c("spinner",l),style:h},[f(t,e)]),d(t,e,n)])}h.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}},e.default=l(h)},function(t,e,n){"use strict";function r(t,e,n){return Math.min(Math.max(t,e),n)}function i(t,e,n){var r=t.indexOf(e),i="";return-1===r?t:"-"===e&&0!==r?t.slice(0,r):("."===e&&t.match(/^(\.|-\.)/)&&(i=r?"-0":"0"),i+t.slice(0,r+1)+t.slice(r).replace(n,""))}function o(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!0),t=e?i(t,".",/\./g):t.split(".")[0];var r=e?/[^-0-9.]/g:/[^-0-9]/g;return(t=n?i(t,"-",/-/g):t.replace(/-/,"")).replace(r,"")}n.r(e),n.d(e,"range",(function(){return r})),n.d(e,"formatNumber",(function(){return o}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(0),o=n(28),a=n(5),s=Object(r.createNamespace)("popup"),u=s[0],l=s[1];e.default=u({mixins:[Object(o.PopupMixin)()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(n){return t.$emit(e,n)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var n=this.round,r=this.position,o=this.duration,s="center"===r,u=this.transition||(s?"van-fade":"van-popup-slide-"+r),c={};if(Object(i.isDef)(o)){var f=s?"animationDuration":"transitionDuration";c[f]=o+"s"}return e("transition",{attrs:{appear:this.transitionAppear,name:u},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:c,class:l((t={round:n},t[r]=r,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(a.default,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:l("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(1),a=n(79),s=n(20),u=n(7),l=n(2),c=n(0),f=n(10),d=n(5),h=n(12),p=n(56),v=Object(l.createNamespace)("field"),g=v[0],m=v[1];e.default=g({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:Object(o.default)({},p.cellProps,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var t=this.getProp("readonly");if(this.clearable&&!t){var e=Object(c.isDef)(this.value)&&""!==this.value,n="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return e&&n}},showError:function(){return null!==this.error?this.error:!!(this.vanForm&&this.vanForm.showError&&this.validateFailed)||void 0},listeners:function(){return Object(o.default)({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var t=this.getProp("labelWidth");if(t)return{width:Object(f.addUnit)(t)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(t,e){return new Promise((function(n){var r=e.validator(t,e);if(Object(c.isPromise)(r))return r.then(n);n(r)}))},isEmptyValue:function(t){return Array.isArray(t)?!t.length:0!==t&&!t},runSyncRule:function(t,e){return(!e.required||!this.isEmptyValue(t))&&!(e.pattern&&!e.pattern.test(t))},getRuleMessage:function(t,e){var n=e.message;return Object(c.isFunction)(n)?n(t,e):n},runRules:function(t){var e=this;return t.reduce((function(t,n){return t.then((function(){if(!e.validateFailed){var t=e.formValue;return n.formatter&&(t=n.formatter(t,n)),e.runSyncRule(t,n)?n.validator?e.runValidator(t,n).then((function(r){!1===r&&(e.validateFailed=!0,e.validateMessage=e.getRuleMessage(t,n))})):void 0:(e.validateFailed=!0,void(e.validateMessage=e.getRuleMessage(t,n)))}}))}),Promise.resolve())},validate:function(t){var e=this;return void 0===t&&(t=this.rules),new Promise((function(n){t||n(),e.resetValidation(),e.runRules(t).then((function(){e.validateFailed?n({name:e.name,message:e.validateMessage}):n()}))}))},validateWithTrigger:function(t){if(this.vanForm&&this.rules){var e=this.vanForm.validateTrigger===t,n=this.rules.filter((function(n){return n.trigger?n.trigger===t:e}));n.length&&this.validate(n)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(t,e){void 0===e&&(e="onChange"),t=Object(c.isDef)(t)?String(t):"";var n=this.maxlength;if(Object(c.isDef)(n)&&t.length>n&&(t=this.value&&this.value.length===+n?this.value:t.slice(0,n)),"number"===this.type||"digit"===this.type){var r="number"===this.type;t=Object(s.formatNumber)(t,r,r)}this.formatter&&e===this.formatTrigger&&(t=this.formatter(t));var i=this.$refs.input;i&&t!==i.value&&(i.value=t),t!==this.value&&this.$emit("input",t)},onInput:function(t){t.target.composing||this.updateValue(t.target.value)},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.getProp("readonly")&&this.blur()},onBlur:function(t){this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",t),this.validateWithTrigger("onBlur"),Object(a.resetScroll)()},onClick:function(t){this.$emit("click",t)},onClickInput:function(t){this.$emit("click-input",t)},onClickLeftIcon:function(t){this.$emit("click-left-icon",t)},onClickRightIcon:function(t){this.$emit("click-right-icon",t)},onClear:function(t){Object(u.preventDefault)(t),this.$emit("input",""),this.$emit("clear",t)},onKeypress:function(t){13===t.keyCode&&(this.getProp("submitOnEnter")||"textarea"===this.type||Object(u.preventDefault)(t),"search"===this.type&&this.blur());this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){t.style.height="auto";var e=t.scrollHeight;if(Object(c.isObject)(this.autosize)){var n=this.autosize,r=n.maxHeight,i=n.minHeight;r&&(e=Math.min(e,r)),i&&(e=Math.max(e,i))}e&&(t.style.height=e+"px")}},genInput:function(){var t=this.$createElement,e=this.type,n=this.getProp("disabled"),r=this.getProp("readonly"),a=this.slots("input"),s=this.getProp("inputAlign");if(a)return t("div",{class:m("control",[s,"custom"]),on:{click:this.onClickInput}},[a]);var u={ref:"input",class:m("control",s),domProps:{value:this.value},attrs:Object(o.default)({},this.$attrs,{name:this.name,disabled:n,readonly:r,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===e)return t("textarea",i()([{},u]));var l,c=e;return"number"===e&&(c="text",l="decimal"),"digit"===e&&(c="tel",l="numeric"),t("input",i()([{attrs:{type:c,inputmode:l}},u]))},genLeftIcon:function(){var t=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return t("div",{class:m("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(d.default,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var t=this.$createElement,e=this.slots;if(e("right-icon")||this.rightIcon)return t("div",{class:m("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||t(d.default,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var t=this.$createElement;if(this.showWordLimit&&this.maxlength){var e=(this.value||"").length;return t("div",{class:m("word-limit")},[t("span",{class:m("word-num")},[e]),"/",this.maxlength])}},genMessage:function(){var t=this.$createElement;if(!this.vanForm||!1!==this.vanForm.showErrorMessage){var e=this.errorMessage||this.validateMessage;if(e){var n=this.getProp("errorMessageAlign");return t("div",{class:m("error-message",n)},[e])}}},getProp:function(t){return Object(c.isDef)(this[t])?this[t]:this.vanForm&&Object(c.isDef)(this.vanForm[t])?this.vanForm[t]:void 0},genLabel:function(){var t=this.$createElement,e=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),e]:this.label?t("span",[this.label+e]):void 0}},render:function(){var t,e=arguments[0],n=this.slots,r=this.getProp("disabled"),i=this.getProp("labelAlign"),o={icon:this.genLeftIcon},a=this.genLabel();a&&(o.title=function(){return a});var s=this.slots("extra");return s&&(o.extra=function(){return s}),e(h.default,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:m("value"),titleClass:[m("label",i),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:o,class:m((t={error:this.showError,disabled:r},t["label-"+i]=i,t["min-height"]="textarea"===this.type&&!this.autosize,t)),on:{click:this.onClick}},[e("div",{class:m("body")},[this.genInput(),this.showClear&&e(d.default,{attrs:{name:"clear"},class:m("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),n("button")&&e("div",{class:m("button")},[n("button")])]),this.genWordLimit(),this.genMessage()])}})},function(t,e,n){"use strict";n.r(e),n.d(e,"BindEventMixin",(function(){return o}));var r=n(7),i=0;function o(t){var e="binded_"+i++;function n(){this[e]||(t.call(this,r.on,!0),this[e]=!0)}function o(){this[e]&&(t.call(this,r.off,!1),this[e]=!1)}return{mounted:n,activated:n,deactivated:o,beforeDestroy:o}}},function(t,e,n){"use strict";n.r(e),n.d(e,"FieldMixin",(function(){return r}));var r={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(0),s=n(3),u=Object(o.createNamespace)("info"),l=u[0],c=u[1];function f(t,e,n,r){var o=e.dot,u=e.info,l=Object(a.isDef)(u)&&""!==u;if(o||l)return t("div",i()([{class:c({dot:o})},Object(s.inherit)(r,!0)]),[o?"":e.info])}f.props={dot:Boolean,info:[Number,String]},e.default=l(f)},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(15),o=n(149),a=n(0),s=n(54),u={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},l={},c=[],f=!1,d=Object(r.default)({},u);function h(t){return Object(a.isObject)(t)?t:{message:t}}function p(){if(a.isServer)return{};if(!(c=c.filter((function(t){return!t.$el.parentNode||(e=t.$el,document.body.contains(e));var e}))).length||f){var t=new(i.default.extend(o.default))({el:document.createElement("div")});t.$on("input",(function(e){t.value=e})),c.push(t)}return c[c.length-1]}function v(t){void 0===t&&(t={});var e=p();return e.value&&e.updateZIndex(),t=h(t),(t=Object(r.default)({},d,l[t.type||d.type],t)).clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),f&&!a.isServer&&e.$on("closed",(function(){clearTimeout(e.timer),c=c.filter((function(t){return t!==e})),Object(s.removeNode)(e.$el),e.$destroy()}))},Object(r.default)(e,function(t){return Object(r.default)({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout((function(){e.clear()}),t.duration)),e}["loading","success","fail"].forEach((function(t){var e;v[t]=(e=t,function(t){return v(Object(r.default)({type:e},h(t)))})})),v.clear=function(t){c.length&&(t?(c.forEach((function(t){t.clear()})),c=[]):f?c.shift().clear():c[0].clear())},v.setDefaultOptions=function(t,e){"string"==typeof t?l[t]=e:Object(r.default)(d,t)},v.resetDefaultOptions=function(t){"string"==typeof t?l[t]=null:(d=Object(r.default)({},u),l={})},v.allowMultiple=function(t){void 0===t&&(t=!0),f=t},v.install=function(){i.default.use(o.default)},i.default.prototype.$toast=v,e.default=v},function(t,e,n){"use strict";n.r(e),n.d(e,"context",(function(){return r}));var r={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter((function(e){return e.vm===t}))[0]}}},function(t,e,n){"use strict";n.r(e),n.d(e,"popupMixinProps",(function(){return f})),n.d(e,"PopupMixin",(function(){return d}));var r=n(27),i=n(61),o=n(7),a=n(54),s=n(11),u=n(18),l=n(53),c=n(170),f={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function d(t){return void 0===t&&(t={}),{mixins:[u.TouchMixin,c.CloseOnPopstateMixin,Object(l.PortalMixin)({afterPortal:function(){this.overlay&&Object(i.updateOverlay)()}})],props:f,data:function(){return{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var n=e?"open":"close";this.inited=this.inited||this.value,this[n](),t.skipToggleEvent||this.$emit(n)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){Object(i.removeOverlay)(this),this.opened&&this.removeLock(),this.getContainer&&Object(a.removeNode)(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(r.context.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock())},addLock:function(){this.lockScroll&&(Object(o.on)(document,"touchstart",this.touchStart),Object(o.on)(document,"touchmove",this.onTouchMove),r.context.lockCount||document.body.classList.add("van-overflow-hidden"),r.context.lockCount++)},removeLock:function(){this.lockScroll&&r.context.lockCount&&(r.context.lockCount--,Object(o.off)(document,"touchstart",this.touchStart),Object(o.off)(document,"touchmove",this.onTouchMove),r.context.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(Object(i.closeOverlay)(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",n=Object(s.getScroller)(t.target,this.$el),r=n.scrollHeight,i=n.offsetHeight,a=n.scrollTop,u="11";0===a?u=i>=r?"00":"01":a+i>=r&&(u="10"),"11"===u||"vertical"!==this.direction||parseInt(u,2)&parseInt(e,2)||Object(o.preventDefault)(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick((function(){t.updateZIndex(t.overlay?1:0),t.overlay?Object(i.openOverlay)(t,{zIndex:r.context.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):Object(i.closeOverlay)(t)}))},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++r.context.zIndex+t}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"LIMIT_TYPE",(function(){return r})),n.d(e,"UNSELECTED_SKU_VALUE_ID",(function(){return i}));var r={QUOTA_LIMIT:0,STOCK_LIMIT:1},i="";e.default={LIMIT_TYPE:r,UNSELECTED_SKU_VALUE_ID:i}},function(t,e,n){"use strict";var r=n(155),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n0},selectedSkuComb:function(){var t=null;return this.isSkuCombSelected&&(t=this.hasSku?Object(y.getSkuComb)(this.skuList,this.selectedSku):{id:this.sku.collection_id,price:Math.round(100*this.sku.price),stock_num:this.sku.stock_num})&&(t.properties=Object(y.getSelectedProperties)(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce((function(t,e){return t+(e.price||0)}),0)),t},selectedSkuValues:function(){return Object(y.getSelectedSkuValues)(this.skuTree,this.selectedSku)},selectedPropValues:function(){return Object(y.getSelectedPropValues)(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var t=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach((function(e){e.v&&e.v.forEach((function(e){var n=e.previewImgUrl||e.imgUrl||e.img_url;n&&-1===t.indexOf(n)&&t.push(n)}))})),t},stock:function(){var t=this.customStepperConfig.stockNum;return void 0!==t?t:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var t=this.$createElement,e=this.customStepperConfig.stockFormatter;return e?e(this.stock):[j("stock")+" ",t("span",{class:w("stock-num",{highlight:this.stock0&&this.$nextTick((function(){t.$emit("sku-selected",{skuValue:e[e.length-1],selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb})})),this.selectedProp={};var n=this.initialSku.selectedProp,r=void 0===n?{}:n;this.propList.forEach((function(e){r[e.k_id]&&(t.selectedProp[e.k_id]=r[e.k_id])})),Object(m.isEmpty)(this.selectedProp)&&this.propList.forEach((function(e){var n;if((null==e||null==(n=e.v)?void 0:n.length)>0){var r=e.v,i=e.k_id;r.some((function(t){return 0!=+t.price}))||(t.selectedProp[i]=[r[0].id])}}));var i=this.selectedPropValues;i.length>0&&this.$emit("sku-prop-selected",{propValue:i[i.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(0===this.selectedNum)return j("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return j("selectSku")},onSelect:function(t){var e,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?Object(r.default)({},this.selectedSku,((e={})[t.skuKeyStr]=_.UNSELECTED_SKU_VALUE_ID,e)):Object(r.default)({},this.selectedSku,((n={})[t.skuKeyStr]=t.id,n)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(t){var e,n=this.selectedProp[t.skuKeyStr]||[],i=n.indexOf(t.id);i>-1?n.splice(i,1):t.multiple?n.push(t.id):n.splice(0,1,t.id),this.selectedProp=Object(r.default)({},this.selectedProp,((e={})[t.skuKeyStr]=n,e)),this.$emit("sku-prop-selected",{propValue:t,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var e=this,n=this.imageList,i=0,o=n[0];t&&t.imgUrl&&(this.imageList.some((function(e,n){return e===t.imgUrl&&(i=n,!0)})),o=t.imgUrl);var a=Object(r.default)({},t,{index:i,imageList:this.imageList,indexImage:o});this.$emit("open-preview",a),this.previewOnClickImage&&Object(s.default)({images:this.imageList,startPosition:i,onClose:function(){e.$emit("close-preview",a)}})},onOverLimit:function(t){var e=t.action,n=t.limitType,r=t.quota,i=t.quotaUsed,o=this.customStepperConfig.handleOverLimit;o?o(t):"minus"===e?this.startSaleNum>1?Object(a.default)(j("minusStartTip",this.startSaleNum)):Object(a.default)(j("minusTip")):"plus"===e&&(n===S?i>0?Object(a.default)(j("quotaUsedTip",r,i)):Object(a.default)(j("quotaTip",r)):Object(a.default)(j("soldout")))},onStepperState:function(t){this.stepperError=t.valid?null:Object(r.default)({},t,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){if(this.stepperError)return this.onOverLimit(this.stepperError);var e=this.validateSku();e?Object(a.default)(e):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var t=this;(this.$refs.skuRows||[]).forEach((function(e){var n=(e.skuRow||{}).k_s;e.centerItem(t.initialSku[n])}))}},render:function(){var t=this,e=arguments[0];if(!this.isSkuEmpty){var n=this.sku,r=this.skuList,i=this.goods,a=this.price,s=this.lazyLoad,g=this.originPrice,m=this.skuEventBus,y=this.selectedSku,_=this.selectedProp,b=this.selectedNum,x=this.stepperTitle,w=this.selectedSkuComb,S=this.showHeaderImage,O=this.disableSoldoutSku,k={price:a,originPrice:g,selectedNum:b,skuEventBus:m,selectedSku:y,selectedSkuComb:w},E=function(e){return t.slots(e,k)},C=E("sku-header")||e(u.default,{attrs:{sku:n,goods:i,skuEventBus:m,selectedSku:y,showHeaderImage:S}},[e("template",{slot:"sku-header-image-extra"},[E("sku-header-image-extra")]),E("sku-header-price")||e("div",{class:"van-sku__goods-price"},[e("span",{class:"van-sku__price-symbol"},["¥"]),e("span",{class:"van-sku__price-num"},[a]),this.priceTag&&e("span",{class:"van-sku__price-tag"},[this.priceTag])]),E("sku-header-origin-price")||g&&e(l.default,[j("originPrice")," ¥",g]),!this.hideStock&&e(l.default,[e("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&e(l.default,[this.selectedText]),E("sku-header-extra")]),M=E("sku-group")||this.hasSkuOrAttr&&e("div",{class:this.skuGroupClass},[this.skuTree.map((function(t){return e(c.default,{attrs:{skuRow:t},ref:"skuRows",refInFor:!0},[t.v.map((function(n){return e(f.default,{attrs:{skuList:r,lazyLoad:s,skuValue:n,skuKeyStr:t.k_s,selectedSku:y,skuEventBus:m,disableSoldoutSku:O,largeImageMode:t.largeImageMode}})}))])})),this.propList.map((function(t){return e(c.default,{attrs:{skuRow:t}},[t.v.map((function(n){return e(d.default,{attrs:{skuValue:n,skuKeyStr:t.k_id+"",selectedProp:_,skuEventBus:m,multiple:t.is_multiple}})}))])}))]),T=E("sku-stepper")||e(h.default,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:m,selectedNum:b,stepperTitle:x,skuStockNum:n.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(e){t.$emit("stepper-change",e)}}}),P=E("sku-messages")||e(p.default,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),A=E("sku-actions")||e(v.default,{attrs:{buyText:this.buyText,skuEventBus:m,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return e(o.default,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:t.show,callback:function(e){t.show=e}}},[C,e("div",{class:"van-sku-body",style:this.bodyStyle},[E("sku-body-top"),M,E("extra-sku-group"),T,P]),E("sku-actions-top"),A])}}})},function(t,e,n){"use strict";n.r(e),n.d(e,"normalizeSkuTree",(function(){return o})),n.d(e,"normalizePropList",(function(){return a})),n.d(e,"isAllSelected",(function(){return s})),n.d(e,"getSkuComb",(function(){return u})),n.d(e,"getSelectedSkuValues",(function(){return l})),n.d(e,"isSkuChoosable",(function(){return c})),n.d(e,"getSelectedPropValues",(function(){return f})),n.d(e,"getSelectedProperties",(function(){return d}));var r=n(1),i=n(29),o=function(t){var e={};return t.forEach((function(t){e[t.k_s]=t.v})),e},a=function(t){var e={};return t.forEach((function(t){var n={};t.v.forEach((function(t){n[t.id]=t})),e[t.k_id]=n})),e},s=function(t,e){var n=Object.keys(e).filter((function(t){return e[t]!==i.UNSELECTED_SKU_VALUE_ID}));return t.length===n.length},u=function(t,e){return t.filter((function(t){return Object.keys(e).every((function(n){return String(t[n])===String(e[n])}))}))[0]},l=function(t,e){var n=o(t);return Object.keys(e).reduce((function(t,r){var o=n[r],a=e[r];if(a!==i.UNSELECTED_SKU_VALUE_ID){var s=o.filter((function(t){return t.id===a}))[0];s&&t.push(s)}return t}),[])},c=function(t,e,n){var o,a=n.key,s=n.valueId,u=Object(r.default)({},e,((o={})[a]=s,o)),l=Object.keys(u).filter((function(t){return u[t]!==i.UNSELECTED_SKU_VALUE_ID}));return t.filter((function(t){return l.every((function(e){return String(u[e])===String(t[e])}))})).reduce((function(t,e){return t+=e.stock_num}),0)>0},f=function(t,e){var n=a(t);return Object.keys(e).reduce((function(t,i){return e[i].forEach((function(e){t.push(Object(r.default)({},n[i][e]))})),t}),[])},d=function(t,e){var n=[];return(t||[]).forEach((function(t){if(e[t.k_id]&&e[t.k_id].length>0){var i=[];t.v.forEach((function(n){e[t.k_id].indexOf(n.id)>-1&&i.push(Object(r.default)({},n))})),n.push(Object(r.default)({},t,{v:i}))}})),n};e.default={normalizeSkuTree:o,getSkuComb:u,getSelectedSkuValues:l,isAllSelected:s,isSkuChoosable:c,getSelectedPropValues:f,getSelectedProperties:d}},function(t,e,n){"use strict";n.r(e),n.d(e,"createComponent",(function(){return o})),n.d(e,"bem",(function(){return a}));var r=n(2),i=Object(r.createNamespace)("image-preview"),o=i[0],a=i[1]},function(t,e,n){"use strict";function r(t){var e=window.getComputedStyle(t),n="none"===e.display,r=null===t.offsetParent&&"fixed"!==e.position;return n||r}n.r(e),n.d(e,"isHidden",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(10),o=n(78),a=n(24),s=n(19),u=Object(r.createNamespace)("switch"),l=u[0],c=u[1];e.default=l({mixins:[a.FieldMixin],props:o.switchProps,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(i.addUnit)(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var e=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",e),this.$emit("change",e)}},genLoading:function(){var t=this.$createElement;if(this.loading){var e=this.checked?this.activeColor:this.inactiveColor;return t(s.default,{class:c("loading"),attrs:{color:e}})}}},render:function(){var t=arguments[0],e=this.checked,n=this.loading,r=this.disabled;return t("div",{class:c({on:e,loading:n,disabled:r}),attrs:{role:"switch","aria-checked":String(e)},style:this.style,on:{click:this.onClick}},[t("div",{class:c("node")},[this.genLoading()])])}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(3),s=n(5),u=Object(o.createNamespace)("tag"),l=u[0],c=u[1];function f(t,e,n,r){var o,u=e.type,l=e.mark,f=e.plain,d=e.color,h=e.round,p=e.size,v=e.textColor,g=((o={})[f?"color":"backgroundColor"]=d,o);f?(g.color=v||d,g.borderColor=d):(g.color=v,g.background=d);var m={mark:l,plain:f,round:h};p&&(m[p]=p);var y=e.closeable&&t(s.default,{attrs:{name:"cross"},class:c("close"),on:{click:function(t){t.stopPropagation(),Object(a.emit)(r,"close")}}});return t("transition",{attrs:{name:e.closeable?"van-fade":null}},[t("span",i()([{key:"content",style:g,class:c([m,u])},Object(a.inherit)(r,!0)]),[null==n.default?void 0:n.default(),y])])}f.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}},e.default=l(f)},function(t,e,n){"use strict";n.r(e);var r=n(15),i=n(169),o=n(168),a=r.default.prototype,s=r.default.util.defineReactive;s(a,"$vantLang","zh-CN"),s(a,"$vantMessages",{"zh-CN":o.default}),e.default={messages:function(){return a.$vantMessages[a.$vantLang]},use:function(t,e){var n;a.$vantLang=t,this.add(((n={})[t]=e,n))},add:function(t){void 0===t&&(t={}),Object(i.deepAssign)(a.$vantMessages,t)}}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(6),a=n(17),s=Object(i.createNamespace)("tab"),u=s[0],l=s[1];e.default=u({mixins:[Object(o.ChildrenMixin)("vanTabs")],props:Object(r.default)({},a.routeProps,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,n=this.parent,r=this.isActive,i=e();if(i||n.animated){var o=n.scrollspy||r,a=this.inited||n.scrollspy||!n.lazyRender?i:t();return n.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!r},class:l("pane-wrapper",{inactive:!r})},[t("div",{class:l("pane")},[a])]):t("div",{directives:[{name:"show",value:o}],attrs:{role:"tabpanel"},class:l("pane")},[a])}}})},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_ITEM_HEIGHT",(function(){return r})),n.d(e,"pickerProps",(function(){return i}));var r=44,i={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}}},function(t,e,n){"use strict";n.r(e),n.d(e,"times",(function(){return i})),n.d(e,"getTrueValue",(function(){return o})),n.d(e,"getMonthEndDay",(function(){return a}));var r=n(32);function i(t,e){for(var n=-1,r=Array(t);++n1))return 0;t=t.slice(1)}return parseInt(t,10)}function a(t,e){return 32-new Date(t,e-1,32).getDate()}},function(t,e,n){"use strict";n.r(e),n.d(e,"bem",(function(){return l}));var r=n(2),i=n(9),o=n(6),a=n(23),s=Object(r.createNamespace)("sku-row"),u=s[0],l=s[1],c=s[2];e.default=u({mixins:[Object(o.ParentMixin)("vanSkuRows"),Object(a.BindEventMixin)((function(t){this.scrollable&&this.$refs.scroller&&t(this.$refs.scroller,"scroll",this.onScroll)}))],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var t=this.$refs,e=t.scroller,n=t.row.offsetWidth-e.offsetWidth;this.progress=e.scrollLeft/n},genTitle:function(){var t=this.$createElement;return t("div",{class:l("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:l("title-multiple")},["(",c("multiple"),")"])])},genIndicator:function(){var t=this.$createElement;if(this.scrollable){var e={transform:"translate3d("+20*this.progress+"px, 0, 0)"};return t("div",{class:l("indicator-wrapper")},[t("div",{class:l("indicator")},[t("div",{class:l("indicator-slider"),style:e})])])}},genContent:function(){var t=this.$createElement,e=this.slots();if(this.skuRow.largeImageMode){var n=[],r=[];return e.forEach((function(t,e){(Math.floor(e/3)%2==0?n:r).push(t)})),t("div",{class:l("scroller"),ref:"scroller"},[t("div",{class:l("row"),ref:"row"},[n]),r.length?t("div",{class:l("row")},[r]):null])}return e},centerItem:function(t){if(this.skuRow.largeImageMode&&t){var e=this.children,n=void 0===e?[]:e,r=this.$refs,i=r.scroller,o=r.row,a=n.find((function(e){return+e.skuValue.id==+t}));if(i&&o&&a&&a.$el){var s=a.$el,u=s.offsetLeft-(i.offsetWidth-s.offsetWidth)/2;i.scrollLeft=u}}}},render:function(){var t=arguments[0];return t("div",{class:[l(),i.BORDER_BOTTOM]},[this.genTitle(),this.genContent(),this.genIndicator()])}})},function(t,e,n){"use strict";n.r(e),n.d(e,"toArray",(function(){return i})),n.d(e,"readFile",(function(){return o})),n.d(e,"isOversize",(function(){return a})),n.d(e,"isImageUrl",(function(){return u})),n.d(e,"isImageFile",(function(){return l}));var r=n(0);function i(t){return Array.isArray(t)?t:[t]}function o(t,e){return new Promise((function(n){if("file"!==e){var r=new FileReader;r.onload=function(t){n(t.target.result)},"dataUrl"===e?r.readAsDataURL(t):"text"===e&&r.readAsText(t)}else n(null)}))}function a(t,e){return i(t).some((function(t){return!!t&&(Object(r.isFunction)(e)?e(t):t.size>e)}))}var s=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function u(t){return s.test(t)}function l(t){return!!t.isImage||(t.file&&t.file.type?0===t.file.type.indexOf("image"):t.url?u(t.url):!!t.content&&0===t.content.indexOf("data:image"))}},function(t,e,n){"use strict";n.r(e);var r,i=n(1),o=n(15),a=n(89),s=n(0);function u(t){return s.isServer?Promise.resolve():new Promise((function(e,n){var s;r&&(s=r.$el,document.body.contains(s))||(r&&r.$destroy(),(r=new(o.default.extend(a.default))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",(function(t){r.value=t}))),Object(i.default)(r,u.currentOptions,t,{resolve:e,reject:n})}))}u.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){r["confirm"===t?"resolve":"reject"](t)}},u.alert=u,u.confirm=function(t){return u(Object(i.default)({showCancelButton:!0},t))},u.close=function(){r&&(r.value=!1)},u.setDefaultOptions=function(t){Object(i.default)(u.currentOptions,t)},u.resetDefaultOptions=function(){u.currentOptions=Object(i.default)({},u.defaultOptions)},u.resetDefaultOptions(),u.install=function(){o.default.use(a.default)},u.Component=a.default,o.default.prototype.$dialog=u,e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(7),a=n(9),s=n(41),u=n(10),l=n(19),c=n(173),f=Object(i.createNamespace)("picker"),d=f[0],h=f[1],p=f[2];e.default=d({props:Object(r.default)({},s.pickerProps,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(u.unitToPx)(this.itemHeight):s.DEFAULT_ITEM_HEIGHT},dataType:function(){var t=this.columns[0]||{};return t.children?"cascade":t.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){for(var t=[],e={children:this.columns};e&&e.children;){for(var n,r=e.children,i=null!=(n=e.defaultIndex)?n:+this.defaultIndex;r[i]&&r[i].disabled;){if(!(ithis.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(i.unitToPx)(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&Object(d.setRootScrollTop)(Math.ceil(Object(d.getElementTop)(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?Object(l.on)(this.scroller,"scroll",this.onScroll,!0):Object(l.off)(this.scroller,"scroll",this.onScroll)}},mounted:function(){this.init()},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){t.inited=!0,t.tabHeight=Object(d.getVisibleHeight)(t.$refs.wrap),t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var n=t.$refs.titles;if(n&&n[t.currentIndex]&&"line"===t.type&&!Object(u.isHidden)(t.$el)){var r=n[t.currentIndex].$el,a=t.lineWidth,s=t.lineHeight,l=r.offsetLeft+r.offsetWidth/2,c={width:Object(i.addUnit)(a),backgroundColor:t.color,transform:"translateX("+l+"px) translateX(-50%)"};if(e&&(c.transitionDuration=t.duration+"s"),Object(o.isDef)(s)){var f=Object(i.addUnit)(s);c.height=f,c.borderRadius=f}t.lineStyle=c}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),n=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:n)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(o.isDef)(e)){var n=this.children[e],r=n.computedName,i=null!==this.currentIndex;this.currentIndex=e,r!==this.active&&(this.$emit("input",r),i&&this.$emit("change",r,n.title))}},findAvailableTab:function(t){for(var e=t=0&&tthis.scrollOffset)return 0===e?0:e-1}return t.length-1}},render:function(){var t,e=this,n=arguments[0],r=this.type,i=this.animated,o=this.scrollable,a=this.children.map((function(t,i){var a;return n(v.default,{ref:"titles",refInFor:!0,attrs:{type:r,dot:t.dot,info:null!=(a=t.badge)?a:t.info,title:t.title,color:e.color,isActive:i===e.currentIndex,disabled:t.disabled,scrollable:o,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,i)}}})})),s=n("div",{ref:"wrap",class:[b("wrap",{scrollable:o}),(t={},t[c.BORDER_TOP_BOTTOM]="line"===r&&this.border,t)]},[n("div",{ref:"nav",attrs:{role:"tablist"},class:b("nav",[r,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),a,"line"===r&&n("div",{class:b("line"),style:this.lineStyle}),this.slots("nav-right")])]);return n("div",{class:b([r])},[this.sticky?n(g.default,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[s]):s,n(m.default,{attrs:{count:this.children.length,animated:i,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}})},function(t,e,n){"use strict";n.r(e);var r,i=n(1),o=n(15),a=n(91),s=n(0),u={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"van-fade",getContainer:"body",startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},l=function(t,e){if(void 0===e&&(e=0),!s.isServer){r||(r=new(o.default.extend(a.default))({el:document.createElement("div")}),document.body.appendChild(r.$el),r.$on("change",(function(t){r.onChange&&r.onChange(t)})),r.$on("scale",(function(t){r.onScale&&r.onScale(t)})));var n=Array.isArray(t)?{images:t,startPosition:e}:t;return Object(i.default)(r,u,n),r.$once("input",(function(t){r.value=t})),r.$once("closed",(function(){r.images=[]})),n.onClose&&(r.$off("close"),r.$once("close",n.onClose)),r}};l.Component=a.default,l.install=function(){o.default.use(a.default)},e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"isDate",(function(){return i}));var r=n(32);function i(t){return"[object Date]"===Object.prototype.toString.call(t)&&!Object(r.isNaN)(t.getTime())}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t){var e=void 0===t?{}:t,n=e.ref,r=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e,i=this.getContainer,o=n?this.$refs[n]:this.$el;i?t="string"==typeof(e=i)?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==o.parentNode&&t.appendChild(o),r&&r.call(this)}}}}n.r(e),n.d(e,"PortalMixin",(function(){return r}))},function(t,e,n){"use strict";function r(t){var e=t.parentNode;e&&e.removeChild(t)}n.r(e),n.d(e,"removeNode",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(17),a=n(6),s=n(14),u=Object(i.createNamespace)("goods-action-button"),l=u[0],c=u[1];e.default=l({mixins:[Object(a.ChildrenMixin)("vanGoodsAction")],props:Object(r.default)({},o.routeProps,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var t=this.parent&&this.parent.children[this.index-1];return!t||t.$options.name!==this.$options.name},isLast:function(){var t=this.parent&&this.parent.children[this.index+1];return!t||t.$options.name!==this.$options.name}},methods:{onClick:function(t){this.$emit("click",t),Object(o.route)(this.$router,this)}},render:function(){var t=arguments[0];return t(s.default,{class:c([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}})},function(t,e,n){"use strict";n.r(e),n.d(e,"cellProps",(function(){return r}));var r={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(9),o=n(13),a=n(67),s=Object(r.createNamespace)("coupon"),u=s[0],l=s[1],c=s[2];function f(t){var e=new Date(function(t){return t"+(e.unitDesc||"")+"";if(e.denominations){var n=d(e.denominations);return""+this.currency+" "+n}return e.discount?c("discount",((t=e.discount)/10).toFixed(t%10==0?0:1)):""},conditionMessage:function(){var t=d(this.coupon.originCondition);return"0"===t?c("unlimited"):c("condition",t)}},render:function(){var t=arguments[0],e=this.coupon,n=this.disabled,r=n&&e.reason||e.description;return t("div",{class:l({disabled:n})},[t("div",{class:l("content")},[t("div",{class:l("head")},[t("h2",{class:l("amount"),domProps:{innerHTML:this.faceAmount}}),t("p",{class:l("condition")},[this.coupon.condition||this.conditionMessage])]),t("div",{class:l("body")},[t("p",{class:l("name")},[e.name]),t("p",{class:l("valid")},[this.validPeriod]),!this.disabled&&t(a.default,{attrs:{size:18,value:this.chosen,checkedColor:i.RED},class:l("corner")})])]),r&&t("p",{class:l("description")},[r])])}})},function(t,e,n){"use strict";n.r(e),n.d(e,"ClickOutsideMixin",(function(){return i}));var r=n(7),i=function(t){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var e=this;return{clickOutsideHandler:function(n){e.closeOnClickOutside&&!e.$el.contains(n.target)&&e[t.method]()}}},mounted:function(){Object(r.on)(document,t.event,this.clickOutsideHandler)},beforeDestroy:function(){Object(r.off)(document,t.event,this.clickOutsideHandler)}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"sharedProps",(function(){return u})),n.d(e,"TimePickerMixin",(function(){return l}));var r=n(1),i=n(42),o=n(13),a=n(41),s=n(46),u=Object(r.default)({},a.pickerProps,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(t,e){return e}}}),l={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var t=this;return this.ranges.map((function(e){var n=e.type,r=e.range,a=Object(i.times)(r[1]-r[0]+1,(function(t){return Object(o.padZero)(r[0]+t)}));return t.filter&&(a=t.filter(n,a)),{type:n,values:a}}))},columns:function(){var t=this;return this.originColumns.map((function(e){return{values:e.values.map((function(n){return t.formatter(e.type,n)}))}}))}},watch:{columns:"updateColumnValue",innerValue:function(t,e){e?this.$emit("input",t):this.$emit("input",null)}},mounted:function(){var t=this;this.updateColumnValue(),this.$nextTick((function(){t.updateInnerValue()}))},methods:{getPicker:function(){return this.$refs.picker},onConfirm:function(){this.$emit("input",this.innerValue),this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var t=this,e=arguments[0],n={};return Object.keys(a.pickerProps).forEach((function(e){n[e]=t[e]})),e(s.default,{ref:"picker",attrs:{columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:Object(r.default)({},n)})}}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(3),s=Object(o.createNamespace)("sku-header-item"),u=s[0],l=s[1];e.default=u((function(t,e,n,r){return t("div",i()([{class:l()},Object(a.inherit)(r)]),[n.default&&n.default()])}))},function(t,e,n){"use strict";n.r(e),n.d(e,"updateOverlay",(function(){return l})),n.d(e,"openOverlay",(function(){return c})),n.d(e,"closeOverlay",(function(){return f})),n.d(e,"removeOverlay",(function(){return d}));var r=n(1),i=n(62),o=n(27),a=n(3),s=n(54),u={className:"",customStyle:{}};function l(t){var e=o.context.find(t);if(e){var n=t.$el,i=e.config,a=e.overlay;n&&n.parentNode&&n.parentNode.insertBefore(a.$el,n),Object(r.default)(a,u,i,{show:!0})}}function c(t,e){var n=o.context.find(t);if(n)n.config=e;else{var r=function(t){return Object(a.mount)(i.default,{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}(t);o.context.stack.push({vm:t,config:e,overlay:r})}l(t)}function f(t){var e=o.context.find(t);e&&(e.overlay.show=!1)}function d(t){var e=o.context.find(t);e&&Object(s.removeNode)(e.overlay.$el)}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(1),a=n(2),s=n(0),u=n(3),l=n(7),c=Object(a.createNamespace)("overlay"),f=c[0],d=c[1];function h(t){Object(l.preventDefault)(t,!0)}function p(t,e,n,r){var a=Object(o.default)({zIndex:e.zIndex},e.customStyle);return Object(s.isDef)(e.duration)&&(a.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",i()([{directives:[{name:"show",value:e.show}],style:a,class:[d(),e.className],on:{touchmove:e.lockScroll?h:s.noop}},Object(u.inherit)(r,!0)]),[null==n.default?void 0:n.default()])])}p.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}},e.default=f(p)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(6),o=Object(r.createNamespace)("goods-action"),a=o[0],s=o[1];e.default=a({mixins:[Object(i.ParentMixin)("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){var t=arguments[0];return t("div",{class:s({unfit:!this.safeAreaInsetBottom})},[this.slots()])}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(41),a=n(46),s=Object(i.createNamespace)("area"),u=s[0],l=s[1];function c(t,e){var n=t.$slots,r=t.$scopedSlots,i={};return e.forEach((function(t){r[t]?i[t]=r[t]:n[t]&&(i[t]=function(){return n[t]})})),i}e.default=u({props:Object(r.default)({},o.pickerProps,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:function(t){return"9"===t[0]}},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(t){this.code=t,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var t=this;this.$nextTick((function(){t.setValues()}))}},mounted:function(){this.setValues()},methods:{getList:function(t,e){var n=[];if("province"!==t&&!e)return n;var r=this[t];if(n=Object.keys(r).map((function(t){return{code:t,name:r[t]}})),e&&(this.isOverseaCode(e)&&"city"===t&&(e="9"),n=n.filter((function(t){return 0===t.code.indexOf(e)}))),this.placeholderMap[t]&&n.length){var i="";"city"===t?i="000000".slice(2,4):"county"===t&&(i="000000".slice(4,6)),n.unshift({code:""+e+i,name:this.placeholderMap[t]})}return n},getIndex:function(t,e){var n="province"===t?2:"city"===t?4:6,r=this.getList(t,e.slice(0,n-2));this.isOverseaCode(e)&&"province"===t&&(n=1),e=e.slice(0,n);for(var i=0;i0&&t.onScroll()}),{root:document.body}))},methods:{onScroll:function(){var t=this;if(!Object(r.isHidden)(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,n=this.offsetTopPx,i=Object(s.getScrollTop)(window),o=Object(s.getElementTop)(this.$el),a=function(){t.$emit("scroll",{scrollTop:i,isFixed:t.fixed})};if(e){var u=o+e.offsetHeight;if(i+n+this.height>u){var l=this.height+i-u;return lo?(this.fixed=!0,this.transform=0):this.fixed=!1,a()}}},render:function(){var t=arguments[0],e=this.fixed,n={height:e?this.height+"px":null};return t("div",{style:n},[t("div",{class:f({fixed:e}),style:this.style},[this.slots()])])}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(3),s=n(9),u=Object(o.createNamespace)("cell-group"),l=u[0],c=u[1];function f(t,e,n,r){var o,u=t("div",i()([{class:[c(),(o={},o[s.BORDER_TOP_BOTTOM]=e.border,o)]},Object(a.inherit)(r,!0)]),[null==n.default?void 0:n.default()]);return e.title||n.title?t("div",[t("div",{class:c("title")},[n.title?n.title():e.title]),u]):u}f.props={title:String,border:{type:Boolean,default:!0}},e.default=l(f)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(81),o=Object(r.createNamespace)("checkbox"),a=o[0],s=o[1];e.default=a({mixins:[Object(i.CheckboxMixin)({bem:s,role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){e.checked=t}))},setParentValue:function(t){var e=this.parent,n=e.value.slice();if(t){if(e.max&&n.length>=e.max)return;-1===n.indexOf(this.name)&&(n.push(this.name),e.$emit("input",n))}else{var r=n.indexOf(this.name);-1!==r&&(n.splice(r,1),e.$emit("input",n))}}}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(151),a=n(152),s=Object(i.createNamespace)("datetime-picker"),u=s[0],l=s[1];e.default=u({props:Object(r.default)({},o.default.props,a.default.props),methods:{getPicker:function(){return this.$refs.root.getPicker()}},render:function(){var t=arguments[0],e="time"===this.type?o.default:a.default;return t(e,{ref:"root",class:l(),scopedSlots:this.$scopedSlots,props:Object(r.default)({},this.$props),on:Object(r.default)({},this.$listeners)})}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(36),o=n(7),a=n(16),s=n(20),u=n(18),l=n(6),c=n(23),f=Object(r.createNamespace)("swipe"),d=f[0],h=f[1];e.default=d({mixins:[u.TouchMixin,Object(l.ParentMixin)("vanSwipe"),Object(c.BindEventMixin)((function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",n=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[n]=this[n]?this[n]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!Object(i.isHidden)(this.$el)){clearTimeout(this.timer);var e={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(Object(o.preventDefault)(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,n=e/(Date.now()-this.touchStartTime);if((Math.abs(n)>.25||Math.abs(e)>t/2)&&this.isCorrectDirection){var r=this.vertical?this.offsetY:this.offsetX,i=0;i=this.loop?r>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:i,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,n=this.count,r=this.maxCount;return t?this.loop?Object(s.range)(e+t,-1,n):Object(s.range)(e+t,0,r):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var n=t*this.size;this.loop||(n=Math.min(n,-this.minOffset));var r=e-n;return this.loop||(r=Object(s.range)(r,this.minOffset,0)),r},move:function(t){var e=t.pace,n=void 0===e?0:e,r=t.offset,i=void 0===r?0:r,o=t.emitChange,a=this.loop,s=this.count,u=this.active,l=this.children,c=this.trackSize,f=this.minOffset;if(!(s<=1)){var d=this.getTargetActive(n),h=this.getTargetOffset(d,i);if(a){if(l[0]&&h!==f){var p=h0;l[s-1].offset=v?-c:0}}this.active=d,this.offset=h,o&&d!==u&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(a.doubleRaf)((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(a.doubleRaf)((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var n=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(a.doubleRaf)((function(){var r;r=n.loop&&t===n.count?0===n.active?0:t:t%n.count,e.immediate?Object(a.doubleRaf)((function(){n.swiping=!1})):n.swiping=!1,n.move({pace:r-n.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,n=this.count,r=this.activeIndicator,i=this.slots("indicator");return i||(this.showIndicators&&n>1?e("div",{class:h("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(n)).map((function(n,i){return e("i",{class:h("indicator",{active:i===r}),style:i===r?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:h()},[t("div",{ref:"track",style:this.trackStyle,class:h("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(6),a=Object(i.createNamespace)("swipe-item"),s=a[0],u=a[1];e.default=s({mixins:[Object(o.ChildrenMixin)("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,n=e.size,r=e.vertical;return n&&(t[r?"height":"width"]=n+"px"),this.offset&&(t.transform="translate"+(r?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,n=this.parent,r=this.mounted;if(!n.lazyRender||e)return!0;if(!r)return!1;var i=n.activeIndicator,o=n.count-1,a=0===i&&n.loop?o:i-1,s=i===o&&n.loop?0:i+1,u=t===i||t===a||t===s;return u&&(this.inited=!0),u}},render:function(){var t=arguments[0];return t("div",{class:u(),style:this.style,on:Object(r.default)({},this.$listeners)},[this.shouldRender&&this.slots()])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(6),o=Object(r.createNamespace)("sidebar"),a=o[0],s=o[1];e.default=a({mixins:[Object(i.ParentMixin)("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(t){t!==this.index&&(this.index=t,this.$emit("change",t))}},render:function(){var t=arguments[0];return t("div",{class:s()},[this.slots()])}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(6),a=n(17),s=n(25),u=Object(i.createNamespace)("sidebar-item"),l=u[0],c=u[1];e.default=l({mixins:[Object(o.ChildrenMixin)("vanSidebar")],props:Object(r.default)({},a.routeProps,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),Object(a.route)(this.$router,this))}},render:function(){var t,e,n=arguments[0];return n("a",{class:c({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[n("div",{class:c("text")},[null!=(t=this.slots("title"))?t:this.title,n(s.default,{attrs:{dot:this.dot,info:null!=(e=this.badge)?e:this.info},class:c("info")})])])}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(10),s=n(0),u=n(79),l=n(7),c=n(20),f=n(32),d=n(24),h=Object(o.createNamespace)("stepper"),p=h[0],v=h[1];function g(t,e){return String(t)===String(e)}e.default=p({mixins:[d.FieldMixin],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,e=null!=(t=this.value)?t:this.defaultValue,n=this.format(e);return g(n,this.value)||this.$emit("input",n),{currentValue:n}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=Object(a.addUnit)(this.inputWidth)),this.buttonSize&&(t.height=Object(a.addUnit)(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=Object(a.addUnit)(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){g(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);g(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return Object(c.formatNumber)(String(t),!this.integer)},format:function(t){return this.allowEmpty&&""===t||(t=""===(t=this.formatNumber(t))?0:+t,t=Object(f.isNaN)(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),Object(s.isDef)(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var e=t.target.value,n=this.formatNumber(e);if(Object(s.isDef)(this.decimalLength)&&-1!==n.indexOf(".")){var r=n.split(".");n=r[0]+"."+r[1].slice(0,this.decimalLength)}g(e,n)||(t.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"])this.$emit("overlimit",t);else{var e,n,r,i="minus"===t?-this.step:+this.step,o=this.format((e=+this.currentValue,n=i,r=Math.pow(10,10),Math.round((e+n)*r)/r));this.emitChange(o),this.$emit(t)}},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var e=this.format(t.target.value);t.target.value=e,this.currentValue=e,this.$emit("blur",t),Object(u.resetScroll)()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout((function(){t.onChange(),t.longPressStep(t.type)}),200)},onTouchStart:function(){var t=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout((function(){t.isLongPress=!0,t.onChange(),t.longPressStep()}),600))},onTouchEnd:function(t){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&Object(l.preventDefault)(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,e=arguments[0],n=function(e){return{on:{click:function(n){n.preventDefault(),t.type=e,t.onChange()},touchstart:function(){t.type=e,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return e("div",{class:v([this.theme])},[e("button",i()([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:v("minus",{disabled:this.minusDisabled})},n("minus")])),e("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:v("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),e("button",i()([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:v("plus",{disabled:this.plusDisabled})},n("plus")]))])}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(10),a=n(0),s=n(44),u=n(24),l=n(5),c=n(31),f=n(19),d=n(50),h=Object(i.createNamespace)("uploader"),p=h[0],v=h[1];e.default=p({inheritAttrs:!1,mixins:[u.FieldMixin],model:{prop:"fileList"},props:{disabled:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(o.addUnit)(this.previewSize)},value:function(){return this.fileList}},methods:{getDetail:function(t){return void 0===t&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var e=this,n=t.target.files;if(!this.disabled&&n.length){if(n=1===n.length?n[0]:[].slice.call(n),this.beforeRead){var r=this.beforeRead(n,this.getDetail());if(!r)return void this.resetInput();if(Object(a.isPromise)(r))return void r.then((function(t){t?e.readFile(t):e.readFile(n)})).catch(this.resetInput)}this.readFile(n)}},readFile:function(t){var e=this,n=Object(s.isOversize)(t,this.maxSize);if(Array.isArray(t)){var r=this.maxCount-this.fileList.length;t.length>r&&(t=t.slice(0,r)),Promise.all(t.map((function(t){return Object(s.readFile)(t,e.resultType)}))).then((function(r){var i=t.map((function(t,e){var n={file:t,status:"",message:""};return r[e]&&(n.content=r[e]),n}));e.onAfterRead(i,n)}))}else Object(s.readFile)(t,this.resultType).then((function(r){var i={file:t,status:"",message:""};r&&(i.content=r),e.onAfterRead(i,n)}))},onAfterRead:function(t,e){var n=this;this.resetInput();var r=t;if(e){var i=t;Array.isArray(t)?(i=[],r=[],t.forEach((function(t){t.file&&(Object(s.isOversize)(t.file,n.maxSize)?i.push(t):r.push(t))}))):r=null,this.$emit("oversize",i,this.getDetail())}(Array.isArray(r)?Boolean(r.length):Boolean(r))&&(this.$emit("input",[].concat(this.fileList,Object(s.toArray)(r))),this.afterRead&&this.afterRead(r,this.getDetail()))},onDelete:function(t,e){var n,r=this,i=null!=(n=t.beforeDelete)?n:this.beforeDelete;if(i){var o=i(t,this.getDetail(e));if(!o)return;if(Object(a.isPromise)(o))return void o.then((function(){r.deleteFile(t,e)})).catch(a.noop)}this.deleteFile(t,e)},deleteFile:function(t,e){var n=this.fileList.slice(0);n.splice(e,1),this.$emit("input",n),this.$emit("delete",t,this.getDetail(e))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onPreviewImage:function(t){var e=this;if(this.previewFullImage){var n=this.fileList.filter((function(t){return Object(s.isImageFile)(t)})),i=n.map((function(t){return t.content||t.url}));this.imagePreview=Object(d.default)(Object(r.default)({images:i,startPosition:n.indexOf(t),onClose:function(){e.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var e=this.$createElement,n=t.status,r=t.message;if("uploading"===n||"failed"===n){var i="failed"===n?e(l.default,{attrs:{name:"close"},class:v("mask-icon")}):e(f.default,{class:v("loading")}),o=Object(a.isDef)(r)&&""!==r;return e("div",{class:v("mask")},[i,o&&e("div",{class:v("mask-message")},[r])])}},genPreviewItem:function(t,e){var n,i,o,a=this,u=this.$createElement,f=null!=(n=t.deletable)?n:this.deletable,d="uploading"!==t.status&&f&&u("div",{class:v("preview-delete"),on:{click:function(n){n.stopPropagation(),a.onDelete(t,e)}}},[u(l.default,{attrs:{name:"cross"},class:v("preview-delete-icon")})]),h=this.slots("preview-cover",Object(r.default)({index:e},t)),p=h&&u("div",{class:v("preview-cover")},[h]),g=null!=(i=t.previewSize)?i:this.previewSize,m=null!=(o=t.imageFit)?o:this.imageFit,y=Object(s.isImageFile)(t)?u(c.default,{attrs:{fit:m,src:t.content||t.url,width:g,height:g,lazyLoad:this.lazyLoad},class:v("preview-image"),on:{click:function(){a.onPreviewImage(t)}}},[p]):u("div",{class:v("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[u(l.default,{class:v("file-icon"),attrs:{name:"description"}}),u("div",{class:[v("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),p]);return u("div",{class:v("preview"),on:{click:function(){a.$emit("click-preview",t,a.getDetail(e))}}},[y,this.genPreviewMask(t),d])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)&&this.showUpload){var e,n=this.slots(),i=t("input",{attrs:Object(r.default)({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:v("input"),on:{change:this.onChange}});if(n)return t("div",{class:v("input-wrapper"),key:"input-wrapper"},[n,i]);if(this.previewSize){var o=this.previewSizeWithUnit;e={width:o,height:o}}return t("div",{class:v("upload"),style:e},[t(l.default,{attrs:{name:this.uploadIcon},class:v("upload-icon")}),this.uploadText&&t("span",{class:v("upload-text")},[this.uploadText]),i])}}},render:function(){var t=arguments[0];return t("div",{class:v()},[t("div",{class:v("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}})},function(t,e,n){"use strict";n.r(e),n.d(e,"deepClone",(function(){return i}));var r=n(0);function i(t){if(!Object(r.isDef)(t))return t;if(Array.isArray(t))return t.map((function(t){return i(t)}));if("object"==typeof t){var e={};return Object.keys(t).forEach((function(n){e[n]=i(t[n])})),e}return t}},function(t,e,n){"use strict";function r(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9-]{10,13}$/.test(t)}n.r(e),n.d(e,"isMobile",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){var n=e.$vnode.componentOptions;if(n&&n.children){var r=function(t){var e=[];return function t(n){n.forEach((function(n){e.push(n),n.componentInstance&&t(n.componentInstance.$children.map((function(t){return t.$vnode}))),n.children&&t(n.children)}))}(t),e}(n.children);t.sort((function(t,e){return r.indexOf(t.$vnode)-r.indexOf(e.$vnode)}))}}n.r(e),n.d(e,"sortChildren",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"switchProps",(function(){return r}));var r={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}}},function(t,e,n){"use strict";n.r(e),n.d(e,"resetScroll",(function(){return a}));var r=n(80),i=n(11),o=Object(r.isIOS)();function a(){o&&Object(i.setRootScrollTop)(Object(i.getRootScrollTop)())}},function(t,e,n){"use strict";n.r(e),n.d(e,"isAndroid",(function(){return i})),n.d(e,"isIOS",(function(){return o}));var r=n(0);function i(){return!r.isServer&&/android/.test(navigator.userAgent.toLowerCase())}function o(){return!r.isServer&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())}},function(t,e,n){"use strict";n.r(e),n.d(e,"CheckboxMixin",(function(){return s}));var r=n(5),i=n(24),o=n(6),a=n(10),s=function(t){var e=t.parent,n=t.bem,s=t.role;return{mixins:[Object(o.ChildrenMixin)(e),i.FieldMixin],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===s&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,n=t.target,r=this.$refs.icon,i=r===n||r.contains(n);this.isDisabled||!i&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){e.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,e=this.checked,i=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:n("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(a.addUnit)(i)}},[this.slots("icon",{checked:e})||t(r.default,{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:n("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:s,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:n([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"callInterceptor",(function(){return i}));var r=n(0);function i(t){var e=t.interceptor,n=t.args,i=t.done;if(e){var o=e.apply(void 0,n);Object(r.isPromise)(o)?o.then((function(t){t&&i()})).catch(r.noop):o&&i()}else i()}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(1),a=n(2),s=n(3),u=n(9),l=n(31),c=Object(a.createNamespace)("sku-header"),f=c[0],d=c[1];function h(t,e,n,r){var a,c=e.sku,f=e.goods,h=e.skuEventBus,p=e.selectedSku,v=e.showHeaderImage,g=void 0===v||v,m=function(t,e){var n;return t.tree.some((function(t){var r=e[t.k_s];if(r&&t.v){var i=t.v.filter((function(t){return t.id===r}))[0]||{},a=i.previewImgUrl||i.imgUrl||i.img_url;if(a)return n=Object(o.default)({},i,{ks:t.k_s,imgUrl:a}),!0}return!1})),n}(c,p),y=m?m.imgUrl:f.picture;return t("div",i()([{class:[d(),u.BORDER_BOTTOM]},Object(s.inherit)(r)]),[g&&t(l.default,{attrs:{fit:"cover",src:y},class:d("img-wrap"),on:{click:function(){h.$emit("sku:previewImage",m)}}},[null==(a=n["sku-header-image-extra"])?void 0:a.call(n)]),t("div",{class:d("goods-info")},[null==n.default?void 0:n.default()])])}h.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean},e.default=f(h)},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(43),o=n(2),a=n(34),s=n(6),u=n(5),l=n(31),c=Object(o.createNamespace)("sku-row-item")[0];e.default=c({mixins:[Object(s.ChildrenMixin)("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var t=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?t||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":t},choosable:function(){return!this.disableSoldoutSku||Object(a.isSkuChoosable)(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id})}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",Object(r.default)({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var e=this.skuValue,n=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",Object(r.default)({},e,{ks:n,imgUrl:e.imgUrl||e.img_url}))},genImage:function(t){var e=this.$createElement;if(this.imgUrl)return e(l.default,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:t+"-img"})}},render:function(){var t=arguments[0],e=this.skuValue.id===this.selectedSku[this.skuKeyStr],n=this.largeImageMode?Object(i.bem)("image-item"):Object(i.bem)("item");return t("span",{class:[n,e?n+"--active":"",this.choosable?"":n+"--disabled"],on:{click:this.onSelect}},[this.genImage(n),t("div",{class:n+"-name"},[this.largeImageMode?t("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&t(u.default,{attrs:{name:"enlarge"},class:n+"-img-icon",on:{click:this.onPreviewImg}})])}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=Object(i.createNamespace)("sku-row-prop-item")[0];e.default=o({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean},computed:{choosed:function(){var t=this.selectedProp,e=this.skuKeyStr,n=this.skuValue;return!(!t||!t[e])&&t[e].indexOf(n.id)>-1}},methods:{onSelect:function(){this.skuEventBus.$emit("sku:propSelect",Object(r.default)({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var t=arguments[0];return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed}],on:{click:this.onSelect}},[t("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(29),o=n(73),a=Object(r.createNamespace)("sku-stepper"),s=a[0],u=a[2],l=i.LIMIT_TYPE.QUOTA_LIMIT,c=i.LIMIT_TYPE.STOCK_LIMIT;e.default=s({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:c}},watch:{currentNum:function(t){var e=parseInt(t,10);e>=this.stepperMinLimit&&e<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",e)},stepperLimit:function(t){tthis.currentNum||t>this.stepperLimit)&&(this.currentNum=t),this.checkState(t,this.stepperLimit)}},computed:{stepperLimit:function(){var t,e=this.quota-this.quotaUsed;return this.quota>0&&e<=this.stock?(t=e<0?0:e,this.limitType=l):(t=this.stock,this.limitType=c),t},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var t=this.customStepperConfig,e=t.quotaText;if(t.hideQuotaText)return"";var n="";if(e)n=e;else{var r=[];this.startSaleNum>1&&r.push(u("quotaStart",this.startSaleNum)),this.quota>0&&r.push(u("quotaLimit",this.quota)),n=r.join(u("comma"))}return n}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(t){this.currentNum=t,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(t){var e=parseInt(t,10),n=this.customStepperConfig.handleStepperChange;n&&n(e),this.$emit("change",e)},checkState:function(t,e){this.currentNume?this.currentNum=t:this.currentNum>e&&(this.currentNum=e),this.skuEventBus.$emit("sku:stepperState",{valid:t<=e,min:t,max:e,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var t=this,e=arguments[0];return e("div",{class:"van-sku-stepper-stock"},[e("div",{class:"van-sku__stepper-title"},[this.stepperTitle||u("num")]),e(o.default,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:t.currentNum,callback:function(e){t.currentNum=e}}}),!this.hideQuotaText&&this.quotaText&&e("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(184),o=n(32),a=n(12),s=n(22),u=n(185),l=n(186),c=Object(r.createNamespace)("sku-messages"),f=c[0],d=c[1],h=c[2];e.default=f({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){var e=this.messageConfig.initialMessages,n=void 0===e?{}:e;return(t||[]).map((function(t){return{value:n[t.name]||""}}))},getType:function(t){return 1==+t.multiple?"textarea":"id_no"===t.type?"text":t.datetime>0?"datetime":t.type},getMessages:function(){var t={};return this.messageValues.forEach((function(e,n){t["message_"+n]=e.value})),t},getCartMessages:function(){var t=this,e={};return this.messageValues.forEach((function(n,r){var i=t.messages[r];e[i.name]=n.value})),e},getPlaceholder:function(t){var e=1==+t.multiple?"textarea":t.type,n=this.messageConfig.placeholderMap||{};return t.placeholder||n[e]||h("placeholder."+e)},validateMessages:function(){for(var t=this.messageValues,e=0;e18))return h("invalid.id_no")}}},getFormatter:function(t){return function(e){return"mobile"===t.type||"tel"===t.type?e.replace(/[^\d.]/g,""):e}},genMessage:function(t,e){var n=this,r=this.$createElement;return"image"===t.type?r(a.default,{key:this.goodsId+"-"+e,attrs:{title:t.name,required:"1"===String(t.required),valueClass:d("image-cell-value")},class:d("image-cell")},[r(u.default,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg},model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}}),r("div",{class:d("image-cell-label")},[h("imageLabel")])]):["date","time"].indexOf(t.type)>-1?r(l.default,{attrs:{label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t)},key:this.goodsId+"-"+e,model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}}):r(s.default,{attrs:{maxlength:"200",center:!t.multiple,label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t),formatter:this.getFormatter(t)},key:this.goodsId+"-"+e,model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}})}},render:function(){var t=arguments[0];return t("div",{class:d()},[this.messages.map(this.genMessage)])}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(3),s=n(14),u=Object(o.createNamespace)("sku-actions"),l=u[0],c=u[1],f=u[2];function d(t,e,n,r){var o=function(t){return function(){e.skuEventBus.$emit(t)}};return t("div",i()([{class:c()},Object(a.inherit)(r)]),[e.showAddCartBtn&&t(s.default,{attrs:{size:"large",type:"warning",text:e.addCartText||f("addCart")},on:{click:o("sku:addCart")}}),t(s.default,{attrs:{size:"large",type:"danger",text:e.buyText||f("buy")},on:{click:o("sku:buy")}})])}d.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean},e.default=l(d)},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(10),s=n(9),u=n(28),l=n(14),c=n(63),f=n(55),d=Object(o.createNamespace)("dialog"),h=d[0],p=d[1],v=d[2];e.default=h({mixins:[Object(u.PopupMixin)()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(n){!1!==n&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genRoundButtons:function(){var t=this,e=this.$createElement;return e(c.default,{class:p("footer")},[this.showCancelButton&&e(f.default,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||v("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:p("cancel"),on:{click:function(){t.handleAction("cancel")}}}),this.showConfirmButton&&e(f.default,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||v("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:p("confirm"),on:{click:function(){t.handleAction("confirm")}}})])},genButtons:function(){var t,e=this,n=this.$createElement,r=this.showCancelButton&&this.showConfirmButton;return n("div",{class:[s.BORDER_TOP,p("footer")]},[this.showCancelButton&&n(l.default,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||v("cancel")},class:p("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&n(l.default,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||v("confirm")},class:[p("confirm"),(t={},t[s.BORDER_LEFT]=r,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var n=this.$createElement;if(e)return n("div",{class:p("content")},[e]);var r=this.message,o=this.messageAlign;if(r){var a,s,u={class:p("message",(a={"has-title":t},a[o]=o,a)),domProps:(s={},s[this.allowHtml?"innerHTML":"textContent"]=r,s)};return n("div",{class:p("content",{isolated:!t})},[n("div",i()([{},u]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,n=this.slots(),r=this.slots("title")||this.title,i=r&&t("div",{class:p("header",{isolated:!e&&!n})},[r]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[p([this.theme]),this.className],style:{width:Object(a.addUnit)(this.width)}},[i,this.genContent(r,n),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}}})},function(t,e,n){"use strict";n.r(e),n.d(e,"parseTimeData",(function(){return i})),n.d(e,"parseFormat",(function(){return o})),n.d(e,"isSameSecond",(function(){return a}));var r=n(13);function i(t){return{days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),seconds:Math.floor(t%6e4/1e3),milliseconds:Math.floor(t%1e3)}}function o(t,e){var n=e.days,i=e.hours,o=e.minutes,a=e.seconds,s=e.milliseconds;if(-1===t.indexOf("DD")?i+=24*n:t=t.replace("DD",Object(r.padZero)(n)),-1===t.indexOf("HH")?o+=60*i:t=t.replace("HH",Object(r.padZero)(i)),-1===t.indexOf("mm")?a+=60*o:t=t.replace("mm",Object(r.padZero)(o)),-1===t.indexOf("ss")?s+=1e3*a:t=t.replace("ss",Object(r.padZero)(a)),-1!==t.indexOf("S")){var u=Object(r.padZero)(s,3);t=-1!==t.indexOf("SSS")?t.replace("SSS",u):-1!==t.indexOf("SS")?t.replace("SS",u.slice(0,2)):t.replace("S",u.charAt(0))}return t}function a(t,e){return Math.floor(t/1e3)===Math.floor(e/1e3)}},function(t,e,n){"use strict";n.r(e);var r=n(35),i=n(28),o=n(18),a=n(23),s=n(5),u=n(69),l=n(180);e.default=Object(r.createComponent)({mixins:[o.TouchMixin,Object(i.PopupMixin)({skipToggleEvent:!0}),Object(a.BindEventMixin)((function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)}))],props:{className:null,closeable:Boolean,asyncClose:Boolean,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"van-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:Object(r.bem)("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick((function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})}))):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:Object(r.bem)("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:Object(r.bem)("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(u.default,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:Object(r.bem)("swipe"),on:{change:this.setActive}},[this.images.map((function(n){return e(l.default,{attrs:{src:n,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})}))])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(s.default,{attrs:{role:"button",name:this.closeIcon},class:Object(r.bem)("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];return t("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?t("div",{directives:[{name:"show",value:this.value}],class:[Object(r.bem)(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(4),o=n.n(i),a=n(2),s=n(3),u=n(28),l=n(21),c=Object(a.createNamespace)("notify"),f=c[0],d=c[1];function h(t,e,n,r){var i={color:e.color,background:e.background};return t(l.default,o()([{attrs:{value:e.value,position:"top",overlay:!1,duration:.2,lockScroll:!1},style:i,class:[d([e.type]),e.className]},Object(s.inherit)(r,!0)]),[(null==n.default?void 0:n.default())||e.message])}h.props=Object(r.default)({},u.popupMixinProps,{color:String,message:[Number,String],duration:[Number,String],className:null,background:String,getContainer:[String,Function],type:{type:String,default:"danger"}}),e.default=f(h)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(18),o=n(19),a=n(181),s=n(182),u=Object(r.createNamespace)("key"),l=u[0],c=u[1];e.default=l({mixins:[i.TouchMixin],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(t){t.stopPropagation(),this.touchStart(t),this.active=!0},onTouchMove:function(t){this.touchMove(t),this.direction&&(this.active=!1)},onTouchEnd:function(t){this.active&&(this.slots("default")||t.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var t=this.$createElement,e="extra"===this.type,n="delete"===this.type,r=this.slots("default")||this.text;return this.loading?t(o.default,{class:c("loading-icon")}):n?r||t(a.default,{class:c("delete-icon")}):e?r||t(s.default,{class:c("collapse-icon")}):r}},render:function(){var t=arguments[0];return t("div",{class:c("wrapper",{wider:this.wider})},[t("div",{attrs:{role:"button",tabindex:"0"},class:c([this.color,{large:this.large,active:this.active,delete:"delete"===this.type}])},[this.genContent()])])}})},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,l=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&h())}function h(){if(!c){var t=s(d);c=!0;for(var e=l.length;e;){for(u=l,l=[];++f1)for(var n=1;ne?e+"+":n},renderBadge:function(){var t=this.$createElement;if(this.hasContent()||this.dot)return t("div",{class:u({dot:this.dot,fixed:!!this.$scopedSlots.default}),style:{background:this.color}},[this.renderContent()])}},render:function(){var t=arguments[0];if(this.$scopedSlots.default){var e=this.tag;return t(e,{class:u("wrapper")},[this.$scopedSlots.default(),this.renderBadge()])}return this.renderBadge()}})},function(t,e,n){"use strict";n.r(e);var r=n(16),i=n(51),o=n(11),a=n(8),s=n(21),u=n(14),l=n(26),c=n(175),f=n(176);e.default=Object(a.createComponent)({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:i.isDate,default:function(){return new Date}},maxDate:{type:Date,validator:i.isDate,default:function(){var t=new Date;return new Date(t.getFullYear(),t.getMonth()+6,t.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(t){return t>=0&&t<=6}}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var t=[],e=new Date(this.minDate);e.setDate(1);do{t.push(new Date(e)),e.setMonth(e.getMonth()+1)}while(1!==Object(a.compareMonth)(e,this.maxDate));return t},buttonDisabled:function(){var t=this.type,e=this.currentDate;if(e){if("range"===t)return!e[0]||!e[1];if("multiple"===t)return!e.length}return!e},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{value:"init",type:function(){this.reset()},defaultDate:function(t){this.currentDate=t,this.scrollIntoView()}},mounted:function(){this.init()},activated:function(){this.init()},methods:{reset:function(t){void 0===t&&(t=this.getInitialDate()),this.currentDate=t,this.scrollIntoView()},init:function(){var t=this;this.poppable&&!this.value||this.$nextTick((function(){t.bodyHeight=Math.floor(t.$refs.body.getBoundingClientRect().height),t.onScroll(),t.scrollIntoView()}))},scrollToDate:function(t){var e=this;Object(r.raf)((function(){var n=e.value||!e.poppable;t&&n&&(e.months.some((function(n,r){if(0===Object(a.compareMonth)(n,t)){var i=e.$refs,o=i.body;return i.months[r].scrollIntoView(o),!0}return!1})),e.onScroll())}))},scrollIntoView:function(){var t=this.currentDate;if(t){var e="single"===this.type?t:t[0];this.scrollToDate(e)}},getInitialDate:function(){var t=this.type,e=this.minDate,n=this.maxDate,r=this.defaultDate;if(null===r)return r;var i=new Date;if(-1===Object(a.compareDay)(i,e)?i=e:1===Object(a.compareDay)(i,n)&&(i=n),"range"===t){var o=r||[];return[o[0]||i,o[1]||Object(a.getNextDay)(i)]}return"multiple"===t?r||[i]:r||i},onScroll:function(){var t=this.$refs,e=t.body,n=t.months,r=Object(o.getScrollTop)(e),i=r+this.bodyHeight,a=n.map((function(t){return t.getHeight()}));if(!(i>a.reduce((function(t,e){return t+e}),0)&&r>0)){for(var s,u=0,l=[-1,-1],c=0;c=r&&(l[1]=c,s||(s=n[c],l[0]=c),n[c].showed||(n[c].showed=!0,this.$emit("month-show",{date:n[c].date,title:n[c].title}))),u+=a[c]}n.forEach((function(t,e){t.visible=e>=l[0]-1&&e<=l[1]+1})),s&&(this.subtitle=s.title)}},onClickDay:function(t){if(!this.readonly){var e=t.date,n=this.type,r=this.currentDate;if("range"===n){if(!r)return void this.select([e,null]);var i=r[0],o=r[1];if(i&&!o){var s=Object(a.compareDay)(e,i);1===s?this.select([i,e],!0):-1===s?this.select([e,null]):this.allowSameDay&&this.select([e,e],!0)}else this.select([e,null])}else if("multiple"===n){if(!r)return void this.select([e]);var u;if(this.currentDate.some((function(t,n){var r=0===Object(a.compareDay)(t,e);return r&&(u=n),r}))){var c=r.splice(u,1)[0];this.$emit("unselect",Object(a.copyDate)(c))}else this.maxRange&&r.length>=this.maxRange?Object(l.default)(this.rangePrompt||Object(a.t)("rangePrompt",this.maxRange)):this.select([].concat(r,[e]))}else this.select(e,!0)}},togglePopup:function(t){this.$emit("input",t)},select:function(t,e){var n=this,r=function(t){n.currentDate=t,n.$emit("select",Object(a.copyDates)(n.currentDate))};if(e&&"range"===this.type&&!this.checkRange(t))return void(this.showConfirm?r([t[0],Object(a.getDayByOffset)(t[0],this.maxRange-1)]):r(t));r(t),e&&!this.showConfirm&&this.onConfirm()},checkRange:function(t){var e=this.maxRange,n=this.rangePrompt;return!(e&&Object(a.calcDateNum)(t)>e)||(Object(l.default)(n||Object(a.t)("rangePrompt",e)),!1)},onConfirm:function(){this.$emit("confirm",Object(a.copyDates)(this.currentDate))},genMonth:function(t,e){var n=this.$createElement,r=0!==e||!this.showSubtitle;return n(c.default,{ref:"months",refInFor:!0,attrs:{date:t,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:r,firstDayOfWeek:this.dayOffset},on:{click:this.onClickDay}})},genFooterContent:function(){var t=this.$createElement,e=this.slots("footer");if(e)return e;if(this.showConfirm){var n=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return t(u.default,{attrs:{round:!0,block:!0,type:"danger",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:Object(a.bem)("confirm"),on:{click:this.onConfirm}},[n||Object(a.t)("confirm")])}},genFooter:function(){return(0,this.$createElement)("div",{class:Object(a.bem)("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var t=this,e=this.$createElement;return e("div",{class:Object(a.bem)()},[e(f.default,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return t.slots("title")}}}),e("div",{ref:"body",class:Object(a.bem)("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var t=this,e=arguments[0];if(this.poppable){var n,r=function(e){return function(){return t.$emit(e)}};return e(s.default,{attrs:(n={round:!0,value:this.value},n.round=this.round,n.position=this.position,n.closeable=this.showTitle||this.showSubtitle,n.getContainer=this.getContainer,n.closeOnPopstate=this.closeOnPopstate,n.closeOnClickOverlay=this.closeOnClickOverlay,n),class:Object(a.bem)("popup"),on:{input:this.togglePopup,open:r("open"),opened:r("opened"),close:r("close"),closed:r("closed")}},[this.genCalendar()])}return this.genCalendar()}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(0),s=n(3),u=n(38),l=n(31),c=Object(o.createNamespace)("card"),f=c[0],d=c[1];function h(t,e,n,r){var o,c=e.thumb,f=n.num||Object(a.isDef)(e.num),h=n.price||Object(a.isDef)(e.price),p=n["origin-price"]||Object(a.isDef)(e.originPrice),v=f||h||p||n.bottom;function g(t){Object(s.emit)(r,"click-thumb",t)}function m(){if(n.tag||e.tag)return t("div",{class:d("tag")},[n.tag?n.tag():t(u.default,{attrs:{mark:!0,type:"danger"}},[e.tag])])}return t("div",i()([{class:d()},Object(s.inherit)(r,!0)]),[t("div",{class:d("header")},[function(){if(n.thumb||c)return t("a",{attrs:{href:e.thumbLink},class:d("thumb"),on:{click:g}},[n.thumb?n.thumb():t(l.default,{attrs:{src:c,width:"100%",height:"100%",fit:"cover","lazy-load":e.lazyLoad}}),m()])}(),t("div",{class:d("content",{centered:e.centered})},[t("div",[n.title?n.title():e.title?t("div",{class:[d("title"),"van-multi-ellipsis--l2"]},[e.title]):void 0,n.desc?n.desc():e.desc?t("div",{class:[d("desc"),"van-ellipsis"]},[e.desc]):void 0,null==n.tags?void 0:n.tags()]),v&&t("div",{class:"van-card__bottom"},[null==(o=n["price-top"])?void 0:o.call(n),function(){if(h)return t("div",{class:d("price")},[n.price?n.price():(r=e.price.toString().split("."),t("div",[t("span",{class:d("price-currency")},[e.currency]),t("span",{class:d("price-integer")},[r[0]]),".",t("span",{class:d("price-decimal")},[r[1]])]))]);var r}(),function(){if(p){var r=n["origin-price"];return t("div",{class:d("origin-price")},[r?r():e.currency+" "+e.originPrice])}}(),function(){if(f)return t("div",{class:d("num")},[n.num?n.num():"x"+e.num])}(),null==n.bottom?void 0:n.bottom()])])]),function(){if(n.footer)return t("div",{class:d("footer")},[n.footer()])}()])}h.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}},e.default=f(h)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(40),o=n(49),a=n(5),s=Object(r.createNamespace)("cascader"),u=s[0],l=s[1],c=s[2];e.default=u({props:{title:String,value:[Number,String],fieldNames:Object,placeholder:String,activeColor:String,options:{type:Array,default:function(){return[]}},closeable:{type:Boolean,default:!0}},data:function(){return{tabs:[],activeTab:0}},computed:{textKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.text)||"text"},valueKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.value)||"value"},childrenKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.children)||"children"}},watch:{options:{deep:!0,handler:"updateTabs"},value:function(t){var e=this;if((t||0===t)&&-1!==this.tabs.map((function(t){var n;return null==(n=t.selectedOption)?void 0:n[e.valueKey]})).indexOf(t))return;this.updateTabs()}},created:function(){this.updateTabs()},methods:{getSelectedOptionsByValue:function(t,e){for(var n=0;ne+1&&(this.tabs=this.tabs.slice(0,e+1)),t[this.childrenKey]){var r={options:t[this.childrenKey],selectedOption:null};this.tabs[e+1]?this.$set(this.tabs,e+1,r):this.tabs.push(r),this.$nextTick((function(){n.activeTab++}))}var i=this.tabs.map((function(t){return t.selectedOption})).filter((function(t){return!!t})),o={value:t[this.valueKey],tabIndex:e,selectedOptions:i};this.$emit("input",t[this.valueKey]),this.$emit("change",o),t[this.childrenKey]||this.$emit("finish",o)},onClose:function(){this.$emit("close")},renderHeader:function(){var t=this.$createElement;return t("div",{class:l("header")},[t("h2",{class:l("title")},[this.slots("title")||this.title]),this.closeable?t(a.default,{attrs:{name:"cross"},class:l("close-icon"),on:{click:this.onClose}}):null])},renderOptions:function(t,e,n){var r=this,i=this.$createElement;return i("ul",{class:l("options")},[t.map((function(t){var o=e&&t[r.valueKey]===e[r.valueKey];return i("li",{class:l("option",{selected:o}),style:{color:o?r.activeColor:null},on:{click:function(){r.onSelect(t,n)}}},[i("span",[t[r.textKey]]),o?i(a.default,{attrs:{name:"success"},class:l("selected-icon")}):null])}))])},renderTab:function(t,e){var n=this.$createElement,r=t.options,o=t.selectedOption,a=o?o[this.textKey]:this.placeholder||c("select");return n(i.default,{attrs:{title:a,titleClass:l("tab",{unselected:!o})}},[this.renderOptions(r,o,e)])},renderTabs:function(){var t=this;return(0,this.$createElement)(o.default,{attrs:{animated:!0,swipeable:!0,swipeThreshold:0,color:this.activeColor},class:l("tabs"),model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[this.tabs.map(this.renderTab)])}},render:function(){var t=arguments[0];return t("div",{class:l()},[this.renderHeader(),this.renderTabs()])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(24),o=n(6),a=Object(r.createNamespace)("checkbox-group"),s=a[0],u=a[1];e.default=s({mixins:[Object(o.ParentMixin)("vanCheckbox"),i.FieldMixin],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggleAll:function(t){void 0===t&&(t={}),"boolean"==typeof t&&(t={checked:t});var e=t,n=e.checked,r=e.skipDisabled,i=this.children.filter((function(t){return t.disabled&&r?t.checked:null!=n?n:!t.checked})).map((function(t){return t.name}));this.$emit("input",i)}},render:function(){var t=arguments[0];return t("div",{class:u([this.direction])},[this.slots()])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(10),o=n(0),a=n(16),s=Object(r.createNamespace)("circle"),u=s[0],l=s[1],c=0;function f(t){return Math.min(Math.max(t,0),100)}e.default=u({props:{text:String,size:[Number,String],color:[String,Object],layerColor:String,strokeLinecap:String,value:{type:Number,default:0},speed:{type:[Number,String],default:0},fill:{type:String,default:"none"},rate:{type:[Number,String],default:100},strokeWidth:{type:[Number,String],default:40},clockwise:{type:Boolean,default:!0}},beforeCreate:function(){this.uid="van-circle-gradient-"+c++},computed:{style:function(){var t=Object(i.addUnit)(this.size);return{width:t,height:t}},path:function(){return t=this.clockwise,"M "+(e=this.viewBoxSize)/2+" "+e/2+" m 0, -500 a 500, 500 0 1, "+(n=t?1:0)+" 0, 1000 a 500, 500 0 1, "+n+" 0, -1000";var t,e,n},viewBoxSize:function(){return+this.strokeWidth+1e3},layerStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}},hoverStyle:function(){var t=3140*this.value/100;return{stroke:""+(this.gradient?"url(#"+this.uid+")":this.color),strokeWidth:+this.strokeWidth+1+"px",strokeLinecap:this.strokeLinecap,strokeDasharray:t+"px 3140px"}},gradient:function(){return Object(o.isObject)(this.color)},LinearGradient:function(){var t=this,e=this.$createElement;if(this.gradient){var n=Object.keys(this.color).sort((function(t,e){return parseFloat(t)-parseFloat(e)})).map((function(n,r){return e("stop",{key:r,attrs:{offset:n,"stop-color":t.color[n]}})}));return e("defs",[e("linearGradient",{attrs:{id:this.uid,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[n])])}}},watch:{rate:{handler:function(t){this.startTime=Date.now(),this.startRate=this.value,this.endRate=f(t),this.increase=this.endRate>this.startRate,this.duration=Math.abs(1e3*(this.startRate-this.endRate)/this.speed),this.speed?(Object(a.cancelRaf)(this.rafId),this.rafId=Object(a.raf)(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var t=Date.now(),e=Math.min((t-this.startTime)/this.duration,1)*(this.endRate-this.startRate)+this.startRate;this.$emit("input",f(parseFloat(e.toFixed(1)))),(this.increase?ethis.endRate)&&(this.rafId=Object(a.raf)(this.animate))}},render:function(){var t=arguments[0];return t("div",{class:l(),style:this.style},[t("svg",{attrs:{viewBox:"0 0 "+this.viewBoxSize+" "+this.viewBoxSize}},[this.LinearGradient,t("path",{class:l("layer"),style:this.layerStyle,attrs:{d:this.path}}),t("path",{attrs:{d:this.path},class:l("hover"),style:this.hoverStyle})]),this.slots()||this.text&&t("div",{class:l("text")},[this.text])])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(6),o=Object(r.createNamespace)("col"),a=o[0],s=o[1];e.default=a({mixins:[Object(i.ChildrenMixin)("vanRow")],props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{style:function(){var t=this.index,e=(this.parent||{}).spaces;if(e&&e[t]){var n=e[t],r=n.left,i=n.right;return{paddingLeft:r?r+"px":null,paddingRight:i?i+"px":null}}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.span,r=this.offset;return e(this.tag,{style:this.style,class:s((t={},t[n]=n,t["offset-"+r]=r,t)),on:{click:this.onClick}},[this.slots()])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(6),o=n(9),a=Object(r.createNamespace)("collapse"),s=a[0],u=a[1];e.default=s({mixins:[Object(i.ParentMixin)("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(t,e){this.accordion||(t=e?this.value.concat(t):this.value.filter((function(e){return e!==t}))),this.$emit("change",t),this.$emit("input",t)}},render:function(){var t,e=arguments[0];return e("div",{class:[u(),(t={},t[o.BORDER_TOP_BOTTOM]=this.border,t)]},[this.slots()])}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(16),a=n(6),s=n(12),u=n(56),l=Object(i.createNamespace)("collapse-item"),c=l[0],f=l[1],d=["title","icon","right-icon"];e.default=c({mixins:[Object(a.ChildrenMixin)("vanCollapse")],props:Object(r.default)({},u.cellProps,{name:[Number,String],disabled:Boolean,isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){var t;return null!=(t=this.name)?t:this.index},expanded:function(){var t=this;if(!this.parent)return null;var e=this.parent,n=e.value;return e.accordion?n===this.currentName:n.some((function(e){return e===t.currentName}))}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(t,e){var n=this;null!==e&&(t&&(this.show=!0,this.inited=!0),(t?this.$nextTick:o.raf)((function(){var e=n.$refs,r=e.content,i=e.wrapper;if(r&&i){var a=r.offsetHeight;if(a){var s=a+"px";i.style.height=t?0:s,Object(o.doubleRaf)((function(){i.style.height=t?s:0}))}else n.onTransitionEnd()}})))}},methods:{onClick:function(){this.disabled||this.toggle()},toggle:function(t){void 0===t&&(t=!this.expanded);var e=this.parent,n=this.currentName,r=e.accordion&&n===e.value?"":n;this.parent.switch(r,t)},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var t=this,e=this.$createElement,n=this.border,i=this.disabled,o=this.expanded,a=d.reduce((function(e,n){return t.slots(n)&&(e[n]=function(){return t.slots(n)}),e}),{});return this.slots("value")&&(a.default=function(){return t.slots("value")}),e(s.default,{attrs:{role:"button",tabindex:i?-1:0,"aria-expanded":String(o)},class:f("title",{disabled:i,expanded:o,borderless:!n}),on:{click:this.onClick},scopedSlots:a,props:Object(r.default)({},this.$props)})},genContent:function(){var t=this.$createElement;if(this.inited)return t("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:f("wrapper"),on:{transitionend:this.onTransitionEnd}},[t("div",{ref:"content",class:f("content")},[this.slots()])])}},render:function(){var t=arguments[0];return t("div",{class:[f({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(3),s=n(12),u=Object(o.createNamespace)("contact-card"),l=u[0],c=u[1],f=u[2];function d(t,e,n,r){var o=e.type,u=e.editable;return t(s.default,i()([{attrs:{center:!0,border:!1,isLink:u,valueClass:c("value"),icon:"edit"===o?"contact":"add-square"},class:c([o]),on:{click:function(t){u&&Object(a.emit)(r,"click",t)}}},Object(a.inherit)(r)]),["add"===o?e.addText||f("addText"):[t("div",[f("name")+":"+e.name]),t("div",[f("tel")+":"+e.tel])]])}d.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}},e.default=l(d)},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(76),a=n(12),s=n(22),u=n(14),l=n(45),c=n(37),f=Object(i.createNamespace)("contact-edit"),d=f[0],h=f[1],p=f[2],v={tel:"",name:""};e.default=d({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:function(){return Object(r.default)({},v)}},telValidator:{type:Function,default:o.isMobile}},data:function(){return{data:Object(r.default)({},v,this.contactInfo),errorInfo:{name:"",tel:""}}},watch:{contactInfo:function(t){this.data=Object(r.default)({},v,t)}},methods:{onFocus:function(t){this.errorInfo[t]=""},getErrorMessageByKey:function(t){var e=this.data[t].trim();switch(t){case"name":return e?"":p("nameInvalid");case"tel":return this.telValidator(e)?"":p("telInvalid")}},onSave:function(){var t=this;["name","tel"].every((function(e){var n=t.getErrorMessageByKey(e);return n&&(t.errorInfo[e]=n),!n}))&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var t=this;l.default.confirm({title:p("confirmDelete")}).then((function(){t.$emit("delete",t.data)}))}},render:function(){var t=this,e=arguments[0],n=this.data,r=this.errorInfo,i=function(e){return function(){return t.onFocus(e)}};return e("div",{class:h()},[e("div",{class:h("fields")},[e(s.default,{attrs:{clearable:!0,maxlength:"30",label:p("name"),placeholder:p("nameEmpty"),errorMessage:r.name},on:{focus:i("name")},model:{value:n.name,callback:function(e){t.$set(n,"name",e)}}}),e(s.default,{attrs:{clearable:!0,type:"tel",label:p("tel"),placeholder:p("telEmpty"),errorMessage:r.tel},on:{focus:i("tel")},model:{value:n.tel,callback:function(e){t.$set(n,"tel",e)}}})]),this.showSetDefault&&e(a.default,{attrs:{title:this.setDefaultLabel,border:!1},class:h("switch-cell")},[e(c.default,{attrs:{size:24},slot:"right-icon",on:{change:function(e){t.$emit("change-default",e)}},model:{value:n.isDefault,callback:function(e){t.$set(n,"isDefault",e)}}})]),e("div",{class:h("buttons")},[e(u.default,{attrs:{block:!0,round:!0,type:"danger",text:p("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&e(u.default,{attrs:{block:!0,round:!0,text:p("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(9),s=n(3),u=n(38),l=n(5),c=n(12),f=n(47),d=n(14),h=n(48),p=Object(o.createNamespace)("contact-list"),v=p[0],g=p[1],m=p[2];function y(t,e,n,r){var o=e.list&&e.list.map((function(n,i){function o(){Object(s.emit)(r,"input",n.id),Object(s.emit)(r,"select",n,i)}return t(c.default,{key:n.id,attrs:{isLink:!0,center:!0,valueClass:g("item-value")},class:g("item"),scopedSlots:{icon:function(){return t(l.default,{attrs:{name:"edit"},class:g("edit"),on:{click:function(t){t.stopPropagation(),Object(s.emit)(r,"edit",n,i)}}})},default:function(){var r=[n.name+","+n.tel];return n.isDefault&&e.defaultTagText&&r.push(t(u.default,{attrs:{type:"danger",round:!0},class:g("item-tag")},[e.defaultTagText])),r},"right-icon":function(){return t(f.default,{attrs:{name:n.id,iconSize:16,checkedColor:a.RED},on:{click:o}})}},on:{click:o}})}));return t("div",i()([{class:g()},Object(s.inherit)(r)]),[t(h.default,{attrs:{value:e.value},class:g("group")},[o]),t("div",{class:g("bottom")},[t(d.default,{attrs:{round:!0,block:!0,type:"danger",text:e.addText||m("addText")},class:g("add"),on:{click:function(){Object(s.emit)(r,"add")}}})])])}y.props={value:null,list:Array,addText:String,defaultTagText:String},e.default=v(y)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(0),o=n(16),a=n(90),s=Object(r.createNamespace)("count-down"),u=s[0],l=s[1];e.default=u({props:{millisecond:Boolean,time:{type:[Number,String],default:0},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0}},data:function(){return{remain:0}},computed:{timeData:function(){return Object(a.parseTimeData)(this.remain)},formattedTime:function(){return Object(a.parseFormat)(this.format,this.timeData)}},watch:{time:{immediate:!0,handler:"reset"}},activated:function(){this.keepAlivePaused&&(this.counting=!0,this.keepAlivePaused=!1,this.tick())},deactivated:function(){this.counting&&(this.pause(),this.keepAlivePaused=!0)},beforeDestroy:function(){this.pause()},methods:{start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+this.remain,this.tick())},pause:function(){this.counting=!1,Object(o.cancelRaf)(this.rafId)},reset:function(){this.pause(),this.remain=+this.time,this.autoStart&&this.start()},tick:function(){i.inBrowser&&(this.millisecond?this.microTick():this.macroTick())},microTick:function(){var t=this;this.rafId=Object(o.raf)((function(){t.counting&&(t.setRemain(t.getRemain()),t.remain>0&&t.microTick())}))},macroTick:function(){var t=this;this.rafId=Object(o.raf)((function(){if(t.counting){var e=t.getRemain();Object(a.isSameSecond)(e,t.remain)&&0!==e||t.setRemain(e),t.remain>0&&t.macroTick()}}))},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},setRemain:function(t){this.remain=t,this.$emit("change",this.timeData),0===t&&(this.pause(),this.$emit("finish"))}},render:function(){var t=arguments[0];return t("div",{class:l()},[this.slots("default",this.timeData)||this.formattedTime])}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(0),s=n(3),u=n(12),l=Object(o.createNamespace)("coupon-cell"),c=l[0],f=l[1],d=l[2];function h(t,e,n,r){var o=e.coupons[+e.chosenCoupon],l=function(t){var e=t.coupons,n=t.chosenCoupon,r=t.currency,i=e[+n];if(i){var o=0;return Object(a.isDef)(i.value)?o=i.value:Object(a.isDef)(i.denominations)&&(o=i.denominations),"-"+r+" "+(o/100).toFixed(2)}return 0===e.length?d("tips"):d("count",e.length)}(e);return t(u.default,i()([{class:f(),attrs:{value:l,title:e.title||d("title"),border:e.border,isLink:e.editable,valueClass:f("value",{selected:o})}},Object(s.inherit)(r,!0)]))}h.model={prop:"chosenCoupon"},h.props={title:String,coupons:{type:Array,default:function(){return[]}},currency:{type:String,default:"¥"},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},chosenCoupon:{type:[Number,String],default:-1}},e.default=c(h)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(40),o=n(49),a=n(22),s=n(14),u=n(57),l=Object(r.createNamespace)("coupon-list"),c=l[0],f=l[1],d=l[2];e.default=c({model:{prop:"code"},props:{code:String,closeButtonText:String,inputPlaceholder:String,enabledTitle:String,disabledTitle:String,exchangeButtonText:String,exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,exchangeMinLength:{type:Number,default:1},chosenCoupon:{type:Number,default:-1},coupons:{type:Array,default:function(){return[]}},disabledCoupons:{type:Array,default:function(){return[]}},displayedCouponIndex:{type:Number,default:-1},showExchangeBar:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},showCount:{type:Boolean,default:!0},currency:{type:String,default:"¥"},emptyImage:{type:String,default:"https://img01.yzcdn.cn/vant/coupon-empty.png"}},data:function(){return{tab:0,winHeight:window.innerHeight,currentCode:this.code||""}},computed:{buttonDisabled:function(){return!this.exchangeButtonLoading&&(this.exchangeButtonDisabled||!this.currentCode||this.currentCode.length=r&&(a.marginTop=s)}return a},contentStyle:function(){var t=this.parent,e=t.square,n=t.gutter;if(e&&n){var r=Object(o.addUnit)(n);return{right:r,bottom:r,height:"auto"}}}},methods:{onClick:function(t){this.$emit("click",t),Object(s.route)(this.$router,this)},genIcon:function(){var t,e=this.$createElement,n=this.slots("icon"),r=null!=(t=this.badge)?t:this.info;return n?e("div",{class:h("icon-wrapper")},[n,e(l.default,{attrs:{dot:this.dot,info:r}})]):this.icon?e(c.default,{attrs:{name:this.icon,dot:this.dot,badge:r,size:this.parent.iconSize,classPrefix:this.iconPrefix},class:h("icon")}):void 0},getText:function(){var t=this.$createElement,e=this.slots("text");return e||(this.text?t("span",{class:h("text")},[this.text]):void 0)},genContent:function(){var t=this.slots();return t||[this.genIcon(),this.getText()]}},render:function(){var t,e=arguments[0],n=this.parent,r=n.center,i=n.border,o=n.square,s=n.gutter,u=n.direction,l=n.clickable;return e("div",{class:[h({square:o})],style:this.style},[e("div",{style:this.contentStyle,attrs:{role:l?"button":null,tabindex:l?0:null},class:[h("content",[u,{center:r,square:o,clickable:l,surround:i&&s}]),(t={},t[a.BORDER]=i,t)],on:{click:this.onClick}},[this.genContent()])])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(6),o=n(9),a=n(11),s=Object(r.createNamespace)("index-anchor"),u=s[0],l=s[1];e.default=u({mixins:[Object(i.ChildrenMixin)("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var t=this.$el.getBoundingClientRect();this.rect.height=t.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(t,e){var n=this.$el.getBoundingClientRect();return this.rect.height=n.height,t===window||t===document.body?this.rect.top=n.top+Object(a.getRootScrollTop)():this.rect.top=n.top+Object(a.getScrollTop)(t)-e.top,this.rect}},render:function(){var t,e=arguments[0],n=this.sticky;return e("div",{style:{height:n?this.rect.height+"px":null}},[e("div",{style:this.anchorStyle,class:[l({sticky:n}),(t={},t[o.BORDER_BOTTOM]=n,t)]},[this.slots("default")||this.index])])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(0),o=n(36),a=n(7),s=n(11),u=n(18),l=n(6),c=n(23);var f=Object(r.createNamespace)("index-bar"),d=f[0],h=f[1];e.default=d({mixins:[u.TouchMixin,Object(l.ParentMixin)("vanIndexBar"),Object(c.BindEventMixin)((function(t){this.scroller||(this.scroller=Object(s.getScroller)(this.$el)),t(this.scroller,"scroll",this.onScroll)}))],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:function(){for(var t=[],e="A".charCodeAt(0),n=0;n<26;n++)t.push(String.fromCharCode(e+n));return t}}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if(Object(i.isDef)(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var t=this.highlightColor;if(t)return{color:t}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(t){t&&this.$emit("change",t)}},methods:{onScroll:function(){var t=this;if(!Object(o.isHidden)(this.$el)){var e=Object(s.getScrollTop)(this.scroller),n=this.getScrollerRect(),r=this.children.map((function(e){return e.getRect(t.scroller,n)})),i=this.getActiveAnchorIndex(e,r);this.activeAnchorIndex=this.indexList[i],this.sticky&&this.children.forEach((function(o,a){if(a===i||a===i-1){var s=o.$el.getBoundingClientRect();o.left=s.left,o.width=s.width}else o.left=null,o.width=null;if(a===i)o.active=!0,o.top=Math.max(t.stickyOffsetTop,r[a].top-e)+n.top;else if(a===i-1){var u=r[i].top-e;o.active=u>0,o.top=u+n.top-r[a].height}else o.active=!1}))}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(t,e){for(var n=this.children.length-1;n>=0;n--){var r=n>0?e[n-1].height:0;if(t+(this.sticky?r+this.stickyOffsetTop:0)>=e[n].top)return n}return-1},onClick:function(t){this.scrollToElement(t.target)},onTouchMove:function(t){if(this.touchMove(t),"vertical"===this.direction){Object(a.preventDefault)(t);var e=t.touches[0],n=e.clientX,r=e.clientY,i=document.elementFromPoint(n,r);if(i){var o=i.dataset.index;this.touchActiveIndex!==o&&(this.touchActiveIndex=o,this.scrollToElement(i))}}},scrollTo:function(t){var e=this.children.filter((function(e){return String(e.index)===t}));e[0]&&(e[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&Object(s.setRootScrollTop)(Object(s.getRootScrollTop)()-this.stickyOffsetTop),this.$emit("select",e[0].index))},scrollToElement:function(t){var e=t.dataset.index;this.scrollTo(e)},onTouchEnd:function(){this.active=null}},render:function(){var t=this,e=arguments[0],n=this.indexList.map((function(n){var r=n===t.activeAnchorIndex;return e("span",{class:h("index",{active:r}),style:r?t.highlightStyle:null,attrs:{"data-index":n}},[n])}));return e("div",{class:h()},[e("div",{class:h("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[n]),this.slots("default")])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(36),o=n(11),a=n(23),s=n(19),u=Object(r.createNamespace)("list"),l=u[0],c=u[1],f=u[2];e.default=l({mixins:[Object(a.BindEventMixin)((function(t){this.scroller||(this.scroller=Object(o.getScroller)(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var e,n=t.$el,r=t.scroller,o=t.offset,a=t.direction;if(!((e=r.getBoundingClientRect?r.getBoundingClientRect():{top:0,bottom:r.innerHeight}).bottom-e.top)||Object(i.isHidden)(n))return!1;var s=t.$refs.placeholder.getBoundingClientRect();("up"===a?e.top-s.top<=o:s.bottom-e.bottom<=o)&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:c("loading")},[this.slots("loading")||t(s.default,{attrs:{size:"16"}},[this.loadingText||f("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:c("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:c("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",key:"placeholder",class:c("placeholder")});return t("div",{class:c(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(9),o=n(5),a=Object(r.createNamespace)("nav-bar"),s=a[0],u=a[1];e.default=s({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0}},data:function(){return{height:null}},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.navBar.getBoundingClientRect().height)},methods:{genLeft:function(){var t=this.$createElement,e=this.slots("left");return e||[this.leftArrow&&t(o.default,{class:u("arrow"),attrs:{name:"arrow-left"}}),this.leftText&&t("span",{class:u("text")},[this.leftText])]},genRight:function(){var t=this.$createElement,e=this.slots("right");return e||(this.rightText?t("span",{class:u("text")},[this.rightText]):void 0)},genNavBar:function(){var t,e=this.$createElement;return e("div",{ref:"navBar",style:{zIndex:this.zIndex},class:[u({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(t={},t[i.BORDER_BOTTOM]=this.border,t)]},[e("div",{class:u("content")},[this.hasLeft()&&e("div",{class:u("left"),on:{click:this.onClickLeft}},[this.genLeft()]),e("div",{class:[u("title"),"van-ellipsis"]},[this.slots("title")||this.title]),this.hasRight()&&e("div",{class:u("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(t){this.$emit("click-left",t)},onClickRight:function(t){this.$emit("click-right",t)}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:u("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(0),o=n(16),a=n(23),s=n(5),u=Object(r.createNamespace)("notice-bar"),l=u[0],c=u[1];e.default=l({mixins:[Object(a.BindEventMixin)((function(t){t(window,"pageshow",this.start)}))],props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null},delay:{type:[Number,String],default:1},speed:{type:[Number,String],default:60}},data:function(){return{show:!0,offset:0,duration:0,wrapWidth:0,contentWidth:0}},watch:{scrollable:"start",text:{handler:"start",immediate:!0}},activated:function(){this.start()},methods:{onClickIcon:function(t){"closeable"===this.mode&&(this.show=!1,this.$emit("close",t))},onTransitionEnd:function(){var t=this;this.offset=this.wrapWidth,this.duration=0,Object(o.raf)((function(){Object(o.doubleRaf)((function(){t.offset=-t.contentWidth,t.duration=(t.contentWidth+t.wrapWidth)/t.speed,t.$emit("replay")}))}))},reset:function(){this.offset=0,this.duration=0,this.wrapWidth=0,this.contentWidth=0},start:function(){var t=this,e=Object(i.isDef)(this.delay)?1e3*this.delay:0;this.reset(),clearTimeout(this.startTimer),this.startTimer=setTimeout((function(){var e=t.$refs,n=e.wrap,r=e.content;if(n&&r&&!1!==t.scrollable){var i=n.getBoundingClientRect().width,a=r.getBoundingClientRect().width;(t.scrollable||a>i)&&Object(o.doubleRaf)((function(){t.offset=-a,t.duration=a/t.speed,t.wrapWidth=i,t.contentWidth=a}))}}),e)}},render:function(){var t=this,e=arguments[0],n=this.slots,r=this.mode,i=this.leftIcon,o=this.onClickIcon,a={color:this.color,background:this.background},u={transform:this.offset?"translateX("+this.offset+"px)":"",transitionDuration:this.duration+"s"};function l(){var t=n("left-icon");return t||(i?e(s.default,{class:c("left-icon"),attrs:{name:i}}):void 0)}function f(){var t,i=n("right-icon");return i||("closeable"===r?t="cross":"link"===r&&(t="arrow"),t?e(s.default,{class:c("right-icon"),attrs:{name:t},on:{click:o}}):void 0)}return e("div",{attrs:{role:"alert"},directives:[{name:"show",value:this.show}],class:c({wrapable:this.wrapable}),style:a,on:{click:function(e){t.$emit("click",e)}}},[l(),e("div",{ref:"wrap",class:c("wrap"),attrs:{role:"marquee"}},[e("div",{ref:"content",class:[c("content"),{"van-ellipsis":!1===this.scrollable&&!this.wrapable}],style:u,on:{transitionend:this.onTransitionEnd}},[this.slots()||this.text])]),f()])}})},function(t,e,n){"use strict";n.r(e);var r,i,o=n(1),a=n(15),s=n(92),u=n(0),l=n(3);function c(t){var e;if(!u.isServer)return i||(i=Object(l.mount)(s.default,{on:{click:function(t){i.onClick&&i.onClick(t)},close:function(){i.onClose&&i.onClose()},opened:function(){i.onOpened&&i.onOpened()}}})),t=Object(o.default)({},c.currentOptions,(e=t,Object(u.isObject)(e)?e:{message:e})),Object(o.default)(i,t),clearTimeout(r),t.duration&&t.duration>0&&(r=setTimeout(c.clear,t.duration)),i}c.clear=function(){i&&(i.value=!1)},c.currentOptions={type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null},c.setDefaultOptions=function(t){Object(o.default)(c.currentOptions,t)},c.resetDefaultOptions=function(){c.currentOptions={type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null}},c.install=function(){a.default.use(s.default)},c.Component=s.default,a.default.prototype.$notify=c,e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(7),o=n(53),a=n(23),s=n(93),u=Object(r.createNamespace)("number-keyboard"),l=u[0],c=u[1];e.default=l({mixins:[Object(o.PortalMixin)(),Object(a.BindEventMixin)((function(t){this.hideOnClickOutside&&t(document.body,"touchstart",this.onBlur)}))],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(t){this.transition||this.$emit(t?"show":"hide")}},computed:{keys:function(){return"custom"===this.theme?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});return this.randomKeyOrder&&t.sort((function(){return Math.random()>.5?1:-1})),t},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var t=this.genBasicKeys(),e=this.extraKey,n=Array.isArray(e)?e:[e];return 1===n.length?t.push({text:0,wider:!0},{text:n[0],type:"extra"}):2===n.length&&t.push({text:n[0],type:"extra"},{text:0},{text:n[1],type:"extra"}),t},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(t,e){if(""!==t){var n=this.value;"delete"===e?(this.$emit("delete"),this.$emit("update:value",n.slice(0,n.length-1))):"close"===e?this.onClose():n.lengthe&&(r=(i=e)-n+1);for(var a=r;a<=i;a++){var s=l(a,a,a===this.value);t.push(s)}if(o&&n>0&&this.forceEllipses){if(r>1){var u=l(r-1,"...",!1);t.unshift(u)}if(i=0&&t<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var t=this;this.$nextTick((function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0}))}},render:function(){var t=arguments[0],e=this.pivotText,n=this.percentage,r=null!=e?e:n+"%",o=this.showPivot&&r,a=this.inactive?"#cacaca":this.color,u={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*n/100+"px",background:this.pivotColor||a},l={background:a,width:this.progressWidth*n/100+"px"},c={background:this.trackColor,height:Object(i.addUnit)(this.strokeWidth)};return t("div",{class:s(),style:c},[t("span",{class:s("portion"),style:l},[o&&t("span",{ref:"pivot",style:u,class:s("pivot")},[r])])])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(7),o=n(11),a=n(18),s=n(19),u=Object(r.createNamespace)("pull-refresh"),l=u[0],c=u[1],f=u[2],d=["pulling","loosing","success"];e.default=l({mixins:[a.TouchMixin],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:50}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(50!==this.headHeight)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=Object(o.getScroller)(this.$el)},methods:{checkPullStart:function(t){this.ceiling=0===Object(o.getScrollTop)(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){this.touchable&&(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(Object(i.preventDefault)(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick((function(){t.$emit("refresh")}))):this.setStatus(0))},ease:function(t){var e=+(this.pullDistance||this.headHeight);return t>e&&(t=t<2*e?e+(t-e)/2:1.5*e+(t-2*e)/4),Math.round(t)},setStatus:function(t,e){var n;n=e?"loading":0===t?"normal":t<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=t,n!==this.status&&(this.status=n)},genStatus:function(){var t=this.$createElement,e=this.status,n=this.distance,r=this.slots(e,{distance:n});if(r)return r;var i=[],o=this[e+"Text"]||f(e);return-1!==d.indexOf(e)&&i.push(t("div",{class:c("text")},[o])),"loading"===e&&i.push(t(s.default,{attrs:{size:"16"}},[o])),i},showSuccessTip:function(){var t=this;this.status="success",setTimeout((function(){t.setStatus(0)}),this.successDuration)}},render:function(){var t=arguments[0],e={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:c()},[t("div",{ref:"track",class:c("track"),style:e},[t("div",{class:c("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(10),o=n(7),a=n(18),s=n(24),u=n(5),l=Object(r.createNamespace)("rate"),c=l[0],f=l[1];e.default=c({mixins:[a.TouchMixin,s.FieldMixin],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t,e,n,r=[],i=1;i<=this.count;i++)r.push((t=this.value,e=i,n=this.allowHalf,t>=e?"full":t+.5>=e&&n?"half":"void"));return r},sizeWithUnit:function(){return Object(i.addUnit)(this.size)},gutterWithUnit:function(){return Object(i.addUnit)(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){this.disabled||this.readonly||t===this.value||(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var e=this;if(!this.readonly&&!this.disabled&&this.touchable){this.touchStart(t);var n=this.$refs.items.map((function(t){return t.getBoundingClientRect()})),r=[];n.forEach((function(t,n){e.allowHalf?r.push({score:n+.5,left:t.left},{score:n+1,left:t.left+t.width/2}):r.push({score:n+1,left:t.left})})),this.ranges=r}},onTouchMove:function(t){if(!this.readonly&&!this.disabled&&this.touchable&&(this.touchMove(t),"horizontal"===this.direction)){Object(o.preventDefault)(t);var e=t.touches[0].clientX;this.select(this.getScoreByPosition(e))}},getScoreByPosition:function(t){for(var e=this.ranges.length-1;e>0;e--)if(t>this.ranges[e].left)return this.ranges[e].score;return this.allowHalf?.5:1},genStar:function(t,e){var n,r=this,i=this.$createElement,o=this.icon,a=this.color,s=this.count,l=this.voidIcon,c=this.disabled,d=this.voidColor,h=this.disabledColor,p=e+1,v="full"===t,g="void"===t;return this.gutterWithUnit&&p!==+s&&(n={paddingRight:this.gutterWithUnit}),i("div",{ref:"items",refInFor:!0,key:e,attrs:{role:"radio",tabindex:"0","aria-setsize":s,"aria-posinset":p,"aria-checked":String(!g)},style:n,class:f("item")},[i(u.default,{attrs:{size:this.sizeWithUnit,name:v?o:l,color:c?h:v?a:d,classPrefix:this.iconPrefix,"data-score":p},class:f("icon",{disabled:c,full:v}),on:{click:function(){r.select(p)}}}),this.allowHalf&&i(u.default,{attrs:{size:this.sizeWithUnit,name:g?l:o,color:c?h:g?d:a,classPrefix:this.iconPrefix,"data-score":p-.5},class:f("icon",["half",{disabled:c,full:!g}]),on:{click:function(){r.select(p-.5)}}})])}},render:function(){var t=this,e=arguments[0];return e("div",{class:f({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map((function(e,n){return t.genStar(e,n)}))])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(6),o=Object(r.createNamespace)("row"),a=o[0],s=o[1];e.default=a({mixins:[Object(i.ParentMixin)("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(t){var e=[],n=[[]],r=0;return this.children.forEach((function(t,e){(r+=Number(t.span))>24?(n.push([e]),r-=24):n[n.length-1].push(e)})),n.forEach((function(n){var r=t*(n.length-1)/n.length;n.forEach((function(n,i){if(0===i)e.push({right:r});else{var o=t-e[n-1].right,a=r-o;e.push({left:o,right:a})}}))})),e}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.align,r=this.justify,i="flex"===this.type;return e(this.tag,{class:s((t={flex:i},t["align-"+n]=i&&n,t["justify-"+r]=i&&r,t)),on:{click:this.onClick}},[this.slots()])}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(1),a=n(2),s=n(3),u=n(7),l=n(22),c=Object(a.createNamespace)("search"),f=c[0],d=c[1],h=c[2];function p(t,e,n,r){var a={attrs:r.data.attrs,on:Object(o.default)({},r.listeners,{keypress:function(t){13===t.keyCode&&(Object(u.preventDefault)(t),Object(s.emit)(r,"search",e.value)),Object(s.emit)(r,"keypress",t)}})},c=Object(s.inherit)(r);return c.attrs=void 0,t("div",i()([{class:d({"show-action":e.showAction}),style:{background:e.background}},c]),[null==n.left?void 0:n.left(),t("div",{class:d("content",e.shape)},[function(){if(n.label||e.label)return t("div",{class:d("label")},[n.label?n.label():e.label])}(),t(l.default,i()([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":n["left-icon"],"right-icon":n["right-icon"]}},a]))]),function(){if(e.showAction)return t("div",{class:d("action"),attrs:{role:"button",tabindex:"0"},on:{click:function(){n.action||(Object(s.emit)(r,"input",""),Object(s.emit)(r,"cancel"))}}},[n.action?n.action():e.actionText||h("cancel")])}()])}p.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}},e.default=f(p)},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(28),a=n(21),s=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],u=Object(i.createNamespace)("share-sheet"),l=u[0],c=u[1],f=u[2];e.default=l({props:Object(r.default)({},o.popupMixinProps,{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(t,e){this.$emit("select",t,e)},toggle:function(t){this.$emit("input",t)},getIconURL:function(t){return-1!==s.indexOf(t)?"https://img01.yzcdn.cn/vant/share-sheet-"+t+".png":t},genHeader:function(){var t=this.$createElement,e=this.slots("title")||this.title,n=this.slots("description")||this.description;if(e||n)return t("div",{class:c("header")},[e&&t("h2",{class:c("title")},[e]),n&&t("span",{class:c("description")},[n])])},genOptions:function(t,e){var n=this,r=this.$createElement;return r("div",{class:c("options",{border:e})},[t.map((function(t,e){return r("div",{attrs:{role:"button",tabindex:"0"},class:[c("option"),t.className],on:{click:function(){n.onSelect(t,e)}}},[r("img",{attrs:{src:n.getIconURL(t.icon)},class:c("icon")}),t.name&&r("span",{class:c("name")},[t.name]),t.description&&r("span",{class:c("option-description")},[t.description])])}))])},genRows:function(){var t=this,e=this.options;return Array.isArray(e[0])?e.map((function(e,n){return t.genOptions(e,0!==n)})):this.genOptions(e)},genCancelText:function(){var t,e=this.$createElement,n=null!=(t=this.cancelText)?t:f("cancel");if(n)return e("button",{attrs:{type:"button"},class:c("cancel"),on:{click:this.onCancel}},[n])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var t=arguments[0];return t(a.default,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:c(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(10),s=n(3),u=Object(o.createNamespace)("skeleton"),l=u[0],c=u[1];function f(t,e,n,r){if(!e.loading)return n.default&&n.default();return t("div",i()([{class:c({animate:e.animate,round:e.round})},Object(s.inherit)(r)]),[function(){if(e.avatar){var n=Object(a.addUnit)(e.avatarSize);return t("div",{class:c("avatar",e.avatarShape),style:{width:n,height:n}})}}(),t("div",{class:c("content")},[function(){if(e.title)return t("h3",{class:c("title"),style:{width:Object(a.addUnit)(e.titleWidth)}})}(),function(){for(var n,r=[],i=e.rowWidth,o=0;ot[1]?(t=Object(o.deepClone)(t)).reverse():t},updateValue:function(t,e){t=this.range?this.handleOverlap(t).map(this.format):this.format(t),d(t,this.value)||this.$emit("input",t),e&&!d(t,this.startValue)&&this.$emit("change",t)},format:function(t){return Math.round(Math.max(this.min,Math.min(t,this.max))/this.step)*this.step}},render:function(){var t,e,n=this,r=arguments[0],o=this.vertical,a=o?"height":"width",s=o?"width":"height",u=((t={background:this.inactiveColor})[s]=Object(i.addUnit)(this.barHeight),t),l=function(){var t=n.value,e=n.min,r=n.range,i=n.scope;return r?100*(t[1]-t[0])/i+"%":100*(t-e)/i+"%"},c=function(){var t=n.value,e=n.min,r=n.range,i=n.scope;return r?100*(t[0]-e)/i+"%":null},d=((e={})[a]=l(),e.left=this.vertical?null:c(),e.top=this.vertical?c():null,e.background=this.activeColor,e);this.dragStatus&&(d.transition="none");var h=function(t){var e=["left","right"],i="number"==typeof t;return r("div",{ref:i?"wrapper"+t:"wrapper",attrs:{role:"slider",tabindex:n.disabled?-1:0,"aria-valuemin":n.min,"aria-valuenow":n.value,"aria-valuemax":n.max,"aria-orientation":n.vertical?"vertical":"horizontal"},class:f(i?"button-wrapper-"+e[t]:"button-wrapper"),on:{touchstart:function(){i&&(n.index=t)},click:function(t){return t.stopPropagation()}}},[n.slots("button")||r("div",{class:f("button"),style:n.buttonStyle})])};return r("div",{style:u,class:f({disabled:this.disabled,vertical:o}),on:{click:this.onClick}},[r("div",{class:f("bar"),style:d},[this.range?[h(0),h(1)]:h()])])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(9),o=n(6),a=n(5),s=Object(r.createNamespace)("step"),u=s[0],l=s[1];e.default=u({mixins:[Object(o.ChildrenMixin)("vanSteps")],computed:{status:function(){return this.index0?"left":"right"),this.dragging=!1,setTimeout((function(){t.lockClick=!1}),0))},toggle:function(t){var e=Math.abs(this.offset),n=this.opened?.85:.15,r=this.computedLeftWidth,i=this.computedRightWidth;i&&"right"===t&&e>i*n?this.open("right"):r&&"left"===t&&e>r*n?this.open("left"):this.close()},onClick:function(t){void 0===t&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,e){var n=this;return function(r){e&&r.stopPropagation(),n.onClick(t)}},genLeftPart:function(){var t=this.$createElement,e=this.slots("left");if(e)return t("div",{ref:"left",class:c("left"),on:{click:this.getClickHandler("left",!0)}},[e])},genRightPart:function(){var t=this.$createElement,e=this.slots("right");if(e)return t("div",{ref:"right",class:c("right"),on:{click:this.getClickHandler("right",!0)}},[e])}},render:function(){var t=arguments[0],e={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:c(),on:{click:this.getClickHandler("cell")}},[t("div",{class:c("wrapper"),style:e},[this.genLeftPart(),this.slots(),this.genRightPart()])])}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(4),o=n.n(i),a=n(2),s=n(3),u=n(12),l=n(37),c=n(78),f=Object(a.createNamespace)("switch-cell"),d=f[0],h=f[1];function p(t,e,n,i){return t(u.default,o()([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:h([e.cellSize])},Object(s.inherit)(i)]),[t(l.default,{props:Object(r.default)({},e),on:Object(r.default)({},i.listeners)})])}p.props=Object(r.default)({},c.switchProps,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}}),e.default=d(p)},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(9),o=n(82),a=n(6),s=Object(r.createNamespace)("tabbar"),u=s[0],l=s[1];e.default=u({mixins:[Object(a.ParentMixin)("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return null!==this.safeAreaInsetBottom?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.tabbar.getBoundingClientRect().height)},methods:{setActiveItem:function(){var t=this;this.children.forEach((function(e,n){e.active=(e.name||n)===t.value}))},onChange:function(t){var e=this;t!==this.value&&Object(o.callInterceptor)({interceptor:this.beforeChange,args:[t],done:function(){e.$emit("input",t),e.$emit("change",t)}})},genTabbar:function(){var t;return(0,this.$createElement)("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(t={},t[i.BORDER_TOP_BOTTOM]=this.border,t),l({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:l("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(0),a=n(17),s=n(6),u=n(5),l=n(25),c=Object(i.createNamespace)("tabbar-item"),f=c[0],d=c[1];e.default=f({mixins:[Object(s.ChildrenMixin)("vanTabbar")],props:Object(r.default)({},a.routeProps,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{active:!1}},computed:{routeActive:function(){var t=this.to,e=this.$route;if(t&&e){var n=Object(o.isObject)(t)?t:{path:t},r=n.path===e.path,i=Object(o.isDef)(n.name)&&n.name===e.name;return r||i}}},methods:{onClick:function(t){this.parent.onChange(this.name||this.index),this.$emit("click",t),Object(a.route)(this.$router,this)},genIcon:function(t){var e=this.$createElement,n=this.slots("icon",{active:t});return n||(this.icon?e(u.default,{attrs:{name:this.icon,classPrefix:this.iconPrefix}}):void 0)}},render:function(){var t,e=arguments[0],n=this.parent.route?this.routeActive:this.active,r=this.parent[n?"activeColor":"inactiveColor"];return e("div",{class:d({active:n}),style:{color:r},on:{click:this.onClick}},[e("div",{class:d("icon")},[this.genIcon(n),e(l.default,{attrs:{dot:this.dot,info:null!=(t=this.badge)?t:this.info}})]),e("div",{class:d("text")},[this.slots("default",{active:n})])])}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(2),a=n(10),s=n(3),u=n(5),l=n(71),c=n(72),f=Object(o.createNamespace)("tree-select"),d=f[0],h=f[1];function p(t,e,n,r){var o=e.items,f=e.height,d=e.activeId,p=e.selectedIcon,v=e.mainActiveIndex;var g=(o[+v]||{}).children||[],m=Array.isArray(d);function y(t){return m?-1!==d.indexOf(t):d===t}var _=o.map((function(e){var n;return t(c.default,{attrs:{dot:e.dot,info:null!=(n=e.badge)?n:e.info,title:e.text,disabled:e.disabled},class:[h("nav-item"),e.className]})}));return t("div",i()([{class:h(),style:{height:Object(a.addUnit)(f)}},Object(s.inherit)(r)]),[t(l.default,{class:h("nav"),attrs:{activeKey:v},on:{change:function(t){Object(s.emit)(r,"update:main-active-index",t),Object(s.emit)(r,"click-nav",t),Object(s.emit)(r,"navclick",t)}}},[_]),t("div",{class:h("content")},[n.content?n.content():g.map((function(n){return t("div",{key:n.id,class:["van-ellipsis",h("item",{active:y(n.id),disabled:n.disabled})],on:{click:function(){if(!n.disabled){var t=n.id;if(m){var i=(t=d.slice()).indexOf(n.id);-1!==i?t.splice(i,1):t.lengthe||!s&&ae?Object(i.raf)(n):r&&Object(i.raf)(r)}()}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(13),a=n(20),s=n(59),u=Object(i.createNamespace)("time-picker")[0];e.default=u({mixins:[s.TimePickerMixin],props:Object(r.default)({},s.sharedProps,{minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:function(){var t=this;this.$nextTick((function(){t.updateInnerValue()}))},maxHour:"updateInnerValue",minMinute:"updateInnerValue",maxMinute:"updateInnerValue",value:function(t){(t=this.formatValue(t))!==this.innerValue&&(this.innerValue=t,this.updateColumnValue())}},methods:{formatValue:function(t){t||(t=Object(o.padZero)(this.minHour)+":"+Object(o.padZero)(this.minMinute));var e=t.split(":"),n=e[0],r=e[1];return(n=Object(o.padZero)(Object(a.range)(n,this.minHour,this.maxHour)))+":"+(r=Object(o.padZero)(Object(a.range)(r,this.minMinute,this.maxMinute)))},updateInnerValue:function(){var t=this.getPicker().getIndexes(),e=t[0],n=t[1],r=this.originColumns,i=r[0],o=r[1],a=i.values[e]||i.values[0],s=o.values[n]||o.values[0];this.innerValue=this.formatValue(a+":"+s),this.updateColumnValue()},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.formatter,n=this.innerValue.split(":"),r=[e("hour",n[0]),e("minute",n[1])];this.$nextTick((function(){t.getPicker().setValues(r)}))}}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(51),a=n(13),s=n(42),u=n(59),l=(new Date).getFullYear(),c=Object(i.createNamespace)("date-picker")[0];e.default=c({mixins:[u.TimePickerMixin],props:Object(r.default)({},u.sharedProps,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(l-10,0,1)},validator:o.isDate},maxDate:{type:Date,default:function(){return new Date(l+10,11,31)},validator:o.isDate}}),watch:{filter:"updateInnerValue",minDate:function(){var t=this;this.$nextTick((function(){t.updateInnerValue()}))},maxDate:"updateInnerValue",value:function(t){(t=this.formatValue(t))&&t.valueOf()!==this.innerValue.valueOf()&&(this.innerValue=t)}},computed:{ranges:function(){var t=this.getBoundary("max",this.innerValue?this.innerValue:this.minDate),e=t.maxYear,n=t.maxDate,r=t.maxMonth,i=t.maxHour,o=t.maxMinute,a=this.getBoundary("min",this.innerValue?this.innerValue:this.minDate),s=a.minYear,u=a.minDate,l=[{type:"year",range:[s,e]},{type:"month",range:[a.minMonth,r]},{type:"day",range:[u,n]},{type:"hour",range:[a.minHour,i]},{type:"minute",range:[a.minMinute,o]}];switch(this.type){case"date":l=l.slice(0,3);break;case"year-month":l=l.slice(0,2);break;case"month-day":l=l.slice(1,3);break;case"datehour":l=l.slice(0,4)}if(this.columnsOrder){var c=this.columnsOrder.concat(l.map((function(t){return t.type})));l.sort((function(t,e){return c.indexOf(t.type)-c.indexOf(e.type)}))}return l}},methods:{formatValue:function(t){return Object(o.isDate)(t)?(t=Math.max(t,this.minDate.getTime()),t=Math.min(t,this.maxDate.getTime()),new Date(t)):null},getBoundary:function(t,e){var n,r=this[t+"Date"],i=r.getFullYear(),o=1,a=1,u=0,l=0;return"max"===t&&(o=12,a=Object(s.getMonthEndDay)(e.getFullYear(),e.getMonth()+1),u=23,l=59),e.getFullYear()===i&&(o=r.getMonth()+1,e.getMonth()+1===o&&(a=r.getDate(),e.getDate()===a&&(u=r.getHours(),e.getHours()===u&&(l=r.getMinutes())))),(n={})[t+"Year"]=i,n[t+"Month"]=o,n[t+"Date"]=a,n[t+"Hour"]=u,n[t+"Minute"]=l,n},updateInnerValue:function(){var t,e,n,r=this,i=this.type,o=this.getPicker().getIndexes(),a=function(t){var e=0;r.originColumns.forEach((function(n,r){t===n.type&&(e=r)}));var n=r.originColumns[e].values;return Object(s.getTrueValue)(n[o[e]])};"month-day"===i?(t=(this.innerValue?this.innerValue:this.minDate).getFullYear(),e=a("month"),n=a("day")):(t=a("year"),e=a("month"),n="year-month"===i?1:a("day"));var u=Object(s.getMonthEndDay)(t,e);n=n>u?u:n;var l=0,c=0;"datehour"===i&&(l=a("hour")),"datetime"===i&&(l=a("hour"),c=a("minute"));var f=new Date(t,e-1,n,l,c);this.innerValue=this.formatValue(f)},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.innerValue?this.innerValue:this.minDate,n=this.formatter,r=this.originColumns.map((function(t){switch(t.type){case"year":return n("year",""+e.getFullYear());case"month":return n("month",Object(a.padZero)(e.getMonth()+1));case"day":return n("day",Object(a.padZero)(e.getDate()));case"hour":return n("hour",Object(a.padZero)(e.getHours()));case"minute":return n("minute",Object(a.padZero)(e.getMinutes()));default:return null}}));this.$nextTick((function(){t.getPicker().setValues(r)}))}}})},function(t,e,n){"use strict";function r(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function i(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function o(t){var e=i(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function a(t){return t instanceof i(t).Element||t instanceof Element}function s(t){return t instanceof i(t).HTMLElement||t instanceof HTMLElement}function u(t){return t?(t.nodeName||"").toLowerCase():null}function l(t){return((a(t)?t.ownerDocument:t.document)||window.document).documentElement}function c(t){return i(t).getComputedStyle(t)}function f(t){var e=c(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function d(t,e,n){void 0===n&&(n=!1);var a,c,d=l(e),h=r(t),p=s(e),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(p||!p&&!n)&&(("body"!==u(e)||f(d))&&(v=(a=e)!==i(a)&&s(a)?{scrollLeft:(c=a).scrollLeft,scrollTop:c.scrollTop}:o(a)),s(e)?((g=r(e)).x+=e.clientLeft,g.y+=e.clientTop):d&&(g.x=function(t){return r(l(t)).left+o(t).scrollLeft}(d))),{x:h.left+v.scrollLeft-g.x,y:h.top+v.scrollTop-g.y,width:h.width,height:h.height}}function h(t){return"html"===u(t)?t:t.assignedSlot||t.parentNode||(e=t,"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)?t.host:null)||l(t);var e}function p(t,e){var n;void 0===e&&(e=[]);var r=function t(e){return["html","body","#document"].indexOf(u(e))>=0?e.ownerDocument.body:s(e)&&f(e)?e:t(h(e))}(t),o=r===(null==(n=t.ownerDocument)?void 0:n.body),a=i(r),l=o?[a].concat(a.visualViewport||[],f(r)?r:[]):r,c=e.concat(l);return o?c:c.concat(p(h(l)))}function v(t){return["table","td","th"].indexOf(u(t))>=0}function g(t){return s(t)&&"fixed"!==c(t).position?t.offsetParent:null}function m(t){for(var e=i(t),n=g(t);n&&v(n)&&"static"===c(n).position;)n=g(n);return n&&("html"===u(n)||"body"===u(n)&&"static"===c(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&s(t)&&"fixed"===c(t).position)return null;for(var n=h(t);s(n)&&["html","body"].indexOf(u(n))<0;){var r=c(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}n.r(e),n.d(e,"createPopper",(function(){return A})),n.d(e,"offsetModifier",(function(){return I}));var y="top",_="right",b="left",x=[].concat([y,"bottom",_,b],["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),w=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function j(t){var e=new Map,n=new Set,r=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var i=e.get(r);i&&t(i)}})),r.push(i)}(t)})),r}function S(t){return t.split("-")[0]}var O=Math.round;var k={placement:"bottom",modifiers:[],strategy:"absolute"};function E(){for(var t=arguments.length,e=new Array(t),n=0;n=0?"x":"y"}(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case"start":e[l]=e[l]-(n[c]/2-r[c]/2);break;case"end":e[l]=e[l]+(n[c]/2-r[c]/2)}}return e}({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,l={placement:S(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,P(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,P(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];s(i)&&u(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});s(r)&&u(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]}]});var I={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=void 0===i?[0,0]:i,a=x.reduce((function(t,n){return t[n]=function(t,e,n){var r=S(t),i=[b,y].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[b,_].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,o),t}),{}),s=a[e.placement],u=s.x,l=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=l),e.modifiersData[r]=a}}},function(t,e,n){"use strict";n.r(e),n.d(e,"stringToDate",(function(){return i})),n.d(e,"dateToString",(function(){return o}));var r=n(13);function i(t){return t?new Date(t.replace(/-/g,"/")):null}function o(t,e){if(void 0===e&&(e="date"),!t)return"";var n=t.getFullYear(),i=t.getMonth()+1,o=t.getDate(),a=n+"-"+Object(r.padZero)(i)+"-"+Object(r.padZero)(o);if("datetime"===e){var s=t.getHours(),u=t.getMinutes();a+=" "+Object(r.padZero)(s)+":"+Object(r.padZero)(u)}return a}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u}).call(this,n(94))},function(t,e,n){"use strict";var r=n(30),i=n(198),o=n(200),a=n(156),s=n(201),u=n(204),l=n(205),c=n(160);t.exports=function(t){return new Promise((function(e,n){var f=t.data,d=t.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(p+":"+v)}var g=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h};i(e,n,o),h=null}},h.onabort=function(){h&&(n(c("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var m=(t.withCredentials||l(g))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;m&&(d[t.xsrfHeaderName]=m)}if("setRequestHeader"in h&&r.forEach(d,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),n(t),h=null)})),f||(f=null),h.send(f)}))}},function(t,e,n){"use strict";var r=n(199);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e,n){"use strict";var r=n(30);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function l(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(o,l),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var c=i.concat(o).concat(a).concat(s),f=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return r.forEach(f,l),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";n.r(e);var r=n(187),i=n.n(r);e.default=i.a},function(t,e,n){"use strict";n.r(e),n.d(e,"unifySlots",(function(){return s})),n.d(e,"createComponent",(function(){return u}));var r=n(0),i=n(13),o=n(165);function a(t){var e=this.name;t.component(e,this),t.component(Object(i.camelize)("-"+e),this)}function s(t){var e=t.scopedSlots||t.data.scopedSlots||{},n=t.slots();return Object.keys(n).forEach((function(t){e[t]||(e[t]=function(){return n[t]})})),e}function u(t){return function(e){var n;return Object(r.isFunction)(e)&&(e={functional:!0,props:(n=e).props,model:n.model,render:function(t,e){return n(t,e.props,s(e),e)}}),e.functional||(e.mixins=e.mixins||[],e.mixins.push(o.SlotsMixin)),e.name=t,e.install=a,e}}},function(t,e,n){"use strict";n.r(e),n.d(e,"SlotsMixin",(function(){return r}));var r={methods:{slots:function(t,e){void 0===t&&(t="default");var n=this.$slots,r=this.$scopedSlots[t];return r?r(e):n[t]}}}},function(t,e,n){"use strict";function r(t){return function(e,n){return e&&"string"!=typeof e&&(n=e,e=""),""+(e=e?t+"__"+e:t)+function t(e,n){return n?"string"==typeof n?" "+e+"--"+n:Array.isArray(n)?n.reduce((function(n,r){return n+t(e,r)}),""):Object.keys(n).reduce((function(r,i){return r+(n[i]?t(e,i):"")}),""):""}(e,n)}}n.r(e),n.d(e,"createBEM",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"createI18N",(function(){return a}));var r=n(0),i=n(13),o=n(39);function a(t){var e=Object(i.camelize)(t)+".";return function(t){for(var n=o.default.messages(),i=Object(r.get)(n,e+t)||Object(r.get)(n,t),a=arguments.length,s=new Array(a>1?a-1:0),u=1;u"+n+"");return e("div",{domProps:{innerHTML:t}})}}}})}))}},render:function(){var t=arguments[0];return t(a.default,{class:c()},[t(s.default,{attrs:{autosize:!0,rows:this.detailRows,clearable:!d,type:"textarea",value:this.value,errorMessage:this.errorMessage,border:!this.shouldShowSearchResult,label:f("label"),maxlength:this.detailMaxlength,placeholder:f("placeholder")},ref:"field",scopedSlots:{icon:this.genFinish},on:Object(r.default)({},this.$listeners)}),this.genSearchResult()])}})},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(75),a=n(2),s=n(0),u=n(20),l=n(7),c=n(18),f=Object(a.createNamespace)("picker-column"),d=f[0],h=f[1];function p(t){return Object(s.isObject)(t)&&t.disabled}e.default=d({mixins:[c.TouchMixin],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:Object(o.deepClone)(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=Object(o.deepClone)(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(!this.readonly){if(this.touchStart(t),this.moving){var e=function(t){var e=window.getComputedStyle(t),n=e.transform||e.webkitTransform,r=n.slice(7,n.length-1).split(", ")[5];return Number(r)}(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(t){if(!this.readonly){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,Object(l.preventDefault)(t,!0)),this.offset=Object(u.range)(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>300&&(this.touchStartTime=e,this.momentumOffset=this.offset)}},onTouchEnd:function(){var t=this;if(!this.readonly){var e=this.offset-this.momentumOffset,n=Date.now()-this.touchStartTime;if(n<300&&Math.abs(e)>15)this.momentum(e,n);else{var r=this.getIndexByOffset(this.offset);this.duration=200,this.setIndex(r,!0),setTimeout((function(){t.moving=!1}),0)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=200,this.setIndex(t,!0))},adjustIndex:function(t){for(var e=t=Object(u.range)(t,0,this.count);e=0;n--)if(!p(this.options[n]))return n},getOptionText:function(t){return Object(s.isObject)(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var n=this,r=-(t=this.adjustIndex(t)||0)*this.itemHeight,i=function(){t!==n.currentIndex&&(n.currentIndex=t,e&&n.$emit("change",t))};this.moving&&r!==this.offset?this.transitionEndTrigger=i:i(),this.offset=r},setValue:function(t){for(var e=this.options,n=0;n0&&o<0?"middle":void 0},getDayType:function(t){var e=this.type,n=this.minDate,r=this.maxDate,i=this.currentDate;return Object(a.compareDay)(t,n)<0||Object(a.compareDay)(t,r)>0?"disabled":null!==i?"single"===e?0===Object(a.compareDay)(t,i)?"selected":"":"multiple"===e?this.getMultipleDayType(t):"range"===e?this.getRangeDayType(t):void 0:void 0},getBottomInfo:function(t){if("range"===this.type){if("start"===t||"end"===t)return Object(a.t)(t);if("start-end"===t)return Object(a.t)("startEnd")}},getDayStyle:function(t,e){var n={height:this.rowHeightWithUnit};return"placeholder"===t?(n.width="100%",n):(0===e&&(n.marginLeft=100*this.offset/7+"%"),this.color&&("start"===t||"end"===t||"start-end"===t||"multiple-selected"===t||"multiple-middle"===t?n.background=this.color:"middle"===t&&(n.color=this.color)),n)},genTitle:function(){var t=this.$createElement;if(this.showMonthTitle)return t("div",{class:Object(a.bem)("month-title")},[this.title])},genMark:function(){var t=this.$createElement;if(this.showMark&&this.shouldRender)return t("div",{class:Object(a.bem)("month-mark")},[this.date.getMonth()+1])},genDays:function(){var t=this.$createElement,e=this.shouldRender?this.days:this.placeholders;return t("div",{ref:"days",attrs:{role:"grid"},class:Object(a.bem)("days")},[this.genMark(),e.map(this.genDay)])},genDay:function(t,e){var n=this,r=this.$createElement,i=t.type,o=t.topInfo,s=t.bottomInfo,u=this.getDayStyle(i,e),l="disabled"===i,c=function(){l||n.$emit("click",t)},f=o&&r("div",{class:Object(a.bem)("top-info")},[o]),d=s&&r("div",{class:Object(a.bem)("bottom-info")},[s]);return"selected"===i?r("div",{attrs:{role:"gridcell",tabindex:-1},style:u,class:[Object(a.bem)("day"),t.className],on:{click:c}},[r("div",{class:Object(a.bem)("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[f,t.text,d])]):r("div",{attrs:{role:"gridcell",tabindex:l?null:-1},style:u,class:[Object(a.bem)("day",i),t.className],on:{click:c}},[f,t.text,d])}},render:function(){var t=arguments[0];return t("div",{class:Object(a.bem)("month"),ref:"month"},[this.genTitle(),this.genDays()])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(8),o=Object(r.createNamespace)("calendar-header")[0];e.default=o({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var t=this.$createElement;if(this.showTitle){var e=this.slots("title")||this.title||Object(i.t)("title");return t("div",{class:Object(i.bem)("header-title")},[e])}},genSubtitle:function(){var t=this.$createElement;if(this.showSubtitle)return t("div",{class:Object(i.bem)("header-subtitle")},[this.subtitle])},genWeekDays:function(){var t=this.$createElement,e=Object(i.t)("weekdays"),n=this.firstDayOfWeek,r=[].concat(e.slice(n,7),e.slice(0,n));return t("div",{class:Object(i.bem)("weekdays")},[r.map((function(e){return t("span",{class:Object(i.bem)("weekday")},[e])}))])}},render:function(){var t=arguments[0];return t("div",{class:Object(i.bem)("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(0),o=n(25),a=Object(r.createNamespace)("tab"),s=a[0],u=a[1];e.default=s({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,n=this.isActive,r="card"===this.type;e&&r&&(t.borderColor=e,this.disabled||(n?t.backgroundColor=e:t.color=e));var i=n?this.activeColor:this.inactiveColor;return i&&(t.color=i),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:u("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(i.isDef)(this.info)&&""!==this.info?t("span",{class:u("text-wrapper")},[e,t(o.default,{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[u({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}})},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(2),o=n(18),a=Object(i.createNamespace)("tabs"),s=a[0],u=a[1];e.default=s({mixins:[o.TouchMixin],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,n=this.currentIndex;"horizontal"===t&&this.offsetX>=50&&(e>0&&0!==n?this.$emit("change",n-1):e<0&&n!==this.count-1&&this.$emit("change",n+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:u("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:u("content",{animated:this.animated}),on:Object(r.default)({},this.listeners)},[this.genChildren()])}})},function(t,e,n){"use strict";n.r(e);var r="van-empty-network-";e.default={render:function(){var t=arguments[0],e=function(e,n,r){return t("stop",{attrs:{"stop-color":e,offset:n+"%","stop-opacity":r}})};return t("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{id:r+"1",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[e("#FFF",0,.5),e("#F2F3F5",100)]),t("linearGradient",{attrs:{id:r+"2",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[e("#EBEDF0",0),e("#DCDEE0",100,0)]),t("linearGradient",{attrs:{id:r+"3",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:r+"4",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:r+"5",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:r+"6",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("radialGradient",{attrs:{id:r+"7",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[e("#EBEDF0",0),e("#FFF",100,0)])]),t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("g",{attrs:{opacity:".8"}},[t("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#"+r+"1)",transform:"matrix(-1 0 0 1 36 7)"}}),t("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#"+r+"1)",transform:"translate(2 7)"}})]),t("path",{attrs:{fill:"url(#"+r+"7)",d:"M0 139h160v21H0z"}}),t("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#"+r+"2)","fill-rule":"nonzero",transform:"translate(43 36)"}}),t("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[t("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+r+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+r+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+r+"4)",transform:"rotate(-180 76.483 42.257)"}}),t("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+r+"4)",transform:"rotate(-180 89.791 42.146)"}})]),t("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[t("rect",{attrs:{fill:"url(#"+r+"5)",width:"98",height:"34",rx:"2"}}),t("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),t("rect",{attrs:{fill:"url(#"+r+"6)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}}},function(t,e,n){"use strict";n.r(e);var r=n(35),i=n(20),o=n(7),a=n(18),s=n(31),u=n(19),l=n(70);function c(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}e.default={mixins:[a.TouchMixin],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight/t;return this.imageRatio>e},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var n=this.moveX/t,r=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+n+"px, "+r+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){(t=Object(i.range)(t,+this.minZoom,+this.maxZoom))!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,n=this.offsetX,r=void 0===n?0:n;this.touchStart(t),this.touchStartTime=new Date,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===e.length&&1!==this.scale,this.zooming=2===e.length&&!r,this.zooming&&(this.startScale=this.scale,this.startDistance=c(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&Object(o.preventDefault)(t,!0),this.moving){var n=this.deltaX+this.startMoveX,r=this.deltaY+this.startMoveY;this.moveX=Object(i.range)(n,-this.maxMoveX,this.maxMoveX),this.moveY=Object(i.range)(r,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var a=c(e),s=this.startScale*a/this.startDistance;this.setScale(s)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=Object(i.range)(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=Object(i.range)(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),Object(o.preventDefault)(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this,e=this.offsetX,n=void 0===e?0:e,r=this.offsetY,i=void 0===r?0:r,o=new Date-this.touchStartTime;n<10&&i<10&&o<250&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout((function(){t.$emit("close"),t.doubleTapTimer=null}),250))},onLoad:function(t){var e=t.target,n=e.naturalWidth,r=e.naturalHeight;this.imageRatio=r/n}},render:function(){var t=arguments[0],e={loading:function(){return t(u.default,{attrs:{type:"spinner"}})}};return t(l.default,{class:Object(r.bem)("swipe-item")},[t(s.default,{attrs:{src:this.src,fit:"contain"},class:Object(r.bem)("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}}},function(t,e,n){"use strict";n.r(e),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}}},function(t,e,n){"use strict";n.r(e),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}}},function(t,e,n){"use strict";n.r(e),e.default={"zh-CN":{vanSku:{select:"请选择",selected:"已选",selectSku:"请先选择商品规格",soldout:"库存不足",originPrice:"原价",minusTip:"至少选择一件",minusStartTip:function(t){return t+"件起售"},unavailable:"商品已经无法购买啦",stock:"剩余",stockUnit:"件",quotaTip:function(t){return"每人限购"+t+"件"},quotaUsedTip:function(t,e){return"每人限购"+t+"件,你已购买"+e+"件"}},vanSkuActions:{buy:"立即购买",addCart:"加入购物车"},vanSkuImgUploader:{oversize:function(t){return"最大可上传图片为"+t+"MB,请尝试压缩图片尺寸"},fail:"上传失败",uploading:"上传中..."},vanSkuStepper:{quotaLimit:function(t){return"限购"+t+"件"},quotaStart:function(t){return t+"件起售"},comma:",",num:"购买数量"},vanSkuMessages:{fill:"请填写",upload:"请上传",imageLabel:"仅限一张",invalid:{tel:"请填写正确的数字格式留言",mobile:"手机号长度为6-20位数字",email:"请填写正确的邮箱",id_no:"请填写正确的身份证号码"},placeholder:{id_no:"请填写身份证号",text:"请填写留言",tel:"请填写数字",email:"请填写邮箱",date:"请选择日期",time:"请选择时间",textarea:"请填写留言",mobile:"请填写手机号"}},vanSkuRow:{multiple:"可多选"},vanSkuDatetimeField:{title:{date:"选择年月日",time:"选择时间",datetime:"选择日期时间"},format:{year:"年",month:"月",day:"日",hour:"时",minute:"分"}}}}},function(t,e,n){"use strict";function r(t){return/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)}n.r(e),n.d(e,"isEmail",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(74),o=Object(r.createNamespace)("sku-img-uploader"),a=o[0],s=o[2];e.default=a({props:{value:String,uploadImg:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(t){this.fileList=t?[{url:t,isImage:!0}]:[]}},methods:{afterReadFile:function(t){var e=this;t.status="uploading",t.message=s("uploading"),this.uploadImg(t.file,t.content).then((function(n){t.status="done",e.$emit("input",n)})).catch((function(){t.status="failed",t.message=s("fail")}))},onOversize:function(){this.$toast(s("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")}},render:function(){var t=this,e=arguments[0];return e(i.default,{attrs:{maxCount:1,afterRead:this.afterReadFile,maxSize:1024*this.maxSize*1024},on:{oversize:this.onOversize,delete:this.onDelete},model:{value:t.fileList,callback:function(e){t.fileList=e}}})}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(154),o=n(21),a=n(68),s=n(22),u=Object(r.createNamespace)("sku-datetime-field"),l=u[0],c=u[2];e.default=l({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:"time"===this.type?"":new Date,minDate:new Date((new Date).getFullYear()-60,0,1)}},watch:{value:function(t){switch(this.type){case"time":this.currentDate=t;break;case"date":case"datetime":this.currentDate=Object(i.stringToDate)(t)||new Date}}},computed:{title:function(){return c("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var e=t;"time"!==this.type&&(e=Object(i.dateToString)(t,this.type)),this.$emit("input",e),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,e){return""+e+c("format."+t)}},render:function(){var t=this,e=arguments[0];return e(s.default,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[e(o.default,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(e){t.showDatePicker=e}}},[e(a.default,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}})},function(t,e,n){ /*! * Vue-Lazyload.js v1.2.3 * (c) 2018 Awe * Released under the MIT License. */ t.exports=function(){"use strict";function t(t){t=t||{};var r=arguments.length,i=0;if(1===r)return t;for(;++i-1?t.splice(n,1):void 0}}function o(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n=t.getAttribute("data-srcset"),r=[],i=t.parentNode.offsetWidth*e,o=void 0,a=void 0,s=void 0;(n=n.trim().split(",")).map((function(t){t=t.trim(),-1===(o=t.lastIndexOf(" "))?(a=t,s=999998):(a=t.substr(0,o),s=parseInt(t.substr(o+1,t.length-o-2),10)),r.push([s,a])})),r.sort((function(t,e){if(t[0]e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0}));for(var u="",l=void 0,c=r.length,f=0;f=i){u=l[1];break}return u}}function a(t,e){for(var n=void 0,r=0,i=t.length;r0&&void 0!==arguments[0]?arguments[0]:1;return m&&window.devicePixelRatio||t},j=function(){if(m){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),S={on:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];j?t.addEventListener(e,n,{capture:r,passive:!0}):t.addEventListener(e,n,r)},off:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,r)}},O=function(t,e,n){var r=new Image;r.src=t.src,r.onload=function(){e({naturalHeight:r.naturalHeight,naturalWidth:r.naturalWidth,src:r.src})},r.onerror=function(t){n(t)}},k=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},E=function(t){return k(t,"overflow")+k(t,"overflow-y")+k(t,"overflow-x")},C={},M=function(){function t(e){var n=e.el,r=e.src,i=e.error,o=e.loading,a=e.bindType,s=e.$parent,u=e.options,l=e.elRenderer;c(this,t),this.el=n,this.src=r,this.error=i,this.loading=o,this.bindType=a,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=u,this.rect=null,this.$parent=s,this.elRenderer=l,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return f(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,n=t.loading,r=t.error,i=this.src;this.src=e,this.loading=n,this.error=r,this.filter(),i!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.topthis.options.preLoadTop&&this.rect.left0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e})(this.options.filter).map((function(e){t.options.filter[e](t,t.options)}))}},{key:"renderLoading",value:function(t){var e=this;O({src:this.loading},(function(n){e.render("loading",!1),t()}),(function(){t(),e.options.silent||console.warn("VueLazyload log: load failed with loading image("+e.loading+")")}))}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.loaded||C[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading((function(){t.attempt++,t.record("loadStart"),O({src:t.src},(function(n){t.naturalHeight=n.naturalHeight,t.naturalWidth=n.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),C[t.src]=1,e()}),(function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)}))}))}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),T="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",P=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],A={rootMargin:"0px",threshold:0},I=function(t){return function(){function e(t){var n=t.preLoad,r=t.error,i=t.throttleWait,o=t.preLoadTop,a=t.dispatchEvent,u=t.loading,l=t.attempt,f=t.silent,d=void 0===f||f,h=t.scale,p=t.listenEvents,v=(t.hasbind,t.filter),g=t.adapter,m=t.observer,y=t.observerOptions;c(this,e),this.version="1.2.3",this.mode=_,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!a,throttleWait:i||200,preLoad:n||1.3,preLoadTop:o||0,error:r||T,loading:u||T,attempt:l||3,scale:h||w(h),ListenEvents:p||P,hasbind:!1,supportWebp:s(),filter:v||{},adapter:g||{},observer:!!m,observerOptions:y||A},this._initEvent(),this.lazyLoadHandler=function(t,e){var n=null,r=0;return function(){if(!n){var i=Date.now()-r,o=this,a=arguments,s=function(){r=Date.now(),n=!1,t.apply(o,a)};i>=e?s():n=setTimeout(s,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?b:_)}return f(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map((function(e){t.push(e.performance())})),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),m&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,n,r){var i=this;if(function(t,e){for(var n=!1,r=0,i=t.length;r0&&this.rect.left0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}},D=function(){function t(e){var n=e.lazy;c(this,t),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return f(t,[{key:"bind",value:function(t,e,n){var r=new L({el:t,binding:e,vnode:n,lazy:this.lazy});this._queue.push(r)}},{key:"update",value:function(t,e,n){var r=a(this._queue,(function(e){return e.el===t}));r&&r.update({el:t,binding:e,vnode:n})}},{key:"unbind",value:function(t,e,n){var r=a(this._queue,(function(e){return e.el===t}));r&&(r.clear(),i(this._queue,r))}}]),t}(),R={selector:"img"},L=function(){function t(e){var n=e.el,r=e.binding,i=e.vnode,o=e.lazy;c(this,t),this.el=null,this.vnode=i,this.binding=r,this.options={},this.lazy=o,this._queue=[],this.update({el:n,binding:r})}return f(t,[{key:"update",value:function(t){var e=this,n=t.el,r=t.binding;this.el=n,this.options=g({},R,r.value),this.getImgs().forEach((function(t){e.lazy.add(t,g({},e.binding,{value:{src:t.dataset.src,error:t.dataset.error,loading:t.dataset.loading}}),e.vnode)}))}},{key:"getImgs",value:function(){return function(t){for(var e=t.length,n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=I(t),r=new n(e),i=new D({lazy:r}),o="2"===t.version.split(".")[0];t.prototype.$Lazyload=r,e.lazyComponent&&t.component("lazy-component",N(r)),o?(t.directive("lazy",{bind:r.add.bind(r),update:r.update.bind(r),componentUpdated:r.lazyLoadHandler.bind(r),unbind:r.remove.bind(r)}),t.directive("lazy-container",{bind:i.bind.bind(i),update:i.update.bind(i),unbind:i.unbind.bind(i)})):(t.directive("lazy",{bind:r.lazyLoadHandler.bind(r),update:function(t,e){g(this.vm.$refs,this.vm.$els),r.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){r.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){i.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){i.unbind(this.el)}}))}}}()},function(t,e,n){t.exports=n},function(t,e,n){var r;window,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/index.ts")}({"./node_modules/_@antv_hierarchy@0.6.6@@antv/hierarchy/build/hierarchy.js": /*!********************************************************************************!*\ !*** ./node_modules/_@antv_hierarchy@0.6.6@@antv/hierarchy/build/hierarchy.js ***! \********************************************************************************/ /*! no static exports found */function(t,e,n){var r;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=31)}([function(t,e,n){"use strict";var r=n(4);e.a=function(t){return Array.isArray?Array.isArray(t):Object(r.a)(t,"Array")}},function(t,e,n){"use strict";e.a=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";var r=n(0),i=n(13);e.a=function(t,e){if(t)if(Object(r.a)(t))for(var n=0,o=t.length;n-1}},function(t,e,n){"use strict";e.a=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";var r=n(2),i=n(1);e.a=function(t,e){if(!Object(i.a)(t))return t;var n=[];return Object(r.a)(t,(function(t,r){e(t,r)&&n.push(t)})),n}},function(t,e,n){"use strict";e.a=function(t){return"object"==typeof t&&null!==t}},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}e.a=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){var r=n(30),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=i[0];t.exports=function(t,e,n){var s=e.direction||a;if(e.isHorizontal=function(t){return o.indexOf(t)>-1}(s),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),l=u.left,c=u.right;n(l,e),n(c,e),e.isHorizontal?l.right2left():l.bottom2top(),c.translate(l.x-c.x,l.y-c.y),t.x=l.x,t.y=c.y;var f=t.getBoundingBox();e.isHorizontal?f.top<0&&t.translate(0,-f.top):f.left<0&&t.translate(-f.left,0)}var d=e.fixedRoot;return void 0===d&&(d=!0),d&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(7),i={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){var e=t.label||" ";return t.width||18*e.split("").length}};function o(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof o)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.width=e.getWidth(t),n.height=e.getHeight(t),n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}r.assign(o.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},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},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e}))},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)},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.exports=function(t,e,n){void 0===e&&(e={});var a,s=new o(t,e=r.assign({},i,e)),u=[s];if(!n&&!t.collapsed)for(;a=u.shift();)if(!a.data.collapsed){var l=e.getChildren(a.data),c=l?l.length:0;if(a.children=new Array(c),l&&c)for(var f=0;f-1;)i.call(t,s,1);return t}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(9);e.a=function(t,e,n){if(!Object(i.a)(t)&&!Object(o.a)(t))return t;var a=n;return Object(r.a)(t,(function(t,n){a=e(a,t,n)})),a}},function(t,e,n){"use strict";var r=n(1),i=n(21);e.a=function(t,e){var n=[];if(!Object(r.a)(t))return n;for(var o=-1,a=[],s=t.length;++oe[r])return 1;if(t[r]n?n:t}},function(t,e,n){"use strict";e.a=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){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%1!=0}},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%2==0}},function(t,e,n){"use strict";var r=n(5),i=Number.isInteger?Number.isInteger:function(t){return Object(r.a)(t)&&t%1==0};e.a=i},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t<0}},function(t,e,n){"use strict";e.a=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)0}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(3);e.a=function(t,e){if(Object(i.a)(t)){var n,a,s=t[0];return n=Object(o.a)(e)?e(t[0]):t[0][e],Object(r.a)(t,(function(t){(a=Object(o.a)(e)?e(t):t[e])>n&&(s=t,n=a)})),s}}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(3);e.a=function(t,e){if(Object(i.a)(t)){var n,a,s=t[0];return n=Object(o.a)(e)?e(t[0]):t[0][e],Object(r.a)(t,(function(t){(a=Object(o.a)(e)?e(t):t[e])e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}},function(t,e,n){"use strict";var r=n(1);e.a=function(t){return Object(r.a)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";var r={};e.a=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";e.a=function(t){return Object(r.a)(t)?0:Object(i.a)(t)?t.length:Object.keys(t).length};var r=n(6),i=n(1)},function(t,e,n){"use strict";var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.a=r},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e){var n=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);!function t(e,n,r){r?e.y+=n:e.x+=n,e.children.forEach((function(e){t(e,n,r)}))}(t,-n,e)}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,e){void 0===e&&(e={});var i=e.isHorizontal;function o(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 a(t,e,n){for(var r=t.c[e-1],i=r.mod,o=t.c[e],a=o.mod;null!==r&&null!==o;){c(r)>n.low&&(n=n.nxt);var f=i+r.prelim+r.w-(a+o.prelim);f>0&&(a+=f,s(t,e,n.index,f));var d=c(r),h=c(o);d<=h&&null!==(r=l(r))&&(i+=r.mod),d>=h&&null!==(o=u(o))&&(a+=o.mod)}!r&&o?function(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,o,a):r&&!o&&function(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,r,i)}function s(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)}function u(t){return 0===t.cs?t.tl:t.c[0]}function l(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function c(t){return t.y+t.h}function f(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}!function t(e,n,r){void 0===r&&(r=0),n?(e.x=r,r+=e.width):(e.y=r,r+=e.height),e.children.forEach((function(e){t(e,n,r)}))}(t,i);var d=n.fromNode(t,i);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=f(c(e.c[0].el),0,null),r=1;ra&&(a=e.depth);var n=e.children,r=n.length,o=new i(e.height,[]);return n.forEach((function(e,n){var i=t(e);o.children.push(i),0===n&&(o.leftChild=i),n===r-1&&(o.rightChild=i)})),o.originNode=e,o.isLeaf=e.isLeaf(),o}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=a;else{var n=e.children.map((function(e){return t(e)})),r=Math.min.apply(null,n);e.drawingDepth=r-1}return e.drawingDepth}(s),function t(r){r.x=r.drawingDepth*e.rankSep,r.isLeaf?(r.y=0,n&&(r.y=n.y+n.height+e.nodeSep,r.originNode.parent!==n.originNode.parent&&(r.y+=e.subTreeSep)),n=r):(r.children.forEach((function(e){t(e)})),r.y=(r.leftChild.y+r.rightChild.y)/2)}(s),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)}))}(s,t,e.isHorizontal),t}},function(t,e,n){var r=n(11),i=n(117),o=n(30),a=n(7),s=["LR","RL","H"],u=s[0],l=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=void 0===n?20:n,a=t.dropCap,l=void 0===a||a,c=t.direction||u;if(c&&-1===s.indexOf(c))throw new TypeError("Invalid direction: "+c);if(c===s[0])i(e,r,l);else if(c===s[1])i(e,r,l),e.right2left();else if(c===s[2]){var f=o(e,t),d=f.left,h=f.right;i(d,r,l),d.right2left(),i(h,r,l);var p=d.getBoundingBox();h.translate(p.width,0),e.x=h.x-e.width/2}return e},r}(r),c={};t.exports=function(t,e){return e=a.assign({},c,e),new l(t,e).execute()}},function(t,e){t.exports=function(t,e,n){var r=null;t.eachNode((function(t){!function(t,e,n,r){if(!r)try{if(t.id===t.parent.children[0].id)return t.x+=n*t.depth,void(t.y=e?e.y:0)}catch(t){}t.x+=n*t.depth,t.y=e?e.y+e.height:0}(t,r,e,n),r=t}))}},function(t,e,n){var r=n(11),i=n(119),o=n(17),a=n(7),s=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){return o(this.rootNode,this.options,i)},r}(r),u={};t.exports=function(t,e){return e=a.assign({},u,e),new s(t,e).execute()}},function(t,e,n){var r=n(7),i={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},i,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,function t(e,n){var r=0;return e.children.length?e.children.forEach((function(e){r+=t(e,n)})):r=e.height,e._subTreeSep=n.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,r)+2*e._subTreeSep,e.totalHeight}(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;ie.height)e.y=i.y+a/2-e.height/2;else if(1!==n.length||e.height>s){var u=e.y+(e.height-a)/2-i.y;n.forEach((function(t){t.translate(0,u)}))}else e.y=(i.y+i.height/2+o.y+o.height/2)/2-e.height/2}}(t)}}])},t.exports=r()},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/augment.js": /*!*******************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/augment.js ***! \*******************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./mix */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/mix.js"),i=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js");e.default=function(){for(var t=[],e=0;en?n:t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/clear-animation-frame.js": /*!*********************************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/clear-animation-frame.js ***! \*********************************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/clone.js": /*!*****************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/clone.js ***! \*****************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),i=function(t){if("object"!=typeof t||null===t)return t;var e;if(r.default(t)){e=[];for(var n=0,o=t.length;n-1}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/debounce.js": /*!********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/debounce.js ***! \********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/deep-mix.js": /*!********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/deep-mix.js ***! \********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),i=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-plain-object.js");function o(t,e,n,a){for(var s in n=n||0,a=a||5,e)if(e.hasOwnProperty(s)){var u=e[s];null!==u&&i.default(u)?(i.default(t[s])||(t[s]={}),n20&&(i=20),parseFloat(t.toFixed(i))}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/flatten-deep.js": /*!************************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/flatten-deep.js ***! \************************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),i=function(t,e){if(void 0===e&&(e=[]),r.default(t))for(var n=0;n0}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-prototype.js": /*!************************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-prototype.js ***! \************************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.prototype;e.default=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-reg-exp.js": /*!**********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-reg-exp.js ***! \**********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"RegExp")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-string.js": /*!*********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-string.js ***! \*********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"String")}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js": /*!*******************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-type.js ***! \*******************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-undefined.js": /*!************************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-undefined.js ***! \************************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return void 0===t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/keys.js": /*!****************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/keys.js ***! \****************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./each */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js"),i=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js"),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return r.default(t,(function(n,r){i.default(t)&&"prototype"===r||e.push(r)})),e};e.default=o},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/last.js": /*!****************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/last.js ***! \****************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");e.default=function(t){if(r.default(t))return t[t.length-1]}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/lower-case.js": /*!**********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/lower-case.js ***! \**********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-string.js");e.default=function(t){return r.default(t).toLowerCase()}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/lower-first.js": /*!***********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/lower-first.js ***! \***********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-string.js");e.default=function(t){var e=r.default(t);return e.charAt(0).toLowerCase()+e.substring(1)}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/map-values.js": /*!**********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/map-values.js ***! \**********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js"),i=n(/*! ./is-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-object.js"),o=function(t){return t};e.default=function(t,e){void 0===e&&(e=o);var n={};return i.default(t)&&!r.default(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/map.js": /*!***************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/map.js ***! \***************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");e.default=function(t,e){if(!r.default(t))return t;for(var n=[],i=0;in&&(s=t,n=a)})),s}}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/memoize.js": /*!*******************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/memoize.js ***! \*******************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-function.js");e.default=function(t,e){if(!r.default(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i-1;)i.call(t,s,1);return t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/reduce.js": /*!******************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/reduce.js ***! \******************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./each */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/each.js"),i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array.js"),o=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-plain-object.js");e.default=function(t,e,n){if(!i.default(t)&&!o.default(t))return t;var a=n;return r.default(t,(function(t,n){a=e(a,t,n)})),a}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/remove.js": /*!******************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/remove.js ***! \******************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js"),i=n(/*! ./pull-at */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/pull-at.js");e.default=function(t,e){var n=[];if(!r.default(t))return n;for(var o=-1,a=[],s=t.length;++oe[r])return 1;if(t[r]e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-array.js": /*!********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-array.js ***! \********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-array-like.js");e.default=function(t){return r.default(t)?Array.prototype.slice.call(t):[]}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-degree.js": /*!*********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-degree.js ***! \*********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=180/Math.PI;e.default=function(t){return r*t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-integer.js": /*!**********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-integer.js ***! \**********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-radian.js": /*!*********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-radian.js ***! \*********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.PI/180;e.default=function(t){return r*t}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-string.js": /*!*********************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/to-string.js ***! \*********************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/is-nil.js");e.default=function(t){return r.default(t)?"":t.toString()}},"./node_modules/_@antv_util@2.0.10@@antv/util/lib/union.js": /*!*****************************************************************!*\ !*** ./node_modules/_@antv_util@2.0.10@@antv/util/lib/union.js ***! \*****************************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! ./uniq */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/uniq.js");e.default=function(){for(var t=[],e=0;ee?1:t>=e?0:NaN}function n(t){var n;return 1===t.length&&(n=t,t=function(t,r){return e(n(t),r)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}var r=n(e),i=r.right,o=r.left;function a(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function u(t,e){var n,r,i=t.length,o=0,a=-1,u=0,l=0;if(null==e)for(;++a1)return l/(o-1)}function l(t,e){var n=u(t,e);return n?Math.sqrt(n):n}function c(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i=0?(o>=m?10:o>=y?5:o>=_?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=m?10:o>=y?5:o>=_?2:1)}function x(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=m?i*=10:o>=y?i*=5:o>=_&&(i*=2),e=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function S(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r}function O(t){if(!(i=t.length))return[];for(var e=-1,n=S(t,k),r=new Array(n);++et?1:e>=t?0:NaN},t.deviation=l,t.extent=c,t.histogram=function(){var t=v,e=c,n=w;function r(r){var o,a,s=r.length,u=new Array(s);for(o=0;of;)d.pop(),--h;var p,v=new Array(h+1);for(o=0;o<=h;++o)(p=v[o]=[]).x0=o>0?d[o-1]:c,p.x1=o=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r},t.mean=function(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n},t.min=S,t.pairs=function(t,e){null==e&&(e=a);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++se?1:t>=e?0:NaN}function n(t){var n=t,r=t;function i(t,e,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n>>1;r(t[o],e)<0?n=o+1:i=o}return n}return 1===t.length&&(n=function(e,n){return t(e)-n},r=function(t){return function(n,r){return e(t(n),r)}}(t)),{left:i,center:function(t,e,r,o){null==r&&(r=0),null==o&&(o=t.length);var a=i(t,e,r,o-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,e,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n>>1;r(t[o],e)>0?i=o:n=o+1}return n}}}function i(t){return null===t?NaN:+t}var o=n(e),a=o.right,s=o.left,u=n(i).center;function l(t,e){var n,i,o,a,s=0;if(void 0===e)try{for(var u=r.__values(t),l=u.next();!l.done;l=u.next())null!=(h=l.value)&&(h=+h)>=h&&++s}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}else{var c=-1;try{for(var f=r.__values(t),d=f.next();!d.done;d=f.next()){var h;null!=(h=e(h=d.value,++c,t))&&(h=+h)>=h&&++s}}catch(t){o={error:t}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}}return s}function c(t){return 0|t.length}function f(t){return!(t>0)}function d(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function h(t){return function(e){return t.apply(void 0,r.__spread(e))}}function p(t,e){var n,i,o,a,s,u=0,l=0,c=0;if(void 0===e)try{for(var f=r.__values(t),d=f.next();!d.done;d=f.next())null!=(g=d.value)&&(g=+g)>=g&&(c+=(s=g-l)*(g-(l+=s/++u)))}catch(t){n={error:t}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}else{var h=-1;try{for(var p=r.__values(t),v=p.next();!v.done;v=p.next()){var g;null!=(g=e(g=v.value,++h,t))&&(g=+g)>=g&&(c+=(s=g-l)*(g-(l+=s/++u)))}}catch(t){o={error:t}}finally{try{v&&!v.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}if(u>1)return c/(u-1)}function v(t,e){var n=p(t,e);return n?Math.sqrt(n):n}function g(t,e){var n,i,o,a,s,u;if(void 0===e)try{for(var l=r.__values(t),c=l.next();!c.done;c=l.next())null!=(p=c.value)&&(void 0===s?p>=p&&(s=u=p):(s>p&&(s=p),u=p&&(s=u=p):(s>p&&(s=p),u0){for(o=r[--i];i>0&&(t=o,!(n=(e=r[--i])-((o=t+e)-t))););i>0&&(n<0&&r[i-1]<0||n>0&&r[i-1]>0)&&(e=2*n)==(t=o+e)-o&&(o=t)}return o},t}(),y=function(t){function e(e,n){var i,o;void 0===e&&(e=[]),void 0===n&&(n=j);var a=t.call(this)||this;Object.defineProperties(a,{_intern:{value:new Map},_key:{value:n}});try{for(var s=r.__values(e),u=s.next();!u.done;u=s.next()){var l=r.__read(u.value,2),c=l[0],f=l[1];a.set(c,f)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a}return r.__extends(e,t),e.prototype.get=function(e){return t.prototype.get.call(this,b(this,e))},e.prototype.has=function(e){return t.prototype.has.call(this,b(this,e))},e.prototype.set=function(e,n){return t.prototype.set.call(this,x(this,e),n)},e.prototype.delete=function(e){return t.prototype.delete.call(this,w(this,e))},e}(Map),_=function(t){function e(e,n){var i,o;void 0===e&&(e=[]),void 0===n&&(n=j);var a=t.call(this)||this;Object.defineProperties(a,{_intern:{value:new Map},_key:{value:n}});try{for(var s=r.__values(e),u=s.next();!u.done;u=s.next()){var l=u.value;a.add(l)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a}return r.__extends(e,t),e.prototype.has=function(e){return t.prototype.has.call(this,b(this,e))},e.prototype.add=function(e){return t.prototype.add.call(this,x(this,e))},e.prototype.delete=function(e){return t.prototype.delete.call(this,w(this,e))},e}(Set);function b(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):e}function x(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)?n.get(r):(n.set(r,e),e)}function w(t,e){var n=t._intern,r=(0,t._key)(e);return n.has(r)&&(e=n.get(e),n.delete(r)),e}function j(t){return null!==t&&"object"==typeof t?t.valueOf():t}function S(t){return t}function O(t){for(var e=[],n=1;n=i.length)return n(o);var f=new y,d=i[a++],h=-1;try{for(var p=r.__values(o),v=p.next();!v.done;v=p.next()){var g=v.value,m=d(g,++h,o),_=f.get(m);_?_.push(g):f.set(m,[g])}}catch(t){s={error:t}}finally{try{v&&!v.done&&(u=p.return)&&u.call(p)}finally{if(s)throw s.error}}try{for(var b=r.__values(f),x=b.next();!x.done;x=b.next()){var w=r.__read(x.value,2),j=(m=w[0],w[1]);f.set(m,t(j,a))}}catch(t){l={error:t}}finally{try{x&&!x.done&&(c=b.return)&&c.call(b)}finally{if(l)throw l.error}}return e(f)}(t,0)}function M(t,e){return Array.from(e,(function(e){return t[e]}))}function T(t){for(var n=[],i=1;i1){var u=Uint32Array.from(t,(function(t,e){return e}));return n.length>1?(n=n.map((function(e){return t.map(e)})),u.sort((function(t,i){var o,a;try{for(var s=r.__values(n),u=s.next();!u.done;u=s.next()){var l=u.value,c=e(l[t],l[i]);if(c)return c}}catch(t){o={error:t}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}}))):(s=t.map(s),u.sort((function(t,n){return e(s[t],s[n])}))),M(t,u)}return t.sort(s)}var P=Array.prototype.slice;function A(t){return function(){return t}}var I=Math.sqrt(50),N=Math.sqrt(10),D=Math.sqrt(2);function R(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=I?10:o>=N?5:o>=D?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=I?10:o>=N?5:o>=D?2:1)}function B(t,e,n){for(var r;;){var i=L(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function $(t){return Math.ceil(Math.log(l(t))/Math.LN2)+1}function F(){var t=S,e=g,n=$;function i(i){var o;Array.isArray(i)||(i=Array.from(i));var s,u,l=i.length,c=new Array(l);for(s=0;s=h)if(v>=h&&e===g){var y=L(d,h,m);isFinite(y)&&(y>0?h=(Math.floor(h/y)+1)*y:y<0&&(h=(Math.ceil(h*-y)+1)/-y))}else p.pop()}for(var _=p.length;p[0]<=d;)p.shift(),--_;for(;p[_-1]>h;)p.pop(),--_;var b,x=new Array(_+1);for(s=0;s<=_;++s)(b=x[s]=[]).x0=s>0?p[s-1]:d,b.x1=s<_?p[s]:h;for(s=0;s=h)&&(s=h)}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}else{var c=-1;try{for(var f=r.__values(t),d=f.next();!d.done;d=f.next()){var h;null!=(h=e(h=d.value,++c,t))&&(s=h)&&(s=h)}}catch(t){o={error:t}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}}return s}function V(t,e){var n,i,o,a,s;if(void 0===e)try{for(var u=r.__values(t),l=u.next();!l.done;l=u.next())null!=(h=l.value)&&(s>h||void 0===s&&h>=h)&&(s=h)}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}else{var c=-1;try{for(var f=r.__values(t),d=f.next();!d.done;d=f.next()){var h;null!=(h=e(h=d.value,++c,t))&&(s>h||void 0===s&&h>=h)&&(s=h)}}catch(t){o={error:t}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}}return s}function q(t,n,r,i,o){for(void 0===r&&(r=0),void 0===i&&(i=t.length-1),void 0===o&&(o=e);i>r;){if(i-r>600){var a=i-r+1,s=n-r+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a)*(s-a/2<0?-1:1);q(t,n,Math.max(r,Math.floor(n-s*l/a+c)),Math.min(i,Math.floor(n+(a-s)*l/a+c)),o)}var f=t[n],d=r,h=i;for(H(t,r,n),o(t[i],f)>0&&H(t,r,i);d0;)--h}0===o(t[r],f)?H(t,r,h):H(t,++h,i),h<=n&&(r=h+1),n<=h&&(i=h-1)}return t}function H(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function G(t,e,n){if(i=(t=Float64Array.from(function(t,e){var n,i,o,a,s,u,l,c,f,d,h,p;return r.__generator(this,(function(v){switch(v.label){case 0:if(void 0!==e)return[3,9];v.label=1;case 1:v.trys.push([1,6,7,8]),n=r.__values(t),i=n.next(),v.label=2;case 2:return i.done?[3,5]:null!=(l=i.value)&&(l=+l)>=l?[4,l]:[3,4];case 3:v.sent(),v.label=4;case 4:return i=n.next(),[3,2];case 5:return[3,8];case 6:return o=v.sent(),f={error:o},[3,8];case 7:try{i&&!i.done&&(d=n.return)&&d.call(n)}finally{if(f)throw f.error}return[7];case 8:return[3,17];case 9:a=-1,v.label=10;case 10:v.trys.push([10,15,16,17]),s=r.__values(t),u=s.next(),v.label=11;case 11:return u.done?[3,14]:(l=u.value,null!=(l=e(l,++a,t))&&(l=+l)>=l?[4,l]:[3,13]);case 12:v.sent(),v.label=13;case 13:return u=s.next(),[3,11];case 14:return[3,17];case 15:return c=v.sent(),h={error:c},[3,17];case 16:try{u&&!u.done&&(p=s.return)&&p.call(s)}finally{if(h)throw h.error}return[7];case 17:return[2]}}))}(t,n))).length){if((e=+e)<=0||i<2)return V(t);if(e>=1)return z(t);var i,o=(i-1)*e,a=Math.floor(o),s=z(q(t,a).subarray(0,a+1));return s+(V(t.subarray(a+1))-s)*(o-a)}}function U(t,e){var n,i,o,a,s,u=-1,l=-1;if(void 0===e)try{for(var c=r.__values(t),f=c.next();!f.done;f=c.next()){var d=f.value;++l,null!=d&&(s=d)&&(s=d,u=l)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}else try{for(var h=r.__values(t),p=h.next();!p.done;p=h.next())null!=(d=e(d=p.value,++l,t))&&(s=d)&&(s=d,u=l)}catch(t){o={error:t}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return u}function Y(t,e){var n,i,o,a,s,u=-1,l=-1;if(void 0===e)try{for(var c=r.__values(t),f=c.next();!f.done;f=c.next()){var d=f.value;++l,null!=d&&(s>d||void 0===s&&d>=d)&&(s=d,u=l)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}else try{for(var h=r.__values(t),p=h.next();!p.done;p=h.next())null!=(d=e(d=p.value,++l,t))&&(s>d||void 0===s&&d>=d)&&(s=d,u=l)}catch(t){o={error:t}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return u}function W(t,e){return[t,e]}function X(t,n){var i,o,a;if(void 0===n&&(n=e),1===n.length)return Y(t,n);var s=-1,u=-1;try{for(var l=r.__values(t),c=l.next();!c.done;c=l.next()){var f=c.value;++u,(s<0?0===n(f,f):n(f,a)<0)&&(a=f,s=u)}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return s}var K=Z(Math.random);function Z(t){return function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var i=r-(n=+n);i;){var o=t()*i--|0,a=e[i+n];e[i+n]=e[o+n],e[o+n]=a}return e}}function Q(t){if(!(i=t.length))return[];for(var e=-1,n=V(t,J),r=new Array(n);++et?1:e>=t?0:NaN},t.deviation=v,t.difference=function(t){for(var e,n,i,o,a=[],s=1;s0:0===e(p,p))&&(u=h,c=p,l=!0)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}else try{for(var v=r.__values(t),g=v.next();!g.done;g=v.next())p=g.value,(l?n(p,u)>0:0===n(p,p))&&(u=p,l=!0)}catch(t){a={error:t}}finally{try{g&&!g.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}return u},t.greatestIndex=function(t,n){var i,o,a;if(void 0===n&&(n=e),1===n.length)return U(t,n);var s=-1,u=-1;try{for(var l=r.__values(t),c=l.next();!c.done;c=l.next()){var f=c.value;++u,(s<0?0===n(f,f):n(f,a)>0)&&(a=f,s=u)}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return s},t.group=O,t.groupSort=function(t,n,i){return(1===n.length?T(k(t,n,i),(function(t,n){var i=r.__read(t,2),o=i[0],a=i[1],s=r.__read(n,2),u=s[0];return e(a,s[1])||e(o,u)})):T(O(t,i),(function(t,i){var o=r.__read(t,2),a=o[0],s=o[1],u=r.__read(i,2),l=u[0],c=u[1];return n(s,c)||e(a,l)}))).map((function(t){return r.__read(t,1)[0]}))},t.groups=function(t){for(var e=[],n=1;n=p&&(++s,u+=p)}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}else{var f=-1;try{for(var d=r.__values(t),h=d.next();!h.done;h=d.next()){var p;null!=(p=e(p=h.value,++f,t))&&(p=+p)>=p&&(++s,u+=p)}}catch(t){o={error:t}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}}if(s)return u/s},t.median=function(t,e){return G(t,.5,e)},t.merge=function(t){return Array.from(function(t){var e,n,i,o,a,s;return r.__generator(this,(function(u){switch(u.label){case 0:u.trys.push([0,5,6,7]),e=r.__values(t),n=e.next(),u.label=1;case 1:return n.done?[3,4]:(i=n.value,[5,r.__values(i)]);case 2:u.sent(),u.label=3;case 3:return n=e.next(),[3,1];case 4:return[3,7];case 5:return o=u.sent(),a={error:o},[3,7];case 6:try{n&&!n.done&&(s=e.return)&&s.call(e)}finally{if(a)throw a.error}return[7];case 7:return[2]}}))}(t))},t.min=V,t.minIndex=Y,t.nice=B,t.pairs=function(t,e){var n,i;void 0===e&&(e=W);var o,a=[],s=!1;try{for(var u=r.__values(t),l=u.next();!l.done;l=u.next()){var c=l.value;s&&a.push(e(o,c)),o=c,s=!0}}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return a},t.permute=M,t.quantile=G,t.quantileSorted=function(t,e,n){if(void 0===n&&(n=i),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,a=Math.floor(o),s=+n(t[a],a,t);return s+(+n(t[a+1],a+1,t)-s)*(o-a)}},t.quickselect=q,t.range=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)),o=new Array(i);++r=I?i*=10:o>=N?i*=5:o>=D&&(i*=2),e=u.length)return null!=t&&r.sort(t),null!=e?e(r):r;for(var s,l,f,d=-1,h=r.length,p=u[i++],v=n(),g=o();++du.length)return n;var i,o=l[r-1];return null!=e&&r>=u.length?i=n.entries():(i=[],n.each((function(e,n){i.push({key:n,values:t(e,r)})}))),null!=o?i.sort((function(t,e){return o(t.key,e.key)})):i}(c(t,0,o,a),0)},key:function(t){return u.push(t),s},sortKeys:function(t){return l[u.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=l,t.map=n,t.keys=function(t){var e=[];for(var n in t)e.push(n);return e},t.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},t.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-composite-projections@1.4.0@d3-composite-projections/d3-composite-projections.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/_d3-composite-projections@1.4.0@d3-composite-projections/d3-composite-projections.js ***! \***********************************************************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js");!function(t,e,n){"use strict";var i=1e-6;function o(){}var a=1/0,s=a,u=-a,l=u,c={point:function(t,e){tu&&(u=t),el&&(l=e)},lineStart:o,lineEnd:o,polygonStart:o,polygonEnd:o,result:function(){var t=[[a,s],[u,l]];return u=l=-(s=a=1/0),t}};function f(t,n,r){var i=n[1][0]-n[0][0],o=n[1][1]-n[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=a&&t.clipExtent(null),e.geoStream(r,t.stream(c));var s=c.result(),u=Math.min(i/(s[1][0]-s[0][0]),o/(s[1][1]-s[0][1])),l=+n[0][0]+(i-u*(s[1][0]+s[0][0]))/2,f=+n[0][1]+(o-u*(s[1][1]+s[0][1]))/2;return null!=a&&t.clipExtent(a),t.scale(150*u).translate([l,f])}function d(t,e,n){return f(t,[[0,0],e],n)}t.geoAlbersUk=function(){var t,r,o,a,s,u=e.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),l=e.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),c={point:function(t,e){s=[t,e]}};function h(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function p(){return t=r=null,h}return h.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.089&&i<.06&&r>=.029&&r<.046?l:u).invert(t)},h.stream=function(e){return t&&r===e?t:(n=[u.stream(r=e),l.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r=.12&&i<.234&&r>=-.425&&r<-.214?c:i>=.166&&i<.234&&r>=-.214&&r<-.115?h:l).invert(t)},v.stream=function(e){return t&&r===e?t:(n=[l.stream(r=e),c.stream(e),h.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r=.12&&i<.234&&r>=-.425&&r<-.214?v:i>=.166&&i<.234&&r>=-.214&&r<-.115?g:i>=.2064&&i<.2413&&r>=.312&&r<.385?m:i>=.09&&i<.1197&&r>=-.4243&&r<-.3232?y:i>=-.0518&&i<.0895&&r>=-.4243&&r<-.3824?_:p).invert(t)},x.stream=function(e){return t&&r===e?t:(n=[p.stream(r=e),v.stream(e),g.stream(e),m.stream(e),y.stream(e),_.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r=-.31&&i<-.24&&r>=.14&&r<.24?x:i>=-.24&&i<-.17&&r>=.14&&r<.24?w:i>=-.17&&i<-.12&&r>=.21&&r<.24?S:i>=-.17&&i<-.14&&r>=.14&&r<.165?O:i>=-.17&&i<-.1&&r>=.14&&r<.24?j:i>=-.1&&i<-.03&&r>=.14&&r<.24?k:i>=-.03&&i<.04&&r>=.14&&r<.24?E:i>=-.31&&i<-.24&&r>=.24&&r<.34?C:i>=-.24&&i<-.17&&r>=.24&&r<.34?M:i>=-.17&&i<-.1&&r>=.24&&r<.34?T:i>=-.1&&i<-.03&&r>=.24&&r<.34?P:b).invert(t)},I.stream=function(e){return t&&r===e?t:(n=[b.stream(r=e),w.stream(e),C.stream(e),x.stream(e),E.stream(e),k.stream(e),M.stream(e),T.stream(e),P.stream(e),j.stream(e),S.stream(e),O.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r=.029&&i<.0864&&r>=-.14&&r<-.0996?x:i>=0&&i<.029&&r>=-.14&&r<-.0996?w:i>=-.032&&i<0&&r>=-.14&&r<-.0996?j:i>=-.052&&i<-.032&&r>=-.14&&r<-.0996?S:i>=-.076&&i<.052&&r>=-.14&&r<-.0996?O:i>=-.076&&i<-.052&&r>=.0967&&r<.1371?k:i>=-.052&&i<-.02&&r>=.0967&&r<.1371?E:i>=-.02&&i<.012&&r>=.0967&&r<.1371?C:i>=.012&&i<.033&&r>=.0967&&r<.1371?M:i>=.033&&i<.0864&&r>=.0967&&r<.1371?T:b).invert(t)},I.stream=function(e){return t&&r===e?t:(n=[b.stream(r=e),x.stream(e),w.stream(e),j.stream(e),S.stream(e),O.stream(e),k.stream(e),E.stream(e),C.stream(e),M.stream(e),T.stream(e),P.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r=-.0067&&i<.0015&&r>=-.0232&&r<-.0154?h:i>=-.022&&i<-.014&&r>=-.023&&r<-.014?p:c).invert(t)},g.stream=function(e){return t&&o===e?t:(n=[c.stream(o=e),h.stream(e),p.stream(e)],r=n.length,t={point:function(t,e){for(var i=-1;++i=.0093&&i<.03678&&r>=-.03875&&r<-.0116?c:i>=-.0412&&i<.0091&&r>=-.07782&&r<-.01166?h:l).invert(t)},v.stream=function(e){return t&&r===e?t:(n=[l.stream(r=e),c.stream(e),h.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r=.05346&&i<.0897&&r>=-.13388&&r<-.0322?l:u).invert(t)},h.stream=function(e){return t&&r===e?t:(n=[u.stream(r=e),l.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r=-.10925&&i<-.02701&&r>=-.135&&r<-.0397?c:i>=.04713&&i<.11138&&r>=-.03986&&r<.051?h:l).invert(t)},v.stream=function(e){return t&&r===e?t:(n=[l.stream(r=e),c.stream(e),h.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r=-.0676&&i<-.026&&r>=-.0857&&r<-.0263?l:u).invert(t)},h.stream=function(e){return t&&r===e?t:(n=[u.stream(r=e),l.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r=-.02&&i<0&&r>=-.038&&r<-.005?c:i>=0&&i<.02&&r>=-.038&&r<-.005?h:l).invert(t)},v.stream=function(e){return t&&r===e?t:(n=[l.stream(r=e),c.stream(e),h.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r=-.0521&&i<.0229&&r>=-.0111&&r<.1?l:u).invert(t)},h.stream=function(e){return t&&r===e?t:(n=[u.stream(r=e),l.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r=.2582&&i<.32&&r>=-.1036&&r<-.087?h:i>=-.01298&&i<.0133&&r>=-.11396&&r<-.05944?p:i>=.01539&&i<.03911&&r>=-.089&&r<-.0588?v:c).invert(t)},m.stream=function(e){return t&&r===e?t:(n=[c.stream(r=e),h.stream(e),p.stream(e),v.stream(e)],i=n.length,t={point:function(t,e){for(var r=-1;++r9999?"+"+o(e,6):o(e,4))+"-"+o(t.getUTCMonth()+1,2)+"-"+o(t.getUTCDate(),2)+(a?"T"+o(n,2)+":"+o(r,2)+":"+o(i,2)+"."+o(a,3)+"Z":i?"T"+o(n,2)+":"+o(r,2)+":"+o(i,2)+"Z":r||n?"T"+o(n,2)+":"+o(r,2)+"Z":"")}function s(t){var o=new RegExp('["'+t+"\n\r]"),s=t.charCodeAt(0);function u(t,r){var i,o=[],a=t.length,u=0,l=0,c=a<=0,f=!1;function d(){if(c)return n;if(f)return f=!1,e;var r,i,o=u;if(34===t.charCodeAt(o)){for(;u++=a?c=!0:10===(i=t.charCodeAt(u++))?f=!0:13===i&&(f=!0,10===t.charCodeAt(u)&&++u),t.slice(o+1,r-1).replace(/""/g,'"')}for(;u0?1:t<0?-1:0},v=Math.sin,g=Math.tan,m=1e-6,y=Math.PI,_=y/2,b=y/4,x=Math.SQRT1_2,w=M(2),j=M(y),S=2*y,O=180/y,k=y/180;function E(t){return t>1?_:t<-1?-_:Math.asin(t)}function C(t){return t>1?0:t<-1?y:Math.acos(t)}function M(t){return t>0?Math.sqrt(t):0}function T(t){return(s(t)-s(-t))/2}function P(t){return(s(t)+s(-t))/2}function A(t){var e=g(t/2),n=2*l(a(t/2))/(e*e);function i(t,e){var r=a(t),i=a(e),o=v(e),s=i*r,u=-((1-s?l((1+s)/2)/(1-s):-.5)+n/(1+s));return[u*i*v(t),u*o]}return i.invert=function(e,i){var s,u=M(e*e+i*i),c=-t/2,f=50;if(!u)return[0,0];do{var d=c/2,h=a(d),p=v(d),y=g(d),_=l(1/h);c-=s=(2/y*_-n*y-u)/(-_/(p*p)+1-n/(2*h*h))}while(r(s)>m&&--f>0);var b=v(c);return[o(e*b,u*a(c)),E(i*b/u)]},i}function I(t,e){var n=a(e),r=function(t){return t?t/Math.sin(t):1}(C(n*a(t/=2)));return[2*n*v(t)*r,v(e)*r]}function N(t){var e=v(t),n=a(t),i=t>=0?1:-1,s=g(i*t),u=(1+e-n)/2;function l(t,r){var l=a(r),c=a(t/=2);return[(1+l)*v(t),(i*r>-o(c,s)-.001?0:10*-i)+u+v(r)*n-(1+l)*e*c]}return l.invert=function(t,l){var c=0,f=0,d=50;do{var h=a(c),p=v(c),g=a(f),y=v(f),_=1+g,b=_*p-t,x=u+y*n-_*e*h-l,w=_*h/2,j=-p*y,S=e*_*p/2,O=n*g+e*h*y,k=j*S-O*w,E=(x*j-b*O)/k/2,C=(b*S-x*w)/k;c-=E,f-=C}while((r(E)>m||r(C)>m)&&--d>0);return i*f>-o(a(c),s)-.001?[2*c,f]:null},l}function D(t,e){var n=g(e/2),r=M(1-n*n),i=1+r*a(t/=2),o=v(t)*r/i,s=n/i,u=o*o,l=s*s;return[4/3*o*(3+u-3*l),4/3*s*(3+3*u-l)]}I.invert=function(t,e){if(!(t*t+4*e*e>y*y+m)){var n=t,i=e,o=25;do{var s,u=v(n),l=v(n/2),c=a(n/2),f=v(i),d=a(i),h=v(2*i),p=f*f,g=d*d,_=l*l,b=1-g*c*c,x=b?C(d*c)*M(s=1/b):s=0,w=2*x*d*l-t,j=x*f-e,S=s*(g*_+x*d*c*p),O=s*(.5*u*h-2*x*f*l),k=.25*s*(h*l-x*f*g*u),E=s*(p*c+x*_*d),T=O*k-E*S;if(!T)break;var P=(j*O-w*E)/T,A=(w*k-j*S)/T;n-=P,i-=A}while((r(P)>m||r(A)>m)&&--o>0);return[n,i]}},D.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&r(e)>1)return null;var n=1+t*t+e*e,i=M((n-M(n*n-4*e*e))/2),s=E(i)/3,u=i?function(t){return l(t+M(t*t-1))}(r(e/i))/3:function(t){return l(t+M(t*t+1))}(r(t))/3,c=a(s),f=P(u),d=f*f-c*c;return[2*p(t)*o(T(u)*c,.25-d),2*p(e)*o(f*v(s),.25+d)]};var R=M(8),L=l(1+w);function B(t,e){var n=r(e);return n_){var u=o(s[1],s[0]),l=M(s[0]*s[0]+s[1]*s[1]),c=n*h((u-_)/n)+_,f=o(v(u-=c),2-a(u));u=c+E(y/l*v(f))-f,s[0]=l*a(u),s[1]=l*v(u)}return s}return s.invert=function(t,r){var s=M(t*t+r*r);if(s>_){var u=o(r,t),l=n*h((u-_)/n)+_,c=u>l?-1:1,f=s*a(l-u),d=1/g(c*C((f-y)/M(y*(y-2*f)+s*s)));u=l+2*i((d+c*M(d*d-3))/3),t=s*a(u),r=s*v(u)}return e.geoAzimuthalEquidistantRaw.invert(t,r)},s}function F(t,e){var n,i=t*v(e),o=30;do{e-=n=(e+v(e)-i)/(1+a(e))}while(r(n)>m&&--o>0);return e/2}function z(t,e,n){function r(r,i){return[t*r*a(i=F(n,i)),e*v(i)]}return r.invert=function(r,i){return i=E(i/e),[r/(t*a(i)),E((2*i+v(2*i))/n)]},r}B.invert=function(t,e){if((o=r(e))1e-12&&--c>0);return[t/(a(u)*(R-1/v(u))),p(e)*u]};var V=z(w/_,w,y),q=2.00276,H=1.11072;function G(t,e){var n=F(y,e);return[q*t/(1/a(e)+H/a(n)),(e+w*v(n))/q]}G.invert=function(t,e){var n,i,o=q*e,s=e<0?-b:b,u=25;do{i=o-w*v(s),s-=n=(v(2*s)+2*s-y*v(i))/(2*a(2*s)+2+y*a(i)*w*a(s))}while(r(n)>m&&--u>0);return i=o-w*v(s),[t*(1/a(i)+H/a(s))/q,i]};var U=function(t){var n=0,r=e.geoProjectionMutator(t),i=r(n);return i.parallel=function(t){return arguments.length?r(n=t*k):n*O},i};function Y(t,e){return[t*a(e),e]}function W(t){if(!t)return Y;var e=1/g(t);function n(n,r){var i=e+t-r,o=i?n*a(r)/i:i;return[i*v(o),e-i*a(o)]}return n.invert=function(n,r){var i=M(n*n+(r=e-r)*r),s=e+t-i;return[i/a(s)*o(n,r),s]},n}function X(t){function e(e,n){var r=_-n,i=r?e*t*v(r)/r:r;return[r*v(i)/t,_-r*a(i)]}return e.invert=function(e,n){var r=e*t,i=_-n,a=M(r*r+i*i),s=o(r,i);return[(a?a/v(a):1)*s/t,_-a]},e}Y.invert=function(t,e){return[t/a(e),e]};var K=z(1,4/y,y);function Z(t,e,n,i,s,u){var l,c=a(u);if(r(t)>1||r(u)>1)l=C(n*s+e*i*c);else{var f=v(t/2),d=v(u/2);l=2*E(M(f*f+e*i*d*d))}return r(l)>m?[l,o(i*v(u),e*s-n*i*c)]:[0,0]}function Q(t,e,n){return C((t*t+e*e-n*n)/(2*t*e))}function J(t){return t-2*y*u((t+y)/(2*y))}function tt(t,e,n){for(var r,i=[[t[0],t[1],v(t[1]),a(t[1])],[e[0],e[1],v(e[1]),a(e[1])],[n[0],n[1],v(n[1]),a(n[1])]],o=i[2],s=0;s<3;++s,o=r)r=i[s],o.v=Z(r[1]-o[1],o[3],o[2],r[3],r[2],r[0]-o[0]),o.point=[0,0];var u=Q(i[0].v[0],i[2].v[0],i[1].v[0]),l=Q(i[0].v[0],i[1].v[0],i[2].v[0]),c=y-u;i[2].point[1]=0,i[0].point[0]=-(i[1].point[0]=i[0].v[0]/2);var f=[i[2].point[0]=i[0].point[0]+i[2].v[0]*a(u),2*(i[0].point[1]=i[1].point[1]=i[2].v[0]*v(u))];return function(t,e){var n,r=v(e),o=a(e),s=new Array(3);for(n=0;n<3;++n){var u=i[n];if(s[n]=Z(e-u[1],u[3],u[2],o,r,t-u[0]),!s[n][0])return u.point;s[n][1]=J(s[n][1]-u.v[1])}var d=f.slice();for(n=0;n<3;++n){var h=2==n?0:n+1,p=Q(i[n].v[0],s[n][0],s[h][0]);s[n][1]<0&&(p=-p),n?1==n?(p=l-p,d[0]-=s[n][0]*a(p),d[1]-=s[n][0]*v(p)):(p=c-p,d[0]+=s[n][0]*a(p),d[1]+=s[n][0]*v(p)):(d[0]+=s[n][0]*a(p),d[1]-=s[n][0]*v(p))}return d[0]/=3,d[1]/=3,d}}function et(t){return t[0]*=k,t[1]*=k,t}function nt(t,n,r){var i=e.geoCentroid({type:"MultiPoint",coordinates:[t,n,r]}),o=[-i[0],-i[1]],a=e.geoRotation(o),s=e.geoProjection(tt(et(a(t)),et(a(n)),et(a(r)))).rotate(o),u=s.center;return delete s.rotate,s.center=function(t){return arguments.length?u(a(t)):a.invert(u())},s.clipAngle(90)}function rt(t,e){var n=M(1-v(e));return[2/j*t*n,j*(1-n)]}function it(t){var e=g(t);function n(t,n){return[t,(t?t/v(t):1)*(v(n)*a(t)-e*a(n))]}return n.invert=e?function(t,n){t&&(n*=v(t)/t);var r=a(t);return[t,2*o(M(r*r+e*e-n*n)-r,e-n)]}:function(t,e){return[t,E(t?e*g(t)/t:e)]},n}rt.invert=function(t,e){var n=(n=e/j-1)*n;return[n>0?t*M(y/n)/2:0,E(1-n)]};var ot=M(3);function at(t,e){return[ot*t*(2*a(2*e/3)-1)/j,ot*j*v(e/3)]}function st(t){var e=a(t);function n(t,n){return[t*e,v(n)/e]}return n.invert=function(t,n){return[t/e,E(n*e)]},n}function ut(t){var e=a(t);function n(t,n){return[t*e,(1+e)*g(n/2)]}return n.invert=function(t,n){return[t/e,2*i(n/(1+e))]},n}function lt(t,e){var n=M(8/(3*y));return[n*t*(1-r(e)/y),n*e]}function ct(t,e){var n=M(4-3*v(r(e)));return[2/M(6*y)*t*n,p(e)*M(2*y/3)*(2-n)]}function ft(t,e){var n=M(y*(4+y));return[2/n*t*(1+M(1-4*e*e/(y*y))),4/n*e]}function dt(t,e){var n=(2+_)*v(e);e/=2;for(var i=0,o=1/0;i<10&&r(o)>m;i++){var s=a(e);e-=o=(e+v(e)*(s+2)-n)/(2*s*(1+s))}return[2/M(y*(4+y))*t*(1+a(e)),2*M(y/(4+y))*v(e)]}function ht(t,e){return[t*(1+a(e))/M(2+y),2*e/M(2+y)]}function pt(t,e){for(var n=(1+_)*v(e),i=0,o=1/0;i<10&&r(o)>m;i++)e-=o=(e+v(e)-n)/(1+a(e));return n=M(2+y),[t*(1+a(e))/n,2*e/n]}at.invert=function(t,e){var n=3*E(e/(ot*j));return[j*t/(ot*(2*a(2*n/3)-1)),n]},lt.invert=function(t,e){var n=M(8/(3*y)),i=e/n;return[t/(n*(1-r(i)/y)),i]},ct.invert=function(t,e){var n=2-r(e)/M(2*y/3);return[t*M(6*y)/(2*n),p(e)*E((4-n*n)/3)]},ft.invert=function(t,e){var n=M(y*(4+y))/2;return[t*n/(1+M(1-e*e*(4+y)/(4*y))),e*n/2]},dt.invert=function(t,e){var n=e*M((4+y)/y)/2,r=E(n),i=a(r);return[t/(2/M(y*(4+y))*(1+i)),E((r+n*(i+2))/(2+_))]},ht.invert=function(t,e){var n=M(2+y),r=e*n/2;return[n*t/(1+a(r)),r]},pt.invert=function(t,e){var n=1+_,r=M(n/2);return[2*t*r/(1+a(e*=r)),E((e+v(e))/n)]};var vt=3+2*w;function gt(t,e){var n=v(t/=2),r=a(t),o=M(a(e)),s=a(e/=2),u=v(e)/(s+w*r*o),c=M(2/(1+u*u)),f=M((w*s+(r+n)*o)/(w*s+(r-n)*o));return[vt*(c*(f-1/f)-2*l(f)),vt*(c*u*(f+1/f)-2*i(u))]}gt.invert=function(t,e){if(!(n=D.invert(t/1.2,1.065*e)))return null;var n,o=n[0],s=n[1],u=20;t/=vt,e/=vt;do{var d=o/2,h=s/2,p=v(d),g=a(d),y=v(h),b=a(h),j=a(s),S=M(j),O=y/(b+w*g*S),k=O*O,E=M(2/(1+k)),C=(w*b+(g+p)*S)/(w*b+(g-p)*S),T=M(C),P=T-1/T,A=T+1/T,I=E*P-2*l(T)-t,N=E*O*A-2*i(O)-e,R=y&&x*S*p*k/y,L=(w*g*b+S)/(2*(b+w*g*S)*(b+w*g*S)*S),B=-.5*O*E*E*E,$=B*R,F=B*L,z=(z=2*b+w*S*(g-p))*z*T,V=(w*g*b*S+j)/z,q=-w*p*y/(S*z),H=P*$-2*V/T+E*(V+V/C),G=P*F-2*q/T+E*(q+q/C),U=O*A*$-2*R/(1+k)+E*A*R+E*O*(V-V/C),Y=O*A*F-2*L/(1+k)+E*A*L+E*O*(q-q/C),W=G*U-Y*H;if(!W)break;var X=(N*G-I*Y)/W,K=(I*U-N*H)/W;o-=X,s=c(-_,f(_,s-K))}while((r(X)>m||r(K)>m)&&--u>0);return r(r(s)-_)s){var p=M(d),g=o(f,c),b=i*h(g/i),x=g-b,w=t*a(x),j=(t*v(x)-x*v(w))/(_-w),S=jt(x,j),O=(y-t)/St(S,w,y);c=p;var k,E=50;do{c-=k=(t+St(S,w,c)*O-p)/(S(c)*O)}while(r(k)>m&&--E>0);f=x*v(c),c<_&&(f-=j*(c-_));var C=v(b),T=a(b);l[0]=c*T-f*C,l[1]=c*C+f*T}return l}return u.invert=function(n,u){var l=n*n+u*u;if(l>s){var c=M(l),f=o(u,n),d=i*h(f/i),p=f-d;n=c*a(p),u=c*v(p);for(var g=n-_,m=v(n),b=u/m,x=n<_?1/0:0,w=10;;){var j=t*v(b),S=t*a(b),O=v(S),k=_-S,E=(j-b*O)/k,C=jt(b,E);if(r(x)<1e-12||!--w)break;b-=x=(b*m-E*g-u)/(m-2*g*(k*(S+b*j*a(S)-O)-j*(j-b*O))/(k*k))}n=(c=t+St(C,S,n)*(y-t)/St(C,S,y))*a(f=d+b),u=c*v(f)}return e.geoAzimuthalEquidistantRaw.invert(n,u)},u}function jt(t,e){return function(n){var r=t*a(n);return n<_&&(r-=e),M(1+r*r)}}function St(t,e,n){for(var r=(n-e)/50,i=t(e)+t(n),o=1,a=e;o<50;++o)i+=2*t(a+=r);return.5*i*r}yt.invert=function(t,e){var n=e/(1+mt);return[t&&t/(mt*M(1-n*n)),2*i(n)]},_t.invert=function(t,e){var n=i(e/j),r=a(n),o=2*n;return[t*j/2/(a(o)*r*r),o]};var Ot=function(t,e,n,i,o,s,u,l){function c(r,c){if(!c)return[t*r/y,0];var f=c*c,d=t+f*(e+f*(n+f*i)),h=c*(o-1+f*(s-l+f*u)),p=(d*d+h*h)/(2*h),g=r*E(d/p)/y;return[p*v(g),c*(1+f*l)+p*(1-a(g))]}return arguments.length<8&&(l=0),c.invert=function(c,f){var d,h,p=y*c/t,g=f,_=50;do{var b=g*g,x=t+b*(e+b*(n+b*i)),w=g*(o-1+b*(s-l+b*u)),j=x*x+w*w,S=2*w,O=j/S,k=O*O,C=E(x/O)/y,T=p*C,P=x*x,A=(2*e+b*(4*n+6*b*i))*g,I=o+b*(3*s+5*b*u),N=(2*(x*A+w*(I-1))*S-j*(2*(I-1)))/(S*S),D=a(T),R=v(T),L=O*D,B=O*R,$=p/y*(1/M(1-P/k))*(A*O-x*N)/k,F=B-c,z=g*(1+b*l)+O-L-f,V=N*R+L*$,q=L*C,H=1+N-(N*D-B*$),G=B*C,U=V*G-H*q;if(!U)break;p-=d=(z*V-F*H)/U,g-=h=(F*G-z*q)/U}while((r(d)>m||r(h)>m)&&--_>0);return[p,g]},c},kt=Ot(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),Et=Ot(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),Ct=Ot(5/6*y,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Mt(t,e){var n=t*t,r=e*e;return[t*(1-.162388*r)*(.87-952426e-9*n*n),e*(1+r/12)]}Mt.invert=function(t,e){var n,i=t,o=e,a=50;do{var s=o*o;o-=n=(o*(1+s/12)-e)/(1+s/4)}while(r(n)>m&&--a>0);a=50,t/=1-.162388*s;do{var u=(u=i*i)*u;i-=n=(i*(.87-952426e-9*u)-t)/(.87-.00476213*u)}while(r(n)>m&&--a>0);return[i,o]};var Tt=Ot(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762),Pt=function(t){var e=t(_,0)[0]-t(-_,0)[0];function n(n,r){var i=n>0?-.5:.5,o=t(n+i*y,r);return o[0]-=i*e,o}return t.invert&&(n.invert=function(n,r){var i=n>0?-.5:.5,o=t.invert(n+i*e,r),a=o[0]-i*y;return a<-y?a+=2*y:a>y&&(a-=2*y),o[0]=a,o}),n};function At(t,e){var n=p(t),i=p(e),s=a(e),u=a(t)*s,l=v(t)*s,c=v(i*e);t=r(o(l,c)),e=E(u),r(t-_)>m&&(t%=_);var f=function(t,e){if(e===_)return[0,0];var n,i,o=v(e),s=o*o,u=s*s,l=1+u,c=1+3*u,f=1-u,d=E(1/M(l)),h=f+s*l*d,p=(1-o)/h,g=M(p),b=p*l,x=M(b),w=g*f;if(0===t)return[0,-(w+s*x)];var j,S=a(e),O=1/S,k=2*o*S,C=(-h*S-(-3*s+d*c)*k*(1-o))/(h*h),T=-O*k,P=-O*(s*l*C+p*c*k),A=-2*O*(f*(.5*C/g)-2*s*g*k),I=4*t/y;if(t>.222*y||e.175*y){if(n=(w+s*M(b*(1+u)-w*w))/(1+u),t>y/4)return[n,n];var N=n,D=.5*n;n=.5*(D+N),i=50;do{var R=M(b-n*n),L=n*(A+T*R)+P*E(n/x)-I;if(!L)break;L<0?D=n:N=n,n=.5*(D+N)}while(r(N-D)>m&&--i>0)}else{n=m,i=25;do{var B=n*n,$=M(b-B),F=A+T*$,z=n*F+P*E(n/x)-I,V=F+(P-T*B)/$;n-=j=$?z/V:0}while(r(j)>m&&--i>0)}return[n,-w-s*M(b-n*n)]}(t>y/4?_-t:t,e);return t>y/4&&(c=f[0],f[0]=-f[1],f[1]=-c),f[0]*=n,f[1]*=-i,f}function It(t,e){var n,o,u,l,c,f;if(e=1-m)return n=(1-e)/4,u=1/(o=P(t)),[(l=((f=s(2*(f=t)))-1)/(f+1))+n*((c=o*T(t))-t)/(o*o),u-n*l*u*(c-t),u+n*l*u*(c+t),2*i(s(t))-_+n*(c-t)/o];var d=[1,0,0,0,0,0,0,0,0],h=[M(e),0,0,0,0,0,0,0,0],p=0;for(o=M(1-e),c=1;r(h[p]/d[p])>m&&p<8;)n=d[p++],h[p]=(n-o)/2,d[p]=(n+o)/2,o=M(n*o),c*=2;u=c*d[p]*t;do{u=(E(l=h[p]*v(o=u)/d[p])+u)/2}while(--p);return[v(u),l=a(u),l/a(u-o),u]}function Nt(t,e){if(!e)return t;if(1===e)return l(g(t/2+b));for(var n=1,o=M(1-e),a=M(e),s=0;r(a)>m;s++){if(t%y){var u=i(o*g(t)/n);u<0&&(u+=y),t+=u+~~(t/y)*y}else t+=t;a=(n+o)/2,o=M(n*o),a=((n=a)-o)/2}return t/(d(2,s)*n)}function Dt(t,e){var n=(w-1)/(w+1),u=M(1-n*n),c=Nt(_,u*u),f=l(g(y/4+r(e)/2)),d=s(-1*f)/M(n),h=function(t,e){var n=t*t,r=e+1,i=1-n-e*e;return[.5*((t>=0?_:-_)-o(i,2*t)),-.25*l(i*i+4*n)+.5*l(r*r+n)]}(d*a(-1*t),d*v(-1*t)),m=function(t,e,n){var o=r(t),a=T(r(e));if(o){var s=1/v(o),u=1/(g(o)*g(o)),l=-(u+n*(a*a*s*s)-1+n),c=(-l+M(l*l-(n-1)*u*4))/2;return[Nt(i(1/M(c)),n)*p(t),Nt(i(M((c/u-1)/n)),1-n)*p(e)]}return[0,Nt(i(a),1-n)*p(e)]}(h[0],h[1],u*u);return[-m[1],(e>=0?1:-1)*(.5*c-m[0])]}function Rt(t,n){if(arguments.length<2&&(n=t),1===n)return e.geoAzimuthalEqualAreaRaw;if(n===1/0)return Lt;function r(r,i){var o=e.geoAzimuthalEqualAreaRaw(r/n,i);return o[0]*=t,o}return r.invert=function(r,i){var o=e.geoAzimuthalEqualAreaRaw.invert(r/t,i);return o[0]*=n,o},r}function Lt(t,e){return[t*a(e)/a(e/=2),2*v(e)]}function Bt(t){var e=v(t),n=a(t),i=$t(t);function s(t,o){var s=i(t,o);t=s[0],o=s[1];var u=v(o),l=a(o),c=a(t),f=C(e*u+n*l*c),d=v(f),h=r(d)>m?f/d:1;return[h*n*v(t),(r(t)>_?h:-h)*(e*l-n*u*c)]}return i.invert=$t(-t),s.invert=function(t,n){var r=M(t*t+n*n),s=-v(r),u=a(r),l=r*u,c=-n*s,f=r*e,d=M(l*l+c*c-f*f),h=o(l*f+c*d,c*f-l*d),p=(r>_?-1:1)*o(t*s,r*a(h)*u+n*v(h)*s);return i.invert(p,h)},s}function $t(t){var e=v(t),n=a(t);return function(t,r){var i=a(r),s=a(t)*i,u=v(t)*i,l=v(r);return[o(u,s*n-l*e),E(l*n+s*e)]}}At.invert=function(t,e){r(t)>1&&(t=2*p(t)-t),r(e)>1&&(e=2*p(e)-e);var n=p(t),i=p(e),s=-n*t,u=-i*e,l=u/s<1,c=function(t,e){for(var n=0,i=1,o=.5,s=50;;){var u=o*o,l=M(o),c=E(1/M(1+u)),f=1-u+o*(1+u)*c,d=(1-l)/f,h=M(d),p=d*(1+u),v=h*(1-u),g=M(p-t*t),m=e+v+o*g;if(r(i-n)<1e-12||0==--s||0===m)break;m>0?n=o:i=o,o=.5*(n+i)}if(!s)return null;var _=E(l),b=a(_),x=1/b,w=2*l*b,j=(-f*b-(-3*o+c*(1+3*u))*w*(1-l))/(f*f);return[y/4*(t*(-2*x*(.5*j/h*(1-u)-2*o*h*w)+-x*w*g)+-x*(o*(1+u)*j+d*(1+3*u)*w)*E(t/M(p))),_]}(l?u:s,l?s:u),f=c[0],d=c[1],h=a(d);return l&&(f=-_-f),[n*(o(v(f)*h,-v(d))+y),i*E(a(f)*h)]},Dt.invert=function(t,e){var n,r,a,u,c,f,d=(w-1)/(w+1),h=M(1-d*d),p=Nt(_,h*h),v=(r=-t,a=h*h,(n=.5*p-e)?(u=It(n,a),r?(f=(c=It(r,1-a))[1]*c[1]+a*u[0]*u[0]*c[0]*c[0],[[u[0]*c[2]/f,u[1]*u[2]*c[0]*c[1]/f],[u[1]*c[1]/f,-u[0]*u[2]*c[0]*c[2]/f],[u[2]*c[1]*c[2]/f,-a*u[0]*u[1]*c[0]/f]]):[[u[0],0],[u[1],0],[u[2],0]]):[[0,(c=It(r,1-a))[0]/c[1]],[1/c[1],0],[c[2]/c[1],0]]),g=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]}(v[0],v[1]);return[o(g[1],g[0])/-1,2*i(s(-.5*l(d*g[0]*g[0]+d*g[1]*g[1])))-_]},Lt.invert=function(t,e){var n=2*E(e/2);return[t*a(n/2)/a(n),n]};var Ft=st(0);function zt(t){var e=(41+48/36+37/3600)*k,n=rt(y,e)[0]-rt(-y,e)[0],i=Ft(0,e)[1],o=rt(0,e)[1],a=j-o,s=S/t,l=4/S,d=i+a*a*4/S;function h(h,p){var v,g=r(p);if(g>e){var m=f(t-1,c(0,u((h+y)/s)));(v=rt(h+=y*(t-1)/t-m*s,g))[0]=v[0]*S/n-S*(t-1)/(2*t)+m*S/t,v[1]=i+4*(v[1]-o)*a/S,p<0&&(v[1]=-v[1])}else v=Ft(h,p);return v[0]*=l,v[1]/=d,v}return h.invert=function(e,h){e/=l;var p=r(h*=d);if(p>i){var v=f(t-1,c(0,u((e+y)/s)));e=(e+y*(t-1)/t-v*s)*n/S;var g=rt.invert(e,.25*(p-i)*S/a+o);return g[0]-=y*(t-1)/t-v*s,h<0&&(g[1]=-g[1]),g}return Ft.invert(e,h)},h}function Vt(t){var e,n=1+t,i=E(v(1/n)),s=2*M(y/(e=y+4*i*n)),u=.5*s*(n+M(t*(2+t))),l=t*t,c=n*n;function f(f,d){var h,p,g=1-v(d);if(g&&g<2){var m,b=_-d,x=25;do{var w=v(b),j=a(b),S=i+o(w,n-j),O=1+c-2*n*j;b-=m=(b-l*i-n*w+O*S-.5*g*e)/(2*n*w*S)}while(r(m)>1e-12&&--x>0);h=s*M(O),p=f*S/y}else h=s*(t+g),p=f*i/y;return[h*v(p),u-h*a(p)]}return f.invert=function(t,r){var a=t*t+(r-=u)*r,f=(1+c-a/(s*s))/(2*n),d=C(f),h=v(d),p=i+o(h,n-f);return[E(t/M(a))*y/p,E(1-2*(d-l*i-n*h+(1+c-2*n*f)*p)/e)]},f}function qt(t,e){return e>-.7109889596207567?((t=V(t,e))[1]+=.0528035274542,t):Y(t,e)}function Ht(t,e){return r(e)>.7109889596207567?((t=V(t,e))[1]-=e>0?.0528035274542:-.0528035274542,t):Y(t,e)}function Gt(t,e){return r(t[0]-e[0])-.7109889596207567?V.invert(t,e-.0528035274542):Y.invert(t,e)},Ht.invert=function(t,e){return r(e)>.7109889596207567?V.invert(t,e+(e>0?.0528035274542:-.0528035274542)):Y.invert(t,e)};var Yt=function(t,r){var i=function(t){var e,r,i,o,a,s,u,l=[],c=t[0].length;for(u=0;u=0;--u)r=(e=t[1][u])[0][0],i=e[0][1],o=e[1][1],a=e[2][0],s=e[2][1],l.push(Ut([[a-m,s-m],[a-m,o+m],[r+m,o+m],[r+m,i-m]],30));return{type:"Polygon",coordinates:[n.merge(l)]}}(r),o=(r=r.map((function(t){return t.map((function(t){return[[t[0][0]*k,t[0][1]*k],[t[1][0]*k,t[1][1]*k],[t[2][0]*k,t[2][1]*k]]}))}))).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],o=t(e[1][0],e[0][1])[1],a=t(e[1][0],e[1][1])[1];return o>a&&(n=o,o=a,a=n),[[r,o],[i,a]]}))}));function a(e,n){for(var i=n<0?-1:1,o=r[+(n<0)],a=0,s=o.length-1;ao[a][2][0];++a);var u=t(e-o[a][1][0],n);return u[0]+=t(o[a][1][0],i*n>i*o[a][0][1]?o[a][0][1]:n)[0],u}t.invert&&(a.invert=function(e,n){for(var i=o[+(n<0)],s=r[+(n<0)],u=0,l=i.length;u2)return null;var a=(e/=2)*e,s=(n/=2)*n,u=2*n/(1+a+s);return u=d((1+u)/(1-u),1/t),[o(2*e,1-a-s)/t,E((u-1)/(u+1))]},e}te.invert=function(t,e){return[S/3*t/M(y*y/3-e*e),e]};var ne=y/w;function re(t,e){return[t*(1+M(a(e)))/2,e/(a(e/2)*a(t/6))]}function ie(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))]}function oe(t,e){return[v(t)/a(e),g(e)*a(t)]}function ae(t){var e=a(t),n=g(b+t/2);function i(i,o){var a=o-t,s=r(a)=0;)d=(f=t[c])[0]+u*(i=d)-l*h,h=f[1]+u*h+l*i;return[d=u*(i=d)-l*h,h=u*h+l*i]}return n.invert=function(n,s){var u=20,l=n,c=s;do{for(var f,d=e,h=t[d],p=h[0],g=h[1],m=0,y=0;--d>=0;)m=p+l*(f=m)-c*y,y=g+l*y+c*f,p=(h=t[d])[0]+l*(f=p)-c*g,g=h[1]+l*g+c*f;var _,b,x=(m=p+l*(f=m)-c*y)*m+(y=g+l*y+c*f)*y;l-=_=((p=l*(f=p)-c*g-n)*m+(g=l*g+c*f-s)*y)/x,c-=b=(g*m-p*y)/x}while(r(_)+r(b)>1e-12&&--u>0);if(u){var w=M(l*l+c*c),j=2*i(.5*w),S=v(j);return[o(l*S,w*a(j)),w?E(c*S/w):0]}},n}re.invert=function(t,e){var n=r(t),i=r(e),o=m,s=_;im||r(b)>m)&&--o>0);return o&&[n,i]},oe.invert=function(t,e){var n=t*t,r=e*e,i=r+1,o=t?x*M((i-M(n*n+2*n*(r-1)+i*i))/n+1):1/M(i);return[E(t*o),p(e)*C(o)]},se.invert=function(t,e){return[t,2.5*i(s(.8*e))-.625*y]};var le=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],ce=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],fe=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],de=[[.9245,0],[0,0],[.01943,0]],he=[[.721316,0],[0,0],[-.00881625,-.00617325]];function pe(t,n){var r=e.geoProjection(ue(t)).rotate(n).clipAngle(90),i=e.geoRotation(n),o=r.center;return delete r.rotate,r.center=function(t){return arguments.length?o(i(t)):i.invert(o())},r}var ve=M(6),ge=M(7);function me(t,e){var n=E(7*v(e)/(3*ve));return[ve*t*(2*a(2*n/3)-1)/ge,9*v(n/3)/ge]}function ye(t,e){for(var n,i=(1+x)*v(e),o=e,s=0;s<25&&(o-=n=(v(o/2)+v(o)-i)/(.5*a(o/2)+a(o)),!(r(n)m&&--o>0);return[t/(.8707+(a=i*i)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),i]},xe.invert=function(t,e){var n,i,o,a,s=e,u=25;do{s-=n=(s*(1.01183+(o=(i=s*s)*i)*o*(.01926*i-.02625-.00396*o))-e)/(1.01183+o*o*(.21186*i-.23625+-.05148*o))}while(r(n)>1e-12&&--u>0);return[t/(.84719-.13063*(i=s*s)+(a=i*(o=i*i))*a*(.05494*i-.04515-.02326*o+.00331*a)),s]},we.invert=function(t,e){for(var n=e/2,i=0,o=1/0;i<10&&r(o)>m;++i){var s=a(e/2);e-=o=(e-g(e/2)-n)/(1-.5/(s*s))}return[2*t/(1+a(e)),e]},je.invert=function(t,e){e>1.790857183?e=1.790857183:e<-1.790857183&&(e=-1.790857183);var n,i=e;do{var o=i*i;i-=n=(i*(1.0148+o*o*(.23185+o*(.02406*o-.14499)))-e)/(1.0148+o*o*(5*.23185+o*(.21654*o-1.01493)))}while(r(n)>m);return[t,i]},Se.invert=function(t,e){if(r(e)m&&--s>0);return u=g(o),[(r(e)=0;)if(r=e[s],n[0]===r[0]&&n[1]===r[1]){if(o)return[o,n];o=n}}}(e.face,n.face),i=Oe(r.map(n.project),r.map(e.project));e.transform=n.transform?ke(n.transform,i):i;for(var o=n.edges,a=0,s=o.length;ar^h>r&&n<(d-l)*(r-c)/(h-c)+l&&(i=!i)}return i}(t[0],n))return t.push(e),!0}))||t.push([e])})),He=[],t.length?t.length>1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}},We=function(t){var n=t(_,0)[0]-t(-_,0)[0];function i(e,i){var o=r(e)<_,a=t(o?e:e>0?e-y:e+y,i),s=(a[0]-a[1])*x,u=(a[0]+a[1])*x;if(o)return[s,u];var l=n*x,c=s>0^u>0?-1:1;return[c*s-p(u)*l,c*u-p(s)*l]}return t.invert&&(i.invert=function(e,i){var o=(e+i)*x,a=(i-e)*x,s=r(o)<.5*n&&r(a)<.5*n;if(!s){var u=n*x,l=o>0^a>0?-1:1,c=-l*e+(a>0?1:-1)*u,f=-l*i+(o>0?1:-1)*u;o=(-c-f)*x,a=(c-f)*x}var d=t.invert(o,a);return s||(d[0]+=o>0?y:-y),d}),e.geoProjection(i).rotate([-90,-90,45]).clipAngle(179.999)},Xe=function(){return We(Dt).scale(111.48)};function Ke(t){var e=v(t);function n(n,r){var o=e?g(n*e/2)/e:n/2;if(!r)return[2*o,-t];var s=2*i(o*v(r)),u=1/g(r);return[v(s)*u,r+(1-a(s))*u-t]}return n.invert=function(n,o){if(r(o+=t)m&&--c>0);var p=n*(f=g(l)),_=g(r(o)0?_:-_)*(d+a*(p-l)/2+a*a*(p-2*d+l)/2)]}function Je(t,e){var n=function(t){function e(e,n){var r=a(n),i=(t-1)/(t-r*a(e));return[i*r*v(e),i*v(n)]}return e.invert=function(e,n){var r=e*e+n*n,i=M(r),a=(t-M(1-r*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[o(e*a,i*M(1-a*a)),i?E(n*a/i):0]},e}(t);if(!e)return n;var r=a(e),i=v(e);function s(e,o){var a=n(e,o),s=a[1],u=s*i/(t-1)+r;return[a[0]*r/u,s/u]}return s.invert=function(e,o){var a=(t-1)/(t-1-o*i);return n.invert(a*e,a*o*r)},s}Ze.forEach((function(t){t[1]*=1.0144})),Qe.invert=function(t,e){var n=e/_,i=90*n,o=f(18,r(i/5)),a=c(0,u(o));do{var s=Ze[a][1],l=Ze[a+1][1],d=Ze[f(19,a+2)][1],h=d-s,p=d-2*l+s,v=2*(r(n)-l)/h,g=p/h,m=v*(1-g*v*(1-2*g*v));if(m>=0||1===a){i=(e>=0?5:-5)*(m+o);var y,b=50;do{m=(o=f(18,r(i)/5))-(a=u(o)),s=Ze[a][1],l=Ze[a+1][1],d=Ze[f(19,a+2)][1],i-=(y=(e>=0?_:-_)*(l+m*(d-s)/2+m*m*(d-2*l+s)/2)-e)*O}while(r(y)>1e-12&&--b>0);break}}while(--a>=0);var x=Ze[a][0],w=Ze[a+1][0],j=Ze[f(19,a+2)][0];return[t/(w+m*(j-x)/2+m*m*(j-2*w+x)/2),i*k]};var tn=-179.9999,en=179.9999,nn=-89.9999;function rn(t){return t.length>0}function on(t){return-90===t||90===t?[0,t]:[-180,(e=t,Math.floor(1e4*e)/1e4)];var e}function an(t){var e=t[0],n=t[1],r=!1;return e<=tn?(e=-180,r=!0):e>=en&&(e=180,r=!0),n<=nn?(n=-90,r=!0):n>=89.9999&&(n=90,r=!0),r?[e,n]:t}function sn(t){return t.map(an)}function un(t,e,n){for(var r=0,i=t.length;r=en||c<=nn||c>=89.9999){o[a]=an(u);for(var f=a+1;ftn&&hnn&&p<89.9999)break}if(f===a+1)continue;if(a){var v={index:-1,polygon:e,ring:o.slice(0,a+1)};v.ring[v.ring.length-1]=on(c),n[n.length-1]=v}else n.pop();if(f>=s)break;n.push({index:-1,polygon:e,ring:o=o.slice(f-1)}),o[0]=on(o[0][1]),a=-1,s=o.length}}}}function ln(t){var e,n,r,i,o,a,s=t.length,u={},l={};for(e=0;e0?y-u:u)*O],c=e.geoProjection(t(s)).rotate(l),f=e.geoRotation(l),d=c.center;return delete c.rotate,c.center=function(t){return arguments.length?d(f(t)):f.invert(d())},c.clipAngle(90)};function pn(t){var n=a(t);function r(t,r){var i=e.geoGnomonicRaw(t,r);return i[0]*=n,i}return r.invert=function(t,r){return e.geoGnomonicRaw.invert(t/n,r)},r}function vn(t,e){return hn(pn,t,e)}function gn(t){if(!(t*=2))return e.geoAzimuthalEquidistantRaw;var n=-t/2,r=-n,i=t*t,s=g(r),u=.5/v(r);function l(e,o){var s=C(a(o)*a(e-n)),u=C(a(o)*a(e-r));return[((s*=s)-(u*=u))/(2*t),(o<0?-1:1)*M(4*i*u-(i-s+u)*(i-s+u))/(2*t)]}return l.invert=function(t,e){var i,l,c=e*e,f=a(M(c+(i=t+n)*i)),d=a(M(c+(i=t+r)*i));return[o(l=f-d,i=(f+d)*s),(e<0?-1:1)*C(M(i*i+l*l)*u)]},l}function mn(t,e){return hn(gn,t,e)}function yn(t,e){if(r(e)m&&--u>0);return[p(t)*(M(o*o+4)+o)*y/4,_*s]};var wn=4*y+3*M(3),jn=2*M(2*y*M(3)/wn),Sn=z(jn*M(3)/y,jn,wn/6);function On(t,e){return[t*M(1-3*e*e/(y*y)),e]}function kn(t,e){var n=.90631*v(e),r=M(1-n*n),i=M(2/(1+r*a(t/=3)));return[2.66723*r*i*v(t),1.24104*n*i]}function En(t,e){var n=a(e),r=a(t)*n,i=1-r,s=a(t=o(v(t)*n,-v(e))),u=v(t);return[u*(n=M(1-r*r))-s*i,-s*n-u*i]}function Cn(t,e){var n=I(t,e);return[(n[0]+t/_)/2,(n[1]+e)/2]}On.invert=function(t,e){return[t/M(1-3*e*e/(y*y)),e]},kn.invert=function(t,e){var n=t/2.66723,r=e/1.24104,i=M(n*n+r*r),a=2*E(i/2);return[3*o(t*g(a),2.66723*i),i&&E(e*v(a)/(1.24104*.90631*i))]},En.invert=function(t,e){var n=(t*t+e*e)/-2,r=M(-n*(2+n)),i=e*n+t*r,a=t*n-e*r,s=M(a*a+i*i);return[o(r*i,s*(1+n)),s?-E(r*a/s):0]},Cn.invert=function(t,e){var n=t,i=e,o=25;do{var s,u=a(i),l=v(i),c=v(2*i),f=l*l,d=u*u,h=v(n),p=a(n/2),g=v(n/2),y=g*g,b=1-d*p*p,x=b?C(u*p)*M(s=1/b):s=0,w=.5*(2*x*u*g+n/_)-t,j=.5*(x*l+i)-e,S=.5*s*(d*y+x*u*p*f)+.5/_,O=s*(h*c/4-x*l*g),k=.125*s*(c*g-x*l*d*h),E=.5*s*(f*p+x*y*u)+.5,T=O*k-E*S,P=(j*O-w*E)/T,A=(w*k-j*S)/T;n-=P,i-=A}while((r(P)>m||r(A)>m)&&--o>0);return[n,i]},t.geoAiry=function(){var t=_,n=e.geoProjectionMutator(A),r=n(t);return r.radius=function(e){return arguments.length?n(t=e*k):t*O},r.scale(179.976).clipAngle(147)},t.geoAiryRaw=A,t.geoAitoff=function(){return e.geoProjection(I).scale(152.63)},t.geoAitoffRaw=I,t.geoArmadillo=function(){var t=20*k,n=t>=0?1:-1,r=g(n*t),i=e.geoProjectionMutator(N),s=i(t),u=s.stream;return s.parallel=function(e){return arguments.length?(r=g((n=(t=e*k)>=0?1:-1)*t),i(t)):t*O},s.stream=function(e){var i=s.rotate(),l=u(e),c=(s.rotate([0,0]),u(e));return s.rotate(i),l.sphere=function(){c.polygonStart(),c.lineStart();for(var e=-180*n;n*e<180;e+=90*n)c.point(e,90*n);for(;n*(e-=t)>=-180;)c.point(e,n*-o(a(e*k/2),r)*O);c.lineEnd(),c.polygonEnd()},l},s.scale(218.695).center([0,28.0974])},t.geoArmadilloRaw=N,t.geoAugust=function(){return e.geoProjection(D).scale(66.1603)},t.geoAugustRaw=D,t.geoBaker=function(){return e.geoProjection(B).scale(112.314)},t.geoBakerRaw=B,t.geoBerghaus=function(){var t=5,n=e.geoProjectionMutator($),r=n(t),i=r.stream,s=-a(.01*k),u=v(.01*k);return r.lobes=function(e){return arguments.length?n(t=+e):t},r.stream=function(e){var n=r.rotate(),l=i(e),c=(r.rotate([0,0]),i(e));return r.rotate(n),l.sphere=function(){c.polygonStart(),c.lineStart();for(var e=0,n=360/t,r=2*y/t,i=90-180/t,l=_;e=0;)t.point((e=n[i])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},r.scale(79.4187).parallel(45).clipAngle(179.999)},t.geoHammerRetroazimuthalRaw=Bt,t.geoHealpix=function(){var t=4,r=e.geoProjectionMutator(zt),i=r(t),o=i.stream;return i.lobes=function(e){return arguments.length?r(t=+e):t},i.stream=function(r){var a=i.rotate(),s=o(r),u=(i.rotate([0,0]),o(r));return i.rotate(a),s.sphere=function(){var r;e.geoStream((r=180/t,{type:"Polygon",coordinates:[n.range(-180,180+r/2,r).map((function(t,e){return[t,1&e?89.999999:41+48/36+37/3600]})).concat(n.range(180,-180-r/2,-r).map((function(t,e){return[t,1&e?-89.999999:-42.343611111111116]})))]}),u)},s},i.scale(239.75)},t.geoHealpixRaw=zt,t.geoHill=function(){var t=1,n=e.geoProjectionMutator(Vt),r=n(t);return r.ratio=function(e){return arguments.length?n(t=+e):t},r.scale(167.774).center([0,18.67])},t.geoHillRaw=Vt,t.geoHomolosine=function(){return e.geoProjection(Ht).scale(152.63)},t.geoHomolosineRaw=Ht,t.geoInterrupt=Yt,t.geoInterruptedBoggs=function(){return Yt(G,Wt).scale(160.857)},t.geoInterruptedHomolosine=function(){return Yt(Ht,Xt).scale(152.63)},t.geoInterruptedMollweide=function(){return Yt(V,Kt).scale(169.529)},t.geoInterruptedMollweideHemispheres=function(){return Yt(V,Zt).scale(169.529).rotate([20,0])},t.geoInterruptedSinuMollweide=function(){return Yt(qt,Qt).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoInterruptedSinusoidal=function(){return Yt(Y,Jt).scale(152.63).rotate([-20,0])},t.geoKavrayskiy7=function(){return e.geoProjection(te).scale(158.837)},t.geoKavrayskiy7Raw=te,t.geoLagrange=function(){var t=.5,n=e.geoProjectionMutator(ee),r=n(t);return r.spacing=function(e){return arguments.length?n(t=+e):t},r.scale(124.75)},t.geoLagrangeRaw=ee,t.geoLarrivee=function(){return e.geoProjection(re).scale(97.2672)},t.geoLarriveeRaw=re,t.geoLaskowski=function(){return e.geoProjection(ie).scale(139.98)},t.geoLaskowskiRaw=ie,t.geoLittrow=function(){return e.geoProjection(oe).scale(144.049).clipAngle(89.999)},t.geoLittrowRaw=oe,t.geoLoximuthal=function(){return U(ae).parallel(40).scale(158.837)},t.geoLoximuthalRaw=ae,t.geoMiller=function(){return e.geoProjection(se).scale(108.318)},t.geoMillerRaw=se,t.geoModifiedStereographic=pe,t.geoModifiedStereographicRaw=ue,t.geoModifiedStereographicAlaska=function(){return pe(le,[152,-64]).scale(1500).center([-160.908,62.4864]).clipAngle(25)},t.geoModifiedStereographicGs48=function(){return pe(ce,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},t.geoModifiedStereographicGs50=function(){return pe(fe,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},t.geoModifiedStereographicMiller=function(){return pe(de,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},t.geoModifiedStereographicLee=function(){return pe(he,[165,10]).scale(250).clipAngle(130).center([-165,-10])},t.geoMollweide=function(){return e.geoProjection(V).scale(169.529)},t.geoMollweideRaw=V,t.geoMtFlatPolarParabolic=function(){return e.geoProjection(me).scale(164.859)},t.geoMtFlatPolarParabolicRaw=me,t.geoMtFlatPolarQuartic=function(){return e.geoProjection(ye).scale(188.209)},t.geoMtFlatPolarQuarticRaw=ye,t.geoMtFlatPolarSinusoidal=function(){return e.geoProjection(_e).scale(166.518)},t.geoMtFlatPolarSinusoidalRaw=_e,t.geoNaturalEarth=function(){return e.geoProjection(be).scale(175.295)},t.geoNaturalEarthRaw=be,t.geoNaturalEarth2=function(){return e.geoProjection(xe).scale(175.295)},t.geoNaturalEarth2Raw=xe,t.geoNellHammer=function(){return e.geoProjection(we).scale(152.63)},t.geoNellHammerRaw=we,t.geoPatterson=function(){return e.geoProjection(je).scale(139.319)},t.geoPattersonRaw=je,t.geoPolyconic=function(){return e.geoProjection(Se).scale(103.74)},t.geoPolyconicRaw=Se,t.geoPolyhedral=Me,t.geoPolyhedralButterfly=function(t){t=t||function(t){var n=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoGnomonic().scale(1).translate([0,0]).rotate([-n[0],-n[1]])};var n=Ie.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var r=n[t];r&&(r.children||(r.children=[])).push(n[e])})),Me(n[0],(function(t,e){return n[t<-y/2?e<0?6:4:t<0?e<0?2:0:t0?[-n[0],0]:[180-n[0],180])};var n=Ie.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var r=n[t];r&&(r.children||(r.children=[])).push(n[e])})),Me(n[0],(function(t,e){return n[t<-y/2?e<0?6:4:t<0?e<0?2:0:t0?1:t<0?-1:0},j=Math.sqrt,S=Math.tan;function O(t){return t>1?0:t<-1?s:Math.acos(t)}function k(t){return t>1?u:t<-1?-u:Math.asin(t)}function E(t){return(t=x(t/2))*t}function C(){}function M(t,e){t&&P.hasOwnProperty(t.type)&&P[t.type](t,e)}var T={Feature:function(t,e){M(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,o=g(e=(e*=d)/2+l),a=x(e),s=$*a,u=B*o+s*g(i),c=s*r*x(i);F.add(v(c,u)),L=t,B=o,$=a}function Y(t){return[v(t[1],t[0]),k(t[2])]}function W(t){var e=t[0],n=t[1],r=g(n);return[r*g(e),r*x(e),x(n)]}function X(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function K(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]]}function Z(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Q(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function J(t){var e=j(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var tt,et,nt,rt,it,ot,at,st,ut,lt,ct,ft,dt,ht,pt,vt,gt,mt,yt,_t,bt,xt,wt,jt,St,Ot,kt=n(),Et={point:Ct,lineStart:Tt,lineEnd:Pt,polygonStart:function(){Et.point=At,Et.lineStart=It,Et.lineEnd=Nt,kt.reset(),V.polygonStart()},polygonEnd:function(){V.polygonEnd(),Et.point=Ct,Et.lineStart=Tt,Et.lineEnd=Pt,F<0?(tt=-(nt=180),et=-(rt=90)):kt>a?rt=90:kt<-a&&(et=-90),lt[0]=tt,lt[1]=nt},sphere:function(){tt=-(nt=180),et=-(rt=90)}};function Ct(t,e){ut.push(lt=[tt=t,nt=t]),ert&&(rt=e)}function Mt(t,e){var n=W([t*d,e*d]);if(st){var r=K(st,n),i=K([r[1],-r[0],0],r);J(i),i=Y(i);var o,a=t-it,s=a>0?1:-1,u=i[0]*f*s,l=h(a)>180;l^(s*itrt&&(rt=o):l^(s*it<(u=(u+360)%360-180)&&urt&&(rt=e)),l?tDt(tt,nt)&&(nt=t):Dt(t,nt)>Dt(tt,nt)&&(tt=t):nt>=tt?(tnt&&(nt=t)):t>it?Dt(tt,t)>Dt(tt,nt)&&(nt=t):Dt(t,nt)>Dt(tt,nt)&&(tt=t)}else ut.push(lt=[tt=t,nt=t]);ert&&(rt=e),st=n,it=t}function Tt(){Et.point=Mt}function Pt(){lt[0]=tt,lt[1]=nt,Et.point=Ct,st=null}function At(t,e){if(st){var n=t-it;kt.add(h(n)>180?n+(n>0?360:-360):n)}else ot=t,at=e;V.point(t,e),Mt(t,e)}function It(){V.lineStart()}function Nt(){At(ot,at),V.lineEnd(),h(kt)>a&&(tt=-(nt=180)),lt[0]=tt,lt[1]=nt,st=null}function Dt(t,e){return(e-=t)<0?e+360:e}function Rt(t,e){return t[0]-e[0]}function Lt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:es?t+Math.round(-t/c)*c:t,e]}function Qt(t,e,n){return(t%=c)?e||n?Kt(te(t),ee(e,n)):te(t):e||n?ee(e,n):Zt}function Jt(t){return function(e,n){return[(e+=t)>s?e-c:e<-s?e+c:e,n]}}function te(t){var e=Jt(t);return e.invert=Jt(-t),e}function ee(t,e){var n=g(t),r=x(t),i=g(e),o=x(e);function a(t,e){var a=g(e),s=g(t)*a,u=x(t)*a,l=x(e),c=l*n+s*r;return[v(u*i-c*o,s*n-l*r),k(c*i+u*o)]}return a.invert=function(t,e){var a=g(e),s=g(t)*a,u=x(t)*a,l=x(e),c=l*i-u*o;return[v(u*i+l*o,s*n+c*r),k(c*n-s*r)]},a}function ne(t){function e(e){return(e=t(e[0]*d,e[1]*d))[0]*=f,e[1]*=f,e}return t=Qt(t[0]*d,t[1]*d,t.length>2?t[2]*d:0),e.invert=function(e){return(e=t.invert(e[0]*d,e[1]*d))[0]*=f,e[1]*=f,e},e}function re(t,e,n,r,i,o){if(n){var a=g(e),s=x(e),u=r*n;null==i?(i=e+r*c,o=e-u/2):(i=ie(a,i),o=ie(a,o),(r>0?io)&&(i+=r*c));for(var l,f=i;r>0?f>o:f1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function ae(t,e){return h(t[0]-e[0])=0;--o)i.point((f=c[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}}function le(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,N=I*A,D=N>s,R=j*T;if(ce.add(v(R*I*x(N),S*P+R*g(N))),f+=D?A+I*c:A,D^b>=n^C>=n){var L=K(W(_),W(E));J(L);var B=K(o,L);J(B);var $=(D^A>=0?-1:1)*k(B[2]);(r>$||r===$&&(L[0]||L[1]))&&(d+=D^A>=0?1:-1)}}return(f<-a||f0){for(d||(o.polygonStart(),d=!0),o.lineStart(),t=0;t1&&2&i&&l.push(l.pop().concat(l.shift())),s.push(l.filter(pe))}return h}}function pe(t){return t.length>1}function ve(t,e){return((t=t.x)[0]<0?t[1]-u-a:u-t[1])-((e=e.x)[0]<0?e[1]-u-a:u-e[1])}var ge=he((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,l){var c=o>0?s:-s,f=h(o-n);h(f-s)0?u:-u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(o,r),e=0):i!==c&&f>=s&&(h(n-i)a?p((x(e)*(o=g(r))*x(n)-x(r)*(i=g(e))*x(t))/(i*o*s)):(e+r)/2}(n,r,o,l),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),e=0),t.point(n=o,r=l),i=c},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*u,r.point(-s,i),r.point(0,i),r.point(s,i),r.point(s,0),r.point(s,-i),r.point(0,-i),r.point(-s,-i),r.point(-s,0),r.point(-s,i);else if(h(t[0]-e[0])>a){var o=t[0]0,i=h(e)>a;function o(t,n){return g(t)*g(n)>e}function u(t,n,r){var i=[1,0,0],o=K(W(t),W(n)),u=X(o,o),l=o[0],c=u-l*l;if(!c)return!r&&t;var f=e*u/c,d=-e*l/c,p=K(i,o),v=Q(i,f);Z(v,Q(o,d));var g=p,m=X(v,g),y=X(g,g),_=m*m-y*(X(v,v)-1);if(!(_<0)){var b=j(_),x=Q(g,(-m-b)/y);if(Z(x,v),x=Y(x),!r)return x;var w,S=t[0],O=n[0],k=t[1],E=n[1];O0^x[1]<(h(x[0]-S)s^(S<=x[0]&&x[0]<=O)){var T=Q(g,(-m+b)/y);return Z(T,v),[x,Y(T)]}}}function l(e,n){var i=r?t:s-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return he(o,(function(t){var e,n,a,c,f;return{lineStart:function(){c=a=!1,f=1},point:function(d,h){var p,v=[d,h],g=o(d,h),m=r?g?0:l(d,h):g?l(d+(d<0?s:-s),h):0;if(!e&&(c=a=g)&&t.lineStart(),g!==a&&(!(p=u(e,v))||ae(e,p)||ae(v,p))&&(v[2]=1),g!==a)f=0,g?(t.lineStart(),p=u(v,e),t.point(p[0],p[1])):(p=u(e,v),t.point(p[0],p[1],2),t.lineEnd()),e=p;else if(i&&e&&r^g){var y;m&n||!(y=u(v,e,!0))||(f=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!g||e&&ae(e,v)||t.point(v[0],v[1]),e=v,a=g,n=m},lineEnd:function(){a&&t.lineEnd(),e=null},clean:function(){return f|(c&&a)<<1}}}),(function(e,r,i,o){re(o,t,n,i,e,r)}),r?[0,-t]:[-s,t-s])}function ye(t,n,r,i){function o(e,o){return t<=e&&e<=r&&n<=o&&o<=i}function s(e,o,a,s){var l=0,f=0;if(null==e||(l=u(e,a))!==(f=u(o,a))||c(e,o)<0^a>0)do{s.point(0===l||3===l?t:r,l>1?i:n)}while((l=(l+a+4)%4)!==f);else s.point(o[0],o[1])}function u(e,i){return h(e[0]-t)0?0:3:h(e[0]-r)0?2:1:h(e[1]-n)0?1:0:i>0?3:2}function l(t,e){return c(t.x,e.x)}function c(t,e){var n=u(t,1),r=u(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(a){var u,c,f,d,h,p,v,g,m,y,_,b=a,x=oe(),w={point:j,lineStart:function(){w.point=S,c&&c.push(f=[]),y=!0,m=!1,v=g=NaN},lineEnd:function(){u&&(S(d,h),p&&m&&x.rejoin(),u.push(x.result())),w.point=j,m&&b.lineEnd()},polygonStart:function(){b=x,u=[],c=[],_=!0},polygonEnd:function(){var n=function(){for(var e=0,n=0,r=c.length;ni&&(d-o)*(i-a)>(h-a)*(t-o)&&++e:h<=i&&(d-o)*(i-a)<(h-a)*(t-o)&&--e;return e}(),r=_&&n,o=(u=e.merge(u)).length;(r||o)&&(a.polygonStart(),r&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),o&&ue(u,l,n,s,a),a.polygonEnd()),b=a,u=c=f=null}};function j(t,e){o(t,e)&&b.point(t,e)}function S(e,a){var s=o(e,a);if(c&&f.push([e,a]),y)d=e,h=a,p=s,y=!1,s&&(b.lineStart(),b.point(e,a));else if(s&&m)b.point(e,a);else{var u=[v=Math.max(-1e9,Math.min(1e9,v)),g=Math.max(-1e9,Math.min(1e9,g))],l=[e=Math.max(-1e9,Math.min(1e9,e)),a=Math.max(-1e9,Math.min(1e9,a))];!function(t,e,n,r,i,o){var a,s=t[0],u=t[1],l=0,c=1,f=e[0]-s,d=e[1]-u;if(a=n-s,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>c)return;a>l&&(l=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=d,d<0){if(a0){if(a>c)return;a>l&&(l=a)}if(a=o-u,d||!(a<0)){if(a/=d,d<0){if(a>c)return;a>l&&(l=a)}else if(d>0){if(a0&&(t[0]=s+l*f,t[1]=u+l*d),c<1&&(e[0]=s+c*f,e[1]=u+c*d),!0}}}}}(u,l,t,n,r,i)?s&&(b.lineStart(),b.point(e,a),_=!1):(m||(b.lineStart(),b.point(u[0],u[1])),b.point(l[0],l[1]),s||b.lineEnd(),_=!1)}v=e,g=a,m=s}return w}}var _e,be,xe,we=n(),je={sphere:C,point:C,lineStart:function(){je.point=Oe,je.lineEnd=Se},lineEnd:C,polygonStart:C,polygonEnd:C};function Se(){je.point=je.lineEnd=C}function Oe(t,e){_e=t*=d,be=x(e*=d),xe=g(e),je.point=ke}function ke(t,e){t*=d;var n=x(e*=d),r=g(e),i=h(t-_e),o=g(i),a=r*x(i),s=xe*n-be*r*o,u=be*n+xe*r*o;we.add(v(j(a*a+s*s),u)),_e=t,be=n,xe=r}function Ee(t){return we.reset(),N(t,je),+we}var Ce=[null,null],Me={type:"LineString",coordinates:Ce};function Te(t,e){return Ce[0]=t,Ce[1]=e,Ee(Me)}var Pe={Feature:function(t,e){return Ie(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0&&(i=Te(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<1e-12*i)return!0;n=r}return!1}function Re(t,e){return!!de(t.map(Le),Be(e))}function Le(t){return(t=t.map(Be)).pop(),t}function Be(t){return[t[0]*d,t[1]*d]}function $e(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map((function(e){return[t,e]}))}}function Fe(t,n,r){var i=e.range(t,n-a,r).concat(n);return function(t){return i.map((function(e){return[e,t]}))}}function ze(){var t,n,r,i,o,s,u,l,c,f,d,p,v=10,g=v,y=90,_=360,b=2.5;function x(){return{type:"MultiLineString",coordinates:w()}}function w(){return e.range(m(i/y)*y,r,y).map(d).concat(e.range(m(l/_)*_,u,_).map(p)).concat(e.range(m(n/v)*v,t,v).filter((function(t){return h(t%y)>a})).map(c)).concat(e.range(m(s/g)*g,o,g).filter((function(t){return h(t%_)>a})).map(f))}return x.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},x.outline=function(){return{type:"Polygon",coordinates:[d(i).concat(p(u).slice(1),d(r).reverse().slice(1),p(l).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.extentMajor(t).extentMinor(t):x.extentMinor()},x.extentMajor=function(t){return arguments.length?(i=+t[0][0],r=+t[1][0],l=+t[0][1],u=+t[1][1],i>r&&(t=i,i=r,r=t),l>u&&(t=l,l=u,u=t),x.precision(b)):[[i,l],[r,u]]},x.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],s=+e[0][1],o=+e[1][1],n>t&&(e=n,n=t,t=e),s>o&&(e=s,s=o,o=e),x.precision(b)):[[n,s],[t,o]]},x.step=function(t){return arguments.length?x.stepMajor(t).stepMinor(t):x.stepMinor()},x.stepMajor=function(t){return arguments.length?(y=+t[0],_=+t[1],x):[y,_]},x.stepMinor=function(t){return arguments.length?(v=+t[0],g=+t[1],x):[v,g]},x.precision=function(e){return arguments.length?(b=+e,c=$e(s,o,90),f=Fe(n,t,b),d=$e(l,u,90),p=Fe(i,r,b),x):b},x.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}function Ve(t){return t}var qe,He,Ge,Ue,Ye=n(),We=n(),Xe={point:C,lineStart:C,lineEnd:C,polygonStart:function(){Xe.lineStart=Ke,Xe.lineEnd=Je},polygonEnd:function(){Xe.lineStart=Xe.lineEnd=Xe.point=C,Ye.add(h(We)),We.reset()},result:function(){var t=Ye/2;return Ye.reset(),t}};function Ke(){Xe.point=Ze}function Ze(t,e){Xe.point=Qe,qe=Ge=t,He=Ue=e}function Qe(t,e){We.add(Ue*t-Ge*e),Ge=t,Ue=e}function Je(){Qe(qe,He)}var tn,en,nn,rn,on=1/0,an=on,sn=-on,un=sn,ln={point:function(t,e){tsn&&(sn=t),eun&&(un=e)},lineStart:C,lineEnd:C,polygonStart:C,polygonEnd:C,result:function(){var t=[[on,an],[sn,un]];return sn=un=-(an=on=1/0),t}},cn=0,fn=0,dn=0,hn=0,pn=0,vn=0,gn=0,mn=0,yn=0,_n={point:bn,lineStart:xn,lineEnd:Sn,polygonStart:function(){_n.lineStart=On,_n.lineEnd=kn},polygonEnd:function(){_n.point=bn,_n.lineStart=xn,_n.lineEnd=Sn},result:function(){var t=yn?[gn/yn,mn/yn]:vn?[hn/vn,pn/vn]:dn?[cn/dn,fn/dn]:[NaN,NaN];return cn=fn=dn=hn=pn=vn=gn=mn=yn=0,t}};function bn(t,e){cn+=t,fn+=e,++dn}function xn(){_n.point=wn}function wn(t,e){_n.point=jn,bn(nn=t,rn=e)}function jn(t,e){var n=t-nn,r=e-rn,i=j(n*n+r*r);hn+=i*(nn+t)/2,pn+=i*(rn+e)/2,vn+=i,bn(nn=t,rn=e)}function Sn(){_n.point=bn}function On(){_n.point=En}function kn(){Cn(tn,en)}function En(t,e){_n.point=Cn,bn(tn=nn=t,en=rn=e)}function Cn(t,e){var n=t-nn,r=e-rn,i=j(n*n+r*r);hn+=i*(nn+t)/2,pn+=i*(rn+e)/2,vn+=i,gn+=(i=rn*t-nn*e)*(nn+t),mn+=i*(rn+e),yn+=3*i,bn(nn=t,rn=e)}function Mn(t){this._context=t}Mn.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,c)}},result:C};var Tn,Pn,An,In,Nn,Dn=n(),Rn={point:C,lineStart:function(){Rn.point=Ln},lineEnd:function(){Tn&&Bn(Pn,An),Rn.point=C},polygonStart:function(){Tn=!0},polygonEnd:function(){Tn=null},result:function(){var t=+Dn;return Dn.reset(),t}};function Ln(t,e){Rn.point=Bn,Pn=In=t,An=Nn=e}function Bn(t,e){In-=t,Nn-=e,Dn.add(j(In*In+Nn*Nn)),In=t,Nn=e}function $n(){this._string=[]}function Fn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function zn(t){return function(e){var n=new Vn;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Vn(){}function qn(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),N(n,t.stream(ln)),e(ln.result()),null!=r&&t.clipExtent(r),t}function Hn(t,e,n){return qn(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])}),n)}function Gn(t,e,n){return Hn(t,[[0,0],e],n)}function Un(t,e,n){return qn(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function Yn(t,e,n){return qn(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}$n.prototype={_radius:4.5,_circle:Fn(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=Fn(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}},Vn.prototype={constructor:Vn,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()}};var Wn=g(30*d);function Xn(t,e){return+e?function(t,e){function n(r,i,o,s,u,l,c,f,d,p,g,m,y,_){var b=c-r,x=f-i,w=b*b+x*x;if(w>4*e&&y--){var S=s+p,O=u+g,E=l+m,C=j(S*S+O*O+E*E),M=k(E/=C),T=h(h(E)-1)e||h((b*N+x*D)/w-.5)>.3||s*p+u*g+l*m2?t[2]%360*d:0,A()):[y*f,_*f,b*f]},T.angle=function(t){return arguments.length?(x=t%360*d,A()):x*f},T.reflectX=function(t){return arguments.length?(w=t?-1:1,A()):w<0},T.reflectY=function(t){return arguments.length?(S=t?-1:1,A()):S<0},T.precision=function(t){return arguments.length?(a=Xn(s,M=t*t),I()):j(M)},T.fitExtent=function(t,e){return Hn(T,t,e)},T.fitSize=function(t,e){return Gn(T,t,e)},T.fitWidth=function(t,e){return Un(T,t,e)},T.fitHeight=function(t,e){return Yn(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&P,A()}}function er(t){var e=0,n=s/3,r=tr(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*d,n=t[1]*d):[e*f,n*f]},i}function nr(t,e){var n=x(t),r=(n+x(e))/2;if(h(r)0?e<-u+a&&(e=-u+a):e>u-a&&(e=u-a);var n=i/b(fr(e),r);return[n*x(r*t),i-n*g(r*t)]}return o.invert=function(t,e){var n=i-e,o=w(r)*j(t*t+n*n),a=v(t,h(n))*w(n);return n*r<0&&(a-=s*w(t)*w(n)),[a/r,2*p(b(i/o,1/r))-u]},o}function hr(t,e){return[t,e]}function pr(t,e){var n=g(t),r=t===e?x(t):(n-g(e))/(e-t),i=n/r+t;if(h(r)a&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},jr.invert=ar(k),Sr.invert=ar((function(t){return 2*p(t)})),Or.invert=function(t,e){return[-e,2*p(y(t))-u]},t.geoAlbers=ir,t.geoAlbersUsa=function(){var t,e,n,r,i,o,s=ir(),u=rr().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=rr().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){o=[t,e]}};function f(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(r.point(e,a),o)||(i.point(e,a),o)}function d(){return t=e=null,f}return f.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:s).invert(t)},f.stream=function(n){return t&&e===n?t:(r=[s.stream(e=n),u.stream(n),l.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++nDt(r[0],r[1])&&(r[1]=i[1]),Dt(i[0],r[1])>Dt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(s=Dt(r[1],i[0]))>a&&(a=s,tt=i[0],nt=r[1])}return ut=lt=null,tt===1/0||et===1/0?[[NaN,NaN],[NaN,NaN]]:[[tt,et],[nt,rt]]},t.geoCentroid=function(t){ct=ft=dt=ht=pt=vt=gt=mt=yt=_t=bt=0,N(t,Bt);var e=yt,n=_t,r=bt,i=e*e+n*n+r*r;return i<1e-12&&(e=vt,n=gt,r=mt,ft2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=Or,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))},"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js": /*!***********************************************************!*\ !*** ./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js ***! \***********************************************************/ /*! no static exports found */function(t,e,n){!function(t,e){"use strict";var n=function(){return new r};function r(){this.reset()}r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){o(i,t,this.t),o(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function o(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var a=1e-6,s=Math.PI,u=s/2,l=s/4,c=2*s,f=180/s,d=s/180,h=Math.abs,p=Math.atan,v=Math.atan2,g=Math.cos,m=Math.ceil,y=Math.exp,_=Math.log,b=Math.pow,x=Math.sin,w=Math.sign||function(t){return t>0?1:t<0?-1:0},j=Math.sqrt,S=Math.tan;function O(t){return t>1?0:t<-1?s:Math.acos(t)}function k(t){return t>1?u:t<-1?-u:Math.asin(t)}function E(t){return(t=x(t/2))*t}function C(){}function M(t,e){t&&P.hasOwnProperty(t.type)&&P[t.type](t,e)}var T={Feature:function(t,e){M(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,o=g(e=(e*=d)/2+l),a=x(e),s=B*a,u=L*o+s*g(i),c=s*r*x(i);W.add(v(c,u)),R=t,L=o,B=a}function et(t){return[v(t[1],t[0]),k(t[2])]}function nt(t){var e=t[0],n=t[1],r=g(n);return[r*g(e),r*x(e),x(n)]}function rt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function it(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]]}function ot(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function at(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function st(t){var e=j(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ut,lt,ct=n(),ft={point:dt,lineStart:pt,lineEnd:vt,polygonStart:function(){ft.point=gt,ft.lineStart=mt,ft.lineEnd=yt,ct.reset(),K.polygonStart()},polygonEnd:function(){K.polygonEnd(),ft.point=dt,ft.lineStart=pt,ft.lineEnd=vt,W<0?($=-(z=180),F=-(V=90)):ct>a?V=90:ct<-a&&(F=-90),lt[0]=$,lt[1]=z}};function dt(t,e){ut.push(lt=[$=t,z=t]),eV&&(V=e)}function ht(t,e){var n=nt([t*d,e*d]);if(U){var r=it(U,n),i=it([r[1],-r[0],0],r);st(i),i=et(i);var o,a=t-q,s=a>0?1:-1,u=i[0]*f*s,l=h(a)>180;l^(s*qV&&(V=o):l^(s*q<(u=(u+360)%360-180)&&uV&&(V=e)),l?t_t($,z)&&(z=t):_t(t,z)>_t($,z)&&($=t):z>=$?(t<$&&($=t),t>z&&(z=t)):t>q?_t($,t)>_t($,z)&&(z=t):_t(t,z)>_t($,z)&&($=t)}else ut.push(lt=[$=t,z=t]);eV&&(V=e),U=n,q=t}function pt(){ft.point=ht}function vt(){lt[0]=$,lt[1]=z,ft.point=dt,U=null}function gt(t,e){if(U){var n=t-q;ct.add(h(n)>180?n+(n>0?360:-360):n)}else H=t,G=e;K.point(t,e),ht(t,e)}function mt(){K.lineStart()}function yt(){gt(H,G),K.lineEnd(),h(ct)>a&&($=-(z=180)),lt[0]=$,lt[1]=z,U=null}function _t(t,e){return(e-=t)<0?e+360:e}function bt(t,e){return t[0]-e[0]}function xt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:es?t-c:t<-s?t+c:t,e]}function Qt(t,e,n){return(t%=c)?e||n?Kt(te(t),ee(e,n)):te(t):e||n?ee(e,n):Zt}function Jt(t){return function(e,n){return[(e+=t)>s?e-c:e<-s?e+c:e,n]}}function te(t){var e=Jt(t);return e.invert=Jt(-t),e}function ee(t,e){var n=g(t),r=x(t),i=g(e),o=x(e);function a(t,e){var a=g(e),s=g(t)*a,u=x(t)*a,l=x(e),c=l*n+s*r;return[v(u*i-c*o,s*n-l*r),k(c*i+u*o)]}return a.invert=function(t,e){var a=g(e),s=g(t)*a,u=x(t)*a,l=x(e),c=l*i-u*o;return[v(u*i+l*o,s*n+c*r),k(c*n-s*r)]},a}Zt.invert=Zt;var ne=function(t){function e(e){return(e=t(e[0]*d,e[1]*d))[0]*=f,e[1]*=f,e}return t=Qt(t[0]*d,t[1]*d,t.length>2?t[2]*d:0),e.invert=function(e){return(e=t.invert(e[0]*d,e[1]*d))[0]*=f,e[1]*=f,e},e};function re(t,e,n,r,i,o){if(n){var a=g(e),s=x(e),u=r*n;null==i?(i=e+r*c,o=e-u/2):(i=ie(a,i),o=ie(a,o),(r>0?io)&&(i+=r*c));for(var l,f=i;r>0?f>o:f1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},ae=function(t,e){return h(t[0]-e[0])=0;--o)i.point((c=l[o])[0],c[1]);else r(d.x,d.p.x,-1,i);d=d.p}l=(d=d.o).z,h=!h}while(!d.v);i.lineEnd()}}};function le(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r0)do{s.point(0===l||3===l?t:r,l>1?i:n)}while((l=(l+a+4)%4)!==f);else s.point(o[0],o[1])}function u(e,i){return h(e[0]-t)0?0:3:h(e[0]-r)0?2:1:h(e[1]-n)0?1:0:i>0?3:2}function l(t,e){return c(t.x,e.x)}function c(t,e){var n=u(t,1),r=u(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(a){var u,c,f,d,h,p,v,g,m,y,_,b=a,x=oe(),w={point:j,lineStart:function(){w.point=S,c&&c.push(f=[]),y=!0,m=!1,v=g=NaN},lineEnd:function(){u&&(S(d,h),p&&m&&x.rejoin(),u.push(x.result())),w.point=j,m&&b.lineEnd()},polygonStart:function(){b=x,u=[],c=[],_=!0},polygonEnd:function(){var n=function(){for(var e=0,n=0,r=c.length;ni&&(d-o)*(i-a)>(h-a)*(t-o)&&++e:h<=i&&(d-o)*(i-a)<(h-a)*(t-o)&&--e;return e}(),r=_&&n,o=(u=e.merge(u)).length;(r||o)&&(a.polygonStart(),r&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),o&&ue(u,l,n,s,a),a.polygonEnd()),b=a,u=c=f=null}};function j(t,e){o(t,e)&&b.point(t,e)}function S(e,a){var s=o(e,a);if(c&&f.push([e,a]),y)d=e,h=a,p=s,y=!1,s&&(b.lineStart(),b.point(e,a));else if(s&&m)b.point(e,a);else{var u=[v=Math.max(-1e9,Math.min(1e9,v)),g=Math.max(-1e9,Math.min(1e9,g))],l=[e=Math.max(-1e9,Math.min(1e9,e)),a=Math.max(-1e9,Math.min(1e9,a))];!function(t,e,n,r,i,o){var a,s=t[0],u=t[1],l=0,c=1,f=e[0]-s,d=e[1]-u;if(a=n-s,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>c)return;a>l&&(l=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=d,d<0){if(a0){if(a>c)return;a>l&&(l=a)}if(a=o-u,d||!(a<0)){if(a/=d,d<0){if(a>c)return;a>l&&(l=a)}else if(d>0){if(a0&&(t[0]=s+l*f,t[1]=u+l*d),c<1&&(e[0]=s+c*f,e[1]=u+c*d),!0}}}}}(u,l,t,n,r,i)?s&&(b.lineStart(),b.point(e,a),_=!1):(m||(b.lineStart(),b.point(u[0],u[1])),b.point(l[0],l[1]),s||b.lineEnd(),_=!1)}v=e,g=a,m=s}return w}}var fe,de,he,pe=n(),ve=function(t,e){var n=e[0],r=e[1],i=[x(n),-g(n),0],o=0,u=0;pe.reset();for(var f=0,d=t.length;f=0?1:-1,A=P*T,I=A>s,N=b*C;if(pe.add(v(N*P*x(A),w*M+N*g(A))),o+=I?T+P*c:T,I^y>=n^O>=n){var D=it(nt(m),nt(S));st(D);var R=it(i,D);st(R);var L=(I^T>=0?-1:1)*k(R[2]);(r>L||r===L&&(D[0]||D[1]))&&(u+=I^T>=0?1:-1)}}return(o<-a||oa})).map(c)).concat(e.range(m(s/g)*g,o,g).filter((function(t){return h(t%_)>a})).map(f))}return x.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},x.outline=function(){return{type:"Polygon",coordinates:[d(i).concat(p(u).slice(1),d(r).reverse().slice(1),p(l).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.extentMajor(t).extentMinor(t):x.extentMinor()},x.extentMajor=function(t){return arguments.length?(i=+t[0][0],r=+t[1][0],l=+t[0][1],u=+t[1][1],i>r&&(t=i,i=r,r=t),l>u&&(t=l,l=u,u=t),x.precision(b)):[[i,l],[r,u]]},x.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],s=+e[0][1],o=+e[1][1],n>t&&(e=n,n=t,t=e),s>o&&(e=s,s=o,o=e),x.precision(b)):[[n,s],[t,o]]},x.step=function(t){return arguments.length?x.stepMajor(t).stepMinor(t):x.stepMinor()},x.stepMajor=function(t){return arguments.length?(y=+t[0],_=+t[1],x):[y,_]},x.stepMinor=function(t){return arguments.length?(v=+t[0],g=+t[1],x):[v,g]},x.precision=function(e){return arguments.length?(b=+e,c=Ie(s,o,90),f=Ne(n,t,b),d=Ie(l,u,90),p=Ne(i,r,b),x):b},x.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}var Re,Le,Be,$e,Fe=function(t){return t},ze=n(),Ve=n(),qe={point:C,lineStart:C,lineEnd:C,polygonStart:function(){qe.lineStart=He,qe.lineEnd=Ye},polygonEnd:function(){qe.lineStart=qe.lineEnd=qe.point=C,ze.add(h(Ve)),Ve.reset()},result:function(){var t=ze/2;return ze.reset(),t}};function He(){qe.point=Ge}function Ge(t,e){qe.point=Ue,Re=Be=t,Le=$e=e}function Ue(t,e){Ve.add($e*t-Be*e),Be=t,$e=e}function Ye(){Ue(Re,Le)}var We,Xe,Ke,Ze,Qe=1/0,Je=Qe,tn=-Qe,en=tn,nn={point:function(t,e){ttn&&(tn=t),een&&(en=e)},lineStart:C,lineEnd:C,polygonStart:C,polygonEnd:C,result:function(){var t=[[Qe,Je],[tn,en]];return tn=en=-(Je=Qe=1/0),t}},rn=0,on=0,an=0,sn=0,un=0,ln=0,cn=0,fn=0,dn=0,hn={point:pn,lineStart:vn,lineEnd:yn,polygonStart:function(){hn.lineStart=_n,hn.lineEnd=bn},polygonEnd:function(){hn.point=pn,hn.lineStart=vn,hn.lineEnd=yn},result:function(){var t=dn?[cn/dn,fn/dn]:ln?[sn/ln,un/ln]:an?[rn/an,on/an]:[NaN,NaN];return rn=on=an=sn=un=ln=cn=fn=dn=0,t}};function pn(t,e){rn+=t,on+=e,++an}function vn(){hn.point=gn}function gn(t,e){hn.point=mn,pn(Ke=t,Ze=e)}function mn(t,e){var n=t-Ke,r=e-Ze,i=j(n*n+r*r);sn+=i*(Ke+t)/2,un+=i*(Ze+e)/2,ln+=i,pn(Ke=t,Ze=e)}function yn(){hn.point=pn}function _n(){hn.point=xn}function bn(){wn(We,Xe)}function xn(t,e){hn.point=wn,pn(We=Ke=t,Xe=Ze=e)}function wn(t,e){var n=t-Ke,r=e-Ze,i=j(n*n+r*r);sn+=i*(Ke+t)/2,un+=i*(Ze+e)/2,ln+=i,cn+=(i=Ze*t-Ke*e)*(Ke+t),fn+=i*(Ze+e),dn+=3*i,pn(Ke=t,Ze=e)}function jn(t){this._context=t}jn.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,c)}},result:C};var Sn,On,kn,En,Cn,Mn=n(),Tn={point:C,lineStart:function(){Tn.point=Pn},lineEnd:function(){Sn&&An(On,kn),Tn.point=C},polygonStart:function(){Sn=!0},polygonEnd:function(){Sn=null},result:function(){var t=+Mn;return Mn.reset(),t}};function Pn(t,e){Tn.point=An,On=En=t,kn=Cn=e}function An(t,e){En-=t,Cn-=e,Mn.add(j(En*En+Cn*Cn)),En=t,Cn=e}function In(){this._string=[]}function Nn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}In.prototype={_radius:4.5,_circle:Nn(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=Nn(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}};var Dn=function(t,n,r,i){return function(o,a){var s,u,l,c=n(a),f=o.invert(i[0],i[1]),d=oe(),h=n(d),p=!1,v={point:g,lineStart:y,lineEnd:_,polygonStart:function(){v.point=b,v.lineStart=x,v.lineEnd=w,u=[],s=[]},polygonEnd:function(){v.point=g,v.lineStart=y,v.lineEnd=_,u=e.merge(u);var t=ve(s,f);u.length?(p||(a.polygonStart(),p=!0),ue(u,Ln,t,r,a)):t&&(p||(a.polygonStart(),p=!0),a.lineStart(),r(null,null,1,a),a.lineEnd()),p&&(a.polygonEnd(),p=!1),u=s=null},sphere:function(){a.polygonStart(),a.lineStart(),r(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function g(e,n){var r=o(e,n);t(e=r[0],n=r[1])&&a.point(e,n)}function m(t,e){var n=o(t,e);c.point(n[0],n[1])}function y(){v.point=m,c.lineStart()}function _(){v.point=g,c.lineEnd()}function b(t,e){l.push([t,e]);var n=o(t,e);h.point(n[0],n[1])}function x(){h.lineStart(),l=[]}function w(){b(l[0][0],l[0][1]),h.lineEnd();var t,e,n,r,i=h.clean(),o=d.result(),c=o.length;if(l.pop(),s.push(l),l=null,c)if(1&i){if((e=(n=o[0]).length-1)>0){for(p||(a.polygonStart(),p=!0),a.lineStart(),t=0;t1&&2&i&&o.push(o.pop().concat(o.shift())),u.push(o.filter(Rn))}return v}};function Rn(t){return t.length>1}function Ln(t,e){return((t=t.x)[0]<0?t[1]-u-a:u-t[1])-((e=e.x)[0]<0?e[1]-u-a:u-e[1])}var Bn=Dn((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,l){var c=o>0?s:-s,f=h(o-n);h(f-s)0?u:-u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(o,r),e=0):i!==c&&f>=s&&(h(n-i)a?p((x(e)*(o=g(r))*x(n)-x(r)*(i=g(e))*x(t))/(i*o*s)):(e+r)/2}(n,r,o,l),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(c,r),e=0),t.point(n=o,r=l),i=c},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*u,r.point(-s,i),r.point(0,i),r.point(s,i),r.point(s,0),r.point(s,-i),r.point(0,-i),r.point(-s,-i),r.point(-s,0),r.point(-s,i);else if(h(t[0]-e[0])>a){var o=t[0]0,i=h(n)>a;function o(t,e){return g(t)*g(e)>n}function u(t,e,r){var i=[1,0,0],o=it(nt(t),nt(e)),u=rt(o,o),l=o[0],c=u-l*l;if(!c)return!r&&t;var f=n*u/c,d=-n*l/c,p=it(i,o),v=at(i,f);ot(v,at(o,d));var g=p,m=rt(v,g),y=rt(g,g),_=m*m-y*(rt(v,v)-1);if(!(_<0)){var b=j(_),x=at(g,(-m-b)/y);if(ot(x,v),x=et(x),!r)return x;var w,S=t[0],O=e[0],k=t[1],E=e[1];O0^x[1]<(h(x[0]-S)s^(S<=x[0]&&x[0]<=O)){var T=at(g,(-m+b)/y);return ot(T,v),[x,et(T)]}}}function l(e,n){var i=r?t:s-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return Dn(o,(function(t){var e,n,c,f,d;return{lineStart:function(){f=c=!1,d=1},point:function(h,p){var v,g=[h,p],m=o(h,p),y=r?m?0:l(h,p):m?l(h+(h<0?s:-s),p):0;if(!e&&(f=c=m)&&t.lineStart(),m!==c&&(!(v=u(e,g))||ae(e,v)||ae(g,v))&&(g[0]+=a,g[1]+=a,m=o(g[0],g[1])),m!==c)d=0,m?(t.lineStart(),v=u(g,e),t.point(v[0],v[1])):(v=u(e,g),t.point(v[0],v[1]),t.lineEnd()),e=v;else if(i&&e&&r^m){var _;y&n||!(_=u(g,e,!0))||(d=0,r?(t.lineStart(),t.point(_[0][0],_[0][1]),t.point(_[1][0],_[1][1]),t.lineEnd()):(t.point(_[1][0],_[1][1]),t.lineEnd(),t.lineStart(),t.point(_[0][0],_[0][1])))}!m||e&&ae(e,g)||t.point(g[0],g[1]),e=g,c=m,n=y},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return d|(f&&c)<<1}}}),(function(n,r,i,o){re(o,t,e,i,n,r)}),r?[0,-t]:[-s,t-s])};function Fn(t){return function(e){var n=new zn;for(var r in t)n[r]=t[r];return n.stream=e,n}}function zn(){}function Vn(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),Y(n,t.stream(nn));var a=nn.result(),s=Math.min(r/(a[1][0]-a[0][0]),i/(a[1][1]-a[0][1])),u=+e[0][0]+(r-s*(a[1][0]+a[0][0]))/2,l=+e[0][1]+(i-s*(a[1][1]+a[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*s).translate([u,l])}function qn(t,e,n){return Vn(t,[[0,0],e],n)}zn.prototype={constructor:zn,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()}};var Hn=g(30*d),Gn=function(t,e){return+e?function(t,e){function n(r,i,o,s,u,l,c,f,d,p,g,m,y,_){var b=c-r,x=f-i,w=b*b+x*x;if(w>4*e&&y--){var S=s+p,O=u+g,E=l+m,C=j(S*S+O*O+E*E),M=k(E/=C),T=h(h(E)-1)e||h((b*N+x*D)/w-.5)>.3||s*p+u*g+l*m2?t[2]%360*d:0,P()):[y*f,_*f,b*f]},C.precision=function(t){return arguments.length?(E=Gn(T,k=t*t),A()):j(k)},C.fitExtent=function(t,e){return Vn(C,t,e)},C.fitSize=function(t,e){return qn(C,t,e)},function(){return e=t.apply(this,arguments),C.invert=e.invert&&M,P()}}function Xn(t){var e=0,n=s/3,r=Wn(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*d,n=t[1]*d):[e*f,n*f]},i}function Kn(t,e){var n=x(t),r=(n+x(e))/2;if(h(r)0?e<-u+a&&(e=-u+a):e>u-a&&(e=u-a);var n=i/b(or(e),r);return[n*x(r*t),i-n*g(r*t)]}return o.invert=function(t,e){var n=i-e,o=w(r)*j(t*t+n*n);return[v(t,h(n))/r*w(n),2*p(b(i/o,1/r))-u]},o}function sr(t,e){return[t,e]}function ur(t,e){var n=g(t),r=t===e?x(t):(n-g(e))/(e-t),i=n/r+t;if(h(r)_t(r[0],r[1])&&(r[1]=i[1]),_t(i[0],r[1])>_t(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(s=_t(r[1],i[0]))>a&&(a=s,$=i[0],z=r[1])}return ut=lt=null,$===1/0||F===1/0?[[NaN,NaN],[NaN,NaN]]:[[$,F],[z,V]]},t.geoCentroid=function(t){wt=jt=St=Ot=kt=Et=Ct=Mt=Tt=Pt=At=0,Y(t,Bt);var e=Tt,n=Pt,r=At,i=e*e+n*n+r*r;return i<1e-12&&(e=Et,n=Ct,r=Mt,jt=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:s).invert(t)},f.stream=function(n){return t&&e===n?t:(r=[s.stream(e=n),u.stream(n),l.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=hr,t.geoRotation=ne,t.geoStream=Y,t.geoTransform=function(t){return{stream:Fn(t)}},Object.defineProperty(t,"__esModule",{value:!0})}(e,n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))},"./node_modules/_d3-geo@2.0.1@d3-geo/dist/d3-geo.js": /*!**********************************************************!*\ !*** ./node_modules/_d3-geo@2.0.1@d3-geo/dist/d3-geo.js ***! \**********************************************************/ /*! no static exports found */function(t,e,n){!function(t,e){"use strict";var n=1e-6,r=Math.PI,i=r/2,o=r/4,a=2*r,s=180/r,u=r/180,l=Math.abs,c=Math.atan,f=Math.atan2,d=Math.cos,h=Math.ceil,p=Math.exp,v=Math.hypot,g=Math.log,m=Math.pow,y=Math.sin,_=Math.sign||function(t){return t>0?1:t<0?-1:0},b=Math.sqrt,x=Math.tan;function w(t){return t>1?0:t<-1?r:Math.acos(t)}function j(t){return t>1?i:t<-1?-i:Math.asin(t)}function S(t){return(t=y(t/2))*t}function O(){}function k(t,e){t&&C.hasOwnProperty(t.type)&&C[t.type](t,e)}var E={Feature:function(t,e){k(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=d(e=(e*=u)/2+o),s=y(e),l=R*s,c=D*a+l*d(i),h=l*r*y(i);W.add(f(h,c)),N=t,D=a,R=s}function et(t){return[f(t[1],t[0]),j(t[2])]}function nt(t){var e=t[0],n=t[1],r=d(n);return[r*d(e),r*y(e),y(n)]}function rt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function it(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]]}function ot(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function at(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function st(t){var e=b(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ut,lt,ct,ft,dt,ht,pt,vt,gt,mt,yt,_t,bt,xt,wt,jt,St={point:Ot,lineStart:Et,lineEnd:Ct,polygonStart:function(){St.point=Mt,St.lineStart=Tt,St.lineEnd=Pt,G=new e.Adder,K.polygonStart()},polygonEnd:function(){K.polygonEnd(),St.point=Ot,St.lineStart=Et,St.lineEnd=Ct,W<0?(L=-($=180),B=-(F=90)):G>n?F=90:G<-n&&(B=-90),Y[0]=L,Y[1]=$},sphere:function(){L=-($=180),B=-(F=90)}};function Ot(t,e){U.push(Y=[L=t,$=t]),eF&&(F=e)}function kt(t,e){var n=nt([t*u,e*u]);if(H){var r=it(H,n),i=it([r[1],-r[0],0],r);st(i),i=et(i);var o,a=t-z,c=a>0?1:-1,f=i[0]*s*c,d=l(a)>180;d^(c*zF&&(F=o):d^(c*z<(f=(f+360)%360-180)&&fF&&(F=e)),d?tAt(L,$)&&($=t):At(t,$)>At(L,$)&&(L=t):$>=L?(t$&&($=t)):t>z?At(L,t)>At(L,$)&&($=t):At(t,$)>At(L,$)&&(L=t)}else U.push(Y=[L=t,$=t]);eF&&(F=e),H=n,z=t}function Et(){St.point=kt}function Ct(){Y[0]=L,Y[1]=$,St.point=Ot,H=null}function Mt(t,e){if(H){var n=t-z;G.add(l(n)>180?n+(n>0?360:-360):n)}else V=t,q=e;K.point(t,e),kt(t,e)}function Tt(){K.lineStart()}function Pt(){Mt(V,q),K.lineEnd(),l(G)>n&&(L=-($=180)),Y[0]=L,Y[1]=$,H=null}function At(t,e){return(e-=t)<0?e+360:e}function It(t,e){return t[0]-e[0]}function Nt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:er?t+Math.round(-t/a)*a:t,e]}function Xt(t,e,n){return(t%=a)?e||n?Yt(Zt(t),Qt(e,n)):Zt(t):e||n?Qt(e,n):Wt}function Kt(t){return function(e,n){return[(e+=t)>r?e-a:e<-r?e+a:e,n]}}function Zt(t){var e=Kt(t);return e.invert=Kt(-t),e}function Qt(t,e){var n=d(t),r=y(t),i=d(e),o=y(e);function a(t,e){var a=d(e),s=d(t)*a,u=y(t)*a,l=y(e),c=l*n+s*r;return[f(u*i-c*o,s*n-l*r),j(c*i+u*o)]}return a.invert=function(t,e){var a=d(e),s=d(t)*a,u=y(t)*a,l=y(e),c=l*i-u*o;return[f(u*i+l*o,s*n+c*r),j(c*n-s*r)]},a}function Jt(t){function e(e){return(e=t(e[0]*u,e[1]*u))[0]*=s,e[1]*=s,e}return t=Xt(t[0]*u,t[1]*u,t.length>2?t[2]*u:0),e.invert=function(e){return(e=t.invert(e[0]*u,e[1]*u))[0]*=s,e[1]*=s,e},e}function te(t,e,n,r,i,o){if(n){var s=d(e),u=y(e),l=r*n;null==i?(i=e+r*a,o=e-l/2):(i=ee(s,i),o=ee(s,o),(r>0?io)&&(i+=r*a));for(var c,f=i;r>0?f>o:f1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function re(t,e){return l(t[0]-e[0])=0;--a)o.point((f=c[a])[0],f[1]);else i(h.x,h.p.x,-1,o);h=h.p}c=(h=h.o).z,p=!p}while(!h.v);o.lineEnd()}}}function ae(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,R=D*N,L=R>r,B=k*A;if(g.add(f(B*D*y(R),E*I+B*d(R))),p+=L?N+D*a:N,L^S>=u^T>=u){var $=it(nt(w),nt(M));st($);var F=it(h,$);st(F);var z=(L^N>=0?-1:1)*j(F[2]);(l>z||l===z&&($[0]||$[1]))&&(v+=L^N>=0?1:-1)}}return(p<-n||p0){for(d||(o.polygonStart(),d=!0),o.lineStart(),t=0;t1&&2&i&&l.push(l.pop().concat(l.shift())),s.push(l.filter(ce))}return h}}function ce(t){return t.length>1}function fe(t,e){return((t=t.x)[0]<0?t[1]-i-n:i-t[1])-((e=e.x)[0]<0?e[1]-i-n:i-e[1])}Wt.invert=Wt;var de,he,pe,ve,ge=le((function(){return!0}),(function(t){var e,o=NaN,a=NaN,s=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(u,f){var h=u>0?r:-r,p=l(u-o);l(p-r)0?i:-i),t.point(s,a),t.lineEnd(),t.lineStart(),t.point(h,a),t.point(u,a),e=0):s!==h&&p>=r&&(l(o-s)n?c((y(e)*(a=d(i))*y(r)-y(i)*(o=d(e))*y(t))/(o*a*s)):(e+i)/2}(o,a,u,f),t.point(s,a),t.lineEnd(),t.lineStart(),t.point(h,a),e=0),t.point(o=u,a=f),s=h},lineEnd:function(){t.lineEnd(),o=a=NaN},clean:function(){return 2-e}}}),(function(t,e,o,a){var s;if(null==t)s=o*i,a.point(-r,s),a.point(0,s),a.point(r,s),a.point(r,0),a.point(r,-s),a.point(0,-s),a.point(-r,-s),a.point(-r,0),a.point(-r,s);else if(l(t[0]-e[0])>n){var u=t[0]0,a=l(e)>n;function s(t,n){return d(t)*d(n)>e}function c(t,i,o){var a=[1,0,0],s=it(nt(t),nt(i)),u=rt(s,s),c=s[0],f=u-c*c;if(!f)return!o&&t;var d=e*u/f,h=-e*c/f,p=it(a,s),v=at(a,d);ot(v,at(s,h));var g=p,m=rt(v,g),y=rt(g,g),_=m*m-y*(rt(v,v)-1);if(!(_<0)){var x=b(_),w=at(g,(-m-x)/y);if(ot(w,v),w=et(w),!o)return w;var j,S=t[0],O=i[0],k=t[1],E=i[1];O0^w[1]<(l(w[0]-S)r^(S<=w[0]&&w[0]<=O)){var T=at(g,(-m+x)/y);return ot(T,v),[w,et(T)]}}}function f(e,n){var i=o?t:r-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return le(s,(function(t){var e,n,i,u,l;return{lineStart:function(){u=i=!1,l=1},point:function(d,h){var p,v=[d,h],g=s(d,h),m=o?g?0:f(d,h):g?f(d+(d<0?r:-r),h):0;if(!e&&(u=i=g)&&t.lineStart(),g!==i&&(!(p=c(e,v))||re(e,p)||re(v,p))&&(v[2]=1),g!==i)l=0,g?(t.lineStart(),p=c(v,e),t.point(p[0],p[1])):(p=c(e,v),t.point(p[0],p[1],2),t.lineEnd()),e=p;else if(a&&e&&o^g){var y;m&n||!(y=c(v,e,!0))||(l=0,o?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!g||e&&re(e,v)||t.point(v[0],v[1]),e=v,i=g,n=m},lineEnd:function(){i&&t.lineEnd(),e=null},clean:function(){return l|(u&&i)<<1}}}),(function(e,n,r,o){te(o,t,i,r,e,n)}),o?[0,-t]:[-r,t-r])}function ye(t,r,i,o){function a(e,n){return t<=e&&e<=i&&r<=n&&n<=o}function s(e,n,a,s){var l=0,c=0;if(null==e||(l=u(e,a))!==(c=u(n,a))||f(e,n)<0^a>0)do{s.point(0===l||3===l?t:i,l>1?o:r)}while((l=(l+a+4)%4)!==c);else s.point(n[0],n[1])}function u(e,o){return l(e[0]-t)0?0:3:l(e[0]-i)0?2:1:l(e[1]-r)0?1:0:o>0?3:2}function c(t,e){return f(t.x,e.x)}function f(t,e){var n=u(t,1),r=u(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(n){var u,l,f,d,h,p,v,g,m,y,_,b=n,x=ne(),w={point:j,lineStart:function(){w.point=S,l&&l.push(f=[]),y=!0,m=!1,v=g=NaN},lineEnd:function(){u&&(S(d,h),p&&m&&x.rejoin(),u.push(x.result())),w.point=j,m&&b.lineEnd()},polygonStart:function(){b=x,u=[],l=[],_=!0},polygonEnd:function(){var r=function(){for(var e=0,n=0,r=l.length;no&&(d-i)*(o-a)>(h-a)*(t-i)&&++e:h<=o&&(d-i)*(o-a)<(h-a)*(t-i)&&--e;return e}(),i=_&&r,a=(u=e.merge(u)).length;(i||a)&&(n.polygonStart(),i&&(n.lineStart(),s(null,null,1,n),n.lineEnd()),a&&oe(u,c,r,s,n),n.polygonEnd()),b=n,u=l=f=null}};function j(t,e){a(t,e)&&b.point(t,e)}function S(e,n){var s=a(e,n);if(l&&f.push([e,n]),y)d=e,h=n,p=s,y=!1,s&&(b.lineStart(),b.point(e,n));else if(s&&m)b.point(e,n);else{var u=[v=Math.max(-1e9,Math.min(1e9,v)),g=Math.max(-1e9,Math.min(1e9,g))],c=[e=Math.max(-1e9,Math.min(1e9,e)),n=Math.max(-1e9,Math.min(1e9,n))];!function(t,e,n,r,i,o){var a,s=t[0],u=t[1],l=0,c=1,f=e[0]-s,d=e[1]-u;if(a=n-s,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>c)return;a>l&&(l=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=d,d<0){if(a0){if(a>c)return;a>l&&(l=a)}if(a=o-u,d||!(a<0)){if(a/=d,d<0){if(a>c)return;a>l&&(l=a)}else if(d>0){if(a0&&(t[0]=s+l*f,t[1]=u+l*d),c<1&&(e[0]=s+c*f,e[1]=u+c*d),!0}}}}}(u,c,t,r,i,o)?s&&(b.lineStart(),b.point(e,n),_=!1):(m||(b.lineStart(),b.point(u[0],u[1])),b.point(c[0],c[1]),s||b.lineEnd(),_=!1)}v=e,g=n,m=s}return w}}var _e={sphere:O,point:O,lineStart:function(){_e.point=xe,_e.lineEnd=be},lineEnd:O,polygonStart:O,polygonEnd:O};function be(){_e.point=_e.lineEnd=O}function xe(t,e){he=t*=u,pe=y(e*=u),ve=d(e),_e.point=we}function we(t,e){t*=u;var n=y(e*=u),r=d(e),i=l(t-he),o=d(i),a=r*y(i),s=ve*n-pe*r*o,c=pe*n+ve*r*o;de.add(f(b(a*a+s*s),c)),he=t,pe=n,ve=r}function je(t){return de=new e.Adder,P(t,_e),+de}var Se=[null,null],Oe={type:"LineString",coordinates:Se};function ke(t,e){return Se[0]=t,Se[1]=e,je(Oe)}var Ee={Feature:function(t,e){return Me(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0&&(i=ke(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<1e-12*i)return!0;n=r}return!1}function Ae(t,e){return!!ue(t.map(Ie),Ne(e))}function Ie(t){return(t=t.map(Ne)).pop(),t}function Ne(t){return[t[0]*u,t[1]*u]}function De(t,r,i){var o=e.range(t,r-n,i).concat(r);return function(t){return o.map((function(e){return[t,e]}))}}function Re(t,r,i){var o=e.range(t,r-n,i).concat(r);return function(t){return o.map((function(e){return[e,t]}))}}function Le(){var t,r,i,o,a,s,u,c,f,d,p,v,g=10,m=g,y=90,_=360,b=2.5;function x(){return{type:"MultiLineString",coordinates:w()}}function w(){return e.range(h(o/y)*y,i,y).map(p).concat(e.range(h(c/_)*_,u,_).map(v)).concat(e.range(h(r/g)*g,t,g).filter((function(t){return l(t%y)>n})).map(f)).concat(e.range(h(s/m)*m,a,m).filter((function(t){return l(t%_)>n})).map(d))}return x.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},x.outline=function(){return{type:"Polygon",coordinates:[p(o).concat(v(u).slice(1),p(i).reverse().slice(1),v(c).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.extentMajor(t).extentMinor(t):x.extentMinor()},x.extentMajor=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],c=+t[0][1],u=+t[1][1],o>i&&(t=o,o=i,i=t),c>u&&(t=c,c=u,u=t),x.precision(b)):[[o,c],[i,u]]},x.extentMinor=function(e){return arguments.length?(r=+e[0][0],t=+e[1][0],s=+e[0][1],a=+e[1][1],r>t&&(e=r,r=t,t=e),s>a&&(e=s,s=a,a=e),x.precision(b)):[[r,s],[t,a]]},x.step=function(t){return arguments.length?x.stepMajor(t).stepMinor(t):x.stepMinor()},x.stepMajor=function(t){return arguments.length?(y=+t[0],_=+t[1],x):[y,_]},x.stepMinor=function(t){return arguments.length?(g=+t[0],m=+t[1],x):[g,m]},x.precision=function(e){return arguments.length?(b=+e,f=De(s,a,90),d=Re(r,t,b),p=De(c,u,90),v=Re(o,i,b),x):b},x.extentMajor([[-180,-90+n],[180,90-n]]).extentMinor([[-180,-80-n],[180,80+n]])}var Be,$e,Fe,ze,Ve=function(t){return t},qe=new e.Adder,He=new e.Adder,Ge={point:O,lineStart:O,lineEnd:O,polygonStart:function(){Ge.lineStart=Ue,Ge.lineEnd=Xe},polygonEnd:function(){Ge.lineStart=Ge.lineEnd=Ge.point=O,qe.add(l(He)),He=new e.Adder},result:function(){var t=qe/2;return qe=new e.Adder,t}};function Ue(){Ge.point=Ye}function Ye(t,e){Ge.point=We,Be=Fe=t,$e=ze=e}function We(t,e){He.add(ze*t-Fe*e),Fe=t,ze=e}function Xe(){We(Be,$e)}var Ke,Ze,Qe,Je,tn=1/0,en=tn,nn=-tn,rn=nn,on={point:function(t,e){tnn&&(nn=t),ern&&(rn=e)},lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var t=[[tn,en],[nn,rn]];return nn=rn=-(en=tn=1/0),t}},an=0,sn=0,un=0,ln=0,cn=0,fn=0,dn=0,hn=0,pn=0,vn={point:gn,lineStart:mn,lineEnd:bn,polygonStart:function(){vn.lineStart=xn,vn.lineEnd=wn},polygonEnd:function(){vn.point=gn,vn.lineStart=mn,vn.lineEnd=bn},result:function(){var t=pn?[dn/pn,hn/pn]:fn?[ln/fn,cn/fn]:un?[an/un,sn/un]:[NaN,NaN];return an=sn=un=ln=cn=fn=dn=hn=pn=0,t}};function gn(t,e){an+=t,sn+=e,++un}function mn(){vn.point=yn}function yn(t,e){vn.point=_n,gn(Qe=t,Je=e)}function _n(t,e){var n=t-Qe,r=e-Je,i=b(n*n+r*r);ln+=i*(Qe+t)/2,cn+=i*(Je+e)/2,fn+=i,gn(Qe=t,Je=e)}function bn(){vn.point=gn}function xn(){vn.point=jn}function wn(){Sn(Ke,Ze)}function jn(t,e){vn.point=Sn,gn(Ke=Qe=t,Ze=Je=e)}function Sn(t,e){var n=t-Qe,r=e-Je,i=b(n*n+r*r);ln+=i*(Qe+t)/2,cn+=i*(Je+e)/2,fn+=i,dn+=(i=Je*t-Qe*e)*(Qe+t),hn+=i*(Je+e),pn+=3*i,gn(Qe=t,Je=e)}function On(t){this._context=t}On.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,a)}},result:O};var kn,En,Cn,Mn,Tn,Pn=new e.Adder,An={point:O,lineStart:function(){An.point=In},lineEnd:function(){kn&&Nn(En,Cn),An.point=O},polygonStart:function(){kn=!0},polygonEnd:function(){kn=null},result:function(){var t=+Pn;return Pn=new e.Adder,t}};function In(t,e){An.point=Nn,En=Mn=t,Cn=Tn=e}function Nn(t,e){Mn-=t,Tn-=e,Pn.add(b(Mn*Mn+Tn*Tn)),Mn=t,Tn=e}function Dn(){this._string=[]}function Rn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Ln(t){return function(e){var n=new Bn;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Bn(){}function $n(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),P(n,t.stream(on)),e(on.result()),null!=r&&t.clipExtent(r),t}function Fn(t,e,n){return $n(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])}),n)}function zn(t,e,n){return Fn(t,[[0,0],e],n)}function Vn(t,e,n){return $n(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function qn(t,e,n){return $n(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}Dn.prototype={_radius:4.5,_circle:Rn(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=Rn(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}},Bn.prototype={constructor:Bn,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()}};var Hn=d(30*u);function Gn(t,e){return+e?function(t,e){function r(i,o,a,s,u,c,d,h,p,v,g,m,y,_){var x=d-i,w=h-o,S=x*x+w*w;if(S>4*e&&y--){var O=s+v,k=u+g,E=c+m,C=b(O*O+k*k+E*E),M=j(E/=C),T=l(l(E)-1)e||l((x*N+w*D)/S-.5)>.3||s*v+u*g+c*m2?t[2]%360*u:0,A()):[y*s,_*s,x*s]},T.angle=function(t){return arguments.length?(w=t%360*u,A()):w*s},T.reflectX=function(t){return arguments.length?(j=t?-1:1,A()):j<0},T.reflectY=function(t){return arguments.length?(S=t?-1:1,A()):S<0},T.precision=function(t){return arguments.length?(a=Gn(l,M=t*t),I()):b(M)},T.fitExtent=function(t,e){return Fn(T,t,e)},T.fitSize=function(t,e){return zn(T,t,e)},T.fitWidth=function(t,e){return Vn(T,t,e)},T.fitHeight=function(t,e){return qn(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&P,A()}}function Kn(t){var e=0,n=r/3,i=Xn(t),o=i(e,n);return o.parallels=function(t){return arguments.length?i(e=t[0]*u,n=t[1]*u):[e*s,n*s]},o}function Zn(t,e){var i=y(t),o=(i+y(e))/2;if(l(o)0?e<-i+n&&(e=-i+n):e>i-n&&(e=i-n);var r=s/m(ar(e),a);return[r*y(a*t),s-r*d(a*t)]}return u.invert=function(t,e){var n=s-e,o=_(a)*b(t*t+n*n),u=f(t,l(n))*_(n);return n*a<0&&(u-=r*_(t)*_(n)),[u/a,2*c(m(s/o,1/a))-i]},u}function ur(t,e){return[t,e]}function lr(t,e){var i=d(t),o=t===e?y(t):(i-d(e))/(e-t),a=i/o+t;if(l(o)n&&--o>0);return[t/(.8707+(a=i*i)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),i]},yr.invert=er(j),_r.invert=er((function(t){return 2*c(t)})),br.invert=function(t,e){return[-e,2*c(p(t))-i]},t.geoAlbers=Jn,t.geoAlbersUsa=function(){var t,e,r,i,o,a,s=Jn(),u=Qn().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=Qn().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){a=[t,e]}};function f(t){var e=t[0],n=t[1];return a=null,r.point(e,n),a||(i.point(e,n),a)||(o.point(e,n),a)}function d(){return t=e=null,f}return f.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:s).invert(t)},f.stream=function(n){return t&&e===n?t:(r=[s.stream(e=n),u.stream(n),l.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++nAt(r[0],r[1])&&(r[1]=i[1]),At(i[0],r[1])>At(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(s=At(r[1],i[0]))>a&&(a=s,L=i[0],$=r[1])}return U=Y=null,L===1/0||B===1/0?[[NaN,NaN],[NaN,NaN]]:[[L,B],[$,F]]},t.geoCentroid=function(t){ut=lt=ct=ft=dt=ht=pt=vt=0,gt=new e.Adder,mt=new e.Adder,yt=new e.Adder,P(t,Dt);var r=+gt,i=+mt,o=+yt,a=v(r,i,o);return a<1e-12&&(r=ht,i=pt,o=vt,lt2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=br,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(/*! d3-array */"./node_modules/_d3-array@2.11.0@d3-array/dist/d3-array.js"))},"./node_modules/_d3-hexjson@1.1.1@d3-hexjson/build/d3-hexjson.js": /*!***********************************************************************!*\ !*** ./node_modules/_d3-hexjson@1.1.1@d3-hexjson/build/d3-hexjson.js ***! \***********************************************************************/ /*! no static exports found */function(t,e,n){!function(t,e){"use strict";function n(t,e,n,r){var i=0,o=0;switch(e){case"odd-r":o=t.rc%2==1?n:n/2,i=t.qc*n+o;break;case"even-r":o=t.rc%2==0?n:n/2,i=t.qc*n+o;break;case"odd-q":case"even-q":i=t.qc*r*1.5+r}return i}function r(t,e,n,r){var i=0,o=0;switch(e){case"odd-r":case"even-r":i=t.rc*r*1.5+r;break;case"odd-q":o=t.qc%2==1?n:n/2,i=t.rc*n+o;break;case"even-q":o=t.qc%2==0?n:n/2,i=t.rc*n+o}return i}t.renderHexJSON=function(t,i,o){var a=t.layout,s=[],u=0;Object.keys(t.hexes).forEach((function(e){t.hexes[e].key=e,s.push(t.hexes[e])}));var l=e.max(s,(function(t){return+t.q})),c=e.min(s,(function(t){return+t.q})),f=e.max(s,(function(t){return+t.r})),d=e.min(s,(function(t){return+t.r})),h=l-c+1,p=f-d+1,v=(u="odd-r"===a||"even-r"===a?e.min([i/((h+.5)*Math.sqrt(3)),o/(1.5*(p+1/3))]):e.min([o/((p+.5)*Math.sqrt(3)),i/(1.5*(h+1/3))]))*Math.sqrt(3),g=function(t,e,n){var r=[];switch(t){case"odd-r":case"even-r":r.push({x:0,y:0-n}),r.push({x:0+.5*e,y:0-.5*n}),r.push({x:0+.5*e,y:0+.5*n}),r.push({x:0,y:0+n}),r.push({x:0-.5*e,y:0+.5*n}),r.push({x:0-.5*e,y:0-.5*n});break;case"odd-q":case"even-q":r.push({x:0-n,y:0}),r.push({x:0-.5*n,y:0-.5*e}),r.push({x:0+.5*n,y:0-.5*e}),r.push({x:0+n,y:0}),r.push({x:0+.5*n,y:0+.5*e}),r.push({x:0-.5*n,y:0+.5*e})}return r}(a,v,u),m=function(t){var e="";return t.forEach((function(t){e+=t.x+","+t.y+" "})),e.substring(0,e.length-1)}(g);return s.forEach((function(t){t.qc=t.q-c,t.rc=f-t.r,t.x=n(t,a,v,u),t.y=r(t,a,v,u),t.vertices=g,t.points=m})),s},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,o,a,s=e.max(r,(function(t){return+t.q})),u=e.min(r,(function(t){return+t.q})),l=e.max(r,(function(t){return+t.r})),c=e.min(r,(function(t){return+t.r}));for(i=u;i<=s;i++)for(o=c;o<=l;o++)a="Q"+i+"R"+o,n.hexes[a]={q:i,r:o};return n},t.getBoundaryDotsForHexJSON=function(t,i,o,a){var s=[],u=t.layout;Object.keys(t.hexes).forEach((function(e){s.push(t.hexes[e])}));var l,c=e.max(s,(function(t){return+t.q})),f=e.min(s,(function(t){return+t.q})),d=e.max(s,(function(t){return+t.r})),h=e.min(s,(function(t){return+t.r})),p=c-f+1,v=d-h+1,g=(l="odd-r"===u||"even-r"===u?e.min([i/((p+.5)*Math.sqrt(3)),o/(1.5*(v+1/3))]):e.min([o/((v+.5)*Math.sqrt(3)),i/(1.5*(p+1/3))]))*Math.sqrt(3),m=[],y=l*l*4,_=s.length;if(_>1){s.forEach((function(t){t.qc=t.q-f,t.rc=d-t.r,t.x=n(t,u,g,l),t.y=r(t,u,g,l)}));for(var b=0;b<_-1;b++)for(var x=b+1;x<_;x++){var w=s[b],j=s[x];if(w[a]!==j[a]&&Math.abs(w.q-j.q)<=1&&Math.abs(w.r-j.r)<=1&&(w.x-j.x)*(w.x-j.x)+(w.y-j.y)*(w.y-j.y)1){s.forEach((function(t){t.qc=t.q-f,t.rc=d-t.r,t.x=n(t,u,g,l),t.y=r(t,u,g,l)}));for(var b=0;b<_-1;b++)for(var x=b+1;x<_;x++){var w=s[b],j=s[x];if(w[a]!==j[a]&&Math.abs(w.q-j.q)<=1&&Math.abs(w.r-j.r)<=1&&(w.x-j.x)*(w.x-j.x)+(w.y-j.y)*(w.y-j.y)=0;)e+=n[r].value;else e=1;t.value=e}function o(t,e){var n,r,i,o,s,c=new l(t),f=+t.value&&(c.value=t.value),d=[c];for(null==e&&(e=a);n=d.pop();)if(f&&(n.value=+n.data.value),(i=e(n.data))&&(s=i.length))for(n.children=new Array(s),o=s-1;o>=0;--o)d.push(r=n.children[o]=new l(i[o])),r.parent=n,r.depth=n.depth+1;return c.eachBefore(u)}function a(t){return t.children}function s(t){t.data=t.data.data}function u(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function l(t){this.data=t,this.depth=this.height=0,this.parent=null}l.prototype=o.prototype={constructor:l,count:function(){return this.eachAfter(i)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum: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}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path: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;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return o(this).eachBefore(s)}};var c=Array.prototype.slice;function f(t){for(var e,n,r=0,i=(t=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}(c.call(t))).length,o=[];r0&&n*n>r*r+i*i}function v(t,e){for(var n=0;n(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function b(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 x(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function w(t){this._=t,this.next=null,this.previous=null}function j(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,s,u,l,c,d;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;_(n,e,r=t[2]),e=new w(e),n=new w(n),r=new w(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;sd&&(d=s),g=c*c*v,(h=Math.max(d/g,g/f))>p){c-=s;break}p=h}m.push(a={value:c,dice:u1?e:1)},n}(G),W=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,u,l,c,f=-1,d=a.length,h=t.value;++f1?e:1)},n}(G);t.cluster=function(){var t=e,i=1,o=1,a=!1;function s(e){var s,u=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(n,0)/t.length}(i),e.y=function(t){return 1+t.reduce(r,0)}(i)):(e.x=s?u+=t(e,s):0,e.y=0,s=e)}));var l=function(t){for(var e;e=t.children;)t=e[0];return t}(e),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),f=l.x-t(l,c)/2,d=c.x+t(c,l)/2;return e.eachAfter(a?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*o}:function(t){t.x=(t.x-f)/(d-f)*i,t.y=(1-(e.y?t.y/e.y:1))*o})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(a=!1,i=+t[0],o=+t[1],s):a?null:[i,o]},s.nodeSize=function(t){return arguments.length?(a=!0,i=+t[0],o=+t[1],s):a?[i,o]:null},s},t.hierarchy=o,t.pack=function(){var t=null,e=1,n=1,r=k;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(M(t)).eachAfter(T(r,.5)).eachBefore(P(1)):i.eachBefore(M(C)).eachAfter(T(k,1)).eachAfter(T(r,i.r/Math.min(e,n))).eachBefore(P(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=S(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:E(+t),i):r},i},t.packEnclose=f,t.packSiblings=function(t){return j(t),t},t.partition=function(){var t=1,e=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/o,i.eachBefore(function(t,e){return function(r){r.children&&I(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=O(e),n):t},n.parentId=function(t){return arguments.length?(e=O(t),n):e},n},t.tree=function(){var t=B,e=1,n=1,r=null;function i(i){var u=function(t){for(var e,n,r,i,o,a=new q(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new q(r[i],i)),n.parent=e;return(a.parent=new q(null,0)).children=[a],a}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(a),r)i.eachBefore(s);else{var l=i,c=i,f=i;i.eachBefore((function(t){t.xc.x&&(c=t),t.depth>f.depth&&(f=t)}));var d=l===c?1:t(l,c)/2,h=d-l.x,p=e/(c.x+d+h),v=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+h)*p,t.y=t.depth*v}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,u=o.parent.children[0],l=o.m,c=a.m,f=s.m,d=u.m;s=F(s),o=$(o),s&&o;)u=$(u),(a=F(a)).a=e,(i=s.z+f-o.z-l+t(s._,o._))>0&&(z(V(s,e,r),e,i),l+=i,c+=i),f+=s.m,l+=o.m,d+=u.m,c+=a.m;s&&!F(a)&&(a.t=s,a.m+=f-c),o&&!$(u)&&(u.t=o,u.m+=l-d,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},t.treemap=function(){var t=Y,e=!1,n=1,r=1,i=[0],o=k,a=k,s=k,u=k,l=k;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(A),t}function f(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,f=e.x1-n,d=e.y1-n;f=n-1){var c=s[e];return c.x0=i,c.y0=o,c.x1=a,void(c.y1=u)}for(var f=l[e],d=r/2+f,h=e+1,p=n-1;h>>1;l[v]u-o){var y=(i*m+a*g)/r;t(e,h,g,i,o,y,u),t(h,n,m,y,o,a,u)}else{var _=(o*m+u*g)/r;t(e,h,g,i,o,a,_),t(h,n,m,i,_,a,u)}}(0,u,t.value,e,n,r,i)},t.treemapDice=I,t.treemapResquarify=W,t.treemapSlice=H,t.treemapSliceDice=function(t,e,n,r,i){(1&t.depth?H:I)(t,e,n,r,i)},t.treemapSquarify=Y,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js": /*!*************************************************************!*\ !*** ./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js ***! \*************************************************************/ /*! no static exports found */function(t,e,n){!function(t){"use strict";var e=Math.PI,n=2*e,r=n-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new i}i.prototype=o.prototype={constructor:i,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,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,r,i,o){t=+t,n=+n,r=+r,i=+i,o=+o;var a=this._x1,s=this._y1,u=r-t,l=i-n,c=a-t,f=s-n,d=c*c+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>1e-6)if(Math.abs(f*u-l*c)>1e-6&&o){var h=r-a,p=i-s,v=u*u+l*l,g=h*h+p*p,m=Math.sqrt(v),y=Math.sqrt(d),_=o*Math.tan((e-Math.acos((v+d-g)/(2*m*y)))/2),b=_/y,x=_/m;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*c)+","+(n+b*f)),this._+="A"+o+","+o+",0,0,"+ +(f*h>c*p)+","+(this._x1=t+x*u)+","+(this._y1=n+x*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,i,o,a,s,u){t=+t,i=+i,u=!!u;var l=(o=+o)*Math.cos(a),c=o*Math.sin(a),f=t+l,d=i+c,h=1^u,p=u?a-s:s-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+f+","+d),o&&(p<0&&(p=p%n+n),p>r?this._+="A"+o+","+o+",0,1,"+h+","+(t-l)+","+(i-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=f)+","+(this._y1=d):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=e)+","+h+","+(this._x1=t+o*Math.cos(s))+","+(this._y1=i+o*Math.sin(s))))},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._}},t.path=o,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-path@2.0.0@d3-path/dist/d3-path.js": /*!*************************************************************!*\ !*** ./node_modules/_d3-path@2.0.0@d3-path/dist/d3-path.js ***! \*************************************************************/ /*! no static exports found */function(t,e,n){!function(t){"use strict";var e=Math.PI,n=2*e,r=n-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new i}i.prototype=o.prototype={constructor:i,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,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,r,i,o){t=+t,n=+n,r=+r,i=+i,o=+o;var a=this._x1,s=this._y1,u=r-t,l=i-n,c=a-t,f=s-n,d=c*c+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>1e-6)if(Math.abs(f*u-l*c)>1e-6&&o){var h=r-a,p=i-s,v=u*u+l*l,g=h*h+p*p,m=Math.sqrt(v),y=Math.sqrt(d),_=o*Math.tan((e-Math.acos((v+d-g)/(2*m*y)))/2),b=_/y,x=_/m;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*c)+","+(n+b*f)),this._+="A"+o+","+o+",0,0,"+ +(f*h>c*p)+","+(this._x1=t+x*u)+","+(this._y1=n+x*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,i,o,a,s,u){t=+t,i=+i,u=!!u;var l=(o=+o)*Math.cos(a),c=o*Math.sin(a),f=t+l,d=i+c,h=1^u,p=u?a-s:s-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+f+","+d),o&&(p<0&&(p=p%n+n),p>r?this._+="A"+o+","+o+",0,1,"+h+","+(t-l)+","+(i-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=f)+","+(this._y1=d):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=e)+","+h+","+(this._x1=t+o*Math.cos(s))+","+(this._y1=i+o*Math.sin(s))))},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._}},t.path=o,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js": /*!*******************************************************************!*\ !*** ./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js ***! \*******************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js");!function(t,e,n,i){"use strict";function o(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}function u(t,e){return c(t.source,e.source)||t.index-e.index}function l(t,e){return c(t.target,e.target)||t.index-e.index}function c(t,e){return t.y0-e.y0}function f(t){return t.value}function d(t){return t.index}function h(t){return t.nodes}function p(t){return t.links}function v(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function g(t){return[t.source.x1,t.y0]}function m(t){return[t.target.x0,t.y1]}t.sankey=function(){var t,i=0,o=0,g=1,m=1,y=24,_=8,b=d,x=a,w=h,j=p,S=6;function O(){var t={nodes:w.apply(null,arguments),links:j.apply(null,arguments)};return k(t),E(t),C(t),M(t),T(t),t}function k(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=n.map(t.nodes,b);t.links.forEach((function(t,n){t.index=n;var r=t.source,i=t.target;"object"!=typeof r&&(r=t.source=v(e,r)),"object"!=typeof i&&(i=t.target=v(e,i)),r.sourceLinks.push(t),i.targetLinks.push(t)}))}function E(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,f),e.sum(t.targetLinks,f))}))}function C(t){var e,n,r,o=t.nodes.length;for(e=t.nodes,n=[],r=0;e.length;++r,e=n,n=[]){if(r>o)throw new Error("circular link");e.forEach((function(t){t.depth=r,t.sourceLinks.forEach((function(t){n.indexOf(t.target)<0&&n.push(t.target)}))}))}for(e=t.nodes,n=[],r=0;e.length;++r,e=n,n=[]){if(r>o)throw new Error("circular link");e.forEach((function(t){t.height=r,t.targetLinks.forEach((function(t){n.indexOf(t.source)<0&&n.push(t.source)}))}))}var a=(g-i-y)/(r-1);t.nodes.forEach((function(t){t.x1=(t.x0=i+Math.max(0,Math.min(r-1,Math.floor(x.call(null,t,r))))*a)+y}))}function M(i){var a,s=n.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(i.nodes).map((function(t){return t.values}));a=e.min(s,(function(t){return(m-o-(t.length-1)*_)/e.sum(t,f)})),s.forEach((function(e){null!=t&&e.sort(t),e.forEach((function(t,e){t.y1=(t.y0=e)+t.value*a}))})),i.links.forEach((function(t){t.width=t.value*a})),g();for(var d=.9,h=S;h>0;--h,d*=.9)v(d),g(),p(d),g();function p(t){s.forEach((function(e){e.forEach((function(e){var n,i,o,a,s=e.y0;try{for(var u=r.__values(e.sourceLinks.sort(l)),c=u.next();!c.done;c=u.next()){var f=c.value,d=f.target,h=f.width,p=f.value;if(p>0){var v=0;try{for(var g=(o=void 0,r.__values(d.targetLinks)),m=g.next();!m.done;m=g.next()){var y=m.value,b=y.source,x=y.width;if(b===e)break;v+=x+_/2}}catch(t){o={error:t}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}v=(s-v-d.y0)*t*(p/Math.min(e.value,d.value)),d.y0+=v,d.y1+=v}s+=h+_/2}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}))}))}function v(t){s.slice().reverse().forEach((function(e){e.forEach((function(e){var n,i,o,a,s=e.y0;try{for(var l=r.__values(e.targetLinks.sort(u)),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.source,h=f.width,p=f.value;if(p>0){var v=0;try{for(var g=(o=void 0,r.__values(d.sourceLinks)),m=g.next();!m.done;m=g.next()){var y=m.value,b=y.target,x=y.width;if(b===e)break;v+=x+_/2}}catch(t){o={error:t}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}v=(s-v-d.y0)*t*(p/Math.min(e.value,d.value)),d.y0+=v,d.y1+=v}s+=h+_/2}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}))}))}function g(){s.forEach((function(e){var n,r,i,a=o,s=e.length;for(void 0===t&&e.sort(c),i=0;i0&&(n.y0+=r,n.y1+=r),a=n.y1+_;if((r=a-_-m)>0)for(a=n.y0-=r,n.y1-=r,i=s-2;i>=0;--i)(r=(n=e[i]).y1+_-a)>0&&(n.y0-=r,n.y1-=r),a=n.y0}))}}function T(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(u)})),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}))}))}return O.update=function(t){return T(t),t},O.nodeId=function(t){return arguments.length?(b="function"==typeof t?t:s(t),O):b},O.nodeAlign=function(t){return arguments.length?(x="function"==typeof t?t:s(t),O):x},O.nodeSort=function(e){return arguments.length?(t=e,O):t},O.nodeWidth=function(t){return arguments.length?(y=+t,O):y},O.nodePadding=function(t){return arguments.length?(_=+t,O):_},O.nodes=function(t){return arguments.length?(w="function"==typeof t?t:s(t),O):w},O.links=function(t){return arguments.length?(j="function"==typeof t?t:s(t),O):j},O.size=function(t){return arguments.length?(i=o=0,g=+t[0],m=+t[1],O):[g-i,m-o]},O.extent=function(t){return arguments.length?(i=+t[0][0],g=+t[1][0],o=+t[0][1],m=+t[1][1],O):[[i,o],[g,m]]},O.iterations=function(t){return arguments.length?(S=+t,O):S},O},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,o)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return i.linkHorizontal().source(g).target(m)},Object.defineProperty(t,"__esModule",{value:!0})}(e,n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"),n(/*! d3-collection */"./node_modules/_d3-collection@1.0.7@d3-collection/dist/d3-collection.js"),n(/*! d3-shape */"./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js"))},"./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js": /*!****************************************************************!*\ !*** ./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js ***! \****************************************************************/ /*! no static exports found */function(t,e,n){!function(t,e){"use strict";function n(t){return function(){return t}}var r=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,u=Math.sin,l=Math.sqrt,c=Math.PI,f=c/2,d=2*c;function h(t){return t>1?0:t<-1?c:Math.acos(t)}function p(t){return t>=1?f:t<=-1?-f:Math.asin(t)}function v(t){return t.innerRadius}function g(t){return t.outerRadius}function m(t){return t.startAngle}function y(t){return t.endAngle}function _(t){return t&&t.padAngle}function b(t,e,n,r,i,o,a,s){var u=n-t,l=r-e,c=a-i,f=s-o,d=f*u-c*l;if(!(d*d<1e-12))return[t+(d=(c*(e-o)-f*(t-i))/d)*u,e+d*l]}function x(t,e,n,r,i,o,s){var u=t-n,c=e-r,f=(s?o:-o)/l(u*u+c*c),d=f*c,h=-f*u,p=t+d,v=e+h,g=n+d,m=r+h,y=(p+g)/2,_=(v+m)/2,b=g-p,x=m-v,w=b*b+x*x,j=i-o,S=p*m-g*v,O=(x<0?-1:1)*l(a(0,j*j*w-S*S)),k=(S*x-b*O)/w,E=(-S*b-x*O)/w,C=(S*x+b*O)/w,M=(-S*b+x*O)/w,T=k-y,P=E-_,A=C-y,I=M-_;return T*T+P*P>A*A+I*I&&(k=C,E=M),{cx:k,cy:E,x01:-d,y01:-h,x11:k*(i/j-1),y11:E*(i/j-1)}}function w(t){this._context=t}function j(t){return new w(t)}function S(t){return t[0]}function O(t){return t[1]}function k(){var t=S,r=O,i=n(!0),o=null,a=j,s=null;function u(n){var u,l,c,f=n.length,d=!1;for(null==o&&(s=a(c=e.path())),u=0;u<=f;++u)!(u=f;--d)l.point(m[d],y[d]);l.lineEnd(),l.areaEnd()}g&&(m[c]=+t(h,c,n),y[c]=+i(h,c,n),l.point(r?+r(h,c,n):m[c],o?+o(h,c,n):y[c]))}if(p)return l=null,p+""||null}function f(){return k().defined(a).curve(u).context(s)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:n(+t),c):r},c.y=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),o=null,c):i},c.y0=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),c):i},c.y1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:n(+t),c):o},c.lineX0=c.lineY0=function(){return f().x(t).y(i)},c.lineY1=function(){return f().x(t).y(o)},c.lineX1=function(){return f().x(r).y(i)},c.defined=function(t){return arguments.length?(a="function"==typeof t?t:n(!!t),c):a},c.curve=function(t){return arguments.length?(u=t,null!=s&&(l=u(s)),c):u},c.context=function(t){return arguments.length?(null==t?s=l=null:l=u(s=t),c):s},c}function C(t,e){return et?1:e>=t?0:NaN}function M(t){return t}w.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)}}};var T=A(j);function P(t){this._curve=t}function A(t){function e(e){return new P(t(e))}return e._curve=t,e}function I(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(A(t)):e()._curve},t}function N(){return I(k().curve(T))}function D(){var t=E().curve(T),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return I(n())},delete t.lineX0,t.lineEndAngle=function(){return I(r())},delete t.lineX1,t.lineInnerRadius=function(){return I(i())},delete t.lineY0,t.lineOuterRadius=function(){return I(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(A(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}P.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))}};var L=Array.prototype.slice;function B(t){return t.source}function $(t){return t.target}function F(t){var r=B,i=$,o=S,a=O,s=null;function u(){var n,u=L.call(arguments),l=r.apply(this,u),c=i.apply(this,u);if(s||(s=n=e.path()),t(s,+o.apply(this,(u[0]=l,u)),+a.apply(this,u),+o.apply(this,(u[0]=c,u)),+a.apply(this,u)),n)return s=null,n+""||null}return u.source=function(t){return arguments.length?(r=t,u):r},u.target=function(t){return arguments.length?(i=t,u):i},u.x=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),u):o},u.y=function(t){return arguments.length?(a="function"==typeof t?t:n(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u}function z(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function V(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function q(t,e,n,r,i){var o=R(e,n),a=R(e,n=(n+i)/2),s=R(r,n),u=R(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}var H={draw:function(t,e){var n=Math.sqrt(e/c);t.moveTo(n,0),t.arc(0,0,n,0,d)}},G={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()}},U=Math.sqrt(1/3),Y=2*U,W={draw:function(t,e){var n=Math.sqrt(e/Y),r=n*U;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},X=Math.sin(c/10)/Math.sin(7*c/10),K=Math.sin(d/10)*X,Z=-Math.cos(d/10)*X,Q={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=K*n,i=Z*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=d*o/5,s=Math.cos(a),u=Math.sin(a);t.lineTo(u*n,-s*n),t.lineTo(s*r-u*i,u*r+s*i)}t.closePath()}},J={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},tt=Math.sqrt(3),et={draw:function(t,e){var n=-Math.sqrt(e/(3*tt));t.moveTo(0,2*n),t.lineTo(-tt*n,-n),t.lineTo(tt*n,-n),t.closePath()}},nt=-.5,rt=Math.sqrt(3)/2,it=1/Math.sqrt(12),ot=3*(it/2+1),at={draw:function(t,e){var n=Math.sqrt(e/ot),r=n/2,i=n*it,o=r,a=n*it+n,s=-o,u=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,u),t.lineTo(nt*r-rt*i,rt*r+nt*i),t.lineTo(nt*o-rt*a,rt*o+nt*a),t.lineTo(nt*s-rt*u,rt*s+nt*u),t.lineTo(nt*r+rt*i,nt*i-rt*r),t.lineTo(nt*o+rt*a,nt*a-rt*o),t.lineTo(nt*s+rt*u,nt*u-rt*s),t.closePath()}},st=[H,G,W,J,Q,et,at];function ut(){}function lt(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 ct(t){this._context=t}function ft(t){this._context=t}function dt(t){this._context=t}function ht(t,e){this._basis=new ct(t),this._beta=e}ct.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:lt(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:lt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={areaStart:ut,areaEnd:ut,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:lt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},dt.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(){(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;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:lt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.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],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var pt=function t(e){function n(t){return 1===e?new ct(t):new ht(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function vt(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 gt(t,e){this._context=t,this._k=(1-e)/6}gt.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:vt(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:vt(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}};var mt=function t(e){function n(t){return new gt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:ut,areaEnd:ut,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:vt(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}};var _t=function t(e){function n(t){return new yt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function bt(t,e){this._context=t,this._k=(1-e)/6}bt.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:vt(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}};var xt=function t(e){function n(t){return new bt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function wt(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>1e-12){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*l+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function jt(t,e){this._context=t,this._alpha=e}jt.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,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._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(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}};var St=function t(e){function n(t){return e?new jt(t,e):new gt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ot(t,e){this._context=t,this._alpha=e}Ot.prototype={areaStart:ut,areaEnd:ut,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:wt(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}};var kt=function t(e){function n(t){return e?new Ot(t,e):new yt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Et(t,e){this._context=t,this._alpha=e}Et.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:wt(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}};var Ct=function t(e){function n(t){return e?new Et(t,e):new bt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Mt(t){this._context=t}function Tt(t){return t<0?-1:1}function Pt(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Tt(o)+Tt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function At(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function It(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function Nt(t){this._context=t}function Dt(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Lt(t){this._context=t}function Bt(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o=0;)n[e]=e;return n}function Vt(t,e){return t[e]}function qt(t){var e=t.map(Ht);return zt(t).sort((function(t,n){return e[t]-e[n]}))}function Ht(t){for(var e,n=-1,r=0,i=t.length,o=-1/0;++no&&(o=e,r=n);return r}function Gt(t){var e=t.map(Ut);return zt(t).sort((function(t,n){return e[t]-e[n]}))}function Ut(t){for(var e,n=0,r=-1,i=t.length;++r=0&&(this._t=1-this._t,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:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},t.arc=function(){var t=v,a=g,w=n(0),j=null,S=m,O=y,k=_,E=null;function C(){var n,v,g=+t.apply(this,arguments),m=+a.apply(this,arguments),y=S.apply(this,arguments)-f,_=O.apply(this,arguments)-f,C=r(_-y),M=_>y;if(E||(E=n=e.path()),m1e-12)if(C>d-1e-12)E.moveTo(m*o(y),m*u(y)),E.arc(0,0,m,y,_,!M),g>1e-12&&(E.moveTo(g*o(_),g*u(_)),E.arc(0,0,g,_,y,M));else{var T,P,A=y,I=_,N=y,D=_,R=C,L=C,B=k.apply(this,arguments)/2,$=B>1e-12&&(j?+j.apply(this,arguments):l(g*g+m*m)),F=s(r(m-g)/2,+w.apply(this,arguments)),z=F,V=F;if($>1e-12){var q=p($/g*u(B)),H=p($/m*u(B));(R-=2*q)>1e-12?(N+=q*=M?1:-1,D-=q):(R=0,N=D=(y+_)/2),(L-=2*H)>1e-12?(A+=H*=M?1:-1,I-=H):(L=0,A=I=(y+_)/2)}var G=m*o(A),U=m*u(A),Y=g*o(D),W=g*u(D);if(F>1e-12){var X,K=m*o(I),Z=m*u(I),Q=g*o(N),J=g*u(N);if(C1e-12?V>1e-12?(T=x(Q,J,G,U,m,V,M),P=x(K,Z,Y,W,m,V,M),E.moveTo(T.cx+T.x01,T.cy+T.y01),V1e-12&&R>1e-12?z>1e-12?(T=x(Y,W,K,Z,g,-z,M),P=x(G,U,Q,J,g,-z,M),E.lineTo(T.cx+T.x01,T.cy+T.y01),z0&&(p+=f);for(null!=e?v.sort((function(t,n){return e(g[t],g[n])})):null!=r&&v.sort((function(t,e){return r(n[t],n[e])})),s=0,l=p?(y-h*b)/p:0;s0?f*l:0)+b,g[u]={data:n[u],index:s,value:f,startAngle:m,endAngle:c,padAngle:_};return g}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,r=null,s):e},s.sort=function(t){return arguments.length?(r=t,e=null,s):r},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),s):i},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),s):o},s.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:n(+t),s):a},s},t.pointRadial=R,t.radialArea=D,t.radialLine=N,t.stack=function(){var t=n([]),e=zt,r=Ft,i=Vt;function o(n){var o,a,s=t.apply(this,arguments),u=n.length,l=s.length,c=new Array(l);for(o=0;o0)for(var n,r,i,o,a,s,u=0,l=t[e[0]].length;u0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},t.stackOffsetExpand=function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a0)){if(o/=d,d<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=r-u,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>c&&(c=o)}else if(d>0){if(o0)){if(o/=h,h<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=i-l,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>c&&(c=o)}else if(h>0){if(o0||f<1)||(c>0&&(t[0]=[u+c*d,l+c*h]),f<1&&(t[1]=[u+f*d,l+f*h]),!0)}}}}}function h(t,e,n,r,i){var o=t[1];if(o)return!0;var a,s,u=t[0],l=t.left,c=t.right,f=l[0],d=l[1],h=c[0],p=c[1],v=(f+h)/2,g=(d+p)/2;if(p===d){if(v=r)return;if(f>h){if(u){if(u[1]>=i)return}else u=[v,n];o=[v,i]}else{if(u){if(u[1]1)if(f>h){if(u){if(u[1]>=i)return}else u=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(u){if(u[1]=r)return}else u=[e,a*e+s];o=[r,a*r+s]}else{if(u){if(u[0]=-D)){var h=u*u+l*l,p=c*c+f*f,v=(f*h-l*p)/d,g=(u*p-c*h)/d,b=y.pop()||new _;b.arc=t,b.site=i,b.x=v+a,b.y=(b.cy=g+s)+Math.sqrt(v*v+g*g),t.circle=b;for(var x=null,w=A._;w;)if(b.yN)s=s.L;else{if(!((i=o-M(s,a))>N)){r>-N?(e=s.P,n=s):i>-N?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){P[t.index]={site:t,halfedges:[]}}(t);var u=S(t);if(T.insert(e,u),e||n){if(e===n)return x(e),n=S(e.site),T.insert(u,n),u.edge=n.edge=l(e.site,u.site),b(e),void b(n);if(n){x(e),x(n);var c=e.site,d=c[0],h=c[1],p=t[0]-d,v=t[1]-h,g=n.site,m=g[0]-d,y=g[1]-h,_=2*(p*y-v*m),w=p*p+v*v,j=m*m+y*y,O=[(y*w-v*j)/_+d,(p*j-m*w)/_+h];f(n.edge,c,g,O),u.edge=l(c,t,null,O),n.edge=l(t,g,null,O),b(e),b(n)}else u.edge=l(e.site,u.site)}}function C(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],u=n[1],l=u-e;if(!l)return s;var c=s-r,f=1/o-1/l,d=c/l;return f?(-d+Math.sqrt(d*d-2*f*(c*c/(-2*l)-u+l/2+i-o/2)))/f+r:(r+s)/2}function M(t,e){var n=t.N;if(n)return C(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var T,P,A,I,N=1e-6,D=1e-12;function R(t,e){return e[1]-t[1]||e[0]-t[0]}function L(t,e){var n,r,o,a=t.sort(R).pop();for(I=[],P=new Array(t.length),T=new i,A=new i;;)if(o=m,a&&(!o||a[1]N||Math.abs(i[0][1]-i[1][1])>N)||delete I[o]}(s,u,l,f),function(t,e,n,r){var i,o,a,s,u,l,f,d,h,p,m,y,_=P.length,b=!0;for(i=0;i<_;++i)if(o=P[i]){for(a=o.site,s=(u=o.halfedges).length;s--;)I[u[s]]||u.splice(s,1);for(s=0,l=u.length;sN||Math.abs(y-h)>N)&&(u.splice(s,0,I.push(c(a,p,Math.abs(m-t)N?[t,Math.abs(d-t)N?[Math.abs(h-r)N?[n,Math.abs(d-n)N?[Math.abs(h-e)=s)return null;var u=t-i.site[0],l=e-i.site[1],c=u*u+l*l;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var u=t-s[0],l=e-s[1],f=u*u+l*l;f0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,a=t.node(o);a.in-=i,u(e,n,a)})),t.removeNode(i.v),a}function u(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)}},"./node_modules/_dagre@0.8.5@dagre/lib/layout.js": /*!*******************************************************!*\ !*** ./node_modules/_dagre@0.8.5@dagre/lib/layout.js ***! \*******************************************************/ /*! no static exports found */function(t,e,n){"use strict";var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./acyclic */"./node_modules/_dagre@0.8.5@dagre/lib/acyclic.js"),o=n(/*! ./normalize */"./node_modules/_dagre@0.8.5@dagre/lib/normalize.js"),a=n(/*! ./rank */"./node_modules/_dagre@0.8.5@dagre/lib/rank/index.js"),s=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").normalizeRanks,u=n(/*! ./parent-dummy-chains */"./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js"),l=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").removeEmptyRanks,c=n(/*! ./nesting-graph */"./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js"),f=n(/*! ./add-border-segments */"./node_modules/_dagre@0.8.5@dagre/lib/add-border-segments.js"),d=n(/*! ./coordinate-system */"./node_modules/_dagre@0.8.5@dagre/lib/coordinate-system.js"),h=n(/*! ./order */"./node_modules/_dagre@0.8.5@dagre/lib/order/index.js"),p=n(/*! ./position */"./node_modules/_dagre@0.8.5@dagre/lib/position/index.js"),v=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js"),g=n(/*! ./graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;t.exports=function(t,e){var n=e&&e.debugTiming?v.time:v.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new g({multigraph:!0,compound:!0}),n=k(t.graph());return e.setGraph(r.merge({},y,O(n,m),r.pick(n,_))),r.forEach(t.nodes(),(function(n){var i=k(t.node(n));e.setNode(n,r.defaults(O(i,b),x)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=k(t.edge(n));e.setEdge(n,r.merge({},j,O(i,w),r.pick(i,S)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.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){r.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(){i.run(t)})),e(" nestingGraph.run",(function(){c.run(t)})),e(" rank",(function(){a(v.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.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};v.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){l(t)})),e(" nestingGraph.cleanup",(function(){c.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.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(){o.run(t)})),e(" parentDummyChains",(function(){u(t)})),e(" addBorderSegments",(function(){f(t)})),e(" order",(function(){h(t)})),e(" insertSelfEdges",(function(){!function(t){var e=v.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){v.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){d.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.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,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){o.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.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){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function l(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),(function(e){l(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&l(n)})),e-=s,i-=u,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),a.width=n-e+s,a.height=o-i+u}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(v.intersectRect(o,n)),i.points.push(v.intersectRect(a,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.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))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],b=["width","height"],x={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],j={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},S=["labelpos"];function O(t,e){return r.mapValues(r.pick(t,e),Number)}function k(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js": /*!*******************************************************!*\ !*** ./node_modules/_dagre@0.8.5@dagre/lib/lodash.js ***! \*******************************************************/ /*! no static exports found */function(t,e,n){var r;try{r={cloneDeep:n(/*! lodash/cloneDeep */"./node_modules/_lodash@4.17.20@lodash/cloneDeep.js"),constant:n(/*! lodash/constant */"./node_modules/_lodash@4.17.20@lodash/constant.js"),defaults:n(/*! lodash/defaults */"./node_modules/_lodash@4.17.20@lodash/defaults.js"),each:n(/*! lodash/each */"./node_modules/_lodash@4.17.20@lodash/each.js"),filter:n(/*! lodash/filter */"./node_modules/_lodash@4.17.20@lodash/filter.js"),find:n(/*! lodash/find */"./node_modules/_lodash@4.17.20@lodash/find.js"),flatten:n(/*! lodash/flatten */"./node_modules/_lodash@4.17.20@lodash/flatten.js"),forEach:n(/*! lodash/forEach */"./node_modules/_lodash@4.17.20@lodash/forEach.js"),forIn:n(/*! lodash/forIn */"./node_modules/_lodash@4.17.20@lodash/forIn.js"),has:n(/*! lodash/has */"./node_modules/_lodash@4.17.20@lodash/has.js"),isUndefined:n(/*! lodash/isUndefined */"./node_modules/_lodash@4.17.20@lodash/isUndefined.js"),last:n(/*! lodash/last */"./node_modules/_lodash@4.17.20@lodash/last.js"),map:n(/*! lodash/map */"./node_modules/_lodash@4.17.20@lodash/map.js"),mapValues:n(/*! lodash/mapValues */"./node_modules/_lodash@4.17.20@lodash/mapValues.js"),max:n(/*! lodash/max */"./node_modules/_lodash@4.17.20@lodash/max.js"),merge:n(/*! lodash/merge */"./node_modules/_lodash@4.17.20@lodash/merge.js"),min:n(/*! lodash/min */"./node_modules/_lodash@4.17.20@lodash/min.js"),minBy:n(/*! lodash/minBy */"./node_modules/_lodash@4.17.20@lodash/minBy.js"),now:n(/*! lodash/now */"./node_modules/_lodash@4.17.20@lodash/now.js"),pick:n(/*! lodash/pick */"./node_modules/_lodash@4.17.20@lodash/pick.js"),range:n(/*! lodash/range */"./node_modules/_lodash@4.17.20@lodash/range.js"),reduce:n(/*! lodash/reduce */"./node_modules/_lodash@4.17.20@lodash/reduce.js"),sortBy:n(/*! lodash/sortBy */"./node_modules/_lodash@4.17.20@lodash/sortBy.js"),uniqueId:n(/*! lodash/uniqueId */"./node_modules/_lodash@4.17.20@lodash/uniqueId.js"),values:n(/*! lodash/values */"./node_modules/_lodash@4.17.20@lodash/values.js"),zipObject:n(/*! lodash/zipObject */"./node_modules/_lodash@4.17.20@lodash/zipObject.js")}}catch(t){}r||(r=window._),t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js": /*!**************************************************************!*\ !*** ./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js ***! \**************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};return r.forEach(t.children(),(function(n){!function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,(function(t){n(t,o+1)})),e[i]=o}(n,1)})),e}(t),o=r.max(r.values(n))-1,a=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var s=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(u){!function t(e,n,o,a,s,u,l){var c=e.children(l);if(c.length){var f=i.addBorderNode(e,"_bt"),d=i.addBorderNode(e,"_bb"),h=e.node(l);e.setParent(f,l),h.borderTop=f,e.setParent(d,l),h.borderBottom=d,r.forEach(c,(function(r){t(e,n,o,a,s,u,r);var i=e.node(r),c=i.borderTop?i.borderTop:r,h=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,v=c!==h?1:s-u[l]+1;e.setEdge(f,c,{weight:p,minlen:v,nestingEdge:!0}),e.setEdge(h,d,{weight:p,minlen:v,nestingEdge:!0})})),e.parent(l)||e.setEdge(n,f,{weight:0,minlen:s+u[l]})}else l!==n&&e.setEdge(n,l,{weight:0,minlen:o})}(t,e,a,s,o,n,u)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},"./node_modules/_dagre@0.8.5@dagre/lib/normalize.js": /*!**********************************************************!*\ !*** ./node_modules/_dagre@0.8.5@dagre/lib/normalize.js ***! \**********************************************************/ /*! no static exports found */function(t,e,n){"use strict";var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,u=e.w,l=t.node(u).rank,c=e.name,f=t.edge(e),d=f.labelRank;if(l!==s+1){for(t.removeEdge(e),o=0,++s;s0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;l+=t.weight*n}))),l}t.exports=function(t,e){for(var n=0,r=1;r=2),s=c.buildLayerMatrix(t);var g=o(t,s);g=t.barycenter)&&(i=e,o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),i.weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},"./node_modules/_dagre@0.8.5@dagre/lib/order/sort-subgraph.js": /*!********************************************************************!*\ !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/sort-subgraph.js ***! \********************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./barycenter */"./node_modules/_dagre@0.8.5@dagre/lib/order/barycenter.js"),o=n(/*! ./resolve-conflicts */"./node_modules/_dagre@0.8.5@dagre/lib/order/resolve-conflicts.js"),a=n(/*! ./sort */"./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js");t.exports=function t(e,n,s,u){var l=e.children(n),c=e.node(n),f=c?c.borderLeft:void 0,d=c?c.borderRight:void 0,h={};f&&(l=r.filter(l,(function(t){return t!==f&&t!==d})));var p=i(e,l);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);h[n.v]=i,r.has(i,"barycenter")&&(o=n,a=i,r.isUndefined(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a}));var v=o(p,s);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(v,h);var g=a(v,u);if(f&&(g.vs=r.flatten([f,g.vs,d],!0),e.predecessors(f).length)){var m=e.node(e.predecessors(f)[0]),y=e.node(e.predecessors(d)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+m.order+y.order)/(g.weight+2),g.weight+=2}return g}},"./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js": /*!***********************************************************!*\ !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js ***! \***********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ../util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,a=i.partition(t,(function(t){return r.has(t,"barycenter")})),s=a.lhs,u=r.sortBy(a.rhs,(function(t){return-t.i})),l=[],c=0,f=0,d=0;s.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),d=o(l,u,d),r.forEach(s,(function(t){d+=t.vs.length,l.push(t.vs),c+=t.barycenter*t.weight,f+=t.weight,d=o(l,u,d)}));var h={vs:r.flatten(l,!0)};return f&&(h.barycenter=c/f,h.weight=f),h}},"./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js": /*!********************************************************************!*\ !*** ./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js ***! \********************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||l>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,l=a[u],c=!0;n!==i.w;){if(r=t.node(n),c){for(;(l=a[u])!==s&&t.node(l).maxRanks)&&u(n,e,l)}))}))}return r.reduce(e,(function(e,n){var o,a=-1,s=0;return r.forEach(n,(function(r,u){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(o=t.node(l[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)})),n})),n}function u(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 l(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function c(t,e,n,i){var o={},a={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,a[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var u=i(t);if(u.length)for(var c=((u=r.sortBy(u,(function(t){return s[t]}))).length-1)/2,f=Math.floor(c),d=Math.ceil(c);f<=d;++f){var h=u[f];a[t]===t&&eu.lim&&(l=u,c=!0);var f=r.filter(e.edges(),(function(e){return c===y(0,t.node(e.v),l)&&c!==y(0,t.node(e.w),l)}));return r.minBy(f,(function(t){return o(e,t)}))}function m(t,e,n,i){var o=n.v,a=n.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),h(t),f(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=c,c.initLowLimValues=h,c.initCutValues=f,c.calcCutValue=d,c.leaveEdge=v,c.enterEdge=g,c.exchangeEdges=m},"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js": /*!**********************************************************!*\ !*** ./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js ***! \**********************************************************/ /*! no static exports found */function(t,e,n){"use strict";var r=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},"./node_modules/_dagre@0.8.5@dagre/lib/util.js": /*!*****************************************************!*\ !*** ./node_modules/_dagre@0.8.5@dagre/lib/util.js ***! \*****************************************************/ /*! no static exports found */function(t,e,n){"use strict";var r=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),i=n(/*! ./graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.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 i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,l=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},"./node_modules/_dagre@0.8.5@dagre/lib/version.js": /*!********************************************************!*\ !*** ./node_modules/_dagre@0.8.5@dagre/lib/version.js ***! \********************************************************/ /*! no static exports found */function(t,e){t.exports="0.8.5"},"./node_modules/_graphlib@2.1.8@graphlib/index.js": /*!********************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/index.js ***! \********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./lib */"./node_modules/_graphlib@2.1.8@graphlib/lib/index.js");t.exports={Graph:r.Graph,json:n(/*! ./lib/json */"./node_modules/_graphlib@2.1.8@graphlib/lib/json.js"),alg:n(/*! ./lib/alg */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/index.js"),version:r.version}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/components.js": /*!*********************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/components.js ***! \*********************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){e=[],o(t),e.length&&i.push(e)})),i}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js": /*!**************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js ***! \**************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],a={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,i,o,a,s){r.has(o,n)||(o[n]=!0,i||s.push(n),r.each(a(n),(function(n){t(e,n,i,o,a,s)})),i&&s.push(n))}(t,e,"post"===n,a,i,o)})),o}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra-all.js": /*!***********************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra-all.js ***! \***********************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./dijkstra */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js"),i=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,e,n)}),{})}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js": /*!*******************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js ***! \*******************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),i=n(/*! ../data/priority-queue */"./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js");t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},u=new i,l=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),l=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);l0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(l);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/find-cycles.js": /*!**********************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/find-cycles.js ***! \**********************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),i=n(/*! ./tarjan */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js");t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/floyd-warshall.js": /*!*************************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/floyd-warshall.js ***! \*************************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");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,o=e(n);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[t],i=e[n],a=o[n],s=r.distance+i.distance;s0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(c)throw new Error("Input graph is not connected: "+t);c=!0}t.nodeEdges(n).forEach(l)}return a}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js": /*!*****************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js ***! \*****************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t){var e=0,n=[],i={},o=[];return t.nodes().forEach((function(a){r.has(i,a)||function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))})),u.lowlink===u.index){var l,c=[];do{l=n.pop(),i[l].onStack=!1,c.push(l)}while(s!==l);o.push(c)}}(a)})),o}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js": /*!******************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js ***! \******************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))})),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},"./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js": /*!**************************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js ***! \**************************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.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},i.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)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].prioritya){var s=o;o=a,a=s}return o+""+a+""+(r.isUndefined(i)?"\0":i)}function u(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function l(t,e){return s(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},i.prototype.setNode=function(t,e){return r.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]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.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],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.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},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.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;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var o=n.parent(r);return void 0===o||e.hasNode(o)?(i[r]=o,o):o in i?i[o]:t(o)}(t))})),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},i.prototype.setEdge=function(){var t,e,n,i,a=!1,l=arguments[0];"object"==typeof l&&null!==l&&"v"in l?(t=l.v,e=l.w,n=l.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=l,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var c=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=i),this;if(!r.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?i:this._defaultEdgeLabelFn(t,e,n);var f=u(this._isDirected,t,e,n);return t=f.v,e=f.w,Object.freeze(f),this._edgeObjs[c]=f,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][c]=f,this._out[t][c]=f,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):s(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},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},"./node_modules/_graphlib@2.1.8@graphlib/lib/index.js": /*!************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/index.js ***! \************************************************************/ /*! no static exports found */function(t,e,n){t.exports={Graph:n(/*! ./graph */"./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js"),version:n(/*! ./version */"./node_modules/_graphlib@2.1.8@graphlib/lib/version.js")}},"./node_modules/_graphlib@2.1.8@graphlib/lib/json.js": /*!***********************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/json.js ***! \***********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),i=n(/*! ./graph */"./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js");function o(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function a(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.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(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}}},"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js": /*!*************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js ***! \*************************************************************/ /*! no static exports found */function(t,e,n){var r;try{r={clone:n(/*! lodash/clone */"./node_modules/_lodash@4.17.20@lodash/clone.js"),constant:n(/*! lodash/constant */"./node_modules/_lodash@4.17.20@lodash/constant.js"),each:n(/*! lodash/each */"./node_modules/_lodash@4.17.20@lodash/each.js"),filter:n(/*! lodash/filter */"./node_modules/_lodash@4.17.20@lodash/filter.js"),has:n(/*! lodash/has */"./node_modules/_lodash@4.17.20@lodash/has.js"),isArray:n(/*! lodash/isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),isEmpty:n(/*! lodash/isEmpty */"./node_modules/_lodash@4.17.20@lodash/isEmpty.js"),isFunction:n(/*! lodash/isFunction */"./node_modules/_lodash@4.17.20@lodash/isFunction.js"),isUndefined:n(/*! lodash/isUndefined */"./node_modules/_lodash@4.17.20@lodash/isUndefined.js"),keys:n(/*! lodash/keys */"./node_modules/_lodash@4.17.20@lodash/keys.js"),map:n(/*! lodash/map */"./node_modules/_lodash@4.17.20@lodash/map.js"),reduce:n(/*! lodash/reduce */"./node_modules/_lodash@4.17.20@lodash/reduce.js"),size:n(/*! lodash/size */"./node_modules/_lodash@4.17.20@lodash/size.js"),transform:n(/*! lodash/transform */"./node_modules/_lodash@4.17.20@lodash/transform.js"),union:n(/*! lodash/union */"./node_modules/_lodash@4.17.20@lodash/union.js"),values:n(/*! lodash/values */"./node_modules/_lodash@4.17.20@lodash/values.js")}}catch(t){}r||(r=window._),t.exports=r},"./node_modules/_graphlib@2.1.8@graphlib/lib/version.js": /*!**************************************************************!*\ !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/version.js ***! \**************************************************************/ /*! no static exports found */function(t,e){t.exports="2.1.8"},"./node_modules/_isarray@0.0.1@isarray/index.js": /*!******************************************************!*\ !*** ./node_modules/_isarray@0.0.1@isarray/index.js ***! \******************************************************/ /*! no static exports found */function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},"./node_modules/_lodash@4.17.20@lodash/_DataView.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_DataView.js ***! \**********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_getNative */"./node_modules/_lodash@4.17.20@lodash/_getNative.js")(n(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js"),"DataView");t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_Hash.js": /*!******************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_Hash.js ***! \******************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_hashClear */"./node_modules/_lodash@4.17.20@lodash/_hashClear.js"),i=n(/*! ./_hashDelete */"./node_modules/_lodash@4.17.20@lodash/_hashDelete.js"),o=n(/*! ./_hashGet */"./node_modules/_lodash@4.17.20@lodash/_hashGet.js"),a=n(/*! ./_hashHas */"./node_modules/_lodash@4.17.20@lodash/_hashHas.js"),s=n(/*! ./_hashSet */"./node_modules/_lodash@4.17.20@lodash/_hashSet.js");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},"./node_modules/_lodash@4.17.20@lodash/_arrayIncludesWith.js": /*!*******************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_arrayIncludesWith.js ***! \*******************************************************************/ /*! no static exports found */function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(c)?n>1?t(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},"./node_modules/_lodash@4.17.20@lodash/_baseFor.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_baseFor.js ***! \*********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_createBaseFor */"./node_modules/_lodash@4.17.20@lodash/_createBaseFor.js")();t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_baseForOwn.js": /*!************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_baseForOwn.js ***! \************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseFor */"./node_modules/_lodash@4.17.20@lodash/_baseFor.js"),i=n(/*! ./keys */"./node_modules/_lodash@4.17.20@lodash/keys.js");t.exports=function(t,e){return t&&r(t,e,i)}},"./node_modules/_lodash@4.17.20@lodash/_baseGet.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_baseGet.js ***! \*********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_castPath */"./node_modules/_lodash@4.17.20@lodash/_castPath.js"),i=n(/*! ./_toKey */"./node_modules/_lodash@4.17.20@lodash/_toKey.js");t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&ne}},"./node_modules/_lodash@4.17.20@lodash/_baseHas.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_baseHas.js ***! \*********************************************************/ /*! no static exports found */function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},"./node_modules/_lodash@4.17.20@lodash/_baseHasIn.js": /*!***********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_baseHasIn.js ***! \***********************************************************/ /*! no static exports found */function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},"./node_modules/_lodash@4.17.20@lodash/_baseIndexOf.js": /*!*************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_baseIndexOf.js ***! \*************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseFindIndex */"./node_modules/_lodash@4.17.20@lodash/_baseFindIndex.js"),i=n(/*! ./_baseIsNaN */"./node_modules/_lodash@4.17.20@lodash/_baseIsNaN.js"),o=n(/*! ./_strictIndexOf */"./node_modules/_lodash@4.17.20@lodash/_strictIndexOf.js");t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},"./node_modules/_lodash@4.17.20@lodash/_baseIsArguments.js": /*!*****************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsArguments.js ***! \*****************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js"),i=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},"./node_modules/_lodash@4.17.20@lodash/_baseIsEqual.js": /*!*************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsEqual.js ***! \*************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsEqualDeep */"./node_modules/_lodash@4.17.20@lodash/_baseIsEqualDeep.js"),i=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},"./node_modules/_lodash@4.17.20@lodash/_baseIsEqualDeep.js": /*!*****************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsEqualDeep.js ***! \*****************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_Stack */"./node_modules/_lodash@4.17.20@lodash/_Stack.js"),i=n(/*! ./_equalArrays */"./node_modules/_lodash@4.17.20@lodash/_equalArrays.js"),o=n(/*! ./_equalByTag */"./node_modules/_lodash@4.17.20@lodash/_equalByTag.js"),a=n(/*! ./_equalObjects */"./node_modules/_lodash@4.17.20@lodash/_equalObjects.js"),s=n(/*! ./_getTag */"./node_modules/_lodash@4.17.20@lodash/_getTag.js"),u=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),l=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.20@lodash/isBuffer.js"),c=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.20@lodash/isTypedArray.js"),f="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,p,v){var g=u(t),m=u(e),y=g?"[object Array]":s(t),_=m?"[object Array]":s(e),b=(y="[object Arguments]"==y?f:y)==f,x=(_="[object Arguments]"==_?f:_)==f,w=y==_;if(w&&l(t)){if(!l(e))return!1;g=!0,b=!1}if(w&&!b)return v||(v=new r),g||c(t)?i(t,e,n,h,p,v):o(t,e,y,n,h,p,v);if(!(1&n)){var j=b&&d.call(t,"__wrapped__"),S=x&&d.call(e,"__wrapped__");if(j||S){var O=j?t.value():t,k=S?e.value():e;return v||(v=new r),p(O,k,n,h,v)}}return!!w&&(v||(v=new r),a(t,e,n,h,p,v))}},"./node_modules/_lodash@4.17.20@lodash/_baseIsMap.js": /*!***********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsMap.js ***! \***********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_getTag */"./node_modules/_lodash@4.17.20@lodash/_getTag.js"),i=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},"./node_modules/_lodash@4.17.20@lodash/_baseIsMatch.js": /*!*************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_baseIsMatch.js ***! \*************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_Stack */"./node_modules/_lodash@4.17.20@lodash/_Stack.js"),i=n(/*! ./_baseIsEqual */"./node_modules/_lodash@4.17.20@lodash/_baseIsEqual.js");t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var l=n[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a=200){var v=e?null:s(t);if(v)return u(v);d=!1,c=a,p=new r}else p=e?[]:h;t:for(;++le||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!c&&t=u?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}},"./node_modules/_lodash@4.17.20@lodash/_copyArray.js": /*!***********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_copyArray.js ***! \***********************************************************/ /*! no static exports found */function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r-1?s[u?e[l]:l]:void 0}}},"./node_modules/_lodash@4.17.20@lodash/_createRange.js": /*!*************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_createRange.js ***! \*************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseRange */"./node_modules/_lodash@4.17.20@lodash/_baseRange.js"),i=n(/*! ./_isIterateeCall */"./node_modules/_lodash@4.17.20@lodash/_isIterateeCall.js"),o=n(/*! ./toFinite */"./node_modules/_lodash@4.17.20@lodash/toFinite.js");t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?ec))return!1;var d=u.get(t),h=u.get(e);if(d&&h)return d==e&&h==t;var p=-1,v=!0,g=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&t-1}},"./node_modules/_lodash@4.17.20@lodash/_listCacheSet.js": /*!**************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_listCacheSet.js ***! \**************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_assocIndexOf */"./node_modules/_lodash@4.17.20@lodash/_assocIndexOf.js");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}},"./node_modules/_lodash@4.17.20@lodash/_mapCacheClear.js": /*!***************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_mapCacheClear.js ***! \***************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_Hash */"./node_modules/_lodash@4.17.20@lodash/_Hash.js"),i=n(/*! ./_ListCache */"./node_modules/_lodash@4.17.20@lodash/_ListCache.js"),o=n(/*! ./_Map */"./node_modules/_lodash@4.17.20@lodash/_Map.js");t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},"./node_modules/_lodash@4.17.20@lodash/_mapCacheDelete.js": /*!****************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_mapCacheDelete.js ***! \****************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.20@lodash/_getMapData.js");t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},"./node_modules/_lodash@4.17.20@lodash/_mapCacheGet.js": /*!*************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_mapCacheGet.js ***! \*************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.20@lodash/_getMapData.js");t.exports=function(t){return r(this,t).get(t)}},"./node_modules/_lodash@4.17.20@lodash/_mapCacheHas.js": /*!*************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_mapCacheHas.js ***! \*************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.20@lodash/_getMapData.js");t.exports=function(t){return r(this,t).has(t)}},"./node_modules/_lodash@4.17.20@lodash/_mapCacheSet.js": /*!*************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_mapCacheSet.js ***! \*************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.20@lodash/_getMapData.js");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}},"./node_modules/_lodash@4.17.20@lodash/_mapToArray.js": /*!************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_mapToArray.js ***! \************************************************************/ /*! no static exports found */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}},"./node_modules/_lodash@4.17.20@lodash/_matchesStrictComparable.js": /*!*************************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_matchesStrictComparable.js ***! \*************************************************************************/ /*! no static exports found */function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},"./node_modules/_lodash@4.17.20@lodash/_memoizeCapped.js": /*!***************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_memoizeCapped.js ***! \***************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./memoize */"./node_modules/_lodash@4.17.20@lodash/memoize.js");t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},"./node_modules/_lodash@4.17.20@lodash/_nativeCreate.js": /*!**************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_nativeCreate.js ***! \**************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_getNative */"./node_modules/_lodash@4.17.20@lodash/_getNative.js")(Object,"create");t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_nativeKeys.js": /*!************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_nativeKeys.js ***! \************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_overArg */"./node_modules/_lodash@4.17.20@lodash/_overArg.js")(Object.keys,Object);t.exports=r},"./node_modules/_lodash@4.17.20@lodash/_nativeKeysIn.js": /*!**************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_nativeKeysIn.js ***! \**************************************************************/ /*! no static exports found */function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},"./node_modules/_lodash@4.17.20@lodash/_nodeUtil.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_nodeUtil.js ***! \**********************************************************/ /*! no static exports found */function(t,e,n){(function(t){var r=n(/*! ./_freeGlobal */"./node_modules/_lodash@4.17.20@lodash/_freeGlobal.js"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(/*! ./../_webpack@4.46.0@webpack/buildin/module.js */"./node_modules/_webpack@4.46.0@webpack/buildin/module.js")(t))},"./node_modules/_lodash@4.17.20@lodash/_objectToString.js": /*!****************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_objectToString.js ***! \****************************************************************/ /*! no static exports found */function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},"./node_modules/_lodash@4.17.20@lodash/_overArg.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_overArg.js ***! \*********************************************************/ /*! no static exports found */function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},"./node_modules/_lodash@4.17.20@lodash/_overRest.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_overRest.js ***! \**********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_apply */"./node_modules/_lodash@4.17.20@lodash/_apply.js"),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},"./node_modules/_lodash@4.17.20@lodash/_stackClear.js": /*!************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_stackClear.js ***! \************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_ListCache */"./node_modules/_lodash@4.17.20@lodash/_ListCache.js");t.exports=function(){this.__data__=new r,this.size=0}},"./node_modules/_lodash@4.17.20@lodash/_stackDelete.js": /*!*************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_stackDelete.js ***! \*************************************************************/ /*! no static exports found */function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},"./node_modules/_lodash@4.17.20@lodash/_stackGet.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_stackGet.js ***! \**********************************************************/ /*! no static exports found */function(t,e){t.exports=function(t){return this.__data__.get(t)}},"./node_modules/_lodash@4.17.20@lodash/_stackHas.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_stackHas.js ***! \**********************************************************/ /*! no static exports found */function(t,e){t.exports=function(t){return this.__data__.has(t)}},"./node_modules/_lodash@4.17.20@lodash/_stackSet.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_stackSet.js ***! \**********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_ListCache */"./node_modules/_lodash@4.17.20@lodash/_ListCache.js"),i=n(/*! ./_Map */"./node_modules/_lodash@4.17.20@lodash/_Map.js"),o=n(/*! ./_MapCache */"./node_modules/_lodash@4.17.20@lodash/_MapCache.js");t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},"./node_modules/_lodash@4.17.20@lodash/_strictIndexOf.js": /*!***************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/_strictIndexOf.js ***! \***************************************************************/ /*! no static exports found */function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r2?e[2]:void 0;for(l&&o(e[0],e[1],l)&&(r=1);++n-1&&t%1==0&&t<=9007199254740991}},"./node_modules/_lodash@4.17.20@lodash/isMap.js": /*!******************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/isMap.js ***! \******************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsMap */"./node_modules/_lodash@4.17.20@lodash/_baseIsMap.js"),i=n(/*! ./_baseUnary */"./node_modules/_lodash@4.17.20@lodash/_baseUnary.js"),o=n(/*! ./_nodeUtil */"./node_modules/_lodash@4.17.20@lodash/_nodeUtil.js"),a=o&&o.isMap,s=a?i(a):r;t.exports=s},"./node_modules/_lodash@4.17.20@lodash/isObject.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/isObject.js ***! \*********************************************************/ /*! no static exports found */function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js": /*!*************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/isObjectLike.js ***! \*************************************************************/ /*! no static exports found */function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},"./node_modules/_lodash@4.17.20@lodash/isPlainObject.js": /*!**************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/isPlainObject.js ***! \**************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js"),i=n(/*! ./_getPrototype */"./node_modules/_lodash@4.17.20@lodash/_getPrototype.js"),o=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js"),a=Function.prototype,s=Object.prototype,u=a.toString,l=s.hasOwnProperty,c=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},"./node_modules/_lodash@4.17.20@lodash/isSet.js": /*!******************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/isSet.js ***! \******************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsSet */"./node_modules/_lodash@4.17.20@lodash/_baseIsSet.js"),i=n(/*! ./_baseUnary */"./node_modules/_lodash@4.17.20@lodash/_baseUnary.js"),o=n(/*! ./_nodeUtil */"./node_modules/_lodash@4.17.20@lodash/_nodeUtil.js"),a=o&&o.isSet,s=a?i(a):r;t.exports=s},"./node_modules/_lodash@4.17.20@lodash/isString.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/isString.js ***! \*********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js"),i=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),o=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},"./node_modules/_lodash@4.17.20@lodash/isSymbol.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/isSymbol.js ***! \*********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.20@lodash/_baseGetTag.js"),i=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.20@lodash/isObjectLike.js");t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},"./node_modules/_lodash@4.17.20@lodash/isTypedArray.js": /*!*************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/isTypedArray.js ***! \*************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseIsTypedArray */"./node_modules/_lodash@4.17.20@lodash/_baseIsTypedArray.js"),i=n(/*! ./_baseUnary */"./node_modules/_lodash@4.17.20@lodash/_baseUnary.js"),o=n(/*! ./_nodeUtil */"./node_modules/_lodash@4.17.20@lodash/_nodeUtil.js"),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},"./node_modules/_lodash@4.17.20@lodash/isUndefined.js": /*!************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/isUndefined.js ***! \************************************************************/ /*! no static exports found */function(t,e){t.exports=function(t){return void 0===t}},"./node_modules/_lodash@4.17.20@lodash/keys.js": /*!*****************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/keys.js ***! \*****************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayLikeKeys */"./node_modules/_lodash@4.17.20@lodash/_arrayLikeKeys.js"),i=n(/*! ./_baseKeys */"./node_modules/_lodash@4.17.20@lodash/_baseKeys.js"),o=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js");t.exports=function(t){return o(t)?r(t):i(t)}},"./node_modules/_lodash@4.17.20@lodash/keysIn.js": /*!*******************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/keysIn.js ***! \*******************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayLikeKeys */"./node_modules/_lodash@4.17.20@lodash/_arrayLikeKeys.js"),i=n(/*! ./_baseKeysIn */"./node_modules/_lodash@4.17.20@lodash/_baseKeysIn.js"),o=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js");t.exports=function(t){return o(t)?r(t,!0):i(t)}},"./node_modules/_lodash@4.17.20@lodash/last.js": /*!*****************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/last.js ***! \*****************************************************/ /*! no static exports found */function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},"./node_modules/_lodash@4.17.20@lodash/map.js": /*!****************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/map.js ***! \****************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayMap */"./node_modules/_lodash@4.17.20@lodash/_arrayMap.js"),i=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),o=n(/*! ./_baseMap */"./node_modules/_lodash@4.17.20@lodash/_baseMap.js"),a=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js");t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},"./node_modules/_lodash@4.17.20@lodash/mapValues.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/mapValues.js ***! \**********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseAssignValue */"./node_modules/_lodash@4.17.20@lodash/_baseAssignValue.js"),i=n(/*! ./_baseForOwn */"./node_modules/_lodash@4.17.20@lodash/_baseForOwn.js"),o=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js");t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},"./node_modules/_lodash@4.17.20@lodash/max.js": /*!****************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/max.js ***! \****************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseExtremum */"./node_modules/_lodash@4.17.20@lodash/_baseExtremum.js"),i=n(/*! ./_baseGt */"./node_modules/_lodash@4.17.20@lodash/_baseGt.js"),o=n(/*! ./identity */"./node_modules/_lodash@4.17.20@lodash/identity.js");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},"./node_modules/_lodash@4.17.20@lodash/memoize.js": /*!********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/memoize.js ***! \********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_MapCache */"./node_modules/_lodash@4.17.20@lodash/_MapCache.js");function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},"./node_modules/_lodash@4.17.20@lodash/merge.js": /*!******************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/merge.js ***! \******************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseMerge */"./node_modules/_lodash@4.17.20@lodash/_baseMerge.js"),i=n(/*! ./_createAssigner */"./node_modules/_lodash@4.17.20@lodash/_createAssigner.js")((function(t,e,n){r(t,e,n)}));t.exports=i},"./node_modules/_lodash@4.17.20@lodash/min.js": /*!****************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/min.js ***! \****************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseExtremum */"./node_modules/_lodash@4.17.20@lodash/_baseExtremum.js"),i=n(/*! ./_baseLt */"./node_modules/_lodash@4.17.20@lodash/_baseLt.js"),o=n(/*! ./identity */"./node_modules/_lodash@4.17.20@lodash/identity.js");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},"./node_modules/_lodash@4.17.20@lodash/minBy.js": /*!******************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/minBy.js ***! \******************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseExtremum */"./node_modules/_lodash@4.17.20@lodash/_baseExtremum.js"),i=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),o=n(/*! ./_baseLt */"./node_modules/_lodash@4.17.20@lodash/_baseLt.js");t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},"./node_modules/_lodash@4.17.20@lodash/noop.js": /*!*****************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/noop.js ***! \*****************************************************/ /*! no static exports found */function(t,e){t.exports=function(){}},"./node_modules/_lodash@4.17.20@lodash/now.js": /*!****************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/now.js ***! \****************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_root */"./node_modules/_lodash@4.17.20@lodash/_root.js");t.exports=function(){return r.Date.now()}},"./node_modules/_lodash@4.17.20@lodash/pick.js": /*!*****************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/pick.js ***! \*****************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_basePick */"./node_modules/_lodash@4.17.20@lodash/_basePick.js"),i=n(/*! ./_flatRest */"./node_modules/_lodash@4.17.20@lodash/_flatRest.js")((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},"./node_modules/_lodash@4.17.20@lodash/property.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/property.js ***! \*********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseProperty */"./node_modules/_lodash@4.17.20@lodash/_baseProperty.js"),i=n(/*! ./_basePropertyDeep */"./node_modules/_lodash@4.17.20@lodash/_basePropertyDeep.js"),o=n(/*! ./_isKey */"./node_modules/_lodash@4.17.20@lodash/_isKey.js"),a=n(/*! ./_toKey */"./node_modules/_lodash@4.17.20@lodash/_toKey.js");t.exports=function(t){return o(t)?r(a(t)):i(t)}},"./node_modules/_lodash@4.17.20@lodash/range.js": /*!******************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/range.js ***! \******************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_createRange */"./node_modules/_lodash@4.17.20@lodash/_createRange.js")();t.exports=r},"./node_modules/_lodash@4.17.20@lodash/reduce.js": /*!*******************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/reduce.js ***! \*******************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayReduce */"./node_modules/_lodash@4.17.20@lodash/_arrayReduce.js"),i=n(/*! ./_baseEach */"./node_modules/_lodash@4.17.20@lodash/_baseEach.js"),o=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),a=n(/*! ./_baseReduce */"./node_modules/_lodash@4.17.20@lodash/_baseReduce.js"),s=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js");t.exports=function(t,e,n){var u=s(t)?r:a,l=arguments.length<3;return u(t,o(e,4),n,l,i)}},"./node_modules/_lodash@4.17.20@lodash/size.js": /*!*****************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/size.js ***! \*****************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseKeys */"./node_modules/_lodash@4.17.20@lodash/_baseKeys.js"),i=n(/*! ./_getTag */"./node_modules/_lodash@4.17.20@lodash/_getTag.js"),o=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.20@lodash/isArrayLike.js"),a=n(/*! ./isString */"./node_modules/_lodash@4.17.20@lodash/isString.js"),s=n(/*! ./_stringSize */"./node_modules/_lodash@4.17.20@lodash/_stringSize.js");t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},"./node_modules/_lodash@4.17.20@lodash/sortBy.js": /*!*******************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/sortBy.js ***! \*******************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseFlatten */"./node_modules/_lodash@4.17.20@lodash/_baseFlatten.js"),i=n(/*! ./_baseOrderBy */"./node_modules/_lodash@4.17.20@lodash/_baseOrderBy.js"),o=n(/*! ./_baseRest */"./node_modules/_lodash@4.17.20@lodash/_baseRest.js"),a=n(/*! ./_isIterateeCall */"./node_modules/_lodash@4.17.20@lodash/_isIterateeCall.js"),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},"./node_modules/_lodash@4.17.20@lodash/stubArray.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/stubArray.js ***! \**********************************************************/ /*! no static exports found */function(t,e){t.exports=function(){return[]}},"./node_modules/_lodash@4.17.20@lodash/stubFalse.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/stubFalse.js ***! \**********************************************************/ /*! no static exports found */function(t,e){t.exports=function(){return!1}},"./node_modules/_lodash@4.17.20@lodash/toFinite.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/toFinite.js ***! \*********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./toNumber */"./node_modules/_lodash@4.17.20@lodash/toNumber.js");t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},"./node_modules/_lodash@4.17.20@lodash/toInteger.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/toInteger.js ***! \**********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./toFinite */"./node_modules/_lodash@4.17.20@lodash/toFinite.js");t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},"./node_modules/_lodash@4.17.20@lodash/toNumber.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/toNumber.js ***! \*********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js"),i=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.20@lodash/isSymbol.js"),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=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(o,"");var n=s.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+t}},"./node_modules/_lodash@4.17.20@lodash/toPlainObject.js": /*!**************************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/toPlainObject.js ***! \**************************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_copyObject */"./node_modules/_lodash@4.17.20@lodash/_copyObject.js"),i=n(/*! ./keysIn */"./node_modules/_lodash@4.17.20@lodash/keysIn.js");t.exports=function(t){return r(t,i(t))}},"./node_modules/_lodash@4.17.20@lodash/toString.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/toString.js ***! \*********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseToString */"./node_modules/_lodash@4.17.20@lodash/_baseToString.js");t.exports=function(t){return null==t?"":r(t)}},"./node_modules/_lodash@4.17.20@lodash/transform.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/transform.js ***! \**********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_arrayEach */"./node_modules/_lodash@4.17.20@lodash/_arrayEach.js"),i=n(/*! ./_baseCreate */"./node_modules/_lodash@4.17.20@lodash/_baseCreate.js"),o=n(/*! ./_baseForOwn */"./node_modules/_lodash@4.17.20@lodash/_baseForOwn.js"),a=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.20@lodash/_baseIteratee.js"),s=n(/*! ./_getPrototype */"./node_modules/_lodash@4.17.20@lodash/_getPrototype.js"),u=n(/*! ./isArray */"./node_modules/_lodash@4.17.20@lodash/isArray.js"),l=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.20@lodash/isBuffer.js"),c=n(/*! ./isFunction */"./node_modules/_lodash@4.17.20@lodash/isFunction.js"),f=n(/*! ./isObject */"./node_modules/_lodash@4.17.20@lodash/isObject.js"),d=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.20@lodash/isTypedArray.js");t.exports=function(t,e,n){var h=u(t),p=h||l(t)||d(t);if(e=a(e,4),null==n){var v=t&&t.constructor;n=p?h?new v:[]:f(t)&&c(v)?i(s(t)):{}}return(p?r:o)(t,(function(t,r,i){return e(n,t,r,i)})),n}},"./node_modules/_lodash@4.17.20@lodash/union.js": /*!******************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/union.js ***! \******************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseFlatten */"./node_modules/_lodash@4.17.20@lodash/_baseFlatten.js"),i=n(/*! ./_baseRest */"./node_modules/_lodash@4.17.20@lodash/_baseRest.js"),o=n(/*! ./_baseUniq */"./node_modules/_lodash@4.17.20@lodash/_baseUniq.js"),a=n(/*! ./isArrayLikeObject */"./node_modules/_lodash@4.17.20@lodash/isArrayLikeObject.js"),s=i((function(t){return o(r(t,1,a,!0))}));t.exports=s},"./node_modules/_lodash@4.17.20@lodash/uniqueId.js": /*!*********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/uniqueId.js ***! \*********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./toString */"./node_modules/_lodash@4.17.20@lodash/toString.js"),i=0;t.exports=function(t){var e=++i;return r(t)+e}},"./node_modules/_lodash@4.17.20@lodash/values.js": /*!*******************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/values.js ***! \*******************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_baseValues */"./node_modules/_lodash@4.17.20@lodash/_baseValues.js"),i=n(/*! ./keys */"./node_modules/_lodash@4.17.20@lodash/keys.js");t.exports=function(t){return null==t?[]:r(t,i(t))}},"./node_modules/_lodash@4.17.20@lodash/zipObject.js": /*!**********************************************************!*\ !*** ./node_modules/_lodash@4.17.20@lodash/zipObject.js ***! \**********************************************************/ /*! no static exports found */function(t,e,n){var r=n(/*! ./_assignValue */"./node_modules/_lodash@4.17.20@lodash/_assignValue.js"),i=n(/*! ./_baseZipObject */"./node_modules/_lodash@4.17.20@lodash/_baseZipObject.js");t.exports=function(t,e){return i(t||[],e||[],r)}},"./node_modules/_parse-svg-path@0.1.2@parse-svg-path/index.js": /*!********************************************************************!*\ !*** ./node_modules/_parse-svg-path@0.1.2@parse-svg-path/index.js ***! \********************************************************************/ /*! no static exports found */function(t,e){t.exports=function(t){var e=[];return t.replace(r,(function(t,r,o){var a=r.toLowerCase();for(o=function(t){var e=t.match(i);return e?e.map(Number):[]}(o),"m"==a&&o.length>2&&(e.push([r].concat(o.splice(0,2))),a="l",r="m"==r?"l":"L");;){if(o.length==n[a])return o.unshift(r),e.push(o);if(o.length=t){var h=(o-t)/(o-r[2]);return{length:o,pos:[n[0]*(1-h)+r[0]*h,n[1]*(1-h)+r[1]*h]}}r[0]=n[0],r[1]=n[1],r[2]=o}}else if("Q"===u[0])for(r[0]=i[0]=n[0],r[1]=i[1]=n[1],r[2]=o,l=100,c=0;c<=l;c++){var p;if(f=m(u,p=c/l),d=y(u,p),o+=s(n[0],n[1],f,d),n[0]=f,n[1]=d,"number"==typeof t&&o>=t)return h=(o-t)/(o-r[2]),{length:o,pos:[n[0]*(1-h)+r[0]*h,n[1]*(1-h)+r[1]*h]};r[0]=n[0],r[1]=n[1],r[2]=o}else if("L"===u[0]){if(r[0]=n[0],r[1]=n[1],r[2]=o,o+=s(n[0],n[1],u[1],u[2]),n[0]=u[1],n[1]=u[2],"number"==typeof t&&o>=t)return h=(o-t)/(o-r[2]),{length:o,pos:[n[0]*(1-h)+r[0]*h,n[1]*(1-h)+r[1]*h]};r[0]=n[0],r[1]=n[1],r[2]=o}}return{length:o,pos:n};function v(t,e){return Math.pow(1-e,3)*i[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]}function g(t,e){return Math.pow(1-e,3)*i[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]}function m(t,e){return Math.pow(1-e,2)*i[0]+2*(1-e)*e*t[1]+Math.pow(e,2)*t[3]}function y(t,e){return Math.pow(1-e,2)*i[1]+2*(1-e)*e*t[2]+Math.pow(e,2)*t[4]}}},"./node_modules/_regression@2.0.1@regression/dist/regression.js": /*!**********************************************************************!*\ !*** ./node_modules/_regression@2.0.1@regression/dist/regression.js ***! \**********************************************************************/ /*! no static exports found */function(t,e,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(t){"use strict";var e=Object.assign||function(t){for(var e=1;eMath.abs(n[o][a])&&(a=s);for(var u=o;u=o;f--)n[f][c]-=n[f][o]*n[o][c]/n[o][o]}for(var d=r-1;d>=0;d--){for(var h=0,p=d+1;p=0;b--)_+=b>1?g[b]+"x^"+b+" + ":1===b?g[b]+"x + ":g[b];return{string:_,points:y,predict:m,equation:[].concat(n(g)).reverse(),r2:o(i(t,y),e.precision)}}};t.exports=Object.keys(a).reduce((function(t,n){return e({_round:o},t,(u=function(t,i){return a[n](t,e({},r,i))},(s=n)in(i={})?Object.defineProperty(i,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[s]=u,i));var i,s,u}),{})})?r.apply(e,i):r)||(t.exports=o)},"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js": /*!***********************************************************************************************!*\ !*** ./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js ***! \***********************************************************************************************/ /*! no static exports found */function(t,e,n){!function(t){"use strict";function e(t){if(0===t.length)return 0;for(var e,n=t[0],r=0,i=1;i=Math.abs(t[i])?r+=n-e+t[i]:r+=t[i]-e+n,n=e;return n+r}function n(t){if(0===t.length)throw new Error("mean requires at least one data point");return e(t)/t.length}function r(t,e){var r,i,o=n(t),a=0;if(2===e)for(i=0;ie&&(e=t[n]);return e}function c(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||1l&&d(t,n,r);cl;)h--}t[n]===l?d(t,n,h):d(t,++h,r),h<=e&&(n=h+1),e<=h&&(r=h-1)}}function d(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function h(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;rt[t.length-1])return 1;var n=function(t,e){for(var n=0,r=0,i=t.length;r>>1]?i=n:r=-~n;return r}(t,e);if(t[n]!==e)return n/t.length;n++;var r=function(t,e){for(var n=0,r=0,i=t.length;r=t[n=r+i>>>1]?r=-~n:i=n;return r}(t,e);if(r===n)return n/t.length;var i=r-n+1;return i*(r+n)/2/i/t.length}function y(t){var e=h(t,.75),n=h(t,.25);if("number"==typeof e&&"number"==typeof n)return e-n}function _(t){return+h(t,.5)}function b(t){for(var e=_(t),n=[],r=0;r=r[n][s]);--h)(c=O(u,s,o,a)+r[n-1][u-1])n&&(n=t[r]),t[r]t.length)throw new Error("cannot generate more classes than there are data values");var n=s(t);if(1===j(n))return[n];var r=S(e,n.length),i=S(e,n.length);!function(t,e,n){for(var r,i=e[0].length,o=t[Math.floor(i/2)],a=[],s=[],u=0;u=Math.abs(o)&&(h+=1);else if("greater"===r)for(l=0;l<=i;l++)a[l]>=o&&(h+=1);else for(l=0;l<=i;l++)a[l]<=o&&(h+=1);return h/i},t.bisect=function(t,e,n,r,i){if("function"!=typeof t)throw new TypeError("func must be a function");for(var o=0;oa&&(a=t[0]),t[1]s&&(s=t[1])}function l(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(l);break;case"Point":u(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(u)}}for(e in t.arcs.forEach((function(t){for(var e,n=-1,u=t.length;++na&&(a=e[0]),e[1]s&&(s=e[1])})),t.objects)l(t.objects[e]);return[i,o,a,s]}function i(t,e){var n=e.id,r=e.bbox,i=null==e.properties?{}:e.properties,a=o(t,e);return null==n&&null==r?{type:"Feature",properties:i,geometry:a}:null==r?{type:"Feature",id:n,properties:i,geometry:a}:{type:"Feature",id:n,bbox:r,properties:i,geometry:a}}function o(t,e){var r=n(t.transform),i=t.arcs;function o(t,e){e.length&&e.pop();for(var n=i[t<0?~t:t],o=0,a=n.length;o1)r=u(0,e,n);else for(i=0,r=new Array(o=t.arcs.length);i1)for(var o,s,l=1,c=u(i[0]);lc&&(s=i[0],i[0]=i[l],i[l]=s,c=o);return i})).filter((function(t){return t.length>0}))}}function c(t,e){for(var n=0,r=t.length;n>>1;t[i]=2))throw new Error("n must be ≥2");var n,i=(u=t.bbox||r(t))[0],o=u[1],a=u[2],s=u[3];e={scale:[a-i?(a-i)/(n-1):1,s-o?(s-o)/(n-1):1],translate:[i,o]}}var u,l,c=f(e),d=t.objects,h={};function p(t){return c(t)}function v(t){var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(v)};break;case"Point":e={type:"Point",coordinates:p(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(p)};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}for(l in d)h[l]=v(d[l]);return{type:"Topology",bbox:u,transform:e,objects:h,arcs:t.arcs.map((function(t){var e,n=0,r=1,i=t.length,o=new Array(i);for(o[0]=c(t[0],0);++n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t,e){return function(n,r){e(n,r,t)}},l=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},f=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},v=function(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}},b=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}},x=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}},w=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var n=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};j=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&E(e,t,r);return n(e,t),e},S=function(t){return t&&t.__esModule?t:{default:t}},O=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},k=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},t("__extends",i),t("__assign",o),t("__rest",a),t("__decorate",s),t("__param",u),t("__metadata",l),t("__awaiter",c),t("__generator",f),t("__exportStar",d),t("__createBinding",E),t("__values",h),t("__read",p),t("__spread",v),t("__spreadArrays",g),t("__spreadArray",m),t("__await",y),t("__asyncGenerator",_),t("__asyncDelegator",b),t("__asyncValues",x),t("__makeTemplateObject",w),t("__importStar",j),t("__importDefault",S),t("__classPrivateFieldGet",O),t("__classPrivateFieldSet",k)}(T(M,T(t)))}.apply(e,[e]))||(t.exports=r)}()}).call(this,n(/*! ./../_webpack@4.46.0@webpack/buildin/global.js */"./node_modules/_webpack@4.46.0@webpack/buildin/global.js"))},"./node_modules/_webpack@4.46.0@webpack/buildin/global.js": /*!***********************************!*\ !*** (webpack)/buildin/global.js ***! \***********************************/ /*! no static exports found */function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},"./node_modules/_webpack@4.46.0@webpack/buildin/module.js": /*!***********************************!*\ !*** (webpack)/buildin/module.js ***! \***********************************/ /*! no static exports found */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}},"./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js": /*!***************************************************************************************!*\ !*** ./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js ***! \***************************************************************************************/ /*! no static exports found */function(t,e,n){var r; /*! * EventEmitter v5.2.9 - git.io/ee * Unlicense - http://unlicense.org/ * Oliver Caldwell - https://oli.me.uk/ * @preserve */!function(e){"use strict";function i(){}var o=i.prototype,a=e.EventEmitter;function s(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}o.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},o.flattenListeners=function(t){var e,n=[];for(e=0;eN&&(N=t.count)})),i.forIn(k,(function(t){var n=t.x,r=t.y,i=t.count,o={};o[T]=i,e.sizeByCount?(o[C]=A.map((function(e){return n+t.count/N*e[0]})),o[M]=A.map((function(e){return(r+t.count/N*e[1])/O}))):(o[C]=A.map((function(t){return n+t[0]})),o[M]=A.map((function(t){return(r+t[1])/O}))),I.push(o)})),t.rows=I}o.DataSet.registerTransform("bin.hexagon",h),o.DataSet.registerTransform("bin.hex",h),o.DataSet.registerTransform("hexbin",h)},"./src/transform/bin/histogram.ts": /*!****************************************!*\ !*** ./src/transform/bin/histogram.ts ***! \****************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../../util/partition */"./src/util/partition.ts")),a=n(/*! ../../data-set */"./src/data-set.ts"),s=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),u={as:["x","count"],bins:void 0,offset:0,groupBy:[]};function l(t,e){e=i.assign({},u,e);var n=s.getField(e);if(0!==t.rows.length){var a,l=t.range(n),c=l[1]-l[0],f=e.binWidth,d=e.bins;if(!f&&d){if(d<=0)throw new TypeError("Invalid bins: it must be a positive number!");f=c/d}if(!f&&!d){var h=(a=t.rows.length,Math.ceil(Math.log(a)/Math.LN2)+1);f=c/h}var p=e.offset%f,v=[],g=e.groupBy,m=o.default(t.rows,g);i.forIn(m,(function(t){var o={};t.map((function(t){return t[n]})).forEach((function(t){var e=r.__read(function(t,e,n){var r=t-n,i=Math.floor(r/e);return[i*e+n,(i+1)*e+n]}(t,f,p),2),n=e[0],i=e[1],a=n+"-"+i;o[a]=o[a]||{x0:n,x1:i,count:0},o[a].count++}));var a=r.__read(e.as,2),s=a[0],u=a[1];if(!s||!u)throw new TypeError('Invalid as: it must be an array with 2 elements (e.g. [ "x", "count" ])!');var l=i.pick(t[0],g);i.forIn(o,(function(t){var e=i.assign({},l);e[s]=[t.x0,t.x1],e[u]=t.count,v.push(e)}))})),t.rows=v}}a.DataSet.registerTransform("bin.histogram",l),a.DataSet.registerTransform("bin.dot",l)},"./src/transform/bin/quantile.ts": /*!***************************************!*\ !*** ./src/transform/bin/quantile.ts ***! \***************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),a=r.__importDefault(n(/*! ../../util/partition */"./src/util/partition.ts")),s=r.__importDefault(n(/*! ../../util/p-by-fraction */"./src/util/p-by-fraction.ts")),u=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,l=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),c={as:"_bin",groupBy:[],fraction:4};u("bin.quantile",(function(t,e){e=i.assign({},c,e);var n=l.getField(e),r=e.as;if(!i.isString(r))throw new TypeError('Invalid as: it must be a string (e.g. "_bin")!');var u=e.p,f=e.fraction;i.isArray(u)&&0!==u.length||(u=s.default(f));var d=t.rows,h=e.groupBy,p=a.default(d,h),v=[];i.forIn(p,(function(t){var e=t[0],i=t.map((function(t){return t[n]})),a=u.map((function(t){return o.quantile(i,t)}));e[r]=a,v.push(e)})),t.rows=v}))},"./src/transform/bin/rectangle.ts": /*!****************************************!*\ !*** ./src/transform/bin/rectangle.ts ***! \****************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1};function u(t,e,n){var r=t-n,i=Math.floor(r/e);return[i*e+n,(i+1)*e+n]}function l(t,e){e=i.assign({},s,e);var n=r.__read(a.getFields(e),2),o=n[0],l=n[1];if(!o||!l)throw new TypeError("Invalid fields: must be an array with 2 strings!");var c=t.range(o),f=t.range(l),d=c[1]-c[0],h=f[1]-f[0],p=e.binWidth||[];if(2!==p.length){var v=r.__read(e.bins,2),g=v[0],m=v[1];if(g<=0||m<=0)throw new TypeError("Invalid bins: must be an array with 2 positive numbers (e.g. [ 30, 30 ])!");p=[d/g,h/m]}var y=t.rows.map((function(t){return[t[o],t[l]]})),_={},b=r.__read(e.offset,2),x=b[0],w=b[1];y.forEach((function(t){var e=r.__read(u(t[0],p[0],x),2),n=e[0],i=e[1],o=r.__read(u(t[1],p[1],w),2),a=o[0],s=o[1],l=n+"-"+i+"-"+a+"-"+s;_[l]=_[l]||{x0:n,x1:i,y0:a,y1:s,count:0},_[l].count++}));var j=[],S=r.__read(e.as,3),O=S[0],k=S[1],E=S[2];if(!O||!k||!E)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "count" ])!');if(e.sizeByCount){var C=0;i.forIn(_,(function(t){t.count>C&&(C=t.count)})),i.forIn(_,(function(t){var e=t.x0,n=t.x1,i=t.y0,o=t.y1,a=t.count,s=a/C,u=r.__read([(e+n)/2,(i+o)/2],2),l=u[0],c=u[1],f=(n-e)*s/2,d=(o-i)*s/2,h=l-f,p=l+f,v=c-d,g=c+d,m={};m[O]=[h,p,p,h],m[k]=[v,v,g,g],m[E]=a,j.push(m)}))}else i.forIn(_,(function(t){var e={};e[O]=[t.x0,t.x1,t.x1,t.x0],e[k]=[t.y0,t.y0,t.y1,t.y1],e[E]=t.count,j.push(e)}));t.rows=j}o("bin.rectangle",l),o("bin.rect",l)},"./src/transform/default.ts": /*!**********************************!*\ !*** ./src/transform/default.ts ***! \**********************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(/*! ../data-set */"./src/data-set.ts").DataSet.registerTransform("default",(function(t){return t}))},"./src/transform/diagram/arc.ts": /*!**************************************!*\ !*** ./src/transform/diagram/arc.ts ***! \**************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../../data-set */"./src/data-set.ts"),o={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};function a(t,e){e=r.assign({},o,e);var n={},i=t.nodes,a=t.edges;r.isArray(i)&&0!==i.length||(i=function(t,e,n){return void 0===n&&(n={}),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})})),r.values(n)}(a,e,n)),i.forEach((function(t){var r=e.id(t);n[r]=t})),function(t,e,n){r.forIn(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,a,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&&r.isFunction(e.sortBy)&&(n=e.sortBy),n&&t.sort(n)}(i,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),o=e.thickness;if(o<=0||o>=1)throw new TypeError("Invalid thickness: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,s=r-1;s>=0;s--)a+=t[s].width+2*i;var u=n.minX=i+a,l=n.maxX=n.minX+n.width,c=n.minY=e.y-o/2,f=n.maxY=c+o;n.x=[u,l,l,u],n.y=[c,c,f,f]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}}(i,e),function(t,e,n){if(n.weight){var i={};r.forIn(t,(function(t,e){i[e]=t.value})),e.forEach((function(e){var r=n.source(e),o=n.target(e),a=t[r],s=t[o];if(a&&s){var u=i[r],l=n.sourceWeight(e),c=a.minX+(a.value-u)/a.value*a.width,f=c+l/a.value*a.width;i[r]-=l;var d=i[o],h=n.targetWeight(e),p=s.minX+(s.value-d)/s.value*s.width,v=p+h/s.value*s.width;i[o]-=h;var g=n.y;e.x=[c,f,p,v],e.y=[g,g,g,g]}}))}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,a,e),t.nodes=i,t.edges=a}i.DataSet.registerTransform("diagram.arc",a),i.DataSet.registerTransform("arc",a)},"./src/transform/diagram/dagre.ts": /*!****************************************!*\ !*** ./src/transform/diagram/dagre.ts ***! \****************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! dagre */"./node_modules/_dagre@0.8.5@dagre/index.js")),a=n(/*! ../../data-set */"./src/data-set.ts"),s={rankdir:"TB",align:"TB",nodesep:50,edgesep:10,ranksep:50,source:function(t){return t.source},target:function(t){return t.target}};function u(t,e){e=i.assign({},s,e);var n=new o.default.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))})),o.default.layout(n);var r=[],a=[];n.nodes().forEach((function(t){var e=n.node(t),i=e.x,o=e.y,a=e.height,s=e.width;e.x=[i-s/2,i+s/2,i+s/2,i-s/2],e.y=[o+a/2,o+a/2,o-a/2,o-a/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})),a.push(r)})),t.nodes=r,t.edges=a}a.DataSet.registerTransform("diagram.dagre",u),a.DataSet.registerTransform("dagre",u)},"./src/transform/diagram/sankey.ts": /*!*****************************************!*\ !*** ./src/transform/diagram/sankey.ts ***! \*****************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! d3-sankey */"./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a={sankeyLeft:i.sankeyLeft,sankeyRight:i.sankeyRight,sankeyCenter:i.sankeyCenter,sankeyJustify:i.sankeyJustify},s={value:function(t){return t.value},source:function(t){return t.source},target:function(t){return t.target},nodeAlign:"sankeyJustify",nodeWidth:.02,nodePadding:.02,sort:void 0};function u(t,e){e=r.assign({},s,e);var n=null;r.isString(e.nodeAlign)?n=a[e.nodeAlign]:r.isFunction(e.nodeAlign)&&(n=e.nodeAlign);var o=i.sankey().nodeSort(e.sort).links((function(t){return t.edges})).nodeWidth(e.nodeWidth).nodePadding(e.nodePadding).extent([[0,0],[1,1]]);r.isFunction(e.nodeId)&&o.nodeId(e.nodeId),n&&o.nodeAlign(n),o(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,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var o=t.width/2;t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o]}))}o.DataSet.registerTransform("diagram.sankey",u),o.DataSet.registerTransform("sankey",u)},"./src/transform/diagram/voronoi.ts": /*!******************************************!*\ !*** ./src/transform/diagram/voronoi.ts ***! \******************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importStar(n(/*! d3-voronoi */"./node_modules/_d3-voronoi@1.1.4@d3-voronoi/dist/d3-voronoi.js")),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={as:["_x","_y"]};function u(t,e){var n=(e=i.assign({},s,e)).as;if(!i.isArray(n)||2!==n.length)throw new TypeError("Invalid as: must be an array with two strings!");var o=n[0],u=n[1],l=a.getFields(e);if(!i.isArray(l)||2!==l.length)throw new TypeError("Invalid fields: must be an array with two strings!");var c=l[0],f=l[1],d=t.rows,h=d.map((function(t){return[t[c],t[f]]})),p=r.voronoi();e.extend&&p.extent(e.extend),e.size&&p.size(e.size);var v=p(h).polygons();d.forEach((function(t,e){var n=v[e].filter((function(t){return!!t}));t[o]=n.map((function(t){return t[0]})),t[u]=n.map((function(t){return t[1]}))}))}o("diagram.voronoi",u),o("voronoi",u)},"./src/transform/fill-rows.ts": /*!************************************!*\ !*** ./src/transform/fill-rows.ts ***! \************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),a=n(/*! ../data-set */"./src/data-set.ts"),s={fillBy:"group",groupBy:[],orderBy:[]};function u(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 l(t,e){e=i.assign({},s,e);var n=t.rows,r=e.groupBy,a=e.orderBy,l=o.default(n,r,a),c=0,f=[];i.forIn(l,(function(t){t.length>c&&(c=t.length,f=t)}));var d=[],h={};if(f.forEach((function(t){var e=a.map((function(e){return t[e]})).join("-");d.push(e),h[e]=t})),"order"===e.fillBy){var p=f[0],v=[],g={};n.forEach((function(t){var e=a.map((function(e){return t[e]})).join("-");-1===v.indexOf(e)&&(v.push(e),g[e]=t)})),u(v,d).forEach((function(t){var e={};r.forEach((function(t){e[t]=p[t]})),a.forEach((function(n){e[n]=g[t][n]})),n.push(e),f.push(e),d.push(t),h[t]=e})),c=f.length}i.forIn(l,(function(t){if(t!==f&&t.length=c-t.length)return!0;var s=h[i],u={};return r.forEach((function(t){u[t]=e[t]})),a.forEach((function(t){u[t]=s[t]})),n.push(u),!1}))}}))}a.DataSet.registerTransform("fill-rows",l),a.DataSet.registerTransform("fillRows",l)},"./src/transform/filter.ts": /*!*********************************!*\ !*** ./src/transform/filter.ts ***! \*********************************/ /*! no static exports found */function(t,e,n){"use strict";function r(t){return!!t}Object.defineProperty(e,"__esModule",{value:!0}),n(/*! ../data-set */"./src/data-set.ts").DataSet.registerTransform("filter",(function(t,e){t.rows=t.rows.filter(e.callback||r)}))},"./src/transform/fold.ts": /*!*******************************!*\ !*** ./src/transform/fold.ts ***! \*******************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../data-set */"./src/data-set.ts"),o=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),a={fields:[],key:"key",retains:[],value:"value"};i.DataSet.registerTransform("fold",(function(t,e){var n=t.getColumnNames();e=r.assign({},a,e);var i=o.getFields(e);0===i.length&&(console.warn("warning: option fields is not specified, will fold all columns."),i=n);var s=e.key,u=e.value,l=e.retains;l&&0!==l.length||(l=r.difference(n,i));var c=[];t.rows.forEach((function(t){i.forEach((function(e){var n=r.pick(t,l);n[s]=e,n[u]=t[e],c.push(n)}))})),t.rows=c}))},"./src/transform/geo/centroid.ts": /*!***************************************!*\ !*** ./src/transform/geo/centroid.ts ***! \***************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,o=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),a={as:["_centroid_x","_centroid_y"]};i("geo.centroid",(function(t,e){e=r.assign({},a,e);var n=o.getField(e),i=e.geoView||e.geoDataView;if(r.isString(i)&&t.dataSet&&(i=t.dataSet.getView(i)),!i||"geo"!==i.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var s=e.as;if(!r.isArray(s)||2!==s.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "cX", "cY" ])!');var u=s[0],l=s[1];t.rows.forEach((function(t){var e=i.geoFeatureByName(t[n]);e&&(i._projectedAs?(t[u]=e[i._projectedAs[2]],t[l]=e[i._projectedAs[3]]):(t[u]=e.centroidX,t[l]=e.centroidY))}))}))},"./src/transform/geo/projection.ts": /*!*****************************************!*\ !*** ./src/transform/geo/projection.ts ***! \*****************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! d3-geo */"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),a=r.__importDefault(n(/*! point-at-length */"./node_modules/_point-at-length@1.1.0@point-at-length/index.js")),s=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,u=r.__importDefault(n(/*! ../../util/get-geo-projection */"./src/util/get-geo-projection.ts")),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=i.assign({},l,e)).projection;if(!n)throw new TypeError("Invalid projection!");n=u.default(n);var s=o.geoPath(n),c=e.as;if(!i.isArray(c)||4!==c.length)throw new TypeError('Invalid as: it must be an array with 4 strings (e.g. [ "x", "y", "cX", "cY" ])!');t._projectedAs=c;var f=r.__read(c,4),d=f[0],h=f[1],p=f[2],v=f[3];t.rows.forEach((function(t){t[d]=[],t[h]=[];var e=s(t);if(e){a.default(e)._path.forEach((function(e){t[d].push(e[1]),t[h].push(e[2])}));var n=s.centroid(t);t[p]=n[0],t[v]=n[1]}})),t.rows=t.rows.filter((function(t){return 0!==t[d].length}))}))},"./src/transform/geo/region.ts": /*!*************************************!*\ !*** ./src/transform/geo/region.ts ***! \*************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),i=n(/*! ../../data-set */"./src/data-set.ts").DataSet.registerTransform,o=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),a={as:["_x","_y"]};i("geo.region",(function(t,e){e=r.assign({},a,e);var n=o.getField(e),i=e.geoView||e.geoDataView;if(r.isString(i)&&(i=t.dataSet.getView(i)),!i||"geo"!==i.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var s=e.as;if(!r.isArray(s)||2!==s.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var u=s[0],l=s[1];t.rows.forEach((function(t){var e=i.geoFeatureByName(t[n]);e&&(i._projectedAs?(t[u]=e[i._projectedAs[0]],t[l]=e[i._projectedAs[1]]):(t[u]=e.longitude,t[l]=e.latitude))}))}))},"./src/transform/hierarchy/cluster.ts": /*!********************************************!*\ !*** ./src/transform/hierarchy/cluster.ts ***! \********************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function u(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY||!t.root)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,u=(e=i.assign({},s,e)).as;if(!i.isArray(u)||2!==u.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var l=void 0;try{l=a.getField(e)}catch(t){console.warn(t)}l&&n.sum((function(t){return t[l]}));var c=r.cluster();c.size(e.size),e.nodeSize&&c.nodeSize(e.nodeSize),e.separation&&c.separation(e.separation),c(n);var f=u[0],d=u[1];n.each((function(t){t[f]=t.x,t[d]=t.y}))}o.DataSet.registerTransform("hierarchy.cluster",u),o.DataSet.registerTransform("dendrogram",u)},"./src/transform/hierarchy/compact-box.ts": /*!************************************************!*\ !*** ./src/transform/hierarchy/compact-box.ts ***! \************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importDefault(n(/*! @antv/hierarchy */"./node_modules/_@antv_hierarchy@0.6.6@@antv/hierarchy/build/hierarchy.js")),i=n(/*! ../../data-set */"./src/data-set.ts"),o={};function a(t,e){var n=t.root;if(e=Object.assign({},o,e),t.dataType!==i.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.compactBox(n,e)}i.DataSet.registerTransform("hierarchy.compact-box",a),i.DataSet.registerTransform("compact-box-tree",a),i.DataSet.registerTransform("non-layered-tidy-tree",a),i.DataSet.registerTransform("mindmap-logical",a)},"./src/transform/hierarchy/dendrogram.ts": /*!***********************************************!*\ !*** ./src/transform/hierarchy/dendrogram.ts ***! \***********************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importDefault(n(/*! @antv/hierarchy */"./node_modules/_@antv_hierarchy@0.6.6@@antv/hierarchy/build/hierarchy.js")),i=n(/*! ../../data-set */"./src/data-set.ts"),o={};function a(t,e){var n=t.root;if(e=Object.assign({},o,e),t.dataType!==i.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.dendrogram(n,e)}i.DataSet.registerTransform("hierarchy.dendrogram",a),i.DataSet.registerTransform("dendrogram",a)},"./src/transform/hierarchy/indented.ts": /*!*********************************************!*\ !*** ./src/transform/hierarchy/indented.ts ***! \*********************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importDefault(n(/*! @antv/hierarchy */"./node_modules/_@antv_hierarchy@0.6.6@@antv/hierarchy/build/hierarchy.js")),i=n(/*! ../../data-set */"./src/data-set.ts"),o={};function a(t,e){var n=t.root;if(e=Object.assign({},o,e),t.dataType!==i.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.indented(n,e)}i.DataSet.registerTransform("hierarchy.indented",a),i.DataSet.registerTransform("indented-tree",a)},"./src/transform/hierarchy/pack.ts": /*!*****************************************!*\ !*** ./src/transform/hierarchy/pack.ts ***! \*****************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),a=n(/*! ../../data-set */"./src/data-set.ts"),s=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),u={field:"value",size:[1,1],padding:0,as:["x","y","r"]};function l(t,e){if(t.dataType!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,r=t.root,l=(e=i.assign({},u,e)).as;if(!i.isArray(l)||3!==l.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=s.getField(e)}catch(t){console.warn(t)}n&&r.sum((function(t){return t[n]})).sort((function(t,e){return e[n]-t[n]}));var c=o.pack();c.size(e.size),e.padding&&c.padding(e.padding),c(r);var f=l[0],d=l[1],h=l[2];r.each((function(t){t[f]=t.x,t[d]=t.y,t[h]=t.r}))}a.DataSet.registerTransform("hierarchy.pack",l),a.DataSet.registerTransform("hierarchy.circle-packing",l),a.DataSet.registerTransform("circle-packing",l)},"./src/transform/hierarchy/partition.ts": /*!**********************************************!*\ !*** ./src/transform/hierarchy/partition.ts ***! \**********************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={field:"value",size:[1,1],round:!1,padding:0,sort:!0,as:["x","y"]};function u(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,u=t.root,l=(e=i.assign({},s,e)).as;if(!i.isArray(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=a.getField(e)}catch(t){console.warn(t)}n&&u.sum((function(t){return t[n]}));var c=r.partition();c.size(e.size).round(e.round).padding(e.padding),c(u);var f=l[0],d=l[1];u.each((function(t){t[f]=[t.x0,t.x1,t.x1,t.x0],t[d]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===l.indexOf(e)&&delete t[e]}))}))}o.DataSet.registerTransform("hierarchy.partition",u),o.DataSet.registerTransform("adjacency",u)},"./src/transform/hierarchy/tree.ts": /*!*****************************************!*\ !*** ./src/transform/hierarchy/tree.ts ***! \*****************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function u(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,u=t.root,l=(e=i.assign({},s,e)).as;if(!i.isArray(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=a.getField(e)}catch(t){console.warn(t)}n&&u.sum((function(t){return t[n]}));var c=r.tree();c.size(e.size),e.nodeSize&&c.nodeSize(e.nodeSize),e.separation&&c.separation(e.separation),c(u);var f=l[0],d=l[1];u.each((function(t){t[f]=t.x,t[d]=t.y}))}o.DataSet.registerTransform("hierarchy.tree",u),o.DataSet.registerTransform("tree",u)},"./src/transform/hierarchy/treemap.ts": /*!********************************************!*\ !*** ./src/transform/hierarchy/treemap.ts ***! \********************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js").__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={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"]};function u(t,e){if(t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,u=t.root,l=(e=i.assign({},s,e)).as;if(!i.isArray(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=a.getField(e)}catch(t){console.warn(t)}n&&u.sum((function(t){return t[n]}));var c=r.treemap();c.tile(r[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(u);var f=l[0],d=l[1];u.each((function(t){t[f]=[t.x0,t.x1,t.x1,t.x0],t[d]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===l.indexOf(e)&&delete t[e]}))}))}o.DataSet.registerTransform("hierarchy.treemap",u),o.DataSet.registerTransform("treemap",u)},"./src/transform/impute.ts": /*!*********************************!*\ !*** ./src/transform/impute.ts ***! \*********************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importStar(n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),a=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),s=n(/*! ../data-set */"./src/data-set.ts"),u=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),l={groupBy:[]};function c(t){return t.filter((function(t){return!i.isUndefined(t)}))}var f=["mean","median","max","min"],d={};f.forEach((function(t){d[t]=function(e,n){return o[t](n)}})),d.value=function(t,e,n){return n},s.DataSet.registerTransform("impute",(function(t,e){e=i.assign({},l,e);var n=u.getField(e),r=e.method;if(!r)throw new TypeError("Invalid method!");if("value"===r&&!i.has(e,"value"))throw new TypeError("Invalid value: it is nil.");var o=c(t.getColumn(n)),s=a.default(t.rows,e.groupBy);i.forIn(s,(function(t){var a=c(t.map((function(t){return t[n]})));0===a.length&&(a=o),t.forEach((function(o){if(i.isUndefined(o[n]))if(i.isFunction(r))o[n]=r(o,a,e.value,t);else{if(!i.isString(r))throw new TypeError("Invalid method: must be a function or one of "+f.join(", "));o[n]=d[r](o,a,e.value)}}))}))}))},"./src/transform/kde.ts": /*!******************************!*\ !*** ./src/transform/kde.ts ***! \******************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../util/get-series-values */"./src/util/get-series-values.ts")),a=r.__importDefault(n(/*! ../util/kernel */"./src/util/kernel.ts")),s=r.__importStar(n(/*! ../util/bandwidth */"./src/util/bandwidth.ts")),u=r.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),l=n(/*! ../data-set */"./src/data-set.ts"),c=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),f=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),d={minSize:.01,as:["key","y","size"],extent:[],method:"gaussian",bandwidth:"nrd",step:0,groupBy:[]},h=i.keys(a.default),p=i.keys(s);function v(t,e){e=i.assign({},d,e);var n=c.getFields(e);if(!i.isArray(n)||n.length<1)throw new TypeError("invalid fields: must be an array of at least 1 strings!");var l=e.as;if(!i.isArray(l)||3!==l.length)throw new TypeError("invalid as: must be an array of 3 strings!");var p=e.method;if(i.isString(p)){if(-1===h.indexOf(p))throw new TypeError("invalid method: "+p+". Must be one of "+h.join(", "));p=a.default[p]}if(!i.isFunction(p))throw new TypeError("invalid method: kernel method must be a function!");var v=e.extent;if(!i.isArray(v)||0===v.length){var g=[];i.each(n,(function(e){var n=t.range(e);g=g.concat(n)})),v=[Math.min.apply(Math,r.__spread(g)),Math.max.apply(Math,r.__spread(g))]}var m=e.bandwidth;i.isString(m)&&s[m]?m=s[m](t.getColumn(n[0])):i.isFunction(m)?m=m(t.getColumn(n[0])):(!i.isNumber(m)||m<=0)&&(m=s.nrd(t.getColumn(n[0])));var y=o.default(v,e.step?e.step:m),_=[],b=e.groupBy,x=u.default(t.rows,b);i.forIn(x,(function(t){var o={};i.each(n,(function(n){var a=i.pick(t[0],b);o[n]=f.kernelDensityEstimation(t.map((function(t){return t[n]})),p,m);var s=r.__read(l,3),u=s[0],c=s[1],d=s[2];a[u]=n,a[c]=[],a[d]=[],i.each(y,(function(t){var r=o[n](t);r>=e.minSize&&(a[c].push(t),a[d].push(r))})),_.push(a)}))})),t.rows=_}l.DataSet.registerTransform("kernel-density-estimation",v),l.DataSet.registerTransform("kde",v),l.DataSet.registerTransform("KDE",v),e.default={KERNEL_METHODS:h,BANDWIDTH_METHODS:p}},"./src/transform/kernel-smooth/density.ts": /*!************************************************!*\ !*** ./src/transform/kernel-smooth/density.ts ***! \************************************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),o=r.__importDefault(n(/*! ../../util/get-series-values */"./src/util/get-series-values.ts")),a=r.__importDefault(n(/*! ../../util/kernel */"./src/util/kernel.ts")),s=n(/*! ../../data-set */"./src/data-set.ts"),u=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),l=n(/*! ../../util/bandwidth */"./src/util/bandwidth.ts"),c={as:["x","y","z"],method:"gaussian"},f=i.keys(a.default);function d(t,e){var n,s;e=i.assign({},c,e);var d=u.getFields(e);if(!i.isArray(d)||2!==d.length)throw new TypeError("invalid fields: must be an array of 2 strings!");var h,p=r.__read(e.as,3),v=p[0],g=p[1],m=p[2];if(!i.isString(v)||!i.isString(g)||!i.isString(m))throw new TypeError("invalid as: must be an array of 3 strings!");if(i.isString(e.method)){if(-1===f.indexOf(e.method))throw new TypeError("invalid method: "+e.method+". Must be one of "+f.join(", "));h=a.default[e.method]}var y,_,b,x,w=r.__read(d,2),j=w[0],S=w[1],O=e.extent,k=e.bandwidth;O&&Array.isArray(O)&&Array.isArray(O[0])&&Array.isArray(O[1])?(y=(n=r.__read(O,2))[0],_=n[1]):(y=t.range(j),_=t.range(S)),k&&Array.isArray(k)&&k.slice(0,2).every(i.isNumber)&&k.slice(0,2).every((function(t){return t>0}))?(b=(s=r.__read(k,2))[0],x=s[1]):(b=l.silverman(t.getColumn(j)),x=l.silverman(t.getColumn(S)));for(var E=o.default(y,b),C=o.default(_,x),M=t.rows.length,T=[],P=0;Px&&(k=x/e,n=Math.ceil(e*k/j)),C=_/n})),i.forIn(g,(function(t){var e=[E*w,(E+1)*w],n=(e[1]-e[0])*(1-S)/j,r=0,o=0;i.each(t,(function(t){for(var a=t[f],s=Math.round(a*k),u=0;un[i])return 1}return 0}:r.isString(e)&&(n=function(t,n){return t[e]n[e]?1:0}),t.sort(n)}},"./src/util/tag-cloud.ts": /*!*******************************!*\ !*** ./src/util/tag-cloud.ts ***! \*******************************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=Math.PI/180;function o(t){return t.text}function a(){return"serif"}function s(){return"normal"}function u(t){return t.value}function l(){return 90*~~(2*Math.random())}function c(){return 1}function f(t,e,n,r){if(!e.sprite){var o=t.context,a=t.ratio;o.clearRect(0,0,2048/a,2048/a);var s=0,u=0,l=0,c=n.length;for(--r;++r>5<<5,d=~~Math.max(Math.abs(g+m),Math.abs(g-m))}else f=f+31>>5<<5;if(d>l&&(l=d),s+f>=2048&&(s=0,u+=l,l=0),u+d>=2048)break;o.translate((s+(f>>1))/a,(u+(d>>1))/a),e.rotate&&o.rotate(e.rotate*i),o.fillText(e.text,0,0),e.padding&&(o.lineWidth=2*e.padding,o.strokeText(e.text,0,0)),o.restore(),e.width=f,e.height=d,e.xoff=s,e.yoff=u,e.x1=f>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,s+=f}for(var _=o.getImageData(0,0,2048/a,2048/a).data,b=[];--r>=0;)if((e=n[r]).hasText){for(var x=(f=e.width)>>5,w=(d=e.y1-e.y0,0);w>5),E=_[2048*(u+O)+(s+w)<<2]?1<<31-w%32:0;b[k]|=E,j|=E}j?S=O:(e.y0++,d--,O--,u++)}e.y1=e.y0+S,e.sprite=b.slice(0,(e.y1-e.y0)*x)}}}function d(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,u=32-s,l=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),f=0;f>>s:0))&e[c+d])return!0;c+=n}return!1}function h(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function p(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function v(t){for(var e=[],n=-1;++n=f));)if(n.x=l+o,n.y=c+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||r&&d(n,e,t[0])||r&&(u=r,!((s=n).x+s.x1>u[0].x&&s.x+s.x0u[0].y&&s.y+s.y0>5,y=t[0]>>5,_=n.x-(m<<4),b=127&_,x=32-b,w=n.y1-n.y0,S=void 0,O=(n.y+n.y0)*y+(_>>5),E=0;E>>b:0);O+=y}return delete n.sprite,!0}return!1}return C.canvas=function(t){return arguments.length?(E=m(t),C):E},C.start=function(){var o=r.__read(t,2),a=o[0],s=o[1],u=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(E()),l=C.board?C.board:v((t[0]>>5)*t[1]),c=S.length,d=[],p=S.map((function(t,r){return t.text=e.call(this,t,r),t.font=n.call(this,t,r),t.style=_.call(this,t,r),t.weight=b.call(this,t,r),t.rotate=x.call(this,t,r),t.size=~~i.call(this,t,r),t.padding=w.call(this,t,r),t})).sort((function(t,e){return e.size-t.size})),g=-1,m=C.board?[{x:0,y:0},{x:a,y:s}]:null;return function(){for(var e=Date.now();Date.now()-e>1,n.y=s*(k()+.5)>>1,f(u,n,p,g),n.hasText&&M(l,n,m)&&(d.push(n),m?C.hasImage||h(m,n):m=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}C._tags=d,C._bounds=m}(),C},C.createMask=function(e){var n=document.createElement("canvas"),i=r.__read(t,2),o=i[0],a=i[1];if(o&&a){var s=o>>5,u=v((o>>5)*a);n.width=o,n.height=a;var l=n.getContext("2d");l.drawImage(e,0,0,e.width,e.height,0,0,o,a);for(var c=l.getImageData(0,0,o,a).data,f=0;f>5),p=f*o+d<<2,g=c[p]>=250&&c[p+1]>=250&&c[p+2]>=250?1<<31-d%32:0;u[h]|=g}C.board=u,C.hasImage=!0}},C.timeInterval=function(t){return arguments.length?(O=null==t?1/0:t,C):O},C.words=function(t){return arguments.length?(S=t,C):S},C.size=function(e){return arguments.length?(t=[+e[0],+e[1]],C):t},C.font=function(t){return arguments.length?(n=m(t),C):n},C.fontStyle=function(t){return arguments.length?(_=m(t),C):_},C.fontWeight=function(t){return arguments.length?(b=m(t),C):b},C.rotate=function(t){return arguments.length?(x=m(t),C):x},C.text=function(t){return arguments.length?(e=m(t),C):e},C.spiral=function(t){return arguments.length?(j=y[t]||t,C):j},C.fontSize=function(t){return arguments.length?(i=m(t),C):i},C.padding=function(t){return arguments.length?(w=m(t),C):w},C.random=function(t){return arguments.length?(k=t,C):k},C}},"./src/view.ts": /*!*********************!*\ !*** ./src/view.ts ***! \*********************/ /*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.View=void 0;var r=n(/*! tslib */"./node_modules/_tslib@2.1.0@tslib/tslib.js"),i=r.__importDefault(n(/*! wolfy87-eventemitter */"./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.10@@antv/util/lib/index.js"),a=function(t){function e(e,n){var r=t.call(this)||this;if(r.isView=!0,r.isDataView=!0,r.watchingStates=null,r.dataType="table",r.transforms=[],r.origin=[],r.rows=[],e&&e.isDataSet?r.dataSet=e:(r.dataSet=null,n=e),r.loose=!r.dataSet,n&&(r.watchingStates=n.watchingStates),!r.loose){var i=r.watchingStates;e.on("statechange",(function(t){o.isArray(i)?i.indexOf(t)>-1&&r._reExecute():r._reExecute()}))}return r}return r.__extends(e,t),e.prototype._parseStateExpression=function(t){var e=this.dataSet;if(null!==e){var n=/^\$state\.(\w+)/.exec(t);return n?e.state[n[1]]:t}},e.prototype._preparseOptions=function(t){var e=this,n=function(t){var e={};return o.forIn(t,(function(t,n){o.isObject(t)&&t.isView?e[n]=t:o.isArray(t)?e[n]=t.concat([]):o.isPlainObject(t)?e[n]=o.clone(t):e[n]=t})),e}(t);return this.loose||o.forIn(n,(function(t,r){o.isString(t)&&/^\$state\./.test(t)&&(n[r]=e._parseStateExpression(t))})),n},e.prototype._prepareSource=function(t,n){if(this._source={source:t,options:n},n)r=this._preparseOptions(n),this.origin=e.DataSet.getConnector(r.type)(t,r,this);else if(t instanceof e||o.isString(t))this.origin=e.DataSet.getConnector("default")(t,this.dataSet);else if(o.isArray(t))this.origin=t;else{if(!o.isObject(t)||!t.type)throw new TypeError("Invalid source");var r=this._preparseOptions(t);this.origin=e.DataSet.getConnector(r.type)(r,this)}return this.rows=o.deepMix([],this.origin),this},e.prototype.source=function(t,e){return this._prepareSource(t,e)._reExecuteTransforms(),this.trigger("change",[]),this},e.prototype.transform=function(t){return t&&t.type&&(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;this.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){o.assign(this.rows[t],e)},e.prototype.findRows=function(t){return this.rows.filter((function(e){return o.isMatch(e,t)}))},e.prototype.findRow=function(t){return o.find(this.rows,t)},e.prototype.getColumnNames=function(){var t=this.rows[0];return t?o.keys(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(o.pick(this.rows[i],n));return r},e.prototype.toString=function(t){return void 0===t&&(t=!1),t?JSON.stringify(this.rows,null,2):JSON.stringify(this.rows)},e.prototype._reExecute=function(){var t=this._source,e=t.source,n=t.options;this._prepareSource(e,n),this._reExecuteTransforms(),this.trigger("change",[])},e}(i.default);e.View=a}})},t.exports=r()},function(t,e,n){(function(t){(function(e){"use strict";var n=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},r=function(t,e){if(!n(t))return t;for(var r=[],i=0;i-1})(e,t)||e.push(t)})),e};function g(t){if(n(t))return t[0]}function m(t){if(n(t))return t[t.length-1]}var y=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){return o(t,"Number")},b=function(t){return s(t)?"":t.toString()},x=function(t){var e=b(t);return e.charAt(0).toLowerCase()+e.substring(1)};function w(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}var j=function(t){var e=b(t);return e.charAt(0).toUpperCase()+e.substring(1)},S={}.toString,O=function(t){return o(t,"Boolean")},k=function(t){return o(t,"Date")},E=Object.prototype;function C(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function M(t,e,n,r){return e&&C(t,e),n&&C(t,n),r&&C(t,r),t}function T(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&h(o)?(h(t[i])||(t[i]={}),n0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),k(t)&&(t=t.getTime()),t}var ht=Object.freeze({__proto__:null,Array:G,upperFirst:j,lowerFirst:x,isString:p,isNumber:_,isBoolean:O,isFunction:a,isDate:k,isArray:u,isNil:s,isObject:l,isPlainObject:h,isEqual:D,deepMix:P,mix:M,each:c,uniq:v,find:function(t,e){if(!u(t))return null;var n;if(a(e)&&(n=e),h(e)&&(n=function(t){return function(t,e){var n=f(e),r=n.length;if(s(t))return!r;for(var i=0;i=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r},zero:function(t){return 0===t[0]&&0===t[1]},distance:function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)},clone:function(t){return[t[0],t[1]]},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},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}},Et=[1,0,0,1,0,0],Ct=function(){var t=e.prototype;function e(t){var e,n;this._initDefaultCfg(),M(this,t),this.plot?(e=this.plot.bl,n=this.plot.tr,this.start=e,this.end=n):(e=this.start,n=this.end),this.init(e,n)}return t._initDefaultCfg=function(){},t._scale=function(t,e){var n=this.matrix,r=this.center;Ot.translate(n,n,[r.x,r.y]),Ot.scale(n,n,[t,e]),Ot.translate(n,n,[-r.x,-r.y])},t.init=function(t,e){this.matrix=[].concat(Et),this.center={x:(e.x-t.x)/2+t.x,y:(e.y-t.y)/2+t.y},this.scale&&this._scale(this.scale[0],this.scale[1])},t.convertPoint=function(t){var e=this._convertPoint(t),n=e.x,r=e.y;if(!Ot.isChanged(this.matrix))return{x:n,y:r};var i=[n,r];return kt.transformMat2d(i,i,this.matrix),{x:i[0],y:i[1]}},t.invertPoint=function(t){return this._invertPoint(t)},t._convertPoint=function(t){return t},t._invertPoint=function(t){return t},t.reset=function(t){this.plot=t;var e=t.bl,n=t.tr;this.start=e,this.end=n,this.init(e,n)},e}(),Mt=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="cartesian",this.transposed=!1,this.isRect=!0},n.init=function(e,n){t.prototype.init.call(this,e,n),this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},n._convertPoint=function(t){var e=this.transposed,n=e?"y":"x",r=e?"x":"y",i=this.x,o=this.y;return{x:i.start+(i.end-i.start)*t[n],y:o.start+(o.end-o.start)*t[r]}},n._invertPoint=function(t){var e=this.transposed,n=e?"y":"x",r=e?"x":"y",i=this.x,o=this.y,a={};return a[n]=(t.x-i.start)/(i.end-i.start),a[r]=(t.y-o.start)/(o.end-o.start),a},e}(Ct);function Tt(t,e){return p(e)?e:t.invert(t.scale(e))}Ct.Cartesian=Mt,Ct.Rect=Mt;var Pt=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),o=0;oo&&(o=c)}(ie.max)&&e.change({min:i,max:o})},n._sort=function(t){var e=this.getXScale(),n=e.field,r=e.type;"identity"!==r&&e.values.length>1&&c(t,(function(t){t.sort((function(t,i){return"timeCat"===r?dt(t._origin[n])-dt(i._origin[n]):e.translate(t._origin[n])-e.translate(i._origin[n])}))})),this.set("hasSorted",!0),this.set("dataArray",t)},n.paint=function(){var t=this.get("mappingData"),e=[],n=this.getShapeFactory();n.setCoord(this.get("coord")),this._beforeMapping(t);for(var r=0,i=t.length;r5?l:f,c=t.slice(0,5).map((function(t){var e=t._origin;return r.getText(e[r.field])+":"+i.getText(e[i.field])}));e.push(w(s,{index:n+1,count:o,part:3,name:a[p.field],values:c.join(" ")}))}}}))}t.set("ariaLabel",e.join(""))}},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 this.get("startOnZero")?n<=0&&e<=0?n:e>=0?e:0:e},n._normalizeValues=function(t,e){var n=[];if(u(t))for(var r=0,i=t.length;re);i++){if(r[r.length-1][1]<=e){i=r.length-1;break}if(r[i][0]<=e&&r[i][1]>e)break}}else{(r=t.values).sort((function(t,e){return t-e}));for(var s=r.length;!(!(ie||(r[i-1]+r[i])/2<=e&&(r[i+1]+r[i])/2>e);i++)if((r[r.length-2]+r[r.length-1])/2<=e){i=r.length-1;break}}return r[i]},n.getSnapRecords=function(t){var e=this,n=e.get("coord"),r=e.getXScale(),i=e.getYScale(),o=r.field,a=e.get("dataArray");this.get("hasSorted")||this._sort(a);var l=[],c=n.invertPoint(t),f=c.x;e.isInCircle()&&!n.transposed&&f>(1+r.rangeMax())/2&&(f=r.rangeMin());var d=r.invert(f);r.isCategory||(d=e._getSnap(r,d));var h=[];if(a.forEach((function(t){t.forEach((function(t){var n=s(t._origin)?t[o]:t._origin[o];e._isEqual(n,d,r)&&h.push(t)}))})),this.hasAdjust("stack")&&n.isPolar&&n.transposed){if(f>=0&&f<=1){var p=i.invert(c.y);p=e._getSnap(i,p,h),h.forEach((function(t){(u(p)?t._originY.toString()===p.toString():t._originY===p)&&l.push(t)}))}}else l=h;return l},n.getRecords=function(t){var e=this,n=this.getXScale(),r=this.get("dataArray"),i=n.field;return r.map((function(r){for(var o=r.length-1;o>=0;o--){var a=r[o],u=s(a._origin)?a[i]:a._origin[i];if(e._isEqual(u,t,n))return a}return null}))},n._isEqual=function(t,e,n){return"timeCat"===n.type?dt(t)===e:e===t},n.position=function(t){return this._setAttrOptions("position",{field:t}),this},n.color=function(t,e){return this._createAttrOption("color",t,e,mt.colors),this},n.size=function(t,e){return this._createAttrOption("size",t,e,mt.sizes),this},n.shape=function(t,e){var n=this.get("type"),r=mt.shapes[n]||[];return this._createAttrOption("shape",t,e,r),this},n.style=function(t,e){var n,r=this.get("styleOptions");return r||(r={},this.set("styleOptions",r)),l(t)&&(e=t,t=null),t&&(n=Kt(t)),r.fields=n,r.style=e,this},n.adjust=function(t){return p(t)&&(t={type:t}),this.set("adjust",t),this},n.animate=function(t){return this.set("animateCfg",t),this},n.changeData=function(t){this.set("data",t),this.set("scales",{}),this.get("isInit")&&(this.set("isInit",!1),this.init())},n.clearInner=function(){var t=this.get("container");t&&t.clear()},n.reset=function(){this.set("isInit",!1),this.set("attrs",{}),this.set("attrOptions",{}),this.set("adjust",null),this.clearInner()},n.clear=function(){this.clearInner()},n.destroy=function(){this.set("isInit",!1),this.clear(),t.prototype.destroy.call(this)},n._display=function(t){this.set("visible",t);var e=this.get("container"),n=e.get("canvas");e.set("visible",t),n.draw()},n.show=function(){this._display(!0)},n.hide=function(){this._display(!1)},e}(jt),Qt={};function Jt(t){return Qt[t]}function te(t,e){Qt[t]=e}var ee=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){M(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return R(this.ticks,(function(e,n){return l(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,r=n?n(t,e):t;return s(r)||!a(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){M(this,this.__cfg__),this.setDomain(),N(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(p(t)){var n=Jt(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else a(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return g(this.range)},t.prototype.rangeMax=function(){return m(this.range)},t.prototype.calcPercent=function(t,e,n){return _(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),ne=function(t,e){return(ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */function re(t,e){function n(){this.constructor=t}ne(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function ie(){for(var t=0,e=0,n=arguments.length;ethis.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r1?t-1:t}},e}(ee),ae=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,se="[^\\s]+",ue=/\[([^]*?)\]/gm;function le(t,e){for(var n=[],r=0,i=t.length;r-1?r:null}};function fe(t){for(var e=[],n=1;n3?0:(t-t%10!=10?1:0)*t%10]}},ge=fe({},ve),me=function(t){return ge=fe(ge,t)},ye=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},_e=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+_e(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+_e(Math.floor(Math.abs(e)/60),2)+":"+_e(Math.abs(e)%60,2)}},xe=function(t){return+t-1},we=[null,"[1-9]\\d?"],je=[null,se],Se=["isPm",se,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],Oe=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],ke={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+se,function(t){return parseInt(t,10)}],M:["month","[1-9]\\d?",xe],MM:["month","\\d\\d",xe],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:we,dd:we,ddd:je,dddd:je,MMM:["month",se,ce("monthNamesShort")],MMMM:["month",se,ce("monthNames")],a:Se,A:Se,ZZ:Oe,Z:Oe},Ee={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",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Ce=function(t){return fe(Ee,t)},Me=function(t,e,n){if(void 0===e&&(e=Ee.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var r=[];e=(e=Ee[e]||e).replace(ue,(function(t,e){return r.push(e),"@@@"}));var i=fe(fe({},ge),n);return(e=e.replace(ae,(function(e){return be[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function Te(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=Ee[e]||e,t.length>1e3)return null;var r={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],a=e.replace(ue,(function(t,e){return o.push(ye(e)),"@@@"})),s={},u={};a=ye(a).replace(ae,(function(t){var e=ke[t],n=e[0],r=e[1],o=e[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,o&&(u[o]=!0),i.push(e),"("+r+")"})),Object.keys(u).forEach((function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")})),a=a.replace(/@@@/g,(function(){return o.shift()}));var l=t.match(new RegExp(a,"i"));if(!l)return null;for(var c=fe(fe({},ge),n),f=1;f0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),k(t)&&(t=t.getTime()),t}var De=36e5,Re=24*De,Le=31*Re,Be=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",De],["HH",6*De],["HH",12*De],["YYYY-MM-DD",Re],["YYYY-MM-DD",4*Re],["YYYY-WW",7*Re],["YYYY-MM",Le],["YYYY-MM",4*Le],["YYYY-MM",6*Le],["YYYY",380*Re]];function $e(t,e,n){var r,i=(r=function(t){return t[1]},function(t,e,n,i){for(var o=s(n)?0:n,a=s(i)?t.length:i;o>>1;r(t[u])>e?a=u:o=u+1}return o})(Be,(e-t)/n)-1,o=Be[i];return i<0?o=Be[0]:i>=Be.length&&(o=m(Be)),o}var Fe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return re(e,t),e.prototype.translate=function(t){t=Ne(t);var e=this.values.indexOf(t);return-1===e&&(e=_(t)&&t-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):Ie(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;c(e,(function(t,n){e[n]=Ne(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(oe),ze=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return re(e,t),e.prototype.scale=function(t){if(s(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=g(e),r=m(e);nthis.max&&(this.max=r),s(this.minLimit)||(this.min=n),s(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(u(t[0])){for(var n=[],r=0;rthis.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=r(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(ee),Ve=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return re(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(ze);function qe(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function He(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function Ge(t,e,n){s(n)&&(n=Math.max.apply(null,t));var r=n;return c(t,(function(t){t>0&&t1&&(r=1),r}var Ue=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return re(e,t),e.prototype.invert=function(t){var e,n=this.base,r=He(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;var s=1/(r-(e=He(n,a/n)))*o;if(t=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(qe(r,t)-qe(r,n))/(qe(r,e)-qe(r,n))},e}(ze),We=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return re(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):Ie(n,this.mask)},e.prototype.scale=function(e){var n=e;return(p(n)||k(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return Ne(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(s(e)&&_(e)||(this.min=this.translate(this.min)),s(n)&&_(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,o=i,a=0;c(t,(function(t){var e=Ne(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(o=i,i=e):o>e&&(o=e),a1&&(this.minTickInterval=o-i),s(e)&&(this.min=i),s(n)&&(this.max=a)}},e}(Ve),Xe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return re(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return m(e);if(i<0)return g(e);var o=e[i],a=i/(n-1);return o+(r-a)/((i+1)/(n-1)-a)*(e[i+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(m(e)!==this.max&&e.push(this.max),g(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(tm(e))return 1;var n=0;return c(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(ze),Ke=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return re(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Xe),Ze={};function Qe(t){return Ze[t]}function Je(t,e){if(Qe(t))throw new Error("type '"+t+"' existed.");Ze[t]=e}var tn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return re(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&_(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(ee),en=[1,5,2,2.5,4,3],nn=100*Number.EPSILON;function rn(t,e,n,r,i,o){var a=L(e),s=A(e,t),u=0,l=function(t,e){return(t%e+e)%e}(r,o);return(l=0&&(u=1),1-s/(a-1)-n+u}function on(t,e,n){var r=L(e);return 1-A(e,t)/(r-1)-n+1}function an(t,e,n,r,i,o){var a=(t-1)/(o-i),s=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a)}function sn(t,e){return t>=e?2-(t-1)/(e-1):1}function un(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function ln(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function cn(t,e,n,r,i,o){if(void 0===n&&(n=5),void 0===r&&(r=!0),void 0===i&&(i=en),void 0===o&&(o=[.25,.2,.5,.05]),"number"!=typeof t||"number"!=typeof e)return{min:0,max:0,ticks:[]};if(t===e||1===n)return{min:t,max:e,ticks:[t]};for(var a={score:-2,lmin:0,lmax:0,lstep:0},s=1;s<1/0;){for(var u=0,l=i;ux)v+=1;else{for(var w=b;w<=x;w+=1){var j=w*(y/s),S=j+y*(d-1),O=y,k=rn(c,i,s,j,S,O),E=un(t,e,j,S),C=an(d,n,t,e,j,S),M=o[0]*k+o[1]*E+o[2]*C+1*o[3];M>a.score&&(!r||j<=t&&S>=e)&&(a.lmin=j,a.lmax=S,a.lstep=O,a.score=M)}v+=1}}d+=1}}s+=1}for(var T=Number.isInteger(a.lstep)?0:Math.ceil(Math.abs(Math.log10(a.lstep))),P=[],A=a.lmin;A<=a.lmax;A+=a.lstep)P.push(A);var I=T?R(P,(function(t){return Number.parseFloat(t.toFixed(T))})):P;return{min:Math.min(t,g(I)),max:Math.max(e,m(I)),ticks:I}}function fn(t){var e=t.values,n=t.tickInterval,i=t.tickCount,o=e;if(_(n))return r(o,(function(t,e){return e%n==0}));var a=t.min,u=t.max;if(s(a)&&(a=0),s(u)&&(u=e.length-1),_(i)&&i=a&&t<=u})).map((function(t){return e[t]}))}return e.slice(a,u+1)}var dn=Math.sqrt(50),hn=Math.sqrt(10),pn=Math.sqrt(2),vn=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],u=this._domain[a];return u0?r=gn(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,t):r<0&&(r=gn(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=dn?10:o>=hn?5:o>=pn?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=dn?10:o>=hn?5:o>=pn?2:1)}function mn(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function yn(t,e,n){var r=mn(t,n,"floor"),i=mn(e,n,"ceil");r=y(r,n),i=y(i,n);for(var o=[],a=r;a<=i;a+=n){var s=y(a,n);o.push(s)}return{min:r,max:i,ticks:o}}function _n(t,e,n){var r,i=t.minLimit,o=t.maxLimit,a=t.min,u=t.max,l=t.tickCount,c=void 0===l?5:l,f=s(i)?s(e)?a:e:i,d=s(o)?s(n)?u:n:o;if(f>d&&(d=(r=[f,d])[0],f=r[1]),c<=2)return[f,d];for(var h=(d-f)/(c-1),p=[],v=0;v1&&(i*=Math.ceil(a)),r&&i31536e6)for(var u=wn(n),l=Math.ceil(o/31536e6),c=s;c<=u+l;c+=l)a.push(jn(c));else if(o>Le){var f=Math.ceil(o/Le),d=Sn(e),h=function(t,e){var n=wn(t),r=wn(e),i=Sn(t);return 12*(r-n)+(Sn(e)-i)%12}(e,n);for(c=0;c<=h+f;c+=f)a.push(On(s,c+d))}else if(o>Re){var p=(_=new Date(e)).getFullYear(),v=_.getMonth(),g=_.getDate(),m=Math.ceil(o/Re),y=function(t,e){return Math.ceil((e-t)/Re)}(e,n);for(c=0;cDe){p=(_=new Date(e)).getFullYear(),v=_.getMonth(),m=_.getDate();var _,b=_.getHours(),x=Math.ceil(o/De),w=function(t,e){return Math.ceil((e-t)/De)}(e,n);for(c=0;c<=w+x;c+=x)a.push(new Date(p,v,m,b+c).getTime())}else if(o>6e4){var j=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),S=Math.ceil(o/6e4);for(c=0;c<=j+S;c+=S)a.push(e+6e4*c)}else{var O=o;O<1e3&&(O=1e3);var k=1e3*Math.floor(e/1e3),E=Math.ceil((n-e)/1e3),C=Math.ceil(O/1e3);for(c=0;c=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a})),te("log",(function(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,s=He(n,o);if(i>0)e=Math.floor(He(n,i));else{var u=Ge(a,n,o);e=Math.floor(He(n,u))}for(var l=s-e,c=Math.ceil(l/r),f=[],d=e;d=0?1:-1;return Math.pow(t,e)*n}))})),te("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],o=0;o=n?i[i.length-1]=a:i.push(a)),i},En=[1,1.2,1.5,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10];function Cn(t){var e=1;if(0===(t=Math.abs(t)))return e;if(t<1){for(var n=0;t<1;)e/=10,t*=10,n++;return e.toString().length>12&&(e=parseFloat(e.toFixed(n))),e}for(;t>10;)e*=10,t/=10;return e}function Mn(t){var e=t.interval,n=t.tickCount,r=t.max,i=t.min;return Math.floor(i/e)*e+(n-1)*e>=r}function Tn(t){var e=t.toString(),n=e.indexOf("."),r=e.indexOf("e-"),i=r>=0?parseInt(e.substr(r+2),10):e.substr(n+1).length;return i>20&&(i=20),i}function Pn(t,e){return parseFloat(t.toFixed(e))}var An=Qe("linear"),In=Qe("identity"),Nn=Qe("category"),Dn=Qe("timeCat");function Rn(t){Object.keys(t).forEach((function(e){delete t[e]}))}te("cat",kn),te("time-cat",kn),te("wilkinson-extended",(function(t){var e=t||{},n=e.tickCount,r=e.tickInterval,i=t||{},o=i.min,a=i.max;o=isNaN(o)?0:o,a=isNaN(a)?0:a;var s=n&&n>=2?n:5,u=r||function(t){var e=t.tickCount,n=t.min,r=t.max;if(n===r)return 1*Cn(r);for(var i=(r-n)/(e-1),o=Cn(i),a=i/o,s=r/o,u=n/o,l=0,c=0;c0?t.change({min:0}):i<0&&t.change({max:0}))},e.clear=function(){Rn(this.defs),Rn(this.scales),this.data=null},t}(),Bn=function(){var t=e.prototype;function e(t){this._initDefaultCfg(),M(this,t),this.draw()}return t._initDefaultCfg=function(){this.ticks=[],this.tickLine={},this.offsetFactor=1,this.frontContainer=null,this.backContainer=null,this.gridPoints=[]},t.draw=function(){var t=this.line,e=this.tickLine,n=this.label,r=this.grid;r&&this.drawGrid(r),e&&this.drawTicks(e),t&&this.drawLine(t),n&&this.drawLabels()},t.drawTicks=function(t){var e=this,n=e.ticks,r=t.length,i=e.getContainer(t.top);c(n,(function(n){var o=e.getOffsetPoint(n.value),a=e.getSidePoint(o,r);i.addShape("line",{className:"axis-tick",attrs:M({x1:o.x,y1:o.y,x2:a.x,y2:a.y},t)})._id=e._id+"-ticks"}))},t.drawLabels=function(){var t=this,e=t.labelOffset;c(t.labels,(function(n){var r=t.getContainer(n.get("top")),i=t.getOffsetPoint(n.get("value")),o=t.getSidePoint(i,e),a=o.x,s=o.y;n.attr(M({x:a,y:s},t.getTextAlignInfo(i,e),n.get("textStyle"))),n._id=t._id+"-"+n.attr("text"),r.add(n)}))},t.drawLine=function(){},t.drawGrid=function(t){var e=this,n=e.gridPoints,r=e.ticks,i=t,o=n.length;c(n,(function(n,s){if(a(t)){var u=r[s]||{},l=t(u.text,s,o);i=l?M({},mt._defaultAxis.grid,l):null}if(i){var c,f=i.type,d=n.points,h=e.getContainer(i.top);if("arc"===f){var p=e.center,v=e.startAngle,g=e.endAngle,m=kt.length([d[0].x-p.x,d[0].y-p.y]);c=h.addShape("Arc",{className:"axis-grid",attrs:M({x:p.x,y:p.y,startAngle:v,endAngle:g,r:m},i)})}else c=h.addShape("Polyline",{className:"axis-grid",attrs:M({points:d},i)});c._id=n._id}}))},t.getOffsetPoint=function(){},t.getAxisVector=function(){},t.getOffsetVector=function(t,e){var n=this.getAxisVector(t),r=kt.normalize([],n),i=this.offsetFactor,o=[-1*r[1]*i,r[0]*i];return kt.scale([],o,e)},t.getSidePoint=function(t,e){var n=this.getOffsetVector(t,e);return{x:t.x+n[0],y:t.y+n[1]}},t.getTextAlignInfo=function(t,e){var n=this.getOffsetVector(t,e);return{textAlign:n[0]>0?"left":n[0]<0?"right":"center",textBaseline:n[1]>0?"top":n[1]<0?"bottom":"middle"}},t.getContainer=function(t){var e=this.frontContainer,n=this.backContainer;return t?e:n},e}(),$n=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.start=null,this.end=null},n.getOffsetPoint=function(t){var e=this.start,n=this.end;return{x:e.x+(n.x-e.x)*t,y:e.y+(n.y-e.y)*t}},n.getAxisVector=function(){var t=this.start,e=this.end;return[e.x-t.x,e.y-t.y]},n.drawLine=function(t){var e=this.getContainer(t.top),n=this.start,r=this.end;e.addShape("line",{className:"axis-line",attrs:M({x1:n.x,y1:n.y,x2:r.x,y2:r.y},t)})},e}(Bn);Bn.Line=$n;var Fn=function(){function t(t){this.axisCfg={},this.frontPlot=null,this.backPlot=null,this.axes={},M(this,t)}var e=t.prototype;return e._isHide=function(t){var e=this.axisCfg;return!e||!1===e[t]},e._getLinePosition=function(t,e,n,r){var i="",o=t.field,a=this.axisCfg;return a[o]&&a[o].position?i=a[o].position:"x"===e?i=r?"left":"bottom":"y"===e&&(i=n?"right":"left",r&&(i="bottom")),i},e._getLineCfg=function(t,e,n){var r,i,o=1;return"x"===e?(r={x:0,y:0},i={x:1,y:0}):"right"===n?(r={x:1,y:0},i={x:1,y:1}):(r={x:0,y:0},i={x:0,y:1},o=-1),t.transposed&&(o*=-1),{offsetFactor:o,start:t.convertPoint(r),end:t.convertPoint(i)}},e._getCircleCfg=function(t){return{startAngle:t.startAngle,endAngle:t.endAngle,center:t.center,radius:t.circleRadius}},e._getRadiusCfg=function(t){var e,n;return t.transposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{offsetFactor:-1,start:t.convertPoint(e),end:t.convertPoint(n)}},e._getAxisCfg=function(t,e,n,r,i){var o=this,s=this,u=this.axisCfg,l=e.getTicks(),f=P({ticks:l,frontContainer:this.frontPlot,backContainer:this.backPlot},i,u[e.field]),d=[],h=f.label,p=l.length,v=0,g=0,m=h;return c(l,(function(t,e){if(a(h)){var n=h(t.text,e,p);m=n?M({},mt._defaultAxis.label,n):null}if(m){var r={};m.textAlign&&(r.textAlign=m.textAlign),m.textBaseline&&(r.textBaseline=m.textBaseline);var i=(m.top?o.frontPlot:o.backPlot).addShape("text",{className:"axis-label",aria:!1,attrs:M({x:0,y:0,text:t.text,fontFamily:s.chart.get("canvas").get("fontFamily")},m),value:t.value,textStyle:r,top:m.top,context:s.chart.get("canvas").get("context")});d.push(i);var u=i.getBBox(),l=u.width,c=u.height;v=Math.max(v,l),g=Math.max(g,c)}})),f.labels=d,f.maxWidth=v,f.maxHeight=g,f},e._createAxis=function(t,e,n,r,i){void 0===i&&(i="");var o,a,s,u=t.type,l=t.transposed;if("cartesian"===u||"rect"===u){var c=this._getLinePosition(e,r,i,l);(s=mt.axis[c]).position=c,o="Line",a=c}else"x"===r&&!l||"y"===r&&l?(s=mt.axis.circle,o="Circle",a="circle"):(s=mt.axis.radius,o="Line",a="radius");var f=this._getAxisCfg(t,e,n,r,s);f.type=o,f.dimType=r,f.verticalScale=n,f.index=i,this.axes[a]=f},e.createAxis=function(t,e,n){var r=this;e&&!r._isHide(e.field)&&r._createAxis(t,e,n[0],"x"),c(n,(function(n,i){r._isHide(n.field)||r._createAxis(t,n,e,"y",i)}));var i=this.axes,o=r.chart;if(o._isAutoPadding()){var a=ct(o.get("padding")),u=ct(o.get("appendPadding")),l=o.get("legendRange")||{top:0,right:0,bottom:0,left:0},f=["auto"===a[0]?l.top+2*u[0]:a[0],"auto"===a[1]?l.right+u[1]:a[1],"auto"===a[2]?l.bottom+u[2]:a[2],"auto"===a[3]?l.left+u[3]:a[3]];if(t.isPolar){var d=i.circle;if(d){var h=d.maxHeight,p=d.maxWidth,v=d.labelOffset;f[0]+=h+v,f[1]+=p+v,f[2]+=h+v,f[3]+=p+v}}else{if(i.right&&"auto"===a[1]){var g=i.right,m=g.maxWidth,y=g.labelOffset;f[1]+=m+y}if(i.left&&"auto"===a[3]){var _=i.left,b=_.maxWidth,x=_.labelOffset;f[3]+=b+x}if(i.bottom&&"auto"===a[2]){var w=i.bottom,j=w.maxHeight,S=w.labelOffset;f[2]+=j+S}}o.set("_padding",f),o._updateLayout(f)}c(i,(function(e){var n,i=e.type,o=e.grid,a=e.verticalScale,u=e.ticks,l=e.dimType,f=e.position,d=e.index;if(t.isPolar?"Line"===i?n=r._getRadiusCfg(t):"Circle"===i&&(n=r._getCircleCfg(t)):n=r._getLineCfg(t,l,f),o&&a){var h=[],p=function(t){var e=t.slice(0);if(e.length>0){var n=e[0],r=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==r.value&&e.push({value:1})}return e}(a.getTicks());c(u,(function(e){var n=[];c(p,(function(r){var i="x"===l?e.value:r.value,o="x"===l?r.value:e.value;if(i>=0&&i<=1&&o>=0&&o<=1){var a=t.convertPoint({x:i,y:o});n.push(a)}})),h.push({points:n,_id:"axis-"+l+d+"-grid-"+e.tickValue})})),e.gridPoints=h,t.isPolar&&(e.center=t.center,e.startAngle=t.startAngle,e.endAngle=t.endAngle)}n._id="axis-"+l,s(d)||(n._id="axis-"+l+d),new Bn[i](M(e,n))}))},e.clear=function(){this.axes={},this.frontPlot.clear(),this.backPlot.clear()},t}(),zn=function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.abs(n)>Math.abs(r)?n>0?"right":"left":r>0?"down":"up"},Vn=function(t,e){var n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y);return Math.sqrt(n*n+r*r)},qn=function(){function t(t){var e=this,n=t.canvas,r=t.el;yt(this,"_click",(function(t){var n=st(t,e.canvas);t.points=n,e.emitEvent("click",t)})),yt(this,"_start",(function(t){var n,r,i=st(t,e.canvas);i&&(t.points=i,e.emitEvent("touchstart",t),e.reset(),e.startTime=Date.now(),e.startPoints=i,i.length>1?(e.startDistance=Vn(i[0],i[1]),e.center=(n=i[0],r=i[1],{x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2})):e.pressTimeout=setTimeout((function(){t.direction="none",e.emitStart("press",t),e.emitEvent("press",t),e.eventType="press",e.direction="none"}),250))})),yt(this,"_move",(function(t){var n=st(t,e.canvas);if(n){e.clearPressTimeout(),t.points=n,e.emitEvent("touchmove",t);var r=e.startPoints;if(r)if(n.length>1){var i=e.startDistance,o=Vn(n[0],n[1]);t.zoom=o/i,t.center=e.center,e.emitStart("pinch",t),e.emitEvent("pinch",t)}else{var a=n[0].x-r[0].x,s=n[0].y-r[0].y,u=e.direction||zn(r[0],n[0]);e.direction=u;var l=e.getEventType(n);t.direction=u,t.deltaX=a,t.deltaY=s,e.emitStart(l,t),e.emitEvent(l,t);var c=e.lastMoveTime,f=Date.now();f-c>0&&(e.prevMoveTime=c,e.prevMovePoints=e.lastMovePoints,e.lastMoveTime=f,e.lastMovePoints=n)}}})),yt(this,"_end",(function(t){var n=st(t,e.canvas);t.points=n,e.emitEnd(t),e.emitEvent("touchend",t);var r=e.lastMoveTime;if(Date.now()-r<100){var i=r-(e.prevMoveTime||e.startTime);if(i>0){var o=e.prevMovePoints||e.startPoints,a=e.lastMovePoints,s=Vn(o[0],a[0])/i;s>.3&&(t.velocity=s,t.direction=zn(o[0],a[0]),e.emitEvent("swipe",t))}}e.reset();var u=t.touches;u&&u.length>0&&e._start(t)})),yt(this,"_cancel",(function(t){e.emitEvent("touchcancel",t),e.reset()})),this.canvas=n,this.delegateEvent(r),this.processEvent={}}var e=t.prototype;return e.delegateEvent=function(t){t.addEventListener("click",this._click),t.addEventListener("touchstart",this._start),t.addEventListener("touchmove",this._move),t.addEventListener("touchend",this._end),t.addEventListener("touchcancel",this._cancel)},e.emitEvent=function(t,e){this.canvas.emit(t,e)},e.getEventType=function(t){var e,n=this.eventType,r=this.canvas,i=this.startTime,o=this.startPoints;if(n)return n;var a=r.__events.pan;return e=a&&a.length?Date.now()-i>250&&Vn(o[0],t[0])<10?"press":"pan":"press",this.eventType=e,e},e.enable=function(t){this.processEvent[t]=!0},e.isProcess=function(t){return this.processEvent[t]},e.emitStart=function(t,e){this.isProcess(t)||(this.enable(t),this.emitEvent(t+"start",e))},e.emitEnd=function(t){var e=this,n=this.processEvent;Object.keys(n).forEach((function(r){e.emitEvent(r+"end",t),delete n[r]}))},e.clearPressTimeout=function(){this.pressTimeout&&(clearTimeout(this.pressTimeout),this.pressTimeout=0)},e.reset=function(){this.clearPressTimeout(),this.startTime=0,this.startPoints=null,this.startDistance=0,this.direction=null,this.eventType=null,this.pinch=!1,this.prevMoveTime=0,this.prevMovePoints=null,this.lastMoveTime=0,this.lastMovePoints=null},t}(),Hn=function(t){function e(e){var n;return(n=t.call(this)||this).context=e,n.width=0,n.height=0,n.style={},n.currentStyle={},n.attrs={},n.isCanvasElement=!0,n}bt(e,t);var n=e.prototype;return n.getContext=function(){return this.context},n.getBoundingClientRect=function(){return{top:0,right:this.width,bottom:this.height,left:0}},n.setAttribute=function(t,e){this.attrs[t]=e},n.addEventListener=function(t,e){this.on(t,e)},n.removeEventListener=function(t,e){this.off(t,e)},n.dispatchEvent=function(t,e){this.emit(t,e)},e}(wt),Gn=function(t){return t?function(t){if(!t)return!1;if(1!==t.nodeType||!t.nodeName||"canvas"!==t.nodeName.toLowerCase())return!1;var e=!1;try{t.addEventListener("eventTest",(function(){e=!0})),t.dispatchEvent(new Event("eventTest"))}catch(t){e=!1}return e}(t.canvas)?t.canvas:new Hn(t):null};function Un(t,e){c(t,(function(t){t=t.split(":"),e.addColorStop(Number(t[0]),t[1])}))}function Yn(t,e,n){if("("===t[1])try{var r=t[0];if("l"===r)return function(t,e,n){var r,i,o=t.split(" "),a=o[0].slice(2,o[0].length-1);r=parseFloat(a)*Math.PI/180,i=2*Math.PI,a=(r%i+i)%i;var s,u,l=o.slice(1),c=e.getBBox(),f=c.minX,d=c.minY,h=c.maxX,p=c.maxY;a>=0&&a<.5*Math.PI?(s={x:f,y:d},u={x:h,y:p}):.5*Math.PI<=a&&a-1?(null===t.get("canvas")&&(t=Object.assign({},t)),t.set("parent",this.get("parent")),t.set("context",this.get("context")),t):null},t.attr=function(t,e){var n=this;if(n.get("destroyed"))return null;var r=arguments.length;if(0===r)return n._attrs.attrs;if(l(t)){for(var i in this._attrs.bbox=null,t)n._setAttr(i,t[i]);return n._afterAttrsSet&&n._afterAttrsSet(),n}return 2===r?(this._attrs.bbox=null,n._setAttr(t,e),n._afterAttrsSet&&n._afterAttrsSet(),n):n._getAttr(t)},t.getParent=function(){return this.get("parent")},t.draw=function(t){this.get("destroyed")||this.get("visible")&&(this.setContext(t),this.drawInner(t),this.restoreContext(t))},t.setContext=function(t){var e=this._attrs.attrs.clip;t.save(),e&&(e.resetTransform(t),e.createPath(t),t.clip()),this.resetContext(t),this.resetTransform(t)},t.restoreContext=function(t){t.restore()},t.resetContext=function(t){var e=this._attrs.attrs;for(var n in e)if(Xn.indexOf(n)>-1){var r=e[n];"fillStyle"!==n&&"strokeStyle"!==n||!r||(r=Yn(r,this,t)),"lineDash"===n&&t.setLineDash&&u(r)?t.setLineDash(r):t[n]=r}},t.hasFill=function(){return this.get("canFill")&&this._attrs.attrs.fillStyle},t.hasStroke=function(){return this.get("canStroke")&&this._attrs.attrs.strokeStyle},t.drawInner=function(){},t.show=function(){return this.set("visible",!0),this},t.hide=function(){return this.set("visible",!1),this},t.isVisible=function(){return this.get("visible")},t.getAriaLabel=function(){var t=this._attrs,e=t.destroyed,n=t.visible,r=t.isShape,i=t.aria;if(!e&&n&&(!r||i))return this._getAriaLabel()},t._getAriaLabel=function(){return this._attrs.ariaLabel},t._removeFromParent=function(){var t=this.get("parent");return t&&q(t.get("children"),this),this},t.remove=function(t){t?this.destroy():this._removeFromParent()},t.destroy=function(){if(this.get("destroyed"))return null;this._removeFromParent(),this._attrs={},this.set("destroyed",!0)},t.getBBox=function(){return{minX:0,maxX:0,minY:0,maxY:0,width:0,height:0}},t.initTransform=function(){var t=this._attrs.attrs||{};t.matrix||(t.matrix=[1,0,0,1,0,0]),this._attrs.attrs=t},t.getMatrix=function(){return this._attrs.attrs.matrix},t.setMatrix=function(t){this._attrs.attrs.matrix=[t[0],t[1],t[2],t[3],t[4],t[5]]},t.transform=function(t){var e=this._attrs.attrs.matrix;return this._attrs.attrs.matrix=Ot.transform(e,t),this},t.setTransform=function(t){return this._attrs.attrs.matrix=[1,0,0,1,0,0],this.transform(t)},t.translate=function(t,e){var n=this._attrs.attrs.matrix;Ot.translate(n,n,[t,e])},t.rotate=function(t){var e=this._attrs.attrs.matrix;Ot.rotate(e,e,t)},t.scale=function(t,e){var n=this._attrs.attrs.matrix;Ot.scale(n,n,[t,e])},t.moveTo=function(t,e){var n=this._attrs.x||0,r=this._attrs.y||0;this.translate(t-n,e-r),this.set("x",t),this.set("y",e)},t.apply=function(t){var e=this._attrs.attrs.matrix;return kt.transformMat2d(t,t,e),this},t.resetTransform=function(t){var e=this._attrs.attrs.matrix;Ot.isChanged(e)&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},t.isDestroyed=function(){return this.get("destroyed")},e}(),Qn=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1,isShape:!0,attrs:{}}},n.getType=function(){return this._attrs.type},n.drawInner=function(t){var e=this.get("attrs");this.createPath(t);var n=t.globalAlpha;if(this.hasFill()){var r=e.fillOpacity;s(r)||1===r?t.fill():(t.globalAlpha=r,t.fill(),t.globalAlpha=n)}if(this.hasStroke()&&e.lineWidth>0){var i=e.strokeOpacity;s(i)||1===i||(t.globalAlpha=i),t.stroke()}},n.getBBox=function(){var t=this._attrs.bbox;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._attrs.bbox=t),t},n.calculateBox=function(){return null},n.createPath=function(){},e}(Zn),Jn=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="rect"},n.getDefaultAttrs=function(){return{x:0,y:0,width:0,height:0,radius:0,lineWidth:0}},n.createRadiusPath=function(t,e,n,r,i,o){o=function(t,e,n){if(!((t=ct(t))[0]||t[1]||t[2]||t[3]))return t;var r=Math.max(t[0]+t[1],t[2]+t[3]),i=Math.max(t[0]+t[3],t[1]+t[2]),o=Math.min(e/r,n/i);return o<1?t.map((function(t){return t*o})):t}(o,r,i),t.moveTo(e+o[0],n),t.lineTo(e+r-o[1],n),t.arc(e+r-o[1],n+o[1],o[1],-Math.PI/2,0,!1),t.lineTo(e+r,n+i-o[2]),t.arc(e+r-o[2],n+i-o[2],o[2],0,Math.PI/2,!1),t.lineTo(e+o[3],n+i),t.arc(e+o[3],n+i-o[3],o[3],Math.PI/2,Math.PI,!1),t.lineTo(e,n+o[0]),t.arc(e+o[0],n+o[0],o[0],Math.PI,3*Math.PI/2,!1),t.closePath()},n.createPath=function(t){var e=this.get("attrs"),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;t.beginPath(),a&&i*o?this.createRadiusPath(t,n,r,i,o,a):t.rect(n,r,i,o)},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},e}(Qn),tr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!1,this._attrs.canStroke=!1,this._attrs.loading=!1,this._attrs.image=null,this._attrs.type="image"},n.draw=function(e){var n=this;if(!this.get("loading"))if(this.get("image"))t.prototype.draw.call(this,e);else{var r=this.get("attrs").src;if(r&&window.Image){this.set("loading",!0);var i=new Image;i.crossOrigin="",i.onload=function(){n.set("loading",!1),n.set("image",i),n.draw(e)},i.src=r}}},n.createPath=function(t){var e=this.get("image");this.drawImage(t,e)},n.drawImage=function(t,e){var n=this._attrs,r=n.attrs;if(!n.destroyed){var i=r.x,o=r.y,a=r.width,u=r.height,l=r.sx,c=r.sy,f=r.swidth,d=r.sheight,h=r.radius,p=r.fillOpacity;h&&(t.save(),this.createRadiusPath(t,i,o,a,u,h),t.clip());var v=t.globalAlpha;s(p)||(t.globalAlpha=p),s(l)||s(c)||s(f)||s(d)?t.drawImage(e,i,o,a,u):t.drawImage(e,l,c,f,d,i,o,a,u),t.globalAlpha=v,h&&t.restore()}},e}(Jn),er=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="circle"},n.getDefaultAttrs=function(){return{x:0,y:0,r:0,lineWidth:0}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,r=t.r;return{minX:e-r,maxX:e+r,minY:n-r,maxY:n+r}},e}(Qn),nr=kt.create(),rr=kt.create(),ir=kt.create();function or(t,e,n,r,i){var o=t*t;return e+(3*-e+t*(3*e-e*t))*t+(3*n+t*(-6*n+3*n*t))*t+(3*r-3*r*t)*o+i*(o*t)}function ar(t){for(var e,n,r,i,o,a=1/0,s=-1/0,u=1/0,l=-1/0,c={x:t[0],y:t[1]},f={x:t[2],y:t[3]},d={x:t[4],y:t[5]},h={x:t[6],y:t[7]},p=0;p<100;p++){var v={x:or(o=p/100,(e=c).x,(n=f).x,(r=d).x,(i=h).x),y:or(o,e.y,n.y,r.y,i.y)};v.xs&&(s=v.x),v.yl&&(l=v.y)}return{minX:a,minY:u,maxX:s,maxY:l}}function sr(t,e){if(0!==t.length){for(var n=t[0],r=n.x,i=n.x,o=n.y,a=n.y,s=t.length,u=1;u1e-4)return{minX:t-n,minY:e-n,maxX:t+n,maxY:e+n};nr[0]=Math.cos(r)*n+t,nr[1]=Math.sin(r)*n+e,rr[0]=Math.cos(i)*n+t,rr[1]=Math.sin(i)*n+e;var s=[0,0],u=[0,0];if(kt.min(s,nr,rr),kt.max(u,nr,rr),(r%=2*Math.PI)<0&&(r+=2*Math.PI),(i%=2*Math.PI)<0&&(i+=2*Math.PI),r>i&&!o?i+=2*Math.PI:rr&&(ir[0]=Math.cos(c)*n+t,ir[1]=Math.sin(c)*n+e,kt.min(s,ir,s),kt.max(u,ir,u));return{minX:s[0],minY:s[1],maxX:u[0],maxY:u[1]}}var lr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canStroke=!0,this._attrs.type="line"},n.getDefaultAttrs=function(){return{x1:0,y1:0,x2:0,y2:0,lineWidth:1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x1,r=e.y1,i=e.x2,o=e.y2;t.beginPath(),t.moveTo(n,r),t.lineTo(i,o)},n.calculateBox=function(){var t=this.get("attrs");return function(t,e,n,r,i){return i=i/2||0,{minX:Math.min(t,n)-i,minY:Math.min(e,r)-i,maxX:Math.max(t,n)+i,maxY:Math.max(e,r)+i}}(t.x1,t.y1,t.x2,t.y2,t.lineWidth)},e}(Qn),cr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="polygon"},n.getDefaultAttrs=function(){return{points:null,lineWidth:0}},n.createPath=function(t){var e=this.get("attrs").points;t.beginPath();for(var n=0,r=e.length;nr&&(r=u.maxX),u.minYo&&(o=u.maxY)}return{minX:n-(e=e/2||0),minY:i-e,maxX:r+e,maxY:o+e}}(o,r)}return sr(i,r)},e}(Qn),vr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canStroke=!0,this._attrs.canFill=!0,this._attrs.type="arc"},n.getDefaultAttrs=function(){return{x:0,y:0,r:0,startAngle:0,endAngle:2*Math.PI,anticlockwise:!1,lineWidth:1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,r=e.y,i=e.r,o=e.startAngle,a=e.endAngle,s=e.anticlockwise;t.beginPath(),o!==a&&t.arc(n,r,i,o,a,s)},n.calculateBox=function(){var t=this.get("attrs");return ur(t.x,t.y,t.r,t.startAngle,t.endAngle,t.anticlockwise)},e}(Qn),gr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="sector"},n.getDefaultAttrs=function(){return{x:0,y:0,lineWidth:0,r:0,r0:0,startAngle:0,endAngle:2*Math.PI,anticlockwise:!1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,r=e.y,i=e.startAngle,o=e.endAngle,a=e.r,s=e.r0,u=e.anticlockwise;t.beginPath();var l=Math.cos(i),c=Math.sin(i);t.moveTo(l*s+n,c*s+r),t.lineTo(l*a+n,c*a+r),(Math.abs(o-i)>1e-4||0===i&&o<0)&&(t.arc(n,r,a,i,o,u),t.lineTo(Math.cos(o)*s+n,Math.sin(o)*s+r),0!==s&&t.arc(n,r,s,o,i,!u)),t.closePath()},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,r=t.r,i=t.r0,o=t.startAngle,a=t.endAngle,s=t.anticlockwise,u=ur(e,n,r,o,a,s),l=ur(e,n,i,o,a,s);return{minX:Math.min(u.minX,l.minX),minY:Math.min(u.minY,l.minY),maxX:Math.max(u.maxX,l.maxX),maxY:Math.max(u.maxY,l.maxY)}},e}(Qn),mr=function(t){var e=t.width,n=t.height,r=t.rotate,i=Math.abs(r);return{width:Math.abs(e*Math.cos(i)+n*Math.sin(i)),height:Math.abs(n*Math.cos(i)+e*Math.sin(i))}},yr=0,_r={},br=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="text"},n.getDefaultAttrs=function(){return{lineWidth:0,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null}},n._getFontStyle=function(){var t=this._attrs.attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return t.fontStyle+" "+t.fontVariant+" "+r+" "+e+"px "+n},n._afterAttrsSet=function(){var t=this._attrs.attrs;if(t.font=this._getFontStyle(),t.text){var e=t.text,n=null,r=1;p(e)&&-1!==e.indexOf("\n")&&(r=(n=e.split("\n")).length),t.lineCount=r,t.textArr=n}this.set("attrs",t)},n._getTextHeight=function(){var t=this._attrs.attrs;if(t.height)return t.height;var e=t.lineCount,n=1*t.fontSize;return e>1?n*e+this._getSpaceingY()*(e-1):n},n._getSpaceingY=function(){var t=this._attrs.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},n.drawInner=function(t){var e=this._attrs.attrs,n=e.text,r=e.x,i=e.y;if(!(s(n)||isNaN(r)||isNaN(i))){var o=e.textArr,a=1*e.fontSize,u=this._getSpaceingY();e.rotate&&(t.translate(r,i),t.rotate(e.rotate),r=0,i=0);var l,c,f=e.textBaseline;if(o&&(l=this._getTextHeight()),this.hasFill()){var d=e.fillOpacity;if(s(d)||1===d||(t.globalAlpha=d),o)for(var h=0,p=o.length;h5e3&&(yr=0,_r={}),yr++,_r[o]=a,a}},e}(Qn),xr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.createPath=null,this._attrs.type="custom"},n.createPath=function(t){var e=this.get("createPath");e&&e.call(this,t)},n.calculateBox=function(){var t=this.get("calculateBox");return t&&t.call(this)},e}(Qn),wr={circle:function(t,e,n,r){r.arc(t,e,n,0,2*Math.PI,!1)},square:function(t,e,n,r){r.moveTo(t-n,e-n),r.lineTo(t+n,e-n),r.lineTo(t+n,e+n),r.lineTo(t-n,e+n),r.closePath()}},jr=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="marker"},n.getDefaultAttrs=function(){return{x:0,y:0,lineWidth:0}},n.createPath=function(t){var e,n=this.get("attrs"),r=n.x,i=n.y,o=n.radius,s=n.symbol||"circle";e=a(s)?s:wr[s],t.beginPath(),e(r,i,o,t,this)},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,r=t.radius;return{minX:e-r,minY:n-r,maxX:e+r,maxY:n+r}},e}(Qn);Qn.Rect=Jn,Qn.Image=tr,Qn.Circle=er,Qn.Line=lr,Qn.Polygon=cr,Qn.Polyline=pr,Qn.Arc=vr,Qn.Sector=gr,Qn.Text=br,Qn.Custom=xr,Qn.Marker=jr;var Sr={},Or={getGroupClass:function(){},getChildren:function(){return this.get("children")},addShape:function(t,e){void 0===e&&(e={});var n=Sr[t];n||(n=j(t),Sr[t]=n);var r=new Qn[n](e);return this.add(r),r},addGroup:function(t){var e=new(this.getGroupClass())(t);return this.add(e),e},contain:function(t){return this.get("children").indexOf(t)>-1},sort:function(){for(var t=this.get("children"),e=0,n=t.length;e=i.x&&n<=o.x&&r>=i.y&&r<=a.y}var Dr=Object.freeze({__proto__:null,getClip:Ir,isPointInPlot:Nr});function Rr(t,e){return t-e}var Lr=function(t){bt(n,t),n.initPlugins=function(){return{_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach((function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var r,i,o,a,s=this.descriptors(t),u=s.length;for(r=0;r0;)t.shift().destroy()},e._clearGeoms=function(){for(var t=this.get("geoms"),e=0,n=t.length;e=0&&(e.lineWidth=t.size),M(e,t.style),M({},mt.shape.line,e)}(e);return"dash"===t&&(i.lineDash=mt.lineDash),function(t,e,n,r){var i=t.points;if(i.length&&u(i[0].y)){for(var o=[],a=[],s=0,l=i.length;s1?mt.widthRatio.multiplePie:mt.widthRatio.rose:(n.isLinear&&(a*=o[1]-o[0]),s=mt.widthRatio.column),a*=s,this.hasAdjust("dodge")&&(a/=r.length),t=a,this.set("defaultSize",t)}return t},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("_width");if(!t){var e=this.get("coord");t=e&&e.isPolar&&!e.transposed?(e.endAngle-e.startAngle)*e.circleRadius:this.getDimWidth("x"),this.set("_width",t)}return t},_toNormalizedSize:function(t){return t/this._getWidth()},_toCoordSize:function(t){return this._getWidth()*t},getNormalizedSize:function(t){var e=this.getAttrValue("size",t);return e=s(e)?this.getDefaultSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(s(e)){var n=this.getDefaultSize();e=this._toCoordSize(n)}return e}};function Zr(t){var e,n,r=t.x,i=t.y,o=t.y0,a=t.size,s=o,l=i;return u(i)&&(l=i[1],s=i[0]),u(r)?(e=r[0],n=r[1]):(e=r-a/2,n=r+a/2),[{x:e,y:s},{x:e,y:l},{x:n,y:l},{x:n,y:s}]}Vt.registerFactory("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Zr(t)}}),Vt.registerShape("interval","rect",{draw:function(t,e){var n=this.parsePoints(t.points),r=M({fill:t.color},mt.shape.interval,t.style);if(t.isInCircle){var i=n.slice(0);this._coord.transposed&&(i=[n[0],n[3],n[2],n[1]]);var o=t.center,a=o.x,s=o.y,u=[1,0],l=[i[0].x-a,i[0].y-s],c=[i[1].x-a,i[1].y-s],f=[i[2].x-a,i[2].y-s],d=kt.angleTo(u,c),h=kt.angleTo(u,f),p=kt.length(l),v=kt.length(c);return d>=1.5*Math.PI&&(d-=2*Math.PI),h>=1.5*Math.PI&&(h-=2*Math.PI),e.addShape("Sector",{className:"interval",attrs:M({x:a,y:s,r:v,r0:p,startAngle:d,endAngle:h},r)})}var g=function(t){for(var e=[],n=[],r=0,i=t.length;r=0?"positive":"negative";i[h][d]||(i[h][d]=0),l[n]=[i[h][d],f+i[h][d]],i[h][d]+=f}}},r}(Yt);Yt.Stack=oi;var ai="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},si=function(t){var e=void 0===t?"undefined":ai(t);return null!==t&&"object"===e||"function"===e},ui=function(t,e){if(t)if(ri(t))for(var n=0,r=t.length;nr&&(n=t,r=i)})),n}},di={merge:function(t){for(var e=[],n=0;n0&&u<=1&&(r*=u),this.x={start:this.startAngle,end:this.endAngle},this.y={start:r*o,end:r},this.center=i,this.circleRadius=r},n._convertPoint=function(t){var e=this.center,n=this.transposed,r=n?"y":"x",i=n?"x":"y",o=this.x,a=this.y,s=o.start+(o.end-o.start)*t[r],u=a.start+(a.end-a.start)*t[i];return{x:e.x+Math.cos(s)*u,y:e.y+Math.sin(s)*u}},n._invertPoint=function(t){var e=this.center,n=this.transposed,r=this.x,i=this.y,o=n?"y":"x",a=n?"x":"y",s=[1,0,0,1,0,0];Ot.rotate(s,s,r.start);var u=[1,0];kt.transformMat2d(u,u,s),u=[u[0],u[1]];var l=[t.x-e.x,t.y-e.y];if(kt.zero(l))return{x:0,y:0};var c=kt.angleTo(u,l,r.end0?d:-d;var h=(f-i.start)/(i.end-i.start),p={};return p[o]=d,p[a]=h,p},e}(Ct);Ct.Polar=pi;var vi=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.startAngle=-Math.PI/2,this.endAngle=3*Math.PI/2,this.radius=null,this.center=null},n.getOffsetPoint=function(t){var e=this.startAngle,n=e+(this.endAngle-e)*t;return this._getCirclePoint(n)},n._getCirclePoint=function(t,e){var n=this.center;return e=e||this.radius,{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},n.getTextAlignInfo=function(t,e){var n,r=this.getOffsetVector(t,e),i="middle";return r[0]>0?n="left":r[0]<0?n="right":(n="center",r[1]>0?i="top":r[1]<0&&(i="bottom")),{textAlign:n,textBaseline:i}},n.getAxisVector=function(t){var e=this.center,n=this.offsetFactor;return[(t.y-e.y)*n,-1*(t.x-e.x)*n]},n.drawLine=function(t){var e=this.center,n=this.radius,r=this.startAngle,i=this.endAngle;this.getContainer(t.top).addShape("arc",{className:"axis-line",attrs:M({x:e.x,y:e.y,r:n,startAngle:r,endAngle:i},t)})},e}(Bn);Bn.Circle=vi;var gi={min:0,median:.5,max:1},mi=function(){var t=e.prototype;function e(t){this._initDefaultCfg(),P(this,t)}return t._initDefaultCfg=function(){},t._getNormalizedValue=function(t,e){return s(gi[t])?e.scale(t):gi[t]},t.parsePercentPoint=function(t,e){var n=parseFloat(e[0])/100,r=parseFloat(e[1])/100,i=t.start,o=t.end,a=Math.abs(i.x-o.x),s=Math.abs(i.y-o.y);return{x:a*n+Math.min(i.x,o.x),y:s*r+Math.min(i.y,o.y)}},t.parsePoint=function(t,e){var n=this.xScale,r=this.yScales;if(a(e)&&(e=e(n,r)),p(e[0])&&-1!==e[0].indexOf("%")&&!isNaN(e[0].slice(0,-1)))return this.parsePercentPoint(t,e);var i=this._getNormalizedValue(e[0],n),o=this._getNormalizedValue(e[1],r[0]),s=t.convertPoint({x:i,y:o});return this.limitInPlot?i>=0&&i<=1&&o>=0&&o<=1?s:null:s},t.render=function(){},t.repaint=function(){this.remove();var t=this.coord,e=this.container,n=this.canvas;e&&!e.isDestroyed()&&(this.render(t,e),n.draw())},t.remove=function(){var t=this.element;t&&t.remove(!0)},t.changeVisible=function(t){this.visible=t;var e=this.element;e&&(e.set?e.set("visible",t):e.style.display=t?"":"none")},e}(),yi=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="arc",this.start=[],this.end=[],this.style={stroke:"#999",lineWidth:1}},n.render=function(t,e){var n=this.parsePoint(t,this.start),r=this.parsePoint(t,this.end);if(n&&r){var i=t.center,o=Math.sqrt((n.x-i.x)*(n.x-i.x)+(n.y-i.y)*(n.y-i.y)),a=Math.atan2(n.y-i.y,n.x-i.x),s=Math.atan2(r.y-i.y,r.x-i.x),u=e.addShape("arc",{className:"guide-arc",attrs:M({x:i.x,y:i.y,r:o,startAngle:a,endAngle:s},this.style)});return this.element=u,u}},e}(mi);function _i(t,e){for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}function bi(t){var e=document.createElement("div");return t=t.replace(/(^\s*)|(\s*$)/g,""),e.innerHTML=""+t,e.childNodes[0]}mi.Arc=yi;var xi=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="html",this.position=null,this.alignX="center",this.alignY="middle",this.offsetX=null,this.offsetY=null,this.html=null},n.render=function(t,e){var n=this.parsePoint(t,this.position);if(n){var r=bi(this.html);r=_i(r,{position:"absolute",top:Math.floor(n.y)+"px",left:Math.floor(n.x)+"px",visibility:"hidden"});var i=e.get("canvas").get("el"),o=i.parentNode;o=_i(o,{position:"relative"});var a=bi('
');o.appendChild(a),a.appendChild(r);var s=i.offsetTop,u=i.offsetLeft,l=this.alignX,c=this.alignY,f=this.offsetX,d=this.offsetY,h=function(t,e,n,r){var i=[];return"left"===t&&"top"===e?(i[0]=0,i[1]=0):"right"===t&&"top"===e?(i[0]=-n,i[1]=0):"left"===t&&"bottom"===e?(i[0]=0,i[1]=Math.floor(-r)):"right"===t&&"bottom"===e?(i[0]=Math.floor(-n),i[1]=Math.floor(-r)):"right"===t&&"middle"===e?(i[0]=Math.floor(-n),i[1]=Math.floor(-r/2)):"left"===t&&"middle"===e?(i[0]=0,i[1]=Math.floor(-r/2)):"center"===t&&"bottom"===e?(i[0]=Math.floor(-n/2),i[1]=Math.floor(-r)):"center"===t&&"top"===e?(i[0]=Math.floor(-n/2),i[1]=0):(i[0]=Math.floor(-n/2),i[1]=Math.floor(-r/2)),i}(l,c,tt(r),et(r));n.x=n.x+h[0]+u,n.y=n.y+h[1]+s,f&&(n.x+=f),d&&(n.y+=d),_i(r,{top:Math.floor(n.y)+"px",left:Math.floor(n.x)+"px",visibility:"visible"}),this.element=a}},n.remove=function(){var t=this.element;t&&t.parentNode&&t.parentNode.removeChild(t)},e}(mi);mi.Html=xi;var wi=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="line",this.start=[],this.end=[],this.style={stroke:"#000",lineWidth:1}},n.render=function(t,e){var n=[];if(n[0]=this.parsePoint(t,this.start),n[1]=this.parsePoint(t,this.end),n[0]&&n[1]){var r=e.addShape("Line",{className:"guide-line",attrs:M({x1:n[0].x,y1:n[0].y,x2:n[1].x,y2:n[1].y},this.style)});return this.element=r,r}},e}(mi);mi.Line=wi;var ji=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="rect",this.start=[],this.end=[],this.style={fill:"#CCD7EB",opacity:.4}},n.render=function(t,e){var n=this.parsePoint(t,this.start),r=this.parsePoint(t,this.end);if(n&&r){var i=e.addShape("rect",{className:"guide-rect",attrs:M({x:Math.min(n.x,r.x),y:Math.min(n.y,r.y),width:Math.abs(r.x-n.x),height:Math.abs(n.y-r.y)},this.style)});return this.element=i,i}},e}(mi);mi.Rect=ji;var Si=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="text",this.position=null,this.content=null,this.style={fill:"#000"},this.offsetX=0,this.offsetY=0},n.render=function(t,e){var n=this.position,r=this.parsePoint(t,n);if(r){var i=this.content,o=this.style,a=this.offsetX,s=this.offsetY;a&&(r.x+=a),s&&(r.y+=s);var u=e.addShape("text",{className:"guide-text",attrs:M({x:r.x,y:r.y,text:i},o)});return this.element=u,u}},e}(mi);mi.Text=Si;var Oi=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="tag",this.position=null,this.content=null,this.direct="tl",this.autoAdjust=!0,this.offsetX=0,this.offsetY=0,this.side=4,this.background={padding:5,radius:2,fill:"#1890FF"},this.textStyle={fontSize:12,fill:"#fff",textAlign:"center",textBaseline:"middle"},this.withPoint=!0,this.pointStyle={fill:"#1890FF",r:3,lineWidth:1,stroke:"#fff"}},n._getDirect=function(t,e,n,r){var i=this.direct,o=this.side,a=t.get("canvas"),s=a.get("width"),u=a.get("height"),l=e.x,c=e.y,f=i[0],d=i[1];"t"===f&&c-o-r<0?f="b":"b"===f&&c+o+r>u&&(f="t");var h="c"===f?o:0;return"l"===d&&l-h-n<0?d="r":"r"===d&&l+h+n>s?d="l":"c"===d&&(n/2+l+h>s?d="l":l-n/2-h<0&&(d="r")),i=f+d},n.render=function(t,e){var n=this.parsePoint(t,this.position);if(n&&!isNaN(n.x)&&!isNaN(n.y)){var r=this.content,i=this.background,o=this.textStyle,a=[],s=e.addGroup({className:"guide-tag"});if(this.withPoint){var u=s.addShape("Circle",{className:"guide-tag-point",attrs:M({x:n.x,y:n.y},this.pointStyle)});a.push(u)}var l=s.addGroup(),c=l.addShape("text",{className:"guide-tag-text",zIndex:1,attrs:M({x:0,y:0,text:r},o)});a.push(c);var f=c.getBBox(),d=ct(i.padding),h=f.width+d[1]+d[3],p=f.height+d[0]+d[2],v=f.minY-d[0],g=f.minX-d[3],m=l.addShape("rect",{className:"guide-tag-bg",zIndex:-1,attrs:M({x:g,y:v,width:h,height:p},i)});a.push(m);var y,_=this.autoAdjust?this._getDirect(e,n,h,p):this.direct,b=this.side,x=n.x+this.offsetX,w=n.y+this.offsetY,j=ct(i.radius);"tl"===_?(y=[{x:h+g-b-1,y:p+v-1},{x:h+g,y:p+v-1},{x:h+g,y:p+b+v}],j[2]=0,x-=h,w=w-b-p):"cl"===_?(y=[{x:h+g-1,y:(p-b)/2+v-1},{x:h+g-1,y:(p+b)/2+v+1},{x:h+b+g,y:p/2+v}],x=x-h-b,w-=p/2):"bl"===_?(y=[{x:h+g,y:-b+v},{x:h+g-b-1,y:v+1},{x:h+g,y:v+1}],j[1]=0,x-=h,w+=b):"bc"===_?(y=[{x:h/2+g,y:-b+v},{x:(h-b)/2+g-1,y:v+1},{x:(h+b)/2+g+1,y:v+1}],x-=h/2,w+=b):"br"===_?(y=[{x:g,y:v-b},{x:g,y:v+1},{x:g+b+1,y:v+1}],j[0]=0,w+=b):"cr"===_?(y=[{x:g-b,y:p/2+v},{x:g+1,y:(p-b)/2+v-1},{x:g+1,y:(p+b)/2+v+1}],x+=b,w-=p/2):"tr"===_?(y=[{x:g,y:p+b+v},{x:g,y:p+v-1},{x:b+g+1,y:p+v-1}],j[3]=0,w=w-p-b):"tc"===_&&(y=[{x:(h-b)/2+g-1,y:p+v-1},{x:(h+b)/2+g+1,y:p+v-1},{x:h/2+g,y:p+b+v}],x-=h/2,w=w-p-b);var S=l.addShape("Polygon",{className:"guide-tag-side",zIndex:0,attrs:{points:y,fill:i.fill}});return a.push(S),m.attr("radius",j),l.moveTo(x-g,w-v),l.sort(),this.element=s,a}},e}(mi);mi.Tag=Oi;var ki=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="point",this.position=null,this.offsetX=0,this.offsetY=0,this.style={fill:"#1890FF",r:3,lineWidth:1,stroke:"#fff"}},n.render=function(t,e){var n=this.parsePoint(t,this.position);if(!n)return null;var r=e.addShape("Circle",{className:"guide-point",attrs:M({x:n.x+this.offsetX,y:n.y+this.offsetY},this.style)});return this.element=r,r},e}(mi);mi.Point=ki;var Ei=function(){var t=e.prototype;function e(t){P(this,this.getDefaultCfg(),t),this._init(),this._renderTitle(),this._renderItems()}return t.getDefaultCfg=function(){return{showTitle:!1,title:null,items:null,titleGap:12,itemGap:10,itemMarginBottom:12,itemFormatter:null,itemWidth:null,wordSpace:6,x:0,y:0,layout:"horizontal",joinString:": "}},t._init=function(){var t=this.parent;if(t){var e=t.addGroup({zIndex:this.zIndex||0});this.container=e;var n=e.addGroup();this.wrapper=n;var r=n.addGroup({className:"itemsGroup"});this.itemsGroup=r}},t._renderTitle=function(t){t=t||this.title;var e=this.titleShape,n=0;if(this.showTitle&&t){if(e&&!e.get("destroyed"))e.attr("text",t);else{var r=this.wrapper,i=this.titleStyle;e=r.addShape("text",{className:"title",attrs:M({x:0,y:0,text:t},i)}),this.titleShape=e}n=e.getBBox().height+this.titleGap}this._titleHeight=n},t._renderItems=function(t){var e=this;(t=t||e.items)&&(e.reversed&&t.reverse(),c(t,(function(t,n){e._addItem(t,n)})),t.length>1&&this._adjustItems(),this._renderBackground())},t._renderBackground=function(){var t=this.background;if(t){var e=this.container,n=this.wrapper.getBBox(),r=n.minX,i=n.minY,o=n.width,a=n.height,s=t.padding||[0,0,0,0],u=M({x:r-(s=ct(s))[3],y:i-s[0],width:o+s[1]+s[3],height:a+s[0]+s[2]},t),l=this.backShape;l?l.attr(u):l=e.addShape("Rect",{zIndex:-1,attrs:u}),this.backShape=l,e.sort()}},t._addItem=function(t){var e,n=this.itemsGroup.addGroup({name:t.name,value:t.value,dataValue:t.dataValue,checked:t.checked}),r=this.unCheckStyle,i=this.unCheckColor,o=this.nameStyle,a=this.valueStyle,s=this.wordSpace,u=t.marker,l=t.value,c=0;if(i&&(r.fill=i),u){var f=M({x:u.radius||3,y:this._titleHeight},u);!1===t.checked&&M(f,r),c+=n.addShape("marker",{className:"item-marker",attrs:f}).getBBox().width+s}var d=t.name;if(d){var h=this.joinString||"";d=l?d+h:d,e=n.addShape("text",{className:"name",attrs:M({x:c,y:this._titleHeight,text:this._formatItemValue(d)},o,!1===t.checked?r:null)})}if(l){var p=c;e&&(p+=e.getBBox().width),n.addShape("text",{className:"value",attrs:M({x:p,y:this._titleHeight,text:l},a,!1===t.checked?r:null)})}return n},t._formatItemValue=function(t){var e=this.itemFormatter;return e&&(t=e.call(this,t)),t},t._getMaxItemWidth=function(){var t=this.itemWidth;if(_(t)||s(t))return t;if("auto"===t){for(var e=this.itemsGroup.get("children"),n=e.length,r=0,i=0;i1e-4&&(s++,u=0),h.moveTo(u,s*e),c.push({x:u,y:s*e+a-v/2,width:1.375*g,height:1.375*v}),u+=t+i}this.legendHitBoxes=c},t._adjustVertical=function(){for(var t,e,n=this.maxLength,r=this.itemsGroup,i=this.itemGap,o=this.itemMarginBottom,a=this.itemWidth,s=this._titleHeight,u=r.get("children"),l=0,c=0,f=0,d=[],h=0,p=u.length;hc&&(c=t+i),n-l=e.br.y&&(s=e.br.y-i),a<0&&(a=e.tl.x,n&&n.attr("x1",e.tl.x+o)),r.updatePosition(a,s)}},t.setXTipContent=function(t){var e=this.xTip;t=a(e)?e(t):M({text:t},e),this.xTipBox&&this.xTipBox.updateContent(t)},t.setXTipPosition=function(t){var e=this.showXTip,n=this.canvas,r=this.plotRange,i=this.xTipBox,o=this.crosshairsShapeY;if(e){var a=n.get("height"),s=i.getWidth(),u=i.getHeight(),l=t-s/2,c=r.br.y;l<=r.tl.x&&(l=r.tl.x),l+s>=r.tr.x&&(l=r.tr.x-s),a-c1?(t[0].x+t[t.length-1].x)/2:t[0].x)-f/2+r)p.x&&(v=p.x-f),a){var m=g+d;a.attr("points",[{x:s-3,y:m},{x:s+3,y:m},{x:s,y:m+4}]);var y=e.backShape,_=ct(y.attr("radius"));s===h.x?(_[3]=0,a.attr("points",[{x:h.x,y:m},{x:h.x+4,y:m},{x:h.x,y:m+4}])):s===p.x&&(_[2]=0,a.attr("points",[{x:p.x-4,y:m},{x:p.x,y:m},{x:p.x,y:m+4}])),y.attr("radius",_)}e.moveTo(v-l,g-c)}},t.setMarkers=function(t){void 0===t&&(t={});var e=t,n=e.items,r=e.style,i=e.type,o=this._getMarkerGroup(i);if("circle"===i)for(var a=0,s=n.length;a16&&(e.showTooltip(i),e.timeStamp=a)}else e.hideTooltip()}})),yt(this,"handleHideEvent",(function(){e.enable&&e.hideTooltip()})),this.enable=!0,this.cfg={},this.tooltip=null,this.chart=null,this.timeStamp=0,M(this,t);var n=this.chart.get("canvas");this.canvas=n,this.canvasDom=n.get("el")}var e=t.prototype;return e._setCrosshairsCfg=function(){var t=this.chart,e=M({},mt.tooltip),n=t.get("geoms"),r=[];c(n,(function(t){var e=t.get("type");-1===r.indexOf(e)&&r.push(e)}));var i=t.get("coord").type;return!n.length||"cartesian"!==i&&"rect"!==i||1===r.length&&-1!==["line","area","path","point"].indexOf(r[0])&&M(e,{showCrosshairs:!0}),e},e._getMaxLength=function(t){void 0===t&&(t={});var e=t,n=e.layout,r=e.plotRange;return"horizontal"===n?r.br.x-r.bl.x:r.bl.y-r.tr.y},e.render=function(){if(!this.tooltip){var t=this.chart,e=t.get("canvas"),n=t.get("frontPlot").addGroup({className:"tooltipContainer",zIndex:10}),r=t.get("backPlot").addGroup({className:"tooltipContainer"}),i=t.get("plotRange"),o=t.get("coord"),a=this._setCrosshairsCfg(),s=this.cfg,u=P({plotRange:i,frontPlot:n,backPlot:r,canvas:e,fixed:o.transposed||o.isPolar},a,s);u.maxLength=this._getMaxLength(u),this._tooltipCfg=u;var l=new Mi(u);this.tooltip=l,u.alwaysShow&&this.prePoint&&this.showTooltip(this.prePoint),this.bindEvents()}},e.clear=function(){var t=this.tooltip;t&&(t.destroy(),this.unBindEvents()),this.tooltip=null,this._lastActive=null},e._getTooltipMarkerStyle=function(t){void 0===t&&(t={});var e=t,n=e.type,r=e.items,i=this._tooltipCfg;if("rect"===n){var o,a,s,u,l=this.chart,c=l.get("plotRange"),f=c.tl,d=c.br,h=l.get("coord"),p=r[0],v=r[r.length-1],g=p.width;h.transposed?(o=f.x,a=v.y-.75*g,s=d.x-f.x,u=p.y-v.y+1.5*g):(o=p.x-.75*g,a=f.y,s=v.x-p.x+1.5*g,u=d.y-f.y),t.style=M({x:o,y:a,width:s,height:u,fill:"#CCD6EC",opacity:.3},i.tooltipMarkerStyle)}else t.style=M({radius:4,fill:"#fff",lineWidth:2},i.tooltipMarkerStyle);return t},e._setTooltip=function(t,e,n){void 0===n&&(n={}),this.prePoint=t;var r=this._lastActive,i=this.tooltip,o=this._tooltipCfg;e=Ni(e);var a=this.chart,s=a.get("coord"),u=a.getYScales()[0],l=o.snap;if(!1===l&&u.isLinear){var c,f,d=s.invertPoint(t);Nr(t,a.get("plotRange"))&&(s.transposed?(c=u.invert(d.x),f=t.x,i.setXTipContent(c),i.setXTipPosition(f),i.setYCrosshairPosition(f)):(c=u.invert(d.y),f=t.y,i.setYTipContent(c),i.setYTipPosition(f),i.setXCrosshairPosition(f)))}if(o.onShow&&o.onShow({x:t.x,y:t.y,tooltip:i,items:e,tooltipMarkerCfg:n}),h=r,p=e,JSON.stringify(h)!==JSON.stringify(p)){var h,p;this._lastActive=e;var v=o.onChange;v&&v({x:t.x,y:t.y,tooltip:i,items:e,tooltipMarkerCfg:n});var g=e[0],m=g.title||g.name,y=g.x;if(e.length>1&&(y=(e[0].x+e[e.length-1].x)/2),i.setContent(m,e,s.transposed),i.setPosition(e,t),s.transposed){var _=g.y;e.length>1&&(_=(e[0].y+e[e.length-1].y)/2),i.setYTipContent(m),i.setYTipPosition(_),i.setXCrosshairPosition(_),l&&(i.setXTipContent(g.value),i.setXTipPosition(y),i.setYCrosshairPosition(y))}else i.setXTipContent(m),i.setXTipPosition(y),i.setYCrosshairPosition(y),l&&(i.setYTipContent(g.value),i.setYTipPosition(g.y),i.setXCrosshairPosition(g.y));var b=n.items;o.showTooltipMarker&&b.length?(n=this._getTooltipMarkerStyle(n),i.setMarkers(n)):i.clearMarkers(),i.show()}else!1===l&&(ft(o.crosshairsType,"y")||o.showYTip)&&this.chart.get("canvas").draw()},e.showTooltip=function(t){var e,n,r=this.chart,i=[],o=[],a=this._tooltipCfg,s=a.showItemMarker,l=a.itemMarkerStyle,f=a.alwaysShow;s&&(n=l);var d=r.get("geoms"),h=r.get("coord");if(c(d,(function(r){if(r.get("visible")){var a=r.get("type"),s=r.getSnapRecords(t),l=r.get("adjust");if("interval"===a&&l&&"symmetric"===l.type)return;c(s,(function(t){var s=t.x,l=t.y,c=t._origin,f=t.color;if((s||!isNaN(s))&&(l||!isNaN(l))){var d={x:s,y:u(l)?l[1]:l,color:f||mt.defaultColor,origin:c,name:Pi(r,c),value:Ai(r,c),title:Ii(r,c)};n&&(d.marker=M({fill:f||mt.defaultColor},n)),o.push(d),-1!==["line","area","path"].indexOf(a)?(e="circle",i.push(d)):"interval"!==a||"cartesian"!==h.type&&"rect"!==h.type||(e="rect",d.width=r.getSize(t._origin),i.push(d))}}))}})),o.length){var p={items:i,type:e};this._setTooltip(t,o,p)}else f||this.hideTooltip()},e.hideTooltip=function(){var t=this._tooltipCfg;this._lastActive=null;var e=this.tooltip;e&&(e.hide(),t.onHide&&t.onHide({tooltip:e}),this.chart.get("canvas").draw())},e._handleEvent=function(t,e,n){var r=this.canvas;c([].concat(t),(function(t){"bind"===n?r.on(t,e):r.off(t,e)}))},e.bindEvents=function(){var t=this._tooltipCfg,e=t.triggerOn,n=t.triggerOff,r=t.alwaysShow;e&&this._handleEvent(e,this.handleShowEvent,"bind"),r||this._handleEvent(n,this.handleHideEvent,"bind")},e.unBindEvents=function(){var t=this._tooltipCfg,e=t.triggerOn,n=t.triggerOff,r=t.alwaysShow;e&&this._handleEvent(e,this.handleShowEvent,"unBind"),r||this._handleEvent(n,this.handleHideEvent,"unBind")},t}();function Ri(t){var e=new Di({chart:t});t.set("tooltipController",e),t.tooltip=function(t,n){return l(t)&&(n=t,t=!0),e.enable=t,n&&(e.cfg=n),this}}function Li(t){var e=t.get("tooltipController");e.render(),t.showTooltip=function(t){return e.showTooltip(t),this},t.hideTooltip=function(){return e.hideTooltip(),this}}function Bi(t){t.get("tooltipController").clear()}var $i={init:Ri,afterGeomDraw:Li,clearInner:Bi},Fi=Object.freeze({__proto__:null,init:Ri,afterGeomDraw:Li,clearInner:Bi,default:$i});mt.guide=P({line:{style:{stroke:"#a3a3a3",lineWidth:1},top:!0},text:{style:{fill:"#787878",textAlign:"center",textBaseline:"middle"},offsetX:0,offsetY:0,top:!0},rect:{style:{fill:"#fafafa"},top:!1},arc:{style:{stroke:"#a3a3a3"},top:!0},html:{offsetX:0,offsetY:0,alignX:"center",alignY:"middle"},tag:{top:!0,offsetX:0,offsetY:0,side:4,background:{padding:5,radius:2,fill:"#1890FF"},textStyle:{fontSize:12,fill:"#fff",textAlign:"center",textBaseline:"middle"}},point:{top:!0,offsetX:0,offsetY:0,style:{fill:"#fff",r:3,lineWidth:2,stroke:"#1890ff"}}},mt.guide||{});var zi=function(){function t(t){this.guides=[],this.xScale=null,this.yScales=null,this.guideShapes=[],M(this,t)}var e=t.prototype;return e._toString=function(t){return a(t)&&(t=t(this.xScale,this.yScales)),t=t.toString()},e._getId=function(t,e){var n=e.id;if(!n){var r=e.type;n="arc"===r||"line"===r||"rect"===r?this._toString(e.start)+"-"+this._toString(e.end):this._toString(e.position)}return n},e.paint=function(t){var e=this,n=e.chart,r=e.guides,i=e.xScale,o=e.yScales,a=[];c(r,(function(r,s){var u;r.xScale=i,r.yScales=o,"regionFilter"===r.type?r.chart=n:u=r.top?e.frontPlot:e.backPlot,r.coord=t,r.container=u,r.canvas=n.get("canvas");var l=r.render(t,u);if(l){var c=e._getId(l,r);[].concat(l).forEach((function(t){t._id=t.get("className")+"-"+c,t.set("index",s),a.push(t)}))}})),e.guideShapes=a},e.clear=function(){return this.reset(),this.guides=[],this},e.reset=function(){c(this.guides,(function(t){t.remove()}))},e._createGuide=function(t,e){var n=j(t),r=new mi[n](P({},mt.guide[t],e));return this.guides.push(r),r},e.line=function(t){return void 0===t&&(t={}),this._createGuide("line",t)},e.text=function(t){return void 0===t&&(t={}),this._createGuide("text",t)},e.arc=function(t){return void 0===t&&(t={}),this._createGuide("arc",t)},e.html=function(t){return void 0===t&&(t={}),this._createGuide("html",t)},e.rect=function(t){return void 0===t&&(t={}),this._createGuide("rect",t)},e.tag=function(t){return void 0===t&&(t={}),this._createGuide("tag",t)},e.point=function(t){return void 0===t&&(t={}),this._createGuide("point",t)},e.regionFilter=function(t){return void 0===t&&(t={}),this._createGuide("regionFilter",t)},t}();function Vi(t){var e=new zi({frontPlot:t.get("frontPlot").addGroup({zIndex:20,className:"guideContainer"}),backPlot:t.get("backPlot").addGroup({className:"guideContainer"})});t.set("guideController",e),t.guide=function(){return e}}function qi(t){var e=t.get("guideController");if(e.guides.length){var n=t.getXScale(),r=t.getYScales(),i=t.get("coord");e.xScale=n,e.yScales=r,e.chart=t,e.paint(i)}}function Hi(t){t.get("guideController").clear()}function Gi(t){t.get("guideController").reset()}var Ui={init:Vi,afterGeomDraw:qi,clear:Hi,repaint:Gi},Yi=Object.freeze({__proto__:null,init:Vi,afterGeomDraw:qi,clear:Hi,repaint:Gi,default:Ui}),Wi={itemMarginBottom:12,itemGap:10,showTitle:!1,titleStyle:{fontSize:12,fill:"#808080",textAlign:"start",textBaseline:"top"},nameStyle:{fill:"#808080",fontSize:12,textAlign:"start",textBaseline:"middle"},valueStyle:{fill:"#000000",fontSize:12,textAlign:"start",textBaseline:"middle"},unCheckStyle:{fill:"#bfbfbf"},itemWidth:"auto",wordSpace:6,selectedMode:"multiple"};mt.legend=P({common:Wi,right:M({position:"right",layout:"vertical"},Wi),left:M({position:"left",layout:"vertical"},Wi),top:M({position:"top",layout:"horizontal"},Wi),bottom:M({position:"bottom",layout:"horizontal"},Wi)},mt.legend||{});var Xi=function(){function t(t){var e=this;yt(this,"handleEvent",(function(t){var n=e,r=n.chart,i=ut(t,r),o=function(t,e){var r=null;return c(n.legends,(function(n){c(n,(function(n){var i=n.itemsGroup,o=n.legendHitBoxes,a=i.get("children");if(a.length){var s=n.x,u=n.y;c(o,(function(i,o){if(t>=i.x+s&&t<=i.x+i.width+s&&e>=i.y+u&&e<=i.height+i.y+u)return r={clickedItem:a[o],clickedLegend:n},!1}))}}))})),r}(i.x,i.y);if(o&&!1!==o.clickedLegend.clickable){var a=o.clickedItem,s=o.clickedLegend;if(s.onClick)t.clickedItem=a,s.onClick(t);else if(!s.custom){var u=a.get("checked"),l=a.get("dataValue"),f=s.filteredVals,d=s.field;"single"===s.selectedMode?r.filter(d,(function(t){return t===l})):(u?f.push(l):q(f,l),r.filter(d,(function(t){return-1===f.indexOf(t)}))),r.repaint()}}})),this.legendCfg={},this.enable=!0,this.position="top",M(this,t);var n=this.chart;this.canvasDom=n.get("canvas").get("el"),this.clear()}var e=t.prototype;return e.addLegend=function(t,e,n){var r=this.legendCfg,i=t.field,o=r[i];if(!1===o)return null;if(o&&o.custom)this.addCustomLegend(i);else{var a=r.position||this.position;o&&o.position&&(a=o.position),t.isCategory&&this._addCategoryLegend(t,e,a,n)}},e.addCustomLegend=function(t){var e=this.legendCfg;t&&e[t]&&(e=e[t]);var n=e.position||this.position,r=this.legends;r[n]=r[n]||[];var i=e.items;if(!i)return null;var o=this.container;c(i,(function(t){h(t.marker)?t.marker.radius=t.marker.radius||3:t.marker={symbol:t.marker||"circle",fill:t.fill,radius:3},t.checked=!!s(t.checked)||t.checked,t.name=t.name||t.value}));var a=new Ei(P({},mt.legend[n],e,{maxLength:this._getMaxLength(n),items:i,parent:o}));r[n].push(a)},e.clear=function(){c(this.legends,(function(t){c(t,(function(t){t.clear()}))})),this.legends={},this.unBindEvents()},e._isFiltered=function(t,e,n){var r=!1;return c(e,(function(e){if(r=r||t.getText(e)===t.getText(n))return!1})),r},e._getMaxLength=function(t){var e=this.chart,n=ct(e.get("appendPadding"));return"right"===t||"left"===t?e.get("height")-(n[0]+n[2]):e.get("width")-(n[1]+n[3])},e._addCategoryLegend=function(t,e,n,r){var i=this,o=i.legendCfg,a=i.legends,s=i.container,u=i.chart,l=t.field;a[n]=a[n]||[];var f="circle";o[l]&&o[l].marker?f=o[l].marker:o.marker&&(f=o.marker),c(e,(function(e){h(f)?M(e.marker,f):e.marker.symbol=f,r&&(e.checked=!i._isFiltered(t,r,e.dataValue))})),u.get("legendItems")[l]=e;var d=P({},mt.legend[n],o[l]||o,{maxLength:i._getMaxLength(n),items:e,field:l,filteredVals:r,parent:s});d.showTitle&&P(d,{title:t.alias||t.field});var p=new Ei(d);return a[n].push(p),p},e._alignLegend=function(t,e,n){var r=this.plotRange,i=r.tl,o=r.bl,a=this.chart,s=t.offsetX||0,u=t.offsetY||0,l=a.get("width"),c=a.get("height"),f=ct(a.get("appendPadding")),d=t.getHeight(),h=t.getWidth(),p=0,v=0;if("left"===n||"right"===n){var g=t.verticalAlign||"middle",m=Math.abs(i.y-o.y);p="left"===n?f[3]:l-h-f[1],v=(m-d)/2+i.y,"top"===g?v=i.y:"bottom"===g&&(v=o.y-d),e&&(v=e.get("y")-d-12)}else{var y=t.align||"left";if(p=f[3],"center"===y?p=l/2-h/2:"right"===y&&(p=l-(h+f[1])),v="top"===n?f[0]+Math.abs(t.container.getBBox().minY):c-d,e){var _=e.getWidth();p=e.x+_+12}}"bottom"===n&&u>0&&(u=0),"right"===n&&s>0&&(s=0),t.moveTo(p+s,v+u)},e.alignLegends=function(){var t=this;return c(t.legends,(function(e,n){c(e,(function(r,i){var o=e[i-1];t._alignLegend(r,o,n)}))})),t},e.bindEvents=function(){var t=this.legendCfg.triggerOn||"touchstart";it(this.canvasDom,t,this.handleEvent)},e.unBindEvents=function(){var t=this.legendCfg.triggerOn||"touchstart";ot(this.canvasDom,t,this.handleEvent)},t}();function Ki(t){var e=new Xi({container:t.get("backPlot").addGroup(),plotRange:t.get("plotRange"),chart:t});t.set("legendController",e),t.legend=function(t,n){var r=e.legendCfg;return e.enable=!0,O(t)?(e.enable=t,r=n||{}):l(t)?r=t:r[t]=n,e.legendCfg=r,this}}function Zi(t){var e=t.get("legendController");if(!e.enable)return null;var n=e.legendCfg,r=e.container;if(n&&n.custom)e.addCustomLegend();else{var i=t.getLegendItems(),o=t.get("scales"),a=t.get("filters");c(i,(function(t,n){var r,i=o[n],s=i.values;r=a&&a[n]?s.filter((function(t){return!a[n](t)})):[],e.addLegend(i,t,r)}))}n&&!1!==n.clickable&&e.bindEvents();var s=e.legends,u={top:0,right:0,bottom:0,left:0};c(s,(function(e,n){var r=0;c(e,(function(t){var e=t.getWidth(),i=t.getHeight();"top"===n||"bottom"===n?(r=Math.max(r,i),t.offsetY>0&&(r+=t.offsetY)):(r=Math.max(r,e),t.offsetX>0&&(r+=t.offsetX))})),u[n]=r+function(t,e){var n=0;switch(e=ct(e),t){case"top":n=e[0];break;case"right":n=e[1];break;case"bottom":n=e[2];break;case"left":n=e[3]}return n}(n,t.get("appendPadding"))})),t.set("legendRange",u),Object.keys(s).length?r.set("ariaLabel",gt.legend.prefix):r.set("ariaLabel",null)}function Qi(t){t.get("legendController").alignLegends()}function Ji(t){t.get("legendController").clear(),t.set("legendRange",null)}var to={init:Ki,beforeGeomDraw:Zi,afterGeomDraw:Qi,clearInner:Ji},eo=Object.freeze({__proto__:null,init:Ki,beforeGeomDraw:Zi,afterGeomDraw:Qi,clearInner:Ji,default:to}),no="object"==typeof performance&&performance.now?performance:Date,ro=function(){function t(){this.anims=[],this.time=null,this.playing=!1,this.canvas=[]}var e=t.prototype;return e.play=function(){var t=this;t.time=no.now(),t.playing=!0,Er((function e(){t.playing&&(Er(e),t.update())}))},e.stop=function(){this.playing=!1,this.time=null,this.canvas=[]},e.pushAnim=function(t){this.playing||this.play();var e=t.delay,n=t.duration,r=this.time+e,i=r+n;t.startTime=r,t.endTime=i,this.anims.push(t)},e.update=function(){var t=no.now();if(this.canvas=[],this.anims.length){for(var e=0;e=n.startTime&&!n.hasStarted&&(n.hasStarted=!0,n.onStart&&n.onStart());var u=(t-n.startTime)/s;if(u=Math.max(0,Math.min(u,1)),u=n.easing(u),n.onFrame)n.onFrame(u);else for(var l in a){var c=(0,a[l])(u),f=void 0;if("points"===l){f=[];for(var d=Math.max(i.points.length,o.points.length),h=0;h=n.endTime&&!n.hasEnded&&(n.hasEnded=!0,n.onEnd&&n.onEnd()),1===u&&(this.anims.splice(e,1),e--)}}}this.canvas.map((function(t){return t.draw(),t})),this.time=no.now()}else this.stop()},t}();function io(t){return t}function oo(t){return 1-ao(1-t)}function ao(t){return(t/=1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}var so=Object.freeze({__proto__:null,linear:io,quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=r/(2*Math.PI)*Math.asin(1/n),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:oo,bounceOut:ao,bounceInOut:function(t){return t<.5?.5*oo(2*t):.5*ao(2*t-1)+.5}});function uo(t){for(var e=[],n=0,r=t.length;nu.x?r.x:u.x,a=u.y+f/2):"xy"===i&&(n.isPolar?(o=n.center.x,a=n.center.y):(o=(u.x+l.x)/2,a=(u.y+l.y)/2));var h=vo(d,[o,a],i);d.isClip=!0,d.endState={matrix:h},d.set("canvas",t.get("canvas")),t.attr("clip",d),go(d,d.endState,e,(function(){t.attr("clip",null),d.remove(!0)}))}function bo(t,e,n){for(var r=t.get("children"),i=0,o=r.length;i-1&&(t="guide-tag"),l(n)?n[t]:!1!==n&&null}function No(){(ko=new ro).play()}function Do(t){if(!1!==t.get("animate")){var e=t.get("isUpdate"),n=t.get("canvas"),r=t.get("coord"),i=t.get("geoms"),o=n.get("caches")||[];0===o.length&&(e=!1);var u=Mo(i,t,r),l=t.get("axisController"),f=l.frontPlot,d=l.backPlot,h=f.get("children").concat(d.get("children")),p=[];t.get("guideController")&&(p=t.get("guideController").guideShapes);var v,g,m=[];h.concat(p).forEach((function(e){var n=Io(e.get("className"),t);e.set("coord",r),e.set("animateCfg",n),m.push(e),u.push(e)})),n.set("caches",function(t){for(var e={},n=0,r=t.length;n1?[1-o,1]:[s,u],this.updateRange(e)}},e.updateRange=function(t){var e=this.values,n=t[0],r=t[1];n=Math.max(0,n),r=Math.min(1,r),this.range=[n,r];var i=e.length,o=n*i,a=r*i,s=e.slice(o,a);this.repaint(s)},e.repaint=function(t){var e=this.chart,n=this.getPinchScale(),r=n.values,i=n.ticks;(function(t,e){if(t.length!==e.length)return!1;var n=t.length-1;return t[0]===e[0]&&t[n]===e[n]})(r,t)||(this.updateScale(n,{ticks:i,values:t}),this.updateFollowScale(n,t),e.repaint())},e.updateFollowScale=function(t,e){var n=this.chart,r=this.getFollowScale(),i=t.field,o=t.type,a=r.field,s=[],u={};e.forEach((function(t){u[t]=!0})),n.get("data").forEach((function(t){if("timeCat"===o){var e=dt(t[i]);u[e]&&s.push(t[a])}}));var l=H(s),c=l.min,f=l.max;this.updateScale(r,{min:c,max:f,nice:!0})},e.updateScale=function(t,e){t&&t.change(e)},e.updateTicks=function(){var t=this.chart,e=this.values,n=this.getPinchScale(),r=n.values,i=n.tickCount,o=Math.round(i*e.length/r.length),a=Jt("cat")({tickCount:o,values:e});this.updateScale(n,{ticks:a,values:r}),t.repaint()},e.destroy=function(){var t=this.chart;t.off("afterinit",this._afterinit),t.off("afterdatachange",this._afterdatachange)},t}(),zo=function(){var t=e.prototype;function e(t,e){var n=this;yt(this,"type",""),yt(this,"startEvent","touchstart"),yt(this,"processEvent","touchmove"),yt(this,"endEvent","touchend"),yt(this,"resetEvent",null),yt(this,"context",null),yt(this,"_start",(function(t){n.preStart&&n.preStart(t),n.start(t),n.onStart&&n.onStart(t)})),yt(this,"_process",(function(t){n.preProcess&&n.preProcess(t),n.process(t),n.onProcess&&n.onProcess(t)})),yt(this,"_end",(function(t){n.preEnd&&n.preEnd(t),n.end(t),n.onEnd&&n.onEnd(t)})),yt(this,"_reset",(function(t){n.preReset&&n.preReset(t),n.reset(t),n.onReset&&n.onReset(t)})),M(this,this.getDefaultCfg(),t),this.context=this.getInteractionContext(e),this.chart=e;var r=this.range;r&&(this.context.range=r),this._bindEvents(e)}return t.getDefaultCfg=function(){return{}},t.getInteractionContext=function(t){var e=t.get("interactionContext");return e||(e=new Fo(t),t.set("interactionContext",e),e)},t._bindEvents=function(t){var e=this.startEvent,n=this.processEvent,r=this.endEvent,i=this.resetEvent,o=t.get("canvas");o.on(e,this._start),o.on(n,this._process),o.on(r,this._end),o.on(i,this._reset)},t._clearEvents=function(){var t=this.chart,e=this.startEvent,n=this.processEvent,r=this.endEvent,i=this.resetEvent,o=t.get("canvas");o.off(e,this._start),o.off(n,this._process),o.off(r,this._end),o.off(i,this._start)},t.start=function(){},t.process=function(){},t.end=function(){},t.reset=function(){},t.destroy=function(){this.context.destroy(),this._clearEvents()},e}(),Vo=function(t){function e(){return t.apply(this,arguments)||this}bt(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{type:"pan",startEvent:"panstart",processEvent:"pan",endEvent:"panend"}},n.start=function(){this.context.start()},n.process=function(t){var e=t.direction,n=t.deltaX;if("up"!==e&&"down"!==e){t.preventDefault&&t.preventDefault();var r=this.context,i=r.chart.get("coord"),o=i.start,a=n/(i.end.x-o.x);r.doMove(a)}},e}(zo),qo=function(t){bt(n,t);var e=n.prototype;function n(e,n){var r;return M(xt(r=t.call(this,e,n)||this).context,e),r}return e.getDefaultCfg=function(){return{type:"pinch",startEvent:"pinchstart",processEvent:"pinch",endEvent:"pinchend"}},e.start=function(){this.context.start()},e.process=function(t){t.preventDefault&&t.preventDefault();var e=t.zoom,n=t.center,r=this.context,i=r.chart.get("coord"),o=i.start,a=i.end,s=a.x-o.x,u=Math.abs(n.x-o.x)/s,l=Math.abs(a.x-n.x)/s;r.doZoom(u,l,e)},e.end=function(){this.context.updateTicks()},n}(zo);Lr.registerInteraction("pan",Vo),Lr.registerInteraction("pinch",qo);var Ho={Marker:Qn.Marker,Tooltip:Mi};Lr.plugins.register([Fi,eo,Yi,Bo]);var Go={Component:Ho,Global:mt,Chart:Lr,Shape:Vt,G:Ar,Util:ht,Helper:Dr,track:Br,Animate:po};e.Animate=po,e.Chart=Lr,e.Component=Ho,e.G=Ar,e.Global=mt,e.Helper=Dr,e.Shape=Vt,e.Util=ht,e.default=Go,e.track=Br,Object.defineProperty(e,"__esModule",{value:!0})})(e)}).call(this,n(52))},function(t,e,n){t.exports=n(192)},function(t,e,n){"use strict";var r=n(30),i=n(155),o=n(193),a=n(161);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=s(n(158));u.Axios=o,u.create=function(t){return s(a(u.defaults,t))},u.Cancel=n(162),u.CancelToken=n(206),u.isCancel=n(157),u.all=function(t){return Promise.all(t)},u.spread=n(207),u.isAxiosError=n(208),t.exports=u,t.exports.default=u},function(t,e,n){"use strict";var r=n(30),i=n(156),o=n(194),a=n(195),s=n(161);function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=u},function(t,e,n){"use strict";var r=n(30);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(30),i=n(196),o=n(157),a=n(158);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(30);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(30);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(160);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(30);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(202),i=n(203);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(30),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(30);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(162);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return $t})),n.d(e,"version",(function(){return Bt}));var r=n(95);n.d(e,"ActionSheet",(function(){return r.default}));var i=n(96);n.d(e,"AddressEdit",(function(){return i.default}));var o=n(97);n.d(e,"AddressList",(function(){return o.default}));var a=n(64);n.d(e,"Area",(function(){return a.default}));var s=n(98);n.d(e,"Badge",(function(){return s.default}));var u=n(14);n.d(e,"Button",(function(){return u.default}));var l=n(99);n.d(e,"Calendar",(function(){return l.default}));var c=n(100);n.d(e,"Card",(function(){return c.default}));var f=n(101);n.d(e,"Cascader",(function(){return f.default}));var d=n(12);n.d(e,"Cell",(function(){return d.default}));var h=n(66);n.d(e,"CellGroup",(function(){return h.default}));var p=n(67);n.d(e,"Checkbox",(function(){return p.default}));var v=n(102);n.d(e,"CheckboxGroup",(function(){return v.default}));var g=n(103);n.d(e,"Circle",(function(){return g.default}));var m=n(104);n.d(e,"Col",(function(){return m.default}));var y=n(105);n.d(e,"Collapse",(function(){return y.default}));var _=n(106);n.d(e,"CollapseItem",(function(){return _.default}));var b=n(107);n.d(e,"ContactCard",(function(){return b.default}));var x=n(108);n.d(e,"ContactEdit",(function(){return x.default}));var w=n(109);n.d(e,"ContactList",(function(){return w.default}));var j=n(110);n.d(e,"CountDown",(function(){return j.default}));var S=n(57);n.d(e,"Coupon",(function(){return S.default}));var O=n(111);n.d(e,"CouponCell",(function(){return O.default}));var k=n(112);n.d(e,"CouponList",(function(){return k.default}));var E=n(68);n.d(e,"DatetimePicker",(function(){return E.default}));var C=n(45);n.d(e,"Dialog",(function(){return C.default}));var M=n(113);n.d(e,"Divider",(function(){return M.default}));var T=n(114);n.d(e,"DropdownItem",(function(){return T.default}));var P=n(115);n.d(e,"DropdownMenu",(function(){return P.default}));var A=n(116);n.d(e,"Empty",(function(){return A.default}));var I=n(22);n.d(e,"Field",(function(){return I.default}));var N=n(117);n.d(e,"Form",(function(){return N.default}));var D=n(63);n.d(e,"GoodsAction",(function(){return D.default}));var R=n(55);n.d(e,"GoodsActionButton",(function(){return R.default}));var L=n(118);n.d(e,"GoodsActionIcon",(function(){return L.default}));var B=n(119);n.d(e,"Grid",(function(){return B.default}));var $=n(120);n.d(e,"GridItem",(function(){return $.default}));var F=n(5);n.d(e,"Icon",(function(){return F.default}));var z=n(31);n.d(e,"Image",(function(){return z.default}));var V=n(50);n.d(e,"ImagePreview",(function(){return V.default}));var q=n(121);n.d(e,"IndexAnchor",(function(){return q.default}));var H=n(122);n.d(e,"IndexBar",(function(){return H.default}));var G=n(25);n.d(e,"Info",(function(){return G.default}));var U=n(163);n.d(e,"Lazyload",(function(){return U.default}));var Y=n(123);n.d(e,"List",(function(){return Y.default}));var W=n(19);n.d(e,"Loading",(function(){return W.default}));var X=n(39);n.d(e,"Locale",(function(){return X.default}));var K=n(124);n.d(e,"NavBar",(function(){return K.default}));var Z=n(125);n.d(e,"NoticeBar",(function(){return Z.default}));var Q=n(126);n.d(e,"Notify",(function(){return Q.default}));var J=n(127);n.d(e,"NumberKeyboard",(function(){return J.default}));var tt=n(62);n.d(e,"Overlay",(function(){return tt.default}));var et=n(128);n.d(e,"Pagination",(function(){return et.default}));var nt=n(129);n.d(e,"Panel",(function(){return nt.default}));var rt=n(130);n.d(e,"PasswordInput",(function(){return rt.default}));var it=n(46);n.d(e,"Picker",(function(){return it.default}));var ot=n(131);n.d(e,"Popover",(function(){return ot.default}));var at=n(21);n.d(e,"Popup",(function(){return at.default}));var st=n(132);n.d(e,"Progress",(function(){return st.default}));var ut=n(133);n.d(e,"PullRefresh",(function(){return ut.default}));var lt=n(47);n.d(e,"Radio",(function(){return lt.default}));var ct=n(48);n.d(e,"RadioGroup",(function(){return ct.default}));var ft=n(134);n.d(e,"Rate",(function(){return ft.default}));var dt=n(135);n.d(e,"Row",(function(){return dt.default}));var ht=n(136);n.d(e,"Search",(function(){return ht.default}));var pt=n(137);n.d(e,"ShareSheet",(function(){return pt.default}));var vt=n(71);n.d(e,"Sidebar",(function(){return vt.default}));var gt=n(72);n.d(e,"SidebarItem",(function(){return gt.default}));var mt=n(138);n.d(e,"Skeleton",(function(){return mt.default}));var yt=n(139);n.d(e,"Sku",(function(){return yt.default}));var _t=n(140);n.d(e,"Slider",(function(){return _t.default}));var bt=n(141);n.d(e,"Step",(function(){return bt.default}));var xt=n(73);n.d(e,"Stepper",(function(){return xt.default}));var wt=n(142);n.d(e,"Steps",(function(){return wt.default}));var jt=n(65);n.d(e,"Sticky",(function(){return jt.default}));var St=n(143);n.d(e,"SubmitBar",(function(){return St.default}));var Ot=n(69);n.d(e,"Swipe",(function(){return Ot.default}));var kt=n(144);n.d(e,"SwipeCell",(function(){return kt.default}));var Et=n(70);n.d(e,"SwipeItem",(function(){return Et.default}));var Ct=n(37);n.d(e,"Switch",(function(){return Ct.default}));var Mt=n(145);n.d(e,"SwitchCell",(function(){return Mt.default}));var Tt=n(40);n.d(e,"Tab",(function(){return Tt.default}));var Pt=n(146);n.d(e,"Tabbar",(function(){return Pt.default}));var At=n(147);n.d(e,"TabbarItem",(function(){return At.default}));var It=n(49);n.d(e,"Tabs",(function(){return It.default}));var Nt=n(38);n.d(e,"Tag",(function(){return Nt.default}));var Dt=n(26);n.d(e,"Toast",(function(){return Dt.default}));var Rt=n(148);n.d(e,"TreeSelect",(function(){return Rt.default}));var Lt=n(74);n.d(e,"Uploader",(function(){return Lt.default}));var Bt="2.12.20";function $t(t){[r.default,i.default,o.default,a.default,s.default,u.default,l.default,c.default,f.default,d.default,h.default,p.default,v.default,g.default,m.default,y.default,_.default,b.default,x.default,w.default,j.default,S.default,O.default,k.default,E.default,C.default,M.default,T.default,P.default,A.default,I.default,N.default,D.default,R.default,L.default,B.default,$.default,F.default,z.default,V.default,q.default,H.default,G.default,Y.default,W.default,X.default,K.default,Z.default,Q.default,J.default,tt.default,et.default,nt.default,rt.default,it.default,ot.default,at.default,st.default,ut.default,lt.default,ct.default,ft.default,dt.default,ht.default,pt.default,vt.default,gt.default,mt.default,yt.default,_t.default,bt.default,xt.default,wt.default,jt.default,St.default,Ot.default,kt.default,Et.default,Ct.default,Mt.default,Tt.default,Pt.default,At.default,It.default,Nt.default,Dt.default,Rt.default,Lt.default].forEach((function(e){e.install?t.use(e):e.name&&t.component(e.name,e)}))}"undefined"!=typeof window&&window.Vue&&$t(window.Vue),e.default={install:$t,version:Bt}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(211),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(52))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,u=1,l={},c=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}var d={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},h="object"===(void 0===n?"undefined":i(n))&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?function(){for(var t,e=arguments.length,n=new Array(e),r=0;r)?=?)"),t("XRANGEIDENTIFIERLOOSE","".concat(i[o.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),t("XRANGEIDENTIFIER","".concat(i[o.NUMERICIDENTIFIER],"|x|X|\\*")),t("XRANGEPLAIN","[v=\\s]*(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIER],")")+"(?:".concat(i[o.PRERELEASE],")?").concat(i[o.BUILD],"?")+")?)?"),t("XRANGEPLAINLOOSE","[v=\\s]*(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[o.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(i[o.PRERELEASELOOSE],")?").concat(i[o.BUILD],"?")+")?)?"),t("XRANGE","^".concat(i[o.GTLT],"\\s*").concat(i[o.XRANGEPLAIN],"$")),t("XRANGELOOSE","^".concat(i[o.GTLT],"\\s*").concat(i[o.XRANGEPLAINLOOSE],"$")),t("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),t("COERCERTL",i[o.COERCE],!0),t("LONETILDE","(?:~>?)"),t("TILDETRIM","(\\s*)".concat(i[o.LONETILDE],"\\s+"),!0),e.tildeTrimReplace="$1~",t("TILDE","^".concat(i[o.LONETILDE]).concat(i[o.XRANGEPLAIN],"$")),t("TILDELOOSE","^".concat(i[o.LONETILDE]).concat(i[o.XRANGEPLAINLOOSE],"$")),t("LONECARET","(?:\\^)"),t("CARETTRIM","(\\s*)".concat(i[o.LONECARET],"\\s+"),!0),e.caretTrimReplace="$1^",t("CARET","^".concat(i[o.LONECARET]).concat(i[o.XRANGEPLAIN],"$")),t("CARETLOOSE","^".concat(i[o.LONECARET]).concat(i[o.XRANGEPLAINLOOSE],"$")),t("COMPARATORLOOSE","^".concat(i[o.GTLT],"\\s*(").concat(i[o.LOOSEPLAIN],")$|^$")),t("COMPARATOR","^".concat(i[o.GTLT],"\\s*(").concat(i[o.FULLPLAIN],")$|^$")),t("COMPARATORTRIM","(\\s*)".concat(i[o.GTLT],"\\s*(").concat(i[o.LOOSEPLAIN],"|").concat(i[o.XRANGEPLAIN],")"),!0),e.comparatorTrimReplace="$1$2$3",t("HYPHENRANGE","^\\s*(".concat(i[o.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(i[o.XRANGEPLAIN],")")+"\\s*$"),t("HYPHENRANGELOOSE","^\\s*(".concat(i[o.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(i[o.XRANGEPLAINLOOSE],")")+"\\s*$"),t("STAR","(<|>)?=?\\s*\\*"),t("GTE0","^\\s*>=\\s*0.0.0\\s*$"),t("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})),v=/^[0-9]+$/,g=function(t,e){var n=v.test(t),r=v.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r||(!r||n)&&ty)throw new TypeError("version is longer than ".concat(y," characters"));if(h("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,!(n=e.trim().match(n.loose?b[x.LOOSE]:b[x.FULL])))throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>_||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(t){if(/^[0-9]+$/.test(t)){var e=+t;if(0<=e&&e<_)return e}return t})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}return s(t,[{key:"format",value:function(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}},{key:"toString",value:function(){return this.version}},{key:"compare",value:function(e){if(h("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if("string"==typeof e&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}},{key:"compareMain",value:function(e){return e instanceof t||(e=new t(e,this.options)),w(this.major,e.major)||w(this.minor,e.minor)||w(this.patch,e.patch)}},{key:"comparePre",value:function(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var n=0;do{var r=this.prerelease[n],i=e.prerelease[n];if(h("prerelease compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return w(r,i)}while(++n)}},{key:"compareBuild",value:function(e){e instanceof t||(e=new t(e,this.options));var n=0;do{var r=this.build[n],i=e.build[n];if(h("prerelease compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return w(r,i)}while(++n)}},{key:"inc",value:function(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;0<=--n;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}e&&(this.prerelease[0]!==e||isNaN(this.prerelease[1]))&&(this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: ".concat(t))}return this.format(),this.raw=this.version,this}}]),t}(),S=d.MAX_LENGTH,O=p.re,k=p.t,E=function(t,e){if(e&&"object"===i(e)||(e={loose:!!e,includePrerelease:!1}),t instanceof j)return t;if("string"!=typeof t)return null;if(t.length>S)return null;if(!(e.loose?O[k.LOOSE]:O[k.FULL]).test(t))return null;try{return new j(t,e)}catch(t){return null}},C=function(t,e){return(e=E(t,e))?e.version:null},M=function(t,e){return(e=E(t.trim().replace(/^[=v]+/,""),e))?e.version:null},T=function(t,e,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new j(t,n).inc(e,r).version}catch(t){return null}},P=function(t,e,n){return new j(t,n).compare(new j(e,n))},A=function(t,e,n){return 0===P(t,e,n)},I=function(t,e){if(A(t,e))return null;var n,r=E(t),i=E(e),o=(e=r.prerelease.length||i.prerelease.length)?"pre":"";e=e?"prerelease":"";for(n in r)if(("major"===n||"minor"===n||"patch"===n)&&r[n]!==i[n])return o+n;return e},N=function(t,e){return new j(t,e).major},D=function(t,e){return new j(t,e).minor},R=function(t,e){return new j(t,e).patch},L=function(t,e){return(e=E(t,e))&&e.prerelease.length?e.prerelease:null},B=function(t,e,n){return P(e,t,n)},$=function(t,e){return P(t,e,!0)},F=function(t,e,n){return t=new j(t,n),n=new j(e,n),t.compare(n)||t.compareBuild(n)},z=function(t,e){return t.sort((function(t,n){return F(t,n,e)}))},V=function(t,e){return t.sort((function(t,n){return F(n,t,e)}))},q=function(t,e,n){return 0":return q(t,n,r);case">=":return U(t,n,r);case"<":return H(t,n,r);case"<=":return Y(t,n,r);default:throw new TypeError("Invalid operator: ".concat(e))}},X=p.re,K=p.t,Z=function(t,e){if(t instanceof j)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;var n,r=null;if((e=e||{}).rtl){for(;(n=X[K.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),X[K.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;X[K.COERCERTL].lastIndex=-1}else r=t.match(X[K.COERCE]);return null===r?null:E("".concat(r[2],".").concat(r[3]||"0",".").concat(r[4]||"0"),e)},Q=function(){function t(e,n){var r=this;if(o(this,t),n&&"object"===i(n)||(n={loose:!!n,includePrerelease:!1}),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof yt)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(t){return r.parseRange(t.trim())})).filter((function(t){return t.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(e));this.format()}return s(t,[{key:"format",value:function(){return this.range=this.set.map((function(t){return t.join(" ").trim()})).join("||").trim(),this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(t){var e=this,n=this.options.loose;t=t.trim();var r=n?J[tt.HYPHENRANGELOOSE]:J[tt.HYPHENRANGE];t=t.replace(r,vt(this.options.includePrerelease)),h("hyphen replace",t),t=t.replace(J[tt.COMPARATORTRIM],et),h("comparator trim",t,J[tt.COMPARATORTRIM]),t=(t=(t=t.replace(J[tt.TILDETRIM],nt)).replace(J[tt.CARETTRIM],rt)).split(/\s+/).join(" ");var i=n?J[tt.COMPARATORLOOSE]:J[tt.COMPARATOR];return t.split(" ").map((function(t){return ot(t,e.options)})).join(" ").split(/\s+/).map((function(t){return pt(t,e.options)})).filter(this.options.loose?function(t){return!!t.match(i)}:function(){return!0}).map((function(t){return new yt(t,e.options)}))}},{key:"intersects",value:function(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((function(t){return it(t,n)&&e.set.some((function(e){return it(e,n)&&t.every((function(t){return e.every((function(e){return t.intersects(e,n)}))}))}))}))}},{key:"test",value:function(t){if(!t)return!1;if("string"==typeof t)try{t=new j(t,this.options)}catch(t){return!1}for(var e=0;e=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):at(i)?">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):o?(h("replaceTilde pr",o),">=".concat(n,".").concat(r,".").concat(i,"-").concat(o," <").concat(n,".").concat(+r+1,".0-0")):">=".concat(n,".").concat(r,".").concat(i," <").concat(n,".").concat(+r+1,".0-0"),h("tilde return",r),r}))},lt=function(t,e){return t.trim().split(/\s+/).map((function(t){return ct(t,e)})).join(" ")},ct=function(t,e){h("caret",t,e);var n=e.loose?J[tt.CARETLOOSE]:J[tt.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(function(e,n,i,o,a){return h("caret",t,e,n,i,o,a),n=at(n)?"":at(i)?">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):at(o)?"0"===n?">=".concat(n,".").concat(i,".0").concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".0").concat(r," <").concat(+n+1,".0.0-0"):a?(h("replaceCaret pr",a),"0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(o,"-").concat(a," <").concat(n,".").concat(i,".").concat(+o+1,"-0"):">=".concat(n,".").concat(i,".").concat(o,"-").concat(a," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(o,"-").concat(a," <").concat(+n+1,".0.0-0")):(h("no pr"),"0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(o).concat(r," <").concat(n,".").concat(i,".").concat(+o+1,"-0"):">=".concat(n,".").concat(i,".").concat(o).concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(o," <").concat(+n+1,".0.0-0")),h("caret return",n),n}))},ft=function(t,e){return h("replaceXRanges",t,e),t.split(/\s+/).map((function(t){return dt(t,e)})).join(" ")},dt=function(t,e){t=t.trim();var n=e.loose?J[tt.XRANGELOOSE]:J[tt.XRANGE];return t.replace(n,(function(n,r,i,o,a,s){h("xRange",t,n,r,i,o,a,s);var u=at(i),l=u||at(o),c=l||at(a);return"="===r&&c&&(r=""),s=e.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&c?(l&&(o=0),a=0,">"===r?(r=">=",a=l?(i=+i+1,o=0):(o=+o+1,0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),"<"===r&&(s="-0"),n="".concat(r+i,".").concat(o,".").concat(a).concat(s)):l?n=">=".concat(i,".0.0").concat(s," <").concat(+i+1,".0.0-0"):c&&(n=">=".concat(i,".").concat(o,".0").concat(s," <").concat(i,".").concat(+o+1,".0-0")),h("xRange return",n),n}))},ht=function(t,e){return h("replaceStars",t,e),t.trim().replace(J[tt.STAR],"")},pt=function(t,e){return h("replaceGTE0",t,e),t.trim().replace(J[e.includePrerelease?tt.GTE0PRE:tt.GTE0],"")},vt=function(t){return function(e,n,r,i,o,a,s,u,l,c,f,d,h){return n=at(r)?"":at(i)?">=".concat(r,".0.0").concat(t?"-0":""):at(o)?">=".concat(r,".").concat(i,".0").concat(t?"-0":""):a?">=".concat(n):">=".concat(n).concat(t?"-0":""),u=at(l)?"":at(c)?"<".concat(+l+1,".0.0-0"):at(f)?"<".concat(l,".").concat(+c+1,".0-0"):d?"<=".concat(l,".").concat(c,".").concat(f,"-").concat(d):t?"<".concat(l,".").concat(c,".").concat(+f+1,"-0"):"<=".concat(u),"".concat(n," ").concat(u).trim()}},gt=function(t,e,n){for(var r=0;r="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),u=W(this.semver,"<",e.semver,n)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator);e=W(this.semver,">",e.semver,n)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||a&&s||u||e}}]),t}(),_t=p.re,bt=p.t,xt=function(t,e,n){try{e=new Q(e,n)}catch(t){return!1}return e.test(t)},wt=function(t,e){return new Q(t,e).set.map((function(t){return t.map((function(t){return t.value})).join(" ").trim().split(" ")}))},jt=function(t,e,n){var r=null,i=null,o=null;try{o=new Q(e,n)}catch(t){return null}return t.forEach((function(t){o.test(t)&&(r&&-1!==i.compare(t)||(i=new j(r=t,n)))})),r},St=function(t,e,n){var r=null,i=null,o=null;try{o=new Q(e,n)}catch(t){return null}return t.forEach((function(t){o.test(t)&&(r&&1!==i.compare(t)||(i=new j(r=t,n)))})),r},Ot=function(t,e){t=new Q(t,e);var n=new j("0.0.0");if(t.test(n))return n;if(n=new j("0.0.0-0"),t.test(n))return n;n=null;for(var r=0;r":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":n&&!q(n,e)||(n=e);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(t.operator))}}));return n&&t.test(n)?n:null},kt=function(t,e){try{return new Q(t,e).range||"*"}catch(t){return null}},Et=yt.ANY,Ct=function(t,e,n,r){var o,a,s,u,l;switch(t=new j(t,r),e=new Q(e,r),n){case">":o=q,a=Y,s=H,u=">",l=">=";break;case"<":o=H,a=U,s=q,u="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(xt(t,e,r))return!1;for(var c=0;c=0.0.0")),i=i||t,c=c||t,o(t.semver,i.semver,r)?i=t:s(t.semver,c.semver,r)&&(c=t)})),i.operator===u||i.operator===l||(!c.operator||c.operator===u)&&a(t,c.semver)||c.operator===l&&s(t,c.semver)?{v:!1}:void 0}(c);if("object"===i(f))return f.v}return!0},Mt=function(t,e,n){return Ct(t,e,">",n)},Tt=function(t,e,n){return Ct(t,e,"<",n)},Pt=function(t,e,n){return t=new Q(t,n),e=new Q(e,n),t.intersects(e)},At=yt.ANY,It=function(t,e,n){t=new Q(t,n),e=new Q(e,n);var r,i=!1,o=f(t.set);try{t:for(o.s();!(r=o.n()).done;){var a=r.value,s=f(e.set);try{for(s.s();!(u=s.n()).done;){var u=u.value;u=Nt(a,u,n),i=i||null!==u;if(u)continue t}}catch(t){s.e(t)}finally{s.f()}if(i)return!1}}catch(t){o.e(t)}finally{o.f()}return!0},Nt=function(t,e,n){if(1===t.length&&t[0].semver===At)return 1===e.length&&e[0].semver===At;var r,i,o,a=new Set,s=f(t);try{for(s.s();!(u=s.n()).done;){var u=u.value;">"===u.operator||">="===u.operator?r=Dt(r,u,n):"<"===u.operator||"<="===u.operator?i=Rt(i,u,n):a.add(u.semver)}}catch(t){s.e(t)}finally{s.f()}if(1="!==r.operator||"<="!==i.operator))return null}var l,c=f(a);try{for(c.s();!(l=c.n()).done;){var d=l.value;if(r&&!xt(d,String(r),n))return null;if(i&&!xt(d,String(i),n))return null;var h=f(e);try{for(h.s();!(p=h.n()).done;){var p=p.value;if(!xt(d,String(p),n))return!1}}catch(t){h.e(t)}finally{h.f()}return!0}}catch(t){c.e(t)}finally{c.f()}var v=f(e);try{for(v.s();!(g=v.n()).done;){var g=g.value,m=m||">"===g.operator||">="===g.operator,y=y||"<"===g.operator||"<="===g.operator;if(r)if(">"===g.operator||">="===g.operator){if(Dt(r,g,n)===g)return!1}else if(">="===r.operator&&!xt(r.semver,String(g),n))return!1;if(i)if("<"===g.operator||"<="===g.operator){if(Rt(i,g,n)===g)return!1}else if("<="===i.operator&&!xt(i.semver,String(g),n))return!1;if(!g.operator&&(i||r)&&0!==o)return!1}}catch(t){v.e(t)}finally{v.f()}return!(r&&y&&!i&&0!==o||i&&m&&!r&&0!==o)},Dt=function(t,e,n){return t&&(0<(n=P(t.semver,e.semver,n))||!(n<0||">"===e.operator&&">="===t.operator))?t:e},Rt=function(t,e,n){return t&&((n=P(t.semver,e.semver,n))<0||!(0=".concat(v)):c.push("*")}var g=c.join(" || ");t="string"==typeof e.raw?e.raw:String(e);return g.length=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(o.path||""),d=e&&e.path||"/",h=f.path?j(f.path,d,n||o.append):d,p=function(t,e,n){void 0===e&&(e={});var r,i=n||c;try{r=i(t||"")}catch(t){r={}}for(var o in e){var a=e[o];r[o]=Array.isArray(a)?a.map(l):l(a)}return r}(f.query,o.query,i&&i.options.parseQuery),v=o.hash||f.hash;return v&&"#"!==v.charAt(0)&&(v="#"+v),{_normalized:!0,path:h,query:p,hash:v}}var H,G=function(){},U={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),a=o.location,s=o.route,u=o.href,l={},c=n.options.linkActiveClass,f=n.options.linkExactActiveClass,p=null==c?"router-link-active":c,v=null==f?"router-link-exact-active":f,g=null==this.activeClass?p:this.activeClass,m=null==this.exactActiveClass?v:this.exactActiveClass,_=s.redirectedFrom?h(null,q(s.redirectedFrom),null,n):s;l[m]=y(i,_,this.exactPath),l[g]=this.exact||this.exactPath?l[m]:function(t,e){return 0===t.path.replace(d,"/").indexOf(e.path.replace(d,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,_);var b=l[m]?this.ariaCurrentValue:null,x=function(t){Y(t)&&(e.replace?n.replace(a,G):n.push(a,G))},w={click:Y};Array.isArray(this.event)?this.event.forEach((function(t){w[t]=x})):w[this.event]=x;var j={class:l},S=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:s,navigate:x,isActive:l[g],isExactActive:l[m]});if(S){if(1===S.length)return S[0];if(S.length>1||!S.length)return 0===S.length?t():t("span",{},S)}if("a"===this.tag)j.on=w,j.attrs={href:u,"aria-current":b};else{var O=function t(e){var n;if(e)for(var r=0;r-1&&(s.params[d]=n.params[d]);return s.path=V(c.path,s.params),u(c,s,a)}if(s.path){s.params={};for(var h=0;h=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}var _t={redirected:2,aborted:4,cancelled:8,duplicated:16};function bt(t,e){return wt(t,e,_t.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return jt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function xt(t,e){return wt(t,e,_t.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function wt(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var jt=["params","query","hash"];function St(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Ot(t,e){return St(t)&&t._isRouter&&(null==e||t.type===e)}function kt(t){return function(e,n,r){var i=!1,o=0,a=null;Et(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var u,l=Tt((function(e){var i;((i=e).__esModule||Mt&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:H.extend(e),n.components[s]=e,--o<=0&&r()})),c=Tt((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=St(t)?t:new Error(e),r(a))}));try{u=t(l,c)}catch(t){c(t)}if(u)if("function"==typeof u.then)u.then(l,c);else{var f=u.component;f&&"function"==typeof f.then&&f.then(l,c)}}})),i||r()}}function Et(t,e){return Ct(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Ct(t){return Array.prototype.concat.apply([],t)}var Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Tt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Pt=function(t,e){this.router=t,this.base=function(t){if(!t)if(W){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function At(t,e,n,r){var i=Et(t,(function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=H.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return Ct(r?i.reverse():i)}function It(t,e){if(e)return function(){return t.apply(e,arguments)}}Pt.prototype.listen=function(t){this.cb=t},Pt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Pt.prototype.onError=function(t){this.errorCbs.push(t)},Pt.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(Ot(t,_t.redirected)&&o===v||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},Pt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current;this.pending=t;var o,a,s=function(t){!Ot(t)&&St(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},u=t.matched.length-1,l=i.matched.length-1;if(y(t,i)&&u===l&&t.matched[u]===i.matched[l])return this.ensureURL(),s(((a=wt(o=i,t,_t.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",a));var c=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,r=vt&&n;r&&this.listeners.push(ot());var i=function(){var n=t.current,i=Dt(t.base);t.current===v&&i===t._startLocation||t.transitionTo(i,(function(t){r&&at(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){gt(S(r.base+t.fullPath)),at(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){mt(S(r.base+t.fullPath)),at(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Dt(this.base)!==this.current.fullPath){var e=S(this.base+this.current.fullPath);t?gt(e):mt(e)}},e.prototype.getCurrentLocation=function(){return Dt(this.base)},e}(Pt);function Dt(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Rt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Dt(t);if(!/^\/#/.test(e))return window.location.replace(S(t+"/#"+e)),!0}(this.base)||Lt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=vt&&e;n&&this.listeners.push(ot());var r=function(){var e=t.current;Lt()&&t.transitionTo(Bt(),(function(r){n&&at(t.router,r,e,!0),vt||zt(r.fullPath)}))},i=vt?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Ft(t.fullPath),at(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){zt(t.fullPath),at(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Bt()!==e&&(t?Ft(e):zt(e))},e.prototype.getCurrentLocation=function(){return Bt()},e}(Pt);function Lt(){var t=Bt();return"/"===t.charAt(0)||(zt("/"+t),!1)}function Bt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function $t(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Ft(t){vt?gt($t(t)):window.location.hash=t}function zt(t){vt?mt($t(t)):window.location.replace($t(t))}var Vt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Ot(t,_t.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Pt),qt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Z(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!vt&&!1!==t.fallback,this.fallback&&(e="hash"),W||(e="abstract"),this.mode=e,e){case"history":this.history=new Nt(this,t.base);break;case"hash":this.history=new Rt(this,t.base,this.fallback);break;case"abstract":this.history=new Vt(this,t.base);break;default:0}},Ht={currentRoute:{configurable:!0}};function Gt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}qt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Ht.currentRoute.get=function(){return this.history&&this.history.current},qt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Nt||n instanceof Rt){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;vt&&i&&"fullPath"in t&&at(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},qt.prototype.beforeEach=function(t){return Gt(this.beforeHooks,t)},qt.prototype.beforeResolve=function(t){return Gt(this.resolveHooks,t)},qt.prototype.afterEach=function(t){return Gt(this.afterHooks,t)},qt.prototype.onReady=function(t,e){this.history.onReady(t,e)},qt.prototype.onError=function(t){this.history.onError(t)},qt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},qt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},qt.prototype.go=function(t){this.history.go(t)},qt.prototype.back=function(){this.go(-1)},qt.prototype.forward=function(){this.go(1)},qt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},qt.prototype.resolve=function(t,e,n){var r=q(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?S(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},qt.prototype.getRoutes=function(){return this.matcher.getRoutes()},qt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},qt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(qt.prototype,Ht),qt.install=function t(e){if(!t.installed||H!==e){t.installed=!0,H=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",x),e.component("RouterLink",U);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},qt.version="3.5.1",qt.isNavigationFailure=Ot,qt.NavigationFailureType=_t,qt.START_LOCATION=v,W&&window.Vue&&window.Vue.use(qt),e.default=qt},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"Store",(function(){return f})),n.d(e,"createLogger",(function(){return C})),n.d(e,"createNamespacedHelpers",(function(){return S})),n.d(e,"install",(function(){return _})),n.d(e,"mapActions",(function(){return j})),n.d(e,"mapGetters",(function(){return w})),n.d(e,"mapMutations",(function(){return x})),n.d(e,"mapState",(function(){return b}));var r=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,r=(n=function(e){return e.original===t},e.filter(n)[0]);if(r)return r.copy;var o=Array.isArray(t)?[]:{};return e.push({original:t,copy:o}),Object.keys(t).forEach((function(n){o[n]=i(t[n],e)})),o}function o(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function a(t){return null!==t&&"object"==typeof t}var s=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(t,e){this._children[t]=e},s.prototype.removeChild=function(t){delete this._children[t]},s.prototype.getChild=function(t){return this._children[t]},s.prototype.hasChild=function(t){return t in this._children},s.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},s.prototype.forEachChild=function(t){o(this._children,t)},s.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},s.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},s.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(s.prototype,u);var l=function(t){this.register([],t,!1)};l.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},l.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},l.prototype.update=function(t){!function t(e,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;t(e.concat(i),n.getChild(i),r.modules[i])}}([],this.root,t)},l.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new s(e,n);0===t.length?this.root=i:this.get(t.slice(0,-1)).addChild(t[t.length-1],i);e.modules&&o(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},l.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},l.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var c;var f=function(t){var e=this;void 0===t&&(t={}),!c&&"undefined"!=typeof window&&window.Vue&&_(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=i;var u=this._modules.root.state;g(this,u,[],this._modules.root),v(this,u),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:c.config.devtools)&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){r.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},d={state:{configurable:!0}};function h(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function p(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;g(t,n,[],t._modules.root,!0),v(t,n,e)}function v(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,a={};o(i,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=c.config.silent;c.config.silent=!0,t._vm=new c({data:{$$state:e},computed:a}),c.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),c.nextTick((function(){return r.$destroy()})))}function g(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=m(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){c.set(s,u,r.state)}))}var l=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=y(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:r?t.commit:function(n,r,i){var o=y(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return m(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,a+n,e,l)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e){var i,o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(t,r,i,l)})),r.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,a+n,e,l)})),r.forEachChild((function(r,o){g(t,e,n.concat(o),r,i)}))}function m(t,e){return e.reduce((function(t,e){return t[e]}),t)}function y(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function _(t){c&&t===c|| /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(c=t)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,n){var r=this,i=y(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},f.prototype.dispatch=function(t,e){var n=this,r=y(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}var u=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){u.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return h(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return h("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),g(this,this.state,t,this._modules.get(t),n.preserveState),v(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=m(e.state,t.slice(0,-1));c.delete(n,t[t.length-1])})),p(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),p(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var b=k((function(t,e){var n={};return O(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=E(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),x=k((function(t,e){var n={};return O(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=E(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),w=k((function(t,e){var n={};return O(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||E(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),j=k((function(t,e){var n={};return O(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=E(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),S=function(t){return{mapState:b.bind(null,t),mapGetters:w.bind(null,t),mapMutations:x.bind(null,t),mapActions:j.bind(null,t)}};function O(t){return function(t){return Array.isArray(t)||a(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function k(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function E(t,e,n){return t._modulesNamespaceMap[n]}function C(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var u=t.logMutations;void 0===u&&(u=!0);var l=t.logActions;void 0===l&&(l=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var f=i(t.state);void 0!==c&&(u&&t.subscribe((function(t,a){var s=i(a);if(n(t,f,s)){var u=P(),l=o(t),d="mutation "+t.type+u;M(c,d,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),T(c)}f=s})),l&&t.subscribeAction((function(t,n){if(a(t,n)){var r=P(),i=s(t),o="action "+t.type+r;M(c,o,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),T(c)}})))}}function M(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function T(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function P(){var t=new Date;return" @ "+A(t.getHours(),2)+":"+A(t.getMinutes(),2)+":"+A(t.getSeconds(),2)+"."+A(t.getMilliseconds(),3)}function A(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var I={Store:f,install:_,version:"3.6.2",mapState:b,mapMutations:x,mapGetters:w,mapActions:j,createNamespacedHelpers:S,createLogger:C};e.default=I}.call(this,n(52))}]);